diff --git a/WechatBot/.idea/.gitignore b/WechatBot/.idea/.gitignore deleted file mode 100644 index a7cdac76c..000000000 --- a/WechatBot/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# 默认忽略的文件 -/shelf/ -/workspace.xml -# 基于编辑器的 HTTP 客户端请求 -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/WechatBot/.idea/WechatBot.iml b/WechatBot/.idea/WechatBot.iml deleted file mode 100644 index 26c6bc80a..000000000 --- a/WechatBot/.idea/WechatBot.iml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/.idea/inspectionProfiles/profiles_settings.xml b/WechatBot/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2da2..000000000 --- a/WechatBot/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/WechatBot/.idea/misc.xml b/WechatBot/.idea/misc.xml deleted file mode 100644 index d1c70236c..000000000 --- a/WechatBot/.idea/misc.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/WechatBot/.idea/modules.xml b/WechatBot/.idea/modules.xml deleted file mode 100644 index 78dc38853..000000000 --- a/WechatBot/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/WechatBot/.idea/vcs.xml b/WechatBot/.idea/vcs.xml deleted file mode 100644 index 188eaef54..000000000 --- a/WechatBot/.idea/vcs.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/WechatBot/.idea/wechaty.iml b/WechatBot/.idea/wechaty.iml deleted file mode 100644 index 0365a06b5..000000000 --- a/WechatBot/.idea/wechaty.iml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - \ No newline at end of file diff --git a/WechatBot/chatflow/.eslintrc.cjs b/WechatBot/chatflow/.eslintrc.cjs deleted file mode 100644 index b961a14eb..000000000 --- a/WechatBot/chatflow/.eslintrc.cjs +++ /dev/null @@ -1,8 +0,0 @@ - -const rules = { -} - -module.exports = { - extends: '@chatie', - rules, -} diff --git a/WechatBot/chatflow/.github/workflows/docker-image.yml b/WechatBot/chatflow/.github/workflows/docker-image.yml deleted file mode 100644 index 26fc7215c..000000000 --- a/WechatBot/chatflow/.github/workflows/docker-image.yml +++ /dev/null @@ -1,37 +0,0 @@ -# docker-image.yml -name: Publish Docker image # workflow名称,可以在Github项目主页的【Actions】中看到所有的workflow - -on: # 配置触发workflow的事件 - push: - tags: # tag更新时触发此workflow - - '*' - -jobs: # workflow中的job - - push_to_registry: # job的名字 - name: Push Docker image to Docker Hub - runs-on: ubuntu-latest # job运行的基础环境 - - steps: # 一个job由一个或多个step组成 - - name: Check out the repo - uses: actions/checkout@v2 # 官方的action,获取代码 - - - name: Log in to Docker Hub - uses: docker/login-action@v1 # 三方的action操作, 执行docker login - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} # 配置dockerhub的认证,在Github项目主页 【Settings】 -> 【Secrets】 添加对应变量 - password: ${{ secrets.DOCKERHUB_TOKEN }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v3 # 抽取项目信息,主要是镜像的tag - with: - images: atorber/wechat-openai-qa-bot - - - name: Build and push Docker image - uses: docker/build-push-action@v2 # docker build & push - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} diff --git a/WechatBot/chatflow/.gitignore b/WechatBot/chatflow/.gitignore deleted file mode 100644 index 154584257..000000000 --- a/WechatBot/chatflow/.gitignore +++ /dev/null @@ -1,126 +0,0 @@ -# Logs -logs -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -dev.ts* - -# config.js* - -.DS_Store - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -jspm_packages/ - -# TypeScript v1 declaration files -typings/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variables file -.env -.env.test - -# parcel-bundler cache (https://parceljs.org/) -.cache - -# Next.js build output -.next - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and *not* Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -dev-config.js -dev-index.js -WechatEveryDay.memory-card.json -dev-index.ts -index-dev.ts -config-dev.js -package-lock.json -.gitpod.yml -openai-qa-bot.memory-card.json -quick.bat -src/config.js -src/config.ts -tester.js -db/*.db -db/*.csv -db/*.xlsx diff --git a/WechatBot/chatflow/.vscode/settings.json b/WechatBot/chatflow/.vscode/settings.json deleted file mode 100644 index fec3f1270..000000000 --- a/WechatBot/chatflow/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "cSpell.words": [ - "Aibot" - ] -} \ No newline at end of file diff --git a/WechatBot/chatflow/Dockerfile b/WechatBot/chatflow/Dockerfile deleted file mode 100644 index 65e8343a1..000000000 --- a/WechatBot/chatflow/Dockerfile +++ /dev/null @@ -1,8 +0,0 @@ -FROM node:16 -WORKDIR /usr/src/app -COPY package.json ./ - -RUN npm install -COPY . . -CMD [ "npm","run", "init" ] -CMD [ "npm","run", "start" ] diff --git a/WechatBot/chatflow/LICENSE b/WechatBot/chatflow/LICENSE deleted file mode 100644 index 261eeb9e9..000000000 --- a/WechatBot/chatflow/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/WechatBot/chatflow/README.md b/WechatBot/chatflow/README.md deleted file mode 100644 index 9765fd9c8..000000000 --- a/WechatBot/chatflow/README.md +++ /dev/null @@ -1,216 +0,0 @@ -# wechat-qa-bot - -[访问项目语雀文档了解更多信息](https://www.yuque.com/atorber/oegota) - -## 简介 - -本项目使用wechat机器人快速实现一个免费的QA问答系统,如果你是一个社群工作者、拼团团长、业务群运营经理,使用这个项目可以帮助你解决一些重复性问答。 - -同时,本项目也具备微信消息收集、定时通知等常用场景功能。 - -已适配网页版微信,linux、mac、Windows均可运行。 - -### 功能列表 - -[详细功能查看](https://www.yuque.com/atorber/oegota/aialc7sbyb4ldmg4/edit) - -|功能|描述| -|--|--| -|消息存档|群聊天消息存档到表格(基于vika维格表,免费)| -|定时消息|定时消息发送,支持单次定时和周期消息发送给指定好友或群| -|智能问答|可以自定义问答内容,智能匹配答案,支持相似问题匹配,例如“什么时候到货?”“亲,几时到货”“亲,什么时候到货”均能匹配(基于微信对话开放平台,免费)| -|千群千面|多个群相同问题不同回答内容,例如“何时到货?”,A群中回答“今天到”,B群中回答“明天到货”| -|群白名单|支持配置群白名单,白名单内群开启机器人问答,未配置问题答案的群不会受到机器人干扰| -|客服后台|简单客服后台,可以把群内消息按发言人列表区分| -|MQTT消息推送|支持配置一个MQTTQ消息队列,将消息推送到队列当中| -|远程控制发消息|支持通过MQTT控制机器人向指定好友或群发消息| -|非群主链接检测|支持非群主小程序卡片、网页链接分享检测,自动提醒、警告发送者撤回| -|团购订单转换|支持快团团订货单转换,原始表发送到群即可自动转换为按楼栋统计表| - -## 快速开始 - -[手把手教程](https://www.yuque.com/atorber/oegota/zm4ulnwnqp9whmd6) - -1.下载源码并安装依赖 - -```Shell -git clone -cd ./wechat-openai-qa-bot -npm install -``` - -2.分别登陆[微信对话开放平台](https://openai.weixin.qq.com/)和[vika维格表](https://spcp52tvpjhxm.com.vika.cn/?inviteCode=55152973)官网注册账号并获取token - -3.在电脑上登陆微信,微信版本必须为[WeChatSetup-v3.6.0.18.exe](https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.6.0.18/WeChatSetup-3.6.0.18.exe) - -4.修改./config.js配置文件 - -快速开始仅需要修改VIKA_TOKEN、VIKA_SPACENAME配置项,其他配置项暂时无需修改 - -```javascript -/* eslint-disable sort-keys */ -// 配置文件,所有配置必须齐全,补充空白配置项,其他配置项可按需要修改 -const configs = { - VIKA_TOKEN: '替换成自己的维格表token', // VIKA维格表token - VIKA_SPACENAME: '替换成你的维格表空间名称', // VIKA维格表空间名称,修改为自己的空间名称 -} - -export default configs -``` - -> 只有加入到roomWhiteList里的群才会开启只能问答机器人 - -5.初始化系统表,先运行,系统会自动在维格表中创建好初始化表格 - -```Shell -npm run sys-init -``` - -在维格表查看系统表是否创建成功 - -6.程序默认使用wechaty-puppet-wechat,三大系统均可使用 - -7.启动程序 - -```Shell -npm start -``` - -出现二维码之后,扫码二维码登陆微信 - -8.开启智能问答功能 - -8.1 设置微信对话平台token,填写"环境变量"表中的 【对话平台token】、【对话平台EncodingAESKey】并在"功能开关"表中开启智能问答 - -添加一个简单问题到微信对话开放平台,测试对应群内智能问答内容 - -8.2 如果不希望每个群都开启智能问答,需设置群白名单,首先需要将上图中的群白名单开关设置为开启 - -然后将群加入到问答白名单,在“群白名单”表中,加入需要开启的群ID(roomid),群ID在消息中查看(在群里发一条消息,然后控制台查看或在维格表中查找) - -详细操作参考 [手把手教程](https://www.yuque.com/atorber/oegota/zm4ulnwnqp9whmd6) - -8.4 重启程序,在指定群测试问答 - -## 使用环境变量启动 - -> 也可以不使用配置文件,通过配置环境变量启动 - -Mac、Linux操作系统下运行(仅支持使用wechaty-puppet-wechat和wechaty-puppet-padlocal) - -```Shell -export VIKA_TOKEN="替换成自己的维格表token" -export VIKA_SPACENAME="替换成你的维格表空间名称" -npm run sys-init -npm start -``` - -Windows操作系统下运行(支持使用wechaty-puppet-xp、wechaty-puppet-wechat、wechaty-puppet-padlocal) - -推荐使用 wechaty-puppet-xp - -```Shell -set VIKA_TOKEN="替换成自己的维格表token" -set VIKA_SPACENAME="替换成你的维格表空间名称" -npm run sys-init -npm run start -``` - -## 在Docker中部署运行 - -注意,因为wechaty-puppet-xp必须依赖Windows微信客户端,所以不能使用Docker,但使用wechaty-puppet-padlocal、wechaty-puppet-service则可以用Doker来部署, - -最新代码已经默认wechaty-puppet-wehcat为初始化puppet,mac、linux系统直接拉取镜像即可运行(mac M1需要自行打包镜像) - -### Wechaty-Puppet支持 - -|puppet名称|支持平台 |需要token |付费| 备注| -|--|--|--|--|--| -|wechaty-puppet-wechat| Windows、Linux、macOS |否| 否 |网页版wechat,无法获取真实的微信ID和群ID,重启之后ID可能会变| -|wechaty-puppet-xp|Windows| 否| 否 |仅支持windows| -|wechaty-puppet-padlocal👍| Windows、Linux、macOS| 是 |是 | -|wechaty-puppet-service👍| Windows、Linux、macOS| 是 |是 |企业微信| - -> 特别注意,Wechaty-Puppet是wechaty的概念,本项目不涉及机器人开发,只是使用wechaty项目进行业务功能实现,什么是[Wechaty](https://wechaty.js.org/)请点击链接进行了解学习 - -### 拉取和运行 - -- 稳定版本 - -```Shell -docker run -d ---restart=always ---env VIKA_TOKEN="维格表token" ---env VIKA_SPACENAME="维格表空间名称" -atorber/wechat-openai-qa-bot:v1.8.2 -``` - -- 最新版本 - -```Shell -docker run -d ---restart=always ---env VIKA_TOKEN="维格表token" ---env VIKA_SPACENAME="维格表空间名称" -atorber/wechat-openai-qa-bot:latest -``` - -## 视频演示及使用教程 - -到项目官网 [查看视频教程](https://qabot.vlist.cc/) - -## 常见问题及解决方案 - -1. 加入QQ群 583830241 在线交流,添加 ledongmao 微信 - -2. 到 [项目语雀知识库](https://www.yuque.com/atorber/oegota/ibnui5v8mob11d70) 查看常用问题 - -3. 提交一个issues - -## 效果展示 - -去 [效果展示图文](https://www.yuque.com/atorber/oegota/tbsokg3pqu5vk50y) 查看 - -## 二次开发 - -此项目只是提供了一个简单的使用微信机器人和智能对话平台实现的QA系统。如果有兴趣,可以继续学习微信对话开放平台的高级技能,实现诸如连续问答等高级功能,欢迎贡献你的创意。 - -此外要说明的是,项目中使用puppet-xp完全是出于免费的考虑,如果不考虑这一点的话,wechaty还有更好用的puppet,对于有能力的开发者来说可以根据实际情况替换。 - -### TODO LIST - -- 消息群发,通知消息同时发布到多个群 - -- 消息转发,按设定规则转发消息 - -- 使用VIKA托管配置文件 - -### 相关依赖 - -项目用到了一些免费且好用的开源项目和平台 - -> 如果你是团长可忽略此段内容,开发者可进一步了解 - -- [Wechaty](https://wechaty.js.org/) - - 只需几行代码,您就可以拥有一个功能齐全的聊天机器人 - -- [wechaty-puppet-xp](https://github.com/wechaty/puppet-xp) - - 可能是目前最好用的免费wechat机器人 - -- [wechaty-puppet-wechat](https://github.com/wechaty/puppet-wechat) - - 目前最简单的免费wechat机器人 - -- [微信对话开放平台](https://openai.weixin.qq.com/) - - 5分钟零基础免费一键搭建智能对话机器人,并应用于微信公众号、小程序、企业网站、APP等 - -- [vika维格表](https://spcp52tvpjhxm.com.vika.cn/?inviteCode=55152973) - - 将过去复杂的IT数据库技术,做得像表格一样简单(如果要注册,通过这个链接,或者使用邀请码 55152973 ) - -- [vue-im](https://github.com/polk6/vue-im) - - 由@polk6开源的客服web项目,实现客服后台回复咨询消息 diff --git a/WechatBot/chatflow/auto-linux.sh b/WechatBot/chatflow/auto-linux.sh deleted file mode 100644 index e69de29bb..000000000 diff --git a/WechatBot/chatflow/auto-macos.command b/WechatBot/chatflow/auto-macos.command deleted file mode 100644 index e69de29bb..000000000 diff --git a/WechatBot/chatflow/auto-windowns.bat b/WechatBot/chatflow/auto-windowns.bat deleted file mode 100755 index c33e8ec78..000000000 --- a/WechatBot/chatflow/auto-windowns.bat +++ /dev/null @@ -1,19 +0,0 @@ -@echo off - -echo "killing node.exe ..." - -taskkill /f /im node.exe - -echo "node.exe was killed successfully." - -echo "it will continue to start node.exe in 3 sec ..." - -@ping 127.0.0.1 -n 3 >nul - -cd /d %~dp0 - -npm run start - -echo "node.exe was started successfully." - -exit /b diff --git a/WechatBot/chatflow/cache/a.md b/WechatBot/chatflow/cache/a.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/WechatBot/chatflow/docs/.nojekyll b/WechatBot/chatflow/docs/.nojekyll deleted file mode 100644 index e69de29bb..000000000 diff --git a/WechatBot/chatflow/docs/CNAME b/WechatBot/chatflow/docs/CNAME deleted file mode 100644 index c45373646..000000000 --- a/WechatBot/chatflow/docs/CNAME +++ /dev/null @@ -1 +0,0 @@ -qabot.vlist.cc \ No newline at end of file diff --git a/WechatBot/chatflow/docs/README.md b/WechatBot/chatflow/docs/README.md deleted file mode 100644 index 2c544ddff..000000000 --- a/WechatBot/chatflow/docs/README.md +++ /dev/null @@ -1,429 +0,0 @@ -## 简介 - -> 最新文档已迁移至语雀,请移步 https://www.yuque.com/atorber/oegota - -本项目使用wechat机器人快速实现一个免费的QA问答系统,如果你是一个社群工作者、拼团团长、业务群运营经理,使用这个项目可以帮助你解决一些重复性问答。 - -乐大喜奔,已适配网页版微信,linux、mac、Windows均可运行。 - -### 功能列表 - -|功能|描述| -|--|--| -| 智能问答|可以自定义问答内容,智能匹配答案,支持相似问题匹配,例如“什么时候到货?”“亲,几时到货”“亲,什么时候到货”均能匹配(基于微信对话开放平台,免费)| -|千群千面|多个群相同问题不同回答内容,例如“何时到货?”,A群中回答“今天到”,B群中回答“明天到货”| -|免打扰|使用“QA+群ID+回答内容”匹配群,未配置问题答案的群不会受到机器人干扰| -|非群主链接检测|支持非群主小程序卡片、网页链接分享检测,自动提醒、警告发送者撤回| -|团购订单转换|支持快团团订货单转换,原始表发送到群即可自动转换为按楼栋统计表| -|消息存档|群聊天消息存档到表格(基于vika维格表,免费)| -|客服后台|简单客服后台,可以把群内消息按发言人列表区分| - -### TODO LIST - -- 消息群发,通知消息同时发布到多个群 - -- 消息转发,按设定规则转发消息 - -- 使用VIKA托管配置文件 - -### 相关依赖 - -项目用到了一些免费且好用的开源项目和平台 - -> 如果你是团长可忽略此段内容,开发者可进一步了解 - -- [Wechaty](https://wechaty.js.org/) —— 只需几行代码,您就可以拥有一个功能齐全的聊天机器人 - -- [wechaty-puppet-xp](https://github.com/wechaty/puppet-xp) —— 可能是目前最好用的免费wechat机器人 - -- [wechaty-puppet-wechat](https://github.com/wechaty/puppet-wechat) —— 目前最简单的免费wechat机器人 - -- [微信对话开放平台](https://openai.weixin.qq.com/) —— 5分钟零基础免费一键搭建智能对话机器人,并应用于微信公众号、小程序、企业网站、APP等 - -- [vika维格表](https://spcp52tvpjhxm.com.vika.cn/?inviteCode=55152973) —— 将过去复杂的IT数据库技术,做得像表格一样简单(如果要注册,通过这个链接,或者使用邀请码 55152973 ) - -- [vue-im](https://github.com/polk6/vue-im) —— 由@polk6开源的客服web项目,实现客服后台回复咨询消息 - -### 视频演示 - -#### 部署运行 - -
- -
- -#### 功能演示 - -
- -
- -#### 客服系统 - -
- -
- -## 快速开始 - -1. 下载源码并安装依赖 - -``` -git clone https://github.com/choogoo/wechat-openai-qa-bot.git -cd ./wechat-openai-qa-bot -npm install -``` - -2. 分别登陆[微信对话开放平台](https://openai.weixin.qq.com/)和[vika维格表](https://spcp52tvpjhxm.com.vika.cn/?inviteCode=55152973)官网注册账号并获取token - -3. 在电脑上登陆微信,微信版本必须为[WeChatSetup-v3.3.0.115.exe](https://github.com/wechaty/wechaty-puppet-xp/releases/download/v0.5/WeChatSetup-v3.3.0.115.exe) - -4. 修改./config.js配置文件 - -快速开始仅需要修改VIKA_TOKEN、VIKA_SPACENAME配置项,其他配置项暂时无需修改 - -``` -/* eslint-disable sort-keys */ -// 配置文件,所有配置必须齐全,补充空白配置项,其他配置项可按需要修改 -const configs = { - VIKA_TOKEN: '替换成自己的维格表token', // VIKA维格表token - VIKA_SPACENAME: '替换成你的维格表空间名称', // VIKA维格表空间名称,修改为自己的空间名称 -} - -export default configs -``` - -> 只有加入到roomWhiteList里的群才会开启只能问答机器人 - -5. 初始化系统表,先运行,系统会自动在维格表中创建好初始化表格 - -``` -npm run sys-init -``` - -image - -在维格表查看系统表是否创建成功 - -image - -6. 设置使用的puppet,程序默认使用wechaty-puppet-xp(仅Windows系统下可使用),mac、linux系统需切换到wechaty-puppet-xp或wechaty-puppet-padlocal - -> 快速启用可使用免费的wechaty-puppet-xp - -image - -7. 启动程序 - -``` -npm start -``` - -看到如下界面,说明运行成功了 - -image - -8.开启智能问答功能 - -8.1 设置微信对话平台token,填写"系统配置表"中的 【对话平台token】、【对话平台EncodingAESKey】并开启智能问答 - -image - -8.2 设置群白名单,将群加入到问答白名单,在“群白名单”表中,加入需要开启的群ID(roomid),群ID在消息中查看(在群里发一条消息,然后控制台查看或在维格表中查找) - -- 获取群ID - -image - -image - -- 添加白名单 - -![image](https://user-images.githubusercontent.com/104893934/203492852-95c083dd-6357-43ec-bba6-6170f1d47cd3.png) - -8.3 在微信对话平台中录入问答内容,以群名称建立分类,问答时会优先匹配群名称对应的分类,匹配不到时匹配【通用问题】分类 - -image - -8.4 重启程序,在指定群测试问答 - -## 使用环境变量启动 - -> 也可以不使用配置文件,通过配置环境变量启动 - -Mac、Linux操作系统下运行(仅支持使用wechaty-puppet-wechat和wechaty-puppet-padlocal) - -``` -export VIKA_TOKEN="替换成自己的维格表token" -export VIKA_SPACENAME="替换成你的维格表空间名称" -npm run sys-init -npm start -``` - -Windows操作系统下运行(支持使用wechaty-puppet-xp、wechaty-puppet-wechat、wechaty-puppet-padlocal) - -推荐使用 wechaty-puppet-xp - -``` -set VIKA_TOKEN="替换成自己的维格表token" -set VIKA_SPACENAME="替换成你的维格表空间名称" -npm run sys-init -npm run start -``` - -## 使用教程 - -> 提示:2022-5-13最新版本里需要在config.js文件中修改自己的微信对话开放平台、VIKA维格表的token,维格表token的获取方式请自行浏览官方网站,同时需要在维格表中创建一个名为 mp-chatbot 的空间,关于维格表的操作可以参考[wechaty-vika-link](https://github.com/atorber/wechaty-vika-link) - -### 环境准备 - -1. clone (下载)项目代码,运行以下命令: - -``` -git clone https://github.com/atorber/wechat-openai-qa-bot.git -``` - -考虑对git不熟悉的用户,可以在页面直接下载项目.zip到电脑上,下载后解压缩即可 - - - -下载解压缩之后的目录 - - - -2. 安装nodejs,项目的tools目录下有相应的安装包node-v16.15.0-x64.zip,解压缩并安装; - -3. 在电脑上登陆微信,微信版本必须为[WeChatSetup-v3.6.0.18.exe](https://github.com/tom-snow/wechat-windows-versions/releases/download/v3.6.0.18/WeChatSetup-3.6.0.18.exe) - -> 特别注意目前支持的微信客户端版本为 WeChatSetup-v3.6.0.18,如果电脑上已经安装了其他版本的微信,需要卸载之后安装项目中的版本 - -### 安装依赖 - -1. 假设当前系统为win10,在系统搜索栏中输入 powershell ,选择第一个结果 - - - -2. 打开Windows PoweShell - - - - -3. 到项目目录下用鼠标点击地址栏复制文件路径,例如当前的路径为 C:\Users\wechaty\Documents\GitHub\wechaty-wx-openai-link - -> 一定要查看自己的路径,不要直接copy - - - - -4. 在复制如下命令在Windows PoweShell中执行 - -``` -cd C:\Users\wechaty\Documents\GitHub\wechat-openai-qa-bot -npm install -``` - -### 问答平台注册 - -1. 微信对话开放平台注册,访问[https://openai.weixin.qq.com/](https://openai.weixin.qq.com/),导入示例数据及获取token - -> 示例问答中的 xxx@chatroom 为你需要引入QA的群,此处特别注意,必须在回答中以 **QA+xxx@chatroom+回答内容** 才能达到在不同的群内有不同回答的效果 - -2. 扫码登陆 - - - - -3. 填写机器人信息 - - - -4. 添加问答 - -在微信对话开放平台中添加问题,创建【通用问题】分类,所有群和好友可匹配,使用群名称创建分类,仅匹配对应群 - -5. 选择项目中tools目录下的示例问答 - - - -6. 上线发布 - - - -7. 发布成功 - - - - -8. 应用绑定,获取token - - - - -9. 填写申请信息,提交后马上就会审核通过 - - - - -10. 开通成功,复制token备用 - - - -### 维格表注册 - -维格表token的获取方式请自行浏览[vika维格表](https://spcp52tvpjhxm.com.vika.cn/?inviteCode=55152973)官方网站,同时需要在维格表中创建一个名为 mp-chatbot 的空间,关于维格表的操作可以参考[wechaty-vika-link](https://github.com/atorber/wechaty-vika-link/tree/anti-epidemic) - -### 修改配置 - -在获取token之后,更新token到配置文件中,准备启动系统 - -``` -// 配置文件,所有配置必须齐全,补充空白配置项,其他配置项可按需要修改 -const configs = { - VIKA_TOKEN: '替换成自己的维格表token', // VIKA维格表token - VIKA_SPACENAME: '替换成你的维格表空间名称', // VIKA维格表空间名称,修改为自己的空间名称 -} - -export default configs -``` - -### 启动程序 - -执行如下命令 - -``` -npm run start -``` - -顺利的话,恭喜你已经拥有一个QA机器人,接下来你需要在简单问答中继续导入你需要的问答内容 - -- 程序运行成功 - - - -### 客服系统 - -1. 修改“系统配置”表中的为`IM对话`为开启 - -2. 启动vue-im再启动主程序 - -``` -cd ./vue-im -npm install -npm run dev -``` - -3. 启动后浏览器中访问 http://localhost:8080/#/imServer 即可打开客服管理后台 - -4. 到根目录运行`npm run start`启动主程序 - -## 效果展示 - -### 群消息存档 - - - -### 自动问答回复 - - - -### 问题管理 - - - -### 编辑问题 - - - -### 非本群链接检测 - - - -### 客服后台系统 - - - -### 快团团订单自动汇总 - -- 发送原始订单表到群内自动生成按楼栋汇总好的表格 - - - -- 快团团后台导出的全部字段原始表 - - - -- 生成汇总表 - - - -## DEMO体验 - -如果你对以上操作感觉困难而不能使用,添加ledongmao微信,提供你需要的问答清单,我们可以提供一个免费的机器人供体验 - -当然,最好的反馈方式是在这里 https://github.com/choogoo/wechat-openai-qa-bot/issues 提交一个issues - -## 在线交流 -QQ群 583830241 - -## 二次开发 - -此项目只是提供了一个简单的使用微信机器人和智能对话平台实现的QA系统。如果有兴趣,可以继续学习微信对话开放平台的高级技能,实现诸如连续问答等高级功能,欢迎贡献你的创意。 - -此外要说明的是,项目中使用puppet-xp完全是出于免费的考虑,如果不考虑这一点的话,wechaty还有更好用的puppet,对于有能力的开发者来说可以根据实际情况替换。 - -## 常见问题 - -**遇到任何报错,一定记得第一时间查看报错信息,善用翻译工具,即使看不懂,起码复制或截图,否则没有人能仅凭几句简单描述帮你解决问题** - -### 1. 环境依赖 - -- nodejs > 16 且 npm > 7 - -使用wechaty-puppet-xp时需使用Windows > 10操作 - -### 2. 切换网页版微信 - -在”系统配置“表中修改”puppet“并重启程序 - -### 3. 安装依赖时提示需要Visual Studio 2017+ - -去微软官网下载[Visual Studio 2022](https://visualstudio.microsoft.com/zh-hans/thank-you-downloading-visual-studio/?sku=Community&channel=Release&version=VS2022&source=VSLandingPage&cid=2030&passive=false)并安装 - - - -### 4. ubuntu系统下使用wechaty-puppet-wechat缺少依赖解决方法 - -根据报错信息参考 https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md - -尝试运行如下命令 - -``` -sudo apt install gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget libgbm1 -``` - -安装单个依赖 - -``` -sudo apt install libgbm1 -``` - -### 5. mac M1环境下运行报错 - -报错信息 - -``` -09:24:09 INFO Starter Bot Started. -09:24:26 ERR PuppetWeChatBridge start() exception: TimeoutError: Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r982053 is guaranteed to work. -09:24:26 ERR PuppetWeChat initBridge() exception: Timed out after 30000 ms while trying to connect to the browser! Only Chrome at revision r982053 is guaranteed to work. -09:24:26 ERR PuppetWeChat initBridge() this.bridge.stop() rejection: Error: no page -``` - -解决方案,设置环境变量 `export PUPPETEER_EXPERIMENTAL_CHROMIUM_MAC_ARM=RAM` - -参考 https://www.npmjs.com/package/puppeteer?activeTab=readme - -### 6. 如果折腾半天也没有搞定,可以联系远程协助指导安装 - -提前下载好[向日葵](https://sunlogin.oray.com/download)软件并注册号账号,登陆后发控制码 - - diff --git a/WechatBot/chatflow/docs/_coverpage.md b/WechatBot/chatflow/docs/_coverpage.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/WechatBot/chatflow/docs/_navbar.md b/WechatBot/chatflow/docs/_navbar.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/WechatBot/chatflow/docs/_sidebar.md b/WechatBot/chatflow/docs/_sidebar.md deleted file mode 100644 index e69de29bb..000000000 diff --git a/WechatBot/chatflow/docs/image/text/qa-demo.md b/WechatBot/chatflow/docs/image/text/qa-demo.md deleted file mode 100644 index 482c8b9ad..000000000 --- a/WechatBot/chatflow/docs/image/text/qa-demo.md +++ /dev/null @@ -1,21 +0,0 @@ -大家好,今天给大家演示一下微信智能问答机器人,如果你是一个社群工作者、拼团团长、业务群运营经理,使用这个项目可以帮助你解决一些重复性问答。 -QA系统由微信开放对话平台提供,由后台系统可以操作,数据存储和配置使用维格表实现。 -下面为大家演示几个核心功能: -一 到货信息看板和自动问答 -二 通知公告自动问答 -先看一下效果,群成员在群内发送问题内容,机器会将包含链接的回答内容自动回复发送,点击链接可以查看详情 -实现以上功能很简单,下面我来实际操作演示一下 -首先,我们需要在维格表后台发布一条公告,我们以核酸检测通知为例,选择发布日期、填写发布内容和发布者,提交之后,通知内容可以在列表中显示 -然后,我们再继续添加一个商品,输入商品名称苹果,提交,苹果被添加到商品列表 -接着,我们继续添加一条到货信息,选择日期,选择商品,商品可以选择多个,设置状态为待发货,提交之后,我们在到货信息列表中可以看到相关信息,可以以不同的视图模式显示 -以上信息创建完毕后,我们在问答系统中配置相应问题,这样机器人就可以在群内自动回复了 -复制一下到货信息列表的分享链接地址,在问答系统中创建一个问题 问题的内容是 ”什么时候到货“,把刚刚复制的链接替换到问题的回复内容中 -选择相似问题,系统推荐,系统会自动推荐一些相似的问题,按需要进行勾选,保存一下 -继续添加一个社区通知问答,到问题表中复制通知公告的分享链接地址,编辑社区通知问题,将链接替换到问题答案中,保存问题 -以上,我们已经添加了 ”什么时候到货“和”社区通知“ 两个问题, -问题保存后需要发布上线一下,点击左侧的发布管理 上线发布 发布,提示发布成功后,我们在微信群众看一下效果 -发送消息内容 社区公告,机器人会自动返回回答内容; -发送 什么时候到货,机器人自动回复到货信息 -点击回复中的链接地址,就可以查看相关内容了,在电脑网页中的显示是这样,卡片形式,很清晰明了 -我们切换到手机模式看一下,卡片视图,也不错 -只需要以上简单几步,就完成了两个自动通知场景的构建,欢迎大家进一步关注Wechat Openai QA Bot项目,如果觉得可以,给一个star \ No newline at end of file diff --git a/WechatBot/chatflow/docs/index.html b/WechatBot/chatflow/docs/index.html deleted file mode 100644 index d6af0dfd1..000000000 --- a/WechatBot/chatflow/docs/index.html +++ /dev/null @@ -1,244 +0,0 @@ - - - - - 微信智能问答系统 - - - - - - - - - - - - - - -
Loading ...
- - - - - - - - - - - - - - diff --git a/WechatBot/chatflow/download-install-and-run.bat b/WechatBot/chatflow/download-install-and-run.bat deleted file mode 100755 index ce8298cd1..000000000 --- a/WechatBot/chatflow/download-install-and-run.bat +++ /dev/null @@ -1,43 +0,0 @@ -@echo off - -REM 检查 Node.js 是否已经安装 -where node >nul 2>nul -if %errorlevel% equ 0 ( - goto run_program -) else ( - goto install_node -) - -:install_node -REM 下载 Node.js 安装程序 -set NODE_VERSION=16.13.2 -set NODE_FILENAME=node-v%NODE_VERSION%-x64.msi -set NODE_URL=https://nodejs.org/dist/v%NODE_VERSION%/%NODE_FILENAME% - -REM 检查文件是否已经存在 -if exist %NODE_FILENAME% ( - goto install_node -) else ( - goto download_node -) - -:download_node -REM 下载 Node.js 安装程序 -powershell -Command "& {Invoke-WebRequest -Uri '%NODE_URL%' -OutFile '%NODE_FILENAME%'}" -goto install_node - -:install_node -REM 安装 Node.js -msiexec /i %NODE_FILENAME% /qn - -:run_program -REM 安装依赖并运行程序 -call npm install -call npm run sys-init -call npm start - -echo "bot was started successfully." - -pause - -exit /b \ No newline at end of file diff --git a/WechatBot/chatflow/download-install-and-run.command b/WechatBot/chatflow/download-install-and-run.command deleted file mode 100644 index 3c05fff40..000000000 --- a/WechatBot/chatflow/download-install-and-run.command +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -# 检查 Node.js 是否已经安装 -function check_node { - if command -v node > /dev/null 2>&1; then - # 如果已经安装,则直接运行程序 - run_program - else - # 如果未安装,则下载并安装 Node.js - install_node - fi -} - -install_node() { - # 下载 Node.js 安装程序 - NODE_VERSION=16.13.2 - NODE_FILENAME=node-v${NODE_VERSION}-darwin-x64.tar.gz - NODE_URL=https://nodejs.org/dist/v${NODE_VERSION}/${NODE_FILENAME} - - # 检查文件是否已经存在 - if [ -f "${NODE_FILENAME}" ]; then - # 如果已经存在,则直接安装 Node.js - install_node_from_file - else - # 如果不存在,则先下载 Node.js 安装程序,再安装 Node.js - download_node - install_node_from_file - fi -} - -download_node() { - # 下载 Node.js 安装程序 - curl -o "${NODE_FILENAME}" "${NODE_URL}" -} - -install_node_from_file() { - # 解压 Node.js 安装程序,并将可执行文件添加到 PATH 环境变量中 - tar -xzf "${NODE_FILENAME}" - export PATH="$PWD/node-v${NODE_VERSION}-darwin-x64/bin:$PATH" -} - -run_program() { - SCRIPT_RELATIVE_DIR=$(dirname "${BASH_SOURCE}") - cd $SCRIPT_RELATIVE_DIR - # 运行程序 - npm install - npm run sys-init - npm start - echo "bot was started successfully." -} - -# 调用检查 Node.js 的函数 -check_node - -# 等待用户按下回车键后退出脚本 -read -p "Press [Enter] key to exit." -exit 0 \ No newline at end of file diff --git a/WechatBot/chatflow/download-install-and-run.sh b/WechatBot/chatflow/download-install-and-run.sh deleted file mode 100644 index 3c05fff40..000000000 --- a/WechatBot/chatflow/download-install-and-run.sh +++ /dev/null @@ -1,57 +0,0 @@ -#!/bin/bash - -# 检查 Node.js 是否已经安装 -function check_node { - if command -v node > /dev/null 2>&1; then - # 如果已经安装,则直接运行程序 - run_program - else - # 如果未安装,则下载并安装 Node.js - install_node - fi -} - -install_node() { - # 下载 Node.js 安装程序 - NODE_VERSION=16.13.2 - NODE_FILENAME=node-v${NODE_VERSION}-darwin-x64.tar.gz - NODE_URL=https://nodejs.org/dist/v${NODE_VERSION}/${NODE_FILENAME} - - # 检查文件是否已经存在 - if [ -f "${NODE_FILENAME}" ]; then - # 如果已经存在,则直接安装 Node.js - install_node_from_file - else - # 如果不存在,则先下载 Node.js 安装程序,再安装 Node.js - download_node - install_node_from_file - fi -} - -download_node() { - # 下载 Node.js 安装程序 - curl -o "${NODE_FILENAME}" "${NODE_URL}" -} - -install_node_from_file() { - # 解压 Node.js 安装程序,并将可执行文件添加到 PATH 环境变量中 - tar -xzf "${NODE_FILENAME}" - export PATH="$PWD/node-v${NODE_VERSION}-darwin-x64/bin:$PATH" -} - -run_program() { - SCRIPT_RELATIVE_DIR=$(dirname "${BASH_SOURCE}") - cd $SCRIPT_RELATIVE_DIR - # 运行程序 - npm install - npm run sys-init - npm start - echo "bot was started successfully." -} - -# 调用检查 Node.js 的函数 -check_node - -# 等待用户按下回车键后退出脚本 -read -p "Press [Enter] key to exit." -exit 0 \ No newline at end of file diff --git a/WechatBot/chatflow/package.json b/WechatBot/chatflow/package.json deleted file mode 100644 index c547502eb..000000000 --- a/WechatBot/chatflow/package.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "name": "chatflow", - "version": "1.11.3", - "description": "openai-qa-bot", - "type": "module", - "engines": { - "node": ">=16", - "npm": ">=7" - }, - "scripts": { - "start": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" node ./src/bot.ts", - "start:index": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" node ./src/index.ts", - "start:notls": "cross-env WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENT=true NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" node ./src/bot.ts", - "start:store": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" node ./src/plugins/store-messages-locally.ts", - "start:meet": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" node ./src/plugins/store-messages-locally.ts", - "sys-init": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" node ./src/init.ts", - "init": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" node ./src/init.ts", - "checker": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" node ./src/puppet-checker.ts", - "rm-temp": "rm -r temp; mkdir temp", - "rm-cache": "rm -r cache; mkdir cache", - "lint": "npm run lint:es && npm run lint:ts && npm run lint:md", - "lint:md": "markdownlint README.md", - "lint:ts": "tsc --isolatedModules --noEmit", - "lint:es": "eslint \"src/**/*.ts\" \"tests/**/*.spec.ts\" --ignore-pattern tests/fixtures/", - "lint-fix": "eslint --fix \"src/**/*.ts\"" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/atorber/wechaty-wx-openai-link.git" - }, - "keywords": [], - "author": "atorber ", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/atorber/wechaty-wx-openai-link/issues" - }, - "homepage": "https://github.com/atorber/wechaty-wx-openai-link#readme", - "dependencies": { - "@vikadata/vika": "^1.0.5", - "axios": "^1.4.0", - "chatgpt": "^1.1.3", - "dotenv": "^16.0.0", - "exceljs": "^4.3.0", - "fast-csv": "^4.3.6", - "file-box": "^1.4.12", - "fs": "^0.0.1-security", - "html-to-docx": "^1.8.0", - "install": "^0.13.0", - "moment": "^2.29.1", - "mqtt": "^4.3.7", - "nedb-promises": "^6.2.1", - "njwt": "^1.2.0", - "node-schedule": "^2.1.0", - "node-xlsx": "^0.21.0", - "npm": "^9.6.4", - "openai-sdk": "^1.0.1", - "qrcode-terminal": "^0.12.0", - "request": "^2.88.0", - "request-promise": "^4.2.6", - "socket.io": "^2.1.0", - "socket.io-client": "^2.4.0", - "uuid": "^9.0.0", - "wechaty": "^1.20.2", - "wechaty-plugin-contrib": "^1.0.18", - "wechaty-puppet-engine": "^1.0.20", - "wechaty-puppet-padlocal": "^1.11.13", - "wechaty-puppet-service": "^1.19.8", - "wechaty-puppet-wechat4u": "^1.13.15", - "wechaty-puppet-xp": "^1.12.7", - "xlsx": "^0.18.5" - }, - "devDependencies": { - "@chatie/eslint-config": "^1.0.4", - "@chatie/git-scripts": "^0.6.2", - "@chatie/tsconfig": "^4.6.3", - "@types/jest": "^29.2.3", - "@types/node": "^18.11.9", - "@types/qrcode-terminal": "^0.12.0", - "@types/request-promise": "^4.1.48", - "check-node-version": "^4.2.1", - "cross-env": "^7.0.3", - "is-pr": "^2.0.0", - "ts-node": "^10.9.1", - "typescript": "^4.9.3" - }, - "git": { - "scripts": { - "pre-push": "npx git-scripts-pre-push" - } - } -} \ No newline at end of file diff --git a/WechatBot/chatflow/qa-bot.memory-card.json b/WechatBot/chatflow/qa-bot.memory-card.json deleted file mode 100644 index 9d23c1969..000000000 --- a/WechatBot/chatflow/qa-bot.memory-card.json +++ /dev/null @@ -1 +0,0 @@ -{"\rpuppet\nPUPPET-WECHAT4U":{"PROP":{"uuid":"4aaF2zrffw==","uin":"1293924965","sid":"qSZB88gRyAsHf826","skey":"@crypt_14bdc781_229f1df13eb6114915f1bfb951f410b8","passTicket":"99NQuqO5R3elYWgx%2FApOjvSgufdPi8u3PKbfIJ0IoA0qprxu51FrOJenbAT3o%2BIx","formatedSyncKey":"1_811612067|2_811612069|3_811612071|1000_1692280803","webwxDataTicket":"gSc2UlD6BxsPZd3DBlV1+yhY","syncKey":{"Count":4,"List":[{"Key":1,"Val":811612121},{"Key":2,"Val":811612136},{"Key":3,"Val":811612123},{"Key":1000,"Val":1692367204}]}},"CONF":{"origin":"https://wx2.qq.com","baseUri":"https://wx2.qq.com/cgi-bin/mmwebwx-bin","API_jsLogin":"https://login.wx2.qq.com/jslogin?appid=wx782c26e4c19acffb&fun=new&lang=zh-CN&redirect_uri=https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxnewloginpage?mod=desktop","API_login":"https://login.wx2.qq.com/cgi-bin/mmwebwx-bin/login","API_synccheck":"https://webpush.wx2.qq.com/cgi-bin/mmwebwx-bin/synccheck","API_webwxdownloadmedia":"https://file.wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetmedia","API_webwxuploadmedia":"https://file.wx2.qq.com/cgi-bin/mmwebwx-bin/webwxuploadmedia","API_webwxpreview":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxpreview","API_webwxinit":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxinit","API_webwxgetcontact":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetcontact","API_webwxsync":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsync","API_webwxbatchgetcontact":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxbatchgetcontact","API_webwxgeticon":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgeticon","API_webwxsendmsg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsg","API_webwxsendmsgimg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsgimg","API_webwxsendmsgvedio":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendvideomsg","API_webwxsendemoticon":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendemoticon","API_webwxsendappmsg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendappmsg","API_webwxgetheadimg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetheadimg","API_webwxgetmsgimg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetmsgimg","API_webwxgetmedia":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetmedia","API_webwxgetvideo":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetvideo","API_webwxlogout":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxlogout","API_webwxgetvoice":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetvoice","API_webwxupdatechatroom":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxupdatechatroom","API_webwxcreatechatroom":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxcreatechatroom","API_webwxstatusnotify":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxstatusnotify","API_webwxcheckurl":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxcheckurl","API_webwxverifyuser":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxverifyuser","API_webwxfeedback":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendfeedback","API_webwxreport":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxstatreport","API_webwxsearch":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsearchcontact","API_webwxoplog":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxoplog","API_checkupload":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxcheckupload","API_webwxrevokemsg":"https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxrevokemsg","LANG":"zh-CN","EMOTICON_REG":"img\\sclass=\"(qq)?emoji (qq)?emoji([\\da-f]*?)\"\\s(text=\"[^<>(\\s]*\")?\\s?src=\"[^<>(\\s]*\"\\s*","RES_PATH":"/zh_CN/htmledition/v2/","oplogCmdId":{"TOPCONTACT":3,"MODREMARKNAME":2},"SP_CONTACT_FILE_HELPER":"filehelper","SP_CONTACT_NEWSAPP":"newsapp","SP_CONTACT_RECOMMEND_HELPER":"fmessage","CONTACTFLAG_CONTACT":1,"CONTACTFLAG_CHATCONTACT":2,"CONTACTFLAG_CHATROOMCONTACT":4,"CONTACTFLAG_BLACKLISTCONTACT":8,"CONTACTFLAG_DOMAINCONTACT":16,"CONTACTFLAG_HIDECONTACT":32,"CONTACTFLAG_FAVOURCONTACT":64,"CONTACTFLAG_3RDAPPCONTACT":128,"CONTACTFLAG_SNSBLACKLISTCONTACT":256,"CONTACTFLAG_NOTIFYCLOSECONTACT":512,"CONTACTFLAG_TOPCONTACT":2048,"MM_USERATTRVERIFYFALG_BIZ":1,"MM_USERATTRVERIFYFALG_FAMOUS":2,"MM_USERATTRVERIFYFALG_BIZ_BIG":4,"MM_USERATTRVERIFYFALG_BIZ_BRAND":8,"MM_USERATTRVERIFYFALG_BIZ_VERIFIED":16,"MM_DATA_TEXT":1,"MM_DATA_HTML":2,"MM_DATA_IMG":3,"MM_DATA_PRIVATEMSG_TEXT":11,"MM_DATA_PRIVATEMSG_HTML":12,"MM_DATA_PRIVATEMSG_IMG":13,"MM_DATA_VOICEMSG":34,"MM_DATA_PUSHMAIL":35,"MM_DATA_QMSG":36,"MM_DATA_VERIFYMSG":37,"MM_DATA_PUSHSYSTEMMSG":38,"MM_DATA_QQLIXIANMSG_IMG":39,"MM_DATA_POSSIBLEFRIEND_MSG":40,"MM_DATA_SHARECARD":42,"MM_DATA_VIDEO":43,"MM_DATA_VIDEO_IPHONE_EXPORT":44,"MM_DATA_EMOJI":47,"MM_DATA_LOCATION":48,"MM_DATA_APPMSG":49,"MM_DATA_VOIPMSG":50,"MM_DATA_STATUSNOTIFY":51,"MM_DATA_VOIPNOTIFY":52,"MM_DATA_VOIPINVITE":53,"MM_DATA_MICROVIDEO":62,"MM_DATA_SYSNOTICE":9999,"MM_DATA_SYS":10000,"MM_DATA_RECALLED":10002,"MSGTYPE_TEXT":1,"MSGTYPE_IMAGE":3,"MSGTYPE_VOICE":34,"MSGTYPE_VIDEO":43,"MSGTYPE_MICROVIDEO":62,"MSGTYPE_EMOTICON":47,"MSGTYPE_APP":49,"MSGTYPE_VOIPMSG":50,"MSGTYPE_VOIPNOTIFY":52,"MSGTYPE_VOIPINVITE":53,"MSGTYPE_LOCATION":48,"MSGTYPE_STATUSNOTIFY":51,"MSGTYPE_SYSNOTICE":9999,"MSGTYPE_POSSIBLEFRIEND_MSG":40,"MSGTYPE_VERIFYMSG":37,"MSGTYPE_SHARECARD":42,"MSGTYPE_SYS":10000,"MSGTYPE_RECALLED":10002,"MSG_SEND_STATUS_READY":0,"MSG_SEND_STATUS_SENDING":1,"MSG_SEND_STATUS_SUCC":2,"MSG_SEND_STATUS_FAIL":5,"APPMSGTYPE_TEXT":1,"APPMSGTYPE_IMG":2,"APPMSGTYPE_AUDIO":3,"APPMSGTYPE_VIDEO":4,"APPMSGTYPE_URL":5,"APPMSGTYPE_ATTACH":6,"APPMSGTYPE_OPEN":7,"APPMSGTYPE_EMOJI":8,"APPMSGTYPE_VOICE_REMIND":9,"APPMSGTYPE_SCAN_GOOD":10,"APPMSGTYPE_GOOD":13,"APPMSGTYPE_EMOTION":15,"APPMSGTYPE_CARD_TICKET":16,"APPMSGTYPE_REALTIME_SHARE_LOCATION":17,"APPMSGTYPE_TRANSFERS":2000,"APPMSGTYPE_RED_ENVELOPES":2001,"APPMSGTYPE_READER_TYPE":100001,"UPLOAD_MEDIA_TYPE_IMAGE":1,"UPLOAD_MEDIA_TYPE_VIDEO":2,"UPLOAD_MEDIA_TYPE_AUDIO":3,"UPLOAD_MEDIA_TYPE_ATTACHMENT":4,"PROFILE_BITFLAG_NOCHANGE":0,"PROFILE_BITFLAG_CHANGE":190,"CHATROOM_NOTIFY_OPEN":1,"CHATROOM_NOTIFY_CLOSE":0,"StatusNotifyCode_READED":1,"StatusNotifyCode_ENTER_SESSION":2,"StatusNotifyCode_INITED":3,"StatusNotifyCode_SYNC_CONV":4,"StatusNotifyCode_QUIT_SESSION":5,"VERIFYUSER_OPCODE_ADDCONTACT":1,"VERIFYUSER_OPCODE_SENDREQUEST":2,"VERIFYUSER_OPCODE_VERIFYOK":3,"VERIFYUSER_OPCODE_VERIFYREJECT":4,"VERIFYUSER_OPCODE_SENDERREPLY":5,"VERIFYUSER_OPCODE_RECVERREPLY":6,"ADDSCENE_PF_QQ":4,"ADDSCENE_PF_EMAIL":5,"ADDSCENE_PF_CONTACT":6,"ADDSCENE_PF_WEIXIN":7,"ADDSCENE_PF_GROUP":8,"ADDSCENE_PF_UNKNOWN":9,"ADDSCENE_PF_MOBILE":10,"ADDSCENE_PF_WEB":33,"TIMEOUT_SYNC_CHECK":0,"EMOJI_FLAG_GIF":2,"KEYCODE_BACKSPACE":8,"KEYCODE_ENTER":13,"KEYCODE_SHIFT":16,"KEYCODE_ESC":27,"KEYCODE_DELETE":34,"KEYCODE_ARROW_LEFT":37,"KEYCODE_ARROW_UP":38,"KEYCODE_ARROW_RIGHT":39,"KEYCODE_ARROW_DOWN":40,"KEYCODE_NUM2":50,"KEYCODE_AT":64,"KEYCODE_NUM_ADD":107,"KEYCODE_NUM_MINUS":109,"KEYCODE_ADD":187,"KEYCODE_MINUS":189,"MM_NOTIFY_CLOSE":0,"MM_NOTIFY_OPEN":1,"MM_SOUND_CLOSE":0,"MM_SOUND_OPEN":1,"MM_SEND_FILE_STATUS_QUEUED":0,"MM_SEND_FILE_STATUS_SENDING":1,"MM_SEND_FILE_STATUS_SUCCESS":2,"MM_SEND_FILE_STATUS_FAIL":3,"MM_SEND_FILE_STATUS_CANCEL":4,"MM_EMOTICON_WEB":"_web","SYNCCHECK_RET_SUCCESS":0,"SYNCCHECK_RET_LOGOUT":1101,"SYNCCHECK_SELECTOR_NORMAL":0,"SYNCCHECK_SELECTOR_MSG":2,"SYNCCHECK_SELECTOR_MOBILEOPEN":7,"STATE":{"init":"init","uuid":"uuid","login":"login","logout":"logout"},"SPECIALUSERS":["newsapp","fmessage","filehelper","weibo","qqmail","fmessage","tmessage","qmessage","qqsync","floatbottle","lbsapp","shakeapp","medianote","qqfriend","readerapp","blogapp","facebookapp","masssendapp","meishiapp","feedsapp","voip","blogappweixin","weixin","brandsessionholder","weixinreminder","wxid_novlwrv3lqwv11","gh_22b87fa7cb3c","officialaccounts","notification_messages","wxid_novlwrv3lqwv11","gh_22b87fa7cb3c","wxitil","userexperience_alarm","notification_messages"]},"COOKIE":{"pgv_pvi":"1058886856954307000","pgv_si":"s1751378655470825500","wxuin":"1293924965","wxsid":"qSZB88gRyAsHf826","wxloadtime":"1692368291","mm_lang":"zh-CN","webwx_data_ticket":"gSc2UlD6BxsPZd3DBlV1+yhY","webwxuvid":"9558a782487f3d48550bbde544ff493a484c7bba56ad9d8afd25bc65d003e977","webwx_auth_ticket":"CIsBENLX/+IGGmAwhFi8YdSRZHg/vvB+KeBgboQxlNINlpwygs9UGRuNhN/GTlybUuIS/qmTp8lW5F7gI9fdw14NeFpAafYGqOQ5XVXuUKetJX6ooC7zpnMR4I0xQqtTT02CBO1ypsSp6+E="},"user":{"Uin":1293924965,"UserName":"@669a8fb33cb3048268181e854fe5775bbb1470f402d61b63059cd09e1d358d5b","NickName":"旧物换新芽·星火集市机器人","HeadImgUrl":"/cgi-bin/mmwebwx-bin/webwxgeticon?seq=707947600&username=@669a8fb33cb3048268181e854fe5775bbb1470f402d61b63059cd09e1d358d5b&skey=@crypt_14bdc781_229f1df13eb6114915f1bfb951f410b8","HeadImgFlag":1,"SnsFlag":256}}} \ No newline at end of file diff --git a/WechatBot/chatflow/src/@types/index.d.ts b/WechatBot/chatflow/src/@types/index.d.ts deleted file mode 100644 index cde2fe918..000000000 --- a/WechatBot/chatflow/src/@types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module 'qrcode-terminal' diff --git a/WechatBot/chatflow/src/api/config.js b/WechatBot/chatflow/src/api/config.js deleted file mode 100755 index 69e507f33..000000000 --- a/WechatBot/chatflow/src/api/config.js +++ /dev/null @@ -1,90 +0,0 @@ -import nedb from '../db/nedb.js' -const cdb = nedb() -/** - * 添加配置文件 - * @param {*} config - */ -async function addConfig(info) { - try { - let doc = await cdb.insert(info) - return doc - } catch (error) { - console.log('插入数据错误', error) - } -} -/** - * 更新配置文件 - * @param {*} config - */ -async function updateConfig(config) { - try { - let res = await allConfig() - if (res) { - let up = await cdb.update({ id: config.id }, config) - return up - } else { - let add = await addConfig(config) - return add - } - } catch (error) { - console.log('配置文件更新失败', error) - } -} -/** - * 获取所有配置 - */ -async function allConfig() { - try { - let search = await cdb.find() - return search[0] - } catch (error) { - console.log('查询数据错误', error) - } -} -/** - * 每日任务 - */ -async function dayTaskSchedule() { - try { - let res = await cdb.find({}) - return res[0].dayTaskSchedule - } catch (error) { - console.log('获取每日任务', error) - } -} -/** - * 群资讯 - */ -async function roomNewsSchedule() { - try { - let res = await cdb.find.find({}) - return res[0].roomNewsSchedule - } catch (error) { - console.log('获取每日任务', error) - } -} -/** - * 群任务 - */ -async function roomTaskSchedule() { - try { - let res = await cdb.find.find({}) - return res[0].roomTaskSchedule - } catch (error) { - console.log('获取每日任务', error) - } -} -export { addConfig } -export { updateConfig } -export { allConfig } -export { dayTaskSchedule } -export { roomNewsSchedule } -export { roomTaskSchedule } -export default { - addConfig, - updateConfig, - allConfig, - dayTaskSchedule, - roomNewsSchedule, - roomTaskSchedule, -} diff --git a/WechatBot/chatflow/src/api/contact.js b/WechatBot/chatflow/src/api/contact.js deleted file mode 100755 index 98757ed58..000000000 --- a/WechatBot/chatflow/src/api/contact.js +++ /dev/null @@ -1,24 +0,0 @@ -import nedb from '../db/nedb.js' -const db = nedb() -async function addUser(info) { - try { - let doc = await db.insert(info) - return doc - } catch (error) { - console.log('插入数据错误', error) - } -} -async function getUser() { - try { - let search = await db.find({}) - return search[0] - } catch (error) { - console.log('查询数据错误', error) - } -} -export { addUser } -export { getUser } -export default { - addUser, - getUser, -} diff --git a/WechatBot/chatflow/src/api/room.js b/WechatBot/chatflow/src/api/room.js deleted file mode 100755 index 947698038..000000000 --- a/WechatBot/chatflow/src/api/room.js +++ /dev/null @@ -1,77 +0,0 @@ -import nedb from '../db/nedb.js' -import path from "path"; -import os from "os"; -const baseDir = path.join( - os.homedir(), - path.sep, - ".wechaty", - "wechaty-panel-cache", - path.sep, -); -const dbpath = baseDir + 'room.db' -const rdb = nedb(dbpath) - -/** - * 记录群聊天记录 记录格式 - * { roomName: '群名', roomId: '', content: '内容', contact: '用户名', wxid: '', time: '时间' } - * @param info - * @returns {Promise} - */ -export async function addRoomRecord(info) { - try { - let doc = await rdb.insert(info) - return doc - } catch (error) { - console.log('插入数据错误', error) - } -} - -/** - * 获取指定群的聊天记录 - * @param room - * @returns {Promise<*>} - */ -export async function getRoomRecord(roomName) { - try { - let search = await rdb.find({roomName}) - return search - } catch (error) { - console.log('查询数据错误', error) - } -} - -/** - * 清楚指定群的聊天记录 - * @param roomName - * @returns {Promise} - */ -export async function removeRecord(roomName) { - try { - let search = await rdb.remove({roomName}, {multi: true}) - return search - } catch (e) { - console.log("error", e); - } -} - -/** - * 获取指定群聊的所有聊天内容 - * @param rooName - * @param day 取的天数 - * @returns {Promise<*>} - */ -export async function getRoomRecordContent(rooName, day) { - try { - let list = await getRoomRecord(rooName) - list = list.filter(item=> { - return item.time >= new Date().getTime() - day * 24 * 60 * 60 * 1000 - }) - let word = '' - list.forEach((item)=> { - word = word + item.content - }) - return word - } catch (e) { - console.log("error", e); - } -} diff --git a/WechatBot/chatflow/src/bot.ts b/WechatBot/chatflow/src/bot.ts deleted file mode 100644 index 152599548..000000000 --- a/WechatBot/chatflow/src/bot.ts +++ /dev/null @@ -1,656 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -import 'dotenv/config.js' -// import fs from 'fs' -import { - Contact, - Message, - ScanStatus, - log, - // Room, - types, - Wechaty, - WechatyBuilder, -} from 'wechaty' - -import qrcodeTerminal from 'qrcode-terminal' -import { FileBox } from 'file-box' -import { createWriteStream } from 'fs' -import XLSX from 'xlsx' -import csv from 'fast-csv' -import { - VikaBot, - configData, - sendMsg, - sendNotice, - imclient, - wxai, - ChatDevice, - propertyMessage, - eventMessage, - -} from './plugins/index.js' -import { baseConfig, config } from './config.js' -import { - waitForMs as wait, - formatSentMessage, -} from './util/tool.js' -import schedule from 'node-schedule' -import { db } from './db/tables.js' - -log.info('db:', db) -log.info('config:', JSON.stringify(config)) -// log.info('process.env', JSON.stringify(process.env)) - -let bot: Wechaty -let sysConfig: any -let chatdev: any = {} -let job: any -let jobs: any -let vika: any -let socket: any = {} - -baseConfig['VIKA_TOKEN'] = baseConfig['VIKA_TOKEN'] || process.env['VIKA_TOKEN'] || '' -baseConfig['VIKA_SPACENAME'] = baseConfig['VIKA_SPACENAME'] || process.env['VIKA_SPACENAME'] || '' - -// log.info(baseConfig) - -const vikaConfig = { - spaceName: baseConfig['VIKA_SPACENAME'], - token: baseConfig['VIKA_TOKEN'], -} -// log.info(vikaConfig) - -function getBot (sysConfig: any) { - const ops:any = { - name: 'qa-bot', - puppet: sysConfig.puppetName, - puppetOptions: { - token: sysConfig.puppetToken || 'null', - }, - } - - log.info(ops) - - if (sysConfig.puppetName === 'wechaty-puppet-service') { - process.env['WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENT'] = 'true' - } - - if (sysConfig.puppetName === 'wechaty-puppet-wechat4u' || sysConfig.puppetName === 'wechaty-puppet-xp' || sysConfig.puppetName === 'wechaty-puppet-engine') { - delete ops.puppetOptions.token - } - - if (sysConfig.puppetName === 'wechaty-puppet-wechat') { - delete ops.puppetOptions.token - ops.puppetOptions.uos = true - } - - log.info('bot ops:', JSON.stringify(getBot)) - - const bot = WechatyBuilder.build(ops) - return bot -} - -function getNow () { - return new Date().toLocaleString() -} - -function checkConfig (configs: { [key: string]: any }) { - const missingConfiguration = [] - - for (const key in configs) { - if (!configs[key] && ![ 'imOpen', 'DIFF_REPLY_ONOFF' ].includes(key)) { - missingConfiguration.push(key) - } - } - - if (missingConfiguration.length > 0) { - log.error('\n======================================\n\n', `错误提示:\n缺少${missingConfiguration.join()}配置参数,请检查环境变量表\n\n======================================`) - log.info('bot configs:', configs) - return true - } - return true -} - -async function relpy (bot:Wechaty, vika:any, replyText:string, message:Message) { - await message.say(replyText) - vika.addRecord(await formatSentMessage(bot.currentUser, replyText, message.room() ? undefined : message.talker(), message.room())) -} - -async function exportContactsAndRoomsToCSV () { - // 获取所有联系人和群聊 - const contacts = await bot.Contact.findAll() - const rooms = await bot.Room.findAll() - - // 准备CSV数据 - const csvData = [] - contacts.forEach((contact:Contact) => { - if (contact.friend()) { - csvData.push({ ID: contact.id, Name:Buffer.from(contact.name(), 'utf-8').toString() || '未知', Type:'Contact' }) - } - }) - - for (const room of rooms) { - csvData.push({ ID:room.id, Name:Buffer.from(await room.topic(), 'utf-8').toString() || '未知', Type:'Room' }) - } - - log.info('通讯录原始数据:', csvData) - - const fileName = './db/contacts_and_rooms.csv' - const writeStream = createWriteStream(fileName) - const csvStream = csv.format({ headers: true }) - csvStream.pipe(writeStream).on('end', () => { - log.info('CSV file written successfully') - }) - - csvData.forEach((item) => { - csvStream.write(item) - }) - - csvStream.end() - - // 返回FileBox对象 - return FileBox.fromFile(fileName) -} - -async function exportContactsAndRoomsToXLSX () { - // 获取所有联系人和群聊 - const contacts = await bot.Contact.findAll() - const rooms = await bot.Room.findAll() - - // 准备联系人和群聊数据 - const contactsData = [ [ 'Name', 'ID' ] ] - const roomsData = [ [ 'Name', 'ID' ] ] - contacts.forEach((contact) => { - if (contact.friend()) { - contactsData.push([ contact.name(), contact.id ]) - } - }) - - for (const room of rooms) { - roomsData.push([ await room.topic(), room.id ]) - } - - // 创建一个新的工作簿 - const workbook = XLSX.utils.book_new() - - // 将数据添加到工作簿的不同sheet中 - const contactsSheet = XLSX.utils.aoa_to_sheet(contactsData) - const roomsSheet = XLSX.utils.aoa_to_sheet(roomsData) - XLSX.utils.book_append_sheet(workbook, contactsSheet, 'Contacts') - XLSX.utils.book_append_sheet(workbook, roomsSheet, 'Rooms') - - // 将工作簿写入文件 - const fileName = './db/contacts_and_rooms.xlsx' - XLSX.writeFile(workbook, fileName) - - // 返回FileBox对象 - return FileBox.fromFile(fileName) -} - -async function updateJobs (bot: Wechaty, vika:any) { - try { - const tasks = await vika.getTimedTask() - schedule.gracefulShutdown() - jobs = {} - // log.info(tasks) - for (let i = 0; i < tasks.length; i++) { - const task: any = tasks[i] - if (task.active) { - const curTimeF = new Date(task.time) - // const curTimeF = new Date(task.time+8*60*60*1000) - let curRule = '* * * * * *' - let dayOfWeek: any = '*' - let month: any = '*' - let dayOfMonth: any = '*' - let hour: any = curTimeF.getHours() - let minute: any = curTimeF.getMinutes() - const second = 0 - const addMonth = [] - switch (task.cycle) { - case '每季度': - month = curTimeF.getMonth() - for (let i = 0; i < 4; i++) { - if (month + 3 <= 11) { - addMonth.push(month) - } else { - addMonth.push(month - 9) - } - month = month + 3 - } - month = addMonth - break - case '每天': - break - case '每周': - dayOfWeek = curTimeF.getDay() - break - case '每月': - month = curTimeF.getMonth() - break - case '每小时': - hour = '*' - break - case '每30分钟': - hour = '*' - minute = [ 0, 30 ] - break - case '每15分钟': - hour = '*' - minute = [ 0, 15, 30, 45 ] - break - case '每10分钟': - hour = '*' - minute = [ 0, 10, 20, 30, 40, 50 ] - break - case '每5分钟': - hour = '*' - minute = [ 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 ] - break - case '每分钟': - hour = '*' - minute = '*' - break - default: - month = curTimeF.getMonth() - dayOfMonth = curTimeF.getDate() - break - - } - curRule = `${second} ${minute} ${hour} ${dayOfMonth} ${month} ${dayOfWeek}` - log.info(curRule) - - try { - schedule.scheduleJob(task.id, curRule, async () => { - try { - const curDate = new Date() - log.info('定时任务:', curTimeF, curRule, curDate, JSON.stringify(task)) - // await user.say('心跳:' + curDate) - - try { - if (task.contacts.length) { - const contact = await bot.Contact.find({ id: task.contacts[0] }) - if (contact) { - await contact.say(task.msg) - vika.addRecord(await formatSentMessage(bot.currentUser, task.msg, contact, undefined)) - await wait(200) - } - } - } catch (e) { - log.error('发送好友定时任务失败:', e) - } - - try { - if (task.rooms.length) { - const room = await bot.Room.find({ id: task.rooms[0] }) - if (room) { - await room.say(task.msg) - vika.addRecord(await formatSentMessage(bot.currentUser, task.msg, undefined, room)) - await wait(200) - } - } - } catch (e) { - log.error('发送群定时任务失败:', e) - - } - - } catch (err) { - log.error('定时任务执行失败:', err) - } - }) - jobs[task.id] = task - } catch (e) { - log.error('创建定时任务失败:', e) - } - } - } - log.info('通知提醒任务初始化完成,创建任务数量:', Object.keys(jobs).length) - - } catch (err: any) { - log.error('更新通知提醒列表任务失败:', err) - } -} - -async function onScan (qrcode: string, status: ScanStatus) { - // 上传二维码到维格表,可通过扫码维格表中二维码登录 - await vika.onScan(qrcode, status) - - // 控制台显示二维码 - if (status === ScanStatus.Waiting || status === ScanStatus.Timeout) { - const qrcodeUrl = encodeURIComponent(qrcode) - const qrcodeImageUrl = [ - 'https://wechaty.js.org/qrcode/', - qrcodeUrl, - ].join('') - log.info('StarterBot', 'onScan: %s(%s) - %s', ScanStatus[status], status, qrcodeImageUrl) - qrcodeTerminal.generate(qrcode, { small: true }) // show qrcode on console - - } else { - log.info('StarterBot', 'onScan: %s(%s)', ScanStatus[status], status) - } -} - -async function onLogin (user: Contact) { - log.info('StarterBot', '%s login', user) - log.info('当前登录的账号信息:', JSON.stringify(user)) - - // 启动MQTT通道 - if (sysConfig.mqttPassword && (sysConfig.mqtt_SUB_ONOFF || sysConfig.mqtt_PUB_ONOFF)) { - chatdev = new ChatDevice(sysConfig.mqttUsername, sysConfig.mqttPassword, sysConfig.mqttEndpoint, sysConfig.mqttPort, user.id) - if (sysConfig.mqtt_SUB_ONOFF) { - chatdev.init(bot) - } - } - - const curDate = new Date().toLocaleString() - // await user.say('上线:' + curDate) - - // 更新云端好友和群 - await vika.updateRooms(bot) - await vika.updateContacts(bot) - - // 如果开启了MQTT推送,心跳同步到MQTT,每30s一次 - setInterval(() => { - try { - log.info(curDate) - if (chatdev && sysConfig.mqtt_PUB_ONOFF) { - chatdev.pub_property(propertyMessage('lastActive', curDate)) - } - } catch (err) { - log.error('发送心跳失败:', err) - } - }, 300000) - - // 启动用户定时通知提醒任务 - await updateJobs(bot, vika) - log.info('================================================\n\n登录启动成功,程序准备就绪\n\n================================================\n') -} - -async function onReady () { - const user: Contact = bot.currentUser - log.info('StarterBot', '%s ready', user) - log.info('当前登录的账号信息:', JSON.stringify(user)) - - // 启动MQTT通道 - if (sysConfig.mqttPassword && (sysConfig.mqtt_SUB_ONOFF || sysConfig.mqtt_PUB_ONOFF)) { - chatdev = new ChatDevice(sysConfig.mqttUsername, sysConfig.mqttPassword, sysConfig.mqttEndpoint, sysConfig.mqttPort, user.id) - if (sysConfig.mqtt_SUB_ONOFF) { - chatdev.init(bot) - } - } - - const curDate = new Date().toLocaleString() - // await user.say('上线:' + curDate) - - // 更新云端好友和群 - await vika.updateRooms(bot) - await vika.updateContacts(bot) - - // 如果开启了MQTT推送,心跳同步到MQTT,每30s一次 - setInterval(() => { - try { - log.info(curDate) - if (chatdev && sysConfig.mqtt_PUB_ONOFF) { - chatdev.pub_property(propertyMessage('lastActive', curDate)) - } - } catch (err) { - log.error('发送心跳失败:', err) - } - }, 300000) - - // 启动用户定时通知提醒任务 - await updateJobs(bot, vika) - log.info('================================================\n\n登录启动成功,程序准备就绪\n\n================================================\n') -} - -function onLogout (user: Contact) { - log.info('StarterBot', '%s logout', user) - job.cancel() -} - -async function onMessage (message: Message) { - // log.info('onMessage', JSON.stringify(message)) - await vika.onMessage(message) - const curDate = new Date().toLocaleString() - - // MQTT上报 - if (chatdev && sysConfig.mqtt_PUB_ONOFF) { - /* - 将消息通过mqtt通道上报到云端 - */ - // chatdev.pub_message(message) - chatdev.pub_event(eventMessage('onMessage', { curDate })) - - } - - const talker = message.talker() - const text = message.text() - const room = message.room() - const roomId = room?.id - const topic = await room?.topic() - const keyWord = bot.currentUser.name() - const isSelfMsg = message.self() - log.info('keyWord is:', keyWord) - if (isSelfMsg) { - await sendNotice(bot, message) - } - - let replyText: string = '' - if (isSelfMsg && (text === '#指令列表' || text === '#帮助')) { - replyText = `操作指令说明:\n - #更新配置 更新全部配置 - #更新提醒 更新定时提醒任务 - #更新通讯录 更新维格表通信录 - #下载通讯录 下载通讯录xlsx表 - #下载通知模板 下载通知模板` - - await relpy(bot, vika, replyText, message) - } - - if (isSelfMsg && text === '#更新配置') { - log.info('热更新系统配置~') - try { - sysConfig = await vika.getConfig() - // message.say('配置更新成功:' + JSON.stringify(newConfig)) - log.info('newConfig', sysConfig) - replyText = '配置更新成功~' - } catch (e) { - replyText = '配置更新成功~' - } - - await relpy(bot, vika, getNow() + replyText, message) - } - - if (isSelfMsg && text === '#更新提醒') { - log.info('热更新通知任务~') - try { - await updateJobs(bot, vika) - replyText = '提醒任务更新成功~' - } catch (e) { - replyText = '提醒任务更新失败~' - } - - await relpy(bot, vika, getNow() + replyText, message) - } - - if (isSelfMsg && text === '#更新通讯录') { - log.info('热更新通讯录到维格表~') - try { - await vika.updateContacts(bot) - await vika.updateRooms(bot) - replyText = '通讯录更新成功~' - } catch (e) { - replyText = '通讯录更新失败~' - } - - await relpy(bot, vika, getNow() + replyText, message) - } - - if (isSelfMsg && text === '#下载csv通讯录') { - log.info('下载通讯录到csv表~') - try { - const fileBox = await exportContactsAndRoomsToCSV() - await message.say(fileBox) - } catch (err) { - log.error('exportContactsAndRoomsToCSV', err) - await message.say('下载失败~') - } - } - - if (isSelfMsg && text === '#下载通讯录') { - log.info('下载通讯录到xlsx表~') - try { - const fileBox = await exportContactsAndRoomsToXLSX() - await message.say(fileBox) - } catch (err) { - log.error('exportContactsAndRoomsToXLSX', err) - } - } - - if (isSelfMsg && text === '#下载通知模板') { - log.info('下载通知模板~') - try { - const fileBox = FileBox.fromFile('./src/templates/群发通知模板.xlsx') - await message.say(fileBox) - } catch (err) { - log.error('下载模板失败', err) - await message.say('下载失败,请重试~') - } - } - - try { - - if (room && roomId && !isSelfMsg) { - - // 智能问答开启时执行 - if (sysConfig.WX_OPENAI_ONOFF && ((text.indexOf(keyWord) !== -1 && sysConfig.AT_AHEAD) || !sysConfig.AT_AHEAD)) { - if (sysConfig.roomWhiteListOpen) { - const isInRoomWhiteList = sysConfig.roomWhiteList.includes(roomId) - if (isInRoomWhiteList) { - log.info('当前群在白名单内,请求问答...') - await wxai(sysConfig, bot, talker, room, message) - } else { - log.info('当前群不在白名单内,流程结束') - } - } - - if (!sysConfig.roomWhiteListOpen) { - log.info('系统未开启白名单,请求问答...') - await wxai(sysConfig, bot, talker, room, message) - } - } - - // IM服务开启时执行 - if (sysConfig.imOpen && types.Message.Text === message.type()) { - configData.clientChatEn.clientChatId = talker.id + ' ' + room.id - configData.clientChatEn.clientChatName = talker.name() + '@' + topic - // log.debug(configData) - socket.emit('CLIENT_ON', { - clientChatEn: configData.clientChatEn, - serverChatId: configData.serverChatEn.serverChatId, - }) - const data = { - msg: { - avatarUrl: '/static/image/im_server_avatar.png', - content: text, - contentType: 'text', - role: 'client', - }, - } - log.info(JSON.stringify(data)) - sendMsg(data) - } - - } - - if ((!room || !room.id) && !isSelfMsg) { - // 智能问答开启时执行 - if (sysConfig.WX_OPENAI_ONOFF && ((text.indexOf(keyWord) !== -1 && sysConfig.AT_AHEAD) || !sysConfig.AT_AHEAD)) { - if (sysConfig.contactWhiteListOpen) { - const isInContactWhiteList = sysConfig.contactWhiteList.includes(talker.id) - if (isInContactWhiteList) { - log.info('当前好友在白名单内,请求问答...') - await wxai(sysConfig, bot, talker, undefined, message) - } else { - log.info('当前好友不在白名单内,流程结束') - } - } - - if (!sysConfig.contactWhiteListOpen) { - log.info('系统未开启好友白名单,对所有好友有效,请求问答...') - await wxai(sysConfig, bot, talker, undefined, message) - } - } - } - - } catch (e) { - log.error('发起请求wxai失败', e) - } -} - -async function roomJoin (room: { topic: () => any; id: any; say: (arg0: string, arg1: any) => any }, inviteeList: Contact[], inviter: any) { - const nameList = inviteeList.map(c => c.name()).join(',') - log.info(`Room ${await room.topic()} got new member ${nameList}, invited by ${inviter}`) - - // 进群欢迎语,仅对开启了进群欢迎语白名单的群有效 - if (sysConfig.welcomeList.includes(room.id) && inviteeList.length) { - await room.say(`欢迎加入${await room.topic()},请阅读群公告~`, inviteeList) - } -} - -async function onError (err:any) { - log.error('bot.onError:', JSON.stringify(err)) - try { - job.cancel() - } catch (e) { - log.error('销毁定时任务失败:', JSON.stringify(e)) - } -} - -async function main (vika:any) { - await vika.init() - // 初始化获取配置信息 - const initReady = await vika.checkInit('主程序载入系统配置成功,等待插件初始化...') - if (!initReady) { - return - } - - // 获取系统配置信息 - sysConfig = await vika.getConfig() - config.botConfig.bot = sysConfig - const configReady = checkConfig(sysConfig) - - // 配置齐全,启动机器人 - if (configReady) { - bot = getBot(sysConfig) - bot.on('scan', onScan) - - if (sysConfig.puppetName === 'wechaty-puppet-xp') { - bot.on('login', onLogin) - } - if (sysConfig.puppetName !== 'wechaty-puppet-xp') { - bot.on('ready', onReady) - } - - bot.on('logout', onLogout) - bot.on('message', onMessage) - bot.on('room-join', roomJoin) - bot.on('error', onError) - - bot.start() - .then(() => log.info('Starter Bot Started.')) - .catch((e: any) => log.error('bot运行异常:', JSON.stringify(e))) - - if (sysConfig.imOpen) { - socket = imclient(bot, vika, configData) - } - } -} - -// 检查维格表配置并启动 -if (vikaConfig.spaceName && vikaConfig.token) { - vika = new VikaBot(vikaConfig) - void main(vika) -} else { - log.error('\n================================================\n\nvikaConfig配置缺少token或spaceName,请检查config.json文件\n\n================================================\n') - -} diff --git a/WechatBot/chatflow/src/config.json b/WechatBot/chatflow/src/config.json deleted file mode 100644 index 47f620349..000000000 --- a/WechatBot/chatflow/src/config.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "baseConfig": { - "VIKA_TOKEN": "usk3EsO4fN56sEJrb4tuamp", - "VIKA_SPACENAME": "WeChat", - "puppetName": "wechaty-puppet-xp", - "puppetToken": "" - }, - "botConfig": { - "adminRoomId": "213411825721@chatroom", - "adminRoomTopic": "TODO", - "apps": { - "qa": { - "config": { - "key1": 123, - "key2": "xxx" - }, - "isOpen": true - }, - "riding": { - "config": {}, - "isOpen": true - } - }, - "bot": { - "puppet": "", - "token": "", - "VIKA_TOKEN": "", - "VIKA_SPACENAME": "" - }, - "command": { - "bot": { - "reboot": "#重启机器人", - "selfInfo": "#机器人信息" - }, - "contact": { - "findall": "#联系人列表" - }, - "room": { - "findall": "#群列表" - } - } - }, - "contactConfig": { - "tyutluyc": { - "app": "waiting", - "apps": { - "qa": { - "config": {}, - "isOpen": true - }, - "riding": { - "config": {}, - "isOpen": true - } - } - }, - "tyutluyc2": { - "app": "waiting", - "apps": { - "qa": { - "config": {}, - "isOpen": true - }, - "riding": { - "config": {}, - "isOpen": true - } - } - } - }, - "roomConfig": { - "213411825721@chatroom": { - "app": "waiting", - "apps": { - "qa": { - "config": {}, - "isOpen": true - }, - "riding": { - "config": {}, - "isOpen": true - } - } - }, - "21341182572@chatroom": { - "app": "waiting", - "apps": { - "qa": { - "config": {}, - "isOpen": true - }, - "riding": { - "config": {}, - "isOpen": true - }, - "riding2": { - "config": {}, - "isOpen": true - } - } - } - } -} \ No newline at end of file diff --git a/WechatBot/chatflow/src/db/nedb.ts b/WechatBot/chatflow/src/db/nedb.ts deleted file mode 100644 index 89ae9ab69..000000000 --- a/WechatBot/chatflow/src/db/nedb.ts +++ /dev/null @@ -1,88 +0,0 @@ -import Datastore from 'nedb' -function DB (this: any, database: any) { - const options = { - autoload: true, - filename: database, - } - this.db = new Datastore(options) -} - -DB.prototype.limit = function (offset: number, limit: number) { - this.offset = offset || 0 - this.limit = limit || 15 - return this -} -DB.prototype.sort = function (orderby: any) { - this.orderby = orderby - return this -} -DB.prototype.find = function (query: any, select: any) { - return new Promise((resolve, reject) => { - const stmt = this.db.find(query || {}) - if (this.orderby !== undefined) { - stmt.sort(this.orderby) - } - if (this.offset !== undefined) { - stmt.skip(this.offset).limit(this.limit) - } - if (select !== undefined) { - stmt.projection(select || {}) - } - stmt.exec((err: any, docs: unknown) => { - if (err) { - return reject(err) - } - resolve(docs) - }) - }) -} -DB.prototype.findOne = function (query: any, select: any) { - return new Promise((resolve, reject) => { - const stmt = this.db.findOne(query || {}) - if (this.sort !== undefined) { - stmt.sort(this.sort) - } - if (select !== undefined) { - stmt.projection(select || {}) - } - stmt.exec((err: any, doc: unknown) => { - if (err) { - return reject(err) - } - resolve(doc) - }) - }) -} -DB.prototype.insert = function (values: any) { - return new Promise((resolve, reject) => { - this.db.insert(values, (err: any, newDoc: unknown) => { - if (err) { - return reject(err) - } - resolve(newDoc) - }) - }) -} -DB.prototype.update = function (query: any, values: any, options: any) { - return new Promise((resolve, reject) => { - this.db.update(query || {}, values || {}, options || {}, (err: any, numAffected: unknown) => { - if (err) { - return reject(err) - } - resolve(numAffected) - }) - }) -} -DB.prototype.remove = function (query: any, options: any) { - return new Promise((resolve, reject) => { - this.db.remove(query || {}, options || {}, (err: any, numAffected: unknown) => { - if (err) { - return reject(err) - } - resolve(numAffected) - }) - }) -} -export default (database: any) => { - return DB(database) -} diff --git a/WechatBot/chatflow/src/db/tables.ts b/WechatBot/chatflow/src/db/tables.ts deleted file mode 100644 index 191d683d2..000000000 --- a/WechatBot/chatflow/src/db/tables.ts +++ /dev/null @@ -1,27 +0,0 @@ -import Datastore from 'nedb-promises' - -const db:any = {} - -db.message = Datastore.create({ - autoload: true, - filename: './db/messages.db', -}) - -db.bot = Datastore.create({ - autoload: true, - filename: './db/bot.db', -}) - -db.room = Datastore.create({ - autoload: true, - filename: './db/room.db', -}) - -db.contact = Datastore.create({ - autoload: true, - filename: './db/contact.db', -}) - -export { - db, -} diff --git a/WechatBot/chatflow/src/handlers/on-message.js b/WechatBot/chatflow/src/handlers/on-message.js deleted file mode 100755 index dc3ff5b32..000000000 --- a/WechatBot/chatflow/src/handlers/on-message.js +++ /dev/null @@ -1,168 +0,0 @@ -import fs from 'fs' -import console from 'console' - -import * as PUPPET from 'wechaty-puppet' -import { log } from 'wechaty-puppet' - -const msgList = [] - -const wait = ms => new Promise(resolve => setTimeout(resolve, ms)) - -async function onMessage (message, vika) { - // console.debug(message) - try { - - let uploadedAttachments = '' - const msgType = PUPPET.types.Message[message.type()] - let file = '' - let filePath = '' - let text = '' - - let urlLink - let miniProgram - - switch (message.type()) { - // 文本消息 - case PUPPET.types.Message.Text: - text = message.text() - break - - // 图片消息 - - case PUPPET.types.Message.Image: - - try { - // await wait(2500) - // const img = await message.toImage() - // file = await img.thumbnail() - file = await message.toFileBox() - - } catch (e) { - console.error('Image解析失败:', e) - file = '' - } - - break - - // 链接卡片消息 - case PUPPET.types.Message.Url: - urlLink = await message.toUrlLink() - text = JSON.stringify(JSON.parse(JSON.stringify(urlLink)).payload) - // file = await message.toFileBox(); - break - - // 小程序卡片消息 - case PUPPET.types.Message.MiniProgram: - - miniProgram = await message.toMiniProgram() - - text = JSON.stringify(JSON.parse(JSON.stringify(miniProgram)).payload) - - // console.debug(miniProgram) - /* - miniProgram: 小程序卡片数据 - { - appid: "wx363a...", - description: "贝壳找房 - 真房源", - title: "美国白宫,10室8厅9卫,99999刀/月", - iconUrl: "http://mmbiz.qpic.cn/mmbiz_png/.../640?wx_fmt=png&wxfrom=200", - pagePath: "pages/home/home.html...", - shareId: "0_wx363afd5a1384b770_..._1615104758_0", - thumbKey: "84db921169862291...", - thumbUrl: "3051020100044a304802010002046296f57502033d14...", - username: "gh_8a51...@app" - } - */ - break - - // 语音消息 - case PUPPET.types.Message.Audio: - - try { - file = await message.toFileBox() - - } catch (e) { - console.error('Audio解析失败:', e) - file = '' - } - - break - - // 视频消息 - case PUPPET.types.Message.Video: - - try { - file = await message.toFileBox() - - } catch (e) { - console.error('Video解析失败:', e) - file = '' - } - break - - // 动图表情消息 - case PUPPET.types.Message.Emoticon: - - try { - file = await message.toFileBox() - - } catch (e) { - console.error('Emoticon解析失败:', e) - file = '' - } - - break - - // 文件消息 - case PUPPET.types.Message.Attachment: - - try { - file = await message.toFileBox() - - } catch (e) { - console.error('Attachment解析失败:', e) - file = '' - } - - break - // 文件消息 - case PUPPET.types.Message.Location: - - // const location = await message.toLocation() - // text = JSON.stringify(JSON.parse(JSON.stringify(location)).payload) - break - // 其他消息 - default: - break - } - - if (file) { - filePath = './' + file.name - try { - const writeStream = fs.createWriteStream(filePath) - await file.pipe(writeStream) - await wait(500) - const readerStream = fs.createReadStream(filePath) - uploadedAttachments = await vika.upload(readerStream) - fs.unlink(filePath, (err) => { - console.debug('上传vika完成删除文件:', filePath, err) - }) - } catch { - console.debug('上传失败:', filePath) - fs.unlink(filePath, (err) => { - console.debug('上传vika失败删除文件', filePath, err) - }) - } - - } - - vika.addChatRecord(message, uploadedAttachments, msgType, text) - - } catch (e) { - console.log('vika 写入失败:', e) - } -} - -export { onMessage } - -export default onMessage diff --git a/WechatBot/chatflow/src/handlers/on-scan.js b/WechatBot/chatflow/src/handlers/on-scan.js deleted file mode 100755 index 750c65332..000000000 --- a/WechatBot/chatflow/src/handlers/on-scan.js +++ /dev/null @@ -1,79 +0,0 @@ -import fs from 'fs' -import console from 'console' - -import * as PUPPET from 'wechaty-puppet' -import { log } from 'wechaty-puppet' -import { FileBox } from 'file-box' -// import { -// Contact, -// Room, -// Message, -// ScanStatus, -// WechatyBuilder, -// types, -// } from 'wechaty' - -const msgList = [] - -const wait = ms => new Promise(resolve => setTimeout(resolve, ms)) - -async function onScan (qrcode, status, vika) { - console.debug(qrcode, status) - - if (status === PUPPET.ScanStatus.Waiting || status === PUPPET.ScanStatus.Timeout) { - const qrcodeImageUrl = [ - 'https://wechaty.js.org/qrcode/', - encodeURIComponent(qrcode), - ].join('') - log.info('qrcodeImageUrl: %s', qrcodeImageUrl) - - try { - let uploadedAttachments = '' - let file = '' - let filePath = '' - const text = qrcodeImageUrl - - try { - file = FileBox.fromUrl( - qrcodeImageUrl, - 'logo.jpg', - ) - file.toFile('/tmp/file-box-logo.jpg') - - // await wait(1000) - // console.debug('file=======================',file) - } catch (e) { - console.error('Image解析失败:', e) - } - - if (file) { - filePath = './' + file.name - try { - const writeStream = fs.createWriteStream(filePath) - await file.pipe(writeStream) - await wait(200) - const readerStream = fs.createReadStream(filePath) - uploadedAttachments = await vika.upload(readerStream) - vika.addScanRecord(uploadedAttachments, text) - fs.unlink(filePath, (err) => { - console.debug('上传vika完成删除文件:', filePath, err) - }) - } catch { - console.debug('上传失败:', filePath) - fs.unlink(filePath, (err) => { - console.debug('上传vika失败删除文件', filePath, err) - }) - } - - } - - } catch (e) { - console.log('vika 写入失败:', e) - } - - } -} - -export { onScan } - -export default onScan diff --git a/WechatBot/chatflow/src/index.ts b/WechatBot/chatflow/src/index.ts deleted file mode 100644 index 02a523545..000000000 --- a/WechatBot/chatflow/src/index.ts +++ /dev/null @@ -1,761 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -import 'dotenv/config.js' -// import fs from 'fs' -import { - Contact, - Message, - ScanStatus, - log, - // Room, - types, - Wechaty, - WechatyBuilder, -} from 'wechaty' - -import qrcodeTerminal from 'qrcode-terminal' -import { FileBox } from 'file-box' -import fs, { createWriteStream } from 'fs' -import XLSX from 'xlsx' -import csv from 'fast-csv' -import { - VikaBot, - configData, - sendMsg, - sendNotice, - getFormattedRideInfo, - imclient, - wxai, - ChatDevice, - propertyMessage, - eventMessage, - -} from './plugins/index.js' -import type { types as configTypes } from './mods/mod.js' -import { baseConfig, config } from './config.js' -import { - waitForMs as wait, - formatSentMessage, -} from './util/tool.js' -import schedule from 'node-schedule' -import { db } from './db/tables.js' - -log.info('db:', db) -log.info('config:', JSON.stringify(config)) -// log.info('process.env', JSON.stringify(process.env)) - -enum Prompts { - a = '输入的信息错误或格式不符合要求,请输入如下格式"维格表token+空间名称",中间用加号分开,例如:\nuskxRhxxxxxxxx3UK959A8093+wechatbot', - b = '启动成功,请输入"维格表token+空间名称",中间用加号分开,例如:\nuskxRhxxxxxxxx3UK959A8093+wechatbot' -} - -let bot: Wechaty -let puppet = baseConfig['puppetName'] || process.env['WECHATY_PUPPET'] -let token = baseConfig['puppetToken'] || process.env['WECHATY_TOKEN'] -const vikaConfig = { - spaceName: baseConfig['VIKA_SPACENAME'] || process.env['VIKA_SPACENAME'], - token: baseConfig['VIKA_TOKEN'] || process.env['VIKA_TOKEN'], -} -// log.info(vikaConfig) -let sysConfig: configTypes.SysConfig -let chatdev: any = {} -// let job: any -let jobs: any -let vika: any -let isVikaOk: boolean = false -let socket: any = {} - -// log.info(baseConfig) - -function updateBaseConfig (config: configTypes.SysConfig) { - puppet = config['puppetName'] || puppet - token = config['puppetToken'] || token -} - -function updateConfig (config:any) { - fs.writeFileSync('src/config.json', JSON.stringify(config)) -} - -async function createVika () { - try { - vika = new VikaBot(vikaConfig) - await vika.init() - - // 初始化获取配置信息 - const initReady = await vika.checkInit('主程序载入系统配置成功,等待插件初始化...') - if (!initReady) { - return - } - - // 获取系统配置信息 - sysConfig = await vika.getConfig() - log.info('config:', JSON.stringify(config)) - const configReady = checkConfig(config) - updateBaseConfig(config) - // 配置齐全,启动机器人 - if (configReady) { - return vika - } - } catch { - return false - } -} - -function getBot () { - const ops: any = { - name: 'qa-bot', - puppet, - puppetOptions: { - token, - }, - } - - log.info(ops) - - if (puppet === 'wechaty-puppet-service') { - process.env['WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENT'] = 'true' - } - - if ([ 'wechaty-puppet-wechat4u', 'wechaty-puppet-xp', 'wechaty-puppet-engine' ].includes(puppet)) { - delete ops.puppetOptions.token - } - - if (puppet === 'wechaty-puppet-wechat') { - delete ops.puppetOptions.token - ops.puppetOptions.uos = true - } - - log.info('bot ops:', JSON.stringify(ops)) - - const bot = WechatyBuilder.build(ops) - return bot -} - -function getNow () { - return new Date().toLocaleString() -} - -function checkConfig (config: { [key: string]: any }) { - const missingConfiguration = [] - - for (const key in config) { - if (!config[key] && ![ 'imOpen', 'DIFF_REPLY_ONOFF' ].includes(key)) { - missingConfiguration.push(key) - } - } - - if (missingConfiguration.length > 0) { - // log.error('\n======================================\n\n', `错误提示:\n缺少${missingConfiguration.join()}配置参数,请检查config.js文件\n\n======================================`) - log.info('bot config:', config) - return false - } - return true -} - -async function relpy (bot: Wechaty, vika: any, replyText: string, message: Message) { - await message.say(replyText) - vika.addRecord(await formatSentMessage(bot.currentUser, replyText, message.room() ? undefined : message.talker(), message.room())) -} - -async function exportContactsAndRoomsToCSV () { - // 获取所有联系人和群聊 - const contacts = await bot.Contact.findAll() - const rooms = await bot.Room.findAll() - - // 准备CSV数据 - const csvData = [] - contacts.forEach((contact: Contact) => { - if (contact.friend()) { - csvData.push({ ID: contact.id, Name: Buffer.from(contact.name(), 'utf-8').toString() || '未知', Type: 'Contact' }) - } - }) - - for (const room of rooms) { - csvData.push({ ID: room.id, Name: Buffer.from(await room.topic(), 'utf-8').toString() || '未知', Type: 'Room' }) - } - - log.info('通讯录原始数据:', csvData) - - const fileName = './db/contacts_and_rooms.csv' - const writeStream = createWriteStream(fileName) - const csvStream = csv.format({ headers: true }) - csvStream.pipe(writeStream).on('end', () => { - log.info('CSV file written successfully') - }) - - csvData.forEach((item) => { - csvStream.write(item) - }) - - csvStream.end() - - // 返回FileBox对象 - return FileBox.fromFile(fileName) -} - -async function exportContactsAndRoomsToXLSX () { - // 获取所有联系人和群聊 - const contacts = await bot.Contact.findAll() - const rooms = await bot.Room.findAll() - - // 准备联系人和群聊数据 - const contactsData = [ [ 'Name', 'ID' ] ] - const roomsData = [ [ 'Name', 'ID' ] ] - contacts.forEach((contact) => { - if (contact.friend()) { - contactsData.push([ contact.name(), contact.id ]) - } - }) - - for (const room of rooms) { - roomsData.push([ await room.topic(), room.id ]) - } - - // 创建一个新的工作簿 - const workbook = XLSX.utils.book_new() - - // 将数据添加到工作簿的不同sheet中 - const contactsSheet = XLSX.utils.aoa_to_sheet(contactsData) - const roomsSheet = XLSX.utils.aoa_to_sheet(roomsData) - XLSX.utils.book_append_sheet(workbook, contactsSheet, 'Contacts') - XLSX.utils.book_append_sheet(workbook, roomsSheet, 'Rooms') - - // 将工作簿写入文件 - const fileName = './db/contacts_and_rooms.xlsx' - XLSX.writeFile(workbook, fileName) - - // 返回FileBox对象 - return FileBox.fromFile(fileName) -} - -async function updateJobs (bot: Wechaty, vika: any) { - try { - const tasks = await vika.getTimedTask() - schedule.gracefulShutdown() - jobs = {} - // log.info(tasks) - for (let i = 0; i < tasks.length; i++) { - const task: any = tasks[i] - if (task.active) { - const curTimeF = new Date(task.time) - // const curTimeF = new Date(task.time+8*60*60*1000) - let curRule = '* * * * * *' - let dayOfWeek: any = '*' - let month: any = '*' - let dayOfMonth: any = '*' - let hour: any = curTimeF.getHours() - let minute: any = curTimeF.getMinutes() - const second = 0 - const addMonth = [] - switch (task.cycle) { - case '每季度': - month = curTimeF.getMonth() - for (let i = 0; i < 4; i++) { - if (month + 3 <= 11) { - addMonth.push(month) - } else { - addMonth.push(month - 9) - } - month = month + 3 - } - month = addMonth - break - case '每天': - break - case '每周': - dayOfWeek = curTimeF.getDay() - break - case '每月': - month = curTimeF.getMonth() - break - case '每小时': - hour = '*' - break - case '每30分钟': - hour = '*' - minute = [ 0, 30 ] - break - case '每15分钟': - hour = '*' - minute = [ 0, 15, 30, 45 ] - break - case '每10分钟': - hour = '*' - minute = [ 0, 10, 20, 30, 40, 50 ] - break - case '每5分钟': - hour = '*' - minute = [ 0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55 ] - break - case '每分钟': - hour = '*' - minute = '*' - break - default: - month = curTimeF.getMonth() - dayOfMonth = curTimeF.getDate() - break - - } - curRule = `${second} ${minute} ${hour} ${dayOfMonth} ${month} ${dayOfWeek}` - log.info(curRule) - - try { - schedule.scheduleJob(task.id, curRule, async () => { - try { - const curDate = new Date() - log.info('定时任务:', curTimeF, curRule, curDate, JSON.stringify(task)) - // await user.say('心跳:' + curDate) - - try { - if (task.contacts.length) { - const contact = await bot.Contact.find({ id: task.contacts[0] }) - if (contact) { - await contact.say(task.msg) - vika.addRecord(await formatSentMessage(bot.currentUser, task.msg, contact, undefined)) - await wait(200) - } - } - } catch (e) { - log.error('发送好友定时任务失败:', e) - } - - try { - if (task.rooms.length) { - const room = await bot.Room.find({ id: task.rooms[0] }) - if (room) { - await room.say(task.msg) - vika.addRecord(await formatSentMessage(bot.currentUser, task.msg, undefined, room)) - await wait(200) - } - } - } catch (e) { - log.error('发送群定时任务失败:', e) - - } - - } catch (err) { - log.error('定时任务执行失败:', err) - } - }) - jobs[task.id] = task - } catch (e) { - log.error('创建定时任务失败:', e) - } - } - } - log.info('通知提醒任务初始化完成,创建任务数量:', Object.keys(jobs).length) - - } catch (err: any) { - log.error('更新通知提醒列表任务失败:', err) - } -} - -async function onScan (qrcode: string, status: ScanStatus) { - // 上传二维码到维格表,可通过扫码维格表中二维码登录 - if (isVikaOk) await vika.onScan(qrcode, status) - - // 控制台显示二维码 - if (status === ScanStatus.Waiting || status === ScanStatus.Timeout) { - const qrcodeUrl = encodeURIComponent(qrcode) - const qrcodeImageUrl = [ - 'https://wechaty.js.org/qrcode/', - qrcodeUrl, - ].join('') - log.info('StarterBot', 'onScan: %s(%s) - %s', ScanStatus[status], status, qrcodeImageUrl) - qrcodeTerminal.generate(qrcode, { small: true }) // show qrcode on console - - } else { - log.info('StarterBot', 'onScan: %s(%s)', ScanStatus[status], status) - } -} - -async function onLogin (user: Contact) { - log.info('StarterBot', '%s login', user) - log.info('当前登录的账号信息:', JSON.stringify(user)) - - if (isVikaOk) { - const curDate = new Date().toLocaleString() - await user.say('上线:' + curDate) - // 启动MQTT通道 - if (sysConfig.mqttPassword && (sysConfig.mqtt_SUB_ONOFF || sysConfig.mqtt_PUB_ONOFF)) { - chatdev = new ChatDevice(sysConfig.mqttUsername, sysConfig.mqttPassword, sysConfig.mqttEndpoint, sysConfig.mqttPort, user.id) - if (sysConfig.mqtt_SUB_ONOFF) { - chatdev.init(bot) - } - } - - // 更新云端好友和群 - await vika.updateRooms(bot) - await vika.updateContacts(bot) - - // 如果开启了MQTT推送,心跳同步到MQTT,每30s一次 - setInterval(() => { - try { - log.info(curDate) - if (chatdev && sysConfig.mqtt_PUB_ONOFF) { - chatdev.pub_property(propertyMessage('lastActive', curDate)) - } - } catch (err) { - log.error('发送心跳失败:', err) - } - }, 300000) - - // 启动用户定时通知提醒任务 - await updateJobs(bot, vika) - log.info('================================================\n\n登录启动成功,程序准备就绪\n\n================================================\n') - } else { - log.info('================================================\n\n登录启动成功,但没有配置维格表\n\n================================================\n') - await user.say(Prompts.b) - } -} - -async function onReady () { - const user: Contact = bot.currentUser - log.info('StarterBot', '%s ready', user) - log.info('当前登录的账号信息:', JSON.stringify(user)) - - if (isVikaOk) { - const curDate = new Date().toLocaleString() - await user.say('上线:' + curDate) - // 启动MQTT通道 - if (sysConfig.mqttPassword && (sysConfig.mqtt_SUB_ONOFF || sysConfig.mqtt_PUB_ONOFF)) { - chatdev = new ChatDevice(sysConfig.mqttUsername, sysConfig.mqttPassword, sysConfig.mqttEndpoint, sysConfig.mqttPort, user.id) - if (sysConfig.mqtt_SUB_ONOFF) { - chatdev.init(bot) - } - } - - // 更新云端好友和群 - await vika.updateRooms(bot) - await vika.updateContacts(bot) - - // 如果开启了MQTT推送,心跳同步到MQTT,每30s一次 - setInterval(() => { - try { - log.info(curDate) - if (chatdev && sysConfig.mqtt_PUB_ONOFF) { - chatdev.pub_property(propertyMessage('lastActive', curDate)) - } - } catch (err) { - log.error('发送心跳失败:', err) - } - }, 300000) - - // 启动用户定时通知提醒任务 - await updateJobs(bot, vika) - log.info('================================================\n\n登录启动成功,程序准备就绪\n\n================================================\n') - - } else { - log.info('================================================\n\n登录启动成功,但没有配置维格表\n\n================================================\n') - await user.say(Prompts.b) - } -} - -function onLogout (user: Contact) { - log.info('StarterBot', '%s logout', user) - // job.cancel() -} - -async function onMessage (message: Message) { - log.info('onMessage', JSON.stringify(message)) - const curDate = new Date().toLocaleString() - const talker = message.talker() - // const listener = message.listener() - const text = message.text() - const room = message.room() - const roomId = room?.id - const topic = await room?.topic() - const keyWord = bot.currentUser.name() - const isSelfMsg = message.self() - let isAdminRoom: boolean = false - log.info('keyWord is:', keyWord) - - if (isVikaOk) { - await vika.onMessage(message) - // MQTT上报 - if (chatdev && sysConfig.mqtt_PUB_ONOFF) { - /* - 将消息通过mqtt通道上报到云端 - */ - // chatdev.pub_message(message) - chatdev.pub_event(eventMessage('onMessage', { curDate })) - } - if (room || isSelfMsg) { - isAdminRoom = (topic !== undefined && topic === sysConfig.adminRoomTopic) || isSelfMsg - - if (isAdminRoom) { - await sendNotice(bot, message) - } - - let replyText: string = '' - if (isAdminRoom && (text === '#指令列表' || text === '#帮助')) { - replyText = `操作指令说明: - #更新配置 更新全部配置 - #更新提醒 更新定时提醒任务 - #更新通讯录 更新维格表通信录 - #下载通讯录 下载通讯录xlsx表 - #下载通知模板 下载通知模板` - - await relpy(bot, vika, replyText, message) - } - - if (isAdminRoom && text === '#更新配置') { - log.info('热更新系统配置~') - try { - sysConfig = await vika.getConfig() - // message.say('配置更新成功:' + JSON.stringify(newConfig)) - log.info('newConfig', sysConfig) - replyText = '配置更新成功~' - } catch (e) { - replyText = '配置更新成功~' - } - - await relpy(bot, vika, getNow() + replyText, message) - } - - if (isAdminRoom && text === '#更新提醒') { - log.info('热更新通知任务~') - try { - await updateJobs(bot, vika) - replyText = '提醒任务更新成功~' - } catch (e) { - replyText = '提醒任务更新失败~' - } - - await relpy(bot, vika, getNow() + replyText, message) - } - - if (isAdminRoom && text === '#更新通讯录') { - log.info('热更新通讯录到维格表~') - try { - await vika.updateContacts(bot) - await vika.updateRooms(bot) - replyText = '通讯录更新成功~' - } catch (e) { - replyText = '通讯录更新失败~' - } - - await relpy(bot, vika, getNow() + replyText, message) - } - - if (isAdminRoom && text === '#下载csv通讯录') { - log.info('下载通讯录到csv表~') - try { - const fileBox = await exportContactsAndRoomsToCSV() - await message.say(fileBox) - } catch (err) { - log.error('exportContactsAndRoomsToCSV', err) - await message.say('下载失败~') - } - } - - if (isAdminRoom && text === '#下载通讯录') { - log.info('下载通讯录到xlsx表~') - try { - const fileBox = await exportContactsAndRoomsToXLSX() - await message.say(fileBox) - } catch (err) { - log.error('exportContactsAndRoomsToXLSX', err) - } - } - - if (isAdminRoom && text === '#下载通知模板') { - log.info('下载通知模板~') - try { - const fileBox = FileBox.fromFile('./src/templates/群发通知模板.xlsx') - await message.say(fileBox) - } catch (err) { - log.error('下载模板失败', err) - await message.say('下载失败,请重试~') - } - } - - if (isAdminRoom && text === '#初始化') { - log.info('初始化系统~') - try { - await vika.init() - await message.say('初始化系统表完成~') - } catch (err) { - log.error('初始化系统失败', err) - await message.say('初始化系统失败,请重试~') - } - } - - } - - try { - - if (room && roomId && !isSelfMsg) { - - // 检测顺风车信息并格式化 - // const KEYWORD_LIST = [ '人找车', '车找人' ] - // try { - // // 判断消息中是否包含关键字 - // if (KEYWORD_LIST.some(keyword => message.text().includes(keyword))) { - // const replyMsg = await getFormattedRideInfo(message) - // if (replyMsg) { - // const replyText = replyMsg.choices[0].message.content.replace(/\r/g, '') - // log.info('回复内容:', replyText) - // await room.say(replyText) - // } - // } - // } catch (err) { - - // } - - // 智能问答开启时执行 - if (sysConfig.WX_OPENAI_ONOFF && ((text.indexOf(keyWord) !== -1 && sysConfig.AT_AHEAD) || !sysConfig.AT_AHEAD)) { - if (sysConfig.roomWhiteListOpen) { - const isInRoomWhiteList = sysConfig.roomWhiteList.includes(roomId) - if (isInRoomWhiteList) { - log.info('当前群在白名单内,请求问答...') - await wxai(sysConfig, bot, talker, room, message) - } else { - log.info('当前群不在白名单内,流程结束') - } - } - - if (!sysConfig.roomWhiteListOpen) { - log.info('系统未开启白名单,请求问答...') - await wxai(sysConfig, bot, talker, room, message) - } - } - - // IM服务开启时执行 - if (sysConfig.imOpen && types.Message.Text === message.type()) { - configData.clientChatEn.clientChatId = talker.id + ' ' + room.id - configData.clientChatEn.clientChatName = talker.name() + '@' + topic - // log.debug(configData) - socket.emit('CLIENT_ON', { - clientChatEn: configData.clientChatEn, - serverChatId: configData.serverChatEn.serverChatId, - }) - const data = { - msg: { - avatarUrl: '/static/image/im_server_avatar.png', - content: text, - contentType: 'text', - role: 'client', - }, - } - log.info(JSON.stringify(data)) - sendMsg(data) - } - - } - - if ((!room || !room.id) && !isSelfMsg) { - // 智能问答开启时执行 - if (sysConfig.WX_OPENAI_ONOFF && ((text.indexOf(keyWord) !== -1 && sysConfig.AT_AHEAD) || !sysConfig.AT_AHEAD)) { - if (sysConfig.contactWhiteListOpen) { - const isInContactWhiteList = sysConfig.contactWhiteList.includes(talker.id) - if (isInContactWhiteList) { - log.info('当前好友在白名单内,请求问答...') - await wxai(sysConfig, bot, talker, undefined, message) - } else { - log.info('当前好友不在白名单内,流程结束') - } - } - - if (!sysConfig.contactWhiteListOpen) { - log.info('系统未开启好友白名单,对所有好友有效,请求问答...') - await wxai(sysConfig, bot, talker, undefined, message) - } - } - } - - } catch (e) { - log.error('发起请求wxai失败', e) - } - } else { - if (message.self() && message.type() === types.Message.Text && text !== Prompts.a && text !== Prompts.b && text.includes('+')) { - try { - const textArr = text.split('+') - log.info(JSON.stringify(textArr)) - if (text.length > 23 && text.length < 33 && textArr.length === 2) { - vikaConfig.spaceName = textArr[1] - vikaConfig.token = textArr[0] - await createVika() - isVikaOk = true - config.baseConfig.VIKA_TOKEN = vikaConfig.token - config.baseConfig.VIKA_SPACENAME = vikaConfig.spaceName - await updateConfig(config) - await talker.say('配置成功,初始化中,请稍后...') - log.info('初始化系统~') - try { - await vika.init() - await talker.say('初始化系统表完成~') - } catch (err) { - log.error('初始化系统失败', err) - await talker.say('初始化系统失败,请发送 #初始化 重试~') - } - } else { - await talker.say(Prompts.a) - } - } catch (err) { - log.error('解析失败:', err) - await talker.say(Prompts.a) - } - } - } -} - -async function roomJoin (room: { topic: () => any; id: any; say: (arg0: string, arg1: any) => any }, inviteeList: Contact[], inviter: any) { - const nameList = inviteeList.map(c => c.name()).join(',') - log.info(`Room ${await room.topic()} got new member ${nameList}, invited by ${inviter}`) - - // 进群欢迎语,仅对开启了进群欢迎语白名单的群有效 - if (isVikaOk && sysConfig.welcomeList.includes(room.id) && inviteeList.length) { - await room.say(`欢迎加入${await room.topic()},请阅读群公告~`, inviteeList) - } -} - -async function onError (err: any) { - log.error('bot.onError:', JSON.stringify(err)) - // try { - // // job.cancel() - // } catch (e) { - // log.error('销毁定时任务失败:', JSON.stringify(e)) - // } -} - -async function main (vika: any) { - - // 检查维格表配置并启动 - if (vikaConfig.spaceName && vikaConfig.token) { - try { - await createVika() - isVikaOk = true - } catch (err) { - log.info('初始化vika失败:', err) - } - - } else { - log.error('\n================================================\n\nvikaConfig配置不全,请重新配置config.json文件中的token和spaceName之后重启,或者根据提示进行配置\n\n================================================\n') - } - - bot = getBot() - bot.on('scan', onScan) - - if (puppet === 'wechaty-puppet-xp') { - bot.on('login', onLogin) - } - if (puppet !== 'wechaty-puppet-xp') { - bot.on('ready', onReady) - } - - bot.on('logout', onLogout) - bot.on('message', onMessage) - bot.on('room-join', roomJoin) - bot.on('error', onError) - - bot.start() - .then(() => log.info('Starter Bot Started.')) - .catch((e: any) => log.error('bot运行异常:', JSON.stringify(e))) - - if (isVikaOk && sysConfig.imOpen) { - socket = imclient(bot, vika, configData) - } -} - -void main(vika) diff --git a/WechatBot/chatflow/src/init.ts b/WechatBot/chatflow/src/init.ts deleted file mode 100644 index c65cfa80f..000000000 --- a/WechatBot/chatflow/src/init.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* eslint-disable sort-keys */ -/* eslint-disable no-console */ - -import { VikaBot } from './plugins/vika.js' -import { baseConfig } from './config.js' - -const vikaConfig = { - spaceName: baseConfig['VIKA_SPACENAME'] || process.env['VIKA_SPACENAME'], - token: baseConfig['VIKA_TOKEN'] || process.env['VIKA_TOKEN'], -} -const vika = new VikaBot(vikaConfig) - -async function init (): Promise { - await vika.init() -} - -// async function getFields (datasheetId: string): Promise { -// await vika.getSheetFields(datasheetId) -// } - -// void getFields('dstKiDu2sEAXJGvsJR') - -void init() diff --git a/WechatBot/chatflow/src/lib/tool.ts b/WechatBot/chatflow/src/lib/tool.ts deleted file mode 100644 index 3ee4bfa3c..000000000 --- a/WechatBot/chatflow/src/lib/tool.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* eslint-disable sort-keys */ -import moment from 'moment' - -import type { - Contact, - Room, - // ScanStatus, - // WechatyBuilder, -} from 'wechaty' - -async function formatSentMessage (userSelf: Contact, text: string, talker?: Contact, room?: Room) { - // console.debug('发送的消息:', text) - const curTime = new Date().getTime() - const timeHms = moment(curTime).format('YYYY-MM-DD HH:mm:ss') - const record = { - fields: { - timeHms, - name: userSelf.name(), - topic: room ? (await room.topic() || '--') : (talker?.name() || '--'), - messagePayload: text, - wxid: room && talker ? (talker.id !== 'null' ? talker.id : '--') : userSelf.id, - roomid: room ? (room.id || '--') : (talker?.id || '--'), - messageType: 'selfSent', - }, - } - return record -} - -// 定义一个延时方法 -const waitForMs = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)) - -export { - waitForMs, - formatSentMessage, -} - -export default waitForMs diff --git a/WechatBot/chatflow/src/mods/mod.ts b/WechatBot/chatflow/src/mods/mod.ts deleted file mode 100644 index eff420dbb..000000000 --- a/WechatBot/chatflow/src/mods/mod.ts +++ /dev/null @@ -1 +0,0 @@ -export * as types from './types.js' diff --git a/WechatBot/chatflow/src/mods/types.ts b/WechatBot/chatflow/src/mods/types.ts deleted file mode 100644 index 9ec871777..000000000 --- a/WechatBot/chatflow/src/mods/types.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { - AppConfig, - AppConfigs, - BotConfig, - ContactConfig, - RoomConfig, - Config, - SysConfig, -} from '../schemas/mod.js' - -export { - type AppConfig, - type AppConfigs, - type BotConfig, - type ContactConfig, - type RoomConfig, - type Config, - type SysConfig, -} diff --git a/WechatBot/chatflow/src/plugins/chat-device.ts b/WechatBot/chatflow/src/plugins/chat-device.ts deleted file mode 100644 index 71dfaf055..000000000 --- a/WechatBot/chatflow/src/plugins/chat-device.ts +++ /dev/null @@ -1,468 +0,0 @@ -/* eslint-disable no-empty */ -/* eslint-disable sort-keys */ -import mqtt from 'mqtt' -import { v4 } from 'uuid' -import { FileBox } from 'file-box' -import { - // Contact, - log, - Contact, - // Message, - // ScanStatus, - Wechaty, -// UrlLink, -// MiniProgram, -} from 'wechaty' -import { wechaty2chatdev, propertyMessage, eventMessage } from './msg-format.js' - -import { - // waitForMs as wait, - formatSentMessage, -} from '../util/tool.js' - -class ChatDevice { - - chatbot!:any - chatdevice!:any - bot!: Wechaty - mqttclient:any - isConnected:any - propertyApi:string - eventApi:string - commandApi:string - constructor (username:string, password:string, endpoint:string, port:string|number, botId:string) { - - this.mqttclient = mqtt.connect(`mqtt://${endpoint}:${port || 1883}`, { - username, - password, - clientId: v4(), - }) - this.isConnected = false - this.propertyApi = `thing/chatbot/${botId}/property/post` - this.eventApi = `thing/chatbot/${botId}/event/post` - this.commandApi = `thing/chatbot/${botId}/command/invoke` - } - - init (bot:Wechaty) { - this.chatbot = bot - this.chatdevice = this - this.bot = bot - const that = this - this.mqttclient.on('connect', function () { - that.isConnected = true - log.info('================================================\n\nMQTT连接成功~\n\n================================================\n') - }) - this.mqttclient.on('reconnect', function (e:any) { - log.info('subscriber on reconnect') - }) - this.mqttclient.on('disconnect', function (e:any) { - log.info('disconnect--------', e) - that.isConnected = false - }) - this.mqttclient.on('error', function (e:any) { - log.info('error----------', e) - }) - this.mqttclient.on('message', this.onMessage) - this.sub_command() - } - - sub_command () { - this.mqttclient.subscribe(this.commandApi, function (err:any) { - if (err) { - log.info(err) - } - }) - } - - pub_property (msg:any) { - this.mqttclient.publish(this.propertyApi, msg) - } - - pub_event (msg:any) { - this.mqttclient.publish(this.eventApi, msg) - } - - async pub_message (msg:any) { - try { - const payload = await wechaty2chatdev(msg) - this.mqttclient.publish(this.eventApi, payload) - } catch (err) { - console.error(err) - } - - } - - getBot () { - return this.bot - } - - async onMessage (topic:string, message:any) { - log.info('mqtt onMessage:', topic, message.toString()) - // const content = JSON.parse(message.toString()) - message = JSON.parse(message) - const name = message.name - const params = message.params - - if (name === 'start') { - - } - if (name === 'stop') { - - } - if (name === 'logout') { - - } - if (name === 'logonoff') { - - } - if (name === 'userSelf') { - - } - if (name === 'say') { - - } - if (name === 'send') { - await send(params, this.chatbot) - } - if (name === 'sendAt') { - await sendAt(params, this.chatbot) - } - - if (name === 'aliasGet') { - - } - if (name === 'aliasSet') { - - } - if (name === 'roomCreate') { - await createRoom(params, this.chatbot) - } - if (name === 'roomAdd') { - - } - if (name === 'roomDel') { - - } - if (name === 'roomAnnounceGet') { - - } - if (name === 'roomAnnounceSet') { - - } - if (name === 'roomQuit') { - - } - if (name === 'roomTopicGet') { - - } - if (name === 'roomTopicSet') { - - } - if (name === 'roomQrcodeGet') { - await getQrcod(params, this.chatbot, this.chatdevice) - - } - if (name === 'memberAllGet') { - - } - if (name === 'contactAdd') { - - } - if (name === 'contactAliasSet') { - - } - if (name === 'contactFindAll') { - await getAllContact(this.chatdevice, this.chatbot) - } - if (name === 'contactFind') { - - } - if (name === 'roomFindAll') { - await getAllRoom(this.chatdevice, this.chatbot) - } - if (name === 'roomFind') { - - } - if (name === 'config') { - - } - - } - -} - -async function getAllContact (chatdevice:any, bot:Wechaty) { - const contactList:Contact[] = await bot.Contact.findAll() - let friends = [] - for (const i in contactList) { - const contact = contactList[i] - let avatar = '' - try { - avatar = JSON.parse(JSON.stringify(await contact?.avatar())).url - } catch (err) { - - } - const contactInfo = { - id: contact?.id, - gender: contact?.gender() || '', - name: contact?.name() || '', - alias: await contact?.alias() || '', - avatar, - } - friends.push(contactInfo) - - if (friends.length === 100) { - const msg = propertyMessage('contactList', friends) - chatdevice.pub_property(msg) - friends = [] - } - } - const msg = propertyMessage('contactList', friends) - chatdevice.pub_property(msg) - -} - -async function getAllRoom (chatdevice:any, bot:Wechaty) { - const roomList = await bot.Room.findAll() - for (const i in roomList) { - const room = roomList[i] - const roomInfo:any = {} - roomInfo.id = room?.id - - const avatar = await room?.avatar() - roomInfo.avatar = JSON.parse(JSON.stringify(avatar)).url - - roomInfo.ownerId = room?.owner()?.id - try { - roomInfo.topic = await room?.topic() - } catch (err) { - roomInfo.topic = room?.id - } - roomList[i] = roomInfo - } - const msg = propertyMessage('roomList', roomList) - chatdevice.pub_property(msg) -} - -async function send (params:any, bot:Wechaty) { - log.info('params:', params) - - let msg:any = '' - if (params.messageType === 'Text') { - /* { - "reqId":"442c1da4-9d3a-4f9b-a6e9-bfe858e4ac43", - "method":"thing.command.invoke", - "version":"1.0", - "timestamp":1610430718000, - "name":"send", - "params":{ - "toContacts":[ - "tyutluyc", - "5550027590@chatroom" - ], - "messageType":"Text", - "messagePayload":"welcome to wechaty!" - } - } */ - msg = params.messagePayload - - } else if (params.messageType === 'Contact') { - /* { - "reqId":"442c1da4-9d3a-4f9b-a6e9-bfe858e4ac43", - "method":"thing.command.invoke", - "version":"1.0", - "timestamp":1610430718000, - "name":"send", - "params":{ - "toContacts":[ - "tyutluyc", - "5550027590@chatroom" - ], - "messageType":"Contact", - "messagePayload":"tyutluyc" - } - } */ - const contactCard = await bot.Contact.find({ id: params.messagePayload }) - if (!contactCard) { - log.info('not found') - return { - msg: '无此联系人', - } - } else { - msg = contactCard - } - - } else if (params.messageType === 'Attachment') { - /* { - "reqId":"442c1da4-9d3a-4f9b-a6e9-bfe858e4ac43", - "method":"thing.command.invoke", - "version":"1.0", - "timestamp":1610430718000, - "name":"send", - "params":{ - "toContacts":[ - "tyutluyc", - "5550027590@chatroom" - ], - "messageType":"Attachment", - "messagePayload":"/tmp/text.txt" - } - } */ - if (params.messagePayload.indexOf('http') !== -1 || params.messagePayload.indexOf('https') !== -1) { - msg = FileBox.fromUrl(params.messagePayload) - } else { - msg = FileBox.fromFile(params.messagePayload) - } - - } else if (params.messageType === 'Image') { - /* { - "reqId":"442c1da4-9d3a-4f9b-a6e9-bfe858e4ac43", - "method":"thing.command.invoke", - "version":"1.0", - "timestamp":1610430718000, - "name":"send", - "params":{ - "toContacts":[ - "tyutluyc", - "5550027590@chatroom" - ], - "messageType":"Image", - "messagePayload":"https://wechaty.github.io/wechaty/images/bot-qr-code.png" - } - } */ - // msg = FileBox.fromUrl(params.messagePayload) - if (params.messagePayload.indexOf('http') !== -1 || params.messagePayload.indexOf('https') !== -1) { - log.info('图片http地址:', params.messagePayload) - msg = FileBox.fromUrl(params.messagePayload) - } else { - log.info('图片本地地址:', params.messagePayload) - msg = FileBox.fromFile(params.messagePayload) - } - - } else if (params.messageType === 'Url') { - /* { - "reqId":"442c1da4-9d3a-4f9b-a6e9-bfe858e4ac43", - "method":"thing.command.invoke", - "version":"1.0", - "timestamp":1610430718000, - "name":"send", - "params":{ - "toContacts":[ - "tyutluyc", - "5550027590@chatroom" - ], - "messageType":"Url", - "messagePayload":{ - "description":"WeChat Bot SDK for Individual Account, Powered by TypeScript, Docker, and Love", - "thumbnailUrl":"https://avatars0.githubusercontent.com/u/25162437?s=200&v=4", - "title":"Welcome to Wechaty", - "url":"https://github.com/wechaty/wechaty" - } - } - } */ - msg = params.messagePayload - - } else if (params.messageType === 'MiniProgram') { - /* { - "reqId":"442c1da4-9d3a-4f9b-a6e9-bfe858e4ac43", - "method":"thing.command.invoke", - "version":"1.0", - "timestamp":1610430718000, - "name":"send", - "params":{ - "toContacts":[ - "tyutluyc", - "5550027590@chatroom" - ], - "messageType":"MiniProgram", - "messagePayload":{ - "appid":"wx36027ed8c62f675e", - "description":"群组大师群管理工具", - "title":"群组大师", - "pagePath":"pages/start/relatedlist/index.html", - "thumbKey":"", - "thumbUrl":"http://mmbiz.qpic.cn/mmbiz_jpg/mLJaHznUd7O4HCW51IPGVarcVwAAAuofgAibUYIct2DBPERYIlibbuwthASJHPBfT9jpSJX4wfhGEBnqDvFHHQww/0", - "username":"gh_6c52e2baeb2d@app" - } - } - } */ - msg = params.messagePayload - - } else { - return { - msg: '不支持的消息类型', - } - } - - log.info('msg:', msg) - - const toContacts = params.toContacts - - for (let i = 0; i < toContacts.length; i++) { - if (toContacts[i].split('@').length === 2 || toContacts[i].split(':').length === 2) { - log.info(`向群${toContacts[i]}发消息`) - const room = await bot.Room.find({ id: toContacts[i] }) - if (room) { - try { - await room.say(msg) - await formatSentMessage(bot.currentUser, msg, undefined, room) - } catch (err) { - console.error(err) - } - } - } else { - log.info(`好友${toContacts[i]}发消息`) - // log.info(bot) - const contact = await bot.Contact.find({ id: toContacts[i] }) - if (contact) { - try { - await contact.say(msg) - await formatSentMessage(bot.currentUser, msg, contact, undefined) - } catch (err) { - console.error(err) - } - } - } - } - -} - -async function sendAt (params:any, bot:Wechaty) { - const atUserIdList = params.toContacts - const room = await bot.Room.find({ id: params.room }) - const atUserList = [] - for (const userId of atUserIdList) { - const curContact = await bot.Contact.find({ id:userId }) - atUserList.push(curContact) - } - await room?.say(params.messagePayload, ...atUserList) - await formatSentMessage(bot.currentUser, params.messagePayload, undefined, room) -} - -async function createRoom (params:any, bot:Wechaty) { - const contactList:Contact[] = [] - for (const i in params.contactList) { - const c = await bot.Contact.find({ name: params.contactList[i] }) - if (c) { - contactList.push(c) - } - } - - const room = await bot.Room.create(contactList, params.topic) - // log.info('Bot', 'createDingRoom() new ding room created: %s', room) - // await room.topic(params.topic) - - await room.say('你的专属群创建完成') - await formatSentMessage(bot.currentUser, '你的专属群创建完成', undefined, room) -} - -async function getQrcod (params:any, bot:Wechaty, chatdevice:any) { - const roomId = params.roomId - const room = await bot.Room.find({ id: roomId }) - const qr = await room?.qrCode() - const msg = eventMessage('qrcode', qr) - chatdevice.pub_event(msg) -} - -export { ChatDevice } -export default ChatDevice diff --git a/WechatBot/chatflow/src/plugins/connectors/chatgpt.ts b/WechatBot/chatflow/src/plugins/connectors/chatgpt.ts deleted file mode 100644 index bfaede407..000000000 --- a/WechatBot/chatflow/src/plugins/connectors/chatgpt.ts +++ /dev/null @@ -1,315 +0,0 @@ -/* eslint-disable no-console */ -/* eslint-disable sort-keys */ -import { - init, - // chat, - chatAibot, - // nlp, - // QueryData, - genToken, -} from '../sdk/openai/index.js' - -import { FileBox } from 'file-box' -// import excel2order from '../excel.js' - -import { - Contact, - Room, - Message, - // ScanStatus, - // WechatyBuilder, - log, - types, - Wechaty, -} from 'wechaty' - -import path from 'path' -// import os from 'os' - -import { - waitForMs as wait, - formatSentMessage, -} from '../util/tool.js' - -import { ChatGPTAPI } from 'chatgpt' - -const botTpyes = [ 'WxOpenai', 'ChatGPT' ] -const useBot = 0 -const callBot = botTpyes[useBot] - -const config = { - AutoReply: true, - MakeFriend: true, - ChatGPTSessionToken: 'eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..IMz6n01YT2ZrlL-c.ZRM6h_EhsvDTKBsfJv2l8pkCiQKaZ_-QdrvyJFUVsydnfs8QvgtxScpCfCzSNtPbo4SG9am5miwWQmseRyTjNoN3pNhGnWWWSc3FMNb1w9Ok_fbUokUf_H2YjcuAMqYpsb0YPieykFznAEiWwqdnpOHkvrxIVr2J71NTGzgBQ805oJXey92r-_btktR-uSaI5vhLQxoOBabSAcRCuEPG0k7_ChsaXd8p932UOzFeyAeh26xDock6-baLLYNbJ6nrQmnfx0nc-MjBEWU1wYXgfVqReeM_W_zRKM9rL0KsVg7GpuL5k_oiNUYpm1iEvbEfEFOhhK6zzR_j8awZ_qKEbVQRkuo9gH-OaLAEPib0kwTrwirbF2rOiiaLA9AE-nEQoQZ5CKkrRMGploFjx0sGXwmqrjNh1IzuVgf11NmHUCNYW-TweOdWo_3Wge1jjRUkamShFGYL478zK6Ve5BgyQZ3MZD5aAof6hWL8ELFu0THDio8cQUMQNP7RoBpQAFSLud1nyB4L5VB9BRafAClstO5Tn50o3obGtVY_mMl5WwFOTsofHutEiXhbP2JeuGAruwKdE5Ks8l5VEuv-36r7-5utIcvoBnJhXuyZaNq4xdyOf4rdXQDUNcI6wS9YR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FmBDxlcYcK1qqMX_gA62ak3IEakGT_Rrp14-e4d4NrnlVNZsPVUVCLLF924hirlhO5vOXRdVlovZpJSpf9QG5kAEI7ZlxuLFHydODAE9c8XXywUNmJAf8BqMjrSujpjeM6hDpGcuO6rLEBURuYGslfQk_z1A6f94r3gel6LYH1iGS-_GJTyXhD3oVHm-PbGAiwHmBN9_IIQc-IKiDh3-cyrPy0UexXmJI79UHrBjuz2q9kwGDkT2X7zcpPSMEwa2BaAZvwOW_zCz54LRMOS-OXz4UsZXCb_vgZkrp6LQ3_eAHRzHro_eXuTtIQJRxmNRdqLSMICWRQZJFx7fk0eFPu9Zw4APT_HtWrcEioA1l_nEZfveebn6VSVQyb6nIUOJghyWvECK5agwCeHoJ4ma6nYThGDD06qszvkRJkVg1pob_GscwDbE15OhpjeYfP8lGVBIo6MVuqbMZSGZlZ8dbYG29gaxN0NC11MUkpCAwam7a18usjg0lL_sAr0WXo517LovIgzBT3KhqMZxL8RG3UaQP_vwWt4TkBvN7wWuudEd__70rgAk1gEbJ1fTuDsYeUJq93CKoN5Wc4o05jK2LfcBzIaNopxq5je38rWaECCLYHOlPlVy9eA.uVxf9FJ31LUx0p8hAp2wyA', -} -const __dirname = path.resolve() -// const userInfo = os.userInfo() -// const rootPath = `${userInfo.homedir}\\Documents\\WeChat Files\\` - -async function wxai (sysConfig: any, bot: Wechaty, talker: Contact, room: Room | undefined, message: Message) { - // const talker = message.talker() - // const roomid = room ? room.id : '' - let text = message.text() - const keyWord = bot.currentUser.name() - - if (text.indexOf(keyWord) !== -1 && text.length > 4) { - const index = text.lastIndexOf(keyWord) + keyWord.length - 1 - text = text.substring(index + 1, text.length) - } - - let answer: any = {} - if (message.type() === types.Message.Text && room) { - answer = await aibot(sysConfig, talker, room, text) - } - - if (message.type() === types.Message.Text && !room) { - answer = await aibot(sysConfig, talker, undefined, text) - } - - if (room && message.type() === types.Message.MiniProgram && !sysConfig.linkWhiteList.includes(talker.id)) { - const miniProgram = await message.toMiniProgram() - text = `${miniProgram.title()?.slice(0, 5)}是由群主或管理员所发布的小程序卡片消息吗?` - answer = await aibot(sysConfig, talker, room, text) - } - - if (room && message.type() === types.Message.Url && !sysConfig.linkWhiteList.includes(talker.id)) { - const urllink = await message.toUrlLink() - text = `${urllink.title().slice(0, 5)}是由群主或管理员所发布的小程序卡片消息吗?` - answer = await aibot(sysConfig, talker, room, text) - } - - // log.info(JSON.stringify(answer)) - console.debug('回复消息:', JSON.stringify(answer)) - - if (answer.messageType) { - switch (answer.messageType) { - case types.Message.Text: { - log.info(`向 ${talker.name()} 发送消息...`) - - if (room) { - // answer = text.length > 20 ? (answer.text + '\n------------------------------\n' + talker.name() + ':' + text.slice(0, 10) + '...') : (answer.text + '\n------------------------------\n' + talker.name() + ':' + text) - answer = answer.text + '\n' - // console.debug(answer) - await room.say(answer, ...[ talker ]) - formatSentMessage(bot.currentUser, answer, undefined, room) - - } else { - answer = answer.text + '\n' - await message.say(answer) - formatSentMessage(bot.currentUser, answer, message.talker(), undefined) - } - - break - } - case types.Message.Image: { - const fileBox = FileBox.fromUrl(answer.text.url) - - if (room) { - await room.say(fileBox) - formatSentMessage(bot.currentUser, fileBox.toString(), undefined, room) - } else { - await message.say(fileBox) - formatSentMessage(bot.currentUser, fileBox.toString(), message.talker(), undefined) - } - - break - } - case types.Message.MiniProgram: { - - const miniProgram = new bot.MiniProgram({ - appid: answer.text.appid, - pagePath: answer.text.pagepath, - // thumbUrl: answer.text.thumb_url, - thumbKey: '42f8609e62817ae45cf7d8fefb532e83', - thumbUrl: 'https://openai-75050.gzc.vod.tencent-cloud.com/openaiassets_afffe2516dac42406e06eddc19303a8d.jpg', - title: answer.text.title, - }) - - if (room) { - await room.say(miniProgram) - formatSentMessage(bot.currentUser, miniProgram.toString(), undefined, message.room()) - - } else { - await message.say(miniProgram) - formatSentMessage(bot.currentUser, miniProgram.toString(), message.talker(), undefined) - } - - break - } - default: { - break - } - - } - - } - - if (message.type() === types.Message.Attachment) { - try { - const file = await message.toFileBox() - const fileName = file.name - // text = `${urllink.title().slice(0, 5)}是由群主或管理员所发布的小程序卡片消息吗?` - // answer = await aibot(talker, room, text) - if (fileName.split('.')[1] === 'xlsx') { - // log.info('file=============', file) - const filePath = __dirname + `\\cache\\${new Date().getTime() + fileName}` - // let filePath = `C:\\Users\\wechaty\\Documents\\WeChat Files\\wxid_0o1t51l3f57221\\FileStorage\\File\\2022-05\\${file.name}` - await file.toFile(filePath) - await wait(1000) - log.info('fileName=====', filePath) - - // await excel2order(filePath, message) - } - } catch (err) { - log.error('转换失败', err) - } - - } - - // if (message.type() === types.Message.Image) { - // await wait(1000) - // try { - // const file = await message.toFileBox() - // log.info('image=====', file) - // } catch (err) { - // log.error('image=====', err) - // } - - // } - -}; - -async function aibot (sysConfig: any, talker: any, room: any, query: any) { - let answer = {} - const roomid = room?.id - const wxid = talker.id - const nickName = talker.name() - const topic = await room?.topic() - const content = query - - // log.info(opt) - - let answerJson - switch (callBot) { - case 'WxOpenai': - // log.info('开始请求微信对话平台...') - init({ - EncodingAESKey: sysConfig.EncodingAESKey, - TOKEN: sysConfig.WX_TOKEN, - }) - - try { - const username = room ? (nickName + '/' + topic) : nickName - const userid = room ? (wxid + '/' + roomid) : wxid - const signature = genToken({ - userid, - username, - }) - - let queryData - if (sysConfig.DIFF_REPLY_ONOFF && room) { - queryData = { - first_priority_skills: [ topic || '' ], - query, - second_priority_skills: [ '通用问题' ], - signature, - } - } else { - queryData = { - first_priority_skills: [ '通用问题' ], - query, - signature, - } - } - - const resMsg = await chatAibot(queryData) - // console.debug(resMsg) - log.info('对话返回原始:', resMsg) - // log.info('对话返回:', JSON.stringify(resMsg).replace(/[\r\n]/g, "").replace(/\ +/g, "")) - log.info('回答内容:', resMsg.msgtype, resMsg.query, resMsg.answer) - // console.debug(resMsg.query) - // console.debug(resMsg.answer) - - if (resMsg.msgtype && resMsg.confidence > 0.8) { - switch (resMsg.msgtype) { - case 'text': - answer = { - messageType: types.Message.Text, - text: resMsg.answer || resMsg.msg[0].content, - } - break - case 'miniprogrampage': - answerJson = JSON.parse(resMsg.answer) - answer = { - messageType: types.Message.MiniProgram, - text: answerJson.miniprogrampage, - } - break - case 'image': - answerJson = JSON.parse(resMsg.answer) - answer = { - messageType: types.Message.Image, - text: answerJson.image, - } - break - case 'callback': - if (resMsg.answer_type === 'text') { - answer = { - messageType: types.Message.Text, - text: resMsg.answer, - } - } - - break - default: - log.info(JSON.stringify({ msg: '没有命中关键字', nickName, query, roomid, topic })) - break - } - - if (sysConfig.DIFF_REPLY_ONOFF) { - if (room && (resMsg.skill_name !== topic && resMsg.skill_name !== '通用问题')) { - answer = {} - } - } - } - } catch (err) { - log.error(JSON.stringify(err)) - } - break - case 'ChatGPT': - try { - const api = new ChatGPTAPI({ sessionToken: config.ChatGPTSessionToken }) - // ensure the API is properly authenticated (optional) - await api.ensureAuth() - const t0 = new Date().getTime() - console.log('content: ', content) - // send a message and wait for the response - const response = await api.sendMessage(content) - // TODO: format response to compatible with wechat messages - const t1 = new Date().getTime() - console.log('response: ', response) - console.log('耗时: ', (t1 - t0) / 1000, 's') - // response is a markdown-formatted string - answer = { - messageType: types.Message.Text, - text: response, - } - } catch (err) { - console.error(err) - } - break - default: - console.debug('没有匹配') - break - } - - return answer - -} - -export { - wxai, - aibot, -} - -export default wxai diff --git a/WechatBot/chatflow/src/plugins/connectors/mod.ts b/WechatBot/chatflow/src/plugins/connectors/mod.ts deleted file mode 100644 index 5b7ed8ad1..000000000 --- a/WechatBot/chatflow/src/plugins/connectors/mod.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { - wxai, - aibot, -} from './wx-openai.js' - -export { - wxai, - aibot, -} diff --git a/WechatBot/chatflow/src/plugins/connectors/wx-openai.ts b/WechatBot/chatflow/src/plugins/connectors/wx-openai.ts deleted file mode 100644 index 83d53ed54..000000000 --- a/WechatBot/chatflow/src/plugins/connectors/wx-openai.ts +++ /dev/null @@ -1,314 +0,0 @@ -/* eslint-disable no-console */ -/* eslint-disable sort-keys */ -import { - init, - // chat, - chatAibot, - // nlp, - // QueryData, - genToken, -} from '../sdk/openai/index.js' - -import { FileBox } from 'file-box' -// import excel2order from '../excel.js' - -import { - Contact, - Room, - Message, - // ScanStatus, - // WechatyBuilder, - log, - types, - Wechaty, -} from 'wechaty' - -import path from 'path' -// import os from 'os' - -import { - waitForMs as wait, - formatSentMessage, -} from '../util/tool.js' - -import { ChatGPTAPI } from 'chatgpt' - -const botTpyes = [ 'WxOpenai', 'ChatGPT' ] -const useBot = 0 -const callBot = botTpyes[useBot] - -const config = { - AutoReply: true, - MakeFriend: true, - ChatGPTSessionToken: 'eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..IMz6n01YT2ZrlL-c.ZRM6h_EhsvDTKBsfJv2l8pkCiQKaZ_-QdrvyJFUVsydnfs8QvgtxScpCfCzSNtPbo4SG9am5miwWQmseRyTjNoN3pNhGnWWWSc3FMNb1w9Ok_fbUokUf_H2YjcuAMqYpsb0YPieykFznAEiWwqdnpOHkvrxIVr2J71NTGzgBQ805oJXey92r-_btktR-uSaI5vhLQxoOBabSAcRCuEPG0k7_ChsaXd8p932UOzFeyAeh26xDock6-baLLYNbJ6nrQmnfx0nc-MjBEWU1wYXgfVqReeM_W_zRKM9rL0KsVg7GpuL5k_oiNUYpm1iEvbEfEFOhhK6zzR_j8awZ_qKEbVQRkuo9gH-OaLAEPib0kwTrwirbF2rOiiaLA9AE-nEQoQZ5CKkrRMGploFjx0sGXwmqrjNh1IzuVgf11NmHUCNYW-TweOdWo_3Wge1jjRUkamShFGYL478zK6Ve5BgyQZ3MZD5aAof6hWL8ELFu0THDio8cQUMQNP7RoBpQAFSLud1nyB4L5VB9BRafAClstO5Tn50o3obGtVY_mMl5WwFOTsofHutEiXhbP2JeuGAruwKdE5Ks8l5VEuv-36r7-5utIcvoBnJhXuyZaNq4xdyOf4rdXQDUNcI6wS9YR4AKOyCJKHiZ91RuxTR5Tx9Tz8JWCZAYzP3HJNh9ql6wjFSytqdD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LF924hirlhO5vOXRdVlovZpJSpf9QG5kAEI7ZlxuLFHydODAE9c8XXywUNmJAf8BqMjrSujpjeM6hDpGcuO6rLEBURuYGslfQk_z1A6f94r3gel6LYH1iGS-_GJTyXhD3oVHm-PbGAiwHmBN9_IIQc-IKiDh3-cyrPy0UexXmJI79UHrBjuz2q9kwGDkT2X7zcpPSMEwa2BaAZvwOW_zCz54LRMOS-OXz4UsZXCb_vgZkrp6LQ3_eAHRzHro_eXuTtIQJRxmNRdqLSMICWRQZJFx7fk0eFPu9Zw4APT_HtWrcEioA1l_nEZfveebn6VSVQyb6nIUOJghyWvECK5agwCeHoJ4ma6nYThGDD06qszvkRJkVg1pob_GscwDbE15OhpjeYfP8lGVBIo6MVuqbMZSGZlZ8dbYG29gaxN0NC11MUkpCAwam7a18usjg0lL_sAr0WXo517LovIgzBT3KhqMZxL8RG3UaQP_vwWt4TkBvN7wWuudEd__70rgAk1gEbJ1fTuDsYeUJq93CKoN5Wc4o05jK2LfcBzIaNopxq5je38rWaECCLYHOlPlVy9eA.uVxf9FJ31LUx0p8hAp2wyA', -} -const __dirname = path.resolve() -// const userInfo = os.userInfo() -// const rootPath = `${userInfo.homedir}\\Documents\\WeChat Files\\` - -async function wxai (sysConfig: any, bot: Wechaty, talker: Contact, room: Room | undefined, message: Message) { - // const talker = message.talker() - // const roomid = room ? room.id : '' - let text = message.text() - const keyWord = bot.currentUser.name() - - if (text.indexOf(keyWord) !== -1 && text.length > 4) { - const index = text.lastIndexOf(keyWord) + keyWord.length - 1 - text = text.substring(index + 1, text.length) - } - - let answer: any = {} - if (message.type() === types.Message.Text && room) { - answer = await aibot(sysConfig, talker, room, text) - } - - if (message.type() === types.Message.Text && !room) { - answer = await aibot(sysConfig, talker, undefined, text) - } - - if (room && message.type() === types.Message.MiniProgram && !sysConfig.linkWhiteList.includes(talker.id)) { - const miniProgram = await message.toMiniProgram() - text = `${miniProgram.title()?.slice(0, 5)}是由群主或管理员所发布的小程序卡片消息吗?` - answer = await aibot(sysConfig, talker, room, text) - } - - if (room && message.type() === types.Message.Url && !sysConfig.linkWhiteList.includes(talker.id)) { - const urllink = await message.toUrlLink() - text = `${urllink.title().slice(0, 5)}是由群主或管理员所发布的小程序卡片消息吗?` - answer = await aibot(sysConfig, talker, room, text) - } - - // log.info(JSON.stringify(answer)) - console.debug('回复消息:', JSON.stringify(answer)) - - if (answer.messageType) { - switch (answer.messageType) { - case types.Message.Text: { - log.info(`向 ${talker.name()} 发送消息...`) - - if (room) { - // answer = text.length > 20 ? (answer.text + '\n------------------------------\n' + talker.name() + ':' + text.slice(0, 10) + '...') : (answer.text + '\n------------------------------\n' + talker.name() + ':' + text) - answer = answer.text + '\n' - // console.debug(answer) - await room.say(answer, ...[ talker ]) - formatSentMessage(bot.currentUser, answer, undefined, room) - - } else { - answer = answer.text + '\n' - await message.say(answer) - formatSentMessage(bot.currentUser, answer, message.talker(), undefined) - } - - break - } - case types.Message.Image: { - const fileBox = FileBox.fromUrl(answer.text.url) - - if (room) { - await room.say(fileBox) - formatSentMessage(bot.currentUser, fileBox.toString(), undefined, room) - } else { - await message.say(fileBox) - formatSentMessage(bot.currentUser, fileBox.toString(), message.talker(), undefined) - } - - break - } - case types.Message.MiniProgram: { - - const miniProgram = new bot.MiniProgram({ - appid: answer.text.appid, - pagePath: answer.text.pagepath, - // thumbUrl: answer.text.thumb_url, - thumbKey: '42f8609e62817ae45cf7d8fefb532e83', - thumbUrl: 'https://openai-75050.gzc.vod.tencent-cloud.com/openaiassets_afffe2516dac42406e06eddc19303a8d.jpg', - title: answer.text.title, - }) - - if (room) { - await room.say(miniProgram) - formatSentMessage(bot.currentUser, miniProgram.toString(), undefined, message.room()) - - } else { - await message.say(miniProgram) - formatSentMessage(bot.currentUser, miniProgram.toString(), message.talker(), undefined) - } - - break - } - default: { - break - } - - } - - } - - if (message.type() === types.Message.Attachment) { - try { - const file = await message.toFileBox() - const fileName = file.name - // text = `${urllink.title().slice(0, 5)}是由群主或管理员所发布的小程序卡片消息吗?` - // answer = await aibot(talker, room, text) - if (fileName.split('.')[1] === 'xlsx') { - // log.info('file=============', file) - const filePath = __dirname + `\\cache\\${new Date().getTime() + fileName}` - // let filePath = `C:\\Users\\wechaty\\Documents\\WeChat Files\\wxid_0o1t51l3f57221\\FileStorage\\File\\2022-05\\${file.name}` - await file.toFile(filePath) - await wait(1000) - log.info('fileName=====', filePath) - - // await excel2order(filePath, message) - } - } catch (err) { - log.error('转换失败', err) - } - - } - - // if (message.type() === types.Message.Image) { - // await wait(1000) - // try { - // const file = await message.toFileBox() - // log.info('image=====', file) - // } catch (err) { - // log.error('image=====', err) - // } - - // } - -}; - -async function aibot (sysConfig: any, talker: any, room: any, query: any) { - let answer = {} - const roomid = room?.id - const wxid = talker.id - const nickName = talker.name() - const topic = await room?.topic() - // log.info(opt) - const content = query - - let answerJson - switch (callBot) { - case 'WxOpenai': - // log.info('开始请求微信对话平台...') - init({ - EncodingAESKey: sysConfig.EncodingAESKey, - TOKEN: sysConfig.WX_TOKEN, - }) - - try { - const username = room ? (nickName + '/' + topic) : nickName - const userid = room ? (wxid + '/' + roomid) : wxid - const signature = genToken({ - userid, - username, - }) - - let queryData - if (sysConfig.DIFF_REPLY_ONOFF && room) { - queryData = { - first_priority_skills: [ topic || '' ], - query, - second_priority_skills: [ '通用问题' ], - signature, - } - } else { - queryData = { - first_priority_skills: [ '通用问题' ], - query, - signature, - } - } - - const resMsg = await chatAibot(queryData) - // console.debug(resMsg) - log.info('对话返回原始:', resMsg) - // log.info('对话返回:', JSON.stringify(resMsg).replace(/[\r\n]/g, "").replace(/\ +/g, "")) - log.info('回答内容:', resMsg.msgtype, resMsg.query, resMsg.answer) - // console.debug(resMsg.query) - // console.debug(resMsg.answer) - - if (resMsg.msgtype && resMsg.confidence > 0.8) { - switch (resMsg.msgtype) { - case 'text': - answer = { - messageType: types.Message.Text, - text: resMsg.answer || resMsg.msg[0].content, - } - break - case 'miniprogrampage': - answerJson = JSON.parse(resMsg.answer) - answer = { - messageType: types.Message.MiniProgram, - text: answerJson.miniprogrampage, - } - break - case 'image': - answerJson = JSON.parse(resMsg.answer) - answer = { - messageType: types.Message.Image, - text: answerJson.image, - } - break - case 'callback': - if (resMsg.answer_type === 'text') { - answer = { - messageType: types.Message.Text, - text: resMsg.answer, - } - } - - break - default: - log.info(JSON.stringify({ msg: '没有命中关键字', nickName, query, roomid, topic })) - break - } - - if (sysConfig.DIFF_REPLY_ONOFF) { - if (room && (resMsg.skill_name !== topic && resMsg.skill_name !== '通用问题')) { - answer = {} - } - } - } - } catch (err) { - log.error(JSON.stringify(err)) - } - break - case 'ChatGPT': - try { - const api = new ChatGPTAPI({ sessionToken: config.ChatGPTSessionToken }) - // ensure the API is properly authenticated (optional) - await api.ensureAuth() - const t0 = new Date().getTime() - console.log('content: ', content) - // send a message and wait for the response - const response = await api.sendMessage(content) - // TODO: format response to compatible with wechat messages - const t1 = new Date().getTime() - console.log('response: ', response) - console.log('耗时: ', (t1 - t0) / 1000, 's') - // response is a markdown-formatted string - answer = { - messageType: types.Message.Text, - text: response, - } - } catch (err) { - console.error(err) - } - break - default: - console.debug('没有匹配') - break - } - - return answer - -} - -export { - wxai, - aibot, -} - -export default wxai diff --git a/WechatBot/chatflow/src/plugins/excel.d.ts b/WechatBot/chatflow/src/plugins/excel.d.ts deleted file mode 100644 index 93e34f4ad..000000000 --- a/WechatBot/chatflow/src/plugins/excel.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare module '*' -declare module './excel.js' diff --git a/WechatBot/chatflow/src/plugins/excel.js b/WechatBot/chatflow/src/plugins/excel.js deleted file mode 100755 index ca4aa3371..000000000 --- a/WechatBot/chatflow/src/plugins/excel.js +++ /dev/null @@ -1,283 +0,0 @@ -/* eslint-disable no-undef */ -/* eslint-disable sort-keys */ -/* eslint-disable @typescript-eslint/no-misused-promises */ -/* eslint-disable eqeqeq */ -/* eslint-disable no-console */ -import nodeXlsx from 'node-xlsx' -import ExcelJS from 'exceljs' -import fs from 'fs' -import { FileBox } from 'file-box' -import path from 'path' -import { VikaBot } from './vika.js' -const __dirname = path.resolve() - -async function excel2order (filepath, message) { - // console.debug('文件路径:', filepath) - const s = { - fill: { - fgColor: { rgb: 'FFCC33' }, // 16进制,注意要去掉# - }, - } - - const sheets = nodeXlsx.parse(filepath) - // console.debug(sheets) - // 解析所有sheet - if (sheets.length === 6) { - sheets.forEach(async sheet => { - // sheet.data是所有行数据 - const rows = sheet.data - const name = sheet.name - console.debug(name) - if (name == '顾客购买表(商品列排)') { - console.log(rows.length) - const keys = rows[0] - const keysLength = keys.length - const orders = {} - const rowLength = keys.length - rows.shift() - rows.pop() - rows.sort(function (a, b) { - return String(a[keysLength - 1]) - String(b[keysLength - 1]) - }) - const num = { - - } - for (let i = 0; i < rows.length; i++) { - - // console.log(`第${i + 1}行数据:${rows[i]}`) - const row = rows[i] - row[rowLength - 1] = String(row[rowLength - 1]) - const order = {} - for (const y in row) { - order[y] = row[y] - } - // order.index = i - // console.debug(order)louOrders - // console.debug(order[0]) - - if (Object.keys(orders).includes(order[rowLength - 1])) { - const qiOrders = orders[order[rowLength - 1]] - - if (Object.keys(qiOrders).includes(order[rowLength - 2])) { - const louOrders = qiOrders[order[rowLength - 2]] - louOrders.push(order) - louOrders.sort(function (a, b) { - return a[rowLength - 3] - b[rowLength - 3] - }) - qiOrders[order[rowLength - 2]] = louOrders - orders[order[rowLength - 1]] = qiOrders - - } else { - const louOrders = [order] - qiOrders[order[rowLength - 2]] = louOrders - orders[order[rowLength - 1]] = qiOrders - - } - - } else { - const qiOrders = {} - qiOrders[order[rowLength - 2]] = [order] - orders[order[rowLength - 1]] = qiOrders - // console.debug(JSON.stringify(orders)) - - } - - } - // console.debug(JSON.stringify(orders)) - const newList = [] - const excelData = [] - - // 添加数据 - for (const i in orders) { - // newList.push(i + '期') - const addInfo = {} - // 名称 - addInfo.name = i + '期(弄)' - - // 固定表头 - addInfo.data = [ - [keys[keysLength - 2], keys[keysLength - 3], keys[keysLength - 10]], - ] - - const qicount = { - - } - - // 表头及计数初始化 - for (let g = 4; g < keys.length - 19; g++) { - addInfo.data[0].push(keys[g]) - qicount[g] = 0 - } - - const qi = orders[i] - for (const j in qi) { - // newList.push(j + '号楼') - const loucount = { - - } - - for (let g = 4; g < keys.length - 19; g++) { - loucount[g] = 0 - } - - const lou = qi[j] - - for (const x in lou) { - const shi = lou[x] - for (let g = 4; g < keys.length - 19; g++) { - loucount[g] = loucount[g] + shi[g] - } - newList.push(shi) - const shiorder = [shi[rowLength - 2] + '号楼', shi[rowLength - 3], shi[rowLength - 10]] - - for (let g = 4; g < keys.length - 19; g++) { - shiorder.push(shi[g] || 0) - } - addInfo.data.push(shiorder) - } - - const count = [`${j}号楼小计:`, '', ''] - const blankRow = ['', '', ''] - const titleRow = [keys[keysLength - 2], keys[keysLength - 3], keys[keysLength - 10]] - - for (let g = 4; g < keys.length - 19; g++) { - count.push(loucount[g] || 0) - blankRow.push('') - titleRow.push(keys[g]) - qicount[g] = qicount[g] + loucount[g] - } - console.debug(JSON.stringify(count)) - addInfo.data.push(count) - addInfo.data.push(blankRow) - addInfo.data.push(titleRow) - - } - // console.debug(JSON.stringify(qicount)) - - const count = ['合计', '', ''] - for (let g = 4; g < keys.length - 19; g++) { - count.push(qicount[g] || 0) - } - // console.debug('合计-------------------', count) - - addInfo.data.push(count) - excelData.push(JSON.parse(JSON.stringify(addInfo))) - } - // console.debug(excelData) - console.debug(newList.length) - // 写入Excel数据 - try { - // 写xlsx - const buffer = nodeXlsx.build(excelData) - let newpath = __dirname + `\\cache\\汇总单_${path.basename(filepath)}` - // const newpath = 'C:\\Users\\wechaty\\Documents\\GitHub\\wechat-openai-qa-bot\\data1652169999200.xls' - // console.info('newpath==================================', newpath) - // 写入数据 - fs.writeFile(newpath, buffer, async function (err) { - if (err) { - throw err - } - // 输出日志 - console.log('Write to xls has finished') - await xlsxrw(newpath) - - const fileBox = FileBox.fromFile(newpath) - console.log(fileBox) - if (message) { - await message.say('转换成功,请下载查看~') - await message.say(fileBox) - newpath = '' - message = '' - } - }) - - } catch (e) { - await message.say('格式转换失败:\n1.请检查原始表格是否正确\n2.仅支持从快团团默认导出的全量字段表格\n3.表格中必须须包含 顾客购买表(商品列排) sheet\n4.文件名中不能包含括号等特殊字符,建议使用导出的原始文件名') - // 输出日志 - console.log('excel写入异常,error=%s', e.stack) - return e - } - } - - }) - } -} - -// let demopath = 'tools/订单20_47_20.xlsx' -// excel2order(demopath) - -async function xlsxrw (filename) { - const workbook = new ExcelJS.Workbook() - await workbook.xlsx.readFile(filename) - workbook.eachSheet(function (worksheet, sheetId) { - - // 遍历工作表中的所有行(包括空行) - worksheet.eachRow({ includeEmpty: true }, function (row, rowNumber) { - // console.log('Row ' + rowNumber + ' = ' + JSON.stringify(row.values)) - row.height = 30 - - row.eachCell({ includeEmpty: true }, function (cell, colNumber) { - // console.log('Cell ' + colNumber + ' = ' + cell.value) - if (row.getCell(1).value) { - // 在A1周围设置单个细边框 - cell.border = { - top: { style:'thin' }, - left: { style:'thin' }, - bottom: { style:'thin' }, - right: { style:'thin' }, - } - cell.alignment = { vertical: 'middle', horizontal: 'center', wrapText: true } - } - - if (rowNumber === 1) { - row.height = 20 - // console.log('Cell ' + colNumber + ' = ' + cell.value) - if (colNumber < 3) { - worksheet.getColumn(colNumber).width = 10 - } else { - worksheet.getColumn(colNumber).width = 20 - } - - cell.alignment = { wrapText: true } - // cell.font = { - // bold: true, - // } - - } - if (row.getCell(1).value && row.getCell(1).value.includes('小计')) { - // 遍历一行中的所有单元格(包括空单元格) - console.log('row ', JSON.stringify(row.values)) - // console.log('Cell ' + colNumber + ' = ' + cell.value) - if (colNumber < 3) { - cell.font = { - bold: true, - } - cell.fill = { - type: 'pattern', - pattern: 'darkTrellis', - fgColor: { argb: 'FFFFFF00' }, - bgColor: { argb: 'FF0000FF' }, - } - } else { - cell.font = { - bold: true, - } - cell.fill = { - type: 'pattern', - pattern: 'darkTrellis', - fgColor: { argb: 'FFFFFF00' }, - bgColor: { argb: 'FF0000FF' }, - } - } - - } - - }) - }) - - }) - - await workbook.xlsx.writeFile(filename) -} - -export default excel2order diff --git a/WechatBot/chatflow/src/plugins/group-notice.ts b/WechatBot/chatflow/src/plugins/group-notice.ts deleted file mode 100644 index 8ae1e3cb0..000000000 --- a/WechatBot/chatflow/src/plugins/group-notice.ts +++ /dev/null @@ -1,93 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -import 'dotenv/config.js' - -import { Contact, Message, types, log, Wechaty } from 'wechaty' -import { FileBox } from 'file-box' -import XLSX from 'xlsx' - -const delay = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)) - -async function sendTextMessage (contact: Contact, text: string): Promise { - try { - await contact.say(`${contact.name()},${text}`) - return true - } catch (error) { - log.error('StarterBot', 'Error sending message: %s', error) - return false - } -} - -async function sendNotice (bot:Wechaty, msg: Message) { - log.info('sendNotice:', msg.talker().id) - await delay(3000) - // 检测群消息 - if (msg.type() === types.Message.Attachment) { - const file = await msg.toFileBox() - const fileType = file.name.split('.').pop() - - if (fileType === 'xlsx' || fileType === 'xls') { - const buffer = await file.toBuffer() - const workbook = XLSX.read(buffer, { type: 'buffer' }) - const sheetName = workbook.SheetNames[0] || 'null' - const sheet = workbook.Sheets[sheetName] - - if (sheet !== undefined) { - const data:any = XLSX.utils.sheet_to_json(sheet, { header: 1 }) - - if (data[0].includes('wxid') && data[0].includes('text') && data[0].includes('state')) { - const wxidIndex = data[0].indexOf('wxid') - const textIndex = data[0].indexOf('text') - const stateIndex = data[0].indexOf('state') - - let successCount = 0 - let failureCount = 0 - const failedWxids:string[] = [] - - for (let i = 1; i < data.length; i++) { - const wxid = data[i][wxidIndex] - const text = data[i][textIndex] - log.info('通知内容:', wxid, text) - - try { - const contact:Contact|undefined = await bot.Contact.find({ id: wxid }) - log.info('contact:', JSON.stringify(contact)) - if (contact && contact.friend()) { - const isSuccess = await sendTextMessage(contact, text) - await delay(100) - data[i][stateIndex] = isSuccess ? '成功' : '失败' - isSuccess ? successCount++ : failureCount++ - if (!isSuccess) { - failedWxids.push(wxid) - } - } else { - data[i][stateIndex] = '失败' - failedWxids.push(wxid) - failureCount++ - } - } catch (err) { - log.info('wxid不存在', err) - } - } - - const updatedSheet = XLSX.utils.aoa_to_sheet(data) - workbook.Sheets[sheetName] = updatedSheet - const updatedBuffer = XLSX.write(workbook, { bookType: 'xlsx', type: 'buffer' }) - - const updatedFile = FileBox.fromBuffer(updatedBuffer, 'res_' + file.name) - log.info('updatedFile:', updatedFile) - await msg.say(`通知发送完成,成功${successCount}人,失败${failureCount}人,详情查看excel文件`) - await msg.say(updatedFile) - // if (failedWxids.length > 0) { - // await msg.say(`发送失败的wxid:\n${failedWxids.join('\n')}`) - // } - } - } - - } - } - -} - -export { sendNotice } - -export default sendNotice diff --git a/WechatBot/chatflow/src/plugins/im.ts b/WechatBot/chatflow/src/plugins/im.ts deleted file mode 100644 index 7475ea913..000000000 --- a/WechatBot/chatflow/src/plugins/im.ts +++ /dev/null @@ -1,171 +0,0 @@ -/* eslint-disable sort-keys */ - -import { - log, - Room, - Wechaty, -} from 'wechaty' -import * as io from 'socket.io-client' -import { - formatSentMessage, -} from '../util/tool.js' - -// IM相关配置 -const configData = { - chatInfoEn: { - chatState: 'agent', // chat状态;robot 机器人、agent 客服 - inputContent: '', // 输入框内容 - lastMsgShowTime: new Date(), // 最后一个消息的显示时间 - msgList: [], // 消息列表 - state: 'on', // 连接状态;on :在线;off:离线 - }, // 会话信息,包括聊天记录、状态 - socket: {} as any, - clientChatEn: { - clientChatId: 'ledongmao', - clientChatName: '客服机器人', - avatarUrl: 'static/image/im_client_avatar.png', - }, // 当前账号的信息 - serverChatEn: { - serverChatId: 'xiaop', - serverChatName: '小P', - avatarUrl: 'static/image/im_robot_avatar.png', - }, // 服务端chat信息 - robotEn: { - robotName: '小旺', - avatarUrl: 'static/image/im_robot_avatar.png', - }, // 机器人信息 - faqList: [ - { title: '今天周几', content: '今天周一' }, - { title: '今天周几', content: '今天周二' }, - { title: '今天周几', content: '今天周三' }, - { title: '今天周几', content: '今天周四' }, - { title: '今天周几', content: '今天周五' }, - ], - faqSelected: '-1', - inputContent_setTimeout: null, // 输入文字时在输入结束才修改具体内容 - selectionRange: null, // 输入框选中的区域 - shortcutMsgList: [], // 聊天区域的快捷回复列表 - logoutDialogVisible: false, // 结束会话显示 - transferDialogVisible: false, // 转接人工dialog - rateDialogVisible: false, // 评价dialog - leaveDialogVisible: false, // 留言dialog -} - -/** - * 添加chat对象的msg - * @param {Object} msg 消息对象;eg:{role:'sys',content:'含有新的消息'} - * @param {String} msg.role 消息所有者身份;eg:'sys'系统消息; - * @param {String} msg.contentType 消息类型;text:文本(默认);image:图片 - * @param {String} msg.content 消息内容 - * @param {Function} successCallback 添加消息后的回调 - */ -function addChatMsg (msg: { role: any; contentType: any; content?: string; createTime?: any }, successCallback: { (): void; (): any }) { - // 1.设定默认值 - msg.role = msg.role === undefined ? 'sys' : msg.role - msg.contentType = msg.contentType === undefined ? 'text' : msg.contentType - msg.createTime = msg.createTime === undefined ? new Date() : msg.createTime - - // 2.插入消息 - // 1)插入日期 - // 实际场景中,在消息上方是否显示时间是由后台传递给前台的消息中附加上的,可参考 微信Web版 - // 此处进行手动设置,5分钟之内的消息,只显示一次消息 - msg.createTime = new Date(msg.createTime) - // if (configData.chatInfoEn.lastMsgShowTime === null || msg.createTime.getTime() - configData.chatInfoEn.lastMsgShowTime.getTime() > 1000 * 60 * 5) { - // msgList.push({ - // role: 'sys', - // contentType: 'text', - // content: '2022-5-30 20:00:00', - // }) - // configData.chatInfoEn.lastMsgShowTime = msg.createTime - // } - - // 2)插入消息 - // msgList.push(msg) - - // 3.设置chat对象相关属性 - // configData.chatInfoEn.msgList = msgList - - // 4.回调 - successCallback() -} - -/** - * 发送消息 - * @param {Object} rs 回调对象 - */ -function sendMsg (rs: any) { - const msg = rs.msg - msg.role = 'client' - msg.avatarUrl = configData.clientChatEn.avatarUrl - if (configData.chatInfoEn.chatState === 'robot') { - // 机器人发送接口 - } else if (configData.chatInfoEn.chatState === 'agent') { - // 客服接口 - configData.socket.emit('CLIENT_SEND_MSG', { - clientChatEn: configData.clientChatEn, - msg, - serverChatId: configData.serverChatEn.serverChatId, - }) - - // log.debug(configData.serverChatEn.serverChatId) - } - // 2.添加到消息集合 - // addChatMsg(msg) -} - -function imclient (bot:Wechaty, vika:any, configData:any) { - let socket: any = {} - try { - socket = io.connect('http://localhost:3001') - configData.socket = socket - socket.on('connect', () => { - // 客户端上线 - socket.emit('CLIENT_ON', { - clientChatEn: configData.clientChatEn, - serverChatId: configData.serverChatEn.serverChatId, - }) - - // 服务端链接 - socket.on('SERVER_CONNECTED', (data: { serverChatEn: { serverChatId: string; serverChatName: string; avatarUrl: string } }) => { - // 1)获取客服消息 - configData.serverChatEn = data.serverChatEn - - // 2)添加消息 - addChatMsg({ - content: '客服 ' + configData.serverChatEn.serverChatName + ' 为你服务', - contentType: 'text', - role: 'sys', - }, () => { }) - }) - - // 接受服务端信息 - socket.on('SERVER_SEND_MSG', async (data: any) => { - log.info(data) - // if (data.msg && data.msg.role === 'server') { - // data.msg.role = 'client' - // sendMsg(data) - // } - try { - const roomId = data.msg.clientChatId.split(' ')[1] - const contactId = data.msg.clientChatId.split(' ')[0] - const room:Room|undefined = await bot.Room.find({ id: roomId }) - const contact = await bot.Contact.find({ id: contactId }) - if (room) { - await room.say(data.msg.content, ...[ contact ]) - vika.addRecord(await formatSentMessage(bot.currentUser, data.msg.content, undefined, room)) - } - - // configData.msg.avatarUrl = data.serverChatEn.avatarUrl; - } catch (e) { - log.error('发送消息失败:', JSON.stringify(e)) - } - - }) - }) - } catch (err) { - log.error('连接失败:', err) - } - return socket -} - -export { configData, addChatMsg, sendMsg, imclient } diff --git a/WechatBot/chatflow/src/plugins/index.js b/WechatBot/chatflow/src/plugins/index.js deleted file mode 100755 index ce498424d..000000000 --- a/WechatBot/chatflow/src/plugins/index.js +++ /dev/null @@ -1,47 +0,0 @@ -import onMessage from '../handlers/on-message.js' -import onScan from '../handlers/on-scan.js' - -import { VikaBot } from './vika.js' -import { - configData, - addChatMsg, - imclient, - sendMsg, -} from './im.js' -import { wxai } from './wxai.js' -import { sendNotice } from './group-notice.js' - -import { ChatDevice } from './chat-device.js' -import { propertyMessage, eventMessage } from './msg-format.js' -import { getFormattedRideInfo } from './riding.js' - -function WechatyVikaPlugin (vika) { - return function (bot) { - bot.on('onScan', async (qrcode, status) => { - await onScan(qrcode, status, vika) - }) - bot.on('login', async () => { - // await vika.checkInit('vika插件载入系统配置完成,系统启动成功~') - }) - bot.on('message', async (msg) => { - await onMessage(msg, vika) - }) - } -} - -export { - WechatyVikaPlugin, - VikaBot, - configData, - imclient, - addChatMsg, - getFormattedRideInfo, - sendMsg, - sendNotice, - wxai, - ChatDevice, - propertyMessage, - eventMessage, -} - -export default WechatyVikaPlugin diff --git a/WechatBot/chatflow/src/plugins/lib/dataModel.ts b/WechatBot/chatflow/src/plugins/lib/dataModel.ts deleted file mode 100644 index e8160941a..000000000 --- a/WechatBot/chatflow/src/plugins/lib/dataModel.ts +++ /dev/null @@ -1,858 +0,0 @@ -/* eslint-disable sort-keys */ -enum FieldType { - SingleText = 'SingleText', - SingleSelect = 'SingleSelect', - Text = 'Text', - Attachment = 'Attachment' -} - -export type Field = { - name: string, - type: string, - property?: any, - desc?: string -}; - -export type FieldSingleText = Field & { type: FieldType.SingleText }; -export type FieldSingleSelect = Field & { type: FieldType.SingleSelect }; -export type FieldText = Field & { type: FieldType.Text }; - -export type Record = { - fields: { - [key: string]: string - } -} - -export type Sheet = { - fields: Field[], - name: string, - defaultRecords: Record[] -} - -// export type CommandSchema = { -// '指令名称': FieldSingleText, -// '说明': FieldText, -// '管理员微信号': FieldSingleText, -// '类型': FieldSingleSelect, -// }; - -// export type Command = Sheet & { -// fields: CommandSchema, -// name: '指令列表', -// defaultRecords: Record[] -// } - -const commandSheet: Sheet = { - fields: [ { - name: '指令名称', - type: FieldType.SingleText, - property: { - defaultValue: '', - }, - }, - { - name: '说明', - type: FieldType.Text, - }, - { - name: '管理员微信号', - type: FieldType.SingleText, - property: { - - }, - }, - { - name: '类型', - type: FieldType.SingleSelect, - property: { - options: [ - { - name: '系统指令', - color: 'deepPurple_0', - }, - { - name: '群指令', - color: 'indigo_0', - }, - ], - defaultValue: '系统指令', - }, - }, - ], - name: '指令列表', - defaultRecords: [ - { - fields: { - 指令名称: '更新配置', - 说明: '更新系统配置,更改配置后需主动更新一次配置配置才会生效', - 类型: '系统指令', - }, - }, - { - fields: { - 指令名称: '更新白名单', - 说明: '更新群白名单,白名单变动时需主动更新白名单', - 类型: '系统指令', - }, - }, - { - fields: { - 指令名称: '更新问答', - 说明: '更新微信对话平台中的问答列表', - 类型: '系统指令', - }, - }, - { - fields: { - 指令名称: '更新机器人', - 说明: '更新机器人的群列表和好友列表', - 类型: '系统指令', - }, - }, - { - fields: { - 指令名称: '启用问答', - 说明: '当前群启用智能问答', - 类型: '群指令', - }, - }, - { - fields: { - 指令名称: '关闭问答', - 说明: '当前群关闭智能问答', - 类型: '群指令', - }, - }, - ], -} - -// export type ConfigSchema = { -// '机器人名称': FieldSingleText, -// 'AT回复': FieldSingleSelect, -// '智能问答': FieldSingleSelect, -// '对话平台token': FieldSingleText, -// }; - -// export type Config = Sheet & { -// fields: ConfigSchema, -// name: '系统配置', -// defaultRecords: Record[] -// } - -const configSheet: Sheet = { - fields: [ - { - name: '机器人名称', - type: 'SingleText', - property: { - defaultValue: '', - }, - }, - { - name: 'AT回复', - type: 'SingleSelect', - property: { - options: [ - { - name: '开启', - color: 'deepPurple_0', - }, - { - name: '关闭', - color: 'indigo_0', - }, - ], - defaultValue: '关闭', - }, - }, - { - name: '智能问答', - type: 'SingleSelect', - property: { - options: [ - { - name: '开启', - color: 'deepPurple_0', - }, - { - name: '关闭', - color: 'indigo_0', - }, - ], - defaultValue: '关闭', - }, - desc: '开启后可以使用微信对话平台只能问答', - }, - { - name: '对话平台token', - type: 'SingleText', - property: { - defaultValue: '', - }, - desc: '微信开放对话平台token,启用智能问答时必须填写,否则无效', - }, - { - name: '对话平台EncodingAESKey', - type: 'SingleText', - property: { - defaultValue: '', - }, - desc: '微信开放对话平台EncodingAESKey,启用智能问答时必须填写,否则无效', - }, - { - name: '不同群个性回复', - type: 'SingleSelect', - property: { - options: [ - { - name: '开启', - color: 'deepPurple_0', - }, - { - name: '关闭', - color: 'indigo_0', - }, - ], - defaultValue: '开启', - }, - desc: '开启后不同群相同问题可以得到不同答案', - }, - { - name: '群白名单', - type: 'SingleSelect', - property: { - options: [ - { - name: '开启', - color: 'deepPurple_0', - }, - { - name: '关闭', - color: 'indigo_0', - }, - ], - defaultValue: '开启', - }, - desc: '开启后只有白名单内的群会自动问答', - }, - { - name: '好友白名单', - type: 'SingleSelect', - property: { - options: [ - { - name: '开启', - color: 'deepPurple_0', - }, - { - name: '关闭', - color: 'indigo_0', - }, - ], - defaultValue: '开启', - }, - desc: '开启后只有白名单内的好友自动问答', - }, - { - name: '消息上传到维格表', - type: 'SingleSelect', - property: { - options: [ - { - name: '开启', - color: 'deepPurple_0', - }, - { - name: '关闭', - color: 'indigo_0', - }, - ], - defaultValue: '开启', - }, - desc: '开启后消息记录会自动上传到维格表的【消息记录】表中', - }, - { - name: 'IM对话', - type: 'SingleSelect', - property: { - options: [ - { - name: '开启', - color: 'deepPurple_0', - }, - { - name: '关闭', - color: 'indigo_0', - }, - ], - defaultValue: '关闭', - }, - desc: '开启后可以使用客服对话系统', - }, - { - name: 'puppet', - type: 'SingleSelect', - property: { - options: [ - { - name: 'wechaty-puppet-wechat', - color: 'deepPurple_0', - }, - { - name: 'wechaty-puppet-xp', - color: 'indigo_0', - }, - { - name: 'wechaty-puppet-padlocal', - color: 'blue_0', - }, - ], - defaultValue: 'wechaty-puppet-wechat', - }, - desc: 'puppet名称,目前支持3中puppet', - }, - { - name: 'wechaty-token', - type: 'SingleText', - property: { - defaultValue: '', - }, - desc: 'puppet的token,仅当使用padlocal时需要填写', - }, - { - name: 'MQTT控制', - type: 'SingleSelect', - property: { - options: [ - { - name: '开启', - color: 'deepPurple_0', - }, - { - name: '关闭', - color: 'indigo_0', - }, - ], - defaultValue: '关闭', - }, - desc: '开启可以通过MQTT控制微信', - }, - { - name: 'MQTT推送', - type: 'SingleSelect', - property: { - options: [ - { - name: '开启', - color: 'deepPurple_0', - }, - { - name: '关闭', - color: 'indigo_0', - }, - ], - defaultValue: '关闭', - }, - desc: '开启后消息会发送到MQTT队列', - }, - { - name: 'MQTT用户名', - type: 'SingleText', - property: { - defaultValue: '', - }, - desc: 'MQTT用户名', - }, - { - name: 'MQTT密码', - type: 'SingleText', - property: { - defaultValue: '', - }, - desc: 'MQTT接入地址', - }, - { - name: 'MQTT接入地址', - type: 'SingleText', - property: { - defaultValue: '', - }, - desc: 'MQTT接入地址', - }, - { - name: 'MQTT端口号', - type: 'SingleText', - property: { - defaultValue: '1883', - }, - desc: 'MQTT端口号', - }, - ], - name: '系统配置', - defaultRecords: [ { - fields: { - 机器人名称: '未设置', - }, - } ], -} - -const switchSheet: Sheet = { - fields: [ - { - name: '功能项', - type: 'SingleText', - property: { - defaultValue: '', - }, - }, - { - name: '启用状态', - type: 'SingleSelect', - property: { - options: [ - { - name: '开启', - color: 'deepPurple_0', - }, - { - name: '关闭', - color: 'indigo_0', - }, - ], - }, - }, - { - name: '说明', - type: FieldType.Text, - }, - ], - name: '功能开关', - defaultRecords: [ - { - fields: { - 功能项: '智能问答', - 启用状态: '关闭', - 说明: '开启后可以使用微信对话平台只能问答', - }, - }, - { - fields: { - 功能项: 'AT回复', - 启用状态: '关闭', - 说明: '开启后只有@好友才会回复问答', - }, - }, - { - fields: { - 功能项: '不同群个性回复', - 启用状态: '开启', - 说明: '开启后不同群相同问题可以得到不同答案', - }, - }, - { - fields: { - 功能项: '群白名单', - 启用状态: '开启', - 说明: '开启后只有白名单内的群会自动问答', - }, - }, - { - fields: { - 功能项: '好友白名单', - 启用状态: '开启', - 说明: '开启后只有白名单内的好友自动问答', - }, - }, - { - fields: { - 功能项: '消息上传到维格表', - 启用状态: '开启', - 说明: '开启后消息记录会自动上传到维格表的【消息记录】表', - }, - }, - { - fields: { - 功能项: 'IM对话', - 启用状态: '开启', - 说明: '开启后可以使用客服对话系统', - }, - }, - { - fields: { - 功能项: 'MQTT控制', - 启用状态: '关闭', - 说明: '开启可以通过MQTT控制微信', - }, - }, - { - fields: { - 功能项: 'MQTT推送', - 启用状态: '关闭', - 说明: '开启后消息会发送到MQTT队列', - }, - }, - ], -} - -// const recordsConfig = [{ -// fields: { -// 智能问答: '关闭', -// 对话平台token: '', -// 不同群个性回复: '关闭', -// 群白名单: '关闭', -// 好友白名单: '关闭', -// 消息上传到维格表: '开启', -// IM对话: '关闭', -// puppet: 'wechaty-puppet-xp', -// 'wechaty-token': '', -// MQTT控制: '关闭', -// MQTT推送: '关闭', -// MQTT用户名: '', -// MQTT密码: '', -// MQTT接入地址: '', -// MQTT端口号: '1883', -// }, -// }] - -const contactSheet: Sheet = { - fields: [ - { - name: 'id', - type: 'SingleText', - property: { - - }, - }, - { - name: 'name', - type: 'SingleText', - property: { - defaultValue: '', - }, - }, - { - name: 'alias', - type: 'SingleText', - property: { - defaultValue: '', - }, - }, - { - name: 'gender', - type: 'SingleText', - property: { - defaultValue: '', - }, - }, - { - name: 'friend', - type: 'Checkbox', - property: { - icon: 'white_check_mark', - }, - }, - { - name: 'type', - type: 'SingleText', - property: { - defaultValue: '', - }, - }, - { - name: 'avatar', - type: 'Text', - }, - { - name: 'phone', - type: 'SingleText', - property: { - defaultValue: '', - }, - }, - { - name: 'file', - type: 'Attachment', - }, - ], - name: '好友列表', - defaultRecords: [], -} - -const qaSheet = { - fields: [ - { - name: '分类(必填)', - type: 'Text', - }, - { - name: '问题(必填)', - type: 'Text', - }, - { - name: '问题阈值(选填-默认0.9)', - type: 'Text', - }, - { - name: '相似问题(多个用##分隔)', - type: 'Text', - }, - { - name: '机器人回答(多个用##分隔)', - type: 'Text', - }, - { - name: '是否停用(选填-默认FALSE)', - type: 'Text', - }, - ], - name: '智能问答列表', - defaultRecords: [ - { - fields: { - '分类(必填)': '社区通知', - '问题(必填)': '社区通知', - '问题阈值(选填-默认0.9)': '0.7', - '相似问题(多个用##分隔)': '社区状态通知##社区里的通知##社区通知,急##看社区通知##社区服务通知##社区公示##社区公告', - '机器人回答(多个用##分隔)': '{"multimsg":["Easy Chatbot Show25108313781@chatroom北辰香麓欣麓园社区公告,点击链接查看详情https://spcp52tvpjhxm.com.vika.cn/share/shrsf3Sf0BHitZlU62C0N"]}', - '是否停用(选填-默认FALSE)': 'false', - }, - }, - { - fields: { - '分类(必填)': '基础问答', - '问题(必填)': 'What is Wechaty', - '问题阈值(选填-默认0.9)': '0.7', - '相似问题(多个用##分隔)': "what'swechaty", - '机器人回答(多个用##分隔)': '{"multimsg":["Wechaty is an Open Source software application for building chatbots.LINE_BREAKGo to the https://wechaty.js.org/docs/wechaty for more information."]}', - '是否停用(选填-默认FALSE)': 'false', - }, - }, - ], -} - -const roomListSheet = { - fields: [ - { - name: 'id', - type: 'SingleText', - property: { - - }, - }, - { - id: 'fldgEKH5CjXu7', - name: 'topic', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldu000ieNIL3', - name: 'ownerId', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldP5pXik9Tw0', - name: 'avatar', - type: 'Text', - editable: true, - }, - { - id: 'fldWB1gC5mrrg', - name: 'adminIdList', - type: 'Text', - editable: true, - }, - { - id: 'fld95m7IYPajP', - name: 'memberIdList', - type: 'Text', - editable: true, - }, - { - id: 'fldYg3WRl6auV', - name: 'external', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldarlC9hzslN', - name: 'file', - type: 'Attachment', - editable: true, - }, - ], - name: '群列表', - defaultRecords: [], -} - -const roomWhiteListSheet = { - fields: [ - { - id: 'fldxEzzn8r5ox', - name: '群ID', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - isPrimary: true, - }, - { - id: 'fld9s9Sz7kmo3', - name: '群名称', - type: 'SingleText', - property: { - - }, - editable: true, - }, - { - id: 'fldaic9DJDnZG', - name: '群主昵称', - type: 'SingleText', - property: { - - }, - editable: true, - }, - { - id: 'fldSujdkqvifr', - name: '群主微信号', - type: 'SingleText', - property: { - - }, - editable: true, - }, - { - id: 'fldKKH4aUXsWd', - name: '备注', - type: 'Text', - editable: true, - }, - ], - name: '群白名单', - defaultRecords: [], -} - -const contactWhiteListSheet = { - fields: [ - { - id: 'fldxEzzn8r5ox', - name: '好友ID', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - isPrimary: true, - }, - { - id: 'fld9s9Sz7kmo3', - name: '昵称', - type: 'SingleText', - property: { - - }, - editable: true, - }, - { - id: 'fldKKH4aUXsWd', - name: '备注', - type: 'Text', - editable: true, - }, - ], - name: '好友白名单', - defaultRecords: [], -} - -const messageSheet = { - fields: [ - { - name: 'timeHms', - property: { - defaultValue: '', - }, - type: 'SingleText', - }, - { - name: 'name', - property: { - defaultValue: '', - }, - type: 'SingleText', - }, - { - name: 'topic', - property: { - defaultValue: '', - }, - type: 'SingleText', - }, - { - name: 'messagePayload', - type: 'Text', - }, - { - name: 'wxid', - property: { - defaultValue: '', - }, - type: 'SingleText', - }, - { - name: 'roomid', - property: { - defaultValue: '', - }, - type: 'SingleText', - }, - { - name: 'messageType', - property: { - defaultValue: '', - }, - type: 'SingleText', - }, - { - name: 'file', - type: 'Attachment', - }, - ], - name: '消息记录', - defaultRecords: [], -} - -type Sheets = { - [key: string]: Sheet -} - -const sheets: Sheets = { - configSheet, - contactSheet, - roomListSheet, - commandSheet, - messageSheet, - qaSheet, - roomWhiteListSheet, - switchSheet, - contactWhiteListSheet, -} - -export { - sheets, - type Sheets, -} - -export default sheets diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/CommandList.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/CommandList.ts deleted file mode 100644 index 1e8d9b15a..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/CommandList.ts +++ /dev/null @@ -1,164 +0,0 @@ -/* eslint-disable sort-keys */ - -import type { - Sheet, - Field, -} from './Model' - -const recordRes = { - code: 200, - success: true, - data: { - total: 7, - records: [ - { - recordId: 'recUqpQPkMrQO', - createdAt: 1670218148000, - updatedAt: 1670218148000, - fields: { - 指令名称: '更新配置', - 类型: '系统指令', - 说明: '更新系统配置,更改配置后需主动更新一次配置配置才会生效', - }, - }, - { - recordId: 'reck2x7TobP0D', - createdAt: 1670218148000, - updatedAt: 1671812102000, - fields: { - 指令名称: '更新白名单', - 类型: '系统指令', - 说明: 'TBD更新群白名单,白名单变动时需主动更新白名单', - }, - }, - { - recordId: 'recuczAHqUTOv', - createdAt: 1670218148000, - updatedAt: 1671812106000, - fields: { - 指令名称: '更新问答', - 类型: '系统指令', - 说明: 'TBD更新微信对话平台中的问答列表', - }, - }, - { - recordId: 'recZi3MqRfoLP', - createdAt: 1670218148000, - updatedAt: 1671812111000, - fields: { - 指令名称: '更新机器人', - 类型: '系统指令', - 说明: 'TBD更新机器人的群列表和好友列表', - }, - }, - { - recordId: 'recRr9P8QmRyA', - createdAt: 1670218148000, - updatedAt: 1671812116000, - fields: { - 指令名称: '启用问答', - 类型: '群指令', - 说明: 'TBD当前群启用智能问答', - }, - }, - { - recordId: 'rec0Ya8vDiV86', - createdAt: 1670218148000, - updatedAt: 1671812120000, - fields: { - 指令名称: '关闭问答', - 类型: '群指令', - 说明: 'TBD当前群关闭智能问答', - }, - }, - { - recordId: 'receuIOdNUz8T', - createdAt: 1671682513000, - updatedAt: 1671682529000, - fields: { - 指令名称: '更新提醒', - 类型: '系统指令', - 说明: '更新通知提醒任务', - }, - }, - ], - pageNum: 1, - pageSize: 7, - }, - message: 'SUCCESS', -} - -const defaultRecords: any[] = recordRes.data.records - -const vikaRes = { - code: 200, - success: true, - data: { - fields: [ - { - id: 'fldCSCcQI7iEm', - name: '指令名称', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - isPrimary: true, - }, - { - id: 'fldplyGKKgxME', - name: '说明', - type: 'Text', - editable: true, - }, - { - id: 'fldE1R4eb6E8S', - name: '管理员微信号', - type: 'SingleText', - property: {}, - editable: true, - }, - { - id: 'fldopkUTne42Y', - name: '类型', - type: 'SingleSelect', - property: { - options: [ - { - id: 'optYAC1AnMzGf', - name: '系统指令', - color: { - name: 'deepPurple_0', - value: '#E5E1FC', - }, - }, - { - id: 'opt7qitH0LOpj', - name: '群指令', - color: { - name: 'indigo_0', - value: '#DDE7FF', - }, - }, - ], - }, - editable: true, - }, - ], - }, - message: 'SUCCESS', -} - -const fields: Field[] = vikaRes.data.fields - -const commandSheet: Sheet = { - fields, - name: '指令列表', - defaultRecords, -} - -export { - commandSheet, -} - -export default commandSheet diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/Contact.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/Contact.ts deleted file mode 100644 index cfefa2c6b..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/Contact.ts +++ /dev/null @@ -1,106 +0,0 @@ -/* eslint-disable sort-keys */ - -import type { - Sheet, - Field, -} from './Model' - -const vikaRes = { - code: 200, - success: true, - data: { - fields: [ - { - id: 'fldDJcm8sDIt0', - name: 'id', - type: 'SingleText', - property: {}, - editable: true, - isPrimary: true, - }, - { - id: 'fld39evAmfVMb', - name: 'name', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldY9rUAthDEm', - name: 'alias', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldCbZKiBXklM', - name: 'gender', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldK2fgxvTDcs', - name: 'friend', - type: 'Checkbox', - property: { - icon: '✅', - }, - editable: true, - }, - { - id: 'fld96axLmYqKU', - name: 'type', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldfwvJnJIS4i', - name: 'avatar', - type: 'Text', - editable: true, - }, - { - id: 'fldZveatV4H1Z', - name: 'phone', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldpm0jUT1Ch6', - name: 'file', - type: 'Attachment', - editable: true, - }, - ], - }, - message: 'SUCCESS', -} - -const defaultRecords: any[] = [] - -const fields: Field[] = vikaRes.data.fields - -const contactSheet: Sheet = { - fields, - name: '好友列表', - defaultRecords, -} - -export { - contactSheet, -} - -export default contactSheet diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/ContactGroup.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/ContactGroup.ts deleted file mode 100644 index 2b8af62c5..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/ContactGroup.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* eslint-disable sort-keys */ - -import type { - Sheet, - Field, -} from './Model' - -const vikaRes = { - code: 200, - success: true, - data: { - fields: [ - { - id: 'fldgPYseCnwqz', - name: '分组名称', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - isPrimary: true, - }, - { - id: 'fld77XnB5JGWf', - name: '联系人', - type: 'MagicLink', - property: { - foreignDatasheetId: 'dstbutP3T8WorWLlbq', - brotherFieldId: 'fldsnqqpYglrI', - }, - editable: true, - desc: '好友列表', - }, - { - id: 'fldTE6BPvtD7h', - name: '备注', - type: 'Text', - editable: true, - }, - ], - }, - message: 'SUCCESS', -} - -const defaultRecords: any[] = [] - -const fields: Field[] = vikaRes.data.fields - -const groupSheet: Sheet = { - fields, - name: '好友分组', - defaultRecords, -} - -export { - groupSheet, -} - -export default groupSheet diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/ContactWhiteList.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/ContactWhiteList.ts deleted file mode 100644 index 0fef6927a..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/ContactWhiteList.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* eslint-disable sort-keys */ - -import type { - Sheet, - Field, -} from './Model' - -const vikaRes = { - code: 200, - success: true, - data: { - fields: [ - { - id: 'fldVWq6zteuyr', - name: '好友ID', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - isPrimary: true, - }, - { - id: 'fldh6BOfEyKn0', - name: '昵称', - type: 'SingleText', - property: {}, - editable: true, - }, - { - id: 'fldFv7pl3973t', - name: '备注', - type: 'Text', - editable: true, - }, - ], - }, - message: 'SUCCESS', -} - -const defaultRecords: any[] = [] - -const fields: Field[] = vikaRes.data.fields - -const contactWhiteListSheet: Sheet = { - fields, - name: '好友白名单', - defaultRecords, -} - -export { - contactWhiteListSheet, -} - -export default contactWhiteListSheet diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/EnvConfig.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/EnvConfig.ts deleted file mode 100644 index 2a281aebb..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/EnvConfig.ts +++ /dev/null @@ -1,248 +0,0 @@ -/* eslint-disable sort-keys */ - -import type { - Sheet, - Field, -} from './Model' - -const recordRes = { - code: 200, - success: true, - data: { - total: 13, - records: [ - { - recordId: 'recm3YUoiY3lX', - fields: { - 配置组: '基本配置', - 配置组标识: 'base', - 配置项: '管理群', - 标识: 'adminRoomTopic', - '值(只修改此列)': '大师是群主', - 说明: '管理群名称,需尽量保持名称复杂,避免重名群干扰', - }, - }, - { - recordId: 'recrEIHXFV14w', - createdAt: 1671304478000, - updatedAt: 1671308763000, - fields: { - 配置项: 'WechatyPuppet', - 标识: 'puppetName', - 配置组: 'Wechaty', - 配置组标识: 'wechaty', - 说明: '可选值:\nwechaty-puppet-wechat4u\nwechaty-puppet-wechat\nwechaty-puppet-xp\nwechaty-puppet-padlocal\nwechaty-puppet-service', - '值(只修改此列)': 'wechaty-puppet-wechat4u', - }, - }, - { - recordId: 'rec99fo7LJIXP', - createdAt: 1671304478000, - updatedAt: 1671308940000, - fields: { - 配置项: 'WechatyToken', - 标识: 'puppetToken', - 配置组: 'Wechaty', - 配置组标识: 'wechaty', - 说明: '使用wechaty-puppet-padlocal、wechaty-puppet-service时需配置此token', - }, - }, - { - recordId: 'recinVcKkDT4g', - createdAt: 1671304478000, - updatedAt: 1671306617000, - fields: { - 配置项: 'AI对话平台Type', - 标识: 'aiType', - 配置组: '自动问答', - 配置组标识: 'auto-qa', - 说明: 'TODO-可选值:\nWxOpenai\nChatGPT', - '值(只修改此列)': 'WxOpenai', - }, - }, - { - recordId: 'reca02j4zeJJO', - createdAt: 1671304478000, - updatedAt: 1671304478000, - fields: { - 配置项: '微信对话开放平台Token', - 标识: 'WX_TOKEN', - 配置组: '微信开放对话平台', - 配置组标识: 'wx-open-ai', - 说明: '微信对话开放平台中获取', - }, - }, - { - recordId: 'recDs5CswG6Y2', - createdAt: 1671304478000, - updatedAt: 1671304478000, - fields: { - 配置项: '微信对话开放平台EncodingAESKey', - 标识: 'EncodingAESKey', - 配置组: '智能问答', - 说明: '微信对话开放平台中获取', - }, - }, - { - recordId: 'rec5Mjc4E6GjK', - createdAt: 1671304478000, - updatedAt: 1671304478000, - fields: { - 配置项: 'ChatGPTAEmail', - 标识: 'ChatGPTAEmail', - 配置组: '智能问答', - 说明: 'TODO', - }, - }, - { - recordId: 'recN4gbSUoWIa', - createdAt: 1671304478000, - updatedAt: 1671304478000, - fields: { - 配置项: 'ChatGPTAPassword', - 标识: 'ChatGPTAPassword', - 配置组: '智能问答', - 说明: 'TODO', - }, - }, - { - recordId: 'rechhkGPqXzo6', - createdAt: 1671304478000, - updatedAt: 1671304478000, - fields: { - 配置项: 'ChatGPTASessionToken', - 标识: 'ChatGPTASessionToken', - 配置组: '智能问答', - 说明: 'TODO', - }, - }, - { - recordId: 'recos1u8VvHuQ', - createdAt: 1671304478000, - updatedAt: 1671304478000, - fields: { - 配置项: 'MQTT用户名', - 标识: 'mqttUsername', - 配置组: 'MQTT连接', - 说明: 'MQTT连接配置信息,推荐使用百度云的物联网核心套件', - }, - }, - { - recordId: 'rechxZI6WS5Uq', - createdAt: 1671304478000, - updatedAt: 1671304478000, - fields: { - 配置项: 'MQTT密码', - 标识: 'mqttPassword', - 配置组: 'MQTT连接', - 说明: 'MQTT连接配置信息,推荐使用百度云的物联网核心套件', - }, - }, - { - recordId: 'recB2MNTLz9zM', - createdAt: 1671304480000, - updatedAt: 1671304480000, - fields: { - 配置项: 'MQTT接入地址', - 标识: 'mqttEndpoint', - 配置组: 'MQTT连接', - 说明: 'MQTT连接配置信息,推荐使用百度云的物联网核心套件', - }, - }, - { - recordId: 'recqXfHERfj3b', - createdAt: 1671304480000, - updatedAt: 1671304480000, - fields: { - 配置项: 'MQTT端口号', - 标识: 'mqttPort', - 配置组: 'MQTT连接', - 说明: 'MQTT连接配置信息,推荐使用百度云的物联网核心套件', - '值(只修改此列)': '1883', - }, - }, - { - recordId: 'rec8prGUMpMiw', - createdAt: 1671304480000, - updatedAt: 1671304480000, - fields: { - 配置项: 'WebHook地址', - 标识: 'WEB_HOOK', - 配置组: '消息推送', - 说明: 'TODO-格式 http://baidu.com/abc,多个地址使用英文逗号隔开,使用post请求推送', - }, - }, - ], - pageNum: 1, - pageSize: 13, - }, - message: 'SUCCESS', -} - -const defaultRecords: any[] = recordRes.data.records - -const vikaRes = { - code: 200, - success: true, - data: { - fields: [ - { - id: 'fldswxMTbHJwr', - name: '配置组', - type: 'SingleText', - property: {}, - editable: true, - isPrimary: true, - }, - { - id: 'fldswxMTbHJwr', - name: '配置组标识', - type: 'SingleText', - property: {}, - editable: true, - isPrimary: true, - }, - { - id: 'fldlCUQ2Aju1Y', - name: '配置项', - type: 'SingleText', - property: {}, - editable: true, - }, - { - id: 'fldDrMTuWCuCM', - name: '标识', - type: 'SingleText', - property: {}, - editable: true, - }, - { - id: 'fld6GYkhQCQ7m', - name: '值(只修改此列)', - type: 'Text', - editable: true, - }, - { - id: 'fldpD6BA5xeZf', - name: '说明', - type: 'Text', - editable: true, - }, - ], - }, - message: 'SUCCESS', -} - -const fields: Field[] = vikaRes.data.fields - -const configSheet: Sheet = { - fields, - name: '环境变量', - defaultRecords, -} - -export { - configSheet, -} - -export default configSheet diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/Message.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/Message.ts deleted file mode 100644 index 3d89c81fb..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/Message.ts +++ /dev/null @@ -1,99 +0,0 @@ -/* eslint-disable sort-keys */ - -import type { - Sheet, - Field, -} from './Model' - -const vikaRes = { - code: 200, - success: true, - data: { - fields: [ - { - id: 'fldr8wtGTGr4o', - name: 'timeHms', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - isPrimary: true, - }, - { - id: 'fldIDa0zPtgYo', - name: 'name', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldCbOzc2qfVn', - name: 'topic', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldQYW3U9dvKm', - name: 'messagePayload', - type: 'Text', - editable: true, - }, - { - id: 'fldJ9S09Ib9ZT', - name: 'wxid', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldH7x4REKsrD', - name: 'roomid', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldiRwFyYEIYX', - name: 'messageType', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldh1g0q0rx9M', - name: 'file', - type: 'Attachment', - editable: true, - }, - ], - }, - message: 'SUCCESS', -} - -const defaultRecords: any[] = [] - -const fields: Field[] = vikaRes.data.fields - -const messageSheet: Sheet = { - fields, - name: '消息记录', - defaultRecords, -} - -export { - messageSheet, -} - -export default messageSheet diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/Model.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/Model.ts deleted file mode 100644 index 76f7893b2..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/Model.ts +++ /dev/null @@ -1,47 +0,0 @@ -enum FieldType { - SingleText = 'SingleText', - SingleSelect = 'SingleSelect', - Text = 'Text', - Attachment = 'Attachment' -} - -type Field = { - id?:string, - name: string, - type: string, - property?: any, - desc?: string, - editable?: boolean, - isPrimary?: boolean, -}; - -type FieldSingleText = Field & { type: FieldType.SingleText }; -type FieldSingleSelect = Field & { type: FieldType.SingleSelect }; -type FieldText = Field & { type: FieldType.Text }; - -type Record = { - fields: { - [key: string]: string - } -} - -type Sheet = { - fields: Field[], - name: string, - defaultRecords: Record[] -} - -type Sheets = { - [key: string]: Sheet -} - -export { - FieldType, - type Field, - type FieldSingleText, - type FieldSingleSelect, - type FieldText, - type Record, - type Sheet, - type Sheets, -} diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/Notice.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/Notice.ts deleted file mode 100644 index 009672ed6..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/Notice.ts +++ /dev/null @@ -1,205 +0,0 @@ -/* eslint-disable sort-keys */ - -import type { - Sheet, - Field, -} from './Model' - -const vikaRes = { - code: 200, - success: true, - data: { - fields: [ - { - id: 'fldoYSvRnvc1f', - name: '内容', - type: 'Text', - editable: true, - isPrimary: true, - }, - { - id: 'fldfqyrfkWBBy', - name: '接收好友', - type: 'MagicLink', - property: { - foreignDatasheetId: 'dstbutP3T8WorWLlbq', - brotherFieldId: 'fld0reGOMyTGV', - }, - editable: true, - desc: '好友列表', - }, - // { - // "id": "fldXq00SDGvS9", - // "name": "接收分组", - // "type": "MagicLink", - // "property": { - // "foreignDatasheetId": "dsttzJxMEqxZ0m5UHZ", - // "brotherFieldId": "fldNqvOAzEkxC" - // }, - // "editable": true, - // "desc": "好友分组" - // }, - { - id: 'fldJ1TvTV1T8c', - name: '接收群', - type: 'MagicLink', - property: { - foreignDatasheetId: 'dstRVUymHGd1e4mrWU', - brotherFieldId: 'flduYxMKg3ERW', - }, - editable: true, - desc: '群列表', - }, - { - id: 'fldoCm0thVXmq', - name: '时间', - type: 'DateTime', - property: { - format: 'YYYY/MM/DD HH:mm', - includeTime: true, - }, - editable: true, - }, - { - id: 'fldTnEtGqFIt6', - name: '周期', - type: 'SingleSelect', - property: { - options: [ - { - id: 'optrcyujqFycE', - name: '无重复', - color: { - name: 'deepPurple_0', - value: '#E5E1FC', - }, - }, - { - id: 'optpUa6oOH7mb', - name: '每天', - color: { - name: 'indigo_0', - value: '#DDE7FF', - }, - }, - { - id: 'opt1PXrPyuWwu', - name: '每周', - color: { - name: 'blue_0', - value: '#DDF5FF', - }, - }, - { - id: 'optiiAF9BNYKj', - name: '每月', - color: { - name: 'yellow_0', - value: '#FFF6D8', - }, - }, - { - id: 'optnWPpccOnnb', - name: '每小时', - color: { - name: 'teal_0', - value: '#D6F3E8', - }, - }, - { - id: 'optrcSxCfZzyR', - name: '每分钟', - color: { - name: 'green_0', - value: '#DCF3D1', - }, - }, - { - id: 'optt9JWn7cSbF', - name: '每5分钟', - color: { - name: 'orange_0', - value: '#FFEECC', - }, - }, - { - id: 'optkEeIO3oiGP', - name: '每10分钟', - color: { - name: 'tangerine_0', - value: '#FFE4CC', - }, - }, - { - id: 'opt6FET9p070f', - name: '每15分钟', - color: { - name: 'pink_0', - value: '#FFE2E8', - }, - }, - { - id: 'optWUcO5sbqGN', - name: '每30分钟', - color: { - name: 'red_0', - value: '#F9D8D7', - }, - }, - { - id: 'optQuO5UYFHrZ', - name: '每季度', - color: { - name: 'deepPurple_0', - value: '#E5E1FC', - }, - }, - ], - }, - editable: true, - }, - { - id: 'fldiC33Rgidk5', - name: '启用状态', - type: 'SingleSelect', - property: { - options: [ - { - id: 'optJAukD9h9vd', - name: '开启', - color: { - name: 'deepPurple_0', - value: '#E5E1FC', - }, - }, - { - id: 'optXdfUlXCcYG', - name: '关闭', - color: { - name: 'indigo_0', - value: '#DDE7FF', - }, - }, - ], - }, - editable: true, - }, - ], - }, - message: 'SUCCESS', -} -const defaultRecords: any[] = [] - -const fields: Field[] = vikaRes.data.fields - -const noticeSheet: Sheet = { - fields, - name: '通知提醒', - defaultRecords, -} - -export { - noticeSheet, -} - -export default noticeSheet diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/QaList.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/QaList.ts deleted file mode 100644 index 4270e3c1f..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/QaList.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* eslint-disable sort-keys */ - -import type { - Sheet, - Field, -} from './Model' - -const recordRes = { - code: 200, - success: true, - data: { - total: 2, - records: [ - { - recordId: 'rec0HdqkdrCsy', - createdAt: 1670218155000, - updatedAt: 1670218155000, - fields: { - '是否停用(选填-默认FALSE)': 'false', - '相似问题(多个用##分隔)': '社区状态通知##社区里的通知##社区通知,急##看社区通知##社区服务通知##社区公示##社区公告', - '问题(必填)': '社区通知', - '分类(必填)': '社区通知', - '机器人回答(多个用##分隔)': '{"multimsg":["Easy Chatbot Show25108313781@chatroom北辰香麓欣麓园社区公告,点击链接查看详情https://spcp52tvpjhxm.com.vika.cn/share/shrsf3Sf0BHitZlU62C0N"]}', - '问题阈值(选填-默认0.9)': '0.7', - }, - }, - { - recordId: 'recnsUhNejZb8', - createdAt: 1670218155000, - updatedAt: 1670218155000, - fields: { - '是否停用(选填-默认FALSE)': 'false', - '相似问题(多个用##分隔)': "what'swechaty", - '问题(必填)': 'What is Wechaty', - '分类(必填)': '基础问答', - '机器人回答(多个用##分隔)': '{"multimsg":["Wechaty is an Open Source software application for building chatbots.LINE_BREAKGo to the https://wechaty.js.org/docs/wechaty for more information."]}', - '问题阈值(选填-默认0.9)': '0.7', - }, - }, - ], - pageNum: 1, - pageSize: 2, - }, - message: 'SUCCESS', -} - -const defaultRecords: any[] = recordRes.data.records - -const vikaRes = { - code: 200, - success: true, - data: { - fields: [ - { - id: 'fldho5KU1iGhU', - name: '分类(必填)', - type: 'Text', - editable: true, - isPrimary: true, - }, - { - id: 'fldawxa55XjvG', - name: '问题(必填)', - type: 'Text', - editable: true, - }, - { - id: 'fldzhaT6r2uTU', - name: '问题阈值(选填-默认0.9)', - type: 'Text', - editable: true, - }, - { - id: 'fldREsAJJLzzT', - name: '相似问题(多个用##分隔)', - type: 'Text', - editable: true, - }, - { - id: 'fldn2DNCN15xy', - name: '机器人回答(多个用##分隔)', - type: 'Text', - editable: true, - }, - { - id: 'fldCNMdtG6kcO', - name: '是否停用(选填-默认FALSE)', - type: 'Text', - editable: true, - }, - ], - }, - message: 'SUCCESS', -} - -const fields: Field[] = vikaRes.data.fields - -const qaSheet: Sheet = { - fields, - name: '智能问答列表', - defaultRecords, -} - -export { - qaSheet, -} - -export default qaSheet diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/Room.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/Room.ts deleted file mode 100644 index dc35ee87f..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/Room.ts +++ /dev/null @@ -1,91 +0,0 @@ -/* eslint-disable sort-keys */ - -import type { - Sheet, - Field, -} from './Model' - -const vikaRes = { - code: 200, - success: true, - data: { - fields: [ - { - id: 'fld0DNOa8mCoC', - name: 'id', - type: 'SingleText', - property: {}, - editable: true, - isPrimary: true, - }, - { - id: 'fldr1dFmmZd0y', - name: 'topic', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fld36Of6QwGZy', - name: 'ownerId', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fld96Wo2Jn0tW', - name: 'avatar', - type: 'Text', - editable: true, - }, - { - id: 'fldyW6b6RLGNC', - name: 'adminIdList', - type: 'Text', - editable: true, - }, - { - id: 'fldLSc8IyEw7t', - name: 'memberIdList', - type: 'Text', - editable: true, - }, - { - id: 'fldrULE0yzHXN', - name: 'external', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - }, - { - id: 'fldZ0MvElgzQX', - name: 'file', - type: 'Attachment', - editable: true, - }, - ], - }, - message: 'SUCCESS', -} - -const defaultRecords: any[] = [] - -const fields: Field[] = vikaRes.data.fields - -const roomListSheet: Sheet = { - fields, - name: '群列表', - defaultRecords, -} - -export { - roomListSheet, -} - -export default roomListSheet diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/RoomWhiteList.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/RoomWhiteList.ts deleted file mode 100644 index a235f2434..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/RoomWhiteList.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* eslint-disable sort-keys */ - -import type { - Sheet, - Field, -} from './Model' - -const vikaRes = { - code: 200, - success: true, - data: { - fields: [ - { - id: 'fldgii4niM8aw', - name: '群ID', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - isPrimary: true, - }, - { - id: 'flddQopavELXi', - name: '群名称', - type: 'SingleText', - property: {}, - editable: true, - }, - { - id: 'fldQlUE6uw9HV', - name: '备注', - type: 'Text', - editable: true, - }, - ], - }, - message: 'SUCCESS', -} - -const defaultRecords: any[] = [] - -const fields: Field[] = vikaRes.data.fields - -const roomWhiteListSheet: Sheet = { - fields, - name: '群白名单', - defaultRecords, -} - -export { - roomWhiteListSheet, -} - -export default roomWhiteListSheet diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/Switch.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/Switch.ts deleted file mode 100644 index 20afcdcf6..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/Switch.ts +++ /dev/null @@ -1,221 +0,0 @@ -/* eslint-disable sort-keys */ - -import type { - Sheet, - Field, -} from './Model' - -const recordRes = { - code: 200, - success: true, - data: { - total: 10, - records: [ - { - recordId: 'recf6KOk48YKn', - createdAt: 1671302940000, - updatedAt: 1671303805000, - fields: { - 说明: '开启后可以使用微信对话平台只能问答', - 功能项: '智能问答', - 标识: 'WX_OPENAI_ONOFF', - '启用状态(只修改此列)': '关闭', - 配置组: '智能问答', - }, - }, - { - recordId: 'recYniqLy8b8D', - createdAt: 1671302940000, - updatedAt: 1671303814000, - fields: { - 说明: '开启后只有@机器人时才会回复问答', - 功能项: 'AT回复', - 标识: 'AT_AHEAD', - '启用状态(只修改此列)': '开启', - 配置组: '智能问答', - }, - }, - { - recordId: 'recn53pOPa3Fu', - createdAt: 1671302940000, - updatedAt: 1671303822000, - fields: { - 说明: '开启后不同群相同问题可以设置不同的回答', - 功能项: '不同群个性回复', - 标识: 'DIFF_REPLY_ONOFF', - '启用状态(只修改此列)': '开启', - 配置组: '智能问答', - }, - }, - { - recordId: 'recPdt5BOLiXq', - createdAt: 1671302940000, - updatedAt: 1671303837000, - fields: { - 说明: '开启后只对白名单内的群消息进行自动问答', - 功能项: '群白名单', - 标识: 'roomWhiteListOpen', - '启用状态(只修改此列)': '开启', - 配置组: '智能问答', - }, - }, - { - recordId: 'recHv8B2IaofP', - createdAt: 1671302940000, - updatedAt: 1671303853000, - fields: { - 说明: '开启后只对白名单内的好友消息进行自动问答', - 功能项: '好友白名单', - 标识: 'contactWhiteListOpen', - '启用状态(只修改此列)': '开启', - 配置组: '智能问答', - }, - }, - { - recordId: 'recXEwHZSAATR', - createdAt: 1671302940000, - updatedAt: 1671303860000, - fields: { - 说明: '开启后消息记录会自动上传到维格表的【消息记录】表', - 功能项: '消息上传到维格表', - 标识: 'VIKA_ONOFF', - '启用状态(只修改此列)': '开启', - 配置组: '消息推送', - }, - }, - { - recordId: 'rec1WdnWXsyPo', - createdAt: 1671302940000, - updatedAt: 1671303946000, - fields: { - 说明: 'TODO-开启后系统将机器人事件消息推送到指定的地址', - 功能项: 'WebHook推送', - 标识: 'WEB_HOOK_ONOFF', - '启用状态(只修改此列)': '关闭', - 配置组: '消息推送', - }, - }, - { - recordId: 'recjMAPK1OZbT', - createdAt: 1671302940000, - updatedAt: 1671303880000, - fields: { - 说明: '开启后消息会发送到MQTT队列,需要先配置MQTT配置项', - 功能项: 'MQTT推送', - 标识: 'mqtt_PUB_ONOFF', - '启用状态(只修改此列)': '关闭', - 配置组: '消息推送', - }, - }, - { - recordId: 'recESlHvyEPcj', - createdAt: 1671302940000, - updatedAt: 1671303873000, - fields: { - 说明: '开启可以通过MQTT控制微信,需要先配置MQTT配置项', - 功能项: 'MQTT控制', - 标识: 'mqtt_SUB_ONOFF', - '启用状态(只修改此列)': '关闭', - 配置组: '远程控制', - }, - }, - { - recordId: 'recumi1YTrUAq', - createdAt: 1671302940000, - updatedAt: 1671303906000, - fields: { - 说明: '开启后可以使用客服对话系统,需先手动启用IM服务', - 功能项: 'IM对话', - 标识: 'imOpen', - '启用状态(只修改此列)': '关闭', - 配置组: '客服系统', - }, - }, - ], - pageNum: 1, - pageSize: 10, - }, - message: 'SUCCESS', -} - -const defaultRecords: any[] = recordRes.data.records - -const vikaRes = { - code: 200, - success: true, - data: { - fields: [ - { - id: 'fldq84eKS9Cyq', - name: '配置组', - type: 'SingleText', - property: { - defaultValue: '', - }, - editable: true, - isPrimary: true, - }, - { - id: 'fldPp0bwSk84x', - name: '功能项', - type: 'SingleText', - property: {}, - editable: true, - }, - { - id: 'fldZ0kmh0WQTh', - name: '标识', - type: 'SingleText', - property: {}, - editable: true, - }, - { - id: 'fldmndbxeLd37', - name: '启用状态(只修改此列)', - type: 'SingleSelect', - property: { - options: [ - { - id: 'opt4DXQURFJQf', - name: '开启', - color: { - name: 'deepPurple_0', - value: '#E5E1FC', - }, - }, - { - id: 'optvpgML9rza6', - name: '关闭', - color: { - name: 'indigo_0', - value: '#DDE7FF', - }, - }, - ], - }, - editable: true, - }, - { - id: 'fldAKw21lBTlb', - name: '说明', - type: 'Text', - editable: true, - }, - ], - }, - message: 'SUCCESS', -} - -const fields: Field[] = vikaRes.data.fields - -const switchSheet: Sheet = { - fields, - name: '功能开关', - defaultRecords, -} - -export { - switchSheet, -} - -export default switchSheet diff --git a/WechatBot/chatflow/src/plugins/lib/vikaModel/index.ts b/WechatBot/chatflow/src/plugins/lib/vikaModel/index.ts deleted file mode 100644 index 2f66318a1..000000000 --- a/WechatBot/chatflow/src/plugins/lib/vikaModel/index.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* eslint-disable sort-keys */ -import type { - Sheets, -} from './Model' -import messageSheet from './Message.js' -import commandSheet from './CommandList.js' -import configSheet from './EnvConfig.js' -import switchSheet from './Switch.js' -import contactSheet from './Contact.js' -// import qaSheet from './QaList.js' -import roomListSheet from './Room.js' -import roomWhiteListSheet from './RoomWhiteList.js' -import contactWhiteListSheet from './ContactWhiteList.js' -import noticeSheet from './Notice.js' -// import groupSheet from './ContactGroup.js' - -const sheets: Sheets = { - configSheet, - switchSheet, - commandSheet, - contactSheet, - roomListSheet, - // qaSheet, - roomWhiteListSheet, - contactWhiteListSheet, - // groupSheet, - noticeSheet, - messageSheet, -} - -export { - sheets, -} - -export default sheets diff --git a/WechatBot/chatflow/src/plugins/meet-mate.ts b/WechatBot/chatflow/src/plugins/meet-mate.ts deleted file mode 100644 index 946a31539..000000000 --- a/WechatBot/chatflow/src/plugins/meet-mate.ts +++ /dev/null @@ -1,248 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -// 导入Wechaty相关模块 -import { - Contact, - Message, - Room, - ScanStatus, - WechatyBuilder, - log, -} from 'wechaty' -import { FileBox } from 'file-box' - -// 导入html-to-docx模块 -import htmlToDocx from 'html-to-docx' -import qrcodeTerminal from 'qrcode-terminal' - -// 导入语雀相关模块 -import Yuque from '@yuque/sdk' - -// 创建一个语雀客户端对象,使用环境变量中的token和repoId(需要提前设置) -const yuqueClient = new Yuque({ - token:process.env['YUQUE_TOKEN'] || 'xxx', -}) -const repoId = process.env['YUQUE_REPO_ID'] || 'xxx' - -// 创建一个Wechaty实例 -// const bot = WechatyBuilder.build({ -// name: 'meeting-bot', -// }) - -const bot = WechatyBuilder.build({ - name: 'ding-dong-bot', - puppet: 'wechaty-puppet-xp', -}) - -type Meeting = { - isMeeting:boolean - meetingLog:string - meetingLogDoc:string - title:string - room:Room -} - -type Meetings = { - [key:string]:Meeting -} - -let meetings:Meetings - -// 定义一个函数处理扫码登录事件 -function onScan (qrcode: string, status: ScanStatus) { - if (status === ScanStatus.Waiting || status === ScanStatus.Timeout) { - const qrcodeImageUrl = [ - 'https://wechaty.js.org/qrcode/', - encodeURIComponent(qrcode), - ].join('') - - log.info('MeetingBot', 'onScan: %s(%s) - %s', ScanStatus[status], status, qrcodeImageUrl) - - // 在终端显示二维码图片 - qrcodeTerminal.generate(qrcode, { small: true }) - } else { - log.info('MeetingBot', 'onScan: %s(%s)', ScanStatus[status], status) - } -} - -// 定义一个函数处理登录事件 -function onLogin (user: Contact) { - log.info('MeetingBot', '%s login', user) -} - -// 定义一个函数处理登出事件 -function onLogout (user: Contact) { - log.info('MeetingBot', '%s logout', user) -} - -// 定义一个异步函数处理消息事件 -async function onMessage (msg: Message) { - - // 获取消息发送者和内容 - const sender = msg.talker() - const text = msg.text() - - // 如果消息来自群聊,并且内容是 #开会 ,则开始记录会议信息,并回复“开始记录” - if (msg.room() && msg.room() !== undefined && text === '#开会') { - - // 判断当前群是否在会议中 - const meetingRoom = msg.room() - if (meetingRoom) { - if (meetings[meetingRoom.id] && meetings[meetingRoom.id]?.isMeeting) { - // 回复“已经在会议中” - await msg.say('会议进行中') - } else { - // 设置当前状态为在会议中,并保存当前群聊对象和时间戳为会议标题 - const time = new Date().toLocaleString() - const meetingLog = `## 开始时间\n ${time}\n\n## 内容记录\n` - const meetingLogDoc = `

开始时间


${time}

内容记录


` - const title = await meetingRoom.topic() + '-' + time - - const meeting:Meeting = { - isMeeting:true, - meetingLog, - meetingLogDoc, - room:meetingRoom, - title, - } - - meetings[meetingRoom.id] = meeting - - // 回复“开始记录” - await msg.say('开始记录') - } - } - - } - - // 如果消息来自群聊,并且内容是 #结束 ,则结束记录会议信息,并回复“结束记录” - if (msg.room() && msg.room() !== undefined && text === '#结束') { - - // 设置当前状态为不在会议中,并清空当前群聊对象和时间戳为会议标题 - const meetingRoom = msg.room() - if (meetingRoom) { - if (meetings[meetingRoom.id] && meetings[meetingRoom.id]?.isMeeting) { - // 设置当前状态为在会议中,并保存当前群聊对象和时间戳为会议标题 - meetings[meetingRoom.id]!.isMeeting = false - - // 回复“结束记录” - await msg.say('结束记录') - } else { - - // 回复“未在会议中,发送 #开会 开始会议” - await msg.say('未在会议中,发送 #开会 开始会议') - } - } - - } - - // 如果消息来自群聊,并且内容是 #会议纪要 ,则导出会议期间的聊天记录到语雀文档中,并回复文档链接或错误信息。 - if (msg.room() && msg.room() !== undefined && text === '#会议纪要') { - - const meetingRoom = msg.room() - if (meetingRoom) { - // 判断当前群是否在会议中 - if (meetings[meetingRoom.id] && meetings[meetingRoom.id]?.isMeeting) { - // 回复“已经在会议中” - await msg.say('先发送 #结束 结束会议之后再导出会议纪要') - } else if (!meetings[meetingRoom.id]) { - // 回复“没有可导出的会议纪要” - await msg.say('没有可导出的会议纪要') - } else { - // 导出会议纪要 - const meeting = meetings[meetingRoom.id] - const slug = `unittest_create_${Date.now()}` - const data = { - body: meeting?.meetingLog, - public: 1, - slug, - title:meeting?.title, - } - - try { - - // 调用语雀API创建一 - // 调用语雀API创建一个文档,使用会议标题和聊天记录作为参数 - - const doc = await yuqueClient.docs.create({ - data, - namespace: repoId, - }) - - // 获取文档的链接地址,并回复给群聊 - const docUrl = `https://www.yuque.com/${repoId}/${doc.slug}` - await msg.say(`会议纪要已导出到语雀文档:${docUrl}`) - delete meetings[meetingRoom.id] - - } catch (err) { - - // 如果出现错误,打印错误信息,并回复给群聊 - log.error('MeetingBot', err) - await msg.say('导出会议纪要失败,请重试~') - } - } - } - - } - - // 如果消息来自群聊,并且内容是 #会议纪要 ,则导出会议期间的聊天记录到语雀文档中,并回复文档链接或错误信息。 - if (msg.room() && msg.room() !== undefined && text === '#会议纪要文档') { - - const meetingRoom = msg.room() - if (meetingRoom) { - // 判断当前群是否在会议中 - if (meetings[meetingRoom.id] && meetings[meetingRoom.id]?.isMeeting) { - // 回复“已经在会议中” - await msg.say('先发送 #结束 结束会议之后再导出会议纪要') - } else if (!meetings[meetingRoom.id]) { - // 回复“没有可导出的会议纪要” - await msg.say('没有可导出的会议纪要') - } else { - // 导出会议纪要 - const meeting:Meeting|undefined = meetings[meetingRoom.id] - try { - // 使用html-to-docx库将会议聊天信息转换为word文档的buffer对象 - const buffer = await htmlToDocx(meeting?.meetingLogDoc) - const reg = /[^a-zA-Z0-9]/g - // 将buffer对象转换为FileBox对象,用于发送文件 - const fileBox = FileBox.fromBuffer(buffer, `${meeting?.title.replace(reg, '')}.docx`) - - // 发送文件给群聊 - await msg.say(fileBox) - delete meetings[meetingRoom.id] - - } catch (err) { - - // 如果出现错误,打印错误信息,并回复给群聊 - log.error('MeetingBot', err) - await msg.say('导出会议纪要失败,请重试~') - } - } - } - - } - - // 如果消息来自群聊,并且当前状态是在会议中,则将消息内容追加到聊天记录中 - if (msg.room() && msg.room() !== undefined) { - const meetingRoom = msg.room() - - if (meetingRoom && meetings[meetingRoom.id] && meetings[meetingRoom.id]?.isMeeting) { - const meeting = meetings[meetingRoom.id] - // 获取消息发送者的昵称和内容,拼接成一行记录,并追加到聊天记录中 - const name = sender.name() || '未知用户' - meeting!.meetingLog += `- ${new Date().toLocaleString()} ${name}: ${text}\n` - meeting!.meetingLogDoc += `${new Date().toLocaleString()}
${name}: ${text}
` - } - - } -} - -// 绑定事件处理函数到Wechaty实例上 -bot.on('scan', onScan) -bot.on('login', onLogin) -bot.on('logout', onLogout) -bot.on('message', onMessage) - -// 启动Wechaty实例 -bot.start() - .then(() => log.info('MeetingBot', 'Meeting Bot Started.')) - .catch(e => log.error('MeetingBot', e)) diff --git a/WechatBot/chatflow/src/plugins/msg-format.js b/WechatBot/chatflow/src/plugins/msg-format.js deleted file mode 100755 index 4d5325a61..000000000 --- a/WechatBot/chatflow/src/plugins/msg-format.js +++ /dev/null @@ -1,240 +0,0 @@ -import { v4 } from 'uuid' -import moment from 'moment' -// import { -// Contact, -// log, -// Message, -// ScanStatus, -// Wechaty, -// UrlLink, -// MiniProgram -// } from "wechaty" - -import * as PUPPET from 'wechaty-puppet' - -function getCurTime() { - //timestamp是整数,否则要parseInt转换 - let timestamp = new Date().getTime() - var timezone = 8; //目标时区时间,东八区 - var offset_GMT = new Date().getTimezoneOffset(); // 本地时间和格林威治的时间差,单位为分钟 - var time = timestamp + offset_GMT * 60 * 1000 + timezone * 60 * 60 * 1000 - return time -} - -async function wechaty2chatdev(message) { - let curTime = getCurTime() - let timeHms = moment(curTime).format("YYYY-MM-DD HH:mm:ss") - - let msg = { - "reqId": v4(), - "method": "thing.event.post", - "version": "1.0", - "timestamp": curTime, - "events": { - } - } - - const talker = message.talker() - - let text = '' - let messageType = '' - let textBox = {} - let file = '' - let msgId = message.id - - switch (message.type()) { - // 文本消息 - case PUPPET.types.Message.Text: - messageType = 'Text' - text = message.text() - break; - - // 图片消息 - case PUPPET.types.Message.Image: - messageType = 'Image' - file = await message.toImage().artwork() - break; - - // 链接卡片消息 - case PUPPET.types.Message.Url: - messageType = 'Url' - textBox = await message.toUrlLink() - text = JSON.stringify(JSON.parse(JSON.stringify(textBox)).payload) - break; - - // 小程序卡片消息 - case PUPPET.types.Message.MiniProgram: - messageType = 'MiniProgram' - textBox = await message.toMiniProgram(); - text = JSON.stringify(JSON.parse(JSON.stringify(textBox)).payload) - /* - miniProgram: 小程序卡片数据 - { - appid: "wx363a...", - description: "贝壳找房 - 真房源", - title: "美国白宫,10室8厅9卫,99999刀/月", - iconUrl: "http://mmbiz.qpic.cn/mmbiz_png/.../640?wx_fmt=png&wxfrom=200", - pagePath: "pages/home/home.html...", - shareId: "0_wx363afd5a1384b770_..._1615104758_0", - thumbKey: "84db921169862291...", - thumbUrl: "3051020100044a304802010002046296f57502033d14...", - username: "gh_8a51...@app" - } - */ - break; - - // 语音消息 - case PUPPET.types.Message.Audio: - messageType = 'Audio' - file = await message.toFileBox() - break; - - // 视频消息 - case PUPPET.types.Message.Video: - messageType = 'Video' - file = await message.toFileBox(); - break; - - // 动图表情消息 - case PUPPET.types.Message.Emoticon: - messageType = 'Emoticon' - file = await message.toFileBox(); - break; - - // 文件消息 - case PUPPET.types.Message.Attachment: - messageType = 'Attachment' - file = await message.toFileBox() - break; - - case PUPPET.types.Message.Contact: - messageType = 'Contact' - try { - textBox = await message.toContact() - } catch (err) { - - } - text = '联系人卡片消息' - break; - - // 其他消息 - default: - messageType = 'Unknown' - text = '未知的消息类型' - break; - } - - if (file) { - text = file.name - } - - // console.debug('textBox:', textBox) - - let room = message.room() - let roomInfo = {} - if (room && room.id) { - roomInfo.id = room.id - try { - let room_avatar = await room.avatar() - // console.debug('群头像room.avatar()============') - // console.debug(typeof room_avatar) - // console.debug(room_avatar) - // console.debug('END============') - - roomInfo.avatar = JSON.parse(JSON.stringify(room_avatar)).url - } catch (err) { - console.debug('群头像捕获了错误============') - // console.debug(typeof err) - // console.debug(err) - // console.debug('END============') - } - roomInfo.ownerId = room.owner()?.id||'' - - try { - roomInfo.topic = await room.topic() - } catch (err) { - roomInfo.topic = room.id - } - } - - let memberAlias = '' - try { - memberAlias = await room.alias(talker) - } catch (err) { - - } - - let avatar = '' - try { - - avatar = await talker.avatar() - // console.debug('好友头像talker.avatar()============') - // console.debug(avatar) - // console.debug('END============') - avatar = JSON.parse(JSON.stringify(avatar)).url - - } catch (err) { - console.debug('好友头像捕获了错误============') - // console.debug(err) - // console.debug('END============') - } - - let content = {} - content.messageType = messageType - content.text = text - content.raw = textBox.payload || textBox._payload || {} - - let _payload = { - "id": msgId, - "talker": { - "id": talker.id, - "gender": talker.gender() || '', - "name": talker.name() || '', - "alias": await talker.alias() || '', - "memberAlias": memberAlias, - "avatar": avatar - }, - "room": roomInfo, - "content": content, - "timestamp": curTime, - "timeHms": timeHms - } - - msg.events.message = _payload - msg = JSON.stringify(msg) - - return msg - -} - - -function propertyMessage(name, info) { - let message = { - "reqId": v4(), - "method": "thing.property.post", - "version": "1.0", - "timestamp": new Date().getTime(), - "properties": { - } - } - message.properties[name] = info - message = JSON.stringify(message) - return message -} - -function eventMessage(name, info) { - let message = { - "reqId": v4(), - "method": "thing.event.post", - "version": "1.0", - "timestamp": new Date().getTime(), - "events": { - } - } - message.events[name] = info - message = JSON.stringify(message) - return message -} - -export { wechaty2chatdev, propertyMessage, eventMessage } -export default wechaty2chatdev \ No newline at end of file diff --git a/WechatBot/chatflow/src/plugins/path.d.ts b/WechatBot/chatflow/src/plugins/path.d.ts deleted file mode 100644 index 375a080cb..000000000 --- a/WechatBot/chatflow/src/plugins/path.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare module './chat-device.js' -declare module './msg-format.js' diff --git a/WechatBot/chatflow/src/plugins/riding.ts b/WechatBot/chatflow/src/plugins/riding.ts deleted file mode 100644 index 6c80d93a0..000000000 --- a/WechatBot/chatflow/src/plugins/riding.ts +++ /dev/null @@ -1,30 +0,0 @@ - -import { Message, log } from 'wechaty' -import axios from 'axios' - -// 获取格式化后的顺风车信息 -async function getFormattedRideInfo (message:Message) { - let text: string = message.text() - const name:string = message.talker().name() - const apiUrl = 'https://openai.api2d.net/v1/chat/completions' - const headers = { - Authorization: 'Bearer xxxx', // <-- 把 fkxxxxx 替换成你自己的 Forward Key,注意前面的 Bearer 要保留,并且和 Key 中间有一个空格。 - 'Content-Type': 'application/json', - } - text = `从"发布人:${name}\n信息:${text}"中提取出:类型(人找车、车找人)、出发地、目的地、出发日期、出发时间、联系电话、发布人、车费、途经路线,不要输出任何其他的描述` - const payload = { - messages: [ { content: text, role: 'user' } ], - model: 'gpt-3.5-turbo', - } - - try { - const response = await axios.post(apiUrl, payload, { headers }) - log.info('顺风车信息检测结果:', JSON.stringify(response.data)) - return response.data - } catch (error) { - console.error(error) - return undefined - } -} - -export { getFormattedRideInfo } diff --git a/WechatBot/chatflow/src/plugins/store-messages-locally.ts b/WechatBot/chatflow/src/plugins/store-messages-locally.ts deleted file mode 100644 index 06c31ace4..000000000 --- a/WechatBot/chatflow/src/plugins/store-messages-locally.ts +++ /dev/null @@ -1,109 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -import 'dotenv/config.js' -import { - WechatyBuilder, - // types, -} from 'wechaty' -import * as PUPPET from 'wechaty-puppet' - -// 导入wechaty-puppet-wechat模块,用于连接网页版微信 -import { PuppetWeChat } from 'wechaty-puppet-wechat' -// 导入qrcode-terminal模块,用于在终端显示二维码 -import qrcodeTerminal from 'qrcode-terminal' -// 引入fs模块,用于文件操作 -import fs from 'fs' -// 定义一个csv文件路径,用于存储消息 -const csvFile = './messages.csv' -// 定义一个文件夹路径,用于存储图片、视频、文件、语音消息 -const mediaFolder = './media' -// 定义一个数组,用于缓存消息 -let messages: string[] = [] -// 定义一个定时器,用于每10秒批量写入消息到csv文件 -let timer:any - -const wait = (ms: number | undefined) => new Promise(resolve => setTimeout(resolve, ms)) - -// 使用WechatyBuilder构建一个Wechaty实例,并指定使用wechaty-puppet-wechat作为puppet -// const bot = WechatyBuilder.build({ -// name: 'ding-dong-bot', -// puppet: 'wechaty-puppet-wechat', -// puppetOptions: { -// uos: true -// } -// }) - -const bot = WechatyBuilder.build({ - name: 'ding-dong-bot', - puppet: 'wechaty-puppet-xp', -}) - -// 监听扫码事件 -bot.on('scan', (qrcode: string, status: number) => { - // 在终端显示二维码,并提示用户扫码登录 - qrcodeTerminal.generate(qrcode, { small: true }) - // eslint-disable-next-line no-console - console.log(`Scan QR Code to login: ${status}`) -}) - -// 监听登录事件 -bot.on('login', user => { - // eslint-disable-next-line no-console - console.log(`User ${user} logged in`) -}) - -// 监听消息事件 -bot.on('message', async message => { - // 获取消息的发送者、接收者、内容、类型和时间戳 - const from = message.talker() - const to = message.listener() - const content = message.text() - const type = message.type() - const timestamp = message.date().getTime() - - // 如果消息类型是图片、视频、文件或语音,将其保存到本地文件夹,并获取其存储路径 - let path = '' - if (type === PUPPET.types.Message.Image || type === PUPPET.types.Message.Video || type === PUPPET.types.Message.Attachment || type === PUPPET.types.Message.Audio) { - await wait(3000) - try { - // 创建文件夹,如果已存在则忽略错误 - fs.mkdirSync(mediaFolder, { recursive: true }) - // 获取文件名,格式为:类型_发送者_时间戳.后缀 - const filename = `${type}_${from.name}_${timestamp}.${(await message.toFileBox()).mediaType}` - // 获取文件路径,格式为:文件夹/文件名 - path = `${mediaFolder}/${filename}` - // 将消息保存到本地文件夹 - await (await message.toFileBox()).toFile(path) - } catch (err) { - console.error(err) - } - } - - // 将消息的相关信息添加到缓存数组中,格式为:发送者,接收者,内容,类型,时间戳,路径\n - messages.push(`${from},${to},${content},${type},${timestamp},${path}\n`) - - // 如果定时器不存在,创建一个定时器,每10秒执行一次写入操作 - if (!timer) { - timer = setInterval(() => { - // 如果缓存数组不为空,将其内容写入到csv文件中,并清空缓存数组 - if (messages.length > 0) { - // 创建csv文件,如果已存在则忽略错误 - fs.openSync(csvFile, 'a') - // 将缓存数组的内容写入到csv文件中,并处理错误 - fs.appendFile(csvFile, messages.join(''), err => { - if (err) { - // eslint-disable-next-line no-console - console.error(err) - } else { - // eslint-disable-next-line no-console - console.log('Messages written to csv file') - } - }) - // 清空缓存数组 - messages = [] - } - }, 10000) - } -}) - -// 启动Wechaty实例 -void bot.start() diff --git a/WechatBot/chatflow/src/plugins/vika.ts b/WechatBot/chatflow/src/plugins/vika.ts deleted file mode 100644 index 69d2d256b..000000000 --- a/WechatBot/chatflow/src/plugins/vika.ts +++ /dev/null @@ -1,969 +0,0 @@ -/* eslint-disable promise/always-return */ -/* eslint-disable no-console */ -/* eslint-disable sort-keys */ -import { ICreateRecordsReqParams, Vika } from '@vikadata/vika' -import type { ReadStream } from 'fs' -import moment from 'moment' -// import { type } from 'os' -// import { v4 } from 'uuid' -// import rp from 'request-promise' - -// import schedule from 'node-schedule' - -import fs from 'fs' -import console from 'console' - -import { - Contact, - log, - Message, - Room, - ScanStatus, - types, - Wechaty, -} from 'wechaty' -import { FileBox } from 'file-box' - -import type { Sheets, Field } from './lib/vikaModel/Model.js' -import { sheets } from './lib/vikaModel/index.js' -import { waitForMs as wait } from '../util/tool.js' - -// import { sheets } from './lib/dataModel.js' - -type VikaBotConfigTypes = { - spaceName: string, - token: string, -} - -class VikaBot { - - token!: string - spaceName!: string - vika!: Vika - spaceId!: string - messageSheet: any - commandSheet: any - contactSheet: any - qaSheet: any - roomListSheet: any - configSheet!: string - switchSheet!: string - roomWhiteListSheet!: string - contactWhiteListSheet!: string - noticeSheet!: string - msgStore!: any[] - - constructor (config: VikaBotConfigTypes) { - if (!config.token) { - console.error('未配置token,请在config.ts中配置') - } else if (!config.spaceName) { - console.error('未配置空间名称,请在config.ts中配置') - } else { - this.token = config.token - this.spaceName = config.spaceName - this.vika = new Vika({ token: this.token }) - this.spaceId = '' - this.msgStore = [] - // this.checkInit() - } - } - - async getAllSpaces () { - // 获取当前用户的空间站列表 - const spaceListResp = await this.vika.spaces.list() - if (spaceListResp.success) { - // console.log(spaceListResp.data.spaces) - return spaceListResp.data.spaces - } else { - console.error(spaceListResp) - return spaceListResp - } - } - - async getSpaceId () { - const spaceList: any = await this.getAllSpaces() - for (const i in spaceList) { - if (spaceList[i].name === this.spaceName) { - this.spaceId = spaceList[i].id - break - } - } - if (this.spaceId) { - return this.spaceId - } else { - return '' - } - } - - async getNodesList () { - // 获取指定空间站的一级文件目录 - const nodeListResp = await this.vika.nodes.list({ spaceId: this.spaceId }) - const tables: any = {} - if (nodeListResp.success) { - // console.log(nodeListResp.data.nodes); - const nodes = nodeListResp.data.nodes - nodes.forEach((node: any) => { - // 当节点是文件夹时,可以执行下列代码获取文件夹下的文件信息 - if (node.type === 'Datasheet') { - tables[node.name] = node.id - } - }) - } else { - console.error(nodeListResp) - } - return tables - } - - async getSheetFields (datasheetId: string) { - const datasheet = await this.vika.datasheet(datasheetId) - const fieldsResp = await datasheet.fields.list() - let fields: any = [] - if (fieldsResp.success) { - console.log(JSON.stringify(fieldsResp.data.fields)) - fields = fieldsResp.data.fields - } else { - console.error(fieldsResp) - } - return fields - } - - async createDataSheet (key: string, name: string, fields: { name: string; type: string }[]) { - - const datasheetRo = { - fields, - name, - } - - try { - const res: any = await this.vika.space(this.spaceId).datasheets.create(datasheetRo) - - console.log(`系统表【${name}】创建成功,表ID【${res.data.id}】`) - - this[key as keyof VikaBot] = res.data.id - this[name as keyof VikaBot] = res.data.id - const delres = await this.clearBlankLines(res.data.id) - console.log('删除空白行:', delres) - return res.data - } catch (error) { - console.error(name, error) - return error - // TODO: handle error - } - } - - async createRecord (datasheetId: string, records: ICreateRecordsReqParams) { - log.info('createRecord:', records) - const datasheet = await this.vika.datasheet(datasheetId) - - try { - const res = await datasheet.records.create(records) - if (res.success) { - // console.log(res.data.records) - } else { - console.error('记录写入维格表失败:', res) - } - } catch (err) { - console.error('请求维格表写入失败:', err) - } - - } - - async addChatRecord (msg: { talker: () => any; to: () => any; type: () => any; text: () => any; room: () => any; id: any }, uploadedAttachments: any, msgType: any, text: string) { - // console.debug(msg) - // console.debug(JSON.stringify(msg)) - const talker = msg.talker() - // console.debug(talker) - // const to = msg.to() - // const type = msg.type() - text = text || msg.text() - const room = msg.room() - let topic = '' - if (room) { - topic = await room.topic() - } - const curTime = this.getCurTime() - // const reqId = v4() - // const ID = msg.id - // let msgType = msg.type() - const timeHms = moment(curTime).format('YYYY-MM-DD HH:mm:ss') - const files = [] - if (uploadedAttachments) { - files.push(uploadedAttachments) - text = JSON.stringify(uploadedAttachments) - } - - const record = { - fields: { - timeHms, - name: talker ? talker.name() : '未知', - topic: topic || '--', - messagePayload: text, - wxid: talker.id !== 'null' ? talker.id : '--', - roomid: room && room.id ? room.id : '--', - messageType: msgType, - file: files, - }, - } - // log.info('addChatRecord:', JSON.stringify(record)) - this.msgStore.push(record) - log.info('最新消息池长度:', this.msgStore.length) - } - - addRecord (record:any) { - log.info('addRecord:', JSON.stringify(record)) - if (record.fields) { - this.msgStore.push(record) - log.info('最新消息池长度:', this.msgStore.length) - } - - } - - async addScanRecord (uploadedAttachments: string, text: string) { - - const curTime = this.getCurTime() - const timeHms = moment(curTime).format('YYYY-MM-DD HH:mm:ss') - const files = [] - if (uploadedAttachments) { - files.push(uploadedAttachments) - } - - const records = [ - { - fields: { - timeHms, - name: 'system', - topic: '--', - messagePayload: text, - wxid: 'system', - roomid: '--', - messageType: 'qrcode', - file: files, - }, - }, - ] - - log.info('addScanRecord:', records) - const datasheet = this.vika.datasheet(this.messageSheet) - datasheet.records.create(records).then((response) => { - if (response.success) { - console.log('写入vika成功:', response.code) - } else { - console.error('调用vika写入接口成功,写入vika失败:', response) - } - return response - }).catch(err => { console.error('调用vika写入接口失败:', err) }) - } - - async addHeartbeatRecord (text: string) { - - const curTime = this.getCurTime() - const timeHms = moment(curTime).format('YYYY-MM-DD HH:mm:ss') - const files: any = [] - - const record = { - fields: { - timeHms, - name: 'system', - topic: '--', - messagePayload: text, - wxid: 'system', - roomid: '--', - messageType: 'heartbeat', - file: files, - }, - } - log.info('addHeartbeatRecord:', JSON.stringify(record)) - this.msgStore.push(record) - } - - async upload (file: ReadStream) { - const datasheet = this.vika.datasheet(this.messageSheet) - try { - const resp = await datasheet.upload(file) - if (resp.success) { - const uploadedAttachments = resp.data - console.debug('上传成功', uploadedAttachments) - return uploadedAttachments - } - } catch (error: any) { - console.error(error.message) - return error - } - - } - - async deleteRecords (datasheetId: string, recordsIds: string | any[]) { - // console.debug('操作数据表ID:', datasheetId) - // console.debug('待删除记录IDs:', recordsIds) - const datasheet = this.vika.datasheet(datasheetId) - const response = await datasheet.records.delete(recordsIds) - if (response.success) { - console.log(`删除${recordsIds.length}条记录`) - } else { - console.error('删除记录失败:', response) - } - } - - async getRecords (datasheetId: string, query = {}) { - let records: any = [] - const datasheet = await this.vika.datasheet(datasheetId) - // 分页获取记录,默认返回第一页 - const response = await datasheet.records.query(query) - if (response.success) { - records = response.data.records - // console.log(records) - } else { - console.error(response) - records = response - } - return records - } - - async getAllRecords (datasheetId: string) { - let records = [] - const datasheet = await this.vika.datasheet(datasheetId) - const response: any = await datasheet.records.queryAll() - // console.debug('原始返回:',response) - if (response.next) { - for await (const eachPageRecords of response) { - // console.debug('eachPageRecords:',eachPageRecords.length) - records.push(...eachPageRecords) - } - // console.debug('records:',records.length) - } else { - console.error(response) - records = response - } - return records - } - - async clearBlankLines (datasheetId: any) { - const records = await this.getRecords(datasheetId, {}) - // console.debug(records) - const recordsIds = [] - for (const i in records) { - recordsIds.push(records[i].recordId) - } - // console.debug(recordsIds) - await this.deleteRecords(datasheetId, recordsIds) - } - - async getConfig () { - const configRecords = await this.getRecords(this.configSheet, {}) - const switchRecords = await this.getRecords(this.switchSheet, {}) - // console.debug(configRecords) - // console.debug(switchRecords) - - // const sysConfig = { - // VIKA_ONOFF: config['消息上传到维格表'] === '开启', // 维格表开启 - // puppetName: config['puppet'], // 支持wechaty-puppet-wechat、wechaty-puppet-xp、wechaty-puppet-padlocal - // puppetToken: config['wechaty-token'] || '', - // WX_TOKEN: config['对话平台token'], // 微信对话平台token - // EncodingAESKey: config['对话平台EncodingAESKey'], // 微信对话平台EncodingAESKey - // WX_OPENAI_ONOFF: config['智能问答'] === '开启', // 微信对话平台开启 - // roomWhiteListOpen: config['群白名单'] === '开启', // 群白名单功能 - // contactWhiteListOpen: config['好友白名单'] === '开启', // 群白名单功能 - // AT_AHEAD: config['AT回复'] === '开启', // 只有机器人被@时回复 - // DIFF_REPLY_ONOFF: config['不同群个性回复'] === '开启', // 开启不同群个性化回复 - // imOpen: config['IM对话'] === '开启', // 是否开启uve-im客户端,设置为true时,需要先 cd ./vue-im 然后 npm install 启动服务 npm run dev - // mqtt_SUB_ONOFF: config['MQTT控制'] === '开启', - // mqtt_PUB_ONOFF: config['MQTT推送'] === '开启', - // mqttUsername: config['MQTT用户名'] || '', - // mqttPassword: config['MQTT密码'] || '', - // mqttEndpoint: config['MQTT接入地址'] || '', - // mqttPort: config['MQTT端口号'] || 1883, - // } - - const sysConfig: any = {} - sysConfig.roomWhiteList = [] - sysConfig.contactWhiteList = [] - - for (let i = 0; i < configRecords.length; i++) { - if (configRecords[i].fields['标识']) { - sysConfig[configRecords[i].fields['标识']] = configRecords[i].fields['值(只修改此列)'] || '' - } - } - - for (let i = 0; i < switchRecords.length; i++) { - if (switchRecords[i].fields['标识']) { - sysConfig[switchRecords[i].fields['标识']] = switchRecords[i].fields['启用状态(只修改此列)'] === '开启' - } - } - - const roomWhiteListRecords: any[] = await this.getRecords(this.roomWhiteListSheet, {}) - for (let i = 0; i < roomWhiteListRecords.length; i++) { - if (roomWhiteListRecords[i].fields['群ID']) { - sysConfig.roomWhiteList.push(roomWhiteListRecords[i].fields['群ID']) - } - } - - const contactWhiteListRecords = await this.getRecords(this.contactWhiteListSheet, {}) - for (let i = 0; i < contactWhiteListRecords.length; i++) { - if (contactWhiteListRecords[i].fields['好友ID']) { - sysConfig.contactWhiteList.push(contactWhiteListRecords[i].fields['好友ID']) - } - } - sysConfig.welcomeList = [] - log.info('sysConfig:', JSON.stringify(sysConfig)) - - return sysConfig - - } - - async onMessage (message:Message) { - try { - - let uploadedAttachments = '' - const msgType = types.Message[message.type()] - let file:any = '' - let filePath = '' - let text = '' - - let urlLink - let miniProgram - - switch (message.type()) { - // 文本消息 - case types.Message.Text: - text = message.text() - break - - // 图片消息 - - case types.Message.Image: - - try { - // await wait(2500) - // const img = await message.toImage() - // file = await img.thumbnail() - file = await message.toFileBox() - - } catch (e) { - console.error('Image解析失败:', e) - file = '' - } - - break - - // 链接卡片消息 - case types.Message.Url: - urlLink = await message.toUrlLink() - text = JSON.stringify(JSON.parse(JSON.stringify(urlLink)).payload) - // file = await message.toFileBox(); - break - - // 小程序卡片消息 - case types.Message.MiniProgram: - - miniProgram = await message.toMiniProgram() - - text = JSON.stringify(JSON.parse(JSON.stringify(miniProgram)).payload) - - // console.debug(miniProgram) - /* - miniProgram: 小程序卡片数据 - { - appid: "wx363a...", - description: "贝壳找房 - 真房源", - title: "美国白宫,10室8厅9卫,99999刀/月", - iconUrl: "http://mmbiz.qpic.cn/mmbiz_png/.../640?wx_fmt=png&wxfrom=200", - pagePath: "pages/home/home.html...", - shareId: "0_wx363afd5a1384b770_..._1615104758_0", - thumbKey: "84db921169862291...", - thumbUrl: "3051020100044a304802010002046296f57502033d14...", - username: "gh_8a51...@app" - } - */ - break - - // 语音消息 - case types.Message.Audio: - - try { - file = await message.toFileBox() - - } catch (e) { - console.error('Audio解析失败:', e) - file = '' - } - - break - - // 视频消息 - case types.Message.Video: - - try { - file = await message.toFileBox() - - } catch (e) { - console.error('Video解析失败:', e) - file = '' - } - break - - // 动图表情消息 - case types.Message.Emoticon: - - try { - file = await message.toFileBox() - - } catch (e) { - console.error('Emoticon解析失败:', e) - file = '' - } - - break - - // 文件消息 - case types.Message.Attachment: - - try { - file = await message.toFileBox() - - } catch (e) { - console.error('Attachment解析失败:', e) - file = '' - } - - break - // 文件消息 - case types.Message.Location: - - // const location = await message.toLocation() - // text = JSON.stringify(JSON.parse(JSON.stringify(location)).payload) - break - case types.Message.Unknown: - // const location = await message.toLocation() - // text = JSON.stringify(JSON.parse(JSON.stringify(location)).payload) - break - // 其他消息 - default: - break - } - - if (file) { - filePath = './' + file.name - try { - const writeStream = fs.createWriteStream(filePath) - await file.pipe(writeStream) - await wait(500) - const readerStream = fs.createReadStream(filePath) - uploadedAttachments = await this.upload(readerStream) - fs.unlink(filePath, (err) => { - console.debug('上传vika完成删除文件:', filePath, err) - }) - } catch { - console.debug('上传失败:', filePath) - fs.unlink(filePath, (err) => { - console.debug('上传vika失败删除文件', filePath, err) - }) - } - - } - - if (message.type() !== types.Message.Unknown) { - await this.addChatRecord(message, uploadedAttachments, msgType, text) - } - - } catch (e) { - console.log('vika 写入失败:', e) - } - } - - async onScan (qrcode:string, status:ScanStatus) { - if (status === ScanStatus.Waiting || status === ScanStatus.Timeout) { - const qrcodeUrl = encodeURIComponent(qrcode) - const qrcodeImageUrl = [ - 'https://wechaty.js.org/qrcode/', - qrcodeUrl, - ].join('') - // log.info('StarterBot', 'vika onScan: %s(%s) - %s', ScanStatus[status], status, qrcodeImageUrl) - - let uploadedAttachments = '' - let file: FileBox - let filePath = 'qrcode.png' - try { - file = FileBox.fromQRCode(qrcode) - filePath = './' + file.name - try { - const writeStream = fs.createWriteStream(filePath) - await file.pipe(writeStream) - await wait(200) - const readerStream = fs.createReadStream(filePath) - uploadedAttachments = await this.upload(readerStream) - const text = qrcodeImageUrl - await this.addScanRecord(uploadedAttachments, text) - fs.unlink(filePath, (err) => { - log.info('二维码上传vika完成删除文件:', filePath, err) - }) - } catch { - log.info('二维码上传失败:', filePath) - fs.unlink(filePath, (err) => { - log.info('二维码上传vika失败删除文件', filePath, err) - }) - } - - } catch (e) { - log.info('二维码vika 写入失败:', e) - } - - } else { - log.info('StarterBot', 'vika onScan: %s(%s)', ScanStatus[status], status) - } - } - - async updateContacts (bot:Wechaty) { - let updateCount = 0 - try { - const contacts: Contact[] = await bot.Contact.findAll() - log.info('当前微信最新联系人数量:', contacts.length) - const recordsAll: any = [] - const recordExisting = await this.getAllRecords(this.contactSheet) - log.info('云端好友数量:', recordExisting.length) - const wxids: string[] = [] - if (recordExisting.length) { - recordExisting.forEach((record: { fields: any, id: any }) => { - wxids.push(record.fields.id) - }) - } - for (let i = 0; i < contacts.length; i++) { - const item = contacts[i] - if (item && item.friend() && !wxids.includes(item.id)) { - let avatar = '' - try { - avatar = String(await item.avatar()) - } catch (err) { - - } - const fields = { - alias: String(await item.alias() || ''), - avatar, - friend: item.friend(), - gender: String(item.gender() || ''), - id: item.id, - name: item.name(), - phone: String(await item.phone()), - type: String(item.type()), - } - const record = { - fields, - } - recordsAll.push(record) - } - } - - for (let i = 0; i < recordsAll.length; i = i + 10) { - const records = recordsAll.slice(i, i + 10) - await this.createRecord(this.contactSheet, records) - log.info('好友列表同步中...', i + 10) - updateCount = updateCount + 10 - void await wait(250) - } - - log.info('同步好友列表完成,更新好友数量:', updateCount) - } catch (err) { - log.error('更新好友列表失败:', err) - - } - - } - - async updateRooms (bot: Wechaty) { - let updateCount = 0 - try { - const rooms: Room[] = await bot.Room.findAll() - log.info('当前最新微信群数量:', rooms.length) - const recordsAll: any = [] - const recordExisting = await this.getAllRecords(this.roomListSheet) - log.info('云端群数量:', recordExisting.length) - const wxids: string[] = [] - if (recordExisting.length) { - recordExisting.forEach((record: { fields: any, id: any }) => { - wxids.push(record.fields.id) - }) - } - for (let i = 0; i < rooms.length; i++) { - const item = rooms[i] - if (item && !wxids.includes(item.id)) { - let avatar:any = 'null' - try { - avatar = String(await item.avatar()) - } catch (err) { - log.error('获取群头像失败:', err) - } - const fields = { - avatar, - id: item.id, - ownerId: String(item.owner()?.id || ''), - topic: await item.topic() || '', - } - const record = { - fields, - } - recordsAll.push(record) - } - } - - for (let i = 0; i < recordsAll.length; i = i + 10) { - const records = recordsAll.slice(i, i + 10) - await this.createRecord(this.roomListSheet, records) - log.info('群列表同步中...', i + 10) - updateCount = updateCount + 10 - void await wait(250) - } - - log.info('同步群列表完成,更新群数量:', updateCount) - } catch (err) { - log.error('更新群列表失败:', err) - - } - - } - - async getTimedTask () { - const taskRecords = await this.getRecords(this.noticeSheet, {}) - // console.debug(taskRecords) - - const timedTasks: any = [] - - const taskFields: Field[] = sheets['noticeSheet']?.fields || [] - const taskFieldDic: any = {} - - for (let i = 0; i < taskFields.length; i++) { - const taskField: Field | undefined = taskFields[i] - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - if (taskFields && taskField !== undefined && taskFields[i]?.desc) { - taskFieldDic[taskField.name] = taskField.desc - } - } - - for (let i = 0; i < taskRecords.length; i++) { - const task = taskRecords[i] - const taskConfig: any = { - id: task.recordId, - msg: task.fields['内容'], - time: task.fields['时间'], - cycle: task.fields['周期'], - contacts: [], - rooms: [], - active: task.fields['启用状态'] === '开启', - } - - if (taskConfig.msg && taskConfig.time && (task.fields['接收好友'] || task.fields['接收群'])) { - - if (task.fields['接收群'] && task.fields['接收群'].length) { - const roomRecords = await this.getRecords(this.roomListSheet, { recordIds: task.fields['接收群'] }) - // console.debug(roomRecords) - roomRecords.forEach(async (item: any) => { - taskConfig.rooms.push(item.fields.id) - }) - } - if (task.fields['接收好友'] && task.fields['接收好友'].length) { - const contactRecords = await this.getRecords(this.contactSheet, { recordIds: task.fields['接收好友'] }) - // console.debug(contactRecords) - contactRecords.forEach(async (item: any) => { - taskConfig.contacts.push(item.fields.id) - }) - } - timedTasks.push(taskConfig) - } - } - - // console.debug(2, timedTasks) - - return timedTasks - - } - - async checkInit (msg: string) { - this.spaceId = await this.getSpaceId() - // console.log('空间ID:', this.spaceId) - let sheetCount = 0 - if (this.spaceId) { - const tables = await this.getNodesList() - // console.debug(tables) - - for (const k in sheets) { - const sheet = sheets[k as keyof Sheets] - // console.log(k, sheet) - if (sheet) { - if (!tables[sheet.name]) { - sheetCount = sheetCount + 1 - console.error(`缺少【${sheet.name}】表,请运行 npm run sys-init 自动创建系统表,然后再运行 npm start`) - } else { - this[k as keyof VikaBot] = tables[sheet.name] - } - } - } - - if (sheetCount === 0) { - console.log(`================================================\n\n${msg}\n\n================================================\n`) - } else { - return false - } - - } else { - console.error('指定空间不存在,请先创建空间,并在config.ts中配置VIKA_SPACENAME') - return false - } - - const that = this - setInterval(() => { - // log.info('待处理消息池长度:', that.msgStore.length||0); - // that.msgStore = that.msgStore.concat(global.sentMessage) - // global.sentMessage = [] - - if (that.msgStore.length && that.messageSheet) { - const end = that.msgStore.length < 10 ? that.msgStore.length : 10 - const records = that.msgStore.splice(0, end) - const messageSheet = that.messageSheet - const datasheet = that.vika.datasheet(messageSheet) - // log.info('写入vika的消息:', JSON.stringify(records)) - try { - datasheet.records.create(records).then((response) => { - if (response.success) { - console.log('写入vika成功:', end, JSON.stringify(response.code)) - } else { - console.error('调用vika写入接口成功,写入vika失败:', response) - } - }).catch(err => { console.error('调用vika写入接口失败:', err) }) - } catch (err) { - console.error('调用datasheet.records.create失败:', err) - } - } - }, 250) - - return true - } - - async init () { - - this.spaceId = await this.getSpaceId() - // console.log('空间ID:', this.spaceId) - - if (this.spaceId) { - - const tables = await this.getNodesList() - // console.log(tables) - - await wait(1000) - - for (const k in sheets) { - // console.debug(this) - const sheet = sheets[k as keyof Sheets] - // console.log(k, sheet) - if (sheet && !tables[sheet.name]) { - const fields = sheet.fields - const newFields: Field[] = [] - for (let j = 0; j < fields.length; j++) { - const field = fields[j] - const newField: Field = { - type: field?.type || '', - name: field?.name || '', - desc: field?.desc || '', - } - console.debug(field) - let options - switch (field?.type) { - case 'SingleText': - newField.property = field.property || {} - newFields.push(newField) - break - case 'SingleSelect': - options = field.property.options - newField.property = {} - newField.property.defaultValue = field.property.defaultValue || options[0].name - newField.property.options = [] - for (let z = 0; z < options.length; z++) { - const option = { - name: options[z].name, - color: options[z].color.value, - } - newField.property.options.push(option) - } - newFields.push(newField) - break - case 'Text': - newFields.push(newField) - break - case 'DateTime': - newField.property = {} - newField.property.dateFormat = 'YYYY-MM-DD' - newField.property.includeTime = true - newField.property.timeFormat = 'HH:mm' - newField.property.autoFill = true - newFields.push(newField) - break - case 'Checkbox': - newField.property = { - icon: 'white_check_mark', - } - newFields.push(newField) - break - case 'MagicLink': - newField.property = {} - newField.property.foreignDatasheetId = this[field.desc as keyof VikaBot] - if (field.desc) { - newFields.push(newField) - } - break - case 'Attachment': - newFields.push(newField) - break - default: - newFields.push(newField) - break - } - // if (field?.type !== 'MagicLink' || (field.type === 'MagicLink' && field.desc)) { - // newFields.push(newField) - // } - } - - // console.debug(newFields) - - await this.createDataSheet(k, sheet.name, newFields) - await wait(200) - const defaultRecords = sheet.defaultRecords - // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition - if (defaultRecords) { - // console.debug(defaultRecords.length) - const count = Math.ceil(defaultRecords.length / 10) - for (let i = 0; i < count; i++) { - const records = defaultRecords.splice(0, 10) - console.log('写入:', records.length) - await this.createRecord(this[k as keyof VikaBot], records) - await wait(200) - } - console.log(sheet.name + '初始化数据写入完成...') - } - console.log(sheet.name + '数据表配置完成...') - } else if (sheet) { - this[k as keyof VikaBot] = tables[sheet.name] - this[sheet.name as keyof VikaBot] = tables[sheet.name] - } else { /* empty */ } - } - - console.log('================================================\n\n初始化系统表完成,运行 npm start 启动系统\n\n================================================\n') - - // const tasks = await this.getTimedTask() - return true - } else { - console.error('指定空间不存在,请先创建空间,并在config.ts中配置VIKA_SPACENAME') - return false - } - } - - getCurTime () { - // timestamp是整数,否则要parseInt转换 - const timestamp = new Date().getTime() - const timezone = 8 // 目标时区时间,东八区 - const offsetGMT = new Date().getTimezoneOffset() // 本地时间和格林威治的时间差,单位为分钟 - const time = timestamp + offsetGMT * 60 * 1000 + timezone * 60 * 60 * 1000 - return time - } - -} - -export { VikaBot } - -export default VikaBot diff --git a/WechatBot/chatflow/src/plugins/vue-im/.babelrc b/WechatBot/chatflow/src/plugins/vue-im/.babelrc deleted file mode 100644 index 3a280ba34..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/.babelrc +++ /dev/null @@ -1,12 +0,0 @@ -{ - "presets": [ - ["env", { - "modules": false, - "targets": { - "browsers": ["> 1%", "last 2 versions", "not ie <= 8"] - } - }], - "stage-2" - ], - "plugins": ["transform-vue-jsx", "transform-runtime"] -} diff --git a/WechatBot/chatflow/src/plugins/vue-im/.editorconfig b/WechatBot/chatflow/src/plugins/vue-im/.editorconfig deleted file mode 100644 index e291365a9..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/.editorconfig +++ /dev/null @@ -1,9 +0,0 @@ -root = true - -[*] -charset = utf-8 -indent_style = space -indent_size = 4 -end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true diff --git a/WechatBot/chatflow/src/plugins/vue-im/.gitignore b/WechatBot/chatflow/src/plugins/vue-im/.gitignore deleted file mode 100644 index b1a5fa6d5..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -.DS_Store -node_modules/ -/dist/ -npm-debug.log* -yarn-debug.log* -yarn-error.log* -/test/e2e/reports/ -selenium-debug.log -/static/upload/* - -# Editor directories and files -.idea -.vscode -*.suo -*.ntvs* -*.njsproj -*.sln diff --git a/WechatBot/chatflow/src/plugins/vue-im/.postcssrc.js b/WechatBot/chatflow/src/plugins/vue-im/.postcssrc.js deleted file mode 100755 index eee3e92d7..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/.postcssrc.js +++ /dev/null @@ -1,10 +0,0 @@ -// https://github.com/michael-ciniawsky/postcss-load-config - -module.exports = { - "plugins": { - "postcss-import": {}, - "postcss-url": {}, - // to edit target browsers: use "browserslist" field in package.json - "autoprefixer": {} - } -} diff --git a/WechatBot/chatflow/src/plugins/vue-im/LICENSE b/WechatBot/chatflow/src/plugins/vue-im/LICENSE deleted file mode 100644 index 59e9324fb..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 polk6 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/chatflow/src/plugins/vue-im/README.md b/WechatBot/chatflow/src/plugins/vue-im/README.md deleted file mode 100644 index 931097902..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# wechat客服系统 - -基于另一个开源项目[vue-im](https://github.com/polk6/vue-im)二次开发的客服系统,对接微信chatbot实现群消息转换为单聊模式,并支持快捷答复。 - -感谢作者[@fang mu](https://github.com/polk6) - -# Features -* 支持1客服对多用户 -* 当前仅支持文本消息 - -## im-server im服务端 - - - -## Usage -``` -npm install -npm run dev -``` - -启动后使用谷歌浏览器访问http://localhost:8080/#/imServer - -## Express-server - -./build/webpack.dev.conf.js 内置了一个Express服务,后台接口都在此处 diff --git a/WechatBot/chatflow/src/plugins/vue-im/build/build.js b/WechatBot/chatflow/src/plugins/vue-im/build/build.js deleted file mode 100755 index 8f2ad8ad4..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/build/build.js +++ /dev/null @@ -1,41 +0,0 @@ -'use strict' -require('./check-versions')() - -process.env.NODE_ENV = 'production' - -const ora = require('ora') -const rm = require('rimraf') -const path = require('path') -const chalk = require('chalk') -const webpack = require('webpack') -const config = require('../config') -const webpackConfig = require('./webpack.prod.conf') - -const spinner = ora('building for production...') -spinner.start() - -rm(path.join(config.build.assetsRoot, config.build.assetsSubDirectory), err => { - if (err) throw err - webpack(webpackConfig, (err, stats) => { - spinner.stop() - if (err) throw err - process.stdout.write(stats.toString({ - colors: true, - modules: false, - children: false, // If you are using ts-loader, setting this to true will make TypeScript errors show up during build. - chunks: false, - chunkModules: false - }) + '\n\n') - - if (stats.hasErrors()) { - console.log(chalk.red(' Build failed with errors.\n')) - process.exit(1) - } - - console.log(chalk.cyan(' Build complete.\n')) - console.log(chalk.yellow( - ' Tip: built files are meant to be served over an HTTP server.\n' + - ' Opening index.html over file:// won\'t work.\n' - )) - }) -}) diff --git a/WechatBot/chatflow/src/plugins/vue-im/build/check-versions.js b/WechatBot/chatflow/src/plugins/vue-im/build/check-versions.js deleted file mode 100755 index 3ef972a08..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/build/check-versions.js +++ /dev/null @@ -1,54 +0,0 @@ -'use strict' -const chalk = require('chalk') -const semver = require('semver') -const packageConfig = require('../package.json') -const shell = require('shelljs') - -function exec (cmd) { - return require('child_process').execSync(cmd).toString().trim() -} - -const versionRequirements = [ - { - name: 'node', - currentVersion: semver.clean(process.version), - versionRequirement: packageConfig.engines.node - } -] - -if (shell.which('npm')) { - versionRequirements.push({ - name: 'npm', - currentVersion: exec('npm --version'), - versionRequirement: packageConfig.engines.npm - }) -} - -module.exports = function () { - const warnings = [] - - for (let i = 0; i < versionRequirements.length; i++) { - const mod = versionRequirements[i] - - if (!semver.satisfies(mod.currentVersion, mod.versionRequirement)) { - warnings.push(mod.name + ': ' + - chalk.red(mod.currentVersion) + ' should be ' + - chalk.green(mod.versionRequirement) - ) - } - } - - if (warnings.length) { - console.log('') - console.log(chalk.yellow('To use this template, you must update following to modules:')) - console.log() - - for (let i = 0; i < warnings.length; i++) { - const warning = warnings[i] - console.log(' ' + warning) - } - - console.log() - process.exit(1) - } -} diff --git a/WechatBot/chatflow/src/plugins/vue-im/build/utils.js b/WechatBot/chatflow/src/plugins/vue-im/build/utils.js deleted file mode 100755 index e534fb0fd..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/build/utils.js +++ /dev/null @@ -1,101 +0,0 @@ -'use strict' -const path = require('path') -const config = require('../config') -const ExtractTextPlugin = require('extract-text-webpack-plugin') -const packageConfig = require('../package.json') - -exports.assetsPath = function (_path) { - const assetsSubDirectory = process.env.NODE_ENV === 'production' - ? config.build.assetsSubDirectory - : config.dev.assetsSubDirectory - - return path.posix.join(assetsSubDirectory, _path) -} - -exports.cssLoaders = function (options) { - options = options || {} - - const cssLoader = { - loader: 'css-loader', - options: { - sourceMap: options.sourceMap - } - } - - const postcssLoader = { - loader: 'postcss-loader', - options: { - sourceMap: options.sourceMap - } - } - - // generate loader string to be used with extract text plugin - function generateLoaders (loader, loaderOptions) { - const loaders = options.usePostCSS ? [cssLoader, postcssLoader] : [cssLoader] - - if (loader) { - loaders.push({ - loader: loader + '-loader', - options: Object.assign({}, loaderOptions, { - sourceMap: options.sourceMap - }) - }) - } - - // Extract CSS when that option is specified - // (which is the case during production build) - if (options.extract) { - return ExtractTextPlugin.extract({ - use: loaders, - fallback: 'vue-style-loader' - }) - } else { - return ['vue-style-loader'].concat(loaders) - } - } - - // https://vue-loader.vuejs.org/en/configurations/extract-css.html - return { - css: generateLoaders(), - postcss: generateLoaders(), - less: generateLoaders('less'), - sass: generateLoaders('sass', { indentedSyntax: true }), - scss: generateLoaders('sass'), - stylus: generateLoaders('stylus'), - styl: generateLoaders('stylus') - } -} - -// Generate loaders for standalone style files (outside of .vue) -exports.styleLoaders = function (options) { - const output = [] - const loaders = exports.cssLoaders(options) - - for (const extension in loaders) { - const loader = loaders[extension] - output.push({ - test: new RegExp('\\.' + extension + '$'), - use: loader - }) - } - - return output -} - -exports.createNotifierCallback = () => { - const notifier = require('node-notifier') - - return (severity, errors) => { - if (severity !== 'error') return - - const error = errors[0] - const filename = error.file && error.file.split('!').pop() - - notifier.notify({ - title: packageConfig.name, - message: severity + ': ' + error.name, - subtitle: filename || '', - icon: path.join(__dirname, 'logo.png') - }) - } -} diff --git a/WechatBot/chatflow/src/plugins/vue-im/build/vue-loader.conf.js b/WechatBot/chatflow/src/plugins/vue-im/build/vue-loader.conf.js deleted file mode 100755 index 33ed58bc0..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/build/vue-loader.conf.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict' -const utils = require('./utils') -const config = require('../config') -const isProduction = process.env.NODE_ENV === 'production' -const sourceMapEnabled = isProduction - ? config.build.productionSourceMap - : config.dev.cssSourceMap - -module.exports = { - loaders: utils.cssLoaders({ - sourceMap: sourceMapEnabled, - extract: isProduction - }), - cssSourceMap: sourceMapEnabled, - cacheBusting: config.dev.cacheBusting, - transformToRequire: { - video: ['src', 'poster'], - source: 'src', - img: 'src', - image: 'xlink:href' - } -} diff --git a/WechatBot/chatflow/src/plugins/vue-im/build/webpack.base.conf.js b/WechatBot/chatflow/src/plugins/vue-im/build/webpack.base.conf.js deleted file mode 100755 index 6163223e4..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/build/webpack.base.conf.js +++ /dev/null @@ -1,91 +0,0 @@ -'use strict' -const path = require('path') -const utils = require('./utils') -const config = require('../config') -const vueLoaderConfig = require('./vue-loader.conf') - -function resolve (dir) { - return path.join(__dirname, '..', dir) -} - -const createLintingRule = () => ({ - test: /\.(js|vue)$/, - loader: 'eslint-loader', - enforce: 'pre', - include: [resolve('src'), resolve('test')], - options: { - formatter: require('eslint-friendly-formatter'), - emitWarning: !config.dev.showEslintErrorsInOverlay - } -}) - -module.exports = { - context: path.resolve(__dirname, '../'), - entry: { app: [ 'babel-polyfill', './src/main.js' ] }, - output: { - path: config.build.assetsRoot, - filename: '[name].js', - publicPath: process.env.NODE_ENV === 'production' - ? config.build.assetsPublicPath - : config.dev.assetsPublicPath - }, - resolve: { - extensions: ['.js', '.vue', '.json'], - alias: { - 'vue$': 'vue/dist/vue.esm.js', - '@': resolve('src'), - '@@': resolve('static'), - } - }, - module: { - rules: [ - ...(config.dev.useEslint ? [createLintingRule()] : []), - { - test: /\.vue$/, - loader: 'vue-loader', - options: vueLoaderConfig - }, - { - test: /\.js$/, - loader: 'babel-loader', - include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client')] - }, - { - test: /\.(png|jpe?g|gif|svg)(\?.*)?$/, - loader: 'url-loader', - options: { - limit: 10000, - name: utils.assetsPath('img/[name].[hash:7].[ext]') - } - }, - { - test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/, - loader: 'url-loader', - options: { - limit: 10000, - name: utils.assetsPath('media/[name].[hash:7].[ext]') - } - }, - { - test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, - loader: 'url-loader', - options: { - limit: 10000, - name: utils.assetsPath('fonts/[name].[hash:7].[ext]') - } - } - ] - }, - node: { - // prevent webpack from injecting useless setImmediate polyfill because Vue - // source contains it (although only uses it if it's native). - setImmediate: false, - // prevent webpack from injecting mocks to Node native modules - // that does not make sense for the client - dgram: 'empty', - fs: 'empty', - net: 'empty', - tls: 'empty', - child_process: 'empty' - } -} diff --git a/WechatBot/chatflow/src/plugins/vue-im/build/webpack.dev.conf.js b/WechatBot/chatflow/src/plugins/vue-im/build/webpack.dev.conf.js deleted file mode 100755 index 7223c6c5a..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/build/webpack.dev.conf.js +++ /dev/null @@ -1,224 +0,0 @@ -'use strict'; -const utils = require('./utils'); -const webpack = require('webpack'); -const config = require('../config'); -const merge = require('webpack-merge'); -const path = require('path'); -const baseWebpackConfig = require('./webpack.base.conf'); -const CopyWebpackPlugin = require('copy-webpack-plugin'); -const HtmlWebpackPlugin = require('html-webpack-plugin'); -const FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin'); -const portfinder = require('portfinder'); - -const HOST = process.env.HOST; -const PORT = process.env.PORT && Number(process.env.PORT); - -const devWebpackConfig = merge(baseWebpackConfig, { - module: { - rules: utils.styleLoaders({ sourceMap: config.dev.cssSourceMap, usePostCSS: true }) - }, - // cheap-module-eval-source-map is faster for development - devtool: config.dev.devtool, - - // these devServer options should be customized in /config/index.js - devServer: { - clientLogLevel: 'warning', - historyApiFallback: { - rewrites: [{ from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') }] - }, - hot: true, - contentBase: false, // since we use CopyWebpackPlugin. - compress: true, - host: HOST || config.dev.host, - port: PORT || config.dev.port, - open: config.dev.autoOpenBrowser, - overlay: config.dev.errorOverlay ? { warnings: false, errors: true } : false, - publicPath: config.dev.assetsPublicPath, - proxy: config.dev.proxyTable, - quiet: true, // necessary for FriendlyErrorsPlugin - watchOptions: { - poll: config.dev.poll - } - }, - plugins: [ - new webpack.DefinePlugin({ - 'process.env': require('../config/dev.env') - }), - new webpack.HotModuleReplacementPlugin(), - new webpack.NamedModulesPlugin(), // HMR shows correct file names in console on update. - new webpack.NoEmitOnErrorsPlugin(), - // https://github.com/ampedandwired/html-webpack-plugin - new HtmlWebpackPlugin({ - filename: 'index.html', - template: 'index.html', - inject: true - }), - // copy custom static assets - new CopyWebpackPlugin([ - { - from: path.resolve(__dirname, '../static'), - to: config.dev.assetsSubDirectory, - ignore: ['.*'] - } - ]) - ] -}); - -module.exports = new Promise((resolve, reject) => { - portfinder.basePort = process.env.PORT || config.dev.port; - portfinder.getPort((err, port) => { - if (err) { - reject(err); - } else { - // publish the new Port, necessary for e2e tests - process.env.PORT = port; - // add port to devServer config - devWebpackConfig.devServer.port = port; - - // Add FriendlyErrorsPlugin - devWebpackConfig.plugins.push( - new FriendlyErrorsPlugin({ - compilationSuccessInfo: { - messages: [ - ` -Your application is running here: - im-server: http://localhost:${port}/#/imServer - im-client: http://localhost:${port}/#/imclient - ` - ] - }, - onErrors: config.dev.notifyOnErrors ? utils.createNotifierCallback() : undefined - }) - ); - - resolve(devWebpackConfig); - } - }); -}); - -// express -const app = require('express')(); -const fileUpload = require('express-fileupload'); -app.use(fileUpload()); // for parsing multipart/form-data -app.use(function(req, res, next) { - res.header('Access-Control-Allow-Origin', '*'); - res.header('Access-Control-Allow-Headers', 'X-Requested-With'); - res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept, Authorization, Cache-Control, Pragma'); - res.header('Access-Control-Allow-Methods', 'PUT, GET, POST, DELETE, OPTIONS'); - if (req.method === 'OPTIONS') { - res.sendStatus(204); - } else { - next(); - } -}); -// 上传文件 -app.post('/upload', function(req, res) { - if (!req.files) { - return res.status(400).send('No files were uploaded.'); - } - // save file - // - let file = req.files.uploadFile; - let encodeFileName = Number.parseInt(Date.now() + Math.random()) + file.name; - file.mv(path.resolve(__dirname, '../static/upload/') + '/' + encodeFileName, function(err) { - if (err) { - return res.status(500).send({ - code: err.code, - data: err, - message: '文件上传失败' - }); - } - res.send({ - code: 0, - data: { - fileName: file.name, - fileUrl: `http://${devWebpackConfig.devServer.host}:3000/static/upload/${encodeFileName}` - }, - message: '文件上传成功' - }); - }); -}); - -// 获取文件 -app.get('/static/upload/:fileName', function(req, res) { - res.sendFile(path.resolve(__dirname, '../static/upload') + '/' + req.params.fileName); -}); -// 获取im客服列表 -app.get('/getIMServerList', function(req, res) { - res.json({ - code: 0, - data: Array.from(serverChatDic.values()).map((item) => { - return item.serverChatEn; - }) // 只需要serverChatDic.values内的serverChatEn - }); -}); -app.listen(3000); - -// socket -var server = require('http').createServer(); -var io = require('socket.io')(server); -var serverChatDic = new Map(); // 服务端 -var clientChatDic = new Map(); // 客户端 -io.on('connection', function(socket) { - // 服务端上线 - socket.on('SERVER_ON', function(data) { - let serverChatEn = data.serverChatEn; - console.log(`有新的服务端socket连接了,服务端Id:${serverChatEn.serverChatId}`); - serverChatDic.set(serverChatEn.serverChatId, { - serverChatEn: serverChatEn, - socket: socket - }); - }); - - // 服务端下线 - socket.on('SERVER_OFF', function(data) { - let serverChatEn = data.serverChatEn; - serverChatDic.delete(serverChatEn.serverChatId); - }); - - // 服务端发送了信息 - socket.on('SERVER_SEND_MSG', function(data) { - if (clientChatDic.has(data.clientChatId)) { - clientChatDic.get(data.clientChatId).socket.emit('SERVER_SEND_MSG', { msg: data.msg }); - } - }); - - // 客户端事件;'CLIENT_ON'(上线), 'CLIENT_OFF'(离线), 'CLIENT_SEND_MSG'(发送消息) - ['CLIENT_ON', 'CLIENT_OFF', 'CLIENT_SEND_MSG'].forEach((eventName) => { - socket.on(eventName, (data) => { - let clientChatEn = data.clientChatEn; - let serverChatId = data.serverChatId; - // 1.通知服务端 - if (serverChatDic.has(serverChatId)) { - serverChatDic.get(serverChatId).socket.emit(eventName, { - clientChatEn: clientChatEn, - msg: data.msg - }); - } else { - socket.emit('SERVER_SEND_MSG', { - msg: { - content: '未找到客服' - } - }); - } - - // 2.对不同的事件特殊处理 - if (eventName === 'CLIENT_ON') { - // 1)'CLIENT_ON',通知客户端正确连接 - console.log(`有新的客户端socket连接了,客户端Id:${clientChatEn.clientChatId}`); - clientChatDic.set(clientChatEn.clientChatId, { - clientChatEn: clientChatEn, - socket: socket - }); - serverChatDic.has(serverChatId) && - socket.emit('SERVER_CONNECTED', { - serverChatEn: serverChatDic.get(serverChatId).serverChatEn - }); - } else if (eventName === 'CLIENT_OFF') { - // 2)'CLIENT_OFF',删除连接 - clientChatDic.delete(clientChatEn.clientChatId); - } - }); - }); -}); -server.listen(3001); diff --git a/WechatBot/chatflow/src/plugins/vue-im/build/webpack.prod.conf.js b/WechatBot/chatflow/src/plugins/vue-im/build/webpack.prod.conf.js deleted file mode 100755 index d9f99f65a..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/build/webpack.prod.conf.js +++ /dev/null @@ -1,145 +0,0 @@ -'use strict' -const path = require('path') -const utils = require('./utils') -const webpack = require('webpack') -const config = require('../config') -const merge = require('webpack-merge') -const baseWebpackConfig = require('./webpack.base.conf') -const CopyWebpackPlugin = require('copy-webpack-plugin') -const HtmlWebpackPlugin = require('html-webpack-plugin') -const ExtractTextPlugin = require('extract-text-webpack-plugin') -const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin') -const UglifyJsPlugin = require('uglifyjs-webpack-plugin') - -const env = require('../config/prod.env') - -const webpackConfig = merge(baseWebpackConfig, { - module: { - rules: utils.styleLoaders({ - sourceMap: config.build.productionSourceMap, - extract: true, - usePostCSS: true - }) - }, - devtool: config.build.productionSourceMap ? config.build.devtool : false, - output: { - path: config.build.assetsRoot, - filename: utils.assetsPath('js/[name].[chunkhash].js'), - chunkFilename: utils.assetsPath('js/[id].[chunkhash].js') - }, - plugins: [ - // http://vuejs.github.io/vue-loader/en/workflow/production.html - new webpack.DefinePlugin({ - 'process.env': env - }), - new UglifyJsPlugin({ - uglifyOptions: { - compress: { - warnings: false - } - }, - sourceMap: config.build.productionSourceMap, - parallel: true - }), - // extract css into its own file - new ExtractTextPlugin({ - filename: utils.assetsPath('css/[name].[contenthash].css'), - // Setting the following option to `false` will not extract CSS from codesplit chunks. - // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack. - // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`, - // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110 - allChunks: true, - }), - // Compress extracted CSS. We are using this plugin so that possible - // duplicated CSS from different components can be deduped. - new OptimizeCSSPlugin({ - cssProcessorOptions: config.build.productionSourceMap - ? { safe: true, map: { inline: false } } - : { safe: true } - }), - // generate dist index.html with correct asset hash for caching. - // you can customize output by editing /index.html - // see https://github.com/ampedandwired/html-webpack-plugin - new HtmlWebpackPlugin({ - filename: config.build.index, - template: 'index.html', - inject: true, - minify: { - removeComments: true, - collapseWhitespace: true, - removeAttributeQuotes: true - // more options: - // https://github.com/kangax/html-minifier#options-quick-reference - }, - // necessary to consistently work with multiple chunks via CommonsChunkPlugin - chunksSortMode: 'dependency' - }), - // keep module.id stable when vendor modules does not change - new webpack.HashedModuleIdsPlugin(), - // enable scope hoisting - new webpack.optimize.ModuleConcatenationPlugin(), - // split vendor js into its own file - new webpack.optimize.CommonsChunkPlugin({ - name: 'vendor', - minChunks (module) { - // any required modules inside node_modules are extracted to vendor - return ( - module.resource && - /\.js$/.test(module.resource) && - module.resource.indexOf( - path.join(__dirname, '../node_modules') - ) === 0 - ) - } - }), - // extract webpack runtime and module manifest to its own file in order to - // prevent vendor hash from being updated whenever app bundle is updated - new webpack.optimize.CommonsChunkPlugin({ - name: 'manifest', - minChunks: Infinity - }), - // This instance extracts shared chunks from code splitted chunks and bundles them - // in a separate chunk, similar to the vendor chunk - // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk - new webpack.optimize.CommonsChunkPlugin({ - name: 'app', - async: 'vendor-async', - children: true, - minChunks: 3 - }), - - // copy custom static assets - new CopyWebpackPlugin([ - { - from: path.resolve(__dirname, '../static'), - to: config.build.assetsSubDirectory, - ignore: ['.*'] - } - ]) - ] -}) - -if (config.build.productionGzip) { - const CompressionWebpackPlugin = require('compression-webpack-plugin') - - webpackConfig.plugins.push( - new CompressionWebpackPlugin({ - asset: '[path].gz[query]', - algorithm: 'gzip', - test: new RegExp( - '\\.(' + - config.build.productionGzipExtensions.join('|') + - ')$' - ), - threshold: 10240, - minRatio: 0.8 - }) - ) -} - -if (config.build.bundleAnalyzerReport) { - const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin - webpackConfig.plugins.push(new BundleAnalyzerPlugin()) -} - -module.exports = webpackConfig diff --git a/WechatBot/chatflow/src/plugins/vue-im/config/dev.env.js b/WechatBot/chatflow/src/plugins/vue-im/config/dev.env.js deleted file mode 100755 index 1e22973ae..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/config/dev.env.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' -const merge = require('webpack-merge') -const prodEnv = require('./prod.env') - -module.exports = merge(prodEnv, { - NODE_ENV: '"development"' -}) diff --git a/WechatBot/chatflow/src/plugins/vue-im/config/index.js b/WechatBot/chatflow/src/plugins/vue-im/config/index.js deleted file mode 100755 index 646290728..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/config/index.js +++ /dev/null @@ -1,76 +0,0 @@ -'use strict' -// Template version: 1.3.1 -// see http://vuejs-templates.github.io/webpack for documentation. - -const path = require('path') - -module.exports = { - dev: { - - // Paths - assetsSubDirectory: 'static', - assetsPublicPath: '/', - proxyTable: {}, - - // Various Dev Server settings - host: '', // can be overwritten by process.env.HOST - port: 8080, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined - autoOpenBrowser: false, - errorOverlay: true, - notifyOnErrors: true, - poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- - - // Use Eslint Loader? - // If true, your code will be linted during bundling and - // linting errors and warnings will be shown in the console. - useEslint: false, - // If true, eslint errors and warnings will also be shown in the error overlay - // in the browser. - showEslintErrorsInOverlay: false, - - /** - * Source Maps - */ - - // https://webpack.js.org/configuration/devtool/#development - devtool: 'cheap-module-eval-source-map', - - // If you have problems debugging vue-files in devtools, - // set this to false - it *may* help - // https://vue-loader.vuejs.org/en/options.html#cachebusting - cacheBusting: true, - - cssSourceMap: true - }, - - build: { - // Template for index.html - index: path.resolve(__dirname, '../dist/index.html'), - - // Paths - assetsRoot: path.resolve(__dirname, '../dist'), - assetsSubDirectory: 'static', - assetsPublicPath: '/', - - /** - * Source Maps - */ - - productionSourceMap: true, - // https://webpack.js.org/configuration/devtool/#production - devtool: '#source-map', - - // Gzip off by default as many popular static hosts such as - // Surge or Netlify already gzip all static assets for you. - // Before setting to `true`, make sure to: - // npm install --save-dev compression-webpack-plugin - productionGzip: false, - productionGzipExtensions: ['js', 'css'], - - // Run the build command with an extra argument to - // View the bundle analyzer report after build finishes: - // `npm run build --report` - // Set to `true` or `false` to always turn it on or off - bundleAnalyzerReport: process.env.npm_config_report - } -} diff --git a/WechatBot/chatflow/src/plugins/vue-im/config/prod.env.js b/WechatBot/chatflow/src/plugins/vue-im/config/prod.env.js deleted file mode 100755 index a6f997616..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/config/prod.env.js +++ /dev/null @@ -1,4 +0,0 @@ -'use strict' -module.exports = { - NODE_ENV: '"production"' -} diff --git a/WechatBot/chatflow/src/plugins/vue-im/config/test.env.js b/WechatBot/chatflow/src/plugins/vue-im/config/test.env.js deleted file mode 100755 index c2824a307..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/config/test.env.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict' -const merge = require('webpack-merge') -const devEnv = require('./dev.env') - -module.exports = merge(devEnv, { - NODE_ENV: '"testing"' -}) diff --git a/WechatBot/chatflow/src/plugins/vue-im/index.html b/WechatBot/chatflow/src/plugins/vue-im/index.html deleted file mode 100644 index 3513d4279..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/index.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - wechat客服系统 - - - -
- - - diff --git a/WechatBot/chatflow/src/plugins/vue-im/package.json b/WechatBot/chatflow/src/plugins/vue-im/package.json deleted file mode 100644 index 5fc520cec..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/package.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "name": "简单客服系统", - "version": "1.0.0", - "description": "A Vue.js project", - "author": "polk6", - "private": true, - "scripts": { - "dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js", - "start": "npm run dev", - "build": "node build/build.js" - }, - "dependencies": { - "karma-chai": "^0.1.0", - "net": "^1.0.2", - "vue": "^2.5.2", - "vue-router": "^3.0.1" - }, - "devDependencies": { - "autoprefixer": "^7.2.6", - "axios": "^0.18.1", - "babel-core": "^6.22.1", - "babel-helper-vue-jsx-merge-props": "^2.0.3", - "babel-loader": "^7.1.4", - "babel-plugin-syntax-jsx": "^6.18.0", - "babel-plugin-transform-runtime": "^6.22.0", - "babel-plugin-transform-vue-jsx": "^3.7.0", - "babel-polyfill": "^6.26.0", - "babel-preset-env": "^1.3.2", - "babel-preset-stage-2": "^6.22.0", - "chalk": "^2.3.2", - "copy-webpack-plugin": "^4.5.0", - "css-loader": "^0.28.10", - "element-ui": "^2.2.1", - "express": "^4.16.2", - "express-fileupload": "^1.1.9", - "extract-text-webpack-plugin": "^3.0.0", - "file-loader": "^1.1.11", - "font-awesome": "^4.7.0", - "friendly-errors-webpack-plugin": "^1.6.1", - "html-webpack-plugin": "^2.30.1", - "less": "^2.7.3", - "less-loader": "^4.0.6", - "node-notifier": ">=8.0.1", - "optimize-css-assets-webpack-plugin": "^3.2.0", - "ora": "^1.2.0", - "portfinder": "^1.0.13", - "postcss-import": "^11.1.0", - "postcss-loader": "^2.1.1", - "postcss-url": "^7.3.1", - "rimraf": "^2.6.0", - "semver": "^5.3.0", - "shelljs": ">=0.8.5", - "socket.io": "^2.1.0", - "socket.io-client": "^2.4.0", - "uglifyjs-webpack-plugin": "^1.2.2", - "url-loader": "^0.5.8", - "vue-loader": "^13.3.0", - "vue-style-loader": "^3.0.1", - "vue-template-compiler": "^2.5.2", - "vuex": "^3.0.1", - "webpack": "^3.11.0", - "webpack-bundle-analyzer": "^3.3.2", - "webpack-dev-server": "^2.11.2", - "webpack-merge": "^4.1.2" - }, - "engines": { - "node": ">= 6.0.0", - "npm": ">= 3.0.0" - }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not ie <= 8" - ] -} diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/App.vue b/WechatBot/chatflow/src/plugins/vue-im/src/App.vue deleted file mode 100644 index 3202dd369..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/App.vue +++ /dev/null @@ -1,22 +0,0 @@ - - - - - diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/assets/qqEmoji.png b/WechatBot/chatflow/src/plugins/vue-im/src/assets/qqEmoji.png deleted file mode 100644 index 0f15d17d2..000000000 Binary files a/WechatBot/chatflow/src/plugins/vue-im/src/assets/qqEmoji.png and /dev/null differ diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/common/ak.js b/WechatBot/chatflow/src/plugins/vue-im/src/common/ak.js deleted file mode 100755 index e1891b901..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/common/ak.js +++ /dev/null @@ -1,795 +0,0 @@ -/** - * 工具模块,不依赖第三方代码 - */ -var ak = ak || {}; - -ak.Base_URL = location.host; - -/** - * 工具模块,不依赖第三方代码 - * 包含:类型判断 - */ -ak.Utils = { - /** - * 是否为JSON字符串 - * @param {String} - * @return {Boolean} - */ - - isJSON(str) { - if (typeof str == 'string') { - try { - var obj = JSON.parse(str); - if (str.indexOf('{') > -1) { - return true; - } else { - return false; - } - } catch (e) { - return false; - } - } - return false; - }, - /** - * 去除字符串首尾两端空格 - * @param {String} str - * @return {String} - */ - trim(str) { - if (str) { - return str.replace(/(^\s*)|(\s*$)/g, ''); - } else { - return ''; - } - }, - /** - * 脱敏 - * @param {String} value 脱敏的对象 - * @return {String} - */ - desensitization: function(value) { - if (value) { - var valueNew = ''; - const length = value.length; - valueNew = value - .split('') - .map((number, index) => { - // 脱敏:从倒数第五位开始向前四位脱敏 - const indexMin = length - 8; - const indexMax = length - 5; - - if (index >= indexMin && index <= indexMax) { - return '*'; - } else { - return number; - } - }) - .join(''); - return valueNew; - } else { - return ''; - } - }, - - /** - * 判断是否Array对象 - * @param {Object} value 判断的对象 - * @return {Boolean} - */ - isArray: function(value) { - return toString.call(value) === '[object Array]'; - }, - - /** - * 判断是否日期对象 - * @param {Object} value 判断的对象 - * @return {Boolean} - */ - isDate: function(value) { - return toString.call(value) === '[object Date]'; - }, - - /** - * 判断是否Object对象 - * @param {Object} value 判断的对象 - * @return {Boolean} - */ - isObject: function(value) { - return toString.call(value) === '[object Object]'; - }, - - /** - * 判断是否为空 - * @param {Object} value 判断的对象 - * @return {Boolean} - */ - isEmpty: function(value) { - return value === null || value === undefined || value === '' || (this.isArray(value) && value.length === 0); - }, - - /** - * 判断是否移动电话 - * @param {Number} value 判断的值 - * @return {Boolean} - */ - isMobilePhone: function(value) { - value = Number.parseInt(value); - // 1)是否非数字 - if (Number.isNaN(value)) { - return false; - } - - // 2)时候移动电话 - return /^1[3|4|5|7|8|9|6][0-9]\d{4,8}$/.test(value); - }, - - /** - * 判断是否为邮箱 - * @param {String} value 判断的值 - * @return {Boolean} - */ - isEmail: function(value) { - return /^[a-zA-Z\-_0-9]+@[a-zA-Z0-9]+(\.[a-zA-Z0-9]+)+$/.test(value); - }, - - /** - * 转换服务器请求的对象为Js的对象:包含首字母转换为小写;属性格式转换为Js支持的格式 - * @param {Object} en 服务器的获取的数据对象 - */ - transWebServerObj: function(en) { - if (toString.call(en) == '[object Array]') { - for (var i = 0, len = en.length; i < len; i++) { - ak.Utils.transWebServerObj(en[i]); - } - } else { - for (propertyName in en) { - /* - // 1.创建一个小写的首字母属性并赋值:ABC => aBC - var newPropertyName = propertyName.charAt(0).toLowerCase() + propertyName.substr(1); - en[newPropertyName] = en[propertyName]; - */ - var tmpName = propertyName; - // 2.判断此属性是否为数组,若是就执行递归 - if (toString.call(en[tmpName]) == '[object Array]') { - for (var i = 0, len = en[tmpName].length; i < len; i++) { - ak.Utils.transWebServerObj(en[tmpName][i]); // 数组里的每个对象再依次进行转换 - } - } else if (toString.call(en[tmpName]) == '[object Object]') { - ak.Utils.transWebServerObj(en[tmpName]); // 若属性的值是一个对象,也要进行转换 - } else { - // 3.若不是其他类型,把此属性的值转换为Js的数据格式 - // 3.1)日期格式:后台为2015-12-08T09:23:23.917 => 2015-12-08 09:23:23 - if (new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/).test(en[propertyName])) { - // en[propertyName] = new RegExp(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/).exec(en[propertyName])[0].replace('T', ' '); - - // 若为0001年,表示时间为空,就返回''空字符串 - if (en[propertyName].indexOf('0001') >= 0) { - en[propertyName] = ''; - } - } else if (toString.call(en[propertyName]) == '[object Number]' && new RegExp(/\d+[.]\d{3}/).test(en[propertyName])) { - // 3.2)溢出的float格式:1.33333 = > 1.33 - en[propertyName] = en[propertyName].toFixed(2); - } else if (en[propertyName] == null) { - // 3.3)null值返回空 - en[propertyName] = ''; - } else if ( - ['imgPath', 'loopImgPath', 'clubIcon', 'headImgPath'].indexOf(propertyName) >= 0 && - en[propertyName] && - en[propertyName].length > 0 - ) { - en[propertyName] = ak.Base_URL + en[propertyName].replace('..', ''); - } - } - } - } - return en; - }, - - /** - *设置SessionStorage的值 - * @param key:要存的键 - * @param value :要存的值 - */ - setSessionStorage: function(key, value) { - if (this.isObject(value) || this.isArray(value)) { - value = this.toJsonStr(value); - } - sessionStorage[key] = value; - }, - - /** - *获取SessionStorage的值 - * @param key:存的键 - */ - getSessionStorage: function(key) { - var rs = sessionStorage[key]; - try { - if (rs != undefined) { - var obj = this.toJson(rs); - rs = obj; - } - } catch (error) {} - return rs; - }, - - /** - * 清除SessionStorage的值 - * @param key:存的键 - */ - removeSessionStorage: function(key) { - return sessionStorage.removeItem(key); - }, - - /** - *设置LocalStorage的值 - * @param key:要存的键 - * @param value :要存的值 - */ - setLocalStorage: function(key, value) { - if (this.isObject(value) || this.isArray(value)) { - value = this.toJsonStr(value); - } - localStorage[key] = value; - }, - - /** - *获取LocalStorage的值 - * @param key:存的键 - */ - getLocalStorage: function(key) { - var rs = localStorage[key]; - try { - if (rs != undefined) { - var obj = this.toJson(rs); - rs = obj; - } - } catch (error) {} - return rs; - }, - - /** - * 对传入的时间值进行格式化。后台传入前台的时间有两种个是:Sql时间和.Net时间 - * @param {String|Date} sValue 传入的时间字符串 - * @param {dateFormat | bool} dateFormat 日期格式,日期格式:eg:'Y-m-d H:i:s' - * @return {String} 2014-03-01 这种格式 - * @example - * 1) Sql时间格式:2015-02-24T00:00:00 - * 2) .Net时间格式:/Date(1410744626000)/ - */ - getDateTimeStr: function(sValue, dateFormat) { - if (dateFormat == undefined) { - dateFormat = 'Y-m-d'; // 默认显示年月日 - } - - var dt; - // 1.先解析传入的时间对象, - if (sValue) { - if (toString.call(sValue) !== '[object Date]') { - // 不为Date格式,就转换为DateTime类型 - sValue = sValue + ''; - if (sValue.indexOf('T') > 0) { - // 1)格式:2015-02-24T00:00:00 - var timestr = sValue.replace('T', ' ').replace(/-/g, '/'); //=> 2015/02/24 00:00:00 - dt = new Date(timestr); - } else if (sValue.indexOf('Date') >= 0) { - // 2).Net格式:/Date(1410744626000)/ - //Convert date type that .NET can bind to DateTime - //var date = new Date(parseInt(sValue.substr(6))); - var timestr = sValue.toString().replace(/\/Date\((\d+)\)\//gi, '$1'); // - dt = new Date(Math.abs(timestr)); - } else { - dt = new Date(sValue); - } - } else { - dt = sValue; - } - } - - // 2.转换 - // 1)转换成对象 'Y-m-d H:i:s' - var obj = {}; //返回的对象,包含了 year(年)、month(月)、day(日) - obj.Y = dt.getFullYear(); //年 - obj.m = dt.getMonth() + 1; //月 - obj.d = dt.getDate(); //日期 - obj.H = dt.getHours(); - obj.i = dt.getMinutes(); - obj.s = dt.getSeconds(); - //2.2单位的月、日都转换成双位 - if (obj.m < 10) { - obj.m = '0' + obj.m; - } - if (obj.d < 10) { - obj.d = '0' + obj.d; - } - if (obj.H < 10) { - obj.H = '0' + obj.H; - } - if (obj.i < 10) { - obj.i = '0' + obj.i; - } - if (obj.s < 10) { - obj.s = '0' + obj.s; - } - // 3.解析 - var rs = dateFormat - .replace('Y', obj.Y) - .replace('m', obj.m) - .replace('d', obj.d) - .replace('H', obj.H) - .replace('i', obj.i) - .replace('s', obj.s); - - return rs; - }, - - /** - * 把总秒数转换为时分秒 - */ - getSFM: function(seconds, dateFormat) { - if (dateFormat == undefined) { - dateFormat = 'H:i:s'; // 默认格式 - } - var obj = {}; - obj.H = Number.parseInt(seconds / 3600); - obj.i = Number.parseInt((seconds - obj.H * 3600) / 60); - obj.s = Number.parseInt(seconds - obj.H * 3600 - obj.i * 60); - if (obj.H < 10) { - obj.H = '0' + obj.H; - } - if (obj.i < 10) { - obj.i = '0' + obj.i; - } - if (obj.s < 10) { - obj.s = '0' + obj.s; - } - - // 3.解析 - var rs = dateFormat - .replace('H', obj.H) - .replace('i', obj.i) - .replace('s', obj.s); - return rs; - }, - - /** - * 是否同一天 - */ - isSomeDay: function(dt1, dt2) { - if (dt1.getFullYear() == dt2.getFullYear() && dt1.getMonth() == dt2.getMonth() && dt1.getDate() == dt2.getDate()) { - return true; - } - return false; - }, - - /** - * 对象转换为json字符串 - * @param {jsonObj} jsonObj Json对象 - * @return {jsonStr} Json字符串 - */ - toJsonStr: function(jsonObj) { - return JSON.stringify(jsonObj); - }, - - /** - * 讲json字符串转换为json对象 - * @param {String} jsonStr Json对象字符串 - * @return {jsonObj} Json对象 - */ - toJson: function(jsonStr) { - return JSON.parse(jsonStr); - }, - - /** - * @private - */ - getCookieVal: function(offset) { - var endstr = document.cookie.indexOf(';', offset); - if (endstr == -1) { - endstr = document.cookie.length; - } - return unescape(document.cookie.substring(offset, endstr)); - }, - - /** - * 获取指定key的cookie - * @param {String} key cookie的key - */ - getCookie: function(key) { - var arg = key + '=', - alen = arg.length, - clen = document.cookie.length, - i = 0, - j = 0; - - while (i < clen) { - j = i + alen; - if (document.cookie.substring(i, j) == arg) { - return this.getCookieVal(j); - } - i = document.cookie.indexOf(' ', i) + 1; - if (i === 0) { - break; - } - } - return null; - }, - - /** - * 设置cookie - * @param {String} key cookie的key - * @param {String} value cookie的value - */ - setCookie: function(key, value) { - var argv = arguments, - argc = arguments.length, - expires = argc > 2 ? argv[2] : null, - path = argc > 3 ? argv[3] : '/', - domain = argc > 4 ? argv[4] : null, - secure = argc > 5 ? argv[5] : false; - - document.cookie = - key + - '=' + - escape(value) + - (expires === null ? '' : '; expires=' + expires.toGMTString()) + - (path === null ? '' : '; path=' + path) + - (domain === null ? '' : '; domain=' + domain) + - (secure === true ? '; secure' : ''); - }, - - /** - * 是否含有特殊字符 - * @param {String} value 传入的值 - * @return {Boolean} true 含有特殊符号;false 不含有特殊符号 - */ - isHaveSpecialChar: function(value) { - var oldLength = value.length; - var newLength = value.replace(/[`~!@#$%^&*_+=\\{}:"<>?\[\];',.\/~!@#¥%……&*——+『』:“”《》?【】;‘’,。? \[\]()()]/g, '').length; - if (newLength < oldLength) { - return true; - } - return false; - }, - - /** - * 合并数组内成员的某个对象 - * @param {Array} arr 需要合并的数组 - * @param {String} fieldName 数组成员内的指定字段 - * @param {String} split 分隔符,默认为',' - * @example - * var arr = [{name:'tom',age:13},{name:'jack',age:13}] => (arr, 'name') => tom,jack - */ - joinArray: function(arr, fieldName, split) { - split = split == undefined ? ',' : split; - var rs = arr - .map((item) => { - return item[fieldName]; - }) - .join(split); - return rs; - } -}; - -/** - * http交互模块 - * 包含:ajax - */ -ak.Http = { - /** - * 将`name` - `value`对转换为支持嵌套结构的对象数组 - * - * var objects = toQueryObjects('hobbies', ['reading', 'cooking', 'swimming']); - * - * // objects then equals: - * [ - * { name: 'hobbies', value: 'reading' }, - * { name: 'hobbies', value: 'cooking' }, - * { name: 'hobbies', value: 'swimming' }, - * ]; - * - * var objects = toQueryObjects('dateOfBirth', { - * day: 3, - * month: 8, - * year: 1987, - * extra: { - * hour: 4 - * minute: 30 - * } - * }, true); // Recursive - * - * // objects then equals: - * [ - * { name: 'dateOfBirth[day]', value: 3 }, - * { name: 'dateOfBirth[month]', value: 8 }, - * { name: 'dateOfBirth[year]', value: 1987 }, - * { name: 'dateOfBirth[extra][hour]', value: 4 }, - * { name: 'dateOfBirth[extra][minute]', value: 30 }, - * ]; - * - * @param {String} name - * @param {object | Array} value - * @param {boolean} [recursive=false] 是否递归 - * @return {array} - */ - toQueryObjects: function(name, value, recursive) { - var objects = [], - i, - ln; - - if (ak.Utils.isArray(value)) { - for (i = 0, ln = value.length; i < ln; i++) { - if (recursive) { - objects = objects.concat(toQueryObjects(name + '[' + i + ']', value[i], true)); - } else { - objects.push({ - name: name, - value: value[i] - }); - } - } - } else if (ak.Utils.isObject(value)) { - for (i in value) { - if (value.hasOwnProperty(i)) { - if (recursive) { - objects = objects.concat(toQueryObjects(name + '[' + i + ']', value[i], true)); - } else { - objects.push({ - name: name, - value: value[i] - }); - } - } - } - } else { - objects.push({ - name: name, - value: value - }); - } - - return objects; - }, - - /** - * 把对象转换为查询字符串 - * e.g.: - * toQueryString({foo: 1, bar: 2}); // returns "foo=1&bar=2" - * toQueryString({foo: null, bar: 2}); // returns "foo=&bar=2" - * toQueryString({date: new Date(2011, 0, 1)}); // returns "date=%222011-01-01T00%3A00%3A00%22" - * @param {Object} object 需要转换的对象 - * @param {Boolean} [recursive=false] 是否递归 - * @return {String} queryString - */ - toQueryString: function(object, recursive) { - var paramObjects = [], - params = [], - i, - j, - ln, - paramObject, - value; - - for (i in object) { - if (object.hasOwnProperty(i)) { - paramObjects = paramObjects.concat(this.toQueryObjects(i, object[i], recursive)); - } - } - - for (j = 0, ln = paramObjects.length; j < ln; j++) { - paramObject = paramObjects[j]; - value = paramObject.value; - - if (ak.Utils.isEmpty(value)) { - value = ''; - } else if (ak.Utils.isDate(value)) { - value = - value.getFullYear() + - '-' + - Ext.String.leftPad(value.getMonth() + 1, 2, '0') + - '-' + - Ext.String.leftPad(value.getDate(), 2, '0') + - 'T' + - Ext.String.leftPad(value.getHours(), 2, '0') + - ':' + - Ext.String.leftPad(value.getMinutes(), 2, '0') + - ':' + - Ext.String.leftPad(value.getSeconds(), 2, '0'); - } - - params.push(encodeURIComponent(paramObject.name) + '=' + encodeURIComponent(String(value))); - } - - return params.join('&'); - }, - - /** - * 以get方式请求获取JSON数据 - * @param {Object} opts 配置项,可包含以下成员: - * @param {String} opts.url 请求地址 - * @param {Object} opts.params 附加的请求参数 - * @param {Boolean} opts.isHideLoading 是否关闭'载入中'提示框,默认false - * @param {String} opts.loadingTitle '载入中'提示框title,e.g. 提交中、上传中 - * @param {Function} opts.successCallback 成功接收内容时的回调函数 - * @param {Function} opts.failCallback 失败的回调函数 - */ - get: function(opts) { - if (!opts.isHideLoading) { - ak.Msg.showLoading(opts.loadingTitle); - } - if (opts.url.substr(0, 1) == '/') { - opts.url = opts.url.substr(1); - } - opts.url = ak.Base_URL + opts.url; - if (opts.params) { - opts.url = opts.url + '?' + this.toQueryString(opts.params); - } - // Jquery、Zepto - $.getJSON( - opts.url, - function(res, status, xhr) { - ak.Msg.hideLoading(); - if (res.resultCode == '0') { - if (opts.successCallback) { - opts.successCallback(res); - } - } else { - ak.Msg.toast(res.resultText, 'error'); - if (opts.failCallback) { - opts.failCallback(res); - } - } - }, - 'json' - ); - }, - - /** - * 以get方式请求获取JSON数据 - * @param {Object} opts 配置项,可包含以下成员: - * @param {String} opts.url 请求地址 - * @param {Object} opts.params 附加的请求参数 - * @param {Boolean} opts.ignoreFail 忽略错误,默认false,不管返回的结果如何,都执行 successCallback - * @param {Boolean} opts.ignoreEmptyParam 忽略空值,默认true - * @param {Boolean} opts.isHideLoading 是否关闭'载入中'提示框,默认false - * @param {String} opts.loadingTitle '载入中'提示框title,e.g. 提交中、上传中 - * @param {Function} opts.successCallback 成功接收内容时的回调函数 - * @param {Function} opts.failCallback 失败的回调函数 - */ - post: function(opts) { - opts.ignoreFail = opts.ignoreFail == undefined ? false : opts.ignoreFail; - opts.ignoreEmptyParam = opts.ignoreEmptyParam == undefined ? true : opts.ignoreEmptyParam; - if (!opts.isHideLoading) { - ak.Msg.showLoading(opts.loadingTitle); - } - if (opts.url.substr(0, 1) == '/') { - opts.url = opts.url.substr(1); - } - opts.url = ak.Base_URL + opts.url; // test - - // 去除params的空值 - if (opts.ignoreEmptyParam) { - for (var key in opts.params) { - if (opts.params[key] == undefined || opts.params[key] == '') { - delete opts.params[key]; - } - } - } - // Jquery、Zepto - $.post( - opts.url, - opts.params, - function(res, status, xhr) { - ak.Msg.hideLoading(); - if (res.resultCode == '0' || opts.ignoreFail) { - if (opts.successCallback) { - opts.successCallback(res); - } - } else { - ak.Msg.toast(res.resultText, 'error'); - if (opts.failCallback) { - opts.failCallback(res); - } - } - }, - 'json' - ); - }, - - /** - * 上传文件 - * @param {Object} opts 配置项,可包含以下成员: - * @param {Object} opts.params 上传的参数 - * @param {Object} opts.fileParams 上传文件参数 - * @param {String} opts.url 请求地址 - * @param {Function} opts.successCallback 成功接收内容时的回调函数 - * @param {Function} opts.failCallback 失败的回调函数 - */ - uploadFile: function(opts) { - // 1.解析url - if (opts.url.substr(0, 1) == '/') { - opts.url = opts.url.substr(1); - } - opts.url = ak.Base_URL + opts.url; - if (opts.params) { - opts.url = opts.url + '?' + this.toQueryString(opts.params); - } - - // 2.文件参数 - var formData = new FormData(); - for (var key in opts.fileParams) { - formData.append(key, opts.fileParams[key]); - } - - // 3.发起ajax - $.ajax({ - url: opts.url, - type: 'POST', - cache: false, - data: formData, - processData: false, - contentType: false, - dataType: 'json' - }) - .done(function(res) { - if (res.resultCode != '0') { - ak.Msg.toast(res.resultText, 'error'); - } - if (opts.successCallback) { - opts.successCallback(res); - } - }) - .fail(function(res) { - if (opts.failCallback) { - opts.failCallback(res); - } - }); - } -}; - -/** - * 消息模块 - * 包含:确认框、信息提示框 - */ -ak.Msg = { - /** - * 提示框 - * msg {string} :信息内容 - */ - alert: function(msg) {}, - - /** - * 确认框 - * msg {string} :信息内容 - * callback {function} :点击'确定'时的回调函数。 - */ - confirm: function(msg, callback) { - - }, - - /** - * 显示正在加载 - * @param {String} title 显示的title - */ - showLoading: function(title) { - - }, - - /** - * 关闭正在加载 - */ - hideLoading: function() {}, - - /** - * 自动消失的提示框 - * @param {String} msg 信息内容 - */ - toast: function(msg) {} -}; - -/** - * 业务相关逻辑 - */ -ak.BLL = {}; - -export default ak; \ No newline at end of file diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/common/css/base.less b/WechatBot/chatflow/src/plugins/vue-im/src/common/css/base.less deleted file mode 100644 index aec41d693..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/common/css/base.less +++ /dev/null @@ -1,129 +0,0 @@ -// 公共类 -#common-wrapper { - .hide { - display: none !important; - } - .show { - display: initial !important; - } - .float-left { - float: left; - } - .float-right { - float: right; - } - .text-right { - text-align: right; - } - .text-center { - text-align: center; - } - .text-left { - text-align: left; - } - .red { - color: red; - } - ::-webkit-scrollbar { - width: 10px; - background: transparent; - } - ::-webkit-scrollbar-track-piece { - background: none; - } - ::-webkit-scrollbar-thumb { - height: 50px; - border: 2px solid rgba(0, 0, 0, 0); - border-radius: 12px; - background-clip: padding-box; - background-color: #ccd4d4; - box-shadow: inset -1px -1px 0px #ccd4d4, inset 1px 1px 0px #ccd4d4; - } - .position-h-mid { - position: absolute; - left: 50%; - transform: translate(-50%, 0); - } - .position-v-mid { - position: absolute; - top: 50%; - transform: translate(0, -50%); - } - .position-h-v-mid { - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - } -} - -// elemUI相关 -#common-wrapper { - .el-button--text { - margin: 0px; - padding: 0px; - color: #00a8d7; - } - .el-button--primary { - background-color: #00a8d7; - border-color: #00a8d7; - &.is-disabled { - color: #ffffff; - cursor: not-allowed; - background-image: none; - background-color: #b8e9f8; - border-color: #b8e9f8; - } - } - .el-textarea__inner { - resize: none; - } - .el-select, - .el-slider__runway { - z-index: 0; - } - .el-input__inner { - &:hover { - border-color: #00a8d7; - } - } - .el-select { - .el-tag--primary { - background-color: #f4f4f4; - border-color: #dfe4e6; - color: #6e6e6e; - } - &:hover { - .el-input__inner { - border-color: #00a8d7; - } - } - } - .el-dropdown { - .el-icon-caret-bottom { - font-size: 12px; - margin-left: 16px; - } - } - .el-tag { - background-color: #f4f4f4; - color: #454545; - border-color: #e6e6e6; - padding: 0px 10px; - } - .el-pager { - li.active { - border-color: #00a8d7; - background-color: #00a8d7; - } - } - .el-dialog__wrapper { - .el-dialog__body { - padding: 0px; - } - } -} - -body { - font-family: 'Microsoft YaHei', 'CaviarDreams Bold', Helvetica, Arial, sans-serif, 'STHeiti'; -} diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/common/http.js b/WechatBot/chatflow/src/plugins/vue-im/src/common/http.js deleted file mode 100755 index de93a35de..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/common/http.js +++ /dev/null @@ -1,92 +0,0 @@ -import Vue from 'vue'; -import axios from 'axios'; - -var axiosInstance = axios.create({ - baseURL: location.origin.replace(/:\d+/, ':3000'), - timeout: 1000 * 5 -}); - -axiosInstance.interceptors.request.use( - function(config) { - // Do something before request is sent - return config; - }, - function(error) { - // Do something with request error - return Promise.reject(error); - } -); - -/** - * http请求响应处理函数 - */ -var httpResponseHandle = function() { - var self = this; - if (self.res.code == '0') { - self.successCallback && self.successCallback(self.res.data); - } else { - self.failCallback && self.failCallback(self.res.data); - } -}; - -var http = { - /** - * 以get方式请求获取JSON数据 - * @param {Object} opts 配置项,可包含以下成员: - * @param {String} opts.url 请求地址 - * @param {Object} opts.params 附加的请求参数 - * @param {Function} opts.successCallback 成功接收内容时的回调函数 - */ - get: function(opts) { - if (opts.params) { - opts.url = opts.url + '?' + this.toQueryString(opts.params); - } - axiosInstance - .get(opts.url, { params: opts.params }) - .then(function(res) { - opts.res = res.data; - httpResponseHandle.call(opts); - }) - .catch(function(err) {}); - }, - - /** - * 以get方式请求获取JSON数据 - * @param {Object} opts 配置项,可包含以下成员: - * @param {String} opts.url 请求地址 - * @param {Object} opts.params 附加的请求参数 - * @param {Function} opts.successCallback 成功接收内容时的回调函数 - */ - post: function(opts) { - axiosInstance - .post(opts.url, opts.params) - .then(function(res) { - opts.res = res.data; - httpResponseHandle.call(opts); - }) - .catch(function(err) {}); - }, - - /** - * 上传文件 - * @param {Object} opts 配置项,可包含以下成员: - * @param {String} opts.url 请求地址 - * @param {Object} opts.params 上传的参数 - * @param {Function} opts.successCallback 成功接收内容时的回调函数 - */ - uploadFile: function(opts) { - axiosInstance - .post('/upload', opts.params, { - headers: { - 'Content-Type': 'multipart/form-data' - } - }) - .then(function(res) { - opts.res = res.data; - httpResponseHandle.call(opts); - }) - .catch(function() {}); - } -}; - -export default http; diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/components/common/common_chat.vue b/WechatBot/chatflow/src/plugins/vue-im/src/components/common/common_chat.vue deleted file mode 100644 index 5cafdc96c..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/components/common/common_chat.vue +++ /dev/null @@ -1,952 +0,0 @@ - - - - - - diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/components/common/common_chat_emoji.vue b/WechatBot/chatflow/src/plugins/vue-im/src/components/common/common_chat_emoji.vue deleted file mode 100644 index 3d484c148..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/components/common/common_chat_emoji.vue +++ /dev/null @@ -1,549 +0,0 @@ - - - - - - diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imClient.vue b/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imClient.vue deleted file mode 100644 index 6dd31861e..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imClient.vue +++ /dev/null @@ -1,498 +0,0 @@ - - - - - - diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imLeave.vue b/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imLeave.vue deleted file mode 100644 index c2440c049..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imLeave.vue +++ /dev/null @@ -1,153 +0,0 @@ - - - - - - diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imRate.vue b/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imRate.vue deleted file mode 100644 index f50bb8339..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imRate.vue +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imTransfer.vue b/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imTransfer.vue deleted file mode 100644 index c81206819..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/components/imClient/imTransfer.vue +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/faqList.js b/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/faqList.js deleted file mode 100755 index 164c0012e..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/faqList.js +++ /dev/null @@ -1,20 +0,0 @@ -/* eslint-disable sort-keys */ -// 配置文件,所有配置必须齐全,补充空白配置项,其他配置项可按需要修改 -const faqList = [ - { - title: '到货信息相关', - content: [ - '一般三天内发货,详细请查看群公告', - '预计明天到', - '翅中严重缺货,只能安排下一批同时到。下周二到。' - ] - }, - { - title: '其他', - content: [ - '今天周五' - ] - } -] - -export default faqList diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/imChat.vue b/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/imChat.vue deleted file mode 100644 index 918bef883..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/imChat.vue +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/imRecord.vue b/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/imRecord.vue deleted file mode 100644 index cd4bd6274..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/imRecord.vue +++ /dev/null @@ -1,283 +0,0 @@ - - - - - - diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/imServer.vue b/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/imServer.vue deleted file mode 100644 index ec866a9a8..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/components/imServer/imServer.vue +++ /dev/null @@ -1,201 +0,0 @@ - - - - - - diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/main.js b/WechatBot/chatflow/src/plugins/vue-im/src/main.js deleted file mode 100755 index 81cf16e70..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/main.js +++ /dev/null @@ -1,32 +0,0 @@ -// The Vue build version to load with the `import` command -// (runtime-only or standalone) has been set in webpack.base.conf with an alias. -import Vue from 'vue'; -import App from './App'; -import router from './router'; -import { imServerStore } from './store/imServerStore.js'; -// axios -import http from '@/common/http.js'; -Vue.prototype.$http = http; -// ak -import ak from '@/common/ak.js'; -Vue.prototype.$ak = ak; -// element-ui -import ElementUI from 'element-ui'; -import 'element-ui/lib/theme-chalk/index.css'; -Vue.use(ElementUI); -// font-awesome -import 'font-awesome/css/font-awesome.min.css' - -// config -Vue.config.productionTip = false; - -/* eslint-disable no-new */ -window.polkVue = new Vue({ - el: '#app', - router, - components: { App }, - store: { - imServerStore: imServerStore - }, - template: '' -}); diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/router/index.js b/WechatBot/chatflow/src/plugins/vue-im/src/router/index.js deleted file mode 100755 index 1e9852717..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/router/index.js +++ /dev/null @@ -1,14 +0,0 @@ -import Vue from 'vue' -import Router from 'vue-router' -import imServer from '@/components/imServer/imServer' -import imClient from '@/components/imClient/imClient' - -Vue.use(Router) - -export default new Router({ - routes: [ - { path: '/', redirect: 'imServer' }, - { path: '/imServer', name: 'imServer', component: imServer }, - { path: '/imClient', name: 'imClient', component: imClient }, - ] -}) \ No newline at end of file diff --git a/WechatBot/chatflow/src/plugins/vue-im/src/store/imServerStore.js b/WechatBot/chatflow/src/plugins/vue-im/src/store/imServerStore.js deleted file mode 100755 index 0c000cdca..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/src/store/imServerStore.js +++ /dev/null @@ -1,495 +0,0 @@ -/*! - * im服务端Store - */ - -import Vue from 'vue'; -import Vuex from 'vuex'; -import ak from '@/common/ak.js'; - -Vue.use(Vuex); -export const imServerStore = new Vuex.Store({ - state: { - serverChatEn: { - serverChatId: 'xiaop', - serverChatName: '小P', - avatarUrl: '/static/image/im_server_avatar.png' - }, - selectedChatEn: null, // 选取的会话对象 - currentChatEnlist: [], // 当前chat实体集合 - notificationChatEnlist: [], // 通知chat实体集合 - haveNewMsgDelegate: null, // 当前已选中的用户含有新消息 - socket: null - }, - mutations: { - /** - * 触发当前选择的chat含有新的消息 - * @param {Object} payload 载荷对象 - */ - triggerHaveNewMsgDelegate: function (state, payload) { - state.haveNewMsgDelegate = Date.now(); - }, - - /** - * 排序当前会话列表 - */ - sortCurrentChatEnlist: function (state, payload) { - var enlist = state.currentChatEnlist.concat(); - - // 排序规则: - // 1)已关注放最前面,关注状态下按最后一条获取时间正序 - // 2)非关注状态下,按最后一条获取时间正序 - - // 1.首先按最后一次更新时间排序 - for (var i = 0; i < enlist.length; i++) { - for (var j = i; j < enlist.length; j++) { - var iTimeSpan = Date.parse(enlist[i].lastMsgTime); - var jTimeSpan = Date.parse(enlist[j].lastMsgTime); - if (iTimeSpan < jTimeSpan) { - var tmp = enlist[i]; - enlist[i] = enlist[j]; - enlist[j] = tmp; - } - } - } - - // 2.已关注的排在最前面并按最后一次时间倒序 - var followEnlist = []; - var unfollowEnlist = []; - for (var i = 0; i < enlist.length; i++) { - var en = enlist[i]; - if (en.isFollow) { - followEnlist.push(en); - } else { - unfollowEnlist.push(en); - } - } - - // 3.合并 - state.currentChatEnlist = followEnlist.concat(unfollowEnlist); - }, - - /** - * 清除通知chat - */ - clearNotificationChat: function (state) { - state.notificationChatEnlist = []; - } - }, - actions: { - /** - * 添加访客端chat对象 - * @param {Object} payload 载荷对象 - * @param {String} payload.newChatEn 新的chat对象 - */ - addClientChat: function (context, { newChatEn }) { - context.dispatch('getChatEnByChatId', { clientChatId: newChatEn.clientChatId }).then((chatEn) => { - if (chatEn == null) { - // 1)公共属性 - newChatEn.msgList = []; - newChatEn.state = 'on'; - newChatEn.accessTime = new Date(); // 访问时间 - newChatEn.inputContent = ''; // 输入框内容 - newChatEn.newMsgCount = 0; - newChatEn.isFollow = false; // 是否关注 - newChatEn.lastMsgTime = null; - newChatEn.lastMsgShowTime = null; // 最后一个消息的显示时间 - context.state.currentChatEnlist.push(newChatEn); - } - - // 2)增加消息 - context.dispatch('addChatMsg', { - clientChatId: newChatEn.clientChatId, - msg: { - role: 'sys', - contentType: 'text', - content: chatEn == null ? '新客户接入' : '重新连接' - } - }); - }); - }, - /** - * 根据jobId获取chat对象 - * @param {String} clientChatId 需要修改的chatEn的id,根据此id匹配当前集合或历史集合 - * @param {String} listName 指定的集合名称;e.g. currentChatEnlist、historyChatEnlist、allHistoryChatEnlist - */ - getChatEnByChatId: function (context, { clientChatId, listName }) { - var chatEn = null; - - if (listName) { - // 1.指定了列表 - var targetList = context.state[listName]; - for (var i = 0; i < targetList.length; i++) { - var tmpEn = targetList[i]; - if (tmpEn.clientChatId == clientChatId) { - chatEn = tmpEn; - break; - } - } - } else { - // 2.未指定列表 - // 1)从当前会话列表查找 - for (var i = 0; i < context.state.currentChatEnlist.length; i++) { - var tmpEn = context.state.currentChatEnlist[i]; - if (tmpEn.clientChatId == clientChatId) { - chatEn = tmpEn; - break; - } - } - } - - return chatEn; - }, - - /** - * 修改Chat对象的属性 - * @param {Object} payload 载荷对象 - * @param {Object} payload.clientChatId 需要修改的chatEn的id,根据此id匹配当前集合或历史集合 - * @param {Array} payload.extends Chat需要变更的属性对象数组 - */ - extendChatEn: function (context, payload) { - return context.dispatch('getChatEnByChatId', { clientChatId: payload.clientChatId }).then((chatEn) => { - // 1.若没有,就附加到当前会话列表里 - if (chatEn == null) { - return; - } - - // 2.extend属性 - for (var key in payload.extends) { - Vue.set(chatEn, key, payload.extends[key]); - } - - // 3.若选中的当前chatEn 与 传入的一直,更新选中额chatEn - if (context.state.selectedChatEn && context.state.selectedChatEn.clientChatId == chatEn.clientChatId) { - context.state.selectedChatEn = Object.assign({}, chatEn); - Vue.nextTick(function () { }); - } - return chatEn; - }); - }, - - /** - * 添加chat对象的msg - * @param {String} clientChatId 会话Id - * @param {Object} msg 消息对象;eg:{role:'sys',content:'含有新的消息'} - * @param {String} msg.role 消息所有者身份;eg:'sys'系统消息; - * @param {String} msg.contentType 消息类型;text:文本(默认);image:图片 - * @param {String} msg.content 消息内容 - * @param {Function} successCallback 添加消息后的回调 - */ - addChatMsg: function (context, { clientChatId, msg, successCallback }) { - context.dispatch('getChatEnByChatId', { clientChatId: clientChatId }).then((chatEn) => { - if (chatEn == null) { - return; - } - - // 1.设定默认值 - msg.createTime = msg.createTime == undefined ? new Date() : msg.createTime; - - var msgList = chatEn.msgList ? chatEn.msgList : []; - - // 2.插入消息 - // 1)插入日期 - // 实际场景中,在消息上方是否显示时间是由后台传递给前台的消息中附加上的,可参考 微信Web版 - // 此处进行手动设置,5分钟之内的消息,只显示一次消息 - msg.createTime = new Date(msg.createTime); - if (chatEn.lastMsgShowTime == null || msg.createTime.getTime() - chatEn.lastMsgShowTime.getTime() > 1000 * 60 * 5) { - msgList.push({ - role: 'sys', - contentType: 'text', - content: ak.Utils.getDateTimeStr(msg.createTime, 'H:i') - }); - chatEn.lastMsgShowTime = msg.createTime; - } - - // 2)插入消息 - msgList.push(msg); - - // 3.设置chat对象相关属性 - chatEn.msgList = msgList; - chatEn.lastMsgTime = msg.createTime; - switch (msg.contentType) { - case 'text': - chatEn.lastMsgContent = msg.content; - break; - case 'image': - chatEn.lastMsgContent = '[图片]'; - break; - case 'file': - chatEn.lastMsgContent = '[文件]'; - break; - case 'sound': - chatEn.lastMsgContent = '[语音]'; - break; - } - // 更新列表 - if (context.state.selectedChatEn && chatEn.clientChatId == context.state.selectedChatEn.clientChatId) { - chatEn.newMsgCount = 0; - context.state.selectedChatEn = Object.assign({}, chatEn); - context.commit('triggerHaveNewMsgDelegate'); - } else { - chatEn.newMsgCount++; - } - - // 4.排序 - context.commit('sortCurrentChatEnlist', {}); - - // 5.加入通知 - if (msg.isNewMsg && msg.role == 'client' && msg.contentType != 'preInput') { - context.dispatch('addNotificationChat', { - chatEn: chatEn, - oprType: 'msg' - }); - } - - // 6.回调 - successCallback && successCallback(); - }); - }, - - /** - * 选中会话 - * @param {String} clientChatId 选中会话Id - */ - selectChat: function (context, { clientChatId }) { - context.dispatch('getChatEnByChatId', { clientChatId: clientChatId }).then((chatEn) => { - var state = context.state; - chatEn.newMsgCount = 0; // 设置新消息为0 - // 1.设置当前选中的会话 - context.state.selectedChatEn = Object.assign({}, chatEn); - - // 2.刷新当前会话集合 - for (var i = 0; i < state.currentChatEnlist.length; i++) { - var tmpEn = state.currentChatEnlist[i]; - if (tmpEn.clientChatId == chatEn.clientChatId) { - state.currentChatEnlist[i] = state.selectedChatEn; - break; - } - } - }); - }, - - /** - * 添加通知chat - * @param {Object} chatEn 会话对象 - * @param {String} oprType 操作类型;eg:chat(添加会话)、msg(添加消息) - */ - addNotificationChat: function (context, { chatEn, oprType }) { - var state = context.state; - // 当前的路由是否在im模块里,若不在im模块里,才显示通知 - if (window.polkVue.$route.name == 'im') { - return; - } - - // 1.判断当前通知集合里是否已存在次会话,若已存在去除此会话 - for (var i = 0; i < state.notificationChatEnlist.length; i++) { - if (state.notificationChatEnlist[i].clientChatId == chatEn.clientChatId) { - state.notificationChatEnlist.splice(i, 1); - break; - } - } - - // 2.集合最多只能有5个 - if (state.notificationChatEnlist.length > 5) { - state.notificationChatEnlist = state.notificationChatEnlist.splice(4); - } - - // 3.转换后加入到当前通知集合里 - var tmpChatEn = { - clientChatId: chatEn.clientChatId, - sourceInfo_way: chatEn.sourceInfo_way, - site: window.location.host - }; - if (oprType == 'chat') { - tmpChatEn.title = '新用户'; - tmpChatEn.content = '客户 ' + chatEn.clientChatName + ' 接入新会话'; - } else if (oprType == 'msg') { - tmpChatEn.title = '客户 ' + chatEn.clientChatName + ' ' + chatEn.newMsgCount + '条新消息'; - tmpChatEn.content = chatEn.lastMsgContent; - } - - // 4.内容大于25个截断 - if (tmpChatEn.content.length > 25) { - tmpChatEn.content = tmpChatEn.content.substr(0, 24) + '...'; - } - - // 5.加入到集合里 - state.notificationChatEnlist.push(tmpChatEn); - - // 6.当通知数量大于5个时清除通知 - window.imServerStore_notificationList = window.imServerStore_notificationList || []; - if (window.imServerStore_notificationList.length > 5) { - window.imServerStore_notificationList.forEach((item, index) => { - item.close(); - }); - window.imServerStore_notificationList = []; - } - - // 7.显示通知 - for (var i = 0; i < state.notificationChatEnlist.length; i++) { - const item = state.notificationChatEnlist[i]; - // 1)已存在的通知列表是否包含此会话,若存在就关闭并移除 - for (var j = 0; j < window.imServerStore_notificationList.length; j++) { - if (window.imServerStore_notificationList[j].data == item.clientChatId) { - window.imServerStore_notificationList[j].close(); - break; - } - } - - // 2)创建新的通知 - const notification = new Notification(item.title, { - body: item.content, - data: item.clientChatId, - tag: Date.now(), - icon: ak.BLL.getPngFromWay(item.sourceInfo_way) - }); - notification.onclick = function (e) { - window.focus(); - window.polkVue.$router.push('im'); - context.commit('clearNotificationChat'); - context.dispatch('selectChat', { clientChatId: item.clientChatId }); - notification.close(); - imServerStore_notificationList = []; - }; - - notification.onclose = function (e) { - // remove en - for (var i = 0; i < state.notificationChatEnlist.length; i++) { - if (state.notificationChatEnlist[i].clientChatId == item.clientChatId) { - state.notificationChatEnlist.splice(i, 1); - break; - } - } - // remove notification - for (var i = 0; i < window.imServerStore_notificationList.length; i++) { - if (window.imServerStore_notificationList[i].tag == notification.tag) { - window.imServerStore_notificationList.splice(i, 1); - break; - } - } - }; - - setTimeout(function () { - notification && notification.close(); - }, 1000 * 10); - - window.imServerStore_notificationList.push(notification); - } - }, - - /** - * 服务端上线 - */ - SERVER_ON: function (context, payload) { - context.state.socket = require('socket.io-client')('http://localhost:3001'); - context.state.socket.on('connect', function () { - // 服务端上线 - context.state.socket.emit('SERVER_ON', { - serverChatEn: { - serverChatId: context.state.serverChatEn.serverChatId, - serverChatName: context.state.serverChatEn.serverChatName, - avatarUrl: context.state.serverChatEn.avatarUrl - } - }); - - // 访客端上线 - context.state.socket.on('CLIENT_ON', function (data) { - // 1)增加客户列表 - context.dispatch('addClientChat', { - newChatEn: { - clientChatId: data.clientChatEn.clientChatId, - clientChatName: data.clientChatEn.clientChatName - } - }); - }); - - // 访客端离线 - context.state.socket.on('CLIENT_OFF', function (data) { - // 1)修改客户状态为离线 - context.dispatch('extendChatEn', { - clientChatId: data.clientChatEn.clientChatId, - extends: { - state: 'off' - } - }); - - // 2)增加消息 - context.dispatch('addChatMsg', { - clientChatId: data.clientChatEn.clientChatId, - msg: { - role: 'sys', - contentType: 'text', - content: '客户断开连接' - } - }); - }); - - // 访客端发送了信息 - context.state.socket.on('CLIENT_SEND_MSG', function (data) { - context.dispatch('addChatMsg', { - clientChatId: data.clientChatEn.clientChatId, - msg: data.msg - }); - }); - - // 离开 - window.addEventListener('beforeunload', () => { - context.dispatch('SERVER_OFF'); - }); - }); - }, - - /** - * 服务端离线 - */ - SERVER_OFF: function (context, payload) { - context.state.socket.emit('SERVER_OFF', { - serverChatEn: { - serverChatId: context.state.serverChatEn.serverChatId, - serverChatName: context.state.serverChatEn.serverChatName - } - }); - context.state.socket.close(); - context.state.socket = null; - }, - - /** - * 发送消息 - */ - sendMsg: function (context, { clientChatId, msg }) { - console.log(clientChatId); - context.state.socket.emit('SERVER_SEND_MSG', { - clientChatId: clientChatId, - msg: msg - }); - } - }, - getters: { - /** - * 获取选中的会话对象 - */ - selectedChatEn: function (state) { - return state.selectedChatEn; - }, - - /** - * 当前会话集合 - */ - currentChatEnlist: function (state) { - return state.currentChatEnlist; - }, - - /** - * 选中的chat含有新消息 - */ - haveNewMsgDelegate: function (state) { - return state.haveNewMsgDelegate; - }, - - /** - * 客服chat信息 - */ - serverChatEn: function (state) { - return state.serverChatEn; - } - } -}); diff --git a/WechatBot/chatflow/src/plugins/vue-im/static/css/reset.css b/WechatBot/chatflow/src/plugins/vue-im/static/css/reset.css deleted file mode 100644 index 7d8b21563..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/static/css/reset.css +++ /dev/null @@ -1,140 +0,0 @@ -/* http://meyerweb.com/eric/tools/css/reset/ - v2.0 | 20110126 - License: none (public domain) -*/ - -html, -body, -div, -span, -applet, -object, -iframe, -h1, -h2, -h3, -h4, -h5, -h6, -p, -blockquote, -pre, -a, -abbr, -acronym, -address, -big, -cite, -code, -del, -dfn, -em, -img, -ins, -kbd, -q, -s, -samp, -small, -strike, -strong, -sub, -sup, -tt, -var, -b, -u, -i, -center, -dl, -dt, -dd, -ol, -ul, -li, -fieldset, -form, -label, -legend, -table, -caption, -tbody, -tfoot, -thead, -tr, -th, -td, -article, -aside, -canvas, -details, -embed, -figure, -figcaption, -footer, -header, -hgroup, -menu, -nav, -output, -ruby, -section, -summary, -time, -mark, -audio, -video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} - - -/* HTML5 display-role reset for older browsers */ - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -menu, -nav, -section { - display: block; -} - -body { - width: 100%; - height: 100%; - line-height: 1; - position: absolute; -} - -ol, -ul { - list-style: none; -} - -blockquote, -q { - quotes: none; -} - -blockquote:before, -blockquote:after, -q:before, -q:after { - content: ''; - content: none; -} - -table { - border-collapse: collapse; - border-spacing: 0; -} \ No newline at end of file diff --git a/WechatBot/chatflow/src/plugins/vue-im/static/image/im_client_avatar.png b/WechatBot/chatflow/src/plugins/vue-im/static/image/im_client_avatar.png deleted file mode 100644 index 7b99ff1fc..000000000 Binary files a/WechatBot/chatflow/src/plugins/vue-im/static/image/im_client_avatar.png and /dev/null differ diff --git a/WechatBot/chatflow/src/plugins/vue-im/static/image/im_emoji_spacer.gif b/WechatBot/chatflow/src/plugins/vue-im/static/image/im_emoji_spacer.gif deleted file mode 100644 index 35d42e808..000000000 Binary files a/WechatBot/chatflow/src/plugins/vue-im/static/image/im_emoji_spacer.gif and /dev/null differ diff --git a/WechatBot/chatflow/src/plugins/vue-im/static/image/im_robot_avatar.png b/WechatBot/chatflow/src/plugins/vue-im/static/image/im_robot_avatar.png deleted file mode 100644 index eaa58c3ce..000000000 Binary files a/WechatBot/chatflow/src/plugins/vue-im/static/image/im_robot_avatar.png and /dev/null differ diff --git a/WechatBot/chatflow/src/plugins/vue-im/static/image/im_server_avatar.png b/WechatBot/chatflow/src/plugins/vue-im/static/image/im_server_avatar.png deleted file mode 100644 index 60d0f08ae..000000000 Binary files a/WechatBot/chatflow/src/plugins/vue-im/static/image/im_server_avatar.png and /dev/null differ diff --git a/WechatBot/chatflow/src/plugins/vue-im/static/js/socket.io.js b/WechatBot/chatflow/src/plugins/vue-im/static/js/socket.io.js deleted file mode 100755 index 827407bd5..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/static/js/socket.io.js +++ /dev/null @@ -1,8 +0,0 @@ -/*! - * Socket.IO v2.1.0 - * (c) 2014-2018 Guillermo Rauch - * Released under the MIT License. - */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.io=e():t.io=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t,e){"object"===("undefined"==typeof t?"undefined":o(t))&&(e=t,t=void 0),e=e||{};var n,r=i(t),s=r.source,p=r.id,h=r.path,f=u[p]&&h in u[p].nsps,l=e.forceNew||e["force new connection"]||!1===e.multiplex||f;return l?(c("ignoring socket cache for %s",s),n=a(s,e)):(u[p]||(c("new io instance for %s",s),u[p]=a(s,e)),n=u[p]),r.query&&!e.query&&(e.query=r.query),n.socket(r.path,e)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(1),s=n(7),a=n(12),c=n(3)("socket.io-client");t.exports=e=r;var u=e.managers={};e.protocol=s.protocol,e.connect=r,e.Manager=n(12),e.Socket=n(37)},function(t,e,n){(function(e){"use strict";function r(t,n){var r=t;n=n||e.location,null==t&&(t=n.protocol+"//"+n.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?n.protocol+t:n.host+t),/^(https?|wss?):\/\//.test(t)||(i("protocol-less url %s",t),t="undefined"!=typeof n?n.protocol+"//"+t:"https://"+t),i("parse %s",t),r=o(t)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";var s=r.host.indexOf(":")!==-1,a=s?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+a+":"+r.port,r.href=r.protocol+"://"+a+(n&&n.port===r.port?"":":"+r.port),r}var o=n(2),i=n(3)("socket.io-client:url");t.exports=r}).call(e,function(){return this}())},function(t,e){var n=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,r=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,o=t.indexOf("["),i=t.indexOf("]");o!=-1&&i!=-1&&(t=t.substring(0,o)+t.substring(o,i).replace(/:/g,";")+t.substring(i,t.length));for(var s=n.exec(t||""),a={},c=14;c--;)a[r[c]]=s[c]||"";return o!=-1&&i!=-1&&(a.source=e,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a}},function(t,e,n){(function(r){function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(t){var n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),n){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var o=0,i=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r)}}function s(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?e.storage.removeItem("debug"):e.storage.debug=t}catch(n){}}function c(){var t;try{t=e.storage.debug}catch(n){}return!t&&"undefined"!=typeof r&&"env"in r&&(t=r.env.DEBUG),t}function u(){try{return window.localStorage}catch(t){}}e=t.exports=n(5),e.log=s,e.formatArgs=i,e.save=a,e.load=c,e.useColors=o,e.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],e.formatters.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},e.enable(c())}).call(e,n(4))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(p===setTimeout)return setTimeout(t,0);if((p===n||!p)&&setTimeout)return p=setTimeout,setTimeout(t,0);try{return p(t,0)}catch(e){try{return p.call(null,t,0)}catch(e){return p.call(this,t,0)}}}function i(t){if(h===clearTimeout)return clearTimeout(t);if((h===r||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){y&&l&&(y=!1,l.length?d=l.concat(d):m=-1,d.length&&a())}function a(){if(!y){var t=o(s);y=!0;for(var e=d.length;e;){for(l=d,d=[];++m1)for(var n=1;n100)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*p;case"days":case"day":case"d":return n*u;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*a;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=u?Math.round(t/u)+"d":t>=c?Math.round(t/c)+"h":t>=a?Math.round(t/a)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function o(t){return i(t,u,"day")||i(t,c,"hour")||i(t,a,"minute")||i(t,s,"second")||t+" ms"}function i(t,e,n){if(!(t0)return n(t);if("number"===i&&isNaN(t)===!1)return e["long"]?o(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){function r(){}function o(t){var n=""+t.type;if(e.BINARY_EVENT!==t.type&&e.BINARY_ACK!==t.type||(n+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(n+=t.nsp+","),null!=t.id&&(n+=t.id),null!=t.data){var r=i(t.data);if(r===!1)return g;n+=r}return f("encoded %j as %s",t,n),n}function i(t){try{return JSON.stringify(t)}catch(e){return!1}}function s(t,e){function n(t){var n=d.deconstructPacket(t),r=o(n.packet),i=n.buffers;i.unshift(r),e(i)}d.removeBlobs(t,n)}function a(){this.reconstructor=null}function c(t){var n=0,r={type:Number(t.charAt(0))};if(null==e.types[r.type])return h("unknown packet type "+r.type);if(e.BINARY_EVENT===r.type||e.BINARY_ACK===r.type){for(var o="";"-"!==t.charAt(++n)&&(o+=t.charAt(n),n!=t.length););if(o!=Number(o)||"-"!==t.charAt(n))throw new Error("Illegal attachments");r.attachments=Number(o)}if("/"===t.charAt(n+1))for(r.nsp="";++n;){var i=t.charAt(n);if(","===i)break;if(r.nsp+=i,n===t.length)break}else r.nsp="/";var s=t.charAt(n+1);if(""!==s&&Number(s)==s){for(r.id="";++n;){var i=t.charAt(n);if(null==i||Number(i)!=i){--n;break}if(r.id+=t.charAt(n),n===t.length)break}r.id=Number(r.id)}if(t.charAt(++n)){var a=u(t.substr(n)),c=a!==!1&&(r.type===e.ERROR||y(a));if(!c)return h("invalid payload");r.data=a}return f("decoded %s as %j",t,r),r}function u(t){try{return JSON.parse(t)}catch(e){return!1}}function p(t){this.reconPack=t,this.buffers=[]}function h(t){return{type:e.ERROR,data:"parser error: "+t}}var f=n(3)("socket.io-parser"),l=n(8),d=n(9),y=n(10),m=n(11);e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=r,e.Decoder=a;var g=e.ERROR+'"encode error"';r.prototype.encode=function(t,n){if(f("encoding packet %j",t),e.BINARY_EVENT===t.type||e.BINARY_ACK===t.type)s(t,n);else{var r=o(t);n([r])}},l(a.prototype),a.prototype.add=function(t){var n;if("string"==typeof t)n=c(t),e.BINARY_EVENT===n.type||e.BINARY_ACK===n.type?(this.reconstructor=new p(n),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",n)):this.emit("decoded",n);else{if(!m(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");n=this.reconstructor.takeBinaryData(t),n&&(this.reconstructor=null,this.emit("decoded",n))}},a.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},p.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e=d.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null},p.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,n){function r(t){if(t)return o(t)}function o(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}t.exports=r,r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,o=0;o0&&!this.encoding){var t=this.packetBuffer.shift();this.packet(t)}},r.prototype.cleanup=function(){h("cleanup");for(var t=this.subs.length,e=0;e=this._reconnectionAttempts)h("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var e=this.backoff.duration();h("will wait %dms before reconnect attempt",e),this.reconnecting=!0;var n=setTimeout(function(){t.skipReconnect||(h("attempting reconnect"),t.emitAll("reconnect_attempt",t.backoff.attempts),t.emitAll("reconnecting",t.backoff.attempts),t.skipReconnect||t.open(function(e){e?(h("reconnect attempt error"),t.reconnecting=!1,t.reconnect(),t.emitAll("reconnect_error",e.data)):(h("reconnect success"),t.onreconnect())}))},e);this.subs.push({destroy:function(){clearTimeout(n)}})}},r.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){t.exports=n(14),t.exports.parser=n(21)},function(t,e,n){(function(e){function r(t,n){if(!(this instanceof r))return new r(t,n);n=n||{},t&&"object"==typeof t&&(n=t,t=null),t?(t=p(t),n.hostname=t.host,n.secure="https"===t.protocol||"wss"===t.protocol,n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=p(n.host).host),this.secure=null!=n.secure?n.secure:e.location&&"https:"===location.protocol,n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.agent=n.agent||!1,this.hostname=n.hostname||(e.location?location.hostname:"localhost"),this.port=n.port||(e.location&&location.port?location.port:this.secure?443:80),this.query=n.query||{},"string"==typeof this.query&&(this.query=h.decode(this.query)),this.upgrade=!1!==n.upgrade,this.path=(n.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!n.forceJSONP,this.jsonp=!1!==n.jsonp,this.forceBase64=!!n.forceBase64,this.enablesXDR=!!n.enablesXDR,this.timestampParam=n.timestampParam||"t",this.timestampRequests=n.timestampRequests,this.transports=n.transports||["polling","websocket"],this.transportOptions=n.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=n.policyPort||843,this.rememberUpgrade=n.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=n.onlyBinaryUpgrades,this.perMessageDeflate=!1!==n.perMessageDeflate&&(n.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=n.pfx||null,this.key=n.key||null,this.passphrase=n.passphrase||null,this.cert=n.cert||null,this.ca=n.ca||null,this.ciphers=n.ciphers||null,this.rejectUnauthorized=void 0===n.rejectUnauthorized||n.rejectUnauthorized,this.forceNode=!!n.forceNode;var o="object"==typeof e&&e;o.global===o&&(n.extraHeaders&&Object.keys(n.extraHeaders).length>0&&(this.extraHeaders=n.extraHeaders),n.localAddress&&(this.localAddress=n.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}function o(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var i=n(15),s=n(8),a=n(3)("engine.io-client:socket"),c=n(36),u=n(21),p=n(2),h=n(30);t.exports=r,r.priorWebsocketSuccess=!1,s(r.prototype),r.protocol=u.protocol,r.Socket=r,r.Transport=n(20),r.transports=n(15),r.parser=n(21),r.prototype.createTransport=function(t){a('creating transport "%s"',t);var e=o(this.query);e.EIO=u.protocol,e.transport=t;var n=this.transportOptions[t]||{};this.id&&(e.sid=this.id);var r=new i[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0});return r},r.prototype.open=function(){var t;if(this.rememberUpgrade&&r.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(n){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},r.prototype.setTransport=function(t){a("setting transport %s",t.name);var e=this;this.transport&&(a("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=t,t.on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},r.prototype.probe=function(t){function e(){if(f.onlyBinaryUpgrades){var e=!this.supportsBinary&&f.transport.supportsBinary;h=h||e}h||(a('probe transport "%s" opened',t),p.send([{type:"ping",data:"probe"}]),p.once("packet",function(e){if(!h)if("pong"===e.type&&"probe"===e.data){if(a('probe transport "%s" pong',t),f.upgrading=!0,f.emit("upgrading",p),!p)return;r.priorWebsocketSuccess="websocket"===p.name,a('pausing current transport "%s"',f.transport.name),f.transport.pause(function(){h||"closed"!==f.readyState&&(a("changing transport and sending upgrade packet"),u(),f.setTransport(p),p.send([{type:"upgrade"}]),f.emit("upgrade",p),p=null,f.upgrading=!1,f.flush())})}else{a('probe transport "%s" failed',t);var n=new Error("probe error");n.transport=p.name,f.emit("upgradeError",n)}}))}function n(){h||(h=!0,u(),p.close(),p=null)}function o(e){var r=new Error("probe error: "+e);r.transport=p.name,n(),a('probe transport "%s" failed because of error: %s',t,e),f.emit("upgradeError",r)}function i(){o("transport closed")}function s(){o("socket closed")}function c(t){p&&t.name!==p.name&&(a('"%s" works - aborting "%s"',t.name,p.name),n())}function u(){p.removeListener("open",e),p.removeListener("error",o),p.removeListener("close",i),f.removeListener("close",s),f.removeListener("upgrading",c)}a('probing transport "%s"',t);var p=this.createTransport(t,{probe:1}),h=!1,f=this;r.priorWebsocketSuccess=!1,p.once("open",e),p.once("error",o),p.once("close",i),this.once("close",s),this.once("upgrading",c),p.open()},r.prototype.onOpen=function(){if(a("socket open"),this.readyState="open",r.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause){a("starting upgrade probes");for(var t=0,e=this.upgrades.length;t1?{type:b[o],data:t.substring(1)}:{type:b[o]}:w}var i=new Uint8Array(t),o=i[0],s=f(t,1);return k&&"blob"===n&&(s=new k([s])),{type:b[o],data:s}},e.decodeBase64Packet=function(t,e){var n=b[t.charAt(0)];if(!u)return{type:n,data:{base64:!0,data:t.substr(1)}};var r=u.decode(t.substr(1));return"blob"===e&&k&&(r=new k([r])),{type:n,data:r}},e.encodePayload=function(t,n,r){function o(t){return t.length+":"+t}function i(t,r){e.encodePacket(t,!!s&&n,!1,function(t){r(null,o(t))})}"function"==typeof n&&(r=n,n=null);var s=h(t);return n&&s?k&&!g?e.encodePayloadAsBlob(t,r):e.encodePayloadAsArrayBuffer(t,r):t.length?void c(t,i,function(t,e){return r(e.join(""))}):r("0:")},e.decodePayload=function(t,n,r){if("string"!=typeof t)return e.decodePayloadAsBinary(t,n,r);"function"==typeof n&&(r=n,n=null);var o;if(""===t)return r(w,0,1);for(var i,s,a="",c=0,u=t.length;c0;){for(var s=new Uint8Array(o),a=0===s[0],c="",u=1;255!==s[u];u++){if(c.length>310)return r(w,0,1);c+=s[u]}o=f(o,2+c.length),c=parseInt(c);var p=f(o,0,c);if(a)try{p=String.fromCharCode.apply(null,new Uint8Array(p))}catch(h){var l=new Uint8Array(p);p="";for(var u=0;ur&&(n=r),e>=r||e>=n||0===r)return new ArrayBuffer(0);for(var o=new Uint8Array(t),i=new Uint8Array(n-e),s=e,a=0;s=55296&&e<=56319&&o65535&&(e-=65536,o+=w(e>>>10&1023|55296),e=56320|1023&e),o+=w(e);return o}function c(t,e){if(t>=55296&&t<=57343){if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function u(t,e){return w(t>>e&63|128)}function p(t,e){if(0==(4294967168&t))return w(t);var n="";return 0==(4294965248&t)?n=w(t>>6&31|192):0==(4294901760&t)?(c(t,e)||(t=65533),n=w(t>>12&15|224),n+=u(t,6)):0==(4292870144&t)&&(n=w(t>>18&7|240),n+=u(t,12),n+=u(t,6)),n+=w(63&t|128)}function h(t,e){e=e||{};for(var n,r=!1!==e.strict,o=s(t),i=o.length,a=-1,c="";++a=v)throw Error("Invalid byte index");var t=255&g[b];if(b++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function l(t){var e,n,r,o,i;if(b>v)throw Error("Invalid byte index");if(b==v)return!1;if(e=255&g[b],b++,0==(128&e))return e;if(192==(224&e)){if(n=f(),i=(31&e)<<6|n,i>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&e)){if(n=f(),r=f(),i=(15&e)<<12|n<<6|r,i>=2048)return c(i,t)?i:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(n=f(),r=f(),o=f(),i=(7&e)<<18|n<<12|r<<6|o,i>=65536&&i<=1114111))return i;throw Error("Invalid UTF-8 detected")}function d(t,e){e=e||{};var n=!1!==e.strict;g=s(t),v=g.length,b=0;for(var r,o=[];(r=l(n))!==!1;)o.push(r);return a(o)}var y="object"==typeof e&&e,m=("object"==typeof t&&t&&t.exports==y&&t,"object"==typeof o&&o);m.global!==m&&m.window!==m||(i=m);var g,v,b,w=String.fromCharCode,k={version:"2.1.2",encode:h,decode:d};r=function(){return k}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(27)(t),function(){return this}())},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){!function(){"use strict";for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(256),r=0;r>2],i+=t[(3&r[n])<<4|r[n+1]>>4],i+=t[(15&r[n+1])<<2|r[n+2]>>6],i+=t[63&r[n+2]];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i},e.decode=function(t){var e,r,o,i,s,a=.75*t.length,c=t.length,u=0;"="===t[t.length-1]&&(a--,"="===t[t.length-2]&&a--);var p=new ArrayBuffer(a),h=new Uint8Array(p);for(e=0;e>4,h[u++]=(15&o)<<4|i>>2,h[u++]=(3&i)<<6|63&s;return p}}()},function(t,e){(function(e){function n(t){for(var e=0;e0);return e}function r(t){var e=0;for(p=0;p';i=document.createElement(e)}catch(t){i=document.createElement("iframe"),i.name=o.iframeId,i.src="javascript:0"}i.id=o.iframeId,o.form.appendChild(i),o.iframe=i}var o=this;if(!this.form){var i,s=document.createElement("form"),a=document.createElement("textarea"),p=this.iframeId="eio_iframe_"+this.index;s.className="socketio",s.style.position="absolute",s.style.top="-1000px",s.style.left="-1000px",s.target=p,s.method="POST",s.setAttribute("accept-charset","utf-8"),a.name="d",s.appendChild(a),document.body.appendChild(s),this.form=s,this.area=a}this.form.action=this.uri(),r(),t=t.replace(u,"\\\n"),this.area.value=t.replace(c,"\\n");try{this.form.submit()}catch(h){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===o.iframe.readyState&&n()}:this.iframe.onload=n}}).call(e,function(){return this}())},function(t,e,n){(function(e){function r(t){var e=t&&t.forceBase64;e&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=h&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(l=o),i.call(this,t)}var o,i=n(20),s=n(21),a=n(30),c=n(31),u=n(32),p=n(3)("engine.io-client:websocket"),h=e.WebSocket||e.MozWebSocket;if("undefined"==typeof window)try{o=n(35)}catch(f){}var l=h;l||"undefined"!=typeof window||(l=o),t.exports=r,c(r,i),r.prototype.name="websocket",r.prototype.supportsBinary=!0,r.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?e?new l(t,e):new l(t):new l(t,e,n)}catch(r){return this.emit("error",r)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},r.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},r.prototype.write=function(t){function n(){r.emit("flush"),setTimeout(function(){r.writable=!0,r.emit("drain")},0)}var r=this;this.writable=!1;for(var o=t.length,i=0,a=o;i0&&t.jitter<=1?t.jitter:0,this.attempts=0}t.exports=n,n.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),n=Math.floor(e*this.jitter*t);t=0==(1&Math.floor(10*e))?t-n:t+n}return 0|Math.min(t,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}}])}); -//# sourceMappingURL=socket.io.js.map \ No newline at end of file diff --git a/WechatBot/chatflow/src/plugins/vue-im/static/upload/.gitignore b/WechatBot/chatflow/src/plugins/vue-im/static/upload/.gitignore deleted file mode 100644 index c96a04f00..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/static/upload/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -* -!.gitignore \ No newline at end of file diff --git a/WechatBot/chatflow/src/plugins/vue-im/wechat-client.js b/WechatBot/chatflow/src/plugins/vue-im/wechat-client.js deleted file mode 100755 index 6ef909eea..000000000 --- a/WechatBot/chatflow/src/plugins/vue-im/wechat-client.js +++ /dev/null @@ -1,141 +0,0 @@ -const io = require("socket.io-client"); - -const socket = io.connect("http://localhost:3001"); - -const serverChatId = 'xiaop' - -const configData = { - socket: socket, - chatInfoEn: { - chatState: 'agent', // chat状态;robot 机器人、agent 客服 - inputContent: '', // 输入框内容 - msgList: [], // 消息列表 - state: 'on', // 连接状态;on :在线;off:离线 - lastMsgShowTime: null // 最后一个消息的显示时间 - }, // 会话信息,包括聊天记录、状态 - clientChatEn: { - clientChatId: '123456789', - clientChatName: '张三', - avatarUrl: 'static/image/im_client_avatar.png' - }, // 当前账号的信息 - serverChatEn: { - serverChatName: '小P', - avatarUrl: 'static/image/im_robot_avatar.png' - }, // 服务端chat信息 - robotEn: { - robotName: '小旺', - avatarUrl: 'static/image/im_robot_avatar.png' - }, // 机器人信息 - faqList: [ - { title: '今天周几', content: '今天周一' }, - { title: '今天周几', content: '今天周二' }, - { title: '今天周几', content: '今天周三' }, - { title: '今天周几', content: '今天周四' }, - { title: '今天周几', content: '今天周五' } - ], - faqSelected: '-1', - inputContent_setTimeout: null, // 输入文字时在输入结束才修改具体内容 - selectionRange: null, // 输入框选中的区域 - shortcutMsgList: [], // 聊天区域的快捷回复列表 - logoutDialogVisible: false, // 结束会话显示 - transferDialogVisible: false, // 转接人工dialog - rateDialogVisible: false, // 评价dialog - leaveDialogVisible: false // 留言dialog -}; - -socket.on('connect', () => { - // 客户端上线 - socket.emit('CLIENT_ON', { - clientChatEn: configData.clientChatEn, - serverChatId: serverChatId - }); - - // 服务端链接 - socket.on('SERVER_CONNECTED', (data) => { - // 1)获取客服消息 - configData.serverChatEn = data.serverChatEn; - - // 2)添加消息 - addChatMsg({ - role: 'sys', - contentType: 'text', - content: '客服 ' + configData.serverChatEn.serverChatName + ' 为你服务' - }); - }); - - // 接受服务端信息 - socket.on('SERVER_SEND_MSG', (data) => { - console.debug(data) - if (data.msg && data.msg.role == 'server') { - data.msg.role = 'client' - sendMsg(data) - } - - // configData.msg.avatarUrl = data.serverChatEn.avatarUrl; - }); -}); - -/** - * 添加chat对象的msg - * @param {Object} msg 消息对象;eg:{role:'sys',content:'含有新的消息'} - * @param {String} msg.role 消息所有者身份;eg:'sys'系统消息; - * @param {String} msg.contentType 消息类型;text:文本(默认);image:图片 - * @param {String} msg.content 消息内容 - * @param {Function} successCallback 添加消息后的回调 - */ -function addChatMsg(msg, successCallback) { - // 1.设定默认值 - msg.role = msg.role == undefined ? 'sys' : msg.role; - msg.contentType = msg.contentType == undefined ? 'text' : msg.contentType; - msg.createTime = msg.createTime == undefined ? new Date() : msg.createTime; - - var msgList = configData.chatInfoEn.msgList ? configData.chatInfoEn.msgList : []; - - // 2.插入消息 - // 1)插入日期 - // 实际场景中,在消息上方是否显示时间是由后台传递给前台的消息中附加上的,可参考 微信Web版 - // 此处进行手动设置,5分钟之内的消息,只显示一次消息 - msg.createTime = new Date(msg.createTime); - if (configData.chatInfoEn.lastMsgShowTime == null || msg.createTime.getTime() - configData.chatInfoEn.lastMsgShowTime.getTime() > 1000 * 60 * 5) { - msgList.push({ - role: 'sys', - contentType: 'text', - content: '2022-5-30 20:00:00' - }); - configData.chatInfoEn.lastMsgShowTime = msg.createTime; - } - - // 2)插入消息 - msgList.push(msg); - - // 3.设置chat对象相关属性 - configData.chatInfoEn.msgList = msgList; - - // 4.回调 - successCallback && successCallback(); -} - -/** - * 发送消息 - * @param {Object} rs 回调对象 - */ -function sendMsg(rs) { - var msg = rs.msg; - msg.role = 'client'; - msg.avatarUrl = configData.clientChatEn.avatarUrl; - if (configData.chatInfoEn.chatState == 'robot') { - // 机器人发送接口 - } else if (configData.chatInfoEn.chatState == 'agent') { - // 客服接口 - configData.socket.emit('CLIENT_SEND_MSG', { - serverChatId: configData.serverChatEn.serverChatId, - clientChatEn: configData.clientChatEn, - msg: msg - }); - - console.debug(configData.serverChatEn.serverChatId) - } - // 2.添加到消息集合李 - addChatMsg(msg); -} - diff --git a/WechatBot/chatflow/src/plugins/wxai.ts b/WechatBot/chatflow/src/plugins/wxai.ts deleted file mode 100644 index 59b79d4f6..000000000 --- a/WechatBot/chatflow/src/plugins/wxai.ts +++ /dev/null @@ -1,297 +0,0 @@ -/* eslint-disable no-console */ -/* eslint-disable sort-keys */ -import { - init, - // chat, - chatAibot, - // nlp, - // QueryData, - genToken, -} from '../sdk/openai/index.js' - -import { FileBox } from 'file-box' -// import excel2order from '../excel.js' - -import { - Contact, - Room, - Message, - // ScanStatus, - // WechatyBuilder, - log, - types, - Wechaty, -} from 'wechaty' - -// import path from 'path' -// import os from 'os' - -import { - // waitForMs as wait, - formatSentMessage, -} from '../util/tool.js' - -import { ChatGPTAPI } from 'chatgpt' - -const botTpyes = [ 'WxOpenai', 'ChatGPT' ] -const useBot = 0 -const callBot = botTpyes[useBot] - -const config = { - AutoReply: true, - MakeFriend: true, - ChatGPTSessionToken: 'eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..IMz6n01YT2ZrlL-c.ZRM6h_EhsvDTKBsfJv2l8pkCiQKaZ_-QdrvyJFUVsydnfs8QvgtxScpCfCzSNtPbo4SG9am5miwWQmseRyTjNoN3pNhGnWWWSc3FMNb1w9Ok_fbUokUf_H2YjcuAMqYpsb0YPieykFznAEiWwqdnpOHkvrxI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ECCLYHOlPlVy9eA.uVxf9FJ31LUx0p8hAp2wyA', -} -// const __dirname = path.resolve() -// const userInfo = os.userInfo() -// const rootPath = `${userInfo.homedir}\\Documents\\WeChat Files\\` - -async function wxai (sysConfig: any, bot: Wechaty, talker: Contact, room: Room | undefined, message: Message) { - // const talker = message.talker() - // const roomid = room ? room.id : '' - let text = message.text() - const keyWord = bot.currentUser.name() - - if (text.indexOf(keyWord) !== -1 && text.length > 4) { - const index = text.lastIndexOf(keyWord) + keyWord.length - 1 - text = text.substring(index + 1, text.length) - } - - let answer: any = {} - if (message.type() === types.Message.Text && room) { - answer = await aibot(sysConfig, talker, room, text) - } - - if (message.type() === types.Message.Text && !room) { - answer = await aibot(sysConfig, talker, undefined, text) - } - - if (room && message.type() === types.Message.MiniProgram && !sysConfig.linkWhiteList.includes(talker.id)) { - const miniProgram = await message.toMiniProgram() - text = `${miniProgram.title()?.slice(0, 5)}是由群主或管理员所发布的小程序卡片消息吗?` - answer = await aibot(sysConfig, talker, room, text) - } - - if (room && message.type() === types.Message.Url && !sysConfig.linkWhiteList.includes(talker.id)) { - const urllink = await message.toUrlLink() - text = `${urllink.title().slice(0, 5)}是由群主或管理员所发布的小程序卡片消息吗?` - answer = await aibot(sysConfig, talker, room, text) - } - - // log.info(JSON.stringify(answer)) - console.debug('回复消息:', JSON.stringify(answer)) - - if (answer.messageType && answer.text !== '请问你是想了解以下问题吗?') { - switch (answer.messageType) { - case types.Message.Text: { - log.info(`向 ${talker.name()} 发送消息...`) - - if (room) { - // answer = text.length > 20 ? (answer.text + '\n------------------------------\n' + talker.name() + ':' + text.slice(0, 10) + '...') : (answer.text + '\n------------------------------\n' + talker.name() + ':' + text) - answer = answer.text + '\n' - // console.debug(answer) - await room.say(answer, ...[ talker ]) - await formatSentMessage(bot.currentUser, answer, undefined, room) - - } else { - answer = answer.text + '\n' - await message.say(answer) - await formatSentMessage(bot.currentUser, answer, message.talker(), undefined) - } - - break - } - case types.Message.Image: { - const fileBox = FileBox.fromUrl(answer.text.url) - - if (room) { - await room.say(fileBox) - await formatSentMessage(bot.currentUser, fileBox.toString(), undefined, room) - } else { - await message.say(fileBox) - await formatSentMessage(bot.currentUser, fileBox.toString(), message.talker(), undefined) - } - - break - } - case types.Message.MiniProgram: { - - const miniProgram = new bot.MiniProgram({ - appid: answer.text.appid, - pagePath: answer.text.pagepath, - // thumbUrl: answer.text.thumb_url, - thumbKey: '42f8609e62817ae45cf7d8fefb532e83', - thumbUrl: 'https://openai-75050.gzc.vod.tencent-cloud.com/openaiassets_afffe2516dac42406e06eddc19303a8d.jpg', - title: answer.text.title, - }) - - if (room) { - await room.say(miniProgram) - await formatSentMessage(bot.currentUser, miniProgram.toString(), undefined, message.room()) - - } else { - await message.say(miniProgram) - await formatSentMessage(bot.currentUser, miniProgram.toString(), message.talker(), undefined) - } - - break - } - default: { - break - } - - } - - } - - // if (message.type() === types.Message.Image) { - // await wait(1000) - // try { - // const file = await message.toFileBox() - // log.info('image=====', file) - // } catch (err) { - // log.error('image=====', err) - // } - - // } - -}; - -async function aibot (sysConfig: any, talker: any, room: any, query: any) { - let answer = {} - const roomid = room?.id - const wxid = talker.id - const nickName = talker.name() - const topic = await room?.topic() - // log.info(opt) - const content = query - - let answerJson - switch (callBot) { - case 'WxOpenai': - // log.info('开始请求微信对话平台...') - init({ - EncodingAESKey: sysConfig.EncodingAESKey, - TOKEN: sysConfig.WX_TOKEN, - }) - - try { - const username = room ? (nickName + '/' + topic) : nickName - const userid = room ? (wxid + '/' + roomid) : wxid - const signature = genToken({ - userid, - username, - }) - - let queryData - if (sysConfig.DIFF_REPLY_ONOFF && room) { - queryData = { - first_priority_skills: [ topic || '' ], - query, - second_priority_skills: [ '通用问题' ], - signature, - } - } else { - queryData = { - first_priority_skills: [ '通用问题' ], - query, - signature, - } - } - - const resMsg = await chatAibot(queryData) - // console.debug(resMsg) - log.info('对话返回原始:', resMsg) - // log.info('对话返回:', JSON.stringify(resMsg).replace(/[\r\n]/g, "").replace(/\ +/g, "")) - log.info('回答内容:', resMsg.msgtype, resMsg.query, resMsg.answer) - // console.debug(resMsg.query) - // console.debug(resMsg.answer) - - if (resMsg.msgtype && resMsg.confidence > 0.8) { - switch (resMsg.msgtype) { - case 'text': - answer = { - messageType: types.Message.Text, - text: resMsg.answer || resMsg.msg[0].content, - } - break - case 'miniprogrampage': - answerJson = JSON.parse(resMsg.answer) - answer = { - messageType: types.Message.MiniProgram, - text: answerJson.miniprogrampage, - } - break - case 'image': - answerJson = JSON.parse(resMsg.answer) - answer = { - messageType: types.Message.Image, - text: answerJson.image, - } - break - case 'callback': - if (resMsg.answer_type === 'text') { - answer = { - messageType: types.Message.Text, - text: resMsg.answer, - } - } - break - case 'multimsg': - answer = { - messageType: types.Message.Text, - text:JSON.parse(resMsg.answer).multimsg[0], - } - break - default: - log.info(JSON.stringify({ msg: '没有命中关键字', nickName, query, roomid, topic })) - break - } - - if (sysConfig.DIFF_REPLY_ONOFF) { - if (room && (resMsg.skill_name !== topic && resMsg.skill_name !== '通用问题')) { - answer = {} - } - } - } - } catch (err) { - log.error(JSON.stringify(err)) - } - break - case 'ChatGPT': - try { - const api = new ChatGPTAPI({ sessionToken: config.ChatGPTSessionToken }) - // ensure the API is properly authenticated (optional) - await api.ensureAuth() - const t0 = new Date().getTime() - console.log('content: ', content) - // send a message and wait for the response - const response = await api.sendMessage(content) - // TODO: format response to compatible with wechat messages - const t1 = new Date().getTime() - console.log('response: ', response) - console.log('耗时: ', (t1 - t0) / 1000, 's') - // response is a markdown-formatted string - answer = { - messageType: types.Message.Text, - text: response, - } - } catch (err) { - console.error(err) - } - break - default: - console.debug('没有匹配') - break - } - - return answer - -} - -export { - wxai, - aibot, -} - -export default wxai diff --git a/WechatBot/chatflow/src/puppet-checker.ts b/WechatBot/chatflow/src/puppet-checker.ts deleted file mode 100644 index 07a034bb4..000000000 --- a/WechatBot/chatflow/src/puppet-checker.ts +++ /dev/null @@ -1,166 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -/* eslint-disable @typescript-eslint/no-unnecessary-condition */ -/* eslint-disable no-console */ -/* eslint-disable eqeqeq */ -/* eslint-disable camelcase */ -/* eslint-disable sort-keys */ -import 'dotenv/config.js' - -import { - Contact, - // Room, - Message, - ScanStatus, - WechatyBuilder, - log, - // types, -} from 'wechaty' - -import qrcodeTerminal from 'qrcode-terminal' -import WechatyVikaPlugin from './plugins/index.js' - -import configs from './config.js' -import { VikaBot } from './plugins/vika.js' - -let bot: any -let sysConfig: any - -if (process.env['VIKA_SPACENAME']) { - configs.VIKA_SPACENAME = process.env['VIKA_SPACENAME'] -} - -if (process.env['VIKA_TOKEN']) { - configs.VIKA_TOKEN = process.env['VIKA_TOKEN'] -} - -const vikaConfig = { - spaceName: configs.VIKA_SPACENAME, - token: configs.VIKA_TOKEN, -} -// console.debug(vikaConfig) -const vika = new VikaBot(vikaConfig) - -async function getConfig (vika: any) { - sysConfig = await vika.getConfig() - console.debug(sysConfig) - return sysConfig -} - -async function main () { - const isReady = await vika.checkInit('主程序载入系统配置成功,等待插件初始化...') - - if (!isReady) { - return - } - // 获取系统配置信息 - await getConfig(vika) - - const wechatyConfig: any = { - // 网页版微信 - 'wechaty-puppet-wechat': { - name: 'openai-qa-bot', - puppet: 'wechaty-puppet-wechat', - puppetOptions: { - uos: true, - }, - }, - // Windows桌面版微信 - 'wechaty-puppet-xp': { - name: 'openai-qa-bot', - puppet: 'wechaty-puppet-xp', - }, - // pad-local - 'wechaty-puppet-padlocal': { - name: 'openai-qa-bot', - puppet: 'wechaty-puppet-padlocal', - puppetOptions: { - token: sysConfig.puppetToken, - }, - }, - // wechaty-puppet-service - 'wechaty-puppet-service': { - name: 'openai-qa-bot', - puppet: 'wechaty-puppet-service', - puppetOptions: { - token: sysConfig.puppetToken, - }, - }, - } - - const ops = wechatyConfig[sysConfig.puppetName] - console.debug(ops) - - bot = WechatyBuilder.build(ops) - - async function onScan (qrcode: string, status: ScanStatus) { - console.debug(qrcode) - if (status === ScanStatus.Waiting || status === ScanStatus.Timeout) { - const qrcodeUrl = encodeURIComponent(qrcode) - - const qrcodeImageUrl = [ - 'https://wechaty.js.org/qrcode/', - qrcodeUrl, - ].join('') - log.info('StarterBot', 'onScan: %s(%s) - %s', ScanStatus[status], status, qrcodeImageUrl) - - qrcodeTerminal.generate(qrcode, { small: true }) // show qrcode on console - - } else { - log.info('StarterBot', 'onScan: %s(%s)', ScanStatus[status], status) - } - } - - async function onLogin (user: Contact) { - log.info('StarterBot', '%s login', user.payload) - await user.say('上线:' + new Date().toLocaleString()) - log.info(JSON.stringify(user.payload)) - - console.log('================================================\n\n登录启动成功,程序准备就绪\n\n================================================\n') - } - - function onLogout (user: Contact) { - log.info('StarterBot', '%s logout', user) - } - - async function onMessage (message: Message) { - - log.info('onMessage', JSON.stringify(message)) - console.debug('onMessage', JSON.stringify(message)) - - } - - async function roomJoin (room: { topic: () => any; id: any; say: (arg0: string, arg1: any) => any }, inviteeList: any[], inviter: any) { - const nameList = inviteeList.map(c => c.name()).join(',') - log.info(`Room ${await room.topic()} got new member ${nameList}, invited by ${inviter}`) - } - - const missingConfiguration = [] - - for (const key in configs) { - if (!configs[key] && ![ 'imOpen', 'DIFF_REPLY_ONOFF' ].includes(key)) { - missingConfiguration.push(key) - } - } - - if (missingConfiguration.length === 0) { - bot.use( - WechatyVikaPlugin(vika), - ) - bot.on('scan', onScan) - bot.on('login', onLogin) - bot.on('logout', onLogout) - bot.on('message', onMessage) - bot.on('room-join', roomJoin) - - bot.start() - .then(() => log.info('Starter Bot Started.')) - .catch((e: any) => log.error(JSON.stringify(e))) - - } else { - log.error('\n======================================\n\n', `错误提示:\n缺少${missingConfiguration.join()}配置参数,请检查config.js文件\n\n======================================`) - log.info(configs) - } - -} - -void main() diff --git a/WechatBot/chatflow/src/schemas/config.ts b/WechatBot/chatflow/src/schemas/config.ts deleted file mode 100644 index 66c6b850b..000000000 --- a/WechatBot/chatflow/src/schemas/config.ts +++ /dev/null @@ -1,88 +0,0 @@ -type AppConfig = { - config: Record; - isOpen: boolean; - }; - - type AppConfigs = { - [appName: string]: AppConfig; - }; - - type BotConfig = { - adminRoomId: string; - adminRoomTopic: string; - apps: AppConfigs; - bot: { - puppet: string; - token: string; - VIKA_TOKEN?: string - VIKA_SPACENAME?: string - [key : string]:any - }; - command: { - contact: Record; - room: Record; - bot: Record; - }; - }; - - type ContactConfig = { - [contactId: string]: { - app: string; - apps: AppConfigs; - }; - }; - - type RoomConfig = { - [roomId: string]: { - app: string; - apps: AppConfigs; - }; - }; - - type Config = { - botConfig: BotConfig; - contactConfig: ContactConfig; - roomConfig: RoomConfig; - }; - - type AIType = 'WxOpenai' | string; - -interface SysConfig { - adminRoomTopic:string - welcomeList: string[]; - roomWhiteList: string[]; - contactWhiteList: string[]; - puppetName: string; - puppetToken: string; - aiType: AIType; - WX_TOKEN: string; - EncodingAESKey: string; - ChatGPTAEmail: string; - ChatGPTAPassword: string; - ChatGPTASessionToken: string; - mqttUsername: string; - mqttPassword: string; - mqttEndpoint: string; - mqttPort: string; - WEB_HOOK: string; - WX_OPENAI_ONOFF: boolean; - AT_AHEAD: boolean; - DIFF_REPLY_ONOFF: boolean; - roomWhiteListOpen: boolean; - contactWhiteListOpen: boolean; - VIKA_ONOFF: boolean; - WEB_HOOK_ONOFF: boolean; - mqtt_PUB_ONOFF: boolean; - mqtt_SUB_ONOFF: boolean; - imOpen: boolean; -} - -export { - type AppConfig, - type AppConfigs, - type BotConfig, - type ContactConfig, - type RoomConfig, - type Config, - type SysConfig, -} diff --git a/WechatBot/chatflow/src/schemas/mod.ts b/WechatBot/chatflow/src/schemas/mod.ts deleted file mode 100644 index 8bb58f9aa..000000000 --- a/WechatBot/chatflow/src/schemas/mod.ts +++ /dev/null @@ -1,19 +0,0 @@ -import type { - AppConfig, - AppConfigs, - BotConfig, - ContactConfig, - RoomConfig, - Config, - SysConfig, -} from './config.js' - -export { - type AppConfig, - type AppConfigs, - type BotConfig, - type ContactConfig, - type RoomConfig, - type Config, - type SysConfig, -} diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/.gitignore b/WechatBot/chatflow/src/sdk/openai-sdk/.gitignore deleted file mode 100644 index 090ab8a83..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/.gitignore +++ /dev/null @@ -1,11 +0,0 @@ -node_modules/ -app/ -dist/ -logs/ -.idea/ -./pm2 -protobuf/protobuf.js -protobuf/protobuf.d.ts -.DS_Store -npm-debug.log -config/test diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/README.md b/WechatBot/chatflow/src/sdk/openai-sdk/README.md deleted file mode 100644 index 59bfa6737..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/README.md +++ /dev/null @@ -1,173 +0,0 @@ -[![npm version](https://badge.fury.io/js/openai-sdk.svg)](https://www.npmjs.com/package/openai-sdk) -[![Actions status | kunl/openai-sdk](https://github.com/kunl/openai-sdk/workflows/Node%20CI/badge.svg)](https://github.com/kunl/openai-sdk/actions?actions?workflow=Node%20CI) - - -# 快速开始 - -## 1. 安装openai-sdk - -```js - - npm i openai-sdk - import openai-sdk from 'openai-sdk' - -``` - -### 2. 引入并初始化相关参数 - -```js - - import openai from 'openai-sdk' - let { - init, - chat, - nlp - } = openai - init({ - TOKEN: "", - EncodingAESKey: "" - }) - -``` - -### 3. 聊天接口 - -```js - - chat({ - username: "uid", - msg: "你好吗" - }).then(res => { - console.log('机器人返回:', res) - }, res => { - console.log('reject res:', res) - }).catch(e => { - console.log('error', e) - }) - -``` - -### 4.nlp相关接口 - -#### 4.1 分词 - -```js - // 分词 - nlp.tokenize({ - uid: "uid", - data: { - q: "我的家乡叫中国。" - } - }).then(res => { - console.log('词法分析返回:', res) - }, res => { - console.log('reject res:', res) - }).catch(e => { - console.log('error', e) - }) - - // 分词接口返回值 - { - words: ['我', '的', '家乡', '叫', '中国', '。'], - POSs: [27, 30, 16, 31, 20, 34], - words_mix: ['我的家乡', '叫', '中国', '。'], - POSs_mix: [16, 31, 20, 34], - entities: ['我的家乡', '我的', '中国'], - entity_types: [0, 0, 100000012] - } -``` - -#### 4.2 数字日期时间识别 - -```js - // 数字日期时间识别 - nlp.ner({ - uid: "uid", - data: { - q: "帮我订两张后天上午的火车票" - } - }).then(res => { - console.log('数字日期时间识别返回:', res) - }, res => { - console.log('reject res:', res) - }).catch(e => { - console.log('error', e) - }) - - // 数字日期时间识别接口返回值 - [ - { - type: 'number', - span: [3, 4], - text: '两', - norm: '2' - }, - { - type: 'datetime_interval', - span: [5, 9], - text: '后天上午', - norm: '2019-11-23 08:00:00~2019-11-23 11:59:59' - } - ] -``` - -#### 4.3 情感分析 - -```js - // 情感分析 - nlp.sentiment({ - uid: "uid", - data: { - q: "恭喜小张脱单成功", - mode: "6class" - } - }).then(res => { - console.log('情感分析返回:', res) - }, res => { - console.log('reject res:', res) - }) - .catch(e => { - console.log('error', e) - }) - - // 情感分析接口返回值 - { - error: null, - result: [ - ['高兴', 0.9011998772621155], - ['无情感', 0.08493703603744507], - ['喜欢', 0.011011340655386448], - ['悲伤', 0.0015742022078484297], - ['厌恶', 0.0006485909689217806], - ['愤怒', 0.000628964276984334] - ] - } -``` -#### 4.4 敏感词识别 - -```js - // 敏感词识别 - nlp.sensitive({ - uid: "uid", - data: { - q: "楼主真垃圾,祝你早日死全家" - } - }).then(res => { - console.log('敏感词识别返回:', res) - }, res => { - console.log('reject res:', res) - }).catch(e => { - console.log('error', e) - }) - - // 敏感词识别接口返回值 - { - error: null, - result: [ - ['dirty_curse', 0.9999999900000001], - ['other', 9.9999999e-9], - ['dirty_politics', 0], - ['dirty_porno', 0] - ] - } -``` diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/example/index.ts b/WechatBot/chatflow/src/sdk/openai-sdk/example/index.ts deleted file mode 100644 index 9aece7f7a..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/example/index.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* eslint-disable promise/always-return */ -/* eslint-disable no-console */ -/* eslint-disable import/extensions */ -/* eslint-disable sort-keys */ -import { - init, - chat, - nlp, -} from '../index' - -init({ - TOKEN: 'PWj9xdSdGU3PPnqUUrTf7uGgQ9Jvn7', - EncodingAESKey: '4jzHSI2p3EHXh3qBao5onJ39HcOO00ZoiGVNVvjFkPW', -}) - -chat({ - username: 'uid', - msg: '你好吗', -}).then(res => { - console.log('机器人返回:', res) -}, res => { - console.log('reject res:', res) -}).catch(e => { - console.log('error', e) -}) -// 分词 -nlp.tokenize({ - uid: 'uid', - data: { - q: '我的家乡叫中国。', - }, -}).then(res => { - console.log('词法分析返回:', res) -}, res => { - console.log('reject res:', res) -}).catch(e => { - console.log('error', e) -}) - -// 数字日期时间识别 -nlp.ner({ - uid: 'uid', - data: { - q: '帮我订两张后天上午的火车票', - }, -}).then(res => { - console.log('数字日期时间识别返回:', res) -}, res => { - console.log('reject res:', res) -}).catch(e => { - console.log('error', e) -}) - -// 情感分析 -nlp.sentiment({ - uid: 'uid', - data: { - q: '恭喜小张脱单成功', - mode: '6class', - }, -}).then(res => { - console.log('情感分析返回:', res) -}, res => { - console.log('reject res:', res) -}).catch(e => { - console.log('error', e) -}) - -// 敏感词识别 -nlp.sensitive({ - uid: 'uid', - data: { - q: '楼主真垃圾,祝你早日死全家', - }, -}).then(res => { - console.log('敏感词识别返回:', res) -}, res => { - console.log('reject res:', res) -}).catch(e => { - console.log('error', e) -}) diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/index.ts b/WechatBot/chatflow/src/sdk/openai-sdk/index.ts deleted file mode 100644 index 92a073ae7..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/index.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* eslint-disable import/extensions */ -// import { type } from 'os' - -export { chat, chatAibot } from './lib/chat' -export { nlp } from './lib/nlp' -export { auth as init } from './lib/auth' -export type { QueryData } from './lib/query' -export { transferNLP, transferAIBOT, genToken } from './lib/util' diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/lib/API.ts b/WechatBot/chatflow/src/sdk/openai-sdk/lib/API.ts deleted file mode 100644 index 651ed7434..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/lib/API.ts +++ /dev/null @@ -1,24 +0,0 @@ -export const AIBOT = 'https://openai.weixin.qq.com/openapi/aibot' -export const CHAT = 'https://openai.weixin.qq.com/openapi/message' -export const TOKENIZE = 'https://openai.weixin.qq.com/openapi/nlp/tokenize' -export const NER = 'https://openai.weixin.qq.com/openapi/nlp/ner' -export const SENTIMENT = 'https://openai.weixin.qq.com/openapi/nlp/sentiment' -export const SENSITIVE = 'https://openai.weixin.qq.com/openapi/nlp/sensitive' - -export type ApiTypes = { - AIBOT:string, - CHAT: string, - TOKENIZE: string, - NER: string, - SENTIMENT: string, - SENSITIVE: string -}; - -export const api = { - AIBOT, - CHAT, - NER, - SENSITIVE, - SENTIMENT, - TOKENIZE, -} diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/lib/auth.ts b/WechatBot/chatflow/src/sdk/openai-sdk/lib/auth.ts deleted file mode 100644 index 411372fb8..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/lib/auth.ts +++ /dev/null @@ -1,14 +0,0 @@ -let TOKEN = '' -let EncodingAESKey = '' - -interface AuthOptions { - TOKEN: string; - EncodingAESKey: string; -} - -function auth (opt: AuthOptions) { - TOKEN = opt.TOKEN - EncodingAESKey = opt.EncodingAESKey -} - -export { auth, TOKEN, EncodingAESKey } diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/lib/chat.ts b/WechatBot/chatflow/src/sdk/openai-sdk/lib/chat.ts deleted file mode 100644 index 4f6800f98..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/lib/chat.ts +++ /dev/null @@ -1,17 +0,0 @@ -/* eslint-disable import/extensions */ -import type { ResponseCHAT } from './response' -import { - transferNLP, - transferAIBOT, -} from './util' -import type { QueryData } from './query' - -function chat (query: QueryData) { - return transferNLP('CHAT', query) as Promise -} - -function chatAibot (query: QueryData) { - return transferAIBOT('AIBOT', query) as Promise -} - -export { chat, chatAibot } diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/lib/nlp.ts b/WechatBot/chatflow/src/sdk/openai-sdk/lib/nlp.ts deleted file mode 100644 index 1593adb70..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/lib/nlp.ts +++ /dev/null @@ -1,23 +0,0 @@ -/* eslint-disable sort-keys */ -/* eslint-disable import/extensions */ -import type { ResponseNER, ResponseSENTIMENT, ResponseSENSITIVE } from './response' -import { transferNLP } from './util' -import type { QueryData } from './query' - -function tokenize (query: QueryData) { - return transferNLP('TOKENIZE', query) -} - -function ner (query: QueryData) { - return transferNLP('NER', query) as Promise -} - -function sentiment (query: QueryData) { - return transferNLP('SENTIMENT', query) as Promise -} - -function sensitive (query: QueryData) { - return transferNLP('SENSITIVE', query) as Promise -} - -export const nlp = { tokenize, ner, sentiment, sensitive } diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/lib/query.ts b/WechatBot/chatflow/src/sdk/openai-sdk/lib/query.ts deleted file mode 100644 index cfa9f96fc..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/lib/query.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* eslint-disable camelcase */ -/** - CHAT: string, - TOKENIZE: string, - NER: string, - SENTIMENT: string, - SENSITIVE: string - */ - -interface baseQueryType { - uid: string; - data: { - q: string; - } -} - -interface CHATQueryData { - username: string; - msg: string; -} - -interface USERQueryData { - username: string; - userid: string; -} - -interface AIBOTQueryData{ - signature:string; - query:string; - first_priority_skills?:string[]; - second_priority_skills?:string[] -} - -interface TOKENIZEQueryData extends baseQueryType { - -} -interface NERQueryData extends baseQueryType { - -} - -interface SENTIMENTQueryData extends baseQueryType { - data: { - q: string; - mode: string; - } -} - -interface SENSITIVEQueryData extends baseQueryType { } - -export type QueryData = CHATQueryData | TOKENIZEQueryData | NERQueryData | SENTIMENTQueryData | SENSITIVEQueryData | USERQueryData|AIBOTQueryData; diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/lib/response.ts b/WechatBot/chatflow/src/sdk/openai-sdk/lib/response.ts deleted file mode 100644 index 37d85f707..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/lib/response.ts +++ /dev/null @@ -1,116 +0,0 @@ -/* eslint-disable camelcase */ -/** - CHAT: string, - TOKENIZE: string, - NER: string, - SENTIMENT: string, - SENSITIVE: string - */ - -export interface ResponseCHAT { - ans_node_id: number, - ans_node_name: string, - query:string, - answer: string, - answer_open: number, - answer_type: string, - article: string, - bid_stat: { - curr_time: string, - err_msg: string, - latest_time: string, - latest_valid: true, - up_ret: number - }, - confidence: number, - create_time: string, - dialog_status: string, - event: string, - from_user_name: string, - intent_confirm_status: string, - list_options: false, - msg: [ - { - ans_node_id: 6666, - ans_node_name: string, - article: string, - confidence: 1, - content: string, - debug_info: string, - event: string, - list_options: false, - msg_type: string, - opening: string, - resp_title: string, - scene_status: string, - session_id: string, - status: string, - take_options_only: false - } - ], - msgtype:string, - opening: string, - ret: number, - scene_status: string, - session_id: string, - skill_name:string, - slot_info: [], - slots_info: [], - status: string, - take_options_only: boolean, - title: string, - to_user_name: string - -} - -export interface ResponseTOKENIZE { - words: string[], - POSs: number[], - words_mix: string[], - POSs_mix: number[], - entities: string[], - entity_types: number[], -} - -type NER = { - type: string, - span: number[], - text: string, - norm: string -} - -export interface ResponseNER { - error: null, - entities: NER[] -} - -type SENTIMENT = - '高兴' | - '无情感' | - '喜欢' | - '悲伤' | - '厌恶' | - '愤怒' - ; - -export interface ResponseSENTIMENT { - error: null, - result: [ - [keyof SENTIMENT, number], - ] -} - -type SENSITIVE = - 'dirty_curse' | - 'other' | - 'dirty_politics' | - 'dirty_porno' - ; -export interface ResponseSENSITIVE { - error: null, - result: [ - [keyof SENSITIVE, number] - ] -} - -export type ResponseData = ResponseCHAT | ResponseNER | ResponseSENSITIVE | ResponseSENTIMENT | ResponseTOKENIZE; diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/lib/util.ts b/WechatBot/chatflow/src/sdk/openai-sdk/lib/util.ts deleted file mode 100644 index 76155fa64..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/lib/util.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* eslint-disable @typescript-eslint/no-misused-promises */ -/* eslint-disable no-async-promise-executor */ -/* eslint-disable import/extensions */ -/* eslint-disable no-console */ -import type { ResponseData } from './response' -import { TOKEN, EncodingAESKey } from './auth' -import { api, ApiTypes } from './API' -import type { QueryData } from './query' -const nJwt = require('njwt') -const request = require('request') - -function checkInit () { - let error = '' - if (!TOKEN) { - error = 'TOKEN不能为空,请先调用init方法初始化' - } - if (!EncodingAESKey) { - error = 'EncodingAESKey不能为空,请先调用init方法初始化' - } - return error -} - -function genToken (query: QueryData) { - const jwt = nJwt.create(query, EncodingAESKey, 'HS256') - const token = jwt.compact() - return token -} - -async function transferAIBOT (nlpType: T, query: QueryData) { - return new Promise(async (resolve, reject) => { - const error = checkInit() - if (error) { - reject(error) - return - } - await request.post(`${api[nlpType]}/${TOKEN}`, { - json: query, - }, (error: any, stderr: any, stdout: ResponseData) => { - console.debug(stderr) - if (error) { - reject(error) - return - } - resolve(stdout) - }) - }) -} - -async function transferNLP (nlpType: T, query: QueryData) { - return new Promise(async (resolve, reject) => { - const error = checkInit() - if (error) { - reject(error) - return - } - const token = genToken(query) - await request.post(`${api[nlpType]}/${TOKEN}`, { - json: { - query: token, - }, - }, (error: any, stderr: any, stdout: ResponseData) => { - console.debug(stderr) - if (error) { - reject(error) - return - } - resolve(stdout) - }) - }) -} - -export { - checkInit, - genToken, - transferNLP, - transferAIBOT, -} diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/package.json b/WechatBot/chatflow/src/sdk/openai-sdk/package.json deleted file mode 100644 index d3a98a4e2..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "openai-sdk", - "version": "1.0.0", - "description": "http://openai.weixin.qq.com,AI,智能对话", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "scripts": { - "start": "ts-node-dev --respawn --transpileOnly --prefer-ts example/index.ts", - "test": "ts-mocha --paths test/index.ts", - "build": "tsc" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/WeChatAI/openai-sdk.git" - }, - "bugs": { - "url": "https://github.com/WeChatAI/openai-sdk/issues" - }, - "homepage": "https://github.com/WeChatAI/openai-sdk#readme", - "keywords": [ - "http://openai.weixin.qq.com", - "AI", - "智能对话" - ], - "author": "lindanli, zhang-ning", - "license": "MIT", - "dependencies": { - "njwt": "^1.0.0", - "request": "^2.88.0" - }, - "devDependencies": { - "@types/chai": "^4.2.7", - "@types/mocha": "^5.2.7", - "@types/request": "^2.48.4", - "chai": "^4.2.0", - "mocha": "^6.2.2", - "ts-mocha": "^6.0.0", - "ts-node-dev": "^1.0.0-pre.44", - "typescript": "^4.4.4" - } -} diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/test/index.ts b/WechatBot/chatflow/src/sdk/openai-sdk/test/index.ts deleted file mode 100644 index 8e9208e10..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/test/index.ts +++ /dev/null @@ -1,89 +0,0 @@ -/* eslint-disable @typescript-eslint/no-unnecessary-condition */ -/* eslint-disable no-undef */ -/* eslint-disable import/extensions */ -/* eslint-disable sort-keys */ -import { expect } from 'chai' -import { - init, - chat, - nlp, - chatAibot, - genToken, -} from '../index' - -const { tokenize, ner, sentiment, sensitive } = nlp -init({ - TOKEN: '', - EncodingAESKey: '', -}) -describe('chat', () => { - it('test chat', async () => { - const chatRes = await chat({ - username: 'uid', - msg: '谁是超哥', - }) - expect(chatRes.title).to.equal('谁是超哥') - }) -}) - -describe('chatAibot', () => { - it('test chatAibot', async () => { - const signature = genToken({ - username: '超哥', - userid: '12345', - }) - const chatRes = await chatAibot({ - signature, - query:'谁是超哥', - first_priority_skills:[ 'Moments' ], - }) - expect(chatRes.ans_node_name).to.equal('Moments') - }) -}) - -describe('nlp', () => { - it('test tokenize', async () => { - const tokenizeRes = await tokenize({ - uid: 'uid', - data: { - q: '我的家乡叫中国。', - }, - }) - expect(tokenizeRes).to.have.property('words').with.lengthOf(6) - }) - - it('test ner', async () => { - const nerRes = await ner({ - uid: 'uid', - data: { - q: '帮我订两张后天上午的火车票', - }, - }) - expect(nerRes).to.have.property('entities').with.lengthOf(2) - if (nerRes['entities'] && nerRes['entities'][0]) { - expect(nerRes['entities'][0]['type']).to.equal('number') - } - }) - - it('test sentiment', async () => { - const sentimentRes = await sentiment({ - uid: 'uid', - data: { - q: '恭喜小张脱单成功', - mode: '6class', - }, - }) - expect(sentimentRes).to.have.property('result').with.lengthOf(6) - }) - - it('test sensitive', async () => { - const sensitiveRes = await sensitive({ - uid: 'uid', - data: { - q: '楼主真垃圾,祝你早日死全家', - }, - }) - expect(sensitiveRes).to.have.property('result').with.lengthOf(4) - }) - -}) diff --git a/WechatBot/chatflow/src/sdk/openai-sdk/tsconfig.json b/WechatBot/chatflow/src/sdk/openai-sdk/tsconfig.json deleted file mode 100644 index 369426909..000000000 --- a/WechatBot/chatflow/src/sdk/openai-sdk/tsconfig.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "compilerOptions": { - /* Basic Options */ - "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */ - "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ - "lib": [ - "ES2015" - ], /* Specify library files to be included in the compilation. */ - // "allowJs": true, /* Allow javascript files to be compiled. */ - // "checkJs": true, /* Report errors in .js files. */ - // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ - // "outFile": "./", /* Concatenate and emit output to single file. */ - "outDir": "./dist", /* Redirect output structure to the directory. */ - // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ - // "composite": true, /* Enable project compilation */ - // "removeComments": true, /* Do not emit comments to output. */ - // "noEmit": true, /* Do not emit outputs. */ - // "importHelpers": true, /* Import emit helpers from 'tslib'. */ - // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ - // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ - - /* Strict Type-Checking Options */ - "strict": true, /* Enable all strict type-checking options. */ - // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ - // "strictNullChecks": true, /* Enable strict null checks. */ - // "strictFunctionTypes": true, /* Enable strict checking of function types. */ - // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ - // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ - // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ - // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ - - /* Additional Checks */ - // "noUnusedLocals": true, /* Report errors on unused locals. */ - // "noUnusedParameters": true, /* Report errors on unused parameters. */ - // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ - // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - - /* Module Resolution Options */ - // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ - // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ - // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ - // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ - // "typeRoots": [], /* List of folders to include type definitions from. */ - // "types": [], /* Type declaration files to be included in compilation. */ - // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ - "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ - - /* Source Map Options */ - // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ - // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ - // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ - - /* Experimental Options */ - // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ - // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ - } -} \ No newline at end of file diff --git a/WechatBot/chatflow/src/sdk/openai/example/index.d.ts b/WechatBot/chatflow/src/sdk/openai/example/index.d.ts deleted file mode 100644 index 336ce12bb..000000000 --- a/WechatBot/chatflow/src/sdk/openai/example/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {} diff --git a/WechatBot/chatflow/src/sdk/openai/example/index.js b/WechatBot/chatflow/src/sdk/openai/example/index.js deleted file mode 100755 index dea56526c..000000000 --- a/WechatBot/chatflow/src/sdk/openai/example/index.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var index_1 = require("../index"); -(0, index_1.init)({ - TOKEN: 'PWj9xdSdGU3PPnqUUrTf7uGgQ9Jvn7', - EncodingAESKey: '4jzHSI2p3EHXh3qBao5onJ39HcOO00ZoiGVNVvjFkPW' -}); -(0, index_1.chat)({ - username: "uid", - msg: "你好吗" -}).then(function (res) { - console.log('机器人返回:', res); -}, function (res) { - console.log('reject res:', res); -}).catch(function (e) { - console.log('error', e); -}); -// 分词 -index_1.nlp.tokenize({ - uid: "uid", - data: { - q: "我的家乡叫中国。" - } -}).then(function (res) { - console.log('词法分析返回:', res); -}, function (res) { - console.log('reject res:', res); -}).catch(function (e) { - console.log('error', e); -}); -// 数字日期时间识别 -index_1.nlp.ner({ - uid: "uid", - data: { - q: "帮我订两张后天上午的火车票" - } -}).then(function (res) { - console.log('数字日期时间识别返回:', res); -}, function (res) { - console.log('reject res:', res); -}).catch(function (e) { - console.log('error', e); -}); -// 情感分析 -index_1.nlp.sentiment({ - uid: "uid", - data: { - q: "恭喜小张脱单成功", - mode: "6class" - } -}).then(function (res) { - console.log('情感分析返回:', res); -}, function (res) { - console.log('reject res:', res); -}).catch(function (e) { - console.log('error', e); -}); -// 敏感词识别 -index_1.nlp.sensitive({ - uid: "uid", - data: { - q: "楼主真垃圾,祝你早日死全家" - } -}).then(function (res) { - console.log('敏感词识别返回:', res); -}, function (res) { - console.log('reject res:', res); -}).catch(function (e) { - console.log('error', e); -}); diff --git a/WechatBot/chatflow/src/sdk/openai/index.d.ts b/WechatBot/chatflow/src/sdk/openai/index.d.ts deleted file mode 100644 index b5a60fb03..000000000 --- a/WechatBot/chatflow/src/sdk/openai/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* eslint-disable import/extensions */ -export { chat, chatAibot } from './lib/chat' -export { nlp } from './lib/nlp' -export { auth as init } from './lib/auth' -export { QueryData } from './lib/query' -export { transferNLP, transferAIBOT, genToken } from './lib/util' diff --git a/WechatBot/chatflow/src/sdk/openai/index.js b/WechatBot/chatflow/src/sdk/openai/index.js deleted file mode 100755 index 005f4af47..000000000 --- a/WechatBot/chatflow/src/sdk/openai/index.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.genToken = exports.transferAIBOT = exports.transferNLP = exports.init = exports.nlp = exports.chatAibot = exports.chat = void 0; -var chat_1 = require("./lib/chat"); -Object.defineProperty(exports, "chat", { enumerable: true, get: function () { return chat_1.chat; } }); -Object.defineProperty(exports, "chatAibot", { enumerable: true, get: function () { return chat_1.chatAibot; } }); -var nlp_1 = require("./lib/nlp"); -Object.defineProperty(exports, "nlp", { enumerable: true, get: function () { return nlp_1.nlp; } }); -var auth_1 = require("./lib/auth"); -Object.defineProperty(exports, "init", { enumerable: true, get: function () { return auth_1.auth; } }); -var util_1 = require("./lib/util"); -Object.defineProperty(exports, "transferNLP", { enumerable: true, get: function () { return util_1.transferNLP; } }); -Object.defineProperty(exports, "transferAIBOT", { enumerable: true, get: function () { return util_1.transferAIBOT; } }); -Object.defineProperty(exports, "genToken", { enumerable: true, get: function () { return util_1.genToken; } }); diff --git a/WechatBot/chatflow/src/sdk/openai/lib/API.d.ts b/WechatBot/chatflow/src/sdk/openai/lib/API.d.ts deleted file mode 100644 index 5c11eb022..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/API.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -export declare const AIBOT = 'https://openai.weixin.qq.com/openapi/aibot' -export declare const CHAT = 'https://openai.weixin.qq.com/openapi/message' -export declare const TOKENIZE = 'https://openai.weixin.qq.com/openapi/nlp/tokenize' -export declare const NER = 'https://openai.weixin.qq.com/openapi/nlp/ner' -export declare const SENTIMENT = 'https://openai.weixin.qq.com/openapi/nlp/sentiment' -export declare const SENSITIVE = 'https://openai.weixin.qq.com/openapi/nlp/sensitive' -export declare type ApiTypes = { - AIBOT: string; - CHAT: string; - TOKENIZE: string; - NER: string; - SENTIMENT: string; - SENSITIVE: string; -}; -export declare const api: { - AIBOT: string; - CHAT: string; - NER: string; - SENSITIVE: string; - SENTIMENT: string; - TOKENIZE: string; -} diff --git a/WechatBot/chatflow/src/sdk/openai/lib/API.js b/WechatBot/chatflow/src/sdk/openai/lib/API.js deleted file mode 100755 index 4dd319a0d..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/API.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.api = exports.SENSITIVE = exports.SENTIMENT = exports.NER = exports.TOKENIZE = exports.CHAT = exports.AIBOT = void 0; -exports.AIBOT = 'https://openai.weixin.qq.com/openapi/aibot'; -exports.CHAT = 'https://openai.weixin.qq.com/openapi/message'; -exports.TOKENIZE = 'https://openai.weixin.qq.com/openapi/nlp/tokenize'; -exports.NER = 'https://openai.weixin.qq.com/openapi/nlp/ner'; -exports.SENTIMENT = 'https://openai.weixin.qq.com/openapi/nlp/sentiment'; -exports.SENSITIVE = 'https://openai.weixin.qq.com/openapi/nlp/sensitive'; -exports.api = { - AIBOT: exports.AIBOT, - CHAT: exports.CHAT, - NER: exports.NER, - SENSITIVE: exports.SENSITIVE, - SENTIMENT: exports.SENTIMENT, - TOKENIZE: exports.TOKENIZE, -}; diff --git a/WechatBot/chatflow/src/sdk/openai/lib/auth.d.ts b/WechatBot/chatflow/src/sdk/openai/lib/auth.d.ts deleted file mode 100644 index 943e7e950..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/auth.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare let TOKEN: string -declare let EncodingAESKey: string -interface AuthOptions { - TOKEN: string; - EncodingAESKey: string; -} -declare function auth(opt: AuthOptions): void; -export { auth, TOKEN, EncodingAESKey } diff --git a/WechatBot/chatflow/src/sdk/openai/lib/auth.js b/WechatBot/chatflow/src/sdk/openai/lib/auth.js deleted file mode 100755 index 10db913de..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/auth.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EncodingAESKey = exports.TOKEN = exports.auth = void 0; -var TOKEN = ''; -exports.TOKEN = TOKEN; -var EncodingAESKey = ''; -exports.EncodingAESKey = EncodingAESKey; -function auth(opt) { - exports.TOKEN = TOKEN = opt.TOKEN; - exports.EncodingAESKey = EncodingAESKey = opt.EncodingAESKey; -} -exports.auth = auth; diff --git a/WechatBot/chatflow/src/sdk/openai/lib/chat.d.ts b/WechatBot/chatflow/src/sdk/openai/lib/chat.d.ts deleted file mode 100644 index 6710af3f2..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/chat.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/* eslint-disable import/extensions */ -import { ResponseCHAT } from './response' -import { QueryData } from './query' -declare function chat(query: QueryData): Promise; -declare function chatAibot(query: QueryData): Promise; -export { chat, chatAibot } diff --git a/WechatBot/chatflow/src/sdk/openai/lib/chat.js b/WechatBot/chatflow/src/sdk/openai/lib/chat.js deleted file mode 100755 index 59858962b..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/chat.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.chatAibot = exports.chat = void 0; -var util_1 = require("./util"); -function chat(query) { - return (0, util_1.transferNLP)('CHAT', query); -} -exports.chat = chat; -function chatAibot(query) { - return (0, util_1.transferAIBOT)('AIBOT', query); -} -exports.chatAibot = chatAibot; diff --git a/WechatBot/chatflow/src/sdk/openai/lib/nlp.d.ts b/WechatBot/chatflow/src/sdk/openai/lib/nlp.d.ts deleted file mode 100644 index f94ec3f8a..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/nlp.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* eslint-disable import/extensions */ -import { ResponseNER, ResponseSENTIMENT, ResponseSENSITIVE } from './response' -import { QueryData } from './query' -declare function tokenize(query: QueryData): Promise; -declare function ner(query: QueryData): Promise; -declare function sentiment(query: QueryData): Promise; -declare function sensitive(query: QueryData): Promise; -export declare const nlp: { - tokenize: typeof tokenize; - ner: typeof ner; - sentiment: typeof sentiment; - sensitive: typeof sensitive; -} -export {} diff --git a/WechatBot/chatflow/src/sdk/openai/lib/nlp.js b/WechatBot/chatflow/src/sdk/openai/lib/nlp.js deleted file mode 100755 index b6155c15b..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/nlp.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.nlp = void 0; -var util_1 = require("./util"); -function tokenize(query) { - return (0, util_1.transferNLP)('TOKENIZE', query); -} -function ner(query) { - return (0, util_1.transferNLP)('NER', query); -} -function sentiment(query) { - return (0, util_1.transferNLP)('SENTIMENT', query); -} -function sensitive(query) { - return (0, util_1.transferNLP)('SENSITIVE', query); -} -exports.nlp = { tokenize: tokenize, ner: ner, sentiment: sentiment, sensitive: sensitive }; diff --git a/WechatBot/chatflow/src/sdk/openai/lib/query.d.ts b/WechatBot/chatflow/src/sdk/openai/lib/query.d.ts deleted file mode 100644 index d711e30af..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/query.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - CHAT: string, - TOKENIZE: string, - NER: string, - SENTIMENT: string, - SENSITIVE: string - */ -interface baseQueryType { - uid: string; - data: { - q: string; - }; -} -interface CHATQueryData { - username: string; - msg: string; -} -interface USERQueryData { - username: string; - userid: string; -} -interface AIBOTQueryData { - signature: string; - query: string; - first_priority_skills?: string[]; - second_priority_skills?: string[]; -} -interface TOKENIZEQueryData extends baseQueryType { -} -interface NERQueryData extends baseQueryType { -} -interface SENTIMENTQueryData extends baseQueryType { - data: { - q: string; - mode: string; - }; -} -interface SENSITIVEQueryData extends baseQueryType { -} -export declare type QueryData = CHATQueryData | TOKENIZEQueryData | NERQueryData | SENTIMENTQueryData | SENSITIVEQueryData | USERQueryData | AIBOTQueryData; -export {} diff --git a/WechatBot/chatflow/src/sdk/openai/lib/query.js b/WechatBot/chatflow/src/sdk/openai/lib/query.js deleted file mode 100755 index d6f839b0c..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/query.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -/* eslint-disable camelcase */ -/** - CHAT: string, - TOKENIZE: string, - NER: string, - SENTIMENT: string, - SENSITIVE: string - */ -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/WechatBot/chatflow/src/sdk/openai/lib/response.d.ts b/WechatBot/chatflow/src/sdk/openai/lib/response.d.ts deleted file mode 100644 index 394b888f0..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/response.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -/** - CHAT: string, - TOKENIZE: string, - NER: string, - SENTIMENT: string, - SENSITIVE: string - */ -export interface ResponseCHAT { - [x: string]: any; - query:string; - ans_node_id: number; - ans_node_name: string; - answer: string; - answer_open: number; - answer_type: string; - article: string; - bid_stat: { - curr_time: string; - err_msg: string; - latest_time: string; - latest_valid: true; - up_ret: number; - }; - confidence: number; - create_time: string; - dialog_status: string; - event: string; - from_user_name: string; - intent_confirm_status: string; - list_options: false; - msg: [ - { - ans_node_id: 6666; - ans_node_name: string; - article: string; - confidence: 1; - content: string; - debug_info: string; - event: string; - list_options: false; - msg_type: string; - opening: string; - resp_title: string; - scene_status: string; - session_id: string; - status: string; - take_options_only: false; - } - ]; - msgtype: string; - opening: string; - ret: number; - scene_status: string; - session_id: string; - skill_name: string; - slot_info: []; - slots_info: []; - status: string; - take_options_only: boolean; - title: string; - to_user_name: string; -} -export interface ResponseTOKENIZE { - words: string[]; - POSs: number[]; - words_mix: string[]; - POSs_mix: number[]; - entities: string[]; - entity_types: number[]; -} -declare type NER = { - type: string; - span: number[]; - text: string; - norm: string; -}; -export interface ResponseNER { - error: null; - entities: NER[]; -} -declare type SENTIMENT = '高兴' | '无情感' | '喜欢' | '悲伤' | '厌恶' | '愤怒'; -export interface ResponseSENTIMENT { - error: null; - result: [ - [ - keyof SENTIMENT, - number - ] - ]; -} -declare type SENSITIVE = 'dirty_curse' | 'other' | 'dirty_politics' | 'dirty_porno'; -export interface ResponseSENSITIVE { - error: null; - result: [ - [ - keyof SENSITIVE, - number - ] - ]; -} -export declare type ResponseData = ResponseCHAT | ResponseNER | ResponseSENSITIVE | ResponseSENTIMENT | ResponseTOKENIZE; -export {} diff --git a/WechatBot/chatflow/src/sdk/openai/lib/response.js b/WechatBot/chatflow/src/sdk/openai/lib/response.js deleted file mode 100755 index d6f839b0c..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/response.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -/* eslint-disable camelcase */ -/** - CHAT: string, - TOKENIZE: string, - NER: string, - SENTIMENT: string, - SENSITIVE: string - */ -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/WechatBot/chatflow/src/sdk/openai/lib/util.d.ts b/WechatBot/chatflow/src/sdk/openai/lib/util.d.ts deleted file mode 100644 index 072f7ae70..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/util.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/* eslint-disable import/extensions */ -import { ApiTypes } from './API' -import { QueryData } from './query' -declare function checkInit(): string; -declare function genToken(query: QueryData): any; -declare function transferAIBOT(nlpType: T, query: QueryData): Promise; -declare function transferNLP(nlpType: T, query: QueryData): Promise; -export { checkInit, genToken, transferNLP, transferAIBOT } diff --git a/WechatBot/chatflow/src/sdk/openai/lib/util.js b/WechatBot/chatflow/src/sdk/openai/lib/util.js deleted file mode 100755 index fe8f1bacd..000000000 --- a/WechatBot/chatflow/src/sdk/openai/lib/util.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.transferAIBOT = exports.transferNLP = exports.genToken = exports.checkInit = void 0; -var auth_1 = require("./auth"); -var API_1 = require("./API"); -var nJwt = require('njwt'); -var request = require('request'); -function checkInit() { - var error = ''; - if (!auth_1.TOKEN) { - error = 'TOKEN不能为空,请先调用init方法初始化'; - } - if (!auth_1.EncodingAESKey) { - error = 'EncodingAESKey不能为空,请先调用init方法初始化'; - } - return error; -} -exports.checkInit = checkInit; -function genToken(query) { - var jwt = nJwt.create(query, auth_1.EncodingAESKey, 'HS256'); - var token = jwt.compact(); - return token; -} -exports.genToken = genToken; -function transferAIBOT(nlpType, query) { - return __awaiter(this, void 0, void 0, function () { - var _this = this; - return __generator(this, function (_a) { - return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () { - var error; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - error = checkInit(); - if (error) { - reject(error); - return [2 /*return*/]; - } - return [4 /*yield*/, request.post("".concat(API_1.api[nlpType], "/").concat(auth_1.TOKEN), { - json: query, - }, function (error, stderr, stdout) { - if (error) { - reject(error); - return; - } - resolve(stdout); - })]; - case 1: - _a.sent(); - return [2 /*return*/]; - } - }); - }); })]; - }); - }); -} -exports.transferAIBOT = transferAIBOT; -function transferNLP(nlpType, query) { - return __awaiter(this, void 0, void 0, function () { - var _this = this; - return __generator(this, function (_a) { - return [2 /*return*/, new Promise(function (resolve, reject) { return __awaiter(_this, void 0, void 0, function () { - var error, token; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - error = checkInit(); - if (error) { - reject(error); - return [2 /*return*/]; - } - token = genToken(query); - return [4 /*yield*/, request.post("".concat(API_1.api[nlpType], "/").concat(auth_1.TOKEN), { - json: { - query: token, - }, - }, function (error, stderr, stdout) { - if (error) { - reject(error); - return; - } - resolve(stdout); - })]; - case 1: - _a.sent(); - return [2 /*return*/]; - } - }); - }); })]; - }); - }); -} -exports.transferNLP = transferNLP; diff --git a/WechatBot/chatflow/src/sdk/openai/package.json b/WechatBot/chatflow/src/sdk/openai/package.json deleted file mode 100644 index ea2080999..000000000 --- a/WechatBot/chatflow/src/sdk/openai/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "openai-sdk", - "version": "1.0.0", - "description": "http://openai.weixin.qq.com,AI,智能对话", - "main": "openai/index.js", - "types": "openai/index.d.ts", - "scripts": { - "start": "ts-node-dev --respawn --transpileOnly --prefer-ts example/index.ts", - "test": "ts-mocha --paths test/index.ts", - "build": "tsc" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/WeChatAI/openai-sdk.git" - }, - "bugs": { - "url": "https://github.com/WeChatAI/openai-sdk/issues" - }, - "homepage": "https://github.com/WeChatAI/openai-sdk#readme", - "keywords": [ - "http://openai.weixin.qq.com", - "AI", - "智能对话" - ], - "author": "lindanli, zhang-ning", - "license": "MIT", - "dependencies": { - "njwt": "^1.0.0", - "request": "^2.88.0" - }, - "devDependencies": { - "@types/chai": "^4.2.7", - "@types/mocha": "^5.2.7", - "@types/request": "^2.48.4", - "chai": "^4.2.0", - "mocha": "^6.2.2", - "ts-mocha": "^6.0.0", - "ts-node-dev": "^1.0.0-pre.44", - "typescript": "^4.4.4" - } -} diff --git a/WechatBot/chatflow/src/sdk/openai/test/index.d.ts b/WechatBot/chatflow/src/sdk/openai/test/index.d.ts deleted file mode 100644 index 336ce12bb..000000000 --- a/WechatBot/chatflow/src/sdk/openai/test/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {} diff --git a/WechatBot/chatflow/src/sdk/openai/test/index.js b/WechatBot/chatflow/src/sdk/openai/test/index.js deleted file mode 100755 index c2c6168ac..000000000 --- a/WechatBot/chatflow/src/sdk/openai/test/index.js +++ /dev/null @@ -1,157 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var chai_1 = require("chai"); -var index_1 = require("../index"); -var tokenize = index_1.nlp.tokenize, ner = index_1.nlp.ner, sentiment = index_1.nlp.sentiment, sensitive = index_1.nlp.sensitive; -(0, index_1.init)({ - TOKEN: '5jr7aQC0iN3m97szkMcmAsdyae4u8B', - EncodingAESKey: '54lPaPUPPMqe6fUJw4bMzUd58ytrMGbyPFZyvnOrZiq', -}); -describe('chat', function () { - it('test chat', function () { return __awaiter(void 0, void 0, void 0, function () { - var chatRes; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: return [4 /*yield*/, (0, index_1.chat)({ - username: 'uid', - msg: '谁是超哥', - })]; - case 1: - chatRes = _a.sent(); - (0, chai_1.expect)(chatRes.title).to.equal('谁是超哥'); - return [2 /*return*/]; - } - }); - }); }); -}); -describe('chatAibot', function () { - it('test chatAibot', function () { return __awaiter(void 0, void 0, void 0, function () { - var signature, chatRes; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - signature = (0, index_1.genToken)({ - username: '超哥', - userid: '12345', - }); - return [4 /*yield*/, (0, index_1.chatAibot)({ - signature: signature, - query: '谁是超哥', - first_priority_skills: ['Moments'], - })]; - case 1: - chatRes = _a.sent(); - (0, chai_1.expect)(chatRes.ans_node_name).to.equal('Moments'); - return [2 /*return*/]; - } - }); - }); }); -}); -describe('nlp', function () { - it('test tokenize', function () { return __awaiter(void 0, void 0, void 0, function () { - var tokenizeRes; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: return [4 /*yield*/, tokenize({ - uid: 'uid', - data: { - q: '我的家乡叫中国。', - }, - })]; - case 1: - tokenizeRes = _a.sent(); - (0, chai_1.expect)(tokenizeRes).to.have.property('words').with.lengthOf(6); - return [2 /*return*/]; - } - }); - }); }); - it('test ner', function () { return __awaiter(void 0, void 0, void 0, function () { - var nerRes; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: return [4 /*yield*/, ner({ - uid: 'uid', - data: { - q: '帮我订两张后天上午的火车票', - }, - })]; - case 1: - nerRes = _a.sent(); - (0, chai_1.expect)(nerRes).to.have.property('entities').with.lengthOf(2); - (0, chai_1.expect)(nerRes['entities'][0]['type']).to.equal('number'); - return [2 /*return*/]; - } - }); - }); }); - it('test sentiment', function () { return __awaiter(void 0, void 0, void 0, function () { - var sentimentRes; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: return [4 /*yield*/, sentiment({ - uid: 'uid', - data: { - q: '恭喜小张脱单成功', - mode: '6class', - }, - })]; - case 1: - sentimentRes = _a.sent(); - (0, chai_1.expect)(sentimentRes).to.have.property('result').with.lengthOf(6); - return [2 /*return*/]; - } - }); - }); }); - it('test sensitive', function () { return __awaiter(void 0, void 0, void 0, function () { - var sensitiveRes; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: return [4 /*yield*/, sensitive({ - uid: 'uid', - data: { - q: '楼主真垃圾,祝你早日死全家', - }, - })]; - case 1: - sensitiveRes = _a.sent(); - (0, chai_1.expect)(sensitiveRes).to.have.property('result').with.lengthOf(4); - return [2 /*return*/]; - } - }); - }); }); -}); diff --git a/WechatBot/chatflow/src/templates/群发通知模板.xlsx b/WechatBot/chatflow/src/templates/群发通知模板.xlsx deleted file mode 100644 index 0af4a6d2c..000000000 Binary files a/WechatBot/chatflow/src/templates/群发通知模板.xlsx and /dev/null differ diff --git a/WechatBot/chatflow/src/util/tool.ts b/WechatBot/chatflow/src/util/tool.ts deleted file mode 100644 index 2bdc9bd6e..000000000 --- a/WechatBot/chatflow/src/util/tool.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* eslint-disable sort-keys */ -import moment from 'moment' - -import type { - Contact, - Room, - // ScanStatus, - // WechatyBuilder, -} from 'wechaty' - -async function formatSentMessage (userSelf: Contact, text: string, talker: Contact|undefined, room: Room|undefined) { - // console.debug('发送的消息:', text) - const curTime = new Date().getTime() - const timeHms = moment(curTime).format('YYYY-MM-DD HH:mm:ss') - const record = { - fields: { - timeHms, - name: userSelf.name(), - topic: room ? (await room.topic() || '--') : (talker?.name() || '--'), - messagePayload: text, - wxid: room && talker ? (talker.id !== 'null' ? talker.id : '--') : userSelf.id, - roomid: room ? (room.id || '--') : (talker?.id || '--'), - messageType: 'selfSent', - }, - } - return record -} - -// 定义一个延时方法 -const waitForMs = (ms: number) => new Promise(resolve => setTimeout(resolve, ms)) - -export { - waitForMs, - formatSentMessage, -} - -export default waitForMs diff --git a/WechatBot/chatflow/tools/dingdan20220510_2101.xlsx b/WechatBot/chatflow/tools/dingdan20220510_2101.xlsx deleted file mode 100644 index 028f4e289..000000000 Binary files a/WechatBot/chatflow/tools/dingdan20220510_2101.xlsx and /dev/null differ diff --git a/WechatBot/chatflow/tools/export_skills_70785_1651747894.csv b/WechatBot/chatflow/tools/export_skills_70785_1651747894.csv deleted file mode 100644 index 00ceb2084..000000000 --- a/WechatBot/chatflow/tools/export_skills_70785_1651747894.csv +++ /dev/null @@ -1,10 +0,0 @@ -分类(必填),问题(必填),问题阈值(选填-默认0.9),相似问题(多个用##分隔),机器人回答(多个用##分隔),是否停用(选填-默认FALSE) -基础问答,What is Wechaty,0.7,what'swechaty,Wechaty is an Open Source software application for building chatbots.LINE_BREAKGo to the https://wechaty.js.org/docs/wechaty for more information.,false -基础问答,帮助,0.7,,"{""multimsg"":[""帮助中心建设中,稍后上线~""]}",false -基础问答,你是谁?,0.7,你是谁了?##你是啥人?,"{""multimsg"":[""我是你的个人小助理瓦力,联系超哥可以添加 瓦力 为好友,也欢迎关注超哥的公众号 彪悍的超哥""]}",false -基础问答,你有什么功能,0.7,,"{""multimsg"":[""我可以闲聊、百科问答等,我还在学习中""]}",false -基础问答,上海疫情动态,0.7,上海疫情有什么动态##上海疫情现象有哪些##上海疫情##上海疫情新闻##上海疫情预防##上海疫情事件##上海疫情第一季##上海疫情现状##上海疫情不全##上海疫情审查##上海疫情响应是什么,"{""multimsg"":[""上海现存确诊疫情地图LINE_BREAKhttps://news.sina.cn/project/fy2020/yq_province.shtml?province=shanghai""]}",false -拼团25187527247,25187527247@chatroom春笋什么时候发货?,0.7,春笋什么时候发货##春笋什么时候发货?##春笋什么时候开始发货##求问春笋什么时候发货,"{""multimsg"":[""QA25187527247@chatroom亲,请不要着急,三天之内发货"",""QA20641535286@chatroom亲,请不要着急,三天之内发货""]}",false -拼团25187527247,25187527247@chatroom红薯干大概几天到,0.7,,"{""multimsg"":[""QA25187527247@chatroom红薯5月4日到货""]}",false -拼团25187527247,25187527247@chatroom今天春笋能到吗?,0.7,,"{""multimsg"":[""QA25187527247@chatroom亲,可以到""]}",false -拼团20641535286,有几种颜色?,0.9,,"{""multimsg"":[""QA20641535286@chatroom有白色、黑色、蓝色三种颜色"",""QA20641535286@chatroom有定制颜色"",""QA25187527247@chatroom有白色、黑色、蓝色三种颜色""]}",false diff --git a/WechatBot/chatflow/tools/flows.json b/WechatBot/chatflow/tools/flows.json deleted file mode 100644 index 83f51ac5a..000000000 --- a/WechatBot/chatflow/tools/flows.json +++ /dev/null @@ -1,574 +0,0 @@ -[ - { - "id": "dcb6b2cc74a2666a", - "type": "tab", - "label": "智能对话QA系统", - "disabled": false, - "info": "", - "env": [] - }, - { - "id": "449592905fec06a5", - "type": "tab", - "label": "实时日志", - "disabled": false, - "info": "", - "env": [] - }, - { - "id": "96b70ccab4c1b942", - "type": "tab", - "label": "UI", - "disabled": false, - "info": "", - "env": [] - }, - { - "id": "f47d5d1e864efa46", - "type": "ui_tab", - "name": "Home", - "icon": "dashboard", - "disabled": false, - "hidden": false - }, - { - "id": "694c801ce7e9df20", - "type": "ui_base", - "theme": { - "name": "theme-light", - "lightTheme": { - "default": "#0094CE", - "baseColor": "#0094CE", - "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif", - "edited": false - }, - "darkTheme": { - "default": "#097479", - "baseColor": "#097479", - "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif", - "edited": false - }, - "customTheme": { - "name": "Untitled Theme 1", - "default": "#4B7930", - "baseColor": "#4B7930", - "baseFont": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif" - }, - "themeState": { - "base-color": { - "default": "#0094CE", - "value": "#0094CE", - "edited": false - }, - "page-titlebar-backgroundColor": { - "value": "#0094CE", - "edited": false - }, - "page-backgroundColor": { - "value": "#fafafa", - "edited": false - }, - "page-sidebar-backgroundColor": { - "value": "#ffffff", - "edited": false - }, - "group-textColor": { - "value": "#1bbfff", - "edited": false - }, - "group-borderColor": { - "value": "#ffffff", - "edited": false - }, - "group-backgroundColor": { - "value": "#ffffff", - "edited": false - }, - "widget-textColor": { - "value": "#111111", - "edited": false - }, - "widget-backgroundColor": { - "value": "#0094ce", - "edited": false - }, - "widget-borderColor": { - "value": "#ffffff", - "edited": false - }, - "base-font": { - "value": "-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif" - } - }, - "angularTheme": { - "primary": "indigo", - "accents": "blue", - "warn": "red", - "background": "grey", - "palette": "light" - } - }, - "site": { - "name": "Node-RED Dashboard", - "hideToolbar": "false", - "allowSwipe": "false", - "lockMenu": "false", - "allowTempTheme": "true", - "dateFormat": "DD/MM/YYYY", - "sizes": { - "sx": 48, - "sy": 48, - "gx": 6, - "gy": 6, - "cx": 6, - "cy": 6, - "px": 0, - "py": 0 - } - } - }, - { - "id": "5cd49891dcf2ec59", - "type": "ui_group", - "name": "Default", - "tab": "f47d5d1e864efa46", - "order": 1, - "disp": true, - "width": "6", - "collapse": false, - "className": "" - }, - { - "id": "51751be1a2b4f446", - "type": "inject", - "z": "dcb6b2cc74a2666a", - "name": "启动QA系统", - "props": [ - { - "p": "payload" - }, - { - "p": "topic", - "vt": "str" - } - ], - "repeat": "", - "crontab": "", - "once": false, - "onceDelay": 0.1, - "topic": "", - "payload": "", - "payloadType": "date", - "x": 130, - "y": 140, - "wires": [ - [ - "2c4ff291c950275c" - ] - ] - }, - { - "id": "2c4ff291c950275c", - "type": "exec", - "z": "dcb6b2cc74a2666a", - "command": "cd C:\\Users\\wechaty\\Documents\\GitHub\\wechat-openai-qa-bot", - "addpay": "", - "append": "", - "useSpawn": "false", - "timer": "", - "winHide": false, - "oldrc": false, - "name": "cd到代码目录", - "x": 380, - "y": 100, - "wires": [ - [], - [], - [ - "ddb3bf4675a8ba5d", - "d9dc44182c4963bf" - ] - ] - }, - { - "id": "b8cdf17374102b0b", - "type": "debug", - "z": "dcb6b2cc74a2666a", - "name": "", - "active": true, - "tosidebar": true, - "console": true, - "tostatus": false, - "complete": "$string(msg)", - "targetType": "jsonata", - "statusVal": "", - "statusType": "auto", - "x": 630, - "y": 380, - "wires": [] - }, - { - "id": "04ec3a70f40d1888", - "type": "exec", - "z": "dcb6b2cc74a2666a", - "command": "npm run dev", - "addpay": "payload", - "append": "", - "useSpawn": "false", - "timer": "", - "winHide": false, - "oldrc": false, - "name": "启动程序", - "x": 360, - "y": 260, - "wires": [ - [ - "d9dc44182c4963bf" - ], - [ - "d9dc44182c4963bf" - ], - [ - "d9dc44182c4963bf" - ] - ] - }, - { - "id": "ddb3bf4675a8ba5d", - "type": "switch", - "z": "dcb6b2cc74a2666a", - "name": "判断cd是否执行成功", - "property": "payload.code", - "propertyType": "msg", - "rules": [ - { - "t": "eq", - "v": "0", - "vt": "num" - }, - { - "t": "neq", - "v": "0", - "vt": "num" - } - ], - "checkall": "true", - "repair": false, - "outputs": 2, - "x": 400, - "y": 180, - "wires": [ - [ - "04ec3a70f40d1888", - "d9dc44182c4963bf" - ], - [ - "d9dc44182c4963bf" - ] - ] - }, - { - "id": "bf7fe7333a771c5f", - "type": "inject", - "z": "dcb6b2cc74a2666a", - "name": "停止QA系统", - "props": [ - { - "p": "payload" - }, - { - "p": "topic", - "vt": "str" - } - ], - "repeat": "", - "crontab": "", - "once": false, - "onceDelay": 0.1, - "topic": "", - "payload": "", - "payloadType": "date", - "x": 130, - "y": 560, - "wires": [ - [ - "2aa5760853fc8a10" - ] - ] - }, - { - "id": "59b25313c0717113", - "type": "exec", - "z": "dcb6b2cc74a2666a", - "command": "taskkill /f /t /im cmd.exe", - "addpay": "", - "append": "", - "useSpawn": "false", - "timer": "", - "winHide": false, - "oldrc": false, - "name": "结束机器人进程", - "x": 380, - "y": 640, - "wires": [ - [ - "0e482f3ac95afbd4" - ], - [], - [] - ] - }, - { - "id": "af37401a57e2119f", - "type": "change", - "z": "dcb6b2cc74a2666a", - "name": "记录进程ID", - "rules": [ - { - "t": "set", - "p": "pid", - "pt": "flow", - "to": "pid", - "tot": "msg" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 370, - "y": 440, - "wires": [ - [ - "b8cdf17374102b0b" - ] - ] - }, - { - "id": "2aa5760853fc8a10", - "type": "change", - "z": "dcb6b2cc74a2666a", - "name": "获取PID", - "rules": [ - { - "t": "set", - "p": "pid", - "pt": "msg", - "to": "pid", - "tot": "flow" - } - ], - "action": "", - "property": "", - "from": "", - "to": "", - "reg": false, - "x": 360, - "y": 520, - "wires": [ - [ - "0e482f3ac95afbd4", - "c8e415e2f1a73ebb" - ] - ] - }, - { - "id": "d9dc44182c4963bf", - "type": "debug", - "z": "dcb6b2cc74a2666a", - "name": "", - "active": false, - "tosidebar": true, - "console": true, - "tostatus": false, - "complete": "true", - "targetType": "full", - "statusVal": "", - "statusType": "auto", - "x": 670, - "y": 140, - "wires": [] - }, - { - "id": "0e482f3ac95afbd4", - "type": "debug", - "z": "dcb6b2cc74a2666a", - "name": "", - "active": true, - "tosidebar": true, - "console": false, - "tostatus": false, - "complete": "true", - "targetType": "full", - "statusVal": "", - "statusType": "auto", - "x": 610, - "y": 580, - "wires": [] - }, - { - "id": "e812b83d0fde183f", - "type": "status", - "z": "dcb6b2cc74a2666a", - "name": "", - "scope": [ - "04ec3a70f40d1888" - ], - "x": 650, - "y": 260, - "wires": [ - [ - "b8cdf17374102b0b", - "a1c565bc86caff69" - ] - ] - }, - { - "id": "a1c565bc86caff69", - "type": "function", - "z": "dcb6b2cc74a2666a", - "name": "PID格式化", - "func": "if(msg.status&&msg.status.text&&msg.status.text.indexOf('pid')!==-1){\n msg.pid = msg.status.text.split(':')[1]\n}\n\nreturn msg;", - "outputs": 1, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 370, - "y": 320, - "wires": [ - [ - "1e6f6c7f4510807e" - ] - ] - }, - { - "id": "1e6f6c7f4510807e", - "type": "switch", - "z": "dcb6b2cc74a2666a", - "name": "判断是否包含PID", - "property": "pid", - "propertyType": "msg", - "rules": [ - { - "t": "nnull" - } - ], - "checkall": "true", - "repair": false, - "outputs": 1, - "x": 390, - "y": 380, - "wires": [ - [ - "af37401a57e2119f" - ] - ] - }, - { - "id": "c8e415e2f1a73ebb", - "type": "function", - "z": "dcb6b2cc74a2666a", - "name": "", - "func": "msg.payload = `taskkill /pid ${msg.pid} /F`\nreturn msg;", - "outputs": 1, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 350, - "y": 580, - "wires": [ - [ - "59b25313c0717113" - ] - ] - }, - { - "id": "135e5bf3f77e94fe", - "type": "debug", - "z": "449592905fec06a5", - "name": "", - "active": true, - "tosidebar": true, - "console": false, - "tostatus": false, - "complete": "$string(msg.payload)", - "targetType": "jsonata", - "statusVal": "", - "statusType": "auto", - "x": 420, - "y": 240, - "wires": [] - }, - { - "id": "5113791f2133429e", - "type": "http response", - "z": "449592905fec06a5", - "name": "", - "statusCode": "200", - "headers": {}, - "x": 600, - "y": 320, - "wires": [] - }, - { - "id": "0a1fb57d875c3676", - "type": "function", - "z": "449592905fec06a5", - "name": "", - "func": "msg.payload = {\n code:0,\n msg:'请求成功',\n data:null\n}\n\nreturn msg;", - "outputs": 1, - "noerr": 0, - "initialize": "", - "finalize": "", - "libs": [], - "x": 420, - "y": 320, - "wires": [ - [ - "5113791f2133429e" - ] - ] - }, - { - "id": "2d35ef4f036b55e4", - "type": "http in", - "z": "449592905fec06a5", - "name": "日志接收器", - "url": "/log", - "method": "post", - "upload": false, - "swaggerDoc": "", - "x": 200, - "y": 240, - "wires": [ - [ - "0a1fb57d875c3676", - "135e5bf3f77e94fe" - ] - ] - }, - { - "id": "2042ef0ee7920bd1", - "type": "ui_template", - "z": "96b70ccab4c1b942", - "group": "5cd49891dcf2ec59", - "name": "", - "order": 0, - "width": 0, - "height": 0, - "format": "
", - "storeOutMessages": true, - "fwdInMessages": true, - "resendOnRefresh": true, - "templateScope": "local", - "className": "", - "x": 300, - "y": 220, - "wires": [ - [] - ] - } -] \ No newline at end of file diff --git a/WechatBot/chatflow/tools/order_20_47_20.xlsx b/WechatBot/chatflow/tools/order_20_47_20.xlsx deleted file mode 100644 index ac0622bef..000000000 Binary files a/WechatBot/chatflow/tools/order_20_47_20.xlsx and /dev/null differ diff --git a/WechatBot/chatflow/tsconfig.cjs.json b/WechatBot/chatflow/tsconfig.cjs.json deleted file mode 100644 index 8693cd007..000000000 --- a/WechatBot/chatflow/tsconfig.cjs.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "CommonJS", - "outDir": "dist/cjs", - }, -} diff --git a/WechatBot/chatflow/tsconfig.json b/WechatBot/chatflow/tsconfig.json deleted file mode 100644 index 7f8219e10..000000000 --- a/WechatBot/chatflow/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "extends": "@chatie/tsconfig", - "compilerOptions": { - "outDir": "dist", - }, - "exclude": [ - "node_modules/", - "dist/", - "tests/fixtures/", - ], - "include": [ - "./*.ts", - "app/**/*.ts", - "bin/*.ts", - "bot/**/*.ts", - "examples/**/*.ts", - "scripts/**/*.ts", - "src/**/*.ts", - "tests/**/*.spec.ts", - "src/wx-open-ai.js", - "src/plugins/msg-format.js", - "src/db/*.js" - ] -} \ No newline at end of file diff --git a/WechatBot/main.py b/WechatBot/main.py deleted file mode 100755 index 236217e6f..000000000 --- a/WechatBot/main.py +++ /dev/null @@ -1,5 +0,0 @@ -import wechaty - -import uuid - -print(uuid.uuid4()) diff --git a/WechatBot/node_modules/.bin/mime b/WechatBot/node_modules/.bin/mime deleted file mode 100644 index 0a62a1b13..000000000 --- a/WechatBot/node_modules/.bin/mime +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../mime/cli.js" "$@" -else - exec node "$basedir/../mime/cli.js" "$@" -fi diff --git a/WechatBot/node_modules/.bin/mime.cmd b/WechatBot/node_modules/.bin/mime.cmd deleted file mode 100755 index a9e48f1e3..000000000 --- a/WechatBot/node_modules/.bin/mime.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mime\cli.js" %* diff --git a/WechatBot/node_modules/.bin/mime.ps1 b/WechatBot/node_modules/.bin/mime.ps1 deleted file mode 100644 index 2222f40bc..000000000 --- a/WechatBot/node_modules/.bin/mime.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../mime/cli.js" $args - } else { - & "$basedir/node$exe" "$basedir/../mime/cli.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../mime/cli.js" $args - } else { - & "node$exe" "$basedir/../mime/cli.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/WechatBot/node_modules/.bin/mkdirp b/WechatBot/node_modules/.bin/mkdirp deleted file mode 100644 index 6ba5765a8..000000000 --- a/WechatBot/node_modules/.bin/mkdirp +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@" -else - exec node "$basedir/../mkdirp/bin/cmd.js" "$@" -fi diff --git a/WechatBot/node_modules/.bin/mkdirp.cmd b/WechatBot/node_modules/.bin/mkdirp.cmd deleted file mode 100755 index 351da9dfe..000000000 --- a/WechatBot/node_modules/.bin/mkdirp.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mkdirp\bin\cmd.js" %* diff --git a/WechatBot/node_modules/.bin/mkdirp.ps1 b/WechatBot/node_modules/.bin/mkdirp.ps1 deleted file mode 100644 index 911e85466..000000000 --- a/WechatBot/node_modules/.bin/mkdirp.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args - } else { - & "$basedir/node$exe" "$basedir/../mkdirp/bin/cmd.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args - } else { - & "node$exe" "$basedir/../mkdirp/bin/cmd.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/WechatBot/node_modules/.bin/mustache b/WechatBot/node_modules/.bin/mustache deleted file mode 100644 index 7bc1d34db..000000000 --- a/WechatBot/node_modules/.bin/mustache +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../mustache/bin/mustache" "$@" -else - exec node "$basedir/../mustache/bin/mustache" "$@" -fi diff --git a/WechatBot/node_modules/.bin/mustache.cmd b/WechatBot/node_modules/.bin/mustache.cmd deleted file mode 100755 index b39ed9240..000000000 --- a/WechatBot/node_modules/.bin/mustache.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\mustache\bin\mustache" %* diff --git a/WechatBot/node_modules/.bin/mustache.ps1 b/WechatBot/node_modules/.bin/mustache.ps1 deleted file mode 100644 index ec52dfec4..000000000 --- a/WechatBot/node_modules/.bin/mustache.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../mustache/bin/mustache" $args - } else { - & "$basedir/node$exe" "$basedir/../mustache/bin/mustache" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../mustache/bin/mustache" $args - } else { - & "node$exe" "$basedir/../mustache/bin/mustache" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/WechatBot/node_modules/.bin/node-which b/WechatBot/node_modules/.bin/node-which deleted file mode 100644 index aece73531..000000000 --- a/WechatBot/node_modules/.bin/node-which +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../which/bin/node-which" "$@" -else - exec node "$basedir/../which/bin/node-which" "$@" -fi diff --git a/WechatBot/node_modules/.bin/node-which.cmd b/WechatBot/node_modules/.bin/node-which.cmd deleted file mode 100755 index 7eeb31642..000000000 --- a/WechatBot/node_modules/.bin/node-which.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\which\bin\node-which" %* diff --git a/WechatBot/node_modules/.bin/node-which.ps1 b/WechatBot/node_modules/.bin/node-which.ps1 deleted file mode 100644 index cfb09e844..000000000 --- a/WechatBot/node_modules/.bin/node-which.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../which/bin/node-which" $args - } else { - & "$basedir/node$exe" "$basedir/../which/bin/node-which" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../which/bin/node-which" $args - } else { - & "node$exe" "$basedir/../which/bin/node-which" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/WechatBot/node_modules/.bin/pixelmatch b/WechatBot/node_modules/.bin/pixelmatch deleted file mode 100644 index 660116351..000000000 --- a/WechatBot/node_modules/.bin/pixelmatch +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../pixelmatch/bin/pixelmatch" "$@" -else - exec node "$basedir/../pixelmatch/bin/pixelmatch" "$@" -fi diff --git a/WechatBot/node_modules/.bin/pixelmatch.cmd b/WechatBot/node_modules/.bin/pixelmatch.cmd deleted file mode 100755 index 91fc2f7f0..000000000 --- a/WechatBot/node_modules/.bin/pixelmatch.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\pixelmatch\bin\pixelmatch" %* diff --git a/WechatBot/node_modules/.bin/pixelmatch.ps1 b/WechatBot/node_modules/.bin/pixelmatch.ps1 deleted file mode 100644 index bf7559932..000000000 --- a/WechatBot/node_modules/.bin/pixelmatch.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../pixelmatch/bin/pixelmatch" $args - } else { - & "$basedir/node$exe" "$basedir/../pixelmatch/bin/pixelmatch" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../pixelmatch/bin/pixelmatch" $args - } else { - & "node$exe" "$basedir/../pixelmatch/bin/pixelmatch" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/WechatBot/node_modules/.bin/prebuild-install b/WechatBot/node_modules/.bin/prebuild-install deleted file mode 100644 index 0aeffa505..000000000 --- a/WechatBot/node_modules/.bin/prebuild-install +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../prebuild-install/bin.js" "$@" -else - exec node "$basedir/../prebuild-install/bin.js" "$@" -fi diff --git a/WechatBot/node_modules/.bin/prebuild-install.cmd b/WechatBot/node_modules/.bin/prebuild-install.cmd deleted file mode 100755 index c01b2c366..000000000 --- a/WechatBot/node_modules/.bin/prebuild-install.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\prebuild-install\bin.js" %* diff --git a/WechatBot/node_modules/.bin/prebuild-install.ps1 b/WechatBot/node_modules/.bin/prebuild-install.ps1 deleted file mode 100644 index 6e657a3b4..000000000 --- a/WechatBot/node_modules/.bin/prebuild-install.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../prebuild-install/bin.js" $args - } else { - & "$basedir/node$exe" "$basedir/../prebuild-install/bin.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../prebuild-install/bin.js" $args - } else { - & "node$exe" "$basedir/../prebuild-install/bin.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/WechatBot/node_modules/.bin/qrcode b/WechatBot/node_modules/.bin/qrcode deleted file mode 100644 index 45adc0803..000000000 --- a/WechatBot/node_modules/.bin/qrcode +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../qrcode/bin/qrcode" "$@" -else - exec node "$basedir/../qrcode/bin/qrcode" "$@" -fi diff --git a/WechatBot/node_modules/.bin/qrcode.cmd b/WechatBot/node_modules/.bin/qrcode.cmd deleted file mode 100755 index ee219431a..000000000 --- a/WechatBot/node_modules/.bin/qrcode.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\qrcode\bin\qrcode" %* diff --git a/WechatBot/node_modules/.bin/qrcode.ps1 b/WechatBot/node_modules/.bin/qrcode.ps1 deleted file mode 100644 index 98abf382f..000000000 --- a/WechatBot/node_modules/.bin/qrcode.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../qrcode/bin/qrcode" $args - } else { - & "$basedir/node$exe" "$basedir/../qrcode/bin/qrcode" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../qrcode/bin/qrcode" $args - } else { - & "node$exe" "$basedir/../qrcode/bin/qrcode" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/WechatBot/node_modules/.bin/rc b/WechatBot/node_modules/.bin/rc deleted file mode 100644 index e31cd8350..000000000 --- a/WechatBot/node_modules/.bin/rc +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../rc/cli.js" "$@" -else - exec node "$basedir/../rc/cli.js" "$@" -fi diff --git a/WechatBot/node_modules/.bin/rc.cmd b/WechatBot/node_modules/.bin/rc.cmd deleted file mode 100755 index 22dbe4617..000000000 --- a/WechatBot/node_modules/.bin/rc.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\rc\cli.js" %* diff --git a/WechatBot/node_modules/.bin/rc.ps1 b/WechatBot/node_modules/.bin/rc.ps1 deleted file mode 100644 index 9a9b6e376..000000000 --- a/WechatBot/node_modules/.bin/rc.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../rc/cli.js" $args - } else { - & "$basedir/node$exe" "$basedir/../rc/cli.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../rc/cli.js" $args - } else { - & "node$exe" "$basedir/../rc/cli.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/WechatBot/node_modules/.bin/semver b/WechatBot/node_modules/.bin/semver deleted file mode 100644 index 77443e787..000000000 --- a/WechatBot/node_modules/.bin/semver +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../semver/bin/semver.js" "$@" -else - exec node "$basedir/../semver/bin/semver.js" "$@" -fi diff --git a/WechatBot/node_modules/.bin/semver.cmd b/WechatBot/node_modules/.bin/semver.cmd deleted file mode 100755 index 7d4c104af..000000000 --- a/WechatBot/node_modules/.bin/semver.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\semver\bin\semver.js" %* diff --git a/WechatBot/node_modules/.bin/semver.ps1 b/WechatBot/node_modules/.bin/semver.ps1 deleted file mode 100644 index 314717ad4..000000000 --- a/WechatBot/node_modules/.bin/semver.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args - } else { - & "$basedir/node$exe" "$basedir/../semver/bin/semver.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../semver/bin/semver.js" $args - } else { - & "node$exe" "$basedir/../semver/bin/semver.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/WechatBot/node_modules/.bin/sidecar-dump b/WechatBot/node_modules/.bin/sidecar-dump deleted file mode 100644 index f759a3a18..000000000 --- a/WechatBot/node_modules/.bin/sidecar-dump +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" --no-warnings --loader ts-node/esm --experimental-vm-modules "$basedir/../sidecar/dist/esm/bin/sidecar-dump.js" "$@" -else - exec node --no-warnings --loader ts-node/esm --experimental-vm-modules "$basedir/../sidecar/dist/esm/bin/sidecar-dump.js" "$@" -fi diff --git a/WechatBot/node_modules/.bin/sidecar-dump.cmd b/WechatBot/node_modules/.bin/sidecar-dump.cmd deleted file mode 100755 index d60e5b3dc..000000000 --- a/WechatBot/node_modules/.bin/sidecar-dump.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" --no-warnings --loader ts-node/esm --experimental-vm-modules "%dp0%\..\sidecar\dist\esm\bin\sidecar-dump.js" %* diff --git a/WechatBot/node_modules/.bin/sidecar-dump.ps1 b/WechatBot/node_modules/.bin/sidecar-dump.ps1 deleted file mode 100644 index c4c0f21ea..000000000 --- a/WechatBot/node_modules/.bin/sidecar-dump.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" --no-warnings --loader ts-node/esm --experimental-vm-modules "$basedir/../sidecar/dist/esm/bin/sidecar-dump.js" $args - } else { - & "$basedir/node$exe" --no-warnings --loader ts-node/esm --experimental-vm-modules "$basedir/../sidecar/dist/esm/bin/sidecar-dump.js" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" --no-warnings --loader ts-node/esm --experimental-vm-modules "$basedir/../sidecar/dist/esm/bin/sidecar-dump.js" $args - } else { - & "node$exe" --no-warnings --loader ts-node/esm --experimental-vm-modules "$basedir/../sidecar/dist/esm/bin/sidecar-dump.js" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/WechatBot/node_modules/.bin/uuid b/WechatBot/node_modules/.bin/uuid deleted file mode 100644 index c3ec0035f..000000000 --- a/WechatBot/node_modules/.bin/uuid +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") - -case `uname` in - *CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;; -esac - -if [ -x "$basedir/node" ]; then - exec "$basedir/node" "$basedir/../uuid/dist/bin/uuid" "$@" -else - exec node "$basedir/../uuid/dist/bin/uuid" "$@" -fi diff --git a/WechatBot/node_modules/.bin/uuid.cmd b/WechatBot/node_modules/.bin/uuid.cmd deleted file mode 100755 index 5663d427b..000000000 --- a/WechatBot/node_modules/.bin/uuid.cmd +++ /dev/null @@ -1,17 +0,0 @@ -@ECHO off -GOTO start -:find_dp0 -SET dp0=%~dp0 -EXIT /b -:start -SETLOCAL -CALL :find_dp0 - -IF EXIST "%dp0%\node.exe" ( - SET "_prog=%dp0%\node.exe" -) ELSE ( - SET "_prog=node" - SET PATHEXT=%PATHEXT:;.JS;=;% -) - -endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\uuid\dist\bin\uuid" %* diff --git a/WechatBot/node_modules/.bin/uuid.ps1 b/WechatBot/node_modules/.bin/uuid.ps1 deleted file mode 100644 index 78046284b..000000000 --- a/WechatBot/node_modules/.bin/uuid.ps1 +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env pwsh -$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent - -$exe="" -if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) { - # Fix case when both the Windows and Linux builds of Node - # are installed in the same directory - $exe=".exe" -} -$ret=0 -if (Test-Path "$basedir/node$exe") { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "$basedir/node$exe" "$basedir/../uuid/dist/bin/uuid" $args - } else { - & "$basedir/node$exe" "$basedir/../uuid/dist/bin/uuid" $args - } - $ret=$LASTEXITCODE -} else { - # Support pipeline input - if ($MyInvocation.ExpectingInput) { - $input | & "node$exe" "$basedir/../uuid/dist/bin/uuid" $args - } else { - & "node$exe" "$basedir/../uuid/dist/bin/uuid" $args - } - $ret=$LASTEXITCODE -} -exit $ret diff --git a/WechatBot/node_modules/@alloc/quick-lru/index.d.ts b/WechatBot/node_modules/@alloc/quick-lru/index.d.ts deleted file mode 100644 index eb819bad0..000000000 --- a/WechatBot/node_modules/@alloc/quick-lru/index.d.ts +++ /dev/null @@ -1,128 +0,0 @@ -declare namespace QuickLRU { - interface Options { - /** - The maximum number of milliseconds an item should remain in the cache. - - @default Infinity - - By default, `maxAge` will be `Infinity`, which means that items will never expire. - Lazy expiration upon the next write or read call. - - Individual expiration of an item can be specified by the `set(key, value, maxAge)` method. - */ - readonly maxAge?: number; - - /** - The maximum number of items before evicting the least recently used items. - */ - readonly maxSize: number; - - /** - Called right before an item is evicted from the cache. - - Useful for side effects or for items like object URLs that need explicit cleanup (`revokeObjectURL`). - */ - onEviction?: (key: KeyType, value: ValueType) => void; - } -} - -declare class QuickLRU - implements Iterable<[KeyType, ValueType]> { - /** - The stored item count. - */ - readonly size: number; - - /** - Simple ["Least Recently Used" (LRU) cache](https://en.m.wikipedia.org/wiki/Cache_replacement_policies#Least_Recently_Used_.28LRU.29). - - The instance is [`iterable`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Iteration_protocols) so you can use it directly in a [`for…of`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for...of) loop. - - @example - ``` - import QuickLRU = require('quick-lru'); - - const lru = new QuickLRU({maxSize: 1000}); - - lru.set('🦄', '🌈'); - - lru.has('🦄'); - //=> true - - lru.get('🦄'); - //=> '🌈' - ``` - */ - constructor(options: QuickLRU.Options); - - [Symbol.iterator](): IterableIterator<[KeyType, ValueType]>; - - /** - Set an item. Returns the instance. - - Individual expiration of an item can be specified with the `maxAge` option. If not specified, the global `maxAge` value will be used in case it is specified in the constructor, otherwise the item will never expire. - - @returns The list instance. - */ - set(key: KeyType, value: ValueType, options?: {maxAge?: number}): this; - - /** - Get an item. - - @returns The stored item or `undefined`. - */ - get(key: KeyType): ValueType | undefined; - - /** - Check if an item exists. - */ - has(key: KeyType): boolean; - - /** - Get an item without marking it as recently used. - - @returns The stored item or `undefined`. - */ - peek(key: KeyType): ValueType | undefined; - - /** - Delete an item. - - @returns `true` if the item is removed or `false` if the item doesn't exist. - */ - delete(key: KeyType): boolean; - - /** - Delete all items. - */ - clear(): void; - - /** - Update the `maxSize` in-place, discarding items as necessary. Insertion order is mostly preserved, though this is not a strong guarantee. - - Useful for on-the-fly tuning of cache sizes in live systems. - */ - resize(maxSize: number): void; - - /** - Iterable for all the keys. - */ - keys(): IterableIterator; - - /** - Iterable for all the values. - */ - values(): IterableIterator; - - /** - Iterable for all entries, starting with the oldest (ascending in recency). - */ - entriesAscending(): IterableIterator<[KeyType, ValueType]>; - - /** - Iterable for all entries, starting with the newest (descending in recency). - */ - entriesDescending(): IterableIterator<[KeyType, ValueType]>; -} - -export = QuickLRU; diff --git a/WechatBot/node_modules/@alloc/quick-lru/index.js b/WechatBot/node_modules/@alloc/quick-lru/index.js deleted file mode 100755 index 7eeced23e..000000000 --- a/WechatBot/node_modules/@alloc/quick-lru/index.js +++ /dev/null @@ -1,263 +0,0 @@ -'use strict'; - -class QuickLRU { - constructor(options = {}) { - if (!(options.maxSize && options.maxSize > 0)) { - throw new TypeError('`maxSize` must be a number greater than 0'); - } - - if (typeof options.maxAge === 'number' && options.maxAge === 0) { - throw new TypeError('`maxAge` must be a number greater than 0'); - } - - this.maxSize = options.maxSize; - this.maxAge = options.maxAge || Infinity; - this.onEviction = options.onEviction; - this.cache = new Map(); - this.oldCache = new Map(); - this._size = 0; - } - - _emitEvictions(cache) { - if (typeof this.onEviction !== 'function') { - return; - } - - for (const [key, item] of cache) { - this.onEviction(key, item.value); - } - } - - _deleteIfExpired(key, item) { - if (typeof item.expiry === 'number' && item.expiry <= Date.now()) { - if (typeof this.onEviction === 'function') { - this.onEviction(key, item.value); - } - - return this.delete(key); - } - - return false; - } - - _getOrDeleteIfExpired(key, item) { - const deleted = this._deleteIfExpired(key, item); - if (deleted === false) { - return item.value; - } - } - - _getItemValue(key, item) { - return item.expiry ? this._getOrDeleteIfExpired(key, item) : item.value; - } - - _peek(key, cache) { - const item = cache.get(key); - - return this._getItemValue(key, item); - } - - _set(key, value) { - this.cache.set(key, value); - this._size++; - - if (this._size >= this.maxSize) { - this._size = 0; - this._emitEvictions(this.oldCache); - this.oldCache = this.cache; - this.cache = new Map(); - } - } - - _moveToRecent(key, item) { - this.oldCache.delete(key); - this._set(key, item); - } - - * _entriesAscending() { - for (const item of this.oldCache) { - const [key, value] = item; - if (!this.cache.has(key)) { - const deleted = this._deleteIfExpired(key, value); - if (deleted === false) { - yield item; - } - } - } - - for (const item of this.cache) { - const [key, value] = item; - const deleted = this._deleteIfExpired(key, value); - if (deleted === false) { - yield item; - } - } - } - - get(key) { - if (this.cache.has(key)) { - const item = this.cache.get(key); - - return this._getItemValue(key, item); - } - - if (this.oldCache.has(key)) { - const item = this.oldCache.get(key); - if (this._deleteIfExpired(key, item) === false) { - this._moveToRecent(key, item); - return item.value; - } - } - } - - set(key, value, {maxAge = this.maxAge === Infinity ? undefined : Date.now() + this.maxAge} = {}) { - if (this.cache.has(key)) { - this.cache.set(key, { - value, - maxAge - }); - } else { - this._set(key, {value, expiry: maxAge}); - } - } - - has(key) { - if (this.cache.has(key)) { - return !this._deleteIfExpired(key, this.cache.get(key)); - } - - if (this.oldCache.has(key)) { - return !this._deleteIfExpired(key, this.oldCache.get(key)); - } - - return false; - } - - peek(key) { - if (this.cache.has(key)) { - return this._peek(key, this.cache); - } - - if (this.oldCache.has(key)) { - return this._peek(key, this.oldCache); - } - } - - delete(key) { - const deleted = this.cache.delete(key); - if (deleted) { - this._size--; - } - - return this.oldCache.delete(key) || deleted; - } - - clear() { - this.cache.clear(); - this.oldCache.clear(); - this._size = 0; - } - - resize(newSize) { - if (!(newSize && newSize > 0)) { - throw new TypeError('`maxSize` must be a number greater than 0'); - } - - const items = [...this._entriesAscending()]; - const removeCount = items.length - newSize; - if (removeCount < 0) { - this.cache = new Map(items); - this.oldCache = new Map(); - this._size = items.length; - } else { - if (removeCount > 0) { - this._emitEvictions(items.slice(0, removeCount)); - } - - this.oldCache = new Map(items.slice(removeCount)); - this.cache = new Map(); - this._size = 0; - } - - this.maxSize = newSize; - } - - * keys() { - for (const [key] of this) { - yield key; - } - } - - * values() { - for (const [, value] of this) { - yield value; - } - } - - * [Symbol.iterator]() { - for (const item of this.cache) { - const [key, value] = item; - const deleted = this._deleteIfExpired(key, value); - if (deleted === false) { - yield [key, value.value]; - } - } - - for (const item of this.oldCache) { - const [key, value] = item; - if (!this.cache.has(key)) { - const deleted = this._deleteIfExpired(key, value); - if (deleted === false) { - yield [key, value.value]; - } - } - } - } - - * entriesDescending() { - let items = [...this.cache]; - for (let i = items.length - 1; i >= 0; --i) { - const item = items[i]; - const [key, value] = item; - const deleted = this._deleteIfExpired(key, value); - if (deleted === false) { - yield [key, value.value]; - } - } - - items = [...this.oldCache]; - for (let i = items.length - 1; i >= 0; --i) { - const item = items[i]; - const [key, value] = item; - if (!this.cache.has(key)) { - const deleted = this._deleteIfExpired(key, value); - if (deleted === false) { - yield [key, value.value]; - } - } - } - } - - * entriesAscending() { - for (const [key, value] of this._entriesAscending()) { - yield [key, value.value]; - } - } - - get size() { - if (!this._size) { - return this.oldCache.size; - } - - let oldCacheSize = 0; - for (const key of this.oldCache.keys()) { - if (!this.cache.has(key)) { - oldCacheSize++; - } - } - - return Math.min(this._size + oldCacheSize, this.maxSize); - } -} - -module.exports = QuickLRU; diff --git a/WechatBot/node_modules/@alloc/quick-lru/license b/WechatBot/node_modules/@alloc/quick-lru/license deleted file mode 100644 index e7af2f771..000000000 --- a/WechatBot/node_modules/@alloc/quick-lru/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/WechatBot/node_modules/@alloc/quick-lru/package.json b/WechatBot/node_modules/@alloc/quick-lru/package.json deleted file mode 100644 index 21f107267..000000000 --- a/WechatBot/node_modules/@alloc/quick-lru/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@alloc/quick-lru", - "version": "5.2.0", - "description": "Simple “Least Recently Used” (LRU) cache", - "license": "MIT", - "repository": "sindresorhus/quick-lru", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && nyc ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "lru", - "quick", - "cache", - "caching", - "least", - "recently", - "used", - "fast", - "map", - "hash", - "buffer" - ], - "devDependencies": { - "ava": "^2.0.0", - "coveralls": "^3.0.3", - "nyc": "^15.0.0", - "tsd": "^0.11.0", - "xo": "^0.26.0" - } -} diff --git a/WechatBot/node_modules/@alloc/quick-lru/readme.md b/WechatBot/node_modules/@alloc/quick-lru/readme.md deleted file mode 100644 index 7187ba598..000000000 --- a/WechatBot/node_modules/@alloc/quick-lru/readme.md +++ /dev/null @@ -1,139 +0,0 @@ -# quick-lru [![Build Status](https://travis-ci.org/sindresorhus/quick-lru.svg?branch=master)](https://travis-ci.org/sindresorhus/quick-lru) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/quick-lru/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/quick-lru?branch=master) - -> Simple [“Least Recently Used” (LRU) cache](https://en.m.wikipedia.org/wiki/Cache_replacement_policies#Least_Recently_Used_.28LRU.29) - -Useful when you need to cache something and limit memory usage. - -Inspired by the [`hashlru` algorithm](https://github.com/dominictarr/hashlru#algorithm), but instead uses [`Map`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Map) to support keys of any type, not just strings, and values can be `undefined`. - -## Install - -``` -$ npm install quick-lru -``` - -## Usage - -```js -const QuickLRU = require('quick-lru'); - -const lru = new QuickLRU({maxSize: 1000}); - -lru.set('🦄', '🌈'); - -lru.has('🦄'); -//=> true - -lru.get('🦄'); -//=> '🌈' -``` - -## API - -### new QuickLRU(options?) - -Returns a new instance. - -### options - -Type: `object` - -#### maxSize - -*Required*\ -Type: `number` - -The maximum number of items before evicting the least recently used items. - -#### maxAge - -Type: `number`\ -Default: `Infinity` - -The maximum number of milliseconds an item should remain in cache. -By default maxAge will be Infinity, which means that items will never expire. - -Lazy expiration happens upon the next `write` or `read` call. - -Individual expiration of an item can be specified by the `set(key, value, options)` method. - -#### onEviction - -*Optional*\ -Type: `(key, value) => void` - -Called right before an item is evicted from the cache. - -Useful for side effects or for items like object URLs that need explicit cleanup (`revokeObjectURL`). - -### Instance - -The instance is [`iterable`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Iteration_protocols) so you can use it directly in a [`for…of`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Statements/for...of) loop. - -Both `key` and `value` can be of any type. - -#### .set(key, value, options?) - -Set an item. Returns the instance. - -Individual expiration of an item can be specified with the `maxAge` option. If not specified, the global `maxAge` value will be used in case it is specified on the constructor, otherwise the item will never expire. - -#### .get(key) - -Get an item. - -#### .has(key) - -Check if an item exists. - -#### .peek(key) - -Get an item without marking it as recently used. - -#### .delete(key) - -Delete an item. - -Returns `true` if the item is removed or `false` if the item doesn't exist. - -#### .clear() - -Delete all items. - -#### .resize(maxSize) - -Update the `maxSize`, discarding items as necessary. Insertion order is mostly preserved, though this is not a strong guarantee. - -Useful for on-the-fly tuning of cache sizes in live systems. - -#### .keys() - -Iterable for all the keys. - -#### .values() - -Iterable for all the values. - -#### .entriesAscending() - -Iterable for all entries, starting with the oldest (ascending in recency). - -#### .entriesDescending() - -Iterable for all entries, starting with the newest (descending in recency). - -#### .size - -The stored item count. - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/WechatBot/node_modules/@babel/runtime/LICENSE b/WechatBot/node_modules/@babel/runtime/LICENSE deleted file mode 100644 index f31575ec7..000000000 --- a/WechatBot/node_modules/@babel/runtime/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -MIT License - -Copyright (c) 2014-present Sebastian McKenzie and other contributors - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/WechatBot/node_modules/@babel/runtime/README.md b/WechatBot/node_modules/@babel/runtime/README.md deleted file mode 100644 index 2f3368ef5..000000000 --- a/WechatBot/node_modules/@babel/runtime/README.md +++ /dev/null @@ -1,19 +0,0 @@ -# @babel/runtime - -> babel's modular runtime helpers - -See our website [@babel/runtime](https://babeljs.io/docs/babel-runtime) for more information. - -## Install - -Using npm: - -```sh -npm install --save @babel/runtime -``` - -or using yarn: - -```sh -yarn add @babel/runtime -``` diff --git a/WechatBot/node_modules/@babel/runtime/helpers/AsyncGenerator.js b/WechatBot/node_modules/@babel/runtime/helpers/AsyncGenerator.js deleted file mode 100755 index c3379a9cc..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/AsyncGenerator.js +++ /dev/null @@ -1,64 +0,0 @@ -var OverloadYield = require("./OverloadYield.js"); -function AsyncGenerator(gen) { - var front, back; - function resume(key, arg) { - try { - var result = gen[key](arg), - value = result.value, - overloaded = value instanceof OverloadYield; - Promise.resolve(overloaded ? value.v : value).then(function (arg) { - if (overloaded) { - var nextKey = "return" === key ? "return" : "next"; - if (!value.k || arg.done) return resume(nextKey, arg); - arg = gen[nextKey](arg).value; - } - settle(result.done ? "return" : "normal", arg); - }, function (err) { - resume("throw", err); - }); - } catch (err) { - settle("throw", err); - } - } - function settle(type, value) { - switch (type) { - case "return": - front.resolve({ - value: value, - done: !0 - }); - break; - case "throw": - front.reject(value); - break; - default: - front.resolve({ - value: value, - done: !1 - }); - } - (front = front.next) ? resume(front.key, front.arg) : back = null; - } - this._invoke = function (key, arg) { - return new Promise(function (resolve, reject) { - var request = { - key: key, - arg: arg, - resolve: resolve, - reject: reject, - next: null - }; - back ? back = back.next = request : (front = back = request, resume(key, arg)); - }); - }, "function" != typeof gen["return"] && (this["return"] = void 0); -} -AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { - return this; -}, AsyncGenerator.prototype.next = function (arg) { - return this._invoke("next", arg); -}, AsyncGenerator.prototype["throw"] = function (arg) { - return this._invoke("throw", arg); -}, AsyncGenerator.prototype["return"] = function (arg) { - return this._invoke("return", arg); -}; -module.exports = AsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/AwaitValue.js b/WechatBot/node_modules/@babel/runtime/helpers/AwaitValue.js deleted file mode 100755 index 7681c2dfd..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/AwaitValue.js +++ /dev/null @@ -1,4 +0,0 @@ -function _AwaitValue(value) { - this.wrapped = value; -} -module.exports = _AwaitValue, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/OverloadYield.js b/WechatBot/node_modules/@babel/runtime/helpers/OverloadYield.js deleted file mode 100755 index b1331134e..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/OverloadYield.js +++ /dev/null @@ -1,4 +0,0 @@ -function _OverloadYield(value, kind) { - this.v = value, this.k = kind; -} -module.exports = _OverloadYield, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js b/WechatBot/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js deleted file mode 100755 index 98810d617..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +++ /dev/null @@ -1,24 +0,0 @@ -function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { - var desc = {}; - Object.keys(descriptor).forEach(function (key) { - desc[key] = descriptor[key]; - }); - desc.enumerable = !!desc.enumerable; - desc.configurable = !!desc.configurable; - if ('value' in desc || desc.initializer) { - desc.writable = true; - } - desc = decorators.slice().reverse().reduce(function (desc, decorator) { - return decorator(target, property, desc) || desc; - }, desc); - if (context && desc.initializer !== void 0) { - desc.value = desc.initializer ? desc.initializer.call(context) : void 0; - desc.initializer = undefined; - } - if (desc.initializer === void 0) { - Object.defineProperty(target, property, desc); - desc = null; - } - return desc; -} -module.exports = _applyDecoratedDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/applyDecs.js b/WechatBot/node_modules/@babel/runtime/helpers/applyDecs.js deleted file mode 100755 index 68a08c26b..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/applyDecs.js +++ /dev/null @@ -1,236 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function old_createMetadataMethodsForProperty(metadataMap, kind, property, decoratorFinishedRef) { - return { - getMetadata: function getMetadata(key) { - old_assertNotFinished(decoratorFinishedRef, "getMetadata"), old_assertMetadataKey(key); - var metadataForKey = metadataMap[key]; - if (void 0 !== metadataForKey) if (1 === kind) { - var pub = metadataForKey["public"]; - if (void 0 !== pub) return pub[property]; - } else if (2 === kind) { - var priv = metadataForKey["private"]; - if (void 0 !== priv) return priv.get(property); - } else if (Object.hasOwnProperty.call(metadataForKey, "constructor")) return metadataForKey.constructor; - }, - setMetadata: function setMetadata(key, value) { - old_assertNotFinished(decoratorFinishedRef, "setMetadata"), old_assertMetadataKey(key); - var metadataForKey = metadataMap[key]; - if (void 0 === metadataForKey && (metadataForKey = metadataMap[key] = {}), 1 === kind) { - var pub = metadataForKey["public"]; - void 0 === pub && (pub = metadataForKey["public"] = {}), pub[property] = value; - } else if (2 === kind) { - var priv = metadataForKey.priv; - void 0 === priv && (priv = metadataForKey["private"] = new Map()), priv.set(property, value); - } else metadataForKey.constructor = value; - } - }; -} -function old_convertMetadataMapToFinal(obj, metadataMap) { - var parentMetadataMap = obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")], - metadataKeys = Object.getOwnPropertySymbols(metadataMap); - if (0 !== metadataKeys.length) { - for (var i = 0; i < metadataKeys.length; i++) { - var key = metadataKeys[i], - metaForKey = metadataMap[key], - parentMetaForKey = parentMetadataMap ? parentMetadataMap[key] : null, - pub = metaForKey["public"], - parentPub = parentMetaForKey ? parentMetaForKey["public"] : null; - pub && parentPub && Object.setPrototypeOf(pub, parentPub); - var priv = metaForKey["private"]; - if (priv) { - var privArr = Array.from(priv.values()), - parentPriv = parentMetaForKey ? parentMetaForKey["private"] : null; - parentPriv && (privArr = privArr.concat(parentPriv)), metaForKey["private"] = privArr; - } - parentMetaForKey && Object.setPrototypeOf(metaForKey, parentMetaForKey); - } - parentMetadataMap && Object.setPrototypeOf(metadataMap, parentMetadataMap), obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = metadataMap; - } -} -function old_createAddInitializerMethod(initializers, decoratorFinishedRef) { - return function (initializer) { - old_assertNotFinished(decoratorFinishedRef, "addInitializer"), old_assertCallable(initializer, "An initializer"), initializers.push(initializer); - }; -} -function old_memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value) { - var kindStr; - switch (kind) { - case 1: - kindStr = "accessor"; - break; - case 2: - kindStr = "method"; - break; - case 3: - kindStr = "getter"; - break; - case 4: - kindStr = "setter"; - break; - default: - kindStr = "field"; - } - var metadataKind, - metadataName, - ctx = { - kind: kindStr, - name: isPrivate ? "#" + name : name, - isStatic: isStatic, - isPrivate: isPrivate - }, - decoratorFinishedRef = { - v: !1 - }; - if (0 !== kind && (ctx.addInitializer = old_createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate) { - metadataKind = 2, metadataName = Symbol(name); - var access = {}; - 0 === kind ? (access.get = desc.get, access.set = desc.set) : 2 === kind ? access.get = function () { - return desc.value; - } : (1 !== kind && 3 !== kind || (access.get = function () { - return desc.get.call(this); - }), 1 !== kind && 4 !== kind || (access.set = function (v) { - desc.set.call(this, v); - })), ctx.access = access; - } else metadataKind = 1, metadataName = name; - try { - return dec(value, Object.assign(ctx, old_createMetadataMethodsForProperty(metadataMap, metadataKind, metadataName, decoratorFinishedRef))); - } finally { - decoratorFinishedRef.v = !0; - } -} -function old_assertNotFinished(decoratorFinishedRef, fnName) { - if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished"); -} -function old_assertMetadataKey(key) { - if ("symbol" != _typeof(key)) throw new TypeError("Metadata keys must be symbols, received: " + key); -} -function old_assertCallable(fn, hint) { - if ("function" != typeof fn) throw new TypeError(hint + " must be a function"); -} -function old_assertValidReturnValue(kind, value) { - var type = _typeof(value); - if (1 === kind) { - if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== value.get && old_assertCallable(value.get, "accessor.get"), void 0 !== value.set && old_assertCallable(value.set, "accessor.set"), void 0 !== value.init && old_assertCallable(value.init, "accessor.init"), void 0 !== value.initializer && old_assertCallable(value.initializer, "accessor.initializer"); - } else if ("function" !== type) { - var hint; - throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0"); - } -} -function old_getInit(desc) { - var initializer; - return null == (initializer = desc.init) && (initializer = desc.initializer) && "undefined" != typeof console && console.warn(".initializer has been renamed to .init as of March 2022"), initializer; -} -function old_applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers) { - var desc, - initializer, - value, - newValue, - get, - set, - decs = decInfo[0]; - if (isPrivate ? desc = 0 === kind || 1 === kind ? { - get: decInfo[3], - set: decInfo[4] - } : 3 === kind ? { - get: decInfo[3] - } : 4 === kind ? { - set: decInfo[3] - } : { - value: decInfo[3] - } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = { - get: desc.get, - set: desc.set - } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = old_memberDec(decs, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value)) && (old_assertValidReturnValue(kind, newValue), 0 === kind ? initializer = newValue : 1 === kind ? (initializer = old_getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) { - var newInit; - if (void 0 !== (newValue = old_memberDec(decs[i], name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value))) old_assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = old_getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue, void 0 !== newInit && (void 0 === initializer ? initializer = newInit : "function" == typeof initializer ? initializer = [initializer, newInit] : initializer.push(newInit)); - } - if (0 === kind || 1 === kind) { - if (void 0 === initializer) initializer = function initializer(instance, init) { - return init; - };else if ("function" != typeof initializer) { - var ownInitializers = initializer; - initializer = function initializer(instance, init) { - for (var value = init, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value); - return value; - }; - } else { - var originalInitializer = initializer; - initializer = function initializer(instance, init) { - return originalInitializer.call(instance, init); - }; - } - ret.push(initializer); - } - 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) { - return value.get.call(instance, args); - }), ret.push(function (instance, args) { - return value.set.call(instance, args); - })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) { - return value.call(instance, args); - }) : Object.defineProperty(base, name, desc)); -} -function old_applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, decInfos) { - for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) { - var decInfo = decInfos[i]; - if (Array.isArray(decInfo)) { - var base, - metadataMap, - initializers, - kind = decInfo[1], - name = decInfo[2], - isPrivate = decInfo.length > 3, - isStatic = kind >= 5; - if (isStatic ? (base = Class, metadataMap = staticMetadataMap, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, metadataMap = protoMetadataMap, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) { - var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields, - existingKind = existingNonFields.get(name) || 0; - if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name); - !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0); - } - old_applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers); - } - } - old_pushInitializers(ret, protoInitializers), old_pushInitializers(ret, staticInitializers); -} -function old_pushInitializers(ret, initializers) { - initializers && ret.push(function (instance) { - for (var i = 0; i < initializers.length; i++) initializers[i].call(instance); - return instance; - }); -} -function old_applyClassDecs(ret, targetClass, metadataMap, classDecs) { - if (classDecs.length > 0) { - for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) { - var decoratorFinishedRef = { - v: !1 - }; - try { - var ctx = Object.assign({ - kind: "class", - name: name, - addInitializer: old_createAddInitializerMethod(initializers, decoratorFinishedRef) - }, old_createMetadataMethodsForProperty(metadataMap, 0, name, decoratorFinishedRef)), - nextNewClass = classDecs[i](newClass, ctx); - } finally { - decoratorFinishedRef.v = !0; - } - void 0 !== nextNewClass && (old_assertValidReturnValue(10, nextNewClass), newClass = nextNewClass); - } - ret.push(newClass, function () { - for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass); - }); - } -} -function applyDecs(targetClass, memberDecs, classDecs) { - var ret = [], - staticMetadataMap = {}, - protoMetadataMap = {}; - return old_applyMemberDecs(ret, targetClass, protoMetadataMap, staticMetadataMap, memberDecs), old_convertMetadataMapToFinal(targetClass.prototype, protoMetadataMap), old_applyClassDecs(ret, targetClass, staticMetadataMap, classDecs), old_convertMetadataMapToFinal(targetClass, staticMetadataMap), ret; -} -module.exports = applyDecs, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2203.js b/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2203.js deleted file mode 100755 index b15c00197..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2203.js +++ /dev/null @@ -1,187 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function applyDecs2203Factory() { - function createAddInitializerMethod(initializers, decoratorFinishedRef) { - return function (initializer) { - !function (decoratorFinishedRef, fnName) { - if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished"); - }(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer); - }; - } - function memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, value) { - var kindStr; - switch (kind) { - case 1: - kindStr = "accessor"; - break; - case 2: - kindStr = "method"; - break; - case 3: - kindStr = "getter"; - break; - case 4: - kindStr = "setter"; - break; - default: - kindStr = "field"; - } - var get, - set, - ctx = { - kind: kindStr, - name: isPrivate ? "#" + name : name, - "static": isStatic, - "private": isPrivate - }, - decoratorFinishedRef = { - v: !1 - }; - 0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), 0 === kind ? isPrivate ? (get = desc.get, set = desc.set) : (get = function get() { - return this[name]; - }, set = function set(v) { - this[name] = v; - }) : 2 === kind ? get = function get() { - return desc.value; - } : (1 !== kind && 3 !== kind || (get = function get() { - return desc.get.call(this); - }), 1 !== kind && 4 !== kind || (set = function set(v) { - desc.set.call(this, v); - })), ctx.access = get && set ? { - get: get, - set: set - } : get ? { - get: get - } : { - set: set - }; - try { - return dec(value, ctx); - } finally { - decoratorFinishedRef.v = !0; - } - } - function assertCallable(fn, hint) { - if ("function" != typeof fn) throw new TypeError(hint + " must be a function"); - } - function assertValidReturnValue(kind, value) { - var type = _typeof(value); - if (1 === kind) { - if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"); - } else if ("function" !== type) { - var hint; - throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0"); - } - } - function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers) { - var desc, - init, - value, - newValue, - get, - set, - decs = decInfo[0]; - if (isPrivate ? desc = 0 === kind || 1 === kind ? { - get: decInfo[3], - set: decInfo[4] - } : 3 === kind ? { - get: decInfo[3] - } : 4 === kind ? { - set: decInfo[3] - } : { - value: decInfo[3] - } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = { - get: desc.get, - set: desc.set - } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? init = newValue : 1 === kind ? (init = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) { - var newInit; - if (void 0 !== (newValue = memberDec(decs[i], name, desc, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue, void 0 !== newInit && (void 0 === init ? init = newInit : "function" == typeof init ? init = [init, newInit] : init.push(newInit)); - } - if (0 === kind || 1 === kind) { - if (void 0 === init) init = function init(instance, _init) { - return _init; - };else if ("function" != typeof init) { - var ownInitializers = init; - init = function init(instance, _init2) { - for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value); - return value; - }; - } else { - var originalInitializer = init; - init = function init(instance, _init3) { - return originalInitializer.call(instance, _init3); - }; - } - ret.push(init); - } - 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) { - return value.get.call(instance, args); - }), ret.push(function (instance, args) { - return value.set.call(instance, args); - })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) { - return value.call(instance, args); - }) : Object.defineProperty(base, name, desc)); - } - function pushInitializers(ret, initializers) { - initializers && ret.push(function (instance) { - for (var i = 0; i < initializers.length; i++) initializers[i].call(instance); - return instance; - }); - } - return function (targetClass, memberDecs, classDecs) { - var ret = []; - return function (ret, Class, decInfos) { - for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) { - var decInfo = decInfos[i]; - if (Array.isArray(decInfo)) { - var base, - initializers, - kind = decInfo[1], - name = decInfo[2], - isPrivate = decInfo.length > 3, - isStatic = kind >= 5; - if (isStatic ? (base = Class, 0 != (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) { - var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields, - existingKind = existingNonFields.get(name) || 0; - if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name); - !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0); - } - applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers); - } - } - pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers); - }(ret, targetClass, memberDecs), function (ret, targetClass, classDecs) { - if (classDecs.length > 0) { - for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) { - var decoratorFinishedRef = { - v: !1 - }; - try { - var nextNewClass = classDecs[i](newClass, { - kind: "class", - name: name, - addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef) - }); - } finally { - decoratorFinishedRef.v = !0; - } - void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass); - } - ret.push(newClass, function () { - for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass); - }); - } - }(ret, targetClass, classDecs), ret; - }; -} -var applyDecs2203Impl; -function applyDecs2203(targetClass, memberDecs, classDecs) { - return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(targetClass, memberDecs, classDecs); -} -module.exports = applyDecs2203, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2203R.js b/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2203R.js deleted file mode 100755 index ef0ece5f3..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2203R.js +++ /dev/null @@ -1,191 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function applyDecs2203RFactory() { - function createAddInitializerMethod(initializers, decoratorFinishedRef) { - return function (initializer) { - !function (decoratorFinishedRef, fnName) { - if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished"); - }(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer); - }; - } - function memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, value) { - var kindStr; - switch (kind) { - case 1: - kindStr = "accessor"; - break; - case 2: - kindStr = "method"; - break; - case 3: - kindStr = "getter"; - break; - case 4: - kindStr = "setter"; - break; - default: - kindStr = "field"; - } - var get, - set, - ctx = { - kind: kindStr, - name: isPrivate ? "#" + name : name, - "static": isStatic, - "private": isPrivate - }, - decoratorFinishedRef = { - v: !1 - }; - 0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), 0 === kind ? isPrivate ? (get = desc.get, set = desc.set) : (get = function get() { - return this[name]; - }, set = function set(v) { - this[name] = v; - }) : 2 === kind ? get = function get() { - return desc.value; - } : (1 !== kind && 3 !== kind || (get = function get() { - return desc.get.call(this); - }), 1 !== kind && 4 !== kind || (set = function set(v) { - desc.set.call(this, v); - })), ctx.access = get && set ? { - get: get, - set: set - } : get ? { - get: get - } : { - set: set - }; - try { - return dec(value, ctx); - } finally { - decoratorFinishedRef.v = !0; - } - } - function assertCallable(fn, hint) { - if ("function" != typeof fn) throw new TypeError(hint + " must be a function"); - } - function assertValidReturnValue(kind, value) { - var type = _typeof(value); - if (1 === kind) { - if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"); - } else if ("function" !== type) { - var hint; - throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0"); - } - } - function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers) { - var desc, - init, - value, - newValue, - get, - set, - decs = decInfo[0]; - if (isPrivate ? desc = 0 === kind || 1 === kind ? { - get: decInfo[3], - set: decInfo[4] - } : 3 === kind ? { - get: decInfo[3] - } : 4 === kind ? { - set: decInfo[3] - } : { - value: decInfo[3] - } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = { - get: desc.get, - set: desc.set - } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? init = newValue : 1 === kind ? (init = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) { - var newInit; - if (void 0 !== (newValue = memberDec(decs[i], name, desc, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue, void 0 !== newInit && (void 0 === init ? init = newInit : "function" == typeof init ? init = [init, newInit] : init.push(newInit)); - } - if (0 === kind || 1 === kind) { - if (void 0 === init) init = function init(instance, _init) { - return _init; - };else if ("function" != typeof init) { - var ownInitializers = init; - init = function init(instance, _init2) { - for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value); - return value; - }; - } else { - var originalInitializer = init; - init = function init(instance, _init3) { - return originalInitializer.call(instance, _init3); - }; - } - ret.push(init); - } - 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) { - return value.get.call(instance, args); - }), ret.push(function (instance, args) { - return value.set.call(instance, args); - })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) { - return value.call(instance, args); - }) : Object.defineProperty(base, name, desc)); - } - function applyMemberDecs(Class, decInfos) { - for (var protoInitializers, staticInitializers, ret = [], existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) { - var decInfo = decInfos[i]; - if (Array.isArray(decInfo)) { - var base, - initializers, - kind = decInfo[1], - name = decInfo[2], - isPrivate = decInfo.length > 3, - isStatic = kind >= 5; - if (isStatic ? (base = Class, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) { - var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields, - existingKind = existingNonFields.get(name) || 0; - if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name); - !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0); - } - applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers); - } - } - return pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers), ret; - } - function pushInitializers(ret, initializers) { - initializers && ret.push(function (instance) { - for (var i = 0; i < initializers.length; i++) initializers[i].call(instance); - return instance; - }); - } - return function (targetClass, memberDecs, classDecs) { - return { - e: applyMemberDecs(targetClass, memberDecs), - get c() { - return function (targetClass, classDecs) { - if (classDecs.length > 0) { - for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) { - var decoratorFinishedRef = { - v: !1 - }; - try { - var nextNewClass = classDecs[i](newClass, { - kind: "class", - name: name, - addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef) - }); - } finally { - decoratorFinishedRef.v = !0; - } - void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass); - } - return [newClass, function () { - for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass); - }]; - } - }(targetClass, classDecs); - } - }; - }; -} -function applyDecs2203R(targetClass, memberDecs, classDecs) { - return (module.exports = applyDecs2203R = applyDecs2203RFactory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(targetClass, memberDecs, classDecs); -} -module.exports = applyDecs2203R, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2301.js b/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2301.js deleted file mode 100755 index bcec93e4b..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2301.js +++ /dev/null @@ -1,222 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var checkInRHS = require("./checkInRHS.js"); -function applyDecs2301Factory() { - function createAddInitializerMethod(initializers, decoratorFinishedRef) { - return function (initializer) { - !function (decoratorFinishedRef, fnName) { - if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished"); - }(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer); - }; - } - function assertInstanceIfPrivate(has, target) { - if (!has(target)) throw new TypeError("Attempted to access private element on non-instance"); - } - function memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand) { - var kindStr; - switch (kind) { - case 1: - kindStr = "accessor"; - break; - case 2: - kindStr = "method"; - break; - case 3: - kindStr = "getter"; - break; - case 4: - kindStr = "setter"; - break; - default: - kindStr = "field"; - } - var get, - set, - ctx = { - kind: kindStr, - name: isPrivate ? "#" + name : name, - "static": isStatic, - "private": isPrivate - }, - decoratorFinishedRef = { - v: !1 - }; - if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate || 0 !== kind && 2 !== kind) { - if (2 === kind) get = function get(target) { - return assertInstanceIfPrivate(hasPrivateBrand, target), desc.value; - };else { - var t = 0 === kind || 1 === kind; - (t || 3 === kind) && (get = isPrivate ? function (target) { - return assertInstanceIfPrivate(hasPrivateBrand, target), desc.get.call(target); - } : function (target) { - return desc.get.call(target); - }), (t || 4 === kind) && (set = isPrivate ? function (target, value) { - assertInstanceIfPrivate(hasPrivateBrand, target), desc.set.call(target, value); - } : function (target, value) { - desc.set.call(target, value); - }); - } - } else get = function get(target) { - return target[name]; - }, 0 === kind && (set = function set(target, v) { - target[name] = v; - }); - var has = isPrivate ? hasPrivateBrand.bind() : function (target) { - return name in target; - }; - ctx.access = get && set ? { - get: get, - set: set, - has: has - } : get ? { - get: get, - has: has - } : { - set: set, - has: has - }; - try { - return dec(value, ctx); - } finally { - decoratorFinishedRef.v = !0; - } - } - function assertCallable(fn, hint) { - if ("function" != typeof fn) throw new TypeError(hint + " must be a function"); - } - function assertValidReturnValue(kind, value) { - var type = _typeof(value); - if (1 === kind) { - if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"); - } else if ("function" !== type) { - var hint; - throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0"); - } - } - function curryThis2(fn) { - return function (value) { - fn(this, value); - }; - } - function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers, hasPrivateBrand) { - var desc, - init, - value, - fn, - newValue, - get, - set, - decs = decInfo[0]; - if (isPrivate ? desc = 0 === kind || 1 === kind ? { - get: (fn = decInfo[3], function () { - return fn(this); - }), - set: curryThis2(decInfo[4]) - } : 3 === kind ? { - get: decInfo[3] - } : 4 === kind ? { - set: decInfo[3] - } : { - value: decInfo[3] - } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = { - get: desc.get, - set: desc.set - } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand)) && (assertValidReturnValue(kind, newValue), 0 === kind ? init = newValue : 1 === kind ? (init = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) { - var newInit; - if (void 0 !== (newValue = memberDec(decs[i], name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue, void 0 !== newInit && (void 0 === init ? init = newInit : "function" == typeof init ? init = [init, newInit] : init.push(newInit)); - } - if (0 === kind || 1 === kind) { - if (void 0 === init) init = function init(instance, _init) { - return _init; - };else if ("function" != typeof init) { - var ownInitializers = init; - init = function init(instance, _init2) { - for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value); - return value; - }; - } else { - var originalInitializer = init; - init = function init(instance, _init3) { - return originalInitializer.call(instance, _init3); - }; - } - ret.push(init); - } - 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) { - return value.get.call(instance, args); - }), ret.push(function (instance, args) { - return value.set.call(instance, args); - })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) { - return value.call(instance, args); - }) : Object.defineProperty(base, name, desc)); - } - function applyMemberDecs(Class, decInfos, instanceBrand) { - for (var protoInitializers, staticInitializers, staticBrand, ret = [], existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) { - var decInfo = decInfos[i]; - if (Array.isArray(decInfo)) { - var base, - initializers, - kind = decInfo[1], - name = decInfo[2], - isPrivate = decInfo.length > 3, - isStatic = kind >= 5, - hasPrivateBrand = instanceBrand; - if (isStatic ? (base = Class, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || []), isPrivate && !staticBrand && (staticBrand = function staticBrand(_) { - return checkInRHS(_) === Class; - }), hasPrivateBrand = staticBrand) : (base = Class.prototype, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) { - var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields, - existingKind = existingNonFields.get(name) || 0; - if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name); - !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0); - } - applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers, hasPrivateBrand); - } - } - return pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers), ret; - } - function pushInitializers(ret, initializers) { - initializers && ret.push(function (instance) { - for (var i = 0; i < initializers.length; i++) initializers[i].call(instance); - return instance; - }); - } - return function (targetClass, memberDecs, classDecs, instanceBrand) { - return { - e: applyMemberDecs(targetClass, memberDecs, instanceBrand), - get c() { - return function (targetClass, classDecs) { - if (classDecs.length > 0) { - for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) { - var decoratorFinishedRef = { - v: !1 - }; - try { - var nextNewClass = classDecs[i](newClass, { - kind: "class", - name: name, - addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef) - }); - } finally { - decoratorFinishedRef.v = !0; - } - void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass); - } - return [newClass, function () { - for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass); - }]; - } - }(targetClass, classDecs); - } - }; - }; -} -function applyDecs2301(targetClass, memberDecs, classDecs, instanceBrand) { - return (module.exports = applyDecs2301 = applyDecs2301Factory(), module.exports.__esModule = true, module.exports["default"] = module.exports)(targetClass, memberDecs, classDecs, instanceBrand); -} -module.exports = applyDecs2301, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2305.js b/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2305.js deleted file mode 100755 index 2da2c80a9..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/applyDecs2305.js +++ /dev/null @@ -1,220 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var checkInRHS = require("./checkInRHS.js"); -function createAddInitializerMethod(initializers, decoratorFinishedRef) { - return function (initializer) { - assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer); - }; -} -function assertInstanceIfPrivate(has, target) { - if (!has(target)) throw new TypeError("Attempted to access private element on non-instance"); -} -function memberDec(dec, thisArg, name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand) { - var kindStr; - switch (kind) { - case 1: - kindStr = "accessor"; - break; - case 2: - kindStr = "method"; - break; - case 3: - kindStr = "getter"; - break; - case 4: - kindStr = "setter"; - break; - default: - kindStr = "field"; - } - var get, - set, - ctx = { - kind: kindStr, - name: isPrivate ? "#" + name : name, - "static": isStatic, - "private": isPrivate - }, - decoratorFinishedRef = { - v: !1 - }; - if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate || 0 !== kind && 2 !== kind) { - if (2 === kind) get = function get(target) { - return assertInstanceIfPrivate(hasPrivateBrand, target), desc.value; - };else { - var t = 0 === kind || 1 === kind; - (t || 3 === kind) && (get = isPrivate ? function (target) { - return assertInstanceIfPrivate(hasPrivateBrand, target), desc.get.call(target); - } : function (target) { - return desc.get.call(target); - }), (t || 4 === kind) && (set = isPrivate ? function (target, value) { - assertInstanceIfPrivate(hasPrivateBrand, target), desc.set.call(target, value); - } : function (target, value) { - desc.set.call(target, value); - }); - } - } else get = function get(target) { - return target[name]; - }, 0 === kind && (set = function set(target, v) { - target[name] = v; - }); - var has = isPrivate ? hasPrivateBrand.bind() : function (target) { - return name in target; - }; - ctx.access = get && set ? { - get: get, - set: set, - has: has - } : get ? { - get: get, - has: has - } : { - set: set, - has: has - }; - try { - return dec.call(thisArg, value, ctx); - } finally { - decoratorFinishedRef.v = !0; - } -} -function assertNotFinished(decoratorFinishedRef, fnName) { - if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished"); -} -function assertCallable(fn, hint) { - if ("function" != typeof fn) throw new TypeError(hint + " must be a function"); -} -function assertValidReturnValue(kind, value) { - var type = _typeof(value); - if (1 === kind) { - if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"); - } else if ("function" !== type) { - var hint; - throw hint = 0 === kind ? "field" : 5 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0"); - } -} -function curryThis1(fn) { - return function () { - return fn(this); - }; -} -function curryThis2(fn) { - return function (value) { - fn(this, value); - }; -} -function applyMemberDec(ret, base, decInfo, decoratorsHaveThis, name, kind, isStatic, isPrivate, initializers, hasPrivateBrand) { - var desc, - init, - value, - newValue, - get, - set, - decs = decInfo[0]; - decoratorsHaveThis || Array.isArray(decs) || (decs = [decs]), isPrivate ? desc = 0 === kind || 1 === kind ? { - get: curryThis1(decInfo[3]), - set: curryThis2(decInfo[4]) - } : 3 === kind ? { - get: decInfo[3] - } : 4 === kind ? { - set: decInfo[3] - } : { - value: decInfo[3] - } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = { - get: desc.get, - set: desc.set - } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set); - for (var inc = decoratorsHaveThis ? 2 : 1, i = decs.length - 1; i >= 0; i -= inc) { - var newInit; - if (void 0 !== (newValue = memberDec(decs[i], decoratorsHaveThis ? decs[i - 1] : void 0, name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue, void 0 !== newInit && (void 0 === init ? init = newInit : "function" == typeof init ? init = [init, newInit] : init.push(newInit)); - } - if (0 === kind || 1 === kind) { - if (void 0 === init) init = function init(instance, _init) { - return _init; - };else if ("function" != typeof init) { - var ownInitializers = init; - init = function init(instance, _init2) { - for (var value = _init2, i = ownInitializers.length - 1; i >= 0; i--) value = ownInitializers[i].call(instance, value); - return value; - }; - } else { - var originalInitializer = init; - init = function init(instance, _init3) { - return originalInitializer.call(instance, _init3); - }; - } - ret.push(init); - } - 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) { - return value.get.call(instance, args); - }), ret.push(function (instance, args) { - return value.set.call(instance, args); - })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) { - return value.call(instance, args); - }) : Object.defineProperty(base, name, desc)); -} -function applyMemberDecs(Class, decInfos, instanceBrand) { - for (var protoInitializers, staticInitializers, staticBrand, ret = [], existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) { - var decInfo = decInfos[i]; - if (Array.isArray(decInfo)) { - var base, - initializers, - kind = decInfo[1], - name = decInfo[2], - isPrivate = decInfo.length > 3, - decoratorsHaveThis = 16 & kind, - isStatic = !!(8 & kind), - hasPrivateBrand = instanceBrand; - if (kind &= 7, isStatic ? (base = Class, 0 !== kind && (initializers = staticInitializers = staticInitializers || []), isPrivate && !staticBrand && (staticBrand = function staticBrand(_) { - return checkInRHS(_) === Class; - }), hasPrivateBrand = staticBrand) : (base = Class.prototype, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) { - var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields, - existingKind = existingNonFields.get(name) || 0; - if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name); - existingNonFields.set(name, !(!existingKind && kind > 2) || kind); - } - applyMemberDec(ret, base, decInfo, decoratorsHaveThis, name, kind, isStatic, isPrivate, initializers, hasPrivateBrand); - } - } - return pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers), ret; -} -function pushInitializers(ret, initializers) { - initializers && ret.push(function (instance) { - for (var i = 0; i < initializers.length; i++) initializers[i].call(instance); - return instance; - }); -} -function applyClassDecs(targetClass, classDecs, decoratorsHaveThis) { - if (classDecs.length) { - for (var initializers = [], newClass = targetClass, name = targetClass.name, inc = decoratorsHaveThis ? 2 : 1, i = classDecs.length - 1; i >= 0; i -= inc) { - var decoratorFinishedRef = { - v: !1 - }; - try { - var nextNewClass = classDecs[i].call(decoratorsHaveThis ? classDecs[i - 1] : void 0, newClass, { - kind: "class", - name: name, - addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef) - }); - } finally { - decoratorFinishedRef.v = !0; - } - void 0 !== nextNewClass && (assertValidReturnValue(5, nextNewClass), newClass = nextNewClass); - } - return [newClass, function () { - for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass); - }]; - } -} -function applyDecs2305(targetClass, memberDecs, classDecs, classDecsHaveThis, instanceBrand) { - return { - e: applyMemberDecs(targetClass, memberDecs, instanceBrand), - get c() { - return applyClassDecs(targetClass, classDecs, classDecsHaveThis); - } - }; -} -module.exports = applyDecs2305, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/arrayLikeToArray.js b/WechatBot/node_modules/@babel/runtime/helpers/arrayLikeToArray.js deleted file mode 100755 index 368654019..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +++ /dev/null @@ -1,6 +0,0 @@ -function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; -} -module.exports = _arrayLikeToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/arrayWithHoles.js b/WechatBot/node_modules/@babel/runtime/helpers/arrayWithHoles.js deleted file mode 100755 index ad0cc6b94..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/arrayWithHoles.js +++ /dev/null @@ -1,4 +0,0 @@ -function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} -module.exports = _arrayWithHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js b/WechatBot/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js deleted file mode 100755 index 6d4b76deb..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +++ /dev/null @@ -1,5 +0,0 @@ -var arrayLikeToArray = require("./arrayLikeToArray.js"); -function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return arrayLikeToArray(arr); -} -module.exports = _arrayWithoutHoles, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/assertThisInitialized.js b/WechatBot/node_modules/@babel/runtime/helpers/assertThisInitialized.js deleted file mode 100755 index 71487e574..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/assertThisInitialized.js +++ /dev/null @@ -1,7 +0,0 @@ -function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} -module.exports = _assertThisInitialized, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js b/WechatBot/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js deleted file mode 100755 index c272bcdee..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +++ /dev/null @@ -1,24 +0,0 @@ -var OverloadYield = require("./OverloadYield.js"); -function _asyncGeneratorDelegate(inner) { - var iter = {}, - waiting = !1; - function pump(key, value) { - return waiting = !0, value = new Promise(function (resolve) { - resolve(inner[key](value)); - }), { - done: !1, - value: new OverloadYield(value, 1) - }; - } - return iter["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { - return this; - }, iter.next = function (value) { - return waiting ? (waiting = !1, value) : pump("next", value); - }, "function" == typeof inner["throw"] && (iter["throw"] = function (value) { - if (waiting) throw waiting = !1, value; - return pump("throw", value); - }), "function" == typeof inner["return"] && (iter["return"] = function (value) { - return waiting ? (waiting = !1, value) : pump("return", value); - }), iter; -} -module.exports = _asyncGeneratorDelegate, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/asyncIterator.js b/WechatBot/node_modules/@babel/runtime/helpers/asyncIterator.js deleted file mode 100755 index 420ef0807..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/asyncIterator.js +++ /dev/null @@ -1,45 +0,0 @@ -function _asyncIterator(iterable) { - var method, - async, - sync, - retry = 2; - for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) { - if (async && null != (method = iterable[async])) return method.call(iterable); - if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable)); - async = "@@asyncIterator", sync = "@@iterator"; - } - throw new TypeError("Object is not async iterable"); -} -function AsyncFromSyncIterator(s) { - function AsyncFromSyncIteratorContinuation(r) { - if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); - var done = r.done; - return Promise.resolve(r.value).then(function (value) { - return { - value: value, - done: done - }; - }); - } - return AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { - this.s = s, this.n = s.next; - }, AsyncFromSyncIterator.prototype = { - s: null, - n: null, - next: function next() { - return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); - }, - "return": function _return(value) { - var ret = this.s["return"]; - return void 0 === ret ? Promise.resolve({ - value: value, - done: !0 - }) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); - }, - "throw": function _throw(value) { - var thr = this.s["return"]; - return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); - } - }, new AsyncFromSyncIterator(s); -} -module.exports = _asyncIterator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/asyncToGenerator.js b/WechatBot/node_modules/@babel/runtime/helpers/asyncToGenerator.js deleted file mode 100755 index 6b9697af1..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/asyncToGenerator.js +++ /dev/null @@ -1,31 +0,0 @@ -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} -function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - _next(undefined); - }); - }; -} -module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js b/WechatBot/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js deleted file mode 100755 index 7d4e95118..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +++ /dev/null @@ -1,5 +0,0 @@ -var OverloadYield = require("./OverloadYield.js"); -function _awaitAsyncGenerator(value) { - return new OverloadYield(value, 0); -} -module.exports = _awaitAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/checkInRHS.js b/WechatBot/node_modules/@babel/runtime/helpers/checkInRHS.js deleted file mode 100755 index e6ba63894..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/checkInRHS.js +++ /dev/null @@ -1,6 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function _checkInRHS(value) { - if (Object(value) !== value) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== value ? _typeof(value) : "null")); - return value; -} -module.exports = _checkInRHS, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js b/WechatBot/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js deleted file mode 100755 index 1bbfd3465..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +++ /dev/null @@ -1,6 +0,0 @@ -function _checkPrivateRedeclaration(obj, privateCollection) { - if (privateCollection.has(obj)) { - throw new TypeError("Cannot initialize the same private elements twice on an object"); - } -} -module.exports = _checkPrivateRedeclaration, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js b/WechatBot/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js deleted file mode 100755 index 3ebfed87c..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +++ /dev/null @@ -1,18 +0,0 @@ -function _classApplyDescriptorDestructureSet(receiver, descriptor) { - if (descriptor.set) { - if (!("__destrObj" in descriptor)) { - descriptor.__destrObj = { - set value(v) { - descriptor.set.call(receiver, v); - } - }; - } - return descriptor.__destrObj; - } else { - if (!descriptor.writable) { - throw new TypeError("attempted to set read only private field"); - } - return descriptor; - } -} -module.exports = _classApplyDescriptorDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js b/WechatBot/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js deleted file mode 100755 index af3555da4..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +++ /dev/null @@ -1,7 +0,0 @@ -function _classApplyDescriptorGet(receiver, descriptor) { - if (descriptor.get) { - return descriptor.get.call(receiver); - } - return descriptor.value; -} -module.exports = _classApplyDescriptorGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js b/WechatBot/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js deleted file mode 100755 index 71bbf1df4..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +++ /dev/null @@ -1,11 +0,0 @@ -function _classApplyDescriptorSet(receiver, descriptor, value) { - if (descriptor.set) { - descriptor.set.call(receiver, value); - } else { - if (!descriptor.writable) { - throw new TypeError("attempted to set read only private field"); - } - descriptor.value = value; - } -} -module.exports = _classApplyDescriptorSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classCallCheck.js b/WechatBot/node_modules/@babel/runtime/helpers/classCallCheck.js deleted file mode 100755 index eab7e5203..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classCallCheck.js +++ /dev/null @@ -1,6 +0,0 @@ -function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} -module.exports = _classCallCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js b/WechatBot/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js deleted file mode 100755 index 348768432..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +++ /dev/null @@ -1,6 +0,0 @@ -function _classCheckPrivateStaticAccess(receiver, classConstructor) { - if (receiver !== classConstructor) { - throw new TypeError("Private static access of wrong provenance"); - } -} -module.exports = _classCheckPrivateStaticAccess, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js b/WechatBot/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js deleted file mode 100755 index b937d15e6..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +++ /dev/null @@ -1,6 +0,0 @@ -function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { - if (descriptor === undefined) { - throw new TypeError("attempted to " + action + " private static field before its declaration"); - } -} -module.exports = _classCheckPrivateStaticFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js b/WechatBot/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js deleted file mode 100755 index e6f4725a2..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +++ /dev/null @@ -1,7 +0,0 @@ -function _classExtractFieldDescriptor(receiver, privateMap, action) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to " + action + " private field on non-instance"); - } - return privateMap.get(receiver); -} -module.exports = _classExtractFieldDescriptor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classNameTDZError.js b/WechatBot/node_modules/@babel/runtime/helpers/classNameTDZError.js deleted file mode 100755 index 9f84697a8..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classNameTDZError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classNameTDZError(name) { - throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys."); -} -module.exports = _classNameTDZError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js b/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js deleted file mode 100755 index 07f777df6..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +++ /dev/null @@ -1,7 +0,0 @@ -var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); -var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js"); -function _classPrivateFieldDestructureSet(receiver, privateMap) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); - return classApplyDescriptorDestructureSet(receiver, descriptor); -} -module.exports = _classPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js b/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js deleted file mode 100755 index a67951e1a..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +++ /dev/null @@ -1,7 +0,0 @@ -var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); -var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js"); -function _classPrivateFieldGet(receiver, privateMap) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get"); - return classApplyDescriptorGet(receiver, descriptor); -} -module.exports = _classPrivateFieldGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js b/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js deleted file mode 100755 index e55873a12..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +++ /dev/null @@ -1,6 +0,0 @@ -var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); -function _classPrivateFieldInitSpec(obj, privateMap, value) { - checkPrivateRedeclaration(obj, privateMap); - privateMap.set(obj, value); -} -module.exports = _classPrivateFieldInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js b/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js deleted file mode 100755 index bb16c0bce..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +++ /dev/null @@ -1,7 +0,0 @@ -function _classPrivateFieldBase(receiver, privateKey) { - if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { - throw new TypeError("attempted to use private field on non-instance"); - } - return receiver; -} -module.exports = _classPrivateFieldBase, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js b/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js deleted file mode 100755 index b3d546f1c..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +++ /dev/null @@ -1,5 +0,0 @@ -var id = 0; -function _classPrivateFieldKey(name) { - return "__private_" + id++ + "_" + name; -} -module.exports = _classPrivateFieldKey, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js b/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js deleted file mode 100755 index ffb73a107..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +++ /dev/null @@ -1,8 +0,0 @@ -var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); -var classExtractFieldDescriptor = require("./classExtractFieldDescriptor.js"); -function _classPrivateFieldSet(receiver, privateMap, value) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); - classApplyDescriptorSet(receiver, descriptor, value); - return value; -} -module.exports = _classPrivateFieldSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js b/WechatBot/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js deleted file mode 100755 index 6a8436dab..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +++ /dev/null @@ -1,7 +0,0 @@ -function _classPrivateMethodGet(receiver, privateSet, fn) { - if (!privateSet.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return fn; -} -module.exports = _classPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js b/WechatBot/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js deleted file mode 100755 index 31064767b..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +++ /dev/null @@ -1,6 +0,0 @@ -var checkPrivateRedeclaration = require("./checkPrivateRedeclaration.js"); -function _classPrivateMethodInitSpec(obj, privateSet) { - checkPrivateRedeclaration(obj, privateSet); - privateSet.add(obj); -} -module.exports = _classPrivateMethodInitSpec, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js b/WechatBot/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js deleted file mode 100755 index a44fd7853..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classPrivateMethodSet() { - throw new TypeError("attempted to reassign private method"); -} -module.exports = _classPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js b/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js deleted file mode 100755 index 734aaafa0..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +++ /dev/null @@ -1,9 +0,0 @@ -var classApplyDescriptorDestructureSet = require("./classApplyDescriptorDestructureSet.js"); -var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js"); -var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); -function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - return classApplyDescriptorDestructureSet(receiver, descriptor); -} -module.exports = _classStaticPrivateFieldDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js b/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js deleted file mode 100755 index e8e295f43..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +++ /dev/null @@ -1,9 +0,0 @@ -var classApplyDescriptorGet = require("./classApplyDescriptorGet.js"); -var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js"); -var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); -function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "get"); - return classApplyDescriptorGet(receiver, descriptor); -} -module.exports = _classStaticPrivateFieldSpecGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js b/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js deleted file mode 100755 index b02e4c018..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +++ /dev/null @@ -1,10 +0,0 @@ -var classApplyDescriptorSet = require("./classApplyDescriptorSet.js"); -var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js"); -var classCheckPrivateStaticFieldDescriptor = require("./classCheckPrivateStaticFieldDescriptor.js"); -function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - classApplyDescriptorSet(receiver, descriptor, value); - return value; -} -module.exports = _classStaticPrivateFieldSpecSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js b/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js deleted file mode 100755 index d3bb9968e..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +++ /dev/null @@ -1,6 +0,0 @@ -var classCheckPrivateStaticAccess = require("./classCheckPrivateStaticAccess.js"); -function _classStaticPrivateMethodGet(receiver, classConstructor, method) { - classCheckPrivateStaticAccess(receiver, classConstructor); - return method; -} -module.exports = _classStaticPrivateMethodGet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js b/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js deleted file mode 100755 index 72560e660..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +++ /dev/null @@ -1,4 +0,0 @@ -function _classStaticPrivateMethodSet() { - throw new TypeError("attempted to set read only static private field"); -} -module.exports = _classStaticPrivateMethodSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/construct.js b/WechatBot/node_modules/@babel/runtime/helpers/construct.js deleted file mode 100755 index 3d3c232dc..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/construct.js +++ /dev/null @@ -1,18 +0,0 @@ -var setPrototypeOf = require("./setPrototypeOf.js"); -var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); -function _construct(Parent, args, Class) { - if (isNativeReflectConstruct()) { - module.exports = _construct = Reflect.construct.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; - } else { - module.exports = _construct = function _construct(Parent, args, Class) { - var a = [null]; - a.push.apply(a, args); - var Constructor = Function.bind.apply(Parent, a); - var instance = new Constructor(); - if (Class) setPrototypeOf(instance, Class.prototype); - return instance; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - } - return _construct.apply(null, arguments); -} -module.exports = _construct, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/createClass.js b/WechatBot/node_modules/@babel/runtime/helpers/createClass.js deleted file mode 100755 index 201dcdf4f..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/createClass.js +++ /dev/null @@ -1,19 +0,0 @@ -var toPropertyKey = require("./toPropertyKey.js"); -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); - } -} -function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} -module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js b/WechatBot/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js deleted file mode 100755 index 19b6f141b..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +++ /dev/null @@ -1,53 +0,0 @@ -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -function _createForOfIteratorHelper(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (!it) { - if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - var F = function F() {}; - return { - s: F, - n: function n() { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }, - e: function e(_e) { - throw _e; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, - didErr = false, - err; - return { - s: function s() { - it = it.call(o); - }, - n: function n() { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function e(_e2) { - didErr = true; - err = _e2; - }, - f: function f() { - try { - if (!normalCompletion && it["return"] != null) it["return"](); - } finally { - if (didErr) throw err; - } - } - }; -} -module.exports = _createForOfIteratorHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js deleted file mode 100755 index b8eb55077..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +++ /dev/null @@ -1,20 +0,0 @@ -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -function _createForOfIteratorHelperLoose(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (it) return (it = it.call(o)).next.bind(it); - if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - return function () { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -module.exports = _createForOfIteratorHelperLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/createSuper.js b/WechatBot/node_modules/@babel/runtime/helpers/createSuper.js deleted file mode 100755 index bd72679c4..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/createSuper.js +++ /dev/null @@ -1,18 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf.js"); -var isNativeReflectConstruct = require("./isNativeReflectConstruct.js"); -var possibleConstructorReturn = require("./possibleConstructorReturn.js"); -function _createSuper(Derived) { - var hasNativeReflectConstruct = isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return possibleConstructorReturn(this, result); - }; -} -module.exports = _createSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/decorate.js b/WechatBot/node_modules/@babel/runtime/helpers/decorate.js deleted file mode 100755 index 457741fba..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/decorate.js +++ /dev/null @@ -1,343 +0,0 @@ -var toArray = require("./toArray.js"); -var toPropertyKey = require("./toPropertyKey.js"); -function _decorate(decorators, factory, superClass, mixins) { - var api = _getDecoratorsApi(); - if (mixins) { - for (var i = 0; i < mixins.length; i++) { - api = mixins[i](api); - } - } - var r = factory(function initialize(O) { - api.initializeInstanceElements(O, decorated.elements); - }, superClass); - var decorated = api.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators); - api.initializeClassElements(r.F, decorated.elements); - return api.runClassFinishers(r.F, decorated.finishers); -} -function _getDecoratorsApi() { - _getDecoratorsApi = function _getDecoratorsApi() { - return api; - }; - var api = { - elementsDefinitionOrder: [["method"], ["field"]], - initializeInstanceElements: function initializeInstanceElements(O, elements) { - ["method", "field"].forEach(function (kind) { - elements.forEach(function (element) { - if (element.kind === kind && element.placement === "own") { - this.defineClassElement(O, element); - } - }, this); - }, this); - }, - initializeClassElements: function initializeClassElements(F, elements) { - var proto = F.prototype; - ["method", "field"].forEach(function (kind) { - elements.forEach(function (element) { - var placement = element.placement; - if (element.kind === kind && (placement === "static" || placement === "prototype")) { - var receiver = placement === "static" ? F : proto; - this.defineClassElement(receiver, element); - } - }, this); - }, this); - }, - defineClassElement: function defineClassElement(receiver, element) { - var descriptor = element.descriptor; - if (element.kind === "field") { - var initializer = element.initializer; - descriptor = { - enumerable: descriptor.enumerable, - writable: descriptor.writable, - configurable: descriptor.configurable, - value: initializer === void 0 ? void 0 : initializer.call(receiver) - }; - } - Object.defineProperty(receiver, element.key, descriptor); - }, - decorateClass: function decorateClass(elements, decorators) { - var newElements = []; - var finishers = []; - var placements = { - "static": [], - prototype: [], - own: [] - }; - elements.forEach(function (element) { - this.addElementPlacement(element, placements); - }, this); - elements.forEach(function (element) { - if (!_hasDecorators(element)) return newElements.push(element); - var elementFinishersExtras = this.decorateElement(element, placements); - newElements.push(elementFinishersExtras.element); - newElements.push.apply(newElements, elementFinishersExtras.extras); - finishers.push.apply(finishers, elementFinishersExtras.finishers); - }, this); - if (!decorators) { - return { - elements: newElements, - finishers: finishers - }; - } - var result = this.decorateConstructor(newElements, decorators); - finishers.push.apply(finishers, result.finishers); - result.finishers = finishers; - return result; - }, - addElementPlacement: function addElementPlacement(element, placements, silent) { - var keys = placements[element.placement]; - if (!silent && keys.indexOf(element.key) !== -1) { - throw new TypeError("Duplicated element (" + element.key + ")"); - } - keys.push(element.key); - }, - decorateElement: function decorateElement(element, placements) { - var extras = []; - var finishers = []; - for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) { - var keys = placements[element.placement]; - keys.splice(keys.indexOf(element.key), 1); - var elementObject = this.fromElementDescriptor(element); - var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject); - element = elementFinisherExtras.element; - this.addElementPlacement(element, placements); - if (elementFinisherExtras.finisher) { - finishers.push(elementFinisherExtras.finisher); - } - var newExtras = elementFinisherExtras.extras; - if (newExtras) { - for (var j = 0; j < newExtras.length; j++) { - this.addElementPlacement(newExtras[j], placements); - } - extras.push.apply(extras, newExtras); - } - } - return { - element: element, - finishers: finishers, - extras: extras - }; - }, - decorateConstructor: function decorateConstructor(elements, decorators) { - var finishers = []; - for (var i = decorators.length - 1; i >= 0; i--) { - var obj = this.fromClassDescriptor(elements); - var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj); - if (elementsAndFinisher.finisher !== undefined) { - finishers.push(elementsAndFinisher.finisher); - } - if (elementsAndFinisher.elements !== undefined) { - elements = elementsAndFinisher.elements; - for (var j = 0; j < elements.length - 1; j++) { - for (var k = j + 1; k < elements.length; k++) { - if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) { - throw new TypeError("Duplicated element (" + elements[j].key + ")"); - } - } - } - } - } - return { - elements: elements, - finishers: finishers - }; - }, - fromElementDescriptor: function fromElementDescriptor(element) { - var obj = { - kind: element.kind, - key: element.key, - placement: element.placement, - descriptor: element.descriptor - }; - var desc = { - value: "Descriptor", - configurable: true - }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - if (element.kind === "field") obj.initializer = element.initializer; - return obj; - }, - toElementDescriptors: function toElementDescriptors(elementObjects) { - if (elementObjects === undefined) return; - return toArray(elementObjects).map(function (elementObject) { - var element = this.toElementDescriptor(elementObject); - this.disallowProperty(elementObject, "finisher", "An element descriptor"); - this.disallowProperty(elementObject, "extras", "An element descriptor"); - return element; - }, this); - }, - toElementDescriptor: function toElementDescriptor(elementObject) { - var kind = String(elementObject.kind); - if (kind !== "method" && kind !== "field") { - throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"'); - } - var key = toPropertyKey(elementObject.key); - var placement = String(elementObject.placement); - if (placement !== "static" && placement !== "prototype" && placement !== "own") { - throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"'); - } - var descriptor = elementObject.descriptor; - this.disallowProperty(elementObject, "elements", "An element descriptor"); - var element = { - kind: kind, - key: key, - placement: placement, - descriptor: Object.assign({}, descriptor) - }; - if (kind !== "field") { - this.disallowProperty(elementObject, "initializer", "A method descriptor"); - } else { - this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor"); - this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor"); - this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor"); - element.initializer = elementObject.initializer; - } - return element; - }, - toElementFinisherExtras: function toElementFinisherExtras(elementObject) { - var element = this.toElementDescriptor(elementObject); - var finisher = _optionalCallableProperty(elementObject, "finisher"); - var extras = this.toElementDescriptors(elementObject.extras); - return { - element: element, - finisher: finisher, - extras: extras - }; - }, - fromClassDescriptor: function fromClassDescriptor(elements) { - var obj = { - kind: "class", - elements: elements.map(this.fromElementDescriptor, this) - }; - var desc = { - value: "Descriptor", - configurable: true - }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - return obj; - }, - toClassDescriptor: function toClassDescriptor(obj) { - var kind = String(obj.kind); - if (kind !== "class") { - throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"'); - } - this.disallowProperty(obj, "key", "A class descriptor"); - this.disallowProperty(obj, "placement", "A class descriptor"); - this.disallowProperty(obj, "descriptor", "A class descriptor"); - this.disallowProperty(obj, "initializer", "A class descriptor"); - this.disallowProperty(obj, "extras", "A class descriptor"); - var finisher = _optionalCallableProperty(obj, "finisher"); - var elements = this.toElementDescriptors(obj.elements); - return { - elements: elements, - finisher: finisher - }; - }, - runClassFinishers: function runClassFinishers(constructor, finishers) { - for (var i = 0; i < finishers.length; i++) { - var newConstructor = (0, finishers[i])(constructor); - if (newConstructor !== undefined) { - if (typeof newConstructor !== "function") { - throw new TypeError("Finishers must return a constructor."); - } - constructor = newConstructor; - } - } - return constructor; - }, - disallowProperty: function disallowProperty(obj, name, objectType) { - if (obj[name] !== undefined) { - throw new TypeError(objectType + " can't have a ." + name + " property."); - } - } - }; - return api; -} -function _createElementDescriptor(def) { - var key = toPropertyKey(def.key); - var descriptor; - if (def.kind === "method") { - descriptor = { - value: def.value, - writable: true, - configurable: true, - enumerable: false - }; - } else if (def.kind === "get") { - descriptor = { - get: def.value, - configurable: true, - enumerable: false - }; - } else if (def.kind === "set") { - descriptor = { - set: def.value, - configurable: true, - enumerable: false - }; - } else if (def.kind === "field") { - descriptor = { - configurable: true, - writable: true, - enumerable: true - }; - } - var element = { - kind: def.kind === "field" ? "field" : "method", - key: key, - placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype", - descriptor: descriptor - }; - if (def.decorators) element.decorators = def.decorators; - if (def.kind === "field") element.initializer = def.value; - return element; -} -function _coalesceGetterSetter(element, other) { - if (element.descriptor.get !== undefined) { - other.descriptor.get = element.descriptor.get; - } else { - other.descriptor.set = element.descriptor.set; - } -} -function _coalesceClassElements(elements) { - var newElements = []; - var isSameElement = function isSameElement(other) { - return other.kind === "method" && other.key === element.key && other.placement === element.placement; - }; - for (var i = 0; i < elements.length; i++) { - var element = elements[i]; - var other; - if (element.kind === "method" && (other = newElements.find(isSameElement))) { - if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) { - if (_hasDecorators(element) || _hasDecorators(other)) { - throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated."); - } - other.descriptor = element.descriptor; - } else { - if (_hasDecorators(element)) { - if (_hasDecorators(other)) { - throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ")."); - } - other.decorators = element.decorators; - } - _coalesceGetterSetter(element, other); - } - } else { - newElements.push(element); - } - } - return newElements; -} -function _hasDecorators(element) { - return element.decorators && element.decorators.length; -} -function _isDataDescriptor(desc) { - return desc !== undefined && !(desc.value === undefined && desc.writable === undefined); -} -function _optionalCallableProperty(obj, name) { - var value = obj[name]; - if (value !== undefined && typeof value !== "function") { - throw new TypeError("Expected '" + name + "' to be a function"); - } - return value; -} -module.exports = _decorate, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/defaults.js b/WechatBot/node_modules/@babel/runtime/helpers/defaults.js deleted file mode 100755 index 86641e9c0..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/defaults.js +++ /dev/null @@ -1,12 +0,0 @@ -function _defaults(obj, defaults) { - var keys = Object.getOwnPropertyNames(defaults); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var value = Object.getOwnPropertyDescriptor(defaults, key); - if (value && value.configurable && obj[key] === undefined) { - Object.defineProperty(obj, key, value); - } - } - return obj; -} -module.exports = _defaults, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/defineAccessor.js b/WechatBot/node_modules/@babel/runtime/helpers/defineAccessor.js deleted file mode 100755 index c72242710..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/defineAccessor.js +++ /dev/null @@ -1,8 +0,0 @@ -function _defineAccessor(type, obj, key, fn) { - var desc = { - configurable: !0, - enumerable: !0 - }; - return desc[type] = fn, Object.defineProperty(obj, key, desc); -} -module.exports = _defineAccessor, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js b/WechatBot/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js deleted file mode 100755 index a04e60287..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +++ /dev/null @@ -1,20 +0,0 @@ -function _defineEnumerableProperties(obj, descs) { - for (var key in descs) { - var desc = descs[key]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, key, desc); - } - if (Object.getOwnPropertySymbols) { - var objectSymbols = Object.getOwnPropertySymbols(descs); - for (var i = 0; i < objectSymbols.length; i++) { - var sym = objectSymbols[i]; - var desc = descs[sym]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, sym, desc); - } - } - return obj; -} -module.exports = _defineEnumerableProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/defineProperty.js b/WechatBot/node_modules/@babel/runtime/helpers/defineProperty.js deleted file mode 100755 index 8762046da..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/defineProperty.js +++ /dev/null @@ -1,16 +0,0 @@ -var toPropertyKey = require("./toPropertyKey.js"); -function _defineProperty(obj, key, value) { - key = toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} -module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/dispose.js b/WechatBot/node_modules/@babel/runtime/helpers/dispose.js deleted file mode 100755 index 45ffbfd2f..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/dispose.js +++ /dev/null @@ -1,28 +0,0 @@ -function dispose_SuppressedError(suppressed, error) { - return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(suppressed, error) { - this.suppressed = suppressed, this.error = error, this.stack = new Error().stack; - }, dispose_SuppressedError.prototype = Object.create(Error.prototype, { - constructor: { - value: dispose_SuppressedError, - writable: !0, - configurable: !0 - } - })), new dispose_SuppressedError(suppressed, error); -} -function _dispose(stack, error, hasError) { - function next() { - for (; stack.length > 0;) try { - var r = stack.pop(), - p = r.d.call(r.v); - if (r.a) return Promise.resolve(p).then(next, err); - } catch (e) { - return err(e); - } - if (hasError) throw error; - } - function err(e) { - return error = hasError ? new dispose_SuppressedError(e, error) : e, hasError = !0, next(); - } - return next(); -} -module.exports = _dispose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js deleted file mode 100755 index 5df93d443..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js +++ /dev/null @@ -1,63 +0,0 @@ -import OverloadYield from "./OverloadYield.js"; -export default function AsyncGenerator(gen) { - var front, back; - function resume(key, arg) { - try { - var result = gen[key](arg), - value = result.value, - overloaded = value instanceof OverloadYield; - Promise.resolve(overloaded ? value.v : value).then(function (arg) { - if (overloaded) { - var nextKey = "return" === key ? "return" : "next"; - if (!value.k || arg.done) return resume(nextKey, arg); - arg = gen[nextKey](arg).value; - } - settle(result.done ? "return" : "normal", arg); - }, function (err) { - resume("throw", err); - }); - } catch (err) { - settle("throw", err); - } - } - function settle(type, value) { - switch (type) { - case "return": - front.resolve({ - value: value, - done: !0 - }); - break; - case "throw": - front.reject(value); - break; - default: - front.resolve({ - value: value, - done: !1 - }); - } - (front = front.next) ? resume(front.key, front.arg) : back = null; - } - this._invoke = function (key, arg) { - return new Promise(function (resolve, reject) { - var request = { - key: key, - arg: arg, - resolve: resolve, - reject: reject, - next: null - }; - back ? back = back.next = request : (front = back = request, resume(key, arg)); - }); - }, "function" != typeof gen["return"] && (this["return"] = void 0); -} -AsyncGenerator.prototype["function" == typeof Symbol && Symbol.asyncIterator || "@@asyncIterator"] = function () { - return this; -}, AsyncGenerator.prototype.next = function (arg) { - return this._invoke("next", arg); -}, AsyncGenerator.prototype["throw"] = function (arg) { - return this._invoke("throw", arg); -}, AsyncGenerator.prototype["return"] = function (arg) { - return this._invoke("return", arg); -}; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/AwaitValue.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/AwaitValue.js deleted file mode 100755 index 5237e18fd..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _AwaitValue(value) { - this.wrapped = value; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/OverloadYield.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/OverloadYield.js deleted file mode 100755 index 0dd12e012..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _OverloadYield(value, kind) { - this.v = value, this.k = kind; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js deleted file mode 100755 index 5137e85f2..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +++ /dev/null @@ -1,23 +0,0 @@ -export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { - var desc = {}; - Object.keys(descriptor).forEach(function (key) { - desc[key] = descriptor[key]; - }); - desc.enumerable = !!desc.enumerable; - desc.configurable = !!desc.configurable; - if ('value' in desc || desc.initializer) { - desc.writable = true; - } - desc = decorators.slice().reverse().reduce(function (desc, decorator) { - return decorator(target, property, desc) || desc; - }, desc); - if (context && desc.initializer !== void 0) { - desc.value = desc.initializer ? desc.initializer.call(context) : void 0; - desc.initializer = undefined; - } - if (desc.initializer === void 0) { - Object.defineProperty(target, property, desc); - desc = null; - } - return desc; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs.js deleted file mode 100755 index 84988df35..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs.js +++ /dev/null @@ -1,235 +0,0 @@ -import _typeof from "./typeof.js"; -function old_createMetadataMethodsForProperty(metadataMap, kind, property, decoratorFinishedRef) { - return { - getMetadata: function getMetadata(key) { - old_assertNotFinished(decoratorFinishedRef, "getMetadata"), old_assertMetadataKey(key); - var metadataForKey = metadataMap[key]; - if (void 0 !== metadataForKey) if (1 === kind) { - var pub = metadataForKey["public"]; - if (void 0 !== pub) return pub[property]; - } else if (2 === kind) { - var priv = metadataForKey["private"]; - if (void 0 !== priv) return priv.get(property); - } else if (Object.hasOwnProperty.call(metadataForKey, "constructor")) return metadataForKey.constructor; - }, - setMetadata: function setMetadata(key, value) { - old_assertNotFinished(decoratorFinishedRef, "setMetadata"), old_assertMetadataKey(key); - var metadataForKey = metadataMap[key]; - if (void 0 === metadataForKey && (metadataForKey = metadataMap[key] = {}), 1 === kind) { - var pub = metadataForKey["public"]; - void 0 === pub && (pub = metadataForKey["public"] = {}), pub[property] = value; - } else if (2 === kind) { - var priv = metadataForKey.priv; - void 0 === priv && (priv = metadataForKey["private"] = new Map()), priv.set(property, value); - } else metadataForKey.constructor = value; - } - }; -} -function old_convertMetadataMapToFinal(obj, metadataMap) { - var parentMetadataMap = obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")], - metadataKeys = Object.getOwnPropertySymbols(metadataMap); - if (0 !== metadataKeys.length) { - for (var i = 0; i < metadataKeys.length; i++) { - var key = metadataKeys[i], - metaForKey = metadataMap[key], - parentMetaForKey = parentMetadataMap ? parentMetadataMap[key] : null, - pub = metaForKey["public"], - parentPub = parentMetaForKey ? parentMetaForKey["public"] : null; - pub && parentPub && Object.setPrototypeOf(pub, parentPub); - var priv = metaForKey["private"]; - if (priv) { - var privArr = Array.from(priv.values()), - parentPriv = parentMetaForKey ? parentMetaForKey["private"] : null; - parentPriv && (privArr = privArr.concat(parentPriv)), metaForKey["private"] = privArr; - } - parentMetaForKey && Object.setPrototypeOf(metaForKey, parentMetaForKey); - } - parentMetadataMap && Object.setPrototypeOf(metadataMap, parentMetadataMap), obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = metadataMap; - } -} -function old_createAddInitializerMethod(initializers, decoratorFinishedRef) { - return function (initializer) { - old_assertNotFinished(decoratorFinishedRef, "addInitializer"), old_assertCallable(initializer, "An initializer"), initializers.push(initializer); - }; -} -function old_memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value) { - var kindStr; - switch (kind) { - case 1: - kindStr = "accessor"; - break; - case 2: - kindStr = "method"; - break; - case 3: - kindStr = "getter"; - break; - case 4: - kindStr = "setter"; - break; - default: - kindStr = "field"; - } - var metadataKind, - metadataName, - ctx = { - kind: kindStr, - name: isPrivate ? "#" + name : name, - isStatic: isStatic, - isPrivate: isPrivate - }, - decoratorFinishedRef = { - v: !1 - }; - if (0 !== kind && (ctx.addInitializer = old_createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate) { - metadataKind = 2, metadataName = Symbol(name); - var access = {}; - 0 === kind ? (access.get = desc.get, access.set = desc.set) : 2 === kind ? access.get = function () { - return desc.value; - } : (1 !== kind && 3 !== kind || (access.get = function () { - return desc.get.call(this); - }), 1 !== kind && 4 !== kind || (access.set = function (v) { - desc.set.call(this, v); - })), ctx.access = access; - } else metadataKind = 1, metadataName = name; - try { - return dec(value, Object.assign(ctx, old_createMetadataMethodsForProperty(metadataMap, metadataKind, metadataName, decoratorFinishedRef))); - } finally { - decoratorFinishedRef.v = !0; - } -} -function old_assertNotFinished(decoratorFinishedRef, fnName) { - if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished"); -} -function old_assertMetadataKey(key) { - if ("symbol" != _typeof(key)) throw new TypeError("Metadata keys must be symbols, received: " + key); -} -function old_assertCallable(fn, hint) { - if ("function" != typeof fn) throw new TypeError(hint + " must be a function"); -} -function old_assertValidReturnValue(kind, value) { - var type = _typeof(value); - if (1 === kind) { - if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== value.get && old_assertCallable(value.get, "accessor.get"), void 0 !== value.set && old_assertCallable(value.set, "accessor.set"), void 0 !== value.init && old_assertCallable(value.init, "accessor.init"), void 0 !== value.initializer && old_assertCallable(value.initializer, "accessor.initializer"); - } else if ("function" !== type) { - var hint; - throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0"); - } -} -function old_getInit(desc) { - var initializer; - return null == (initializer = desc.init) && (initializer = desc.initializer) && "undefined" != typeof console && console.warn(".initializer has been renamed to .init as of March 2022"), initializer; -} -function old_applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers) { - var desc, - initializer, - value, - newValue, - get, - set, - decs = decInfo[0]; - if (isPrivate ? desc = 0 === kind || 1 === kind ? { - get: decInfo[3], - set: decInfo[4] - } : 3 === kind ? { - get: decInfo[3] - } : 4 === kind ? { - set: decInfo[3] - } : { - value: decInfo[3] - } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = { - get: desc.get, - set: desc.set - } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = old_memberDec(decs, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value)) && (old_assertValidReturnValue(kind, newValue), 0 === kind ? initializer = newValue : 1 === kind ? (initializer = old_getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) { - var newInit; - if (void 0 !== (newValue = old_memberDec(decs[i], name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value))) old_assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = old_getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue, void 0 !== newInit && (void 0 === initializer ? initializer = newInit : "function" == typeof initializer ? initializer = [initializer, newInit] : initializer.push(newInit)); - } - if (0 === kind || 1 === kind) { - if (void 0 === initializer) initializer = function initializer(instance, init) { - return init; - };else if ("function" != typeof initializer) { - var ownInitializers = initializer; - initializer = function initializer(instance, init) { - for (var value = init, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value); - return value; - }; - } else { - var originalInitializer = initializer; - initializer = function initializer(instance, init) { - return originalInitializer.call(instance, init); - }; - } - ret.push(initializer); - } - 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) { - return value.get.call(instance, args); - }), ret.push(function (instance, args) { - return value.set.call(instance, args); - })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) { - return value.call(instance, args); - }) : Object.defineProperty(base, name, desc)); -} -function old_applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, decInfos) { - for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) { - var decInfo = decInfos[i]; - if (Array.isArray(decInfo)) { - var base, - metadataMap, - initializers, - kind = decInfo[1], - name = decInfo[2], - isPrivate = decInfo.length > 3, - isStatic = kind >= 5; - if (isStatic ? (base = Class, metadataMap = staticMetadataMap, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, metadataMap = protoMetadataMap, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) { - var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields, - existingKind = existingNonFields.get(name) || 0; - if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name); - !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0); - } - old_applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers); - } - } - old_pushInitializers(ret, protoInitializers), old_pushInitializers(ret, staticInitializers); -} -function old_pushInitializers(ret, initializers) { - initializers && ret.push(function (instance) { - for (var i = 0; i < initializers.length; i++) initializers[i].call(instance); - return instance; - }); -} -function old_applyClassDecs(ret, targetClass, metadataMap, classDecs) { - if (classDecs.length > 0) { - for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) { - var decoratorFinishedRef = { - v: !1 - }; - try { - var ctx = Object.assign({ - kind: "class", - name: name, - addInitializer: old_createAddInitializerMethod(initializers, decoratorFinishedRef) - }, old_createMetadataMethodsForProperty(metadataMap, 0, name, decoratorFinishedRef)), - nextNewClass = classDecs[i](newClass, ctx); - } finally { - decoratorFinishedRef.v = !0; - } - void 0 !== nextNewClass && (old_assertValidReturnValue(10, nextNewClass), newClass = nextNewClass); - } - ret.push(newClass, function () { - for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass); - }); - } -} -export default function applyDecs(targetClass, memberDecs, classDecs) { - var ret = [], - staticMetadataMap = {}, - protoMetadataMap = {}; - return old_applyMemberDecs(ret, targetClass, protoMetadataMap, staticMetadataMap, memberDecs), old_convertMetadataMapToFinal(targetClass.prototype, protoMetadataMap), old_applyClassDecs(ret, targetClass, staticMetadataMap, classDecs), old_convertMetadataMapToFinal(targetClass, staticMetadataMap), ret; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js deleted file mode 100755 index 3f2f8b8c2..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +++ /dev/null @@ -1,186 +0,0 @@ -import _typeof from "./typeof.js"; -function applyDecs2203Factory() { - function createAddInitializerMethod(initializers, decoratorFinishedRef) { - return function (initializer) { - !function (decoratorFinishedRef, fnName) { - if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished"); - }(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer); - }; - } - function memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, value) { - var kindStr; - switch (kind) { - case 1: - kindStr = "accessor"; - break; - case 2: - kindStr = "method"; - break; - case 3: - kindStr = "getter"; - break; - case 4: - kindStr = "setter"; - break; - default: - kindStr = "field"; - } - var get, - set, - ctx = { - kind: kindStr, - name: isPrivate ? "#" + name : name, - "static": isStatic, - "private": isPrivate - }, - decoratorFinishedRef = { - v: !1 - }; - 0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), 0 === kind ? isPrivate ? (get = desc.get, set = desc.set) : (get = function get() { - return this[name]; - }, set = function set(v) { - this[name] = v; - }) : 2 === kind ? get = function get() { - return desc.value; - } : (1 !== kind && 3 !== kind || (get = function get() { - return desc.get.call(this); - }), 1 !== kind && 4 !== kind || (set = function set(v) { - desc.set.call(this, v); - })), ctx.access = get && set ? { - get: get, - set: set - } : get ? { - get: get - } : { - set: set - }; - try { - return dec(value, ctx); - } finally { - decoratorFinishedRef.v = !0; - } - } - function assertCallable(fn, hint) { - if ("function" != typeof fn) throw new TypeError(hint + " must be a function"); - } - function assertValidReturnValue(kind, value) { - var type = _typeof(value); - if (1 === kind) { - if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"); - } else if ("function" !== type) { - var hint; - throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0"); - } - } - function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers) { - var desc, - init, - value, - newValue, - get, - set, - decs = decInfo[0]; - if (isPrivate ? desc = 0 === kind || 1 === kind ? { - get: decInfo[3], - set: decInfo[4] - } : 3 === kind ? { - get: decInfo[3] - } : 4 === kind ? { - set: decInfo[3] - } : { - value: decInfo[3] - } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = { - get: desc.get, - set: desc.set - } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? init = newValue : 1 === kind ? (init = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) { - var newInit; - if (void 0 !== (newValue = memberDec(decs[i], name, desc, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue, void 0 !== newInit && (void 0 === init ? init = newInit : "function" == typeof init ? init = [init, newInit] : init.push(newInit)); - } - if (0 === kind || 1 === kind) { - if (void 0 === init) init = function init(instance, _init) { - return _init; - };else if ("function" != typeof init) { - var ownInitializers = init; - init = function init(instance, _init2) { - for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value); - return value; - }; - } else { - var originalInitializer = init; - init = function init(instance, _init3) { - return originalInitializer.call(instance, _init3); - }; - } - ret.push(init); - } - 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) { - return value.get.call(instance, args); - }), ret.push(function (instance, args) { - return value.set.call(instance, args); - })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) { - return value.call(instance, args); - }) : Object.defineProperty(base, name, desc)); - } - function pushInitializers(ret, initializers) { - initializers && ret.push(function (instance) { - for (var i = 0; i < initializers.length; i++) initializers[i].call(instance); - return instance; - }); - } - return function (targetClass, memberDecs, classDecs) { - var ret = []; - return function (ret, Class, decInfos) { - for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) { - var decInfo = decInfos[i]; - if (Array.isArray(decInfo)) { - var base, - initializers, - kind = decInfo[1], - name = decInfo[2], - isPrivate = decInfo.length > 3, - isStatic = kind >= 5; - if (isStatic ? (base = Class, 0 != (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) { - var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields, - existingKind = existingNonFields.get(name) || 0; - if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name); - !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0); - } - applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers); - } - } - pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers); - }(ret, targetClass, memberDecs), function (ret, targetClass, classDecs) { - if (classDecs.length > 0) { - for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) { - var decoratorFinishedRef = { - v: !1 - }; - try { - var nextNewClass = classDecs[i](newClass, { - kind: "class", - name: name, - addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef) - }); - } finally { - decoratorFinishedRef.v = !0; - } - void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass); - } - ret.push(newClass, function () { - for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass); - }); - } - }(ret, targetClass, classDecs), ret; - }; -} -var applyDecs2203Impl; -export default function applyDecs2203(targetClass, memberDecs, classDecs) { - return (applyDecs2203Impl = applyDecs2203Impl || applyDecs2203Factory())(targetClass, memberDecs, classDecs); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js deleted file mode 100755 index ed1bc2034..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +++ /dev/null @@ -1,190 +0,0 @@ -import _typeof from "./typeof.js"; -function applyDecs2203RFactory() { - function createAddInitializerMethod(initializers, decoratorFinishedRef) { - return function (initializer) { - !function (decoratorFinishedRef, fnName) { - if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished"); - }(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer); - }; - } - function memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, value) { - var kindStr; - switch (kind) { - case 1: - kindStr = "accessor"; - break; - case 2: - kindStr = "method"; - break; - case 3: - kindStr = "getter"; - break; - case 4: - kindStr = "setter"; - break; - default: - kindStr = "field"; - } - var get, - set, - ctx = { - kind: kindStr, - name: isPrivate ? "#" + name : name, - "static": isStatic, - "private": isPrivate - }, - decoratorFinishedRef = { - v: !1 - }; - 0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), 0 === kind ? isPrivate ? (get = desc.get, set = desc.set) : (get = function get() { - return this[name]; - }, set = function set(v) { - this[name] = v; - }) : 2 === kind ? get = function get() { - return desc.value; - } : (1 !== kind && 3 !== kind || (get = function get() { - return desc.get.call(this); - }), 1 !== kind && 4 !== kind || (set = function set(v) { - desc.set.call(this, v); - })), ctx.access = get && set ? { - get: get, - set: set - } : get ? { - get: get - } : { - set: set - }; - try { - return dec(value, ctx); - } finally { - decoratorFinishedRef.v = !0; - } - } - function assertCallable(fn, hint) { - if ("function" != typeof fn) throw new TypeError(hint + " must be a function"); - } - function assertValidReturnValue(kind, value) { - var type = _typeof(value); - if (1 === kind) { - if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"); - } else if ("function" !== type) { - var hint; - throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0"); - } - } - function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers) { - var desc, - init, - value, - newValue, - get, - set, - decs = decInfo[0]; - if (isPrivate ? desc = 0 === kind || 1 === kind ? { - get: decInfo[3], - set: decInfo[4] - } : 3 === kind ? { - get: decInfo[3] - } : 4 === kind ? { - set: decInfo[3] - } : { - value: decInfo[3] - } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = { - get: desc.get, - set: desc.set - } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? init = newValue : 1 === kind ? (init = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) { - var newInit; - if (void 0 !== (newValue = memberDec(decs[i], name, desc, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue, void 0 !== newInit && (void 0 === init ? init = newInit : "function" == typeof init ? init = [init, newInit] : init.push(newInit)); - } - if (0 === kind || 1 === kind) { - if (void 0 === init) init = function init(instance, _init) { - return _init; - };else if ("function" != typeof init) { - var ownInitializers = init; - init = function init(instance, _init2) { - for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value); - return value; - }; - } else { - var originalInitializer = init; - init = function init(instance, _init3) { - return originalInitializer.call(instance, _init3); - }; - } - ret.push(init); - } - 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) { - return value.get.call(instance, args); - }), ret.push(function (instance, args) { - return value.set.call(instance, args); - })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) { - return value.call(instance, args); - }) : Object.defineProperty(base, name, desc)); - } - function applyMemberDecs(Class, decInfos) { - for (var protoInitializers, staticInitializers, ret = [], existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) { - var decInfo = decInfos[i]; - if (Array.isArray(decInfo)) { - var base, - initializers, - kind = decInfo[1], - name = decInfo[2], - isPrivate = decInfo.length > 3, - isStatic = kind >= 5; - if (isStatic ? (base = Class, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) { - var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields, - existingKind = existingNonFields.get(name) || 0; - if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name); - !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0); - } - applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers); - } - } - return pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers), ret; - } - function pushInitializers(ret, initializers) { - initializers && ret.push(function (instance) { - for (var i = 0; i < initializers.length; i++) initializers[i].call(instance); - return instance; - }); - } - return function (targetClass, memberDecs, classDecs) { - return { - e: applyMemberDecs(targetClass, memberDecs), - get c() { - return function (targetClass, classDecs) { - if (classDecs.length > 0) { - for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) { - var decoratorFinishedRef = { - v: !1 - }; - try { - var nextNewClass = classDecs[i](newClass, { - kind: "class", - name: name, - addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef) - }); - } finally { - decoratorFinishedRef.v = !0; - } - void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass); - } - return [newClass, function () { - for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass); - }]; - } - }(targetClass, classDecs); - } - }; - }; -} -export default function applyDecs2203R(targetClass, memberDecs, classDecs) { - return (applyDecs2203R = applyDecs2203RFactory())(targetClass, memberDecs, classDecs); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js deleted file mode 100755 index c0e612bb1..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +++ /dev/null @@ -1,221 +0,0 @@ -import _typeof from "./typeof.js"; -import checkInRHS from "./checkInRHS.js"; -function applyDecs2301Factory() { - function createAddInitializerMethod(initializers, decoratorFinishedRef) { - return function (initializer) { - !function (decoratorFinishedRef, fnName) { - if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished"); - }(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer); - }; - } - function assertInstanceIfPrivate(has, target) { - if (!has(target)) throw new TypeError("Attempted to access private element on non-instance"); - } - function memberDec(dec, name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand) { - var kindStr; - switch (kind) { - case 1: - kindStr = "accessor"; - break; - case 2: - kindStr = "method"; - break; - case 3: - kindStr = "getter"; - break; - case 4: - kindStr = "setter"; - break; - default: - kindStr = "field"; - } - var get, - set, - ctx = { - kind: kindStr, - name: isPrivate ? "#" + name : name, - "static": isStatic, - "private": isPrivate - }, - decoratorFinishedRef = { - v: !1 - }; - if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate || 0 !== kind && 2 !== kind) { - if (2 === kind) get = function get(target) { - return assertInstanceIfPrivate(hasPrivateBrand, target), desc.value; - };else { - var t = 0 === kind || 1 === kind; - (t || 3 === kind) && (get = isPrivate ? function (target) { - return assertInstanceIfPrivate(hasPrivateBrand, target), desc.get.call(target); - } : function (target) { - return desc.get.call(target); - }), (t || 4 === kind) && (set = isPrivate ? function (target, value) { - assertInstanceIfPrivate(hasPrivateBrand, target), desc.set.call(target, value); - } : function (target, value) { - desc.set.call(target, value); - }); - } - } else get = function get(target) { - return target[name]; - }, 0 === kind && (set = function set(target, v) { - target[name] = v; - }); - var has = isPrivate ? hasPrivateBrand.bind() : function (target) { - return name in target; - }; - ctx.access = get && set ? { - get: get, - set: set, - has: has - } : get ? { - get: get, - has: has - } : { - set: set, - has: has - }; - try { - return dec(value, ctx); - } finally { - decoratorFinishedRef.v = !0; - } - } - function assertCallable(fn, hint) { - if ("function" != typeof fn) throw new TypeError(hint + " must be a function"); - } - function assertValidReturnValue(kind, value) { - var type = _typeof(value); - if (1 === kind) { - if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"); - } else if ("function" !== type) { - var hint; - throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0"); - } - } - function curryThis2(fn) { - return function (value) { - fn(this, value); - }; - } - function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers, hasPrivateBrand) { - var desc, - init, - value, - fn, - newValue, - get, - set, - decs = decInfo[0]; - if (isPrivate ? desc = 0 === kind || 1 === kind ? { - get: (fn = decInfo[3], function () { - return fn(this); - }), - set: curryThis2(decInfo[4]) - } : 3 === kind ? { - get: decInfo[3] - } : 4 === kind ? { - set: decInfo[3] - } : { - value: decInfo[3] - } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = { - get: desc.get, - set: desc.set - } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand)) && (assertValidReturnValue(kind, newValue), 0 === kind ? init = newValue : 1 === kind ? (init = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) { - var newInit; - if (void 0 !== (newValue = memberDec(decs[i], name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue, void 0 !== newInit && (void 0 === init ? init = newInit : "function" == typeof init ? init = [init, newInit] : init.push(newInit)); - } - if (0 === kind || 1 === kind) { - if (void 0 === init) init = function init(instance, _init) { - return _init; - };else if ("function" != typeof init) { - var ownInitializers = init; - init = function init(instance, _init2) { - for (var value = _init2, i = 0; i < ownInitializers.length; i++) value = ownInitializers[i].call(instance, value); - return value; - }; - } else { - var originalInitializer = init; - init = function init(instance, _init3) { - return originalInitializer.call(instance, _init3); - }; - } - ret.push(init); - } - 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) { - return value.get.call(instance, args); - }), ret.push(function (instance, args) { - return value.set.call(instance, args); - })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) { - return value.call(instance, args); - }) : Object.defineProperty(base, name, desc)); - } - function applyMemberDecs(Class, decInfos, instanceBrand) { - for (var protoInitializers, staticInitializers, staticBrand, ret = [], existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) { - var decInfo = decInfos[i]; - if (Array.isArray(decInfo)) { - var base, - initializers, - kind = decInfo[1], - name = decInfo[2], - isPrivate = decInfo.length > 3, - isStatic = kind >= 5, - hasPrivateBrand = instanceBrand; - if (isStatic ? (base = Class, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || []), isPrivate && !staticBrand && (staticBrand = function staticBrand(_) { - return checkInRHS(_) === Class; - }), hasPrivateBrand = staticBrand) : (base = Class.prototype, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) { - var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields, - existingKind = existingNonFields.get(name) || 0; - if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name); - !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0); - } - applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, initializers, hasPrivateBrand); - } - } - return pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers), ret; - } - function pushInitializers(ret, initializers) { - initializers && ret.push(function (instance) { - for (var i = 0; i < initializers.length; i++) initializers[i].call(instance); - return instance; - }); - } - return function (targetClass, memberDecs, classDecs, instanceBrand) { - return { - e: applyMemberDecs(targetClass, memberDecs, instanceBrand), - get c() { - return function (targetClass, classDecs) { - if (classDecs.length > 0) { - for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) { - var decoratorFinishedRef = { - v: !1 - }; - try { - var nextNewClass = classDecs[i](newClass, { - kind: "class", - name: name, - addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef) - }); - } finally { - decoratorFinishedRef.v = !0; - } - void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass); - } - return [newClass, function () { - for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass); - }]; - } - }(targetClass, classDecs); - } - }; - }; -} -export default function applyDecs2301(targetClass, memberDecs, classDecs, instanceBrand) { - return (applyDecs2301 = applyDecs2301Factory())(targetClass, memberDecs, classDecs, instanceBrand); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js deleted file mode 100755 index 95e8b23ce..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +++ /dev/null @@ -1,219 +0,0 @@ -import _typeof from "./typeof.js"; -import checkInRHS from "./checkInRHS.js"; -function createAddInitializerMethod(initializers, decoratorFinishedRef) { - return function (initializer) { - assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer); - }; -} -function assertInstanceIfPrivate(has, target) { - if (!has(target)) throw new TypeError("Attempted to access private element on non-instance"); -} -function memberDec(dec, thisArg, name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand) { - var kindStr; - switch (kind) { - case 1: - kindStr = "accessor"; - break; - case 2: - kindStr = "method"; - break; - case 3: - kindStr = "getter"; - break; - case 4: - kindStr = "setter"; - break; - default: - kindStr = "field"; - } - var get, - set, - ctx = { - kind: kindStr, - name: isPrivate ? "#" + name : name, - "static": isStatic, - "private": isPrivate - }, - decoratorFinishedRef = { - v: !1 - }; - if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate || 0 !== kind && 2 !== kind) { - if (2 === kind) get = function get(target) { - return assertInstanceIfPrivate(hasPrivateBrand, target), desc.value; - };else { - var t = 0 === kind || 1 === kind; - (t || 3 === kind) && (get = isPrivate ? function (target) { - return assertInstanceIfPrivate(hasPrivateBrand, target), desc.get.call(target); - } : function (target) { - return desc.get.call(target); - }), (t || 4 === kind) && (set = isPrivate ? function (target, value) { - assertInstanceIfPrivate(hasPrivateBrand, target), desc.set.call(target, value); - } : function (target, value) { - desc.set.call(target, value); - }); - } - } else get = function get(target) { - return target[name]; - }, 0 === kind && (set = function set(target, v) { - target[name] = v; - }); - var has = isPrivate ? hasPrivateBrand.bind() : function (target) { - return name in target; - }; - ctx.access = get && set ? { - get: get, - set: set, - has: has - } : get ? { - get: get, - has: has - } : { - set: set, - has: has - }; - try { - return dec.call(thisArg, value, ctx); - } finally { - decoratorFinishedRef.v = !0; - } -} -function assertNotFinished(decoratorFinishedRef, fnName) { - if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished"); -} -function assertCallable(fn, hint) { - if ("function" != typeof fn) throw new TypeError(hint + " must be a function"); -} -function assertValidReturnValue(kind, value) { - var type = _typeof(value); - if (1 === kind) { - if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); - void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"); - } else if ("function" !== type) { - var hint; - throw hint = 0 === kind ? "field" : 5 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0"); - } -} -function curryThis1(fn) { - return function () { - return fn(this); - }; -} -function curryThis2(fn) { - return function (value) { - fn(this, value); - }; -} -function applyMemberDec(ret, base, decInfo, decoratorsHaveThis, name, kind, isStatic, isPrivate, initializers, hasPrivateBrand) { - var desc, - init, - value, - newValue, - get, - set, - decs = decInfo[0]; - decoratorsHaveThis || Array.isArray(decs) || (decs = [decs]), isPrivate ? desc = 0 === kind || 1 === kind ? { - get: curryThis1(decInfo[3]), - set: curryThis2(decInfo[4]) - } : 3 === kind ? { - get: decInfo[3] - } : 4 === kind ? { - set: decInfo[3] - } : { - value: decInfo[3] - } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = { - get: desc.get, - set: desc.set - } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set); - for (var inc = decoratorsHaveThis ? 2 : 1, i = decs.length - 1; i >= 0; i -= inc) { - var newInit; - if (void 0 !== (newValue = memberDec(decs[i], decoratorsHaveThis ? decs[i - 1] : void 0, name, desc, initializers, kind, isStatic, isPrivate, value, hasPrivateBrand))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = newValue.init, get = newValue.get || value.get, set = newValue.set || value.set, value = { - get: get, - set: set - }) : value = newValue, void 0 !== newInit && (void 0 === init ? init = newInit : "function" == typeof init ? init = [init, newInit] : init.push(newInit)); - } - if (0 === kind || 1 === kind) { - if (void 0 === init) init = function init(instance, _init) { - return _init; - };else if ("function" != typeof init) { - var ownInitializers = init; - init = function init(instance, _init2) { - for (var value = _init2, i = ownInitializers.length - 1; i >= 0; i--) value = ownInitializers[i].call(instance, value); - return value; - }; - } else { - var originalInitializer = init; - init = function init(instance, _init3) { - return originalInitializer.call(instance, _init3); - }; - } - ret.push(init); - } - 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) { - return value.get.call(instance, args); - }), ret.push(function (instance, args) { - return value.set.call(instance, args); - })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) { - return value.call(instance, args); - }) : Object.defineProperty(base, name, desc)); -} -function applyMemberDecs(Class, decInfos, instanceBrand) { - for (var protoInitializers, staticInitializers, staticBrand, ret = [], existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) { - var decInfo = decInfos[i]; - if (Array.isArray(decInfo)) { - var base, - initializers, - kind = decInfo[1], - name = decInfo[2], - isPrivate = decInfo.length > 3, - decoratorsHaveThis = 16 & kind, - isStatic = !!(8 & kind), - hasPrivateBrand = instanceBrand; - if (kind &= 7, isStatic ? (base = Class, 0 !== kind && (initializers = staticInitializers = staticInitializers || []), isPrivate && !staticBrand && (staticBrand = function staticBrand(_) { - return checkInRHS(_) === Class; - }), hasPrivateBrand = staticBrand) : (base = Class.prototype, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) { - var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields, - existingKind = existingNonFields.get(name) || 0; - if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name); - existingNonFields.set(name, !(!existingKind && kind > 2) || kind); - } - applyMemberDec(ret, base, decInfo, decoratorsHaveThis, name, kind, isStatic, isPrivate, initializers, hasPrivateBrand); - } - } - return pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers), ret; -} -function pushInitializers(ret, initializers) { - initializers && ret.push(function (instance) { - for (var i = 0; i < initializers.length; i++) initializers[i].call(instance); - return instance; - }); -} -function applyClassDecs(targetClass, classDecs, decoratorsHaveThis) { - if (classDecs.length) { - for (var initializers = [], newClass = targetClass, name = targetClass.name, inc = decoratorsHaveThis ? 2 : 1, i = classDecs.length - 1; i >= 0; i -= inc) { - var decoratorFinishedRef = { - v: !1 - }; - try { - var nextNewClass = classDecs[i].call(decoratorsHaveThis ? classDecs[i - 1] : void 0, newClass, { - kind: "class", - name: name, - addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef) - }); - } finally { - decoratorFinishedRef.v = !0; - } - void 0 !== nextNewClass && (assertValidReturnValue(5, nextNewClass), newClass = nextNewClass); - } - return [newClass, function () { - for (var i = 0; i < initializers.length; i++) initializers[i].call(newClass); - }]; - } -} -export default function applyDecs2305(targetClass, memberDecs, classDecs, classDecsHaveThis, instanceBrand) { - return { - e: applyMemberDecs(targetClass, memberDecs, instanceBrand), - get c() { - return applyClassDecs(targetClass, classDecs, classDecsHaveThis); - } - }; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js deleted file mode 100755 index 8a9fad8ab..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _arrayLikeToArray(arr, len) { - if (len == null || len > arr.length) len = arr.length; - for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; - return arr2; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js deleted file mode 100755 index be734fc38..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _arrayWithHoles(arr) { - if (Array.isArray(arr)) return arr; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js deleted file mode 100755 index f7d8dc781..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +++ /dev/null @@ -1,4 +0,0 @@ -import arrayLikeToArray from "./arrayLikeToArray.js"; -export default function _arrayWithoutHoles(arr) { - if (Array.isArray(arr)) return arrayLikeToArray(arr); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js deleted file mode 100755 index 1f8fcf4b5..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function _assertThisInitialized(self) { - if (self === void 0) { - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - } - return self; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js deleted file mode 100755 index d393d55bb..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +++ /dev/null @@ -1,23 +0,0 @@ -import OverloadYield from "./OverloadYield.js"; -export default function _asyncGeneratorDelegate(inner) { - var iter = {}, - waiting = !1; - function pump(key, value) { - return waiting = !0, value = new Promise(function (resolve) { - resolve(inner[key](value)); - }), { - done: !1, - value: new OverloadYield(value, 1) - }; - } - return iter["undefined" != typeof Symbol && Symbol.iterator || "@@iterator"] = function () { - return this; - }, iter.next = function (value) { - return waiting ? (waiting = !1, value) : pump("next", value); - }, "function" == typeof inner["throw"] && (iter["throw"] = function (value) { - if (waiting) throw waiting = !1, value; - return pump("throw", value); - }), "function" == typeof inner["return"] && (iter["return"] = function (value) { - return waiting ? (waiting = !1, value) : pump("return", value); - }), iter; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/asyncIterator.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/asyncIterator.js deleted file mode 100755 index ae8aa397e..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +++ /dev/null @@ -1,44 +0,0 @@ -export default function _asyncIterator(iterable) { - var method, - async, - sync, - retry = 2; - for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) { - if (async && null != (method = iterable[async])) return method.call(iterable); - if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable)); - async = "@@asyncIterator", sync = "@@iterator"; - } - throw new TypeError("Object is not async iterable"); -} -function AsyncFromSyncIterator(s) { - function AsyncFromSyncIteratorContinuation(r) { - if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); - var done = r.done; - return Promise.resolve(r.value).then(function (value) { - return { - value: value, - done: done - }; - }); - } - return AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { - this.s = s, this.n = s.next; - }, AsyncFromSyncIterator.prototype = { - s: null, - n: null, - next: function next() { - return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); - }, - "return": function _return(value) { - var ret = this.s["return"]; - return void 0 === ret ? Promise.resolve({ - value: value, - done: !0 - }) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); - }, - "throw": function _throw(value) { - var thr = this.s["return"]; - return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); - } - }, new AsyncFromSyncIterator(s); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js deleted file mode 100755 index c37aa2c7a..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +++ /dev/null @@ -1,30 +0,0 @@ -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { - try { - var info = gen[key](arg); - var value = info.value; - } catch (error) { - reject(error); - return; - } - if (info.done) { - resolve(value); - } else { - Promise.resolve(value).then(_next, _throw); - } -} -export default function _asyncToGenerator(fn) { - return function () { - var self = this, - args = arguments; - return new Promise(function (resolve, reject) { - var gen = fn.apply(self, args); - function _next(value) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); - } - function _throw(err) { - asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); - } - _next(undefined); - }); - }; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js deleted file mode 100755 index cfa05220f..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +++ /dev/null @@ -1,4 +0,0 @@ -import OverloadYield from "./OverloadYield.js"; -export default function _awaitAsyncGenerator(value) { - return new OverloadYield(value, 0); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/checkInRHS.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/checkInRHS.js deleted file mode 100755 index 928d53d28..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +++ /dev/null @@ -1,5 +0,0 @@ -import _typeof from "./typeof.js"; -export default function _checkInRHS(value) { - if (Object(value) !== value) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== value ? _typeof(value) : "null")); - return value; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js deleted file mode 100755 index 990140366..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _checkPrivateRedeclaration(obj, privateCollection) { - if (privateCollection.has(obj)) { - throw new TypeError("Cannot initialize the same private elements twice on an object"); - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js deleted file mode 100755 index 68684f238..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +++ /dev/null @@ -1,17 +0,0 @@ -export default function _classApplyDescriptorDestructureSet(receiver, descriptor) { - if (descriptor.set) { - if (!("__destrObj" in descriptor)) { - descriptor.__destrObj = { - set value(v) { - descriptor.set.call(receiver, v); - } - }; - } - return descriptor.__destrObj; - } else { - if (!descriptor.writable) { - throw new TypeError("attempted to set read only private field"); - } - return descriptor; - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js deleted file mode 100755 index 727e9e9b8..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function _classApplyDescriptorGet(receiver, descriptor) { - if (descriptor.get) { - return descriptor.get.call(receiver); - } - return descriptor.value; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js deleted file mode 100755 index b4df6d302..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +++ /dev/null @@ -1,10 +0,0 @@ -export default function _classApplyDescriptorSet(receiver, descriptor, value) { - if (descriptor.set) { - descriptor.set.call(receiver, value); - } else { - if (!descriptor.writable) { - throw new TypeError("attempted to set read only private field"); - } - descriptor.value = value; - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classCallCheck.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classCallCheck.js deleted file mode 100755 index 2f1738a3d..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _classCallCheck(instance, Constructor) { - if (!(instance instanceof Constructor)) { - throw new TypeError("Cannot call a class as a function"); - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js deleted file mode 100755 index 098ed3090..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _classCheckPrivateStaticAccess(receiver, classConstructor) { - if (receiver !== classConstructor) { - throw new TypeError("Private static access of wrong provenance"); - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js deleted file mode 100755 index 0ef34b8d7..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { - if (descriptor === undefined) { - throw new TypeError("attempted to " + action + " private static field before its declaration"); - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js deleted file mode 100755 index 1a8d71bad..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function _classExtractFieldDescriptor(receiver, privateMap, action) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to " + action + " private field on non-instance"); - } - return privateMap.get(receiver); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js deleted file mode 100755 index 46eea93ac..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _classNameTDZError(name) { - throw new ReferenceError("Class \"" + name + "\" cannot be referenced in computed property keys."); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js deleted file mode 100755 index fb5883369..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +++ /dev/null @@ -1,6 +0,0 @@ -import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; -import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js"; -export default function _classPrivateFieldDestructureSet(receiver, privateMap) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); - return classApplyDescriptorDestructureSet(receiver, descriptor); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js deleted file mode 100755 index 53cd1379c..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +++ /dev/null @@ -1,6 +0,0 @@ -import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; -import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js"; -export default function _classPrivateFieldGet(receiver, privateMap) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get"); - return classApplyDescriptorGet(receiver, descriptor); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js deleted file mode 100755 index 2253dd84f..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +++ /dev/null @@ -1,5 +0,0 @@ -import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; -export default function _classPrivateFieldInitSpec(obj, privateMap, value) { - checkPrivateRedeclaration(obj, privateMap); - privateMap.set(obj, value); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js deleted file mode 100755 index 09e93304f..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function _classPrivateFieldBase(receiver, privateKey) { - if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { - throw new TypeError("attempted to use private field on non-instance"); - } - return receiver; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js deleted file mode 100755 index 5b7e5ac02..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +++ /dev/null @@ -1,4 +0,0 @@ -var id = 0; -export default function _classPrivateFieldKey(name) { - return "__private_" + id++ + "_" + name; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js deleted file mode 100755 index ad91be440..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +++ /dev/null @@ -1,7 +0,0 @@ -import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; -import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js"; -export default function _classPrivateFieldSet(receiver, privateMap, value) { - var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); - classApplyDescriptorSet(receiver, descriptor, value); - return value; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js deleted file mode 100755 index f32a3da81..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function _classPrivateMethodGet(receiver, privateSet, fn) { - if (!privateSet.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return fn; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js deleted file mode 100755 index 18d129159..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +++ /dev/null @@ -1,5 +0,0 @@ -import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; -export default function _classPrivateMethodInitSpec(obj, privateSet) { - checkPrivateRedeclaration(obj, privateSet); - privateSet.add(obj); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js deleted file mode 100755 index 2bbaf3a7a..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _classPrivateMethodSet() { - throw new TypeError("attempted to reassign private method"); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js deleted file mode 100755 index 77afcfb18..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +++ /dev/null @@ -1,8 +0,0 @@ -import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; -import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js"; -import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; -export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - return classApplyDescriptorDestructureSet(receiver, descriptor); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js deleted file mode 100755 index d253d3119..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +++ /dev/null @@ -1,8 +0,0 @@ -import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; -import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js"; -import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; -export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "get"); - return classApplyDescriptorGet(receiver, descriptor); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js deleted file mode 100755 index b0b0cc644..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +++ /dev/null @@ -1,9 +0,0 @@ -import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; -import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js"; -import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; -export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { - classCheckPrivateStaticAccess(receiver, classConstructor); - classCheckPrivateStaticFieldDescriptor(descriptor, "set"); - classApplyDescriptorSet(receiver, descriptor, value); - return value; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js deleted file mode 100755 index fddc7b2d8..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +++ /dev/null @@ -1,5 +0,0 @@ -import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js"; -export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) { - classCheckPrivateStaticAccess(receiver, classConstructor); - return method; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js deleted file mode 100755 index d5ab60a97..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _classStaticPrivateMethodSet() { - throw new TypeError("attempted to set read only static private field"); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/construct.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/construct.js deleted file mode 100755 index 3860bdd07..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/construct.js +++ /dev/null @@ -1,17 +0,0 @@ -import setPrototypeOf from "./setPrototypeOf.js"; -import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; -export default function _construct(Parent, args, Class) { - if (isNativeReflectConstruct()) { - _construct = Reflect.construct.bind(); - } else { - _construct = function _construct(Parent, args, Class) { - var a = [null]; - a.push.apply(a, args); - var Constructor = Function.bind.apply(Parent, a); - var instance = new Constructor(); - if (Class) setPrototypeOf(instance, Class.prototype); - return instance; - }; - } - return _construct.apply(null, arguments); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/createClass.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/createClass.js deleted file mode 100755 index bbacdfec2..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/createClass.js +++ /dev/null @@ -1,18 +0,0 @@ -import toPropertyKey from "./toPropertyKey.js"; -function _defineProperties(target, props) { - for (var i = 0; i < props.length; i++) { - var descriptor = props[i]; - descriptor.enumerable = descriptor.enumerable || false; - descriptor.configurable = true; - if ("value" in descriptor) descriptor.writable = true; - Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor); - } -} -export default function _createClass(Constructor, protoProps, staticProps) { - if (protoProps) _defineProperties(Constructor.prototype, protoProps); - if (staticProps) _defineProperties(Constructor, staticProps); - Object.defineProperty(Constructor, "prototype", { - writable: false - }); - return Constructor; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js deleted file mode 100755 index 5e0e0f190..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +++ /dev/null @@ -1,52 +0,0 @@ -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -export default function _createForOfIteratorHelper(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (!it) { - if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - var F = function F() {}; - return { - s: F, - n: function n() { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }, - e: function e(_e) { - throw _e; - }, - f: F - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); - } - var normalCompletion = true, - didErr = false, - err; - return { - s: function s() { - it = it.call(o); - }, - n: function n() { - var step = it.next(); - normalCompletion = step.done; - return step; - }, - e: function e(_e2) { - didErr = true; - err = _e2; - }, - f: function f() { - try { - if (!normalCompletion && it["return"] != null) it["return"](); - } finally { - if (didErr) throw err; - } - } - }; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js deleted file mode 100755 index 043857dc9..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +++ /dev/null @@ -1,19 +0,0 @@ -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -export default function _createForOfIteratorHelperLoose(o, allowArrayLike) { - var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; - if (it) return (it = it.call(o)).next.bind(it); - if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { - if (it) o = it; - var i = 0; - return function () { - if (i >= o.length) return { - done: true - }; - return { - done: false, - value: o[i++] - }; - }; - } - throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/createSuper.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/createSuper.js deleted file mode 100755 index 7c9629763..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/createSuper.js +++ /dev/null @@ -1,17 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; -import possibleConstructorReturn from "./possibleConstructorReturn.js"; -export default function _createSuper(Derived) { - var hasNativeReflectConstruct = isNativeReflectConstruct(); - return function _createSuperInternal() { - var Super = getPrototypeOf(Derived), - result; - if (hasNativeReflectConstruct) { - var NewTarget = getPrototypeOf(this).constructor; - result = Reflect.construct(Super, arguments, NewTarget); - } else { - result = Super.apply(this, arguments); - } - return possibleConstructorReturn(this, result); - }; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/decorate.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/decorate.js deleted file mode 100755 index e511dfe6e..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/decorate.js +++ /dev/null @@ -1,342 +0,0 @@ -import toArray from "./toArray.js"; -import toPropertyKey from "./toPropertyKey.js"; -export default function _decorate(decorators, factory, superClass, mixins) { - var api = _getDecoratorsApi(); - if (mixins) { - for (var i = 0; i < mixins.length; i++) { - api = mixins[i](api); - } - } - var r = factory(function initialize(O) { - api.initializeInstanceElements(O, decorated.elements); - }, superClass); - var decorated = api.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators); - api.initializeClassElements(r.F, decorated.elements); - return api.runClassFinishers(r.F, decorated.finishers); -} -function _getDecoratorsApi() { - _getDecoratorsApi = function _getDecoratorsApi() { - return api; - }; - var api = { - elementsDefinitionOrder: [["method"], ["field"]], - initializeInstanceElements: function initializeInstanceElements(O, elements) { - ["method", "field"].forEach(function (kind) { - elements.forEach(function (element) { - if (element.kind === kind && element.placement === "own") { - this.defineClassElement(O, element); - } - }, this); - }, this); - }, - initializeClassElements: function initializeClassElements(F, elements) { - var proto = F.prototype; - ["method", "field"].forEach(function (kind) { - elements.forEach(function (element) { - var placement = element.placement; - if (element.kind === kind && (placement === "static" || placement === "prototype")) { - var receiver = placement === "static" ? F : proto; - this.defineClassElement(receiver, element); - } - }, this); - }, this); - }, - defineClassElement: function defineClassElement(receiver, element) { - var descriptor = element.descriptor; - if (element.kind === "field") { - var initializer = element.initializer; - descriptor = { - enumerable: descriptor.enumerable, - writable: descriptor.writable, - configurable: descriptor.configurable, - value: initializer === void 0 ? void 0 : initializer.call(receiver) - }; - } - Object.defineProperty(receiver, element.key, descriptor); - }, - decorateClass: function decorateClass(elements, decorators) { - var newElements = []; - var finishers = []; - var placements = { - "static": [], - prototype: [], - own: [] - }; - elements.forEach(function (element) { - this.addElementPlacement(element, placements); - }, this); - elements.forEach(function (element) { - if (!_hasDecorators(element)) return newElements.push(element); - var elementFinishersExtras = this.decorateElement(element, placements); - newElements.push(elementFinishersExtras.element); - newElements.push.apply(newElements, elementFinishersExtras.extras); - finishers.push.apply(finishers, elementFinishersExtras.finishers); - }, this); - if (!decorators) { - return { - elements: newElements, - finishers: finishers - }; - } - var result = this.decorateConstructor(newElements, decorators); - finishers.push.apply(finishers, result.finishers); - result.finishers = finishers; - return result; - }, - addElementPlacement: function addElementPlacement(element, placements, silent) { - var keys = placements[element.placement]; - if (!silent && keys.indexOf(element.key) !== -1) { - throw new TypeError("Duplicated element (" + element.key + ")"); - } - keys.push(element.key); - }, - decorateElement: function decorateElement(element, placements) { - var extras = []; - var finishers = []; - for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) { - var keys = placements[element.placement]; - keys.splice(keys.indexOf(element.key), 1); - var elementObject = this.fromElementDescriptor(element); - var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject); - element = elementFinisherExtras.element; - this.addElementPlacement(element, placements); - if (elementFinisherExtras.finisher) { - finishers.push(elementFinisherExtras.finisher); - } - var newExtras = elementFinisherExtras.extras; - if (newExtras) { - for (var j = 0; j < newExtras.length; j++) { - this.addElementPlacement(newExtras[j], placements); - } - extras.push.apply(extras, newExtras); - } - } - return { - element: element, - finishers: finishers, - extras: extras - }; - }, - decorateConstructor: function decorateConstructor(elements, decorators) { - var finishers = []; - for (var i = decorators.length - 1; i >= 0; i--) { - var obj = this.fromClassDescriptor(elements); - var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj); - if (elementsAndFinisher.finisher !== undefined) { - finishers.push(elementsAndFinisher.finisher); - } - if (elementsAndFinisher.elements !== undefined) { - elements = elementsAndFinisher.elements; - for (var j = 0; j < elements.length - 1; j++) { - for (var k = j + 1; k < elements.length; k++) { - if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) { - throw new TypeError("Duplicated element (" + elements[j].key + ")"); - } - } - } - } - } - return { - elements: elements, - finishers: finishers - }; - }, - fromElementDescriptor: function fromElementDescriptor(element) { - var obj = { - kind: element.kind, - key: element.key, - placement: element.placement, - descriptor: element.descriptor - }; - var desc = { - value: "Descriptor", - configurable: true - }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - if (element.kind === "field") obj.initializer = element.initializer; - return obj; - }, - toElementDescriptors: function toElementDescriptors(elementObjects) { - if (elementObjects === undefined) return; - return toArray(elementObjects).map(function (elementObject) { - var element = this.toElementDescriptor(elementObject); - this.disallowProperty(elementObject, "finisher", "An element descriptor"); - this.disallowProperty(elementObject, "extras", "An element descriptor"); - return element; - }, this); - }, - toElementDescriptor: function toElementDescriptor(elementObject) { - var kind = String(elementObject.kind); - if (kind !== "method" && kind !== "field") { - throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"'); - } - var key = toPropertyKey(elementObject.key); - var placement = String(elementObject.placement); - if (placement !== "static" && placement !== "prototype" && placement !== "own") { - throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"'); - } - var descriptor = elementObject.descriptor; - this.disallowProperty(elementObject, "elements", "An element descriptor"); - var element = { - kind: kind, - key: key, - placement: placement, - descriptor: Object.assign({}, descriptor) - }; - if (kind !== "field") { - this.disallowProperty(elementObject, "initializer", "A method descriptor"); - } else { - this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor"); - this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor"); - this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor"); - element.initializer = elementObject.initializer; - } - return element; - }, - toElementFinisherExtras: function toElementFinisherExtras(elementObject) { - var element = this.toElementDescriptor(elementObject); - var finisher = _optionalCallableProperty(elementObject, "finisher"); - var extras = this.toElementDescriptors(elementObject.extras); - return { - element: element, - finisher: finisher, - extras: extras - }; - }, - fromClassDescriptor: function fromClassDescriptor(elements) { - var obj = { - kind: "class", - elements: elements.map(this.fromElementDescriptor, this) - }; - var desc = { - value: "Descriptor", - configurable: true - }; - Object.defineProperty(obj, Symbol.toStringTag, desc); - return obj; - }, - toClassDescriptor: function toClassDescriptor(obj) { - var kind = String(obj.kind); - if (kind !== "class") { - throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"'); - } - this.disallowProperty(obj, "key", "A class descriptor"); - this.disallowProperty(obj, "placement", "A class descriptor"); - this.disallowProperty(obj, "descriptor", "A class descriptor"); - this.disallowProperty(obj, "initializer", "A class descriptor"); - this.disallowProperty(obj, "extras", "A class descriptor"); - var finisher = _optionalCallableProperty(obj, "finisher"); - var elements = this.toElementDescriptors(obj.elements); - return { - elements: elements, - finisher: finisher - }; - }, - runClassFinishers: function runClassFinishers(constructor, finishers) { - for (var i = 0; i < finishers.length; i++) { - var newConstructor = (0, finishers[i])(constructor); - if (newConstructor !== undefined) { - if (typeof newConstructor !== "function") { - throw new TypeError("Finishers must return a constructor."); - } - constructor = newConstructor; - } - } - return constructor; - }, - disallowProperty: function disallowProperty(obj, name, objectType) { - if (obj[name] !== undefined) { - throw new TypeError(objectType + " can't have a ." + name + " property."); - } - } - }; - return api; -} -function _createElementDescriptor(def) { - var key = toPropertyKey(def.key); - var descriptor; - if (def.kind === "method") { - descriptor = { - value: def.value, - writable: true, - configurable: true, - enumerable: false - }; - } else if (def.kind === "get") { - descriptor = { - get: def.value, - configurable: true, - enumerable: false - }; - } else if (def.kind === "set") { - descriptor = { - set: def.value, - configurable: true, - enumerable: false - }; - } else if (def.kind === "field") { - descriptor = { - configurable: true, - writable: true, - enumerable: true - }; - } - var element = { - kind: def.kind === "field" ? "field" : "method", - key: key, - placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype", - descriptor: descriptor - }; - if (def.decorators) element.decorators = def.decorators; - if (def.kind === "field") element.initializer = def.value; - return element; -} -function _coalesceGetterSetter(element, other) { - if (element.descriptor.get !== undefined) { - other.descriptor.get = element.descriptor.get; - } else { - other.descriptor.set = element.descriptor.set; - } -} -function _coalesceClassElements(elements) { - var newElements = []; - var isSameElement = function isSameElement(other) { - return other.kind === "method" && other.key === element.key && other.placement === element.placement; - }; - for (var i = 0; i < elements.length; i++) { - var element = elements[i]; - var other; - if (element.kind === "method" && (other = newElements.find(isSameElement))) { - if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) { - if (_hasDecorators(element) || _hasDecorators(other)) { - throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated."); - } - other.descriptor = element.descriptor; - } else { - if (_hasDecorators(element)) { - if (_hasDecorators(other)) { - throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ")."); - } - other.decorators = element.decorators; - } - _coalesceGetterSetter(element, other); - } - } else { - newElements.push(element); - } - } - return newElements; -} -function _hasDecorators(element) { - return element.decorators && element.decorators.length; -} -function _isDataDescriptor(desc) { - return desc !== undefined && !(desc.value === undefined && desc.writable === undefined); -} -function _optionalCallableProperty(obj, name) { - var value = obj[name]; - if (value !== undefined && typeof value !== "function") { - throw new TypeError("Expected '" + name + "' to be a function"); - } - return value; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/defaults.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/defaults.js deleted file mode 100755 index 9e59e9a88..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/defaults.js +++ /dev/null @@ -1,11 +0,0 @@ -export default function _defaults(obj, defaults) { - var keys = Object.getOwnPropertyNames(defaults); - for (var i = 0; i < keys.length; i++) { - var key = keys[i]; - var value = Object.getOwnPropertyDescriptor(defaults, key); - if (value && value.configurable && obj[key] === undefined) { - Object.defineProperty(obj, key, value); - } - } - return obj; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/defineAccessor.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/defineAccessor.js deleted file mode 100755 index 154271d15..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function _defineAccessor(type, obj, key, fn) { - var desc = { - configurable: !0, - enumerable: !0 - }; - return desc[type] = fn, Object.defineProperty(obj, key, desc); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js deleted file mode 100755 index 0c04128a6..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +++ /dev/null @@ -1,19 +0,0 @@ -export default function _defineEnumerableProperties(obj, descs) { - for (var key in descs) { - var desc = descs[key]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, key, desc); - } - if (Object.getOwnPropertySymbols) { - var objectSymbols = Object.getOwnPropertySymbols(descs); - for (var i = 0; i < objectSymbols.length; i++) { - var sym = objectSymbols[i]; - var desc = descs[sym]; - desc.configurable = desc.enumerable = true; - if ("value" in desc) desc.writable = true; - Object.defineProperty(obj, sym, desc); - } - } - return obj; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/defineProperty.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/defineProperty.js deleted file mode 100755 index 56c06a250..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/defineProperty.js +++ /dev/null @@ -1,15 +0,0 @@ -import toPropertyKey from "./toPropertyKey.js"; -export default function _defineProperty(obj, key, value) { - key = toPropertyKey(key); - if (key in obj) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - } else { - obj[key] = value; - } - return obj; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/dispose.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/dispose.js deleted file mode 100755 index ccf5b7e4b..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/dispose.js +++ /dev/null @@ -1,27 +0,0 @@ -function dispose_SuppressedError(suppressed, error) { - return "undefined" != typeof SuppressedError ? dispose_SuppressedError = SuppressedError : (dispose_SuppressedError = function dispose_SuppressedError(suppressed, error) { - this.suppressed = suppressed, this.error = error, this.stack = new Error().stack; - }, dispose_SuppressedError.prototype = Object.create(Error.prototype, { - constructor: { - value: dispose_SuppressedError, - writable: !0, - configurable: !0 - } - })), new dispose_SuppressedError(suppressed, error); -} -export default function _dispose(stack, error, hasError) { - function next() { - for (; stack.length > 0;) try { - var r = stack.pop(), - p = r.d.call(r.v); - if (r.a) return Promise.resolve(p).then(next, err); - } catch (e) { - return err(e); - } - if (hasError) throw error; - } - function err(e) { - return error = hasError ? new dispose_SuppressedError(e, error) : e, hasError = !0, next(); - } - return next(); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/extends.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/extends.js deleted file mode 100755 index ab17131f6..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/extends.js +++ /dev/null @@ -1,14 +0,0 @@ -export default function _extends() { - _extends = Object.assign ? Object.assign.bind() : function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }; - return _extends.apply(this, arguments); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/get.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/get.js deleted file mode 100755 index 0705d5fc4..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/get.js +++ /dev/null @@ -1,17 +0,0 @@ -import superPropBase from "./superPropBase.js"; -export default function _get() { - if (typeof Reflect !== "undefined" && Reflect.get) { - _get = Reflect.get.bind(); - } else { - _get = function _get(target, property, receiver) { - var base = superPropBase(target, property); - if (!base) return; - var desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.get) { - return desc.get.call(arguments.length < 3 ? target : receiver); - } - return desc.value; - }; - } - return _get.apply(this, arguments); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js deleted file mode 100755 index e9bb1d54f..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +++ /dev/null @@ -1,6 +0,0 @@ -export default function _getPrototypeOf(o) { - _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }; - return _getPrototypeOf(o); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/identity.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/identity.js deleted file mode 100755 index a1e7e4cda..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/identity.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _identity(x) { - return x; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/inherits.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/inherits.js deleted file mode 100755 index 0b0a0eacf..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/inherits.js +++ /dev/null @@ -1,17 +0,0 @@ -import setPrototypeOf from "./setPrototypeOf.js"; -export default function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) setPrototypeOf(subClass, superClass); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js deleted file mode 100755 index 90bb79657..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +++ /dev/null @@ -1,6 +0,0 @@ -import setPrototypeOf from "./setPrototypeOf.js"; -export default function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - setPrototypeOf(subClass, superClass); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js deleted file mode 100755 index 26fdea084..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +++ /dev/null @@ -1,9 +0,0 @@ -export default function _initializerDefineProperty(target, property, descriptor, context) { - if (!descriptor) return; - Object.defineProperty(target, property, { - enumerable: descriptor.enumerable, - configurable: descriptor.configurable, - writable: descriptor.writable, - value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 - }); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js deleted file mode 100755 index 99d0b417e..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _initializerWarningHelper(descriptor, context) { - throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/instanceof.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/instanceof.js deleted file mode 100755 index 8c43b7178..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/instanceof.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function _instanceof(left, right) { - if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { - return !!right[Symbol.hasInstance](left); - } else { - return left instanceof right; - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js deleted file mode 100755 index c2df7b641..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - "default": obj - }; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js deleted file mode 100755 index 6ec63091e..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +++ /dev/null @@ -1,40 +0,0 @@ -import _typeof from "./typeof.js"; -function _getRequireWildcardCache(nodeInterop) { - if (typeof WeakMap !== "function") return null; - var cacheBabelInterop = new WeakMap(); - var cacheNodeInterop = new WeakMap(); - return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { - return nodeInterop ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); -} -export default function _interopRequireWildcard(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) { - return obj; - } - if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { - return { - "default": obj - }; - } - var cache = _getRequireWildcardCache(nodeInterop); - if (cache && cache.has(obj)) { - return cache.get(obj); - } - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) { - if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } - } - } - newObj["default"] = obj; - if (cache) { - cache.set(obj, newObj); - } - return newObj; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js deleted file mode 100755 index 7b1bc821f..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _isNativeFunction(fn) { - return Function.toString.call(fn).indexOf("[native code]") !== -1; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js deleted file mode 100755 index 618408070..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +++ /dev/null @@ -1,11 +0,0 @@ -export default function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; - try { - Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - return true; - } catch (e) { - return false; - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/iterableToArray.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/iterableToArray.js deleted file mode 100755 index cfe9fbd3b..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js deleted file mode 100755 index 5c31a5935..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +++ /dev/null @@ -1,27 +0,0 @@ -export default function _iterableToArrayLimit(arr, i) { - var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; - if (null != _i) { - var _s, - _e, - _x, - _r, - _arr = [], - _n = !0, - _d = !1; - try { - if (_x = (_i = _i.call(arr)).next, 0 === i) { - if (Object(_i) !== _i) return; - _n = !1; - } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); - } catch (err) { - _d = !0, _e = err; - } finally { - try { - if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; - } finally { - if (_d) throw _e; - } - } - return _arr; - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js deleted file mode 100755 index 9237c3077..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js +++ /dev/null @@ -1,9 +0,0 @@ -export default function _iterableToArrayLimitLoose(arr, i) { - var _i = arr && ("undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]); - if (null != _i) { - var _s, - _arr = []; - for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) _arr.push(_s.value); - return _arr; - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/jsx.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/jsx.js deleted file mode 100755 index 742afd5c2..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/jsx.js +++ /dev/null @@ -1,21 +0,0 @@ -var REACT_ELEMENT_TYPE; -export default function _createRawReactElement(type, props, key, children) { - REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); - var defaultProps = type && type.defaultProps, - childrenLength = arguments.length - 3; - if (props || 0 === childrenLength || (props = { - children: void 0 - }), 1 === childrenLength) props.children = children;else if (childrenLength > 1) { - for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3]; - props.children = childArray; - } - if (props && defaultProps) for (var propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]);else props || (props = defaultProps || {}); - return { - $$typeof: REACT_ELEMENT_TYPE, - type: type, - key: void 0 === key ? null : "" + key, - ref: null, - props: props, - _owner: null - }; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js deleted file mode 100755 index 38fd78fb1..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +++ /dev/null @@ -1,8 +0,0 @@ -import arrayLikeToArray from "./arrayLikeToArray.js"; -export default function _maybeArrayLike(next, arr, i) { - if (arr && !Array.isArray(arr) && typeof arr.length === "number") { - var len = arr.length; - return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); - } - return next(arr, i); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js deleted file mode 100755 index d6cd86437..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +++ /dev/null @@ -1,5 +0,0 @@ -export default function _newArrowCheck(innerThis, boundThis) { - if (innerThis !== boundThis) { - throw new TypeError("Cannot instantiate an arrow function"); - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js deleted file mode 100755 index b349d006c..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js deleted file mode 100755 index 82d829614..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js deleted file mode 100755 index 251b85958..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _objectDestructuringEmpty(obj) { - if (obj == null) throw new TypeError("Cannot destructure " + obj); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/objectSpread.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/objectSpread.js deleted file mode 100755 index a4e05e569..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/objectSpread.js +++ /dev/null @@ -1,16 +0,0 @@ -import defineProperty from "./defineProperty.js"; -export default function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? Object(arguments[i]) : {}; - var ownKeys = Object.keys(source); - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - ownKeys.forEach(function (key) { - defineProperty(target, key, source[key]); - }); - } - return target; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/objectSpread2.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/objectSpread2.js deleted file mode 100755 index 7d69accd7..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +++ /dev/null @@ -1,22 +0,0 @@ -import defineProperty from "./defineProperty.js"; -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && (symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - })), keys.push.apply(keys, symbols); - } - return keys; -} -export default function _objectSpread2(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { - defineProperty(target, key, source[key]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - return target; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js deleted file mode 100755 index 36804a39b..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +++ /dev/null @@ -1,16 +0,0 @@ -import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js"; -export default function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = objectWithoutPropertiesLoose(source, excluded); - var key, i; - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - return target; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js deleted file mode 100755 index 4b308bde5..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +++ /dev/null @@ -1,12 +0,0 @@ -export default function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/package.json b/WechatBot/node_modules/@babel/runtime/helpers/esm/package.json deleted file mode 100644 index aead43de3..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js deleted file mode 100755 index 877882442..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +++ /dev/null @@ -1,10 +0,0 @@ -import _typeof from "./typeof.js"; -import assertThisInitialized from "./assertThisInitialized.js"; -export default function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return assertThisInitialized(self); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/readOnlyError.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/readOnlyError.js deleted file mode 100755 index 166e40e5e..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _readOnlyError(name) { - throw new TypeError("\"" + name + "\" is read-only"); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js deleted file mode 100755 index e8275dae6..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +++ /dev/null @@ -1,298 +0,0 @@ -import _typeof from "./typeof.js"; -export default function _regeneratorRuntime() { - "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ - _regeneratorRuntime = function _regeneratorRuntime() { - return exports; - }; - var exports = {}, - Op = Object.prototype, - hasOwn = Op.hasOwnProperty, - defineProperty = Object.defineProperty || function (obj, key, desc) { - obj[key] = desc.value; - }, - $Symbol = "function" == typeof Symbol ? Symbol : {}, - iteratorSymbol = $Symbol.iterator || "@@iterator", - asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", - toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; - function define(obj, key, value) { - return Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }), obj[key]; - } - try { - define({}, ""); - } catch (err) { - define = function define(obj, key, value) { - return obj[key] = value; - }; - } - function wrap(innerFn, outerFn, self, tryLocsList) { - var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, - generator = Object.create(protoGenerator.prototype), - context = new Context(tryLocsList || []); - return defineProperty(generator, "_invoke", { - value: makeInvokeMethod(innerFn, self, context) - }), generator; - } - function tryCatch(fn, obj, arg) { - try { - return { - type: "normal", - arg: fn.call(obj, arg) - }; - } catch (err) { - return { - type: "throw", - arg: err - }; - } - } - exports.wrap = wrap; - var ContinueSentinel = {}; - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - var IteratorPrototype = {}; - define(IteratorPrototype, iteratorSymbol, function () { - return this; - }); - var getProto = Object.getPrototypeOf, - NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); - var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); - function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function (method) { - define(prototype, method, function (arg) { - return this._invoke(method, arg); - }); - }); - } - function AsyncIterator(generator, PromiseImpl) { - function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - if ("throw" !== record.type) { - var result = record.arg, - value = result.value; - return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { - invoke("next", value, resolve, reject); - }, function (err) { - invoke("throw", err, resolve, reject); - }) : PromiseImpl.resolve(value).then(function (unwrapped) { - result.value = unwrapped, resolve(result); - }, function (error) { - return invoke("throw", error, resolve, reject); - }); - } - reject(record.arg); - } - var previousPromise; - defineProperty(this, "_invoke", { - value: function value(method, arg) { - function callInvokeWithMethodAndArg() { - return new PromiseImpl(function (resolve, reject) { - invoke(method, arg, resolve, reject); - }); - } - return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); - } - }); - } - function makeInvokeMethod(innerFn, self, context) { - var state = "suspendedStart"; - return function (method, arg) { - if ("executing" === state) throw new Error("Generator is already running"); - if ("completed" === state) { - if ("throw" === method) throw arg; - return { - value: void 0, - done: !0 - }; - } - for (context.method = method, context.arg = arg;;) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } - if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { - if ("suspendedStart" === state) throw state = "completed", context.arg; - context.dispatchException(context.arg); - } else "return" === context.method && context.abrupt("return", context.arg); - state = "executing"; - var record = tryCatch(innerFn, self, context); - if ("normal" === record.type) { - if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; - return { - value: record.arg, - done: context.done - }; - } - "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); - } - }; - } - function maybeInvokeDelegate(delegate, context) { - var methodName = context.method, - method = delegate.iterator[methodName]; - if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; - var record = tryCatch(method, delegate.iterator, context.arg); - if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; - var info = record.arg; - return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); - } - function pushTryEntry(locs) { - var entry = { - tryLoc: locs[0] - }; - 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); - } - function resetTryEntry(entry) { - var record = entry.completion || {}; - record.type = "normal", delete record.arg, entry.completion = record; - } - function Context(tryLocsList) { - this.tryEntries = [{ - tryLoc: "root" - }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); - } - function values(iterable) { - if (iterable || "" === iterable) { - var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) return iteratorMethod.call(iterable); - if ("function" == typeof iterable.next) return iterable; - if (!isNaN(iterable.length)) { - var i = -1, - next = function next() { - for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; - return next.value = undefined, next.done = !0, next; - }; - return next.next = next; - } - } - throw new TypeError(_typeof(iterable) + " is not iterable"); - } - return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { - value: GeneratorFunctionPrototype, - configurable: !0 - }), defineProperty(GeneratorFunctionPrototype, "constructor", { - value: GeneratorFunction, - configurable: !0 - }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { - var ctor = "function" == typeof genFun && genFun.constructor; - return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); - }, exports.mark = function (genFun) { - return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; - }, exports.awrap = function (arg) { - return { - __await: arg - }; - }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { - return this; - }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { - void 0 === PromiseImpl && (PromiseImpl = Promise); - var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); - return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { - return result.done ? result.value : iter.next(); - }); - }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { - return this; - }), define(Gp, "toString", function () { - return "[object Generator]"; - }), exports.keys = function (val) { - var object = Object(val), - keys = []; - for (var key in object) keys.push(key); - return keys.reverse(), function next() { - for (; keys.length;) { - var key = keys.pop(); - if (key in object) return next.value = key, next.done = !1, next; - } - return next.done = !0, next; - }; - }, exports.values = values, Context.prototype = { - constructor: Context, - reset: function reset(skipTempReset) { - if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); - }, - stop: function stop() { - this.done = !0; - var rootRecord = this.tryEntries[0].completion; - if ("throw" === rootRecord.type) throw rootRecord.arg; - return this.rval; - }, - dispatchException: function dispatchException(exception) { - if (this.done) throw exception; - var context = this; - function handle(loc, caught) { - return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; - } - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i], - record = entry.completion; - if ("root" === entry.tryLoc) return handle("end"); - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, "catchLoc"), - hasFinally = hasOwn.call(entry, "finallyLoc"); - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); - if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); - } else if (hasCatch) { - if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); - } else { - if (!hasFinally) throw new Error("try statement without catch or finally"); - if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); - } - } - } - }, - abrupt: function abrupt(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { - var finallyEntry = entry; - break; - } - } - finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); - var record = finallyEntry ? finallyEntry.completion : {}; - return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); - }, - complete: function complete(record, afterLoc) { - if ("throw" === record.type) throw record.arg; - return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; - }, - finish: function finish(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; - } - }, - "catch": function _catch(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - if ("throw" === record.type) { - var thrown = record.arg; - resetTryEntry(entry); - } - return thrown; - } - } - throw new Error("illegal catch attempt"); - }, - delegateYield: function delegateYield(iterable, resultName, nextLoc) { - return this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }, "next" === this.method && (this.arg = undefined), ContinueSentinel; - } - }, exports; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/set.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/set.js deleted file mode 100755 index c9ee6c724..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/set.js +++ /dev/null @@ -1,40 +0,0 @@ -import superPropBase from "./superPropBase.js"; -import defineProperty from "./defineProperty.js"; -function set(target, property, value, receiver) { - if (typeof Reflect !== "undefined" && Reflect.set) { - set = Reflect.set; - } else { - set = function set(target, property, value, receiver) { - var base = superPropBase(target, property); - var desc; - if (base) { - desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.set) { - desc.set.call(receiver, value); - return true; - } else if (!desc.writable) { - return false; - } - } - desc = Object.getOwnPropertyDescriptor(receiver, property); - if (desc) { - if (!desc.writable) { - return false; - } - desc.value = value; - Object.defineProperty(receiver, property, desc); - } else { - defineProperty(receiver, property, value); - } - return true; - }; - } - return set(target, property, value, receiver); -} -export default function _set(target, property, value, receiver, isStrict) { - var s = set(target, property, value, receiver || target); - if (!s && isStrict) { - throw new TypeError('failed to set property'); - } - return value; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js deleted file mode 100755 index 905e13c0d..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function _setPrototypeOf(o, p) { - _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }; - return _setPrototypeOf(o, p); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js deleted file mode 100755 index cadd9bb5b..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function _skipFirstGeneratorNext(fn) { - return function () { - var it = fn.apply(this, arguments); - it.next(); - return it; - }; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/slicedToArray.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/slicedToArray.js deleted file mode 100755 index 618200b92..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +++ /dev/null @@ -1,7 +0,0 @@ -import arrayWithHoles from "./arrayWithHoles.js"; -import iterableToArrayLimit from "./iterableToArrayLimit.js"; -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -import nonIterableRest from "./nonIterableRest.js"; -export default function _slicedToArray(arr, i) { - return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js deleted file mode 100755 index efc7429ef..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js +++ /dev/null @@ -1,7 +0,0 @@ -import arrayWithHoles from "./arrayWithHoles.js"; -import iterableToArrayLimitLoose from "./iterableToArrayLimitLoose.js"; -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -import nonIterableRest from "./nonIterableRest.js"; -export default function _slicedToArrayLoose(arr, i) { - return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/superPropBase.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/superPropBase.js deleted file mode 100755 index 605724d78..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/superPropBase.js +++ /dev/null @@ -1,8 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -export default function _superPropBase(object, property) { - while (!Object.prototype.hasOwnProperty.call(object, property)) { - object = getPrototypeOf(object); - if (object === null) break; - } - return object; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js deleted file mode 100755 index 990d5e438..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +++ /dev/null @@ -1,10 +0,0 @@ -export default function _taggedTemplateLiteral(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - return Object.freeze(Object.defineProperties(strings, { - raw: { - value: Object.freeze(raw) - } - })); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js deleted file mode 100755 index 9fcba323f..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +++ /dev/null @@ -1,7 +0,0 @@ -export default function _taggedTemplateLiteralLoose(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - strings.raw = raw; - return strings; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/tdz.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/tdz.js deleted file mode 100755 index d5d0adc8a..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/tdz.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _tdzError(name) { - throw new ReferenceError(name + " is not defined - temporal dead zone"); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/temporalRef.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/temporalRef.js deleted file mode 100755 index b25f7c44f..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/temporalRef.js +++ /dev/null @@ -1,5 +0,0 @@ -import undef from "./temporalUndefined.js"; -import err from "./tdz.js"; -export default function _temporalRef(val, name) { - return val === undef ? err(name) : val; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js deleted file mode 100755 index 1a3571734..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +++ /dev/null @@ -1 +0,0 @@ -export default function _temporalUndefined() {} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/toArray.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/toArray.js deleted file mode 100755 index ad7c871a5..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/toArray.js +++ /dev/null @@ -1,7 +0,0 @@ -import arrayWithHoles from "./arrayWithHoles.js"; -import iterableToArray from "./iterableToArray.js"; -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -import nonIterableRest from "./nonIterableRest.js"; -export default function _toArray(arr) { - return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js deleted file mode 100755 index bd9128559..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +++ /dev/null @@ -1,7 +0,0 @@ -import arrayWithoutHoles from "./arrayWithoutHoles.js"; -import iterableToArray from "./iterableToArray.js"; -import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; -import nonIterableSpread from "./nonIterableSpread.js"; -export default function _toConsumableArray(arr) { - return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/toPrimitive.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/toPrimitive.js deleted file mode 100755 index cbfabb7fb..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +++ /dev/null @@ -1,11 +0,0 @@ -import _typeof from "./typeof.js"; -export default function _toPrimitive(input, hint) { - if (_typeof(input) !== "object" || input === null) return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== undefined) { - var res = prim.call(input, hint || "default"); - if (_typeof(res) !== "object") return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js deleted file mode 100755 index 0fcc93b3e..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +++ /dev/null @@ -1,6 +0,0 @@ -import _typeof from "./typeof.js"; -import toPrimitive from "./toPrimitive.js"; -export default function _toPropertyKey(arg) { - var key = toPrimitive(arg, "string"); - return _typeof(key) === "symbol" ? key : String(key); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/typeof.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/typeof.js deleted file mode 100755 index 92100c66f..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/typeof.js +++ /dev/null @@ -1,9 +0,0 @@ -export default function _typeof(obj) { - "@babel/helpers - typeof"; - - return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }, _typeof(obj); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js deleted file mode 100755 index c0f63bd5a..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +++ /dev/null @@ -1,9 +0,0 @@ -import arrayLikeToArray from "./arrayLikeToArray.js"; -export default function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/using.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/using.js deleted file mode 100755 index 4dd171ef7..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/using.js +++ /dev/null @@ -1,12 +0,0 @@ -import _typeof from "./typeof.js"; -export default function _using(stack, value, isAwait) { - if (null == value) return value; - if ("object" != _typeof(value)) throw new TypeError("using declarations can only be used with objects, null, or undefined."); - if (isAwait) var dispose = value[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; - if (null == dispose && (dispose = value[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof dispose) throw new TypeError("Property [Symbol.dispose] is not a function."); - return stack.push({ - v: value, - d: dispose, - a: isAwait - }), value; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js deleted file mode 100755 index 723b2ddac..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +++ /dev/null @@ -1,6 +0,0 @@ -import AsyncGenerator from "./AsyncGenerator.js"; -export default function _wrapAsyncGenerator(fn) { - return function () { - return new AsyncGenerator(fn.apply(this, arguments)); - }; -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js deleted file mode 100755 index 43d0ded7a..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +++ /dev/null @@ -1,30 +0,0 @@ -import getPrototypeOf from "./getPrototypeOf.js"; -import setPrototypeOf from "./setPrototypeOf.js"; -import isNativeFunction from "./isNativeFunction.js"; -import construct from "./construct.js"; -export default function _wrapNativeSuper(Class) { - var _cache = typeof Map === "function" ? new Map() : undefined; - _wrapNativeSuper = function _wrapNativeSuper(Class) { - if (Class === null || !isNativeFunction(Class)) return Class; - if (typeof Class !== "function") { - throw new TypeError("Super expression must either be null or a function"); - } - if (typeof _cache !== "undefined") { - if (_cache.has(Class)) return _cache.get(Class); - _cache.set(Class, Wrapper); - } - function Wrapper() { - return construct(Class, arguments, getPrototypeOf(this).constructor); - } - Wrapper.prototype = Object.create(Class.prototype, { - constructor: { - value: Wrapper, - enumerable: false, - writable: true, - configurable: true - } - }); - return setPrototypeOf(Wrapper, Class); - }; - return _wrapNativeSuper(Class); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js deleted file mode 100755 index 620d84c79..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +++ /dev/null @@ -1,50 +0,0 @@ -import _typeof from "./typeof.js"; -import setPrototypeOf from "./setPrototypeOf.js"; -import inherits from "./inherits.js"; -export default function _wrapRegExp() { - _wrapRegExp = function _wrapRegExp(re, groups) { - return new BabelRegExp(re, void 0, groups); - }; - var _super = RegExp.prototype, - _groups = new WeakMap(); - function BabelRegExp(re, flags, groups) { - var _this = new RegExp(re, flags); - return _groups.set(_this, groups || _groups.get(re)), setPrototypeOf(_this, BabelRegExp.prototype); - } - function buildGroups(result, re) { - var g = _groups.get(re); - return Object.keys(g).reduce(function (groups, name) { - var i = g[name]; - if ("number" == typeof i) groups[name] = result[i];else { - for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++; - groups[name] = result[i[k]]; - } - return groups; - }, Object.create(null)); - } - return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { - var result = _super.exec.call(this, str); - if (result) { - result.groups = buildGroups(result, this); - var indices = result.indices; - indices && (indices.groups = buildGroups(indices, this)); - } - return result; - }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { - if ("string" == typeof substitution) { - var groups = _groups.get(this); - return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { - var group = groups[name]; - return "$" + (Array.isArray(group) ? group.join("$") : group); - })); - } - if ("function" == typeof substitution) { - var _this = this; - return _super[Symbol.replace].call(this, str, function () { - var args = arguments; - return "object" != _typeof(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); - }); - } - return _super[Symbol.replace].call(this, str, substitution); - }, _wrapRegExp.apply(this, arguments); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js b/WechatBot/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js deleted file mode 100755 index 9170bd45d..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function _writeOnlyError(name) { - throw new TypeError("\"" + name + "\" is write-only"); -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/extends.js b/WechatBot/node_modules/@babel/runtime/helpers/extends.js deleted file mode 100755 index bb1116077..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/extends.js +++ /dev/null @@ -1,15 +0,0 @@ -function _extends() { - module.exports = _extends = Object.assign ? Object.assign.bind() : function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - return target; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - return _extends.apply(this, arguments); -} -module.exports = _extends, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/get.js b/WechatBot/node_modules/@babel/runtime/helpers/get.js deleted file mode 100755 index 9b44d2fbc..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/get.js +++ /dev/null @@ -1,18 +0,0 @@ -var superPropBase = require("./superPropBase.js"); -function _get() { - if (typeof Reflect !== "undefined" && Reflect.get) { - module.exports = _get = Reflect.get.bind(), module.exports.__esModule = true, module.exports["default"] = module.exports; - } else { - module.exports = _get = function _get(target, property, receiver) { - var base = superPropBase(target, property); - if (!base) return; - var desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.get) { - return desc.get.call(arguments.length < 3 ? target : receiver); - } - return desc.value; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - } - return _get.apply(this, arguments); -} -module.exports = _get, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/getPrototypeOf.js b/WechatBot/node_modules/@babel/runtime/helpers/getPrototypeOf.js deleted file mode 100755 index 0639a6550..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/getPrototypeOf.js +++ /dev/null @@ -1,7 +0,0 @@ -function _getPrototypeOf(o) { - module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { - return o.__proto__ || Object.getPrototypeOf(o); - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - return _getPrototypeOf(o); -} -module.exports = _getPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/identity.js b/WechatBot/node_modules/@babel/runtime/helpers/identity.js deleted file mode 100755 index 7dd82dc79..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/identity.js +++ /dev/null @@ -1,4 +0,0 @@ -function _identity(x) { - return x; -} -module.exports = _identity, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/inherits.js b/WechatBot/node_modules/@babel/runtime/helpers/inherits.js deleted file mode 100755 index 6521cce38..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/inherits.js +++ /dev/null @@ -1,18 +0,0 @@ -var setPrototypeOf = require("./setPrototypeOf.js"); -function _inherits(subClass, superClass) { - if (typeof superClass !== "function" && superClass !== null) { - throw new TypeError("Super expression must either be null or a function"); - } - subClass.prototype = Object.create(superClass && superClass.prototype, { - constructor: { - value: subClass, - writable: true, - configurable: true - } - }); - Object.defineProperty(subClass, "prototype", { - writable: false - }); - if (superClass) setPrototypeOf(subClass, superClass); -} -module.exports = _inherits, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/inheritsLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/inheritsLoose.js deleted file mode 100755 index 19a60c938..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/inheritsLoose.js +++ /dev/null @@ -1,7 +0,0 @@ -var setPrototypeOf = require("./setPrototypeOf.js"); -function _inheritsLoose(subClass, superClass) { - subClass.prototype = Object.create(superClass.prototype); - subClass.prototype.constructor = subClass; - setPrototypeOf(subClass, superClass); -} -module.exports = _inheritsLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/initializerDefineProperty.js b/WechatBot/node_modules/@babel/runtime/helpers/initializerDefineProperty.js deleted file mode 100755 index 7f35d5038..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +++ /dev/null @@ -1,10 +0,0 @@ -function _initializerDefineProperty(target, property, descriptor, context) { - if (!descriptor) return; - Object.defineProperty(target, property, { - enumerable: descriptor.enumerable, - configurable: descriptor.configurable, - writable: descriptor.writable, - value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 - }); -} -module.exports = _initializerDefineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/initializerWarningHelper.js b/WechatBot/node_modules/@babel/runtime/helpers/initializerWarningHelper.js deleted file mode 100755 index 061f420a8..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +++ /dev/null @@ -1,4 +0,0 @@ -function _initializerWarningHelper(descriptor, context) { - throw new Error('Decorating class property failed. Please ensure that ' + 'transform-class-properties is enabled and runs after the decorators transform.'); -} -module.exports = _initializerWarningHelper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/instanceof.js b/WechatBot/node_modules/@babel/runtime/helpers/instanceof.js deleted file mode 100755 index bc3d9e7f9..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/instanceof.js +++ /dev/null @@ -1,8 +0,0 @@ -function _instanceof(left, right) { - if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { - return !!right[Symbol.hasInstance](left); - } else { - return left instanceof right; - } -} -module.exports = _instanceof, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/interopRequireDefault.js b/WechatBot/node_modules/@babel/runtime/helpers/interopRequireDefault.js deleted file mode 100755 index 429b270d6..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/interopRequireDefault.js +++ /dev/null @@ -1,6 +0,0 @@ -function _interopRequireDefault(obj) { - return obj && obj.__esModule ? obj : { - "default": obj - }; -} -module.exports = _interopRequireDefault, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/interopRequireWildcard.js b/WechatBot/node_modules/@babel/runtime/helpers/interopRequireWildcard.js deleted file mode 100755 index 3765dcc72..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +++ /dev/null @@ -1,41 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function _getRequireWildcardCache(nodeInterop) { - if (typeof WeakMap !== "function") return null; - var cacheBabelInterop = new WeakMap(); - var cacheNodeInterop = new WeakMap(); - return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { - return nodeInterop ? cacheNodeInterop : cacheBabelInterop; - })(nodeInterop); -} -function _interopRequireWildcard(obj, nodeInterop) { - if (!nodeInterop && obj && obj.__esModule) { - return obj; - } - if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { - return { - "default": obj - }; - } - var cache = _getRequireWildcardCache(nodeInterop); - if (cache && cache.has(obj)) { - return cache.get(obj); - } - var newObj = {}; - var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; - for (var key in obj) { - if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { - var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; - if (desc && (desc.get || desc.set)) { - Object.defineProperty(newObj, key, desc); - } else { - newObj[key] = obj[key]; - } - } - } - newObj["default"] = obj; - if (cache) { - cache.set(obj, newObj); - } - return newObj; -} -module.exports = _interopRequireWildcard, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/isNativeFunction.js b/WechatBot/node_modules/@babel/runtime/helpers/isNativeFunction.js deleted file mode 100755 index ea595353b..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/isNativeFunction.js +++ /dev/null @@ -1,4 +0,0 @@ -function _isNativeFunction(fn) { - return Function.toString.call(fn).indexOf("[native code]") !== -1; -} -module.exports = _isNativeFunction, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js b/WechatBot/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js deleted file mode 100755 index 6b4e73f02..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +++ /dev/null @@ -1,12 +0,0 @@ -function _isNativeReflectConstruct() { - if (typeof Reflect === "undefined" || !Reflect.construct) return false; - if (Reflect.construct.sham) return false; - if (typeof Proxy === "function") return true; - try { - Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); - return true; - } catch (e) { - return false; - } -} -module.exports = _isNativeReflectConstruct, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/iterableToArray.js b/WechatBot/node_modules/@babel/runtime/helpers/iterableToArray.js deleted file mode 100755 index 89607526d..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/iterableToArray.js +++ /dev/null @@ -1,4 +0,0 @@ -function _iterableToArray(iter) { - if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); -} -module.exports = _iterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js b/WechatBot/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js deleted file mode 100755 index 20a18351c..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +++ /dev/null @@ -1,28 +0,0 @@ -function _iterableToArrayLimit(arr, i) { - var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; - if (null != _i) { - var _s, - _e, - _x, - _r, - _arr = [], - _n = !0, - _d = !1; - try { - if (_x = (_i = _i.call(arr)).next, 0 === i) { - if (Object(_i) !== _i) return; - _n = !1; - } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); - } catch (err) { - _d = !0, _e = err; - } finally { - try { - if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return; - } finally { - if (_d) throw _e; - } - } - return _arr; - } -} -module.exports = _iterableToArrayLimit, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js deleted file mode 100755 index c56bebdb1..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js +++ /dev/null @@ -1,10 +0,0 @@ -function _iterableToArrayLimitLoose(arr, i) { - var _i = arr && ("undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]); - if (null != _i) { - var _s, - _arr = []; - for (_i = _i.call(arr); arr.length < i && !(_s = _i.next()).done;) _arr.push(_s.value); - return _arr; - } -} -module.exports = _iterableToArrayLimitLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/jsx.js b/WechatBot/node_modules/@babel/runtime/helpers/jsx.js deleted file mode 100755 index 8c6de7657..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/jsx.js +++ /dev/null @@ -1,22 +0,0 @@ -var REACT_ELEMENT_TYPE; -function _createRawReactElement(type, props, key, children) { - REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); - var defaultProps = type && type.defaultProps, - childrenLength = arguments.length - 3; - if (props || 0 === childrenLength || (props = { - children: void 0 - }), 1 === childrenLength) props.children = children;else if (childrenLength > 1) { - for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 3]; - props.children = childArray; - } - if (props && defaultProps) for (var propName in defaultProps) void 0 === props[propName] && (props[propName] = defaultProps[propName]);else props || (props = defaultProps || {}); - return { - $$typeof: REACT_ELEMENT_TYPE, - type: type, - key: void 0 === key ? null : "" + key, - ref: null, - props: props, - _owner: null - }; -} -module.exports = _createRawReactElement, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/maybeArrayLike.js b/WechatBot/node_modules/@babel/runtime/helpers/maybeArrayLike.js deleted file mode 100755 index 5d0009759..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/maybeArrayLike.js +++ /dev/null @@ -1,9 +0,0 @@ -var arrayLikeToArray = require("./arrayLikeToArray.js"); -function _maybeArrayLike(next, arr, i) { - if (arr && !Array.isArray(arr) && typeof arr.length === "number") { - var len = arr.length; - return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); - } - return next(arr, i); -} -module.exports = _maybeArrayLike, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/newArrowCheck.js b/WechatBot/node_modules/@babel/runtime/helpers/newArrowCheck.js deleted file mode 100755 index 9c680c8d4..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/newArrowCheck.js +++ /dev/null @@ -1,6 +0,0 @@ -function _newArrowCheck(innerThis, boundThis) { - if (innerThis !== boundThis) { - throw new TypeError("Cannot instantiate an arrow function"); - } -} -module.exports = _newArrowCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/nonIterableRest.js b/WechatBot/node_modules/@babel/runtime/helpers/nonIterableRest.js deleted file mode 100755 index 95265ba32..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/nonIterableRest.js +++ /dev/null @@ -1,4 +0,0 @@ -function _nonIterableRest() { - throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/nonIterableSpread.js b/WechatBot/node_modules/@babel/runtime/helpers/nonIterableSpread.js deleted file mode 100755 index 3fcf23f04..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/nonIterableSpread.js +++ /dev/null @@ -1,4 +0,0 @@ -function _nonIterableSpread() { - throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); -} -module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js b/WechatBot/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js deleted file mode 100755 index 5b405e00a..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +++ /dev/null @@ -1,4 +0,0 @@ -function _objectDestructuringEmpty(obj) { - if (obj == null) throw new TypeError("Cannot destructure " + obj); -} -module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/objectSpread.js b/WechatBot/node_modules/@babel/runtime/helpers/objectSpread.js deleted file mode 100755 index f39340317..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/objectSpread.js +++ /dev/null @@ -1,17 +0,0 @@ -var defineProperty = require("./defineProperty.js"); -function _objectSpread(target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i] != null ? Object(arguments[i]) : {}; - var ownKeys = Object.keys(source); - if (typeof Object.getOwnPropertySymbols === 'function') { - ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) { - return Object.getOwnPropertyDescriptor(source, sym).enumerable; - })); - } - ownKeys.forEach(function (key) { - defineProperty(target, key, source[key]); - }); - } - return target; -} -module.exports = _objectSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/objectSpread2.js b/WechatBot/node_modules/@babel/runtime/helpers/objectSpread2.js deleted file mode 100755 index 214f9e044..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/objectSpread2.js +++ /dev/null @@ -1,23 +0,0 @@ -var defineProperty = require("./defineProperty.js"); -function ownKeys(object, enumerableOnly) { - var keys = Object.keys(object); - if (Object.getOwnPropertySymbols) { - var symbols = Object.getOwnPropertySymbols(object); - enumerableOnly && (symbols = symbols.filter(function (sym) { - return Object.getOwnPropertyDescriptor(object, sym).enumerable; - })), keys.push.apply(keys, symbols); - } - return keys; -} -function _objectSpread2(target) { - for (var i = 1; i < arguments.length; i++) { - var source = null != arguments[i] ? arguments[i] : {}; - i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { - defineProperty(target, key, source[key]); - }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { - Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); - }); - } - return target; -} -module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/objectWithoutProperties.js b/WechatBot/node_modules/@babel/runtime/helpers/objectWithoutProperties.js deleted file mode 100755 index cf526bc89..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +++ /dev/null @@ -1,17 +0,0 @@ -var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose.js"); -function _objectWithoutProperties(source, excluded) { - if (source == null) return {}; - var target = objectWithoutPropertiesLoose(source, excluded); - var key, i; - if (Object.getOwnPropertySymbols) { - var sourceSymbolKeys = Object.getOwnPropertySymbols(source); - for (i = 0; i < sourceSymbolKeys.length; i++) { - key = sourceSymbolKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; - target[key] = source[key]; - } - } - return target; -} -module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js deleted file mode 100755 index 3c65a9db6..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +++ /dev/null @@ -1,13 +0,0 @@ -function _objectWithoutPropertiesLoose(source, excluded) { - if (source == null) return {}; - var target = {}; - var sourceKeys = Object.keys(source); - var key, i; - for (i = 0; i < sourceKeys.length; i++) { - key = sourceKeys[i]; - if (excluded.indexOf(key) >= 0) continue; - target[key] = source[key]; - } - return target; -} -module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js b/WechatBot/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js deleted file mode 100755 index b2424b000..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +++ /dev/null @@ -1,11 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var assertThisInitialized = require("./assertThisInitialized.js"); -function _possibleConstructorReturn(self, call) { - if (call && (_typeof(call) === "object" || typeof call === "function")) { - return call; - } else if (call !== void 0) { - throw new TypeError("Derived constructors may only return object or undefined"); - } - return assertThisInitialized(self); -} -module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/readOnlyError.js b/WechatBot/node_modules/@babel/runtime/helpers/readOnlyError.js deleted file mode 100755 index 6637a0e08..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/readOnlyError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _readOnlyError(name) { - throw new TypeError("\"" + name + "\" is read-only"); -} -module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/regeneratorRuntime.js b/WechatBot/node_modules/@babel/runtime/helpers/regeneratorRuntime.js deleted file mode 100755 index 2eb46f056..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +++ /dev/null @@ -1,299 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function _regeneratorRuntime() { - "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ - module.exports = _regeneratorRuntime = function _regeneratorRuntime() { - return exports; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - var exports = {}, - Op = Object.prototype, - hasOwn = Op.hasOwnProperty, - defineProperty = Object.defineProperty || function (obj, key, desc) { - obj[key] = desc.value; - }, - $Symbol = "function" == typeof Symbol ? Symbol : {}, - iteratorSymbol = $Symbol.iterator || "@@iterator", - asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", - toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; - function define(obj, key, value) { - return Object.defineProperty(obj, key, { - value: value, - enumerable: !0, - configurable: !0, - writable: !0 - }), obj[key]; - } - try { - define({}, ""); - } catch (err) { - define = function define(obj, key, value) { - return obj[key] = value; - }; - } - function wrap(innerFn, outerFn, self, tryLocsList) { - var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, - generator = Object.create(protoGenerator.prototype), - context = new Context(tryLocsList || []); - return defineProperty(generator, "_invoke", { - value: makeInvokeMethod(innerFn, self, context) - }), generator; - } - function tryCatch(fn, obj, arg) { - try { - return { - type: "normal", - arg: fn.call(obj, arg) - }; - } catch (err) { - return { - type: "throw", - arg: err - }; - } - } - exports.wrap = wrap; - var ContinueSentinel = {}; - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - var IteratorPrototype = {}; - define(IteratorPrototype, iteratorSymbol, function () { - return this; - }); - var getProto = Object.getPrototypeOf, - NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); - var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); - function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function (method) { - define(prototype, method, function (arg) { - return this._invoke(method, arg); - }); - }); - } - function AsyncIterator(generator, PromiseImpl) { - function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - if ("throw" !== record.type) { - var result = record.arg, - value = result.value; - return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { - invoke("next", value, resolve, reject); - }, function (err) { - invoke("throw", err, resolve, reject); - }) : PromiseImpl.resolve(value).then(function (unwrapped) { - result.value = unwrapped, resolve(result); - }, function (error) { - return invoke("throw", error, resolve, reject); - }); - } - reject(record.arg); - } - var previousPromise; - defineProperty(this, "_invoke", { - value: function value(method, arg) { - function callInvokeWithMethodAndArg() { - return new PromiseImpl(function (resolve, reject) { - invoke(method, arg, resolve, reject); - }); - } - return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); - } - }); - } - function makeInvokeMethod(innerFn, self, context) { - var state = "suspendedStart"; - return function (method, arg) { - if ("executing" === state) throw new Error("Generator is already running"); - if ("completed" === state) { - if ("throw" === method) throw arg; - return { - value: void 0, - done: !0 - }; - } - for (context.method = method, context.arg = arg;;) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } - if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { - if ("suspendedStart" === state) throw state = "completed", context.arg; - context.dispatchException(context.arg); - } else "return" === context.method && context.abrupt("return", context.arg); - state = "executing"; - var record = tryCatch(innerFn, self, context); - if ("normal" === record.type) { - if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; - return { - value: record.arg, - done: context.done - }; - } - "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); - } - }; - } - function maybeInvokeDelegate(delegate, context) { - var methodName = context.method, - method = delegate.iterator[methodName]; - if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; - var record = tryCatch(method, delegate.iterator, context.arg); - if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; - var info = record.arg; - return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); - } - function pushTryEntry(locs) { - var entry = { - tryLoc: locs[0] - }; - 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); - } - function resetTryEntry(entry) { - var record = entry.completion || {}; - record.type = "normal", delete record.arg, entry.completion = record; - } - function Context(tryLocsList) { - this.tryEntries = [{ - tryLoc: "root" - }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); - } - function values(iterable) { - if (iterable || "" === iterable) { - var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) return iteratorMethod.call(iterable); - if ("function" == typeof iterable.next) return iterable; - if (!isNaN(iterable.length)) { - var i = -1, - next = function next() { - for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; - return next.value = undefined, next.done = !0, next; - }; - return next.next = next; - } - } - throw new TypeError(_typeof(iterable) + " is not iterable"); - } - return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { - value: GeneratorFunctionPrototype, - configurable: !0 - }), defineProperty(GeneratorFunctionPrototype, "constructor", { - value: GeneratorFunction, - configurable: !0 - }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { - var ctor = "function" == typeof genFun && genFun.constructor; - return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); - }, exports.mark = function (genFun) { - return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; - }, exports.awrap = function (arg) { - return { - __await: arg - }; - }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { - return this; - }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { - void 0 === PromiseImpl && (PromiseImpl = Promise); - var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); - return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { - return result.done ? result.value : iter.next(); - }); - }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { - return this; - }), define(Gp, "toString", function () { - return "[object Generator]"; - }), exports.keys = function (val) { - var object = Object(val), - keys = []; - for (var key in object) keys.push(key); - return keys.reverse(), function next() { - for (; keys.length;) { - var key = keys.pop(); - if (key in object) return next.value = key, next.done = !1, next; - } - return next.done = !0, next; - }; - }, exports.values = values, Context.prototype = { - constructor: Context, - reset: function reset(skipTempReset) { - if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); - }, - stop: function stop() { - this.done = !0; - var rootRecord = this.tryEntries[0].completion; - if ("throw" === rootRecord.type) throw rootRecord.arg; - return this.rval; - }, - dispatchException: function dispatchException(exception) { - if (this.done) throw exception; - var context = this; - function handle(loc, caught) { - return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; - } - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i], - record = entry.completion; - if ("root" === entry.tryLoc) return handle("end"); - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, "catchLoc"), - hasFinally = hasOwn.call(entry, "finallyLoc"); - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); - if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); - } else if (hasCatch) { - if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); - } else { - if (!hasFinally) throw new Error("try statement without catch or finally"); - if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); - } - } - } - }, - abrupt: function abrupt(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { - var finallyEntry = entry; - break; - } - } - finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); - var record = finallyEntry ? finallyEntry.completion : {}; - return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); - }, - complete: function complete(record, afterLoc) { - if ("throw" === record.type) throw record.arg; - return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; - }, - finish: function finish(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; - } - }, - "catch": function _catch(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - if ("throw" === record.type) { - var thrown = record.arg; - resetTryEntry(entry); - } - return thrown; - } - } - throw new Error("illegal catch attempt"); - }, - delegateYield: function delegateYield(iterable, resultName, nextLoc) { - return this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }, "next" === this.method && (this.arg = undefined), ContinueSentinel; - } - }, exports; -} -module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/set.js b/WechatBot/node_modules/@babel/runtime/helpers/set.js deleted file mode 100755 index e1356241b..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/set.js +++ /dev/null @@ -1,41 +0,0 @@ -var superPropBase = require("./superPropBase.js"); -var defineProperty = require("./defineProperty.js"); -function set(target, property, value, receiver) { - if (typeof Reflect !== "undefined" && Reflect.set) { - set = Reflect.set; - } else { - set = function set(target, property, value, receiver) { - var base = superPropBase(target, property); - var desc; - if (base) { - desc = Object.getOwnPropertyDescriptor(base, property); - if (desc.set) { - desc.set.call(receiver, value); - return true; - } else if (!desc.writable) { - return false; - } - } - desc = Object.getOwnPropertyDescriptor(receiver, property); - if (desc) { - if (!desc.writable) { - return false; - } - desc.value = value; - Object.defineProperty(receiver, property, desc); - } else { - defineProperty(receiver, property, value); - } - return true; - }; - } - return set(target, property, value, receiver); -} -function _set(target, property, value, receiver, isStrict) { - var s = set(target, property, value, receiver || target); - if (!s && isStrict) { - throw new TypeError('failed to set property'); - } - return value; -} -module.exports = _set, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/setPrototypeOf.js b/WechatBot/node_modules/@babel/runtime/helpers/setPrototypeOf.js deleted file mode 100755 index e0d8b5183..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/setPrototypeOf.js +++ /dev/null @@ -1,8 +0,0 @@ -function _setPrototypeOf(o, p) { - module.exports = _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { - o.__proto__ = p; - return o; - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - return _setPrototypeOf(o, p); -} -module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js b/WechatBot/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js deleted file mode 100755 index ca269aad3..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +++ /dev/null @@ -1,8 +0,0 @@ -function _skipFirstGeneratorNext(fn) { - return function () { - var it = fn.apply(this, arguments); - it.next(); - return it; - }; -} -module.exports = _skipFirstGeneratorNext, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/slicedToArray.js b/WechatBot/node_modules/@babel/runtime/helpers/slicedToArray.js deleted file mode 100755 index 534b61aac..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/slicedToArray.js +++ /dev/null @@ -1,8 +0,0 @@ -var arrayWithHoles = require("./arrayWithHoles.js"); -var iterableToArrayLimit = require("./iterableToArrayLimit.js"); -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -var nonIterableRest = require("./nonIterableRest.js"); -function _slicedToArray(arr, i) { - return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); -} -module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js deleted file mode 100755 index b1989b489..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js +++ /dev/null @@ -1,8 +0,0 @@ -var arrayWithHoles = require("./arrayWithHoles.js"); -var iterableToArrayLimitLoose = require("./iterableToArrayLimitLoose.js"); -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -var nonIterableRest = require("./nonIterableRest.js"); -function _slicedToArrayLoose(arr, i) { - return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); -} -module.exports = _slicedToArrayLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/superPropBase.js b/WechatBot/node_modules/@babel/runtime/helpers/superPropBase.js deleted file mode 100755 index e43a02938..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/superPropBase.js +++ /dev/null @@ -1,9 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf.js"); -function _superPropBase(object, property) { - while (!Object.prototype.hasOwnProperty.call(object, property)) { - object = getPrototypeOf(object); - if (object === null) break; - } - return object; -} -module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js b/WechatBot/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js deleted file mode 100755 index 1ab0e7a21..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +++ /dev/null @@ -1,11 +0,0 @@ -function _taggedTemplateLiteral(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - return Object.freeze(Object.defineProperties(strings, { - raw: { - value: Object.freeze(raw) - } - })); -} -module.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js b/WechatBot/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js deleted file mode 100755 index 904e1a7d0..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +++ /dev/null @@ -1,8 +0,0 @@ -function _taggedTemplateLiteralLoose(strings, raw) { - if (!raw) { - raw = strings.slice(0); - } - strings.raw = raw; - return strings; -} -module.exports = _taggedTemplateLiteralLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/tdz.js b/WechatBot/node_modules/@babel/runtime/helpers/tdz.js deleted file mode 100755 index 0641c76da..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/tdz.js +++ /dev/null @@ -1,4 +0,0 @@ -function _tdzError(name) { - throw new ReferenceError(name + " is not defined - temporal dead zone"); -} -module.exports = _tdzError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/temporalRef.js b/WechatBot/node_modules/@babel/runtime/helpers/temporalRef.js deleted file mode 100755 index a9be53d28..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/temporalRef.js +++ /dev/null @@ -1,6 +0,0 @@ -var temporalUndefined = require("./temporalUndefined.js"); -var tdz = require("./tdz.js"); -function _temporalRef(val, name) { - return val === temporalUndefined ? tdz(name) : val; -} -module.exports = _temporalRef, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/temporalUndefined.js b/WechatBot/node_modules/@babel/runtime/helpers/temporalUndefined.js deleted file mode 100755 index f8def8002..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/temporalUndefined.js +++ /dev/null @@ -1,2 +0,0 @@ -function _temporalUndefined() {} -module.exports = _temporalUndefined, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/toArray.js b/WechatBot/node_modules/@babel/runtime/helpers/toArray.js deleted file mode 100755 index 5c808c2e8..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/toArray.js +++ /dev/null @@ -1,8 +0,0 @@ -var arrayWithHoles = require("./arrayWithHoles.js"); -var iterableToArray = require("./iterableToArray.js"); -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -var nonIterableRest = require("./nonIterableRest.js"); -function _toArray(arr) { - return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); -} -module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/toConsumableArray.js b/WechatBot/node_modules/@babel/runtime/helpers/toConsumableArray.js deleted file mode 100755 index 547c6c444..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/toConsumableArray.js +++ /dev/null @@ -1,8 +0,0 @@ -var arrayWithoutHoles = require("./arrayWithoutHoles.js"); -var iterableToArray = require("./iterableToArray.js"); -var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); -var nonIterableSpread = require("./nonIterableSpread.js"); -function _toConsumableArray(arr) { - return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); -} -module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/toPrimitive.js b/WechatBot/node_modules/@babel/runtime/helpers/toPrimitive.js deleted file mode 100755 index adf63bb5f..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/toPrimitive.js +++ /dev/null @@ -1,12 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function _toPrimitive(input, hint) { - if (_typeof(input) !== "object" || input === null) return input; - var prim = input[Symbol.toPrimitive]; - if (prim !== undefined) { - var res = prim.call(input, hint || "default"); - if (_typeof(res) !== "object") return res; - throw new TypeError("@@toPrimitive must return a primitive value."); - } - return (hint === "string" ? String : Number)(input); -} -module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/toPropertyKey.js b/WechatBot/node_modules/@babel/runtime/helpers/toPropertyKey.js deleted file mode 100755 index 320bb2b9d..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/toPropertyKey.js +++ /dev/null @@ -1,7 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var toPrimitive = require("./toPrimitive.js"); -function _toPropertyKey(arg) { - var key = toPrimitive(arg, "string"); - return _typeof(key) === "symbol" ? key : String(key); -} -module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/typeof.js b/WechatBot/node_modules/@babel/runtime/helpers/typeof.js deleted file mode 100755 index aa88477c9..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/typeof.js +++ /dev/null @@ -1,10 +0,0 @@ -function _typeof(obj) { - "@babel/helpers - typeof"; - - return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { - return typeof obj; - } : function (obj) { - return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; - }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); -} -module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js b/WechatBot/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js deleted file mode 100755 index b7d18c6a2..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +++ /dev/null @@ -1,10 +0,0 @@ -var arrayLikeToArray = require("./arrayLikeToArray.js"); -function _unsupportedIterableToArray(o, minLen) { - if (!o) return; - if (typeof o === "string") return arrayLikeToArray(o, minLen); - var n = Object.prototype.toString.call(o).slice(8, -1); - if (n === "Object" && o.constructor) n = o.constructor.name; - if (n === "Map" || n === "Set") return Array.from(o); - if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); -} -module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/using.js b/WechatBot/node_modules/@babel/runtime/helpers/using.js deleted file mode 100755 index e3ec4f1ae..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/using.js +++ /dev/null @@ -1,13 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -function _using(stack, value, isAwait) { - if (null == value) return value; - if ("object" != _typeof(value)) throw new TypeError("using declarations can only be used with objects, null, or undefined."); - if (isAwait) var dispose = value[Symbol.asyncDispose || Symbol["for"]("Symbol.asyncDispose")]; - if (null == dispose && (dispose = value[Symbol.dispose || Symbol["for"]("Symbol.dispose")]), "function" != typeof dispose) throw new TypeError("Property [Symbol.dispose] is not a function."); - return stack.push({ - v: value, - d: dispose, - a: isAwait - }), value; -} -module.exports = _using, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js b/WechatBot/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js deleted file mode 100755 index a62dcf028..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +++ /dev/null @@ -1,7 +0,0 @@ -var AsyncGenerator = require("./AsyncGenerator.js"); -function _wrapAsyncGenerator(fn) { - return function () { - return new AsyncGenerator(fn.apply(this, arguments)); - }; -} -module.exports = _wrapAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/wrapNativeSuper.js b/WechatBot/node_modules/@babel/runtime/helpers/wrapNativeSuper.js deleted file mode 100755 index b6ea60c64..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +++ /dev/null @@ -1,31 +0,0 @@ -var getPrototypeOf = require("./getPrototypeOf.js"); -var setPrototypeOf = require("./setPrototypeOf.js"); -var isNativeFunction = require("./isNativeFunction.js"); -var construct = require("./construct.js"); -function _wrapNativeSuper(Class) { - var _cache = typeof Map === "function" ? new Map() : undefined; - module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { - if (Class === null || !isNativeFunction(Class)) return Class; - if (typeof Class !== "function") { - throw new TypeError("Super expression must either be null or a function"); - } - if (typeof _cache !== "undefined") { - if (_cache.has(Class)) return _cache.get(Class); - _cache.set(Class, Wrapper); - } - function Wrapper() { - return construct(Class, arguments, getPrototypeOf(this).constructor); - } - Wrapper.prototype = Object.create(Class.prototype, { - constructor: { - value: Wrapper, - enumerable: false, - writable: true, - configurable: true - } - }); - return setPrototypeOf(Wrapper, Class); - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - return _wrapNativeSuper(Class); -} -module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/wrapRegExp.js b/WechatBot/node_modules/@babel/runtime/helpers/wrapRegExp.js deleted file mode 100755 index da710f835..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/wrapRegExp.js +++ /dev/null @@ -1,51 +0,0 @@ -var _typeof = require("./typeof.js")["default"]; -var setPrototypeOf = require("./setPrototypeOf.js"); -var inherits = require("./inherits.js"); -function _wrapRegExp() { - module.exports = _wrapRegExp = function _wrapRegExp(re, groups) { - return new BabelRegExp(re, void 0, groups); - }, module.exports.__esModule = true, module.exports["default"] = module.exports; - var _super = RegExp.prototype, - _groups = new WeakMap(); - function BabelRegExp(re, flags, groups) { - var _this = new RegExp(re, flags); - return _groups.set(_this, groups || _groups.get(re)), setPrototypeOf(_this, BabelRegExp.prototype); - } - function buildGroups(result, re) { - var g = _groups.get(re); - return Object.keys(g).reduce(function (groups, name) { - var i = g[name]; - if ("number" == typeof i) groups[name] = result[i];else { - for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++; - groups[name] = result[i[k]]; - } - return groups; - }, Object.create(null)); - } - return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { - var result = _super.exec.call(this, str); - if (result) { - result.groups = buildGroups(result, this); - var indices = result.indices; - indices && (indices.groups = buildGroups(indices, this)); - } - return result; - }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { - if ("string" == typeof substitution) { - var groups = _groups.get(this); - return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { - var group = groups[name]; - return "$" + (Array.isArray(group) ? group.join("$") : group); - })); - } - if ("function" == typeof substitution) { - var _this = this; - return _super[Symbol.replace].call(this, str, function () { - var args = arguments; - return "object" != _typeof(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); - }); - } - return _super[Symbol.replace].call(this, str, substitution); - }, _wrapRegExp.apply(this, arguments); -} -module.exports = _wrapRegExp, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/helpers/writeOnlyError.js b/WechatBot/node_modules/@babel/runtime/helpers/writeOnlyError.js deleted file mode 100755 index c66c6f29d..000000000 --- a/WechatBot/node_modules/@babel/runtime/helpers/writeOnlyError.js +++ /dev/null @@ -1,4 +0,0 @@ -function _writeOnlyError(name) { - throw new TypeError("\"" + name + "\" is write-only"); -} -module.exports = _writeOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/LICENSE b/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/LICENSE deleted file mode 100644 index cde61b6c5..000000000 --- a/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2014-present, Facebook, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/README.md b/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/README.md deleted file mode 100644 index e8702babf..000000000 --- a/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# regenerator-runtime - -Standalone runtime for -[Regenerator](https://github.com/facebook/regenerator)-compiled generator -and `async` functions. - -To import the runtime as a module (recommended), either of the following -import styles will work: -```js -// CommonJS -const regeneratorRuntime = require("regenerator-runtime"); - -// ECMAScript 2015 -import regeneratorRuntime from "regenerator-runtime"; -``` - -To ensure that `regeneratorRuntime` is defined globally, either of the -following styles will work: -```js -// CommonJS -require("regenerator-runtime/runtime"); - -// ECMAScript 2015 -import "regenerator-runtime/runtime.js"; -``` - -To get the absolute file system path of `runtime.js`, evaluate the -following expression: -```js -require("regenerator-runtime/path").path -``` diff --git a/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/package.json b/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/package.json deleted file mode 100644 index 7010b0c59..000000000 --- a/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "regenerator-runtime", - "author": "Ben Newman ", - "description": "Runtime for Regenerator-compiled generator and async functions.", - "version": "0.14.0", - "main": "runtime.js", - "keywords": [ - "regenerator", - "runtime", - "generator", - "async" - ], - "sideEffects": true, - "repository": { - "type": "git", - "url": "https://github.com/facebook/regenerator/tree/main/packages/runtime" - }, - "license": "MIT" -} diff --git a/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/path.js b/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/path.js deleted file mode 100755 index ced878b88..000000000 --- a/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/path.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Copyright (c) 2014-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -exports.path = require("path").join( - __dirname, - "runtime.js" -); diff --git a/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js b/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js deleted file mode 100755 index efaa79b01..000000000 --- a/WechatBot/node_modules/@babel/runtime/node_modules/regenerator-runtime/runtime.js +++ /dev/null @@ -1,760 +0,0 @@ -/** - * Copyright (c) 2014-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -var runtime = (function (exports) { - "use strict"; - - var Op = Object.prototype; - var hasOwn = Op.hasOwnProperty; - var defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }; - var undefined; // More compressible than void 0. - var $Symbol = typeof Symbol === "function" ? Symbol : {}; - var iteratorSymbol = $Symbol.iterator || "@@iterator"; - var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; - var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; - - function define(obj, key, value) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - return obj[key]; - } - try { - // IE 8 has a broken Object.defineProperty that only works on DOM objects. - define({}, ""); - } catch (err) { - define = function(obj, key, value) { - return obj[key] = value; - }; - } - - function wrap(innerFn, outerFn, self, tryLocsList) { - // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. - var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; - var generator = Object.create(protoGenerator.prototype); - var context = new Context(tryLocsList || []); - - // The ._invoke method unifies the implementations of the .next, - // .throw, and .return methods. - defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }); - - return generator; - } - exports.wrap = wrap; - - // Try/catch helper to minimize deoptimizations. Returns a completion - // record like context.tryEntries[i].completion. This interface could - // have been (and was previously) designed to take a closure to be - // invoked without arguments, but in all the cases we care about we - // already have an existing method we want to call, so there's no need - // to create a new function object. We can even get away with assuming - // the method takes exactly one argument, since that happens to be true - // in every case, so we don't have to touch the arguments object. The - // only additional allocation required is the completion record, which - // has a stable shape and so hopefully should be cheap to allocate. - function tryCatch(fn, obj, arg) { - try { - return { type: "normal", arg: fn.call(obj, arg) }; - } catch (err) { - return { type: "throw", arg: err }; - } - } - - var GenStateSuspendedStart = "suspendedStart"; - var GenStateSuspendedYield = "suspendedYield"; - var GenStateExecuting = "executing"; - var GenStateCompleted = "completed"; - - // Returning this object from the innerFn has the same effect as - // breaking out of the dispatch switch statement. - var ContinueSentinel = {}; - - // Dummy constructor functions that we use as the .constructor and - // .constructor.prototype properties for functions that return Generator - // objects. For full spec compliance, you may wish to configure your - // minifier not to mangle the names of these two functions. - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - - // This is a polyfill for %IteratorPrototype% for environments that - // don't natively support it. - var IteratorPrototype = {}; - define(IteratorPrototype, iteratorSymbol, function () { - return this; - }); - - var getProto = Object.getPrototypeOf; - var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - if (NativeIteratorPrototype && - NativeIteratorPrototype !== Op && - hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { - // This environment has a native %IteratorPrototype%; use it instead - // of the polyfill. - IteratorPrototype = NativeIteratorPrototype; - } - - var Gp = GeneratorFunctionPrototype.prototype = - Generator.prototype = Object.create(IteratorPrototype); - GeneratorFunction.prototype = GeneratorFunctionPrototype; - defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: true }); - defineProperty( - GeneratorFunctionPrototype, - "constructor", - { value: GeneratorFunction, configurable: true } - ); - GeneratorFunction.displayName = define( - GeneratorFunctionPrototype, - toStringTagSymbol, - "GeneratorFunction" - ); - - // Helper for defining the .next, .throw, and .return methods of the - // Iterator interface in terms of a single ._invoke method. - function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function(method) { - define(prototype, method, function(arg) { - return this._invoke(method, arg); - }); - }); - } - - exports.isGeneratorFunction = function(genFun) { - var ctor = typeof genFun === "function" && genFun.constructor; - return ctor - ? ctor === GeneratorFunction || - // For the native GeneratorFunction constructor, the best we can - // do is to check its .name property. - (ctor.displayName || ctor.name) === "GeneratorFunction" - : false; - }; - - exports.mark = function(genFun) { - if (Object.setPrototypeOf) { - Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); - } else { - genFun.__proto__ = GeneratorFunctionPrototype; - define(genFun, toStringTagSymbol, "GeneratorFunction"); - } - genFun.prototype = Object.create(Gp); - return genFun; - }; - - // Within the body of any async function, `await x` is transformed to - // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test - // `hasOwn.call(value, "__await")` to determine if the yielded value is - // meant to be awaited. - exports.awrap = function(arg) { - return { __await: arg }; - }; - - function AsyncIterator(generator, PromiseImpl) { - function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - if (record.type === "throw") { - reject(record.arg); - } else { - var result = record.arg; - var value = result.value; - if (value && - typeof value === "object" && - hasOwn.call(value, "__await")) { - return PromiseImpl.resolve(value.__await).then(function(value) { - invoke("next", value, resolve, reject); - }, function(err) { - invoke("throw", err, resolve, reject); - }); - } - - return PromiseImpl.resolve(value).then(function(unwrapped) { - // When a yielded Promise is resolved, its final value becomes - // the .value of the Promise<{value,done}> result for the - // current iteration. - result.value = unwrapped; - resolve(result); - }, function(error) { - // If a rejected Promise was yielded, throw the rejection back - // into the async generator function so it can be handled there. - return invoke("throw", error, resolve, reject); - }); - } - } - - var previousPromise; - - function enqueue(method, arg) { - function callInvokeWithMethodAndArg() { - return new PromiseImpl(function(resolve, reject) { - invoke(method, arg, resolve, reject); - }); - } - - return previousPromise = - // If enqueue has been called before, then we want to wait until - // all previous Promises have been resolved before calling invoke, - // so that results are always delivered in the correct order. If - // enqueue has not been called before, then it is important to - // call invoke immediately, without waiting on a callback to fire, - // so that the async generator function has the opportunity to do - // any necessary setup in a predictable way. This predictability - // is why the Promise constructor synchronously invokes its - // executor callback, and why async functions synchronously - // execute code before the first await. Since we implement simple - // async functions in terms of async generators, it is especially - // important to get this right, even though it requires care. - previousPromise ? previousPromise.then( - callInvokeWithMethodAndArg, - // Avoid propagating failures to Promises returned by later - // invocations of the iterator. - callInvokeWithMethodAndArg - ) : callInvokeWithMethodAndArg(); - } - - // Define the unified helper method that is used to implement .next, - // .throw, and .return (see defineIteratorMethods). - defineProperty(this, "_invoke", { value: enqueue }); - } - - defineIteratorMethods(AsyncIterator.prototype); - define(AsyncIterator.prototype, asyncIteratorSymbol, function () { - return this; - }); - exports.AsyncIterator = AsyncIterator; - - // Note that simple async functions are implemented on top of - // AsyncIterator objects; they just return a Promise for the value of - // the final result produced by the iterator. - exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) { - if (PromiseImpl === void 0) PromiseImpl = Promise; - - var iter = new AsyncIterator( - wrap(innerFn, outerFn, self, tryLocsList), - PromiseImpl - ); - - return exports.isGeneratorFunction(outerFn) - ? iter // If outerFn is a generator, return the full iterator. - : iter.next().then(function(result) { - return result.done ? result.value : iter.next(); - }); - }; - - function makeInvokeMethod(innerFn, self, context) { - var state = GenStateSuspendedStart; - - return function invoke(method, arg) { - if (state === GenStateExecuting) { - throw new Error("Generator is already running"); - } - - if (state === GenStateCompleted) { - if (method === "throw") { - throw arg; - } - - // Be forgiving, per 25.3.3.3.3 of the spec: - // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume - return doneResult(); - } - - context.method = method; - context.arg = arg; - - while (true) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } - - if (context.method === "next") { - // Setting context._sent for legacy support of Babel's - // function.sent implementation. - context.sent = context._sent = context.arg; - - } else if (context.method === "throw") { - if (state === GenStateSuspendedStart) { - state = GenStateCompleted; - throw context.arg; - } - - context.dispatchException(context.arg); - - } else if (context.method === "return") { - context.abrupt("return", context.arg); - } - - state = GenStateExecuting; - - var record = tryCatch(innerFn, self, context); - if (record.type === "normal") { - // If an exception is thrown from innerFn, we leave state === - // GenStateExecuting and loop back for another invocation. - state = context.done - ? GenStateCompleted - : GenStateSuspendedYield; - - if (record.arg === ContinueSentinel) { - continue; - } - - return { - value: record.arg, - done: context.done - }; - - } else if (record.type === "throw") { - state = GenStateCompleted; - // Dispatch the exception by looping back around to the - // context.dispatchException(context.arg) call above. - context.method = "throw"; - context.arg = record.arg; - } - } - }; - } - - // Call delegate.iterator[context.method](context.arg) and handle the - // result, either by returning a { value, done } result from the - // delegate iterator, or by modifying context.method and context.arg, - // setting context.delegate to null, and returning the ContinueSentinel. - function maybeInvokeDelegate(delegate, context) { - var methodName = context.method; - var method = delegate.iterator[methodName]; - if (method === undefined) { - // A .throw or .return when the delegate iterator has no .throw - // method, or a missing .next mehtod, always terminate the - // yield* loop. - context.delegate = null; - - // Note: ["return"] must be used for ES3 parsing compatibility. - if (methodName === "throw" && delegate.iterator["return"]) { - // If the delegate iterator has a return method, give it a - // chance to clean up. - context.method = "return"; - context.arg = undefined; - maybeInvokeDelegate(delegate, context); - - if (context.method === "throw") { - // If maybeInvokeDelegate(context) changed context.method from - // "return" to "throw", let that override the TypeError below. - return ContinueSentinel; - } - } - if (methodName !== "return") { - context.method = "throw"; - context.arg = new TypeError( - "The iterator does not provide a '" + methodName + "' method"); - } - - return ContinueSentinel; - } - - var record = tryCatch(method, delegate.iterator, context.arg); - - if (record.type === "throw") { - context.method = "throw"; - context.arg = record.arg; - context.delegate = null; - return ContinueSentinel; - } - - var info = record.arg; - - if (! info) { - context.method = "throw"; - context.arg = new TypeError("iterator result is not an object"); - context.delegate = null; - return ContinueSentinel; - } - - if (info.done) { - // Assign the result of the finished delegate to the temporary - // variable specified by delegate.resultName (see delegateYield). - context[delegate.resultName] = info.value; - - // Resume execution at the desired location (see delegateYield). - context.next = delegate.nextLoc; - - // If context.method was "throw" but the delegate handled the - // exception, let the outer generator proceed normally. If - // context.method was "next", forget context.arg since it has been - // "consumed" by the delegate iterator. If context.method was - // "return", allow the original .return call to continue in the - // outer generator. - if (context.method !== "return") { - context.method = "next"; - context.arg = undefined; - } - - } else { - // Re-yield the result returned by the delegate method. - return info; - } - - // The delegate iterator is finished, so forget it and continue with - // the outer generator. - context.delegate = null; - return ContinueSentinel; - } - - // Define Generator.prototype.{next,throw,return} in terms of the - // unified ._invoke helper method. - defineIteratorMethods(Gp); - - define(Gp, toStringTagSymbol, "Generator"); - - // A Generator should always return itself as the iterator object when the - // @@iterator function is called on it. Some browsers' implementations of the - // iterator prototype chain incorrectly implement this, causing the Generator - // object to not be returned from this call. This ensures that doesn't happen. - // See https://github.com/facebook/regenerator/issues/274 for more details. - define(Gp, iteratorSymbol, function() { - return this; - }); - - define(Gp, "toString", function() { - return "[object Generator]"; - }); - - function pushTryEntry(locs) { - var entry = { tryLoc: locs[0] }; - - if (1 in locs) { - entry.catchLoc = locs[1]; - } - - if (2 in locs) { - entry.finallyLoc = locs[2]; - entry.afterLoc = locs[3]; - } - - this.tryEntries.push(entry); - } - - function resetTryEntry(entry) { - var record = entry.completion || {}; - record.type = "normal"; - delete record.arg; - entry.completion = record; - } - - function Context(tryLocsList) { - // The root entry object (effectively a try statement without a catch - // or a finally block) gives us a place to store values thrown from - // locations where there is no enclosing try statement. - this.tryEntries = [{ tryLoc: "root" }]; - tryLocsList.forEach(pushTryEntry, this); - this.reset(true); - } - - exports.keys = function(val) { - var object = Object(val); - var keys = []; - for (var key in object) { - keys.push(key); - } - keys.reverse(); - - // Rather than returning an object with a next method, we keep - // things simple and return the next function itself. - return function next() { - while (keys.length) { - var key = keys.pop(); - if (key in object) { - next.value = key; - next.done = false; - return next; - } - } - - // To avoid creating an additional object, we just hang the .value - // and .done properties off the next function object itself. This - // also ensures that the minifier will not anonymize the function. - next.done = true; - return next; - }; - }; - - function values(iterable) { - if (iterable || iterable === "") { - var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) { - return iteratorMethod.call(iterable); - } - - if (typeof iterable.next === "function") { - return iterable; - } - - if (!isNaN(iterable.length)) { - var i = -1, next = function next() { - while (++i < iterable.length) { - if (hasOwn.call(iterable, i)) { - next.value = iterable[i]; - next.done = false; - return next; - } - } - - next.value = undefined; - next.done = true; - - return next; - }; - - return next.next = next; - } - } - - throw new TypeError(typeof iterable + " is not iterable"); - } - exports.values = values; - - function doneResult() { - return { value: undefined, done: true }; - } - - Context.prototype = { - constructor: Context, - - reset: function(skipTempReset) { - this.prev = 0; - this.next = 0; - // Resetting context._sent for legacy support of Babel's - // function.sent implementation. - this.sent = this._sent = undefined; - this.done = false; - this.delegate = null; - - this.method = "next"; - this.arg = undefined; - - this.tryEntries.forEach(resetTryEntry); - - if (!skipTempReset) { - for (var name in this) { - // Not sure about the optimal order of these conditions: - if (name.charAt(0) === "t" && - hasOwn.call(this, name) && - !isNaN(+name.slice(1))) { - this[name] = undefined; - } - } - } - }, - - stop: function() { - this.done = true; - - var rootEntry = this.tryEntries[0]; - var rootRecord = rootEntry.completion; - if (rootRecord.type === "throw") { - throw rootRecord.arg; - } - - return this.rval; - }, - - dispatchException: function(exception) { - if (this.done) { - throw exception; - } - - var context = this; - function handle(loc, caught) { - record.type = "throw"; - record.arg = exception; - context.next = loc; - - if (caught) { - // If the dispatched exception was caught by a catch block, - // then let that catch block handle the exception normally. - context.method = "next"; - context.arg = undefined; - } - - return !! caught; - } - - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - var record = entry.completion; - - if (entry.tryLoc === "root") { - // Exception thrown outside of any try block that could handle - // it, so set the completion value of the entire function to - // throw the exception. - return handle("end"); - } - - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, "catchLoc"); - var hasFinally = hasOwn.call(entry, "finallyLoc"); - - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } else if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - - } else if (hasCatch) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } - - } else if (hasFinally) { - if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - - } else { - throw new Error("try statement without catch or finally"); - } - } - } - }, - - abrupt: function(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && - hasOwn.call(entry, "finallyLoc") && - this.prev < entry.finallyLoc) { - var finallyEntry = entry; - break; - } - } - - if (finallyEntry && - (type === "break" || - type === "continue") && - finallyEntry.tryLoc <= arg && - arg <= finallyEntry.finallyLoc) { - // Ignore the finally entry if control is not jumping to a - // location outside the try/catch block. - finallyEntry = null; - } - - var record = finallyEntry ? finallyEntry.completion : {}; - record.type = type; - record.arg = arg; - - if (finallyEntry) { - this.method = "next"; - this.next = finallyEntry.finallyLoc; - return ContinueSentinel; - } - - return this.complete(record); - }, - - complete: function(record, afterLoc) { - if (record.type === "throw") { - throw record.arg; - } - - if (record.type === "break" || - record.type === "continue") { - this.next = record.arg; - } else if (record.type === "return") { - this.rval = this.arg = record.arg; - this.method = "return"; - this.next = "end"; - } else if (record.type === "normal" && afterLoc) { - this.next = afterLoc; - } - - return ContinueSentinel; - }, - - finish: function(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) { - this.complete(entry.completion, entry.afterLoc); - resetTryEntry(entry); - return ContinueSentinel; - } - } - }, - - "catch": function(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - if (record.type === "throw") { - var thrown = record.arg; - resetTryEntry(entry); - } - return thrown; - } - } - - // The context.catch method must only be called with a location - // argument that corresponds to a known catch block. - throw new Error("illegal catch attempt"); - }, - - delegateYield: function(iterable, resultName, nextLoc) { - this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }; - - if (this.method === "next") { - // Deliberately forget the last sent value so that we don't - // accidentally pass it on to the delegate. - this.arg = undefined; - } - - return ContinueSentinel; - } - }; - - // Regardless of whether this script is executing as a CommonJS module - // or not, return the runtime object so that we can declare the variable - // regeneratorRuntime in the outer scope, which allows this module to be - // injected easily by `bin/regenerator --include-runtime script.js`. - return exports; - -}( - // If this script is executing as a CommonJS module, use module.exports - // as the regeneratorRuntime namespace. Otherwise create a new empty - // object. Either way, the resulting object will be used to initialize - // the regeneratorRuntime variable at the top of this file. - typeof module === "object" ? module.exports : {} -)); - -try { - regeneratorRuntime = runtime; -} catch (accidentalStrictMode) { - // This module should not be running in strict mode, so the above - // assignment should always work unless something is misconfigured. Just - // in case runtime.js accidentally runs in strict mode, in modern engines - // we can explicitly access globalThis. In older engines we can escape - // strict mode using a global Function call. This could conceivably fail - // if a Content Security Policy forbids using Function, but in that case - // the proper solution is to fix the accidental strict mode problem. If - // you've misconfigured your bundler to force strict mode and applied a - // CSP to forbid Function, and you're not willing to fix either of those - // problems, please detail your unique predicament in a GitHub issue. - if (typeof globalThis === "object") { - globalThis.regeneratorRuntime = runtime; - } else { - Function("r", "regeneratorRuntime = r")(runtime); - } -} diff --git a/WechatBot/node_modules/@babel/runtime/package.json b/WechatBot/node_modules/@babel/runtime/package.json deleted file mode 100644 index 4f9b91e4c..000000000 --- a/WechatBot/node_modules/@babel/runtime/package.json +++ /dev/null @@ -1,957 +0,0 @@ -{ - "name": "@babel/runtime", - "version": "7.22.10", - "description": "babel's modular runtime helpers", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "https://github.com/babel/babel.git", - "directory": "packages/babel-runtime" - }, - "homepage": "https://babel.dev/docs/en/next/babel-runtime", - "author": "The Babel Team (https://babel.dev/team)", - "dependencies": { - "regenerator-runtime": "^0.14.0" - }, - "exports": { - "./helpers/AsyncGenerator": [ - { - "node": "./helpers/AsyncGenerator.js", - "import": "./helpers/esm/AsyncGenerator.js", - "default": "./helpers/AsyncGenerator.js" - }, - "./helpers/AsyncGenerator.js" - ], - "./helpers/esm/AsyncGenerator": "./helpers/esm/AsyncGenerator.js", - "./helpers/OverloadYield": [ - { - "node": "./helpers/OverloadYield.js", - "import": "./helpers/esm/OverloadYield.js", - "default": "./helpers/OverloadYield.js" - }, - "./helpers/OverloadYield.js" - ], - "./helpers/esm/OverloadYield": "./helpers/esm/OverloadYield.js", - "./helpers/applyDecs": [ - { - "node": "./helpers/applyDecs.js", - "import": "./helpers/esm/applyDecs.js", - "default": "./helpers/applyDecs.js" - }, - "./helpers/applyDecs.js" - ], - "./helpers/esm/applyDecs": "./helpers/esm/applyDecs.js", - "./helpers/applyDecs2203": [ - { - "node": "./helpers/applyDecs2203.js", - "import": "./helpers/esm/applyDecs2203.js", - "default": "./helpers/applyDecs2203.js" - }, - "./helpers/applyDecs2203.js" - ], - "./helpers/esm/applyDecs2203": "./helpers/esm/applyDecs2203.js", - "./helpers/applyDecs2203R": [ - { - "node": "./helpers/applyDecs2203R.js", - "import": "./helpers/esm/applyDecs2203R.js", - "default": "./helpers/applyDecs2203R.js" - }, - "./helpers/applyDecs2203R.js" - ], - "./helpers/esm/applyDecs2203R": "./helpers/esm/applyDecs2203R.js", - "./helpers/applyDecs2301": [ - { - "node": "./helpers/applyDecs2301.js", - "import": "./helpers/esm/applyDecs2301.js", - "default": "./helpers/applyDecs2301.js" - }, - "./helpers/applyDecs2301.js" - ], - "./helpers/esm/applyDecs2301": "./helpers/esm/applyDecs2301.js", - "./helpers/applyDecs2305": [ - { - "node": "./helpers/applyDecs2305.js", - "import": "./helpers/esm/applyDecs2305.js", - "default": "./helpers/applyDecs2305.js" - }, - "./helpers/applyDecs2305.js" - ], - "./helpers/esm/applyDecs2305": "./helpers/esm/applyDecs2305.js", - "./helpers/asyncGeneratorDelegate": [ - { - "node": "./helpers/asyncGeneratorDelegate.js", - "import": "./helpers/esm/asyncGeneratorDelegate.js", - "default": "./helpers/asyncGeneratorDelegate.js" - }, - "./helpers/asyncGeneratorDelegate.js" - ], - "./helpers/esm/asyncGeneratorDelegate": "./helpers/esm/asyncGeneratorDelegate.js", - "./helpers/asyncIterator": [ - { - "node": "./helpers/asyncIterator.js", - "import": "./helpers/esm/asyncIterator.js", - "default": "./helpers/asyncIterator.js" - }, - "./helpers/asyncIterator.js" - ], - "./helpers/esm/asyncIterator": "./helpers/esm/asyncIterator.js", - "./helpers/awaitAsyncGenerator": [ - { - "node": "./helpers/awaitAsyncGenerator.js", - "import": "./helpers/esm/awaitAsyncGenerator.js", - "default": "./helpers/awaitAsyncGenerator.js" - }, - "./helpers/awaitAsyncGenerator.js" - ], - "./helpers/esm/awaitAsyncGenerator": "./helpers/esm/awaitAsyncGenerator.js", - "./helpers/checkInRHS": [ - { - "node": "./helpers/checkInRHS.js", - "import": "./helpers/esm/checkInRHS.js", - "default": "./helpers/checkInRHS.js" - }, - "./helpers/checkInRHS.js" - ], - "./helpers/esm/checkInRHS": "./helpers/esm/checkInRHS.js", - "./helpers/defineAccessor": [ - { - "node": "./helpers/defineAccessor.js", - "import": "./helpers/esm/defineAccessor.js", - "default": "./helpers/defineAccessor.js" - }, - "./helpers/defineAccessor.js" - ], - "./helpers/esm/defineAccessor": "./helpers/esm/defineAccessor.js", - "./helpers/dispose": [ - { - "node": "./helpers/dispose.js", - "import": "./helpers/esm/dispose.js", - "default": "./helpers/dispose.js" - }, - "./helpers/dispose.js" - ], - "./helpers/esm/dispose": "./helpers/esm/dispose.js", - "./helpers/iterableToArrayLimit": [ - { - "node": "./helpers/iterableToArrayLimit.js", - "import": "./helpers/esm/iterableToArrayLimit.js", - "default": "./helpers/iterableToArrayLimit.js" - }, - "./helpers/iterableToArrayLimit.js" - ], - "./helpers/esm/iterableToArrayLimit": "./helpers/esm/iterableToArrayLimit.js", - "./helpers/iterableToArrayLimitLoose": [ - { - "node": "./helpers/iterableToArrayLimitLoose.js", - "import": "./helpers/esm/iterableToArrayLimitLoose.js", - "default": "./helpers/iterableToArrayLimitLoose.js" - }, - "./helpers/iterableToArrayLimitLoose.js" - ], - "./helpers/esm/iterableToArrayLimitLoose": "./helpers/esm/iterableToArrayLimitLoose.js", - "./helpers/jsx": [ - { - "node": "./helpers/jsx.js", - "import": "./helpers/esm/jsx.js", - "default": "./helpers/jsx.js" - }, - "./helpers/jsx.js" - ], - "./helpers/esm/jsx": "./helpers/esm/jsx.js", - "./helpers/objectSpread2": [ - { - "node": "./helpers/objectSpread2.js", - "import": "./helpers/esm/objectSpread2.js", - "default": "./helpers/objectSpread2.js" - }, - "./helpers/objectSpread2.js" - ], - "./helpers/esm/objectSpread2": "./helpers/esm/objectSpread2.js", - "./helpers/regeneratorRuntime": [ - { - "node": "./helpers/regeneratorRuntime.js", - "import": "./helpers/esm/regeneratorRuntime.js", - "default": "./helpers/regeneratorRuntime.js" - }, - "./helpers/regeneratorRuntime.js" - ], - "./helpers/esm/regeneratorRuntime": "./helpers/esm/regeneratorRuntime.js", - "./helpers/typeof": [ - { - "node": "./helpers/typeof.js", - "import": "./helpers/esm/typeof.js", - "default": "./helpers/typeof.js" - }, - "./helpers/typeof.js" - ], - "./helpers/esm/typeof": "./helpers/esm/typeof.js", - "./helpers/using": [ - { - "node": "./helpers/using.js", - "import": "./helpers/esm/using.js", - "default": "./helpers/using.js" - }, - "./helpers/using.js" - ], - "./helpers/esm/using": "./helpers/esm/using.js", - "./helpers/wrapRegExp": [ - { - "node": "./helpers/wrapRegExp.js", - "import": "./helpers/esm/wrapRegExp.js", - "default": "./helpers/wrapRegExp.js" - }, - "./helpers/wrapRegExp.js" - ], - "./helpers/esm/wrapRegExp": "./helpers/esm/wrapRegExp.js", - "./helpers/AwaitValue": [ - { - "node": "./helpers/AwaitValue.js", - "import": "./helpers/esm/AwaitValue.js", - "default": "./helpers/AwaitValue.js" - }, - "./helpers/AwaitValue.js" - ], - "./helpers/esm/AwaitValue": "./helpers/esm/AwaitValue.js", - "./helpers/wrapAsyncGenerator": [ - { - "node": "./helpers/wrapAsyncGenerator.js", - "import": "./helpers/esm/wrapAsyncGenerator.js", - "default": "./helpers/wrapAsyncGenerator.js" - }, - "./helpers/wrapAsyncGenerator.js" - ], - "./helpers/esm/wrapAsyncGenerator": "./helpers/esm/wrapAsyncGenerator.js", - "./helpers/asyncToGenerator": [ - { - "node": "./helpers/asyncToGenerator.js", - "import": "./helpers/esm/asyncToGenerator.js", - "default": "./helpers/asyncToGenerator.js" - }, - "./helpers/asyncToGenerator.js" - ], - "./helpers/esm/asyncToGenerator": "./helpers/esm/asyncToGenerator.js", - "./helpers/classCallCheck": [ - { - "node": "./helpers/classCallCheck.js", - "import": "./helpers/esm/classCallCheck.js", - "default": "./helpers/classCallCheck.js" - }, - "./helpers/classCallCheck.js" - ], - "./helpers/esm/classCallCheck": "./helpers/esm/classCallCheck.js", - "./helpers/createClass": [ - { - "node": "./helpers/createClass.js", - "import": "./helpers/esm/createClass.js", - "default": "./helpers/createClass.js" - }, - "./helpers/createClass.js" - ], - "./helpers/esm/createClass": "./helpers/esm/createClass.js", - "./helpers/defineEnumerableProperties": [ - { - "node": "./helpers/defineEnumerableProperties.js", - "import": "./helpers/esm/defineEnumerableProperties.js", - "default": "./helpers/defineEnumerableProperties.js" - }, - "./helpers/defineEnumerableProperties.js" - ], - "./helpers/esm/defineEnumerableProperties": "./helpers/esm/defineEnumerableProperties.js", - "./helpers/defaults": [ - { - "node": "./helpers/defaults.js", - "import": "./helpers/esm/defaults.js", - "default": "./helpers/defaults.js" - }, - "./helpers/defaults.js" - ], - "./helpers/esm/defaults": "./helpers/esm/defaults.js", - "./helpers/defineProperty": [ - { - "node": "./helpers/defineProperty.js", - "import": "./helpers/esm/defineProperty.js", - "default": "./helpers/defineProperty.js" - }, - "./helpers/defineProperty.js" - ], - "./helpers/esm/defineProperty": "./helpers/esm/defineProperty.js", - "./helpers/extends": [ - { - "node": "./helpers/extends.js", - "import": "./helpers/esm/extends.js", - "default": "./helpers/extends.js" - }, - "./helpers/extends.js" - ], - "./helpers/esm/extends": "./helpers/esm/extends.js", - "./helpers/objectSpread": [ - { - "node": "./helpers/objectSpread.js", - "import": "./helpers/esm/objectSpread.js", - "default": "./helpers/objectSpread.js" - }, - "./helpers/objectSpread.js" - ], - "./helpers/esm/objectSpread": "./helpers/esm/objectSpread.js", - "./helpers/inherits": [ - { - "node": "./helpers/inherits.js", - "import": "./helpers/esm/inherits.js", - "default": "./helpers/inherits.js" - }, - "./helpers/inherits.js" - ], - "./helpers/esm/inherits": "./helpers/esm/inherits.js", - "./helpers/inheritsLoose": [ - { - "node": "./helpers/inheritsLoose.js", - "import": "./helpers/esm/inheritsLoose.js", - "default": "./helpers/inheritsLoose.js" - }, - "./helpers/inheritsLoose.js" - ], - "./helpers/esm/inheritsLoose": "./helpers/esm/inheritsLoose.js", - "./helpers/getPrototypeOf": [ - { - "node": "./helpers/getPrototypeOf.js", - "import": "./helpers/esm/getPrototypeOf.js", - "default": "./helpers/getPrototypeOf.js" - }, - "./helpers/getPrototypeOf.js" - ], - "./helpers/esm/getPrototypeOf": "./helpers/esm/getPrototypeOf.js", - "./helpers/setPrototypeOf": [ - { - "node": "./helpers/setPrototypeOf.js", - "import": "./helpers/esm/setPrototypeOf.js", - "default": "./helpers/setPrototypeOf.js" - }, - "./helpers/setPrototypeOf.js" - ], - "./helpers/esm/setPrototypeOf": "./helpers/esm/setPrototypeOf.js", - "./helpers/isNativeReflectConstruct": [ - { - "node": "./helpers/isNativeReflectConstruct.js", - "import": "./helpers/esm/isNativeReflectConstruct.js", - "default": "./helpers/isNativeReflectConstruct.js" - }, - "./helpers/isNativeReflectConstruct.js" - ], - "./helpers/esm/isNativeReflectConstruct": "./helpers/esm/isNativeReflectConstruct.js", - "./helpers/construct": [ - { - "node": "./helpers/construct.js", - "import": "./helpers/esm/construct.js", - "default": "./helpers/construct.js" - }, - "./helpers/construct.js" - ], - "./helpers/esm/construct": "./helpers/esm/construct.js", - "./helpers/isNativeFunction": [ - { - "node": "./helpers/isNativeFunction.js", - "import": "./helpers/esm/isNativeFunction.js", - "default": "./helpers/isNativeFunction.js" - }, - "./helpers/isNativeFunction.js" - ], - "./helpers/esm/isNativeFunction": "./helpers/esm/isNativeFunction.js", - "./helpers/wrapNativeSuper": [ - { - "node": "./helpers/wrapNativeSuper.js", - "import": "./helpers/esm/wrapNativeSuper.js", - "default": "./helpers/wrapNativeSuper.js" - }, - "./helpers/wrapNativeSuper.js" - ], - "./helpers/esm/wrapNativeSuper": "./helpers/esm/wrapNativeSuper.js", - "./helpers/instanceof": [ - { - "node": "./helpers/instanceof.js", - "import": "./helpers/esm/instanceof.js", - "default": "./helpers/instanceof.js" - }, - "./helpers/instanceof.js" - ], - "./helpers/esm/instanceof": "./helpers/esm/instanceof.js", - "./helpers/interopRequireDefault": [ - { - "node": "./helpers/interopRequireDefault.js", - "import": "./helpers/esm/interopRequireDefault.js", - "default": "./helpers/interopRequireDefault.js" - }, - "./helpers/interopRequireDefault.js" - ], - "./helpers/esm/interopRequireDefault": "./helpers/esm/interopRequireDefault.js", - "./helpers/interopRequireWildcard": [ - { - "node": "./helpers/interopRequireWildcard.js", - "import": "./helpers/esm/interopRequireWildcard.js", - "default": "./helpers/interopRequireWildcard.js" - }, - "./helpers/interopRequireWildcard.js" - ], - "./helpers/esm/interopRequireWildcard": "./helpers/esm/interopRequireWildcard.js", - "./helpers/newArrowCheck": [ - { - "node": "./helpers/newArrowCheck.js", - "import": "./helpers/esm/newArrowCheck.js", - "default": "./helpers/newArrowCheck.js" - }, - "./helpers/newArrowCheck.js" - ], - "./helpers/esm/newArrowCheck": "./helpers/esm/newArrowCheck.js", - "./helpers/objectDestructuringEmpty": [ - { - "node": "./helpers/objectDestructuringEmpty.js", - "import": "./helpers/esm/objectDestructuringEmpty.js", - "default": "./helpers/objectDestructuringEmpty.js" - }, - "./helpers/objectDestructuringEmpty.js" - ], - "./helpers/esm/objectDestructuringEmpty": "./helpers/esm/objectDestructuringEmpty.js", - "./helpers/objectWithoutPropertiesLoose": [ - { - "node": "./helpers/objectWithoutPropertiesLoose.js", - "import": "./helpers/esm/objectWithoutPropertiesLoose.js", - "default": "./helpers/objectWithoutPropertiesLoose.js" - }, - "./helpers/objectWithoutPropertiesLoose.js" - ], - "./helpers/esm/objectWithoutPropertiesLoose": "./helpers/esm/objectWithoutPropertiesLoose.js", - "./helpers/objectWithoutProperties": [ - { - "node": "./helpers/objectWithoutProperties.js", - "import": "./helpers/esm/objectWithoutProperties.js", - "default": "./helpers/objectWithoutProperties.js" - }, - "./helpers/objectWithoutProperties.js" - ], - "./helpers/esm/objectWithoutProperties": "./helpers/esm/objectWithoutProperties.js", - "./helpers/assertThisInitialized": [ - { - "node": "./helpers/assertThisInitialized.js", - "import": "./helpers/esm/assertThisInitialized.js", - "default": "./helpers/assertThisInitialized.js" - }, - "./helpers/assertThisInitialized.js" - ], - "./helpers/esm/assertThisInitialized": "./helpers/esm/assertThisInitialized.js", - "./helpers/possibleConstructorReturn": [ - { - "node": "./helpers/possibleConstructorReturn.js", - "import": "./helpers/esm/possibleConstructorReturn.js", - "default": "./helpers/possibleConstructorReturn.js" - }, - "./helpers/possibleConstructorReturn.js" - ], - "./helpers/esm/possibleConstructorReturn": "./helpers/esm/possibleConstructorReturn.js", - "./helpers/createSuper": [ - { - "node": "./helpers/createSuper.js", - "import": "./helpers/esm/createSuper.js", - "default": "./helpers/createSuper.js" - }, - "./helpers/createSuper.js" - ], - "./helpers/esm/createSuper": "./helpers/esm/createSuper.js", - "./helpers/superPropBase": [ - { - "node": "./helpers/superPropBase.js", - "import": "./helpers/esm/superPropBase.js", - "default": "./helpers/superPropBase.js" - }, - "./helpers/superPropBase.js" - ], - "./helpers/esm/superPropBase": "./helpers/esm/superPropBase.js", - "./helpers/get": [ - { - "node": "./helpers/get.js", - "import": "./helpers/esm/get.js", - "default": "./helpers/get.js" - }, - "./helpers/get.js" - ], - "./helpers/esm/get": "./helpers/esm/get.js", - "./helpers/set": [ - { - "node": "./helpers/set.js", - "import": "./helpers/esm/set.js", - "default": "./helpers/set.js" - }, - "./helpers/set.js" - ], - "./helpers/esm/set": "./helpers/esm/set.js", - "./helpers/taggedTemplateLiteral": [ - { - "node": "./helpers/taggedTemplateLiteral.js", - "import": "./helpers/esm/taggedTemplateLiteral.js", - "default": "./helpers/taggedTemplateLiteral.js" - }, - "./helpers/taggedTemplateLiteral.js" - ], - "./helpers/esm/taggedTemplateLiteral": "./helpers/esm/taggedTemplateLiteral.js", - "./helpers/taggedTemplateLiteralLoose": [ - { - "node": "./helpers/taggedTemplateLiteralLoose.js", - "import": "./helpers/esm/taggedTemplateLiteralLoose.js", - "default": "./helpers/taggedTemplateLiteralLoose.js" - }, - "./helpers/taggedTemplateLiteralLoose.js" - ], - "./helpers/esm/taggedTemplateLiteralLoose": "./helpers/esm/taggedTemplateLiteralLoose.js", - "./helpers/readOnlyError": [ - { - "node": "./helpers/readOnlyError.js", - "import": "./helpers/esm/readOnlyError.js", - "default": "./helpers/readOnlyError.js" - }, - "./helpers/readOnlyError.js" - ], - "./helpers/esm/readOnlyError": "./helpers/esm/readOnlyError.js", - "./helpers/writeOnlyError": [ - { - "node": "./helpers/writeOnlyError.js", - "import": "./helpers/esm/writeOnlyError.js", - "default": "./helpers/writeOnlyError.js" - }, - "./helpers/writeOnlyError.js" - ], - "./helpers/esm/writeOnlyError": "./helpers/esm/writeOnlyError.js", - "./helpers/classNameTDZError": [ - { - "node": "./helpers/classNameTDZError.js", - "import": "./helpers/esm/classNameTDZError.js", - "default": "./helpers/classNameTDZError.js" - }, - "./helpers/classNameTDZError.js" - ], - "./helpers/esm/classNameTDZError": "./helpers/esm/classNameTDZError.js", - "./helpers/temporalUndefined": [ - { - "node": "./helpers/temporalUndefined.js", - "import": "./helpers/esm/temporalUndefined.js", - "default": "./helpers/temporalUndefined.js" - }, - "./helpers/temporalUndefined.js" - ], - "./helpers/esm/temporalUndefined": "./helpers/esm/temporalUndefined.js", - "./helpers/tdz": [ - { - "node": "./helpers/tdz.js", - "import": "./helpers/esm/tdz.js", - "default": "./helpers/tdz.js" - }, - "./helpers/tdz.js" - ], - "./helpers/esm/tdz": "./helpers/esm/tdz.js", - "./helpers/temporalRef": [ - { - "node": "./helpers/temporalRef.js", - "import": "./helpers/esm/temporalRef.js", - "default": "./helpers/temporalRef.js" - }, - "./helpers/temporalRef.js" - ], - "./helpers/esm/temporalRef": "./helpers/esm/temporalRef.js", - "./helpers/slicedToArray": [ - { - "node": "./helpers/slicedToArray.js", - "import": "./helpers/esm/slicedToArray.js", - "default": "./helpers/slicedToArray.js" - }, - "./helpers/slicedToArray.js" - ], - "./helpers/esm/slicedToArray": "./helpers/esm/slicedToArray.js", - "./helpers/slicedToArrayLoose": [ - { - "node": "./helpers/slicedToArrayLoose.js", - "import": "./helpers/esm/slicedToArrayLoose.js", - "default": "./helpers/slicedToArrayLoose.js" - }, - "./helpers/slicedToArrayLoose.js" - ], - "./helpers/esm/slicedToArrayLoose": "./helpers/esm/slicedToArrayLoose.js", - "./helpers/toArray": [ - { - "node": "./helpers/toArray.js", - "import": "./helpers/esm/toArray.js", - "default": "./helpers/toArray.js" - }, - "./helpers/toArray.js" - ], - "./helpers/esm/toArray": "./helpers/esm/toArray.js", - "./helpers/toConsumableArray": [ - { - "node": "./helpers/toConsumableArray.js", - "import": "./helpers/esm/toConsumableArray.js", - "default": "./helpers/toConsumableArray.js" - }, - "./helpers/toConsumableArray.js" - ], - "./helpers/esm/toConsumableArray": "./helpers/esm/toConsumableArray.js", - "./helpers/arrayWithoutHoles": [ - { - "node": "./helpers/arrayWithoutHoles.js", - "import": "./helpers/esm/arrayWithoutHoles.js", - "default": "./helpers/arrayWithoutHoles.js" - }, - "./helpers/arrayWithoutHoles.js" - ], - "./helpers/esm/arrayWithoutHoles": "./helpers/esm/arrayWithoutHoles.js", - "./helpers/arrayWithHoles": [ - { - "node": "./helpers/arrayWithHoles.js", - "import": "./helpers/esm/arrayWithHoles.js", - "default": "./helpers/arrayWithHoles.js" - }, - "./helpers/arrayWithHoles.js" - ], - "./helpers/esm/arrayWithHoles": "./helpers/esm/arrayWithHoles.js", - "./helpers/maybeArrayLike": [ - { - "node": "./helpers/maybeArrayLike.js", - "import": "./helpers/esm/maybeArrayLike.js", - "default": "./helpers/maybeArrayLike.js" - }, - "./helpers/maybeArrayLike.js" - ], - "./helpers/esm/maybeArrayLike": "./helpers/esm/maybeArrayLike.js", - "./helpers/iterableToArray": [ - { - "node": "./helpers/iterableToArray.js", - "import": "./helpers/esm/iterableToArray.js", - "default": "./helpers/iterableToArray.js" - }, - "./helpers/iterableToArray.js" - ], - "./helpers/esm/iterableToArray": "./helpers/esm/iterableToArray.js", - "./helpers/unsupportedIterableToArray": [ - { - "node": "./helpers/unsupportedIterableToArray.js", - "import": "./helpers/esm/unsupportedIterableToArray.js", - "default": "./helpers/unsupportedIterableToArray.js" - }, - "./helpers/unsupportedIterableToArray.js" - ], - "./helpers/esm/unsupportedIterableToArray": "./helpers/esm/unsupportedIterableToArray.js", - "./helpers/arrayLikeToArray": [ - { - "node": "./helpers/arrayLikeToArray.js", - "import": "./helpers/esm/arrayLikeToArray.js", - "default": "./helpers/arrayLikeToArray.js" - }, - "./helpers/arrayLikeToArray.js" - ], - "./helpers/esm/arrayLikeToArray": "./helpers/esm/arrayLikeToArray.js", - "./helpers/nonIterableSpread": [ - { - "node": "./helpers/nonIterableSpread.js", - "import": "./helpers/esm/nonIterableSpread.js", - "default": "./helpers/nonIterableSpread.js" - }, - "./helpers/nonIterableSpread.js" - ], - "./helpers/esm/nonIterableSpread": "./helpers/esm/nonIterableSpread.js", - "./helpers/nonIterableRest": [ - { - "node": "./helpers/nonIterableRest.js", - "import": "./helpers/esm/nonIterableRest.js", - "default": "./helpers/nonIterableRest.js" - }, - "./helpers/nonIterableRest.js" - ], - "./helpers/esm/nonIterableRest": "./helpers/esm/nonIterableRest.js", - "./helpers/createForOfIteratorHelper": [ - { - "node": "./helpers/createForOfIteratorHelper.js", - "import": "./helpers/esm/createForOfIteratorHelper.js", - "default": "./helpers/createForOfIteratorHelper.js" - }, - "./helpers/createForOfIteratorHelper.js" - ], - "./helpers/esm/createForOfIteratorHelper": "./helpers/esm/createForOfIteratorHelper.js", - "./helpers/createForOfIteratorHelperLoose": [ - { - "node": "./helpers/createForOfIteratorHelperLoose.js", - "import": "./helpers/esm/createForOfIteratorHelperLoose.js", - "default": "./helpers/createForOfIteratorHelperLoose.js" - }, - "./helpers/createForOfIteratorHelperLoose.js" - ], - "./helpers/esm/createForOfIteratorHelperLoose": "./helpers/esm/createForOfIteratorHelperLoose.js", - "./helpers/skipFirstGeneratorNext": [ - { - "node": "./helpers/skipFirstGeneratorNext.js", - "import": "./helpers/esm/skipFirstGeneratorNext.js", - "default": "./helpers/skipFirstGeneratorNext.js" - }, - "./helpers/skipFirstGeneratorNext.js" - ], - "./helpers/esm/skipFirstGeneratorNext": "./helpers/esm/skipFirstGeneratorNext.js", - "./helpers/toPrimitive": [ - { - "node": "./helpers/toPrimitive.js", - "import": "./helpers/esm/toPrimitive.js", - "default": "./helpers/toPrimitive.js" - }, - "./helpers/toPrimitive.js" - ], - "./helpers/esm/toPrimitive": "./helpers/esm/toPrimitive.js", - "./helpers/toPropertyKey": [ - { - "node": "./helpers/toPropertyKey.js", - "import": "./helpers/esm/toPropertyKey.js", - "default": "./helpers/toPropertyKey.js" - }, - "./helpers/toPropertyKey.js" - ], - "./helpers/esm/toPropertyKey": "./helpers/esm/toPropertyKey.js", - "./helpers/initializerWarningHelper": [ - { - "node": "./helpers/initializerWarningHelper.js", - "import": "./helpers/esm/initializerWarningHelper.js", - "default": "./helpers/initializerWarningHelper.js" - }, - "./helpers/initializerWarningHelper.js" - ], - "./helpers/esm/initializerWarningHelper": "./helpers/esm/initializerWarningHelper.js", - "./helpers/initializerDefineProperty": [ - { - "node": "./helpers/initializerDefineProperty.js", - "import": "./helpers/esm/initializerDefineProperty.js", - "default": "./helpers/initializerDefineProperty.js" - }, - "./helpers/initializerDefineProperty.js" - ], - "./helpers/esm/initializerDefineProperty": "./helpers/esm/initializerDefineProperty.js", - "./helpers/applyDecoratedDescriptor": [ - { - "node": "./helpers/applyDecoratedDescriptor.js", - "import": "./helpers/esm/applyDecoratedDescriptor.js", - "default": "./helpers/applyDecoratedDescriptor.js" - }, - "./helpers/applyDecoratedDescriptor.js" - ], - "./helpers/esm/applyDecoratedDescriptor": "./helpers/esm/applyDecoratedDescriptor.js", - "./helpers/classPrivateFieldLooseKey": [ - { - "node": "./helpers/classPrivateFieldLooseKey.js", - "import": "./helpers/esm/classPrivateFieldLooseKey.js", - "default": "./helpers/classPrivateFieldLooseKey.js" - }, - "./helpers/classPrivateFieldLooseKey.js" - ], - "./helpers/esm/classPrivateFieldLooseKey": "./helpers/esm/classPrivateFieldLooseKey.js", - "./helpers/classPrivateFieldLooseBase": [ - { - "node": "./helpers/classPrivateFieldLooseBase.js", - "import": "./helpers/esm/classPrivateFieldLooseBase.js", - "default": "./helpers/classPrivateFieldLooseBase.js" - }, - "./helpers/classPrivateFieldLooseBase.js" - ], - "./helpers/esm/classPrivateFieldLooseBase": "./helpers/esm/classPrivateFieldLooseBase.js", - "./helpers/classPrivateFieldGet": [ - { - "node": "./helpers/classPrivateFieldGet.js", - "import": "./helpers/esm/classPrivateFieldGet.js", - "default": "./helpers/classPrivateFieldGet.js" - }, - "./helpers/classPrivateFieldGet.js" - ], - "./helpers/esm/classPrivateFieldGet": "./helpers/esm/classPrivateFieldGet.js", - "./helpers/classPrivateFieldSet": [ - { - "node": "./helpers/classPrivateFieldSet.js", - "import": "./helpers/esm/classPrivateFieldSet.js", - "default": "./helpers/classPrivateFieldSet.js" - }, - "./helpers/classPrivateFieldSet.js" - ], - "./helpers/esm/classPrivateFieldSet": "./helpers/esm/classPrivateFieldSet.js", - "./helpers/classPrivateFieldDestructureSet": [ - { - "node": "./helpers/classPrivateFieldDestructureSet.js", - "import": "./helpers/esm/classPrivateFieldDestructureSet.js", - "default": "./helpers/classPrivateFieldDestructureSet.js" - }, - "./helpers/classPrivateFieldDestructureSet.js" - ], - "./helpers/esm/classPrivateFieldDestructureSet": "./helpers/esm/classPrivateFieldDestructureSet.js", - "./helpers/classExtractFieldDescriptor": [ - { - "node": "./helpers/classExtractFieldDescriptor.js", - "import": "./helpers/esm/classExtractFieldDescriptor.js", - "default": "./helpers/classExtractFieldDescriptor.js" - }, - "./helpers/classExtractFieldDescriptor.js" - ], - "./helpers/esm/classExtractFieldDescriptor": "./helpers/esm/classExtractFieldDescriptor.js", - "./helpers/classStaticPrivateFieldSpecGet": [ - { - "node": "./helpers/classStaticPrivateFieldSpecGet.js", - "import": "./helpers/esm/classStaticPrivateFieldSpecGet.js", - "default": "./helpers/classStaticPrivateFieldSpecGet.js" - }, - "./helpers/classStaticPrivateFieldSpecGet.js" - ], - "./helpers/esm/classStaticPrivateFieldSpecGet": "./helpers/esm/classStaticPrivateFieldSpecGet.js", - "./helpers/classStaticPrivateFieldSpecSet": [ - { - "node": "./helpers/classStaticPrivateFieldSpecSet.js", - "import": "./helpers/esm/classStaticPrivateFieldSpecSet.js", - "default": "./helpers/classStaticPrivateFieldSpecSet.js" - }, - "./helpers/classStaticPrivateFieldSpecSet.js" - ], - "./helpers/esm/classStaticPrivateFieldSpecSet": "./helpers/esm/classStaticPrivateFieldSpecSet.js", - "./helpers/classStaticPrivateMethodGet": [ - { - "node": "./helpers/classStaticPrivateMethodGet.js", - "import": "./helpers/esm/classStaticPrivateMethodGet.js", - "default": "./helpers/classStaticPrivateMethodGet.js" - }, - "./helpers/classStaticPrivateMethodGet.js" - ], - "./helpers/esm/classStaticPrivateMethodGet": "./helpers/esm/classStaticPrivateMethodGet.js", - "./helpers/classStaticPrivateMethodSet": [ - { - "node": "./helpers/classStaticPrivateMethodSet.js", - "import": "./helpers/esm/classStaticPrivateMethodSet.js", - "default": "./helpers/classStaticPrivateMethodSet.js" - }, - "./helpers/classStaticPrivateMethodSet.js" - ], - "./helpers/esm/classStaticPrivateMethodSet": "./helpers/esm/classStaticPrivateMethodSet.js", - "./helpers/classApplyDescriptorGet": [ - { - "node": "./helpers/classApplyDescriptorGet.js", - "import": "./helpers/esm/classApplyDescriptorGet.js", - "default": "./helpers/classApplyDescriptorGet.js" - }, - "./helpers/classApplyDescriptorGet.js" - ], - "./helpers/esm/classApplyDescriptorGet": "./helpers/esm/classApplyDescriptorGet.js", - "./helpers/classApplyDescriptorSet": [ - { - "node": "./helpers/classApplyDescriptorSet.js", - "import": "./helpers/esm/classApplyDescriptorSet.js", - "default": "./helpers/classApplyDescriptorSet.js" - }, - "./helpers/classApplyDescriptorSet.js" - ], - "./helpers/esm/classApplyDescriptorSet": "./helpers/esm/classApplyDescriptorSet.js", - "./helpers/classApplyDescriptorDestructureSet": [ - { - "node": "./helpers/classApplyDescriptorDestructureSet.js", - "import": "./helpers/esm/classApplyDescriptorDestructureSet.js", - "default": "./helpers/classApplyDescriptorDestructureSet.js" - }, - "./helpers/classApplyDescriptorDestructureSet.js" - ], - "./helpers/esm/classApplyDescriptorDestructureSet": "./helpers/esm/classApplyDescriptorDestructureSet.js", - "./helpers/classStaticPrivateFieldDestructureSet": [ - { - "node": "./helpers/classStaticPrivateFieldDestructureSet.js", - "import": "./helpers/esm/classStaticPrivateFieldDestructureSet.js", - "default": "./helpers/classStaticPrivateFieldDestructureSet.js" - }, - "./helpers/classStaticPrivateFieldDestructureSet.js" - ], - "./helpers/esm/classStaticPrivateFieldDestructureSet": "./helpers/esm/classStaticPrivateFieldDestructureSet.js", - "./helpers/classCheckPrivateStaticAccess": [ - { - "node": "./helpers/classCheckPrivateStaticAccess.js", - "import": "./helpers/esm/classCheckPrivateStaticAccess.js", - "default": "./helpers/classCheckPrivateStaticAccess.js" - }, - "./helpers/classCheckPrivateStaticAccess.js" - ], - "./helpers/esm/classCheckPrivateStaticAccess": "./helpers/esm/classCheckPrivateStaticAccess.js", - "./helpers/classCheckPrivateStaticFieldDescriptor": [ - { - "node": "./helpers/classCheckPrivateStaticFieldDescriptor.js", - "import": "./helpers/esm/classCheckPrivateStaticFieldDescriptor.js", - "default": "./helpers/classCheckPrivateStaticFieldDescriptor.js" - }, - "./helpers/classCheckPrivateStaticFieldDescriptor.js" - ], - "./helpers/esm/classCheckPrivateStaticFieldDescriptor": "./helpers/esm/classCheckPrivateStaticFieldDescriptor.js", - "./helpers/decorate": [ - { - "node": "./helpers/decorate.js", - "import": "./helpers/esm/decorate.js", - "default": "./helpers/decorate.js" - }, - "./helpers/decorate.js" - ], - "./helpers/esm/decorate": "./helpers/esm/decorate.js", - "./helpers/classPrivateMethodGet": [ - { - "node": "./helpers/classPrivateMethodGet.js", - "import": "./helpers/esm/classPrivateMethodGet.js", - "default": "./helpers/classPrivateMethodGet.js" - }, - "./helpers/classPrivateMethodGet.js" - ], - "./helpers/esm/classPrivateMethodGet": "./helpers/esm/classPrivateMethodGet.js", - "./helpers/checkPrivateRedeclaration": [ - { - "node": "./helpers/checkPrivateRedeclaration.js", - "import": "./helpers/esm/checkPrivateRedeclaration.js", - "default": "./helpers/checkPrivateRedeclaration.js" - }, - "./helpers/checkPrivateRedeclaration.js" - ], - "./helpers/esm/checkPrivateRedeclaration": "./helpers/esm/checkPrivateRedeclaration.js", - "./helpers/classPrivateFieldInitSpec": [ - { - "node": "./helpers/classPrivateFieldInitSpec.js", - "import": "./helpers/esm/classPrivateFieldInitSpec.js", - "default": "./helpers/classPrivateFieldInitSpec.js" - }, - "./helpers/classPrivateFieldInitSpec.js" - ], - "./helpers/esm/classPrivateFieldInitSpec": "./helpers/esm/classPrivateFieldInitSpec.js", - "./helpers/classPrivateMethodInitSpec": [ - { - "node": "./helpers/classPrivateMethodInitSpec.js", - "import": "./helpers/esm/classPrivateMethodInitSpec.js", - "default": "./helpers/classPrivateMethodInitSpec.js" - }, - "./helpers/classPrivateMethodInitSpec.js" - ], - "./helpers/esm/classPrivateMethodInitSpec": "./helpers/esm/classPrivateMethodInitSpec.js", - "./helpers/classPrivateMethodSet": [ - { - "node": "./helpers/classPrivateMethodSet.js", - "import": "./helpers/esm/classPrivateMethodSet.js", - "default": "./helpers/classPrivateMethodSet.js" - }, - "./helpers/classPrivateMethodSet.js" - ], - "./helpers/esm/classPrivateMethodSet": "./helpers/esm/classPrivateMethodSet.js", - "./helpers/identity": [ - { - "node": "./helpers/identity.js", - "import": "./helpers/esm/identity.js", - "default": "./helpers/identity.js" - }, - "./helpers/identity.js" - ], - "./helpers/esm/identity": "./helpers/esm/identity.js", - "./package": "./package.json", - "./package.json": "./package.json", - "./regenerator": "./regenerator/index.js", - "./regenerator/*.js": "./regenerator/*.js", - "./regenerator/": "./regenerator/" - }, - "engines": { - "node": ">=6.9.0" - }, - "type": "commonjs" -} \ No newline at end of file diff --git a/WechatBot/node_modules/@babel/runtime/regenerator/index.js b/WechatBot/node_modules/@babel/runtime/regenerator/index.js deleted file mode 100755 index 588135736..000000000 --- a/WechatBot/node_modules/@babel/runtime/regenerator/index.js +++ /dev/null @@ -1,15 +0,0 @@ -// TODO(Babel 8): Remove this file. - -var runtime = require("../helpers/regeneratorRuntime")(); -module.exports = runtime; - -// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736= -try { - regeneratorRuntime = runtime; -} catch (accidentalStrictMode) { - if (typeof globalThis === "object") { - globalThis.regeneratorRuntime = runtime; - } else { - Function("r", "regeneratorRuntime = r")(runtime); - } -} diff --git a/WechatBot/node_modules/@jimp/bmp/CHANGELOG.md b/WechatBot/node_modules/@jimp/bmp/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/bmp/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/bmp/LICENSE b/WechatBot/node_modules/@jimp/bmp/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/bmp/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/bmp/README.md b/WechatBot/node_modules/@jimp/bmp/README.md deleted file mode 100644 index dd90e545c..000000000 --- a/WechatBot/node_modules/@jimp/bmp/README.md +++ /dev/null @@ -1,6 +0,0 @@ -
- -

@jimp/bmp

-

Default Jimp bmp encoder/decoder.

-
diff --git a/WechatBot/node_modules/@jimp/bmp/dist/index.js b/WechatBot/node_modules/@jimp/bmp/dist/index.js deleted file mode 100755 index 21e16f37a..000000000 --- a/WechatBot/node_modules/@jimp/bmp/dist/index.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); - -var _bmpJs = _interopRequireDefault(require("bmp-js")); - -var _utils = require("@jimp/utils"); - -var MIME_TYPE = "image/bmp"; -var MIME_TYPE_SECOND = "image/x-ms-bmp"; - -function toAGBR(image) { - return (0, _utils.scan)(image, 0, 0, image.bitmap.width, image.bitmap.height, function (x, y, index) { - var red = this.bitmap.data[index + 0]; - var green = this.bitmap.data[index + 1]; - var blue = this.bitmap.data[index + 2]; - var alpha = this.bitmap.data[index + 3]; - this.bitmap.data[index + 0] = alpha; - this.bitmap.data[index + 1] = blue; - this.bitmap.data[index + 2] = green; - this.bitmap.data[index + 3] = red; - }).bitmap; -} - -function fromAGBR(bitmap) { - return (0, _utils.scan)({ - bitmap: bitmap - }, 0, 0, bitmap.width, bitmap.height, function (x, y, index) { - var alpha = this.bitmap.data[index + 0]; - var blue = this.bitmap.data[index + 1]; - var green = this.bitmap.data[index + 2]; - var red = this.bitmap.data[index + 3]; - this.bitmap.data[index + 0] = red; - this.bitmap.data[index + 1] = green; - this.bitmap.data[index + 2] = blue; - this.bitmap.data[index + 3] = bitmap.is_with_alpha ? alpha : 0xff; - }).bitmap; -} - -var decode = function decode(data) { - return fromAGBR(_bmpJs["default"].decode(data)); -}; - -var encode = function encode(image) { - return _bmpJs["default"].encode(toAGBR(image)).data; -}; - -var _default = function _default() { - var _decoders, _encoders; - - return { - mime: (0, _defineProperty2["default"])({}, MIME_TYPE, ["bmp"]), - constants: { - MIME_BMP: MIME_TYPE, - MIME_X_MS_BMP: MIME_TYPE_SECOND - }, - decoders: (_decoders = {}, (0, _defineProperty2["default"])(_decoders, MIME_TYPE, decode), (0, _defineProperty2["default"])(_decoders, MIME_TYPE_SECOND, decode), _decoders), - encoders: (_encoders = {}, (0, _defineProperty2["default"])(_encoders, MIME_TYPE, encode), (0, _defineProperty2["default"])(_encoders, MIME_TYPE_SECOND, encode), _encoders) - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/bmp/dist/index.js.map b/WechatBot/node_modules/@jimp/bmp/dist/index.js.map deleted file mode 100644 index efd390ba0..000000000 --- a/WechatBot/node_modules/@jimp/bmp/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["MIME_TYPE","MIME_TYPE_SECOND","toAGBR","image","bitmap","width","height","x","y","index","red","data","green","blue","alpha","fromAGBR","is_with_alpha","decode","BMP","encode","mime","constants","MIME_BMP","MIME_X_MS_BMP","decoders","encoders"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA,IAAMA,SAAS,GAAG,WAAlB;AACA,IAAMC,gBAAgB,GAAG,gBAAzB;;AAEA,SAASC,MAAT,CAAgBC,KAAhB,EAAuB;AACrB,SAAO,iBACLA,KADK,EAEL,CAFK,EAGL,CAHK,EAILA,KAAK,CAACC,MAAN,CAAaC,KAJR,EAKLF,KAAK,CAACC,MAAN,CAAaE,MALR,EAML,UAAUC,CAAV,EAAaC,CAAb,EAAgBC,KAAhB,EAAuB;AACrB,QAAMC,GAAG,GAAG,KAAKN,MAAL,CAAYO,IAAZ,CAAiBF,KAAK,GAAG,CAAzB,CAAZ;AACA,QAAMG,KAAK,GAAG,KAAKR,MAAL,CAAYO,IAAZ,CAAiBF,KAAK,GAAG,CAAzB,CAAd;AACA,QAAMI,IAAI,GAAG,KAAKT,MAAL,CAAYO,IAAZ,CAAiBF,KAAK,GAAG,CAAzB,CAAb;AACA,QAAMK,KAAK,GAAG,KAAKV,MAAL,CAAYO,IAAZ,CAAiBF,KAAK,GAAG,CAAzB,CAAd;AAEA,SAAKL,MAAL,CAAYO,IAAZ,CAAiBF,KAAK,GAAG,CAAzB,IAA8BK,KAA9B;AACA,SAAKV,MAAL,CAAYO,IAAZ,CAAiBF,KAAK,GAAG,CAAzB,IAA8BI,IAA9B;AACA,SAAKT,MAAL,CAAYO,IAAZ,CAAiBF,KAAK,GAAG,CAAzB,IAA8BG,KAA9B;AACA,SAAKR,MAAL,CAAYO,IAAZ,CAAiBF,KAAK,GAAG,CAAzB,IAA8BC,GAA9B;AACD,GAhBI,EAiBLN,MAjBF;AAkBD;;AAED,SAASW,QAAT,CAAkBX,MAAlB,EAA0B;AACxB,SAAO,iBACL;AAAEA,IAAAA,MAAM,EAANA;AAAF,GADK,EAEL,CAFK,EAG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TC,MAAAA,QAAQ,EAAEtB,SADD;AAETuB,MAAAA,aAAa,EAAEtB;AAFN,KAHS;AAQpBuB,IAAAA,QAAQ,+DACLxB,SADK,EACOiB,MADP,+CAELhB,gBAFK,EAEcgB,MAFd,aARY;AAapBQ,IAAAA,QAAQ,+DACLzB,SADK,EACOmB,MADP,+CAELlB,gBAFK,EAEckB,MAFd;AAbY,GAAP;AAAA,C","sourcesContent":["import BMP from \"bmp-js\";\nimport { scan } from \"@jimp/utils\";\n\nconst MIME_TYPE = \"image/bmp\";\nconst MIME_TYPE_SECOND = \"image/x-ms-bmp\";\n\nfunction toAGBR(image) {\n return scan(\n image,\n 0,\n 0,\n image.bitmap.width,\n image.bitmap.height,\n function (x, y, index) {\n const red = this.bitmap.data[index + 0];\n const green = this.bitmap.data[index + 1];\n const blue = this.bitmap.data[index + 2];\n const alpha = this.bitmap.data[index + 3];\n\n this.bitmap.data[index + 0] = alpha;\n this.bitmap.data[index + 1] = blue;\n this.bitmap.data[index + 2] = green;\n this.bitmap.data[index + 3] = red;\n }\n ).bitmap;\n}\n\nfunction fromAGBR(bitmap) {\n return scan(\n { bitmap },\n 0,\n 0,\n bitmap.width,\n bitmap.height,\n function (x, y, index) {\n const alpha = this.bitmap.data[index + 0];\n const blue = this.bitmap.data[index + 1];\n const green = this.bitmap.data[index + 2];\n const red = this.bitmap.data[index + 3];\n\n this.bitmap.data[index + 0] = red;\n this.bitmap.data[index + 1] = green;\n this.bitmap.data[index + 2] = blue;\n this.bitmap.data[index + 3] = bitmap.is_with_alpha ? alpha : 0xff;\n }\n ).bitmap;\n}\n\nconst decode = (data) => fromAGBR(BMP.decode(data));\nconst encode = (image) => BMP.encode(toAGBR(image)).data;\n\nexport default () => ({\n mime: { [MIME_TYPE]: [\"bmp\"] },\n\n constants: {\n MIME_BMP: MIME_TYPE,\n MIME_X_MS_BMP: MIME_TYPE_SECOND,\n },\n\n decoders: {\n [MIME_TYPE]: decode,\n [MIME_TYPE_SECOND]: decode,\n },\n\n encoders: {\n [MIME_TYPE]: encode,\n [MIME_TYPE_SECOND]: encode,\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/bmp/index.d.ts b/WechatBot/node_modules/@jimp/bmp/index.d.ts deleted file mode 100644 index 0a9b9a51a..000000000 --- a/WechatBot/node_modules/@jimp/bmp/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { DecoderFn, EncoderFn } from "@jimp/core"; - -interface Bmp { - constants: { - MIME_BMP: "image/bmp"; - MIME_X_MS_BMP: "image/x-ms-bmp"; - }; - - mime: { - "image/bmp": string[]; - }; - - decoders: { - "image/bmp": DecoderFn; - "image/x-ms-bmp": DecoderFn; - }; - - encoders: { - "image/bmp": EncoderFn; - "image/x-ms-bmp": EncoderFn; - }; -} - -export default function (): Bmp; diff --git a/WechatBot/node_modules/@jimp/bmp/package.json b/WechatBot/node_modules/@jimp/bmp/package.json deleted file mode 100644 index d2881dc85..000000000 --- a/WechatBot/node_modules/@jimp/bmp/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@jimp/bmp", - "version": "0.16.13", - "description": "Default Jimp bmp encoder/decoder.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13", - "bmp-js": "^0.1.0" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/bmp/src/index.js b/WechatBot/node_modules/@jimp/bmp/src/index.js deleted file mode 100755 index 12fe2c79b..000000000 --- a/WechatBot/node_modules/@jimp/bmp/src/index.js +++ /dev/null @@ -1,69 +0,0 @@ -import BMP from "bmp-js"; -import { scan } from "@jimp/utils"; - -const MIME_TYPE = "image/bmp"; -const MIME_TYPE_SECOND = "image/x-ms-bmp"; - -function toAGBR(image) { - return scan( - image, - 0, - 0, - image.bitmap.width, - image.bitmap.height, - function (x, y, index) { - const red = this.bitmap.data[index + 0]; - const green = this.bitmap.data[index + 1]; - const blue = this.bitmap.data[index + 2]; - const alpha = this.bitmap.data[index + 3]; - - this.bitmap.data[index + 0] = alpha; - this.bitmap.data[index + 1] = blue; - this.bitmap.data[index + 2] = green; - this.bitmap.data[index + 3] = red; - } - ).bitmap; -} - -function fromAGBR(bitmap) { - return scan( - { bitmap }, - 0, - 0, - bitmap.width, - bitmap.height, - function (x, y, index) { - const alpha = this.bitmap.data[index + 0]; - const blue = this.bitmap.data[index + 1]; - const green = this.bitmap.data[index + 2]; - const red = this.bitmap.data[index + 3]; - - this.bitmap.data[index + 0] = red; - this.bitmap.data[index + 1] = green; - this.bitmap.data[index + 2] = blue; - this.bitmap.data[index + 3] = bitmap.is_with_alpha ? alpha : 0xff; - } - ).bitmap; -} - -const decode = (data) => fromAGBR(BMP.decode(data)); -const encode = (image) => BMP.encode(toAGBR(image)).data; - -export default () => ({ - mime: { [MIME_TYPE]: ["bmp"] }, - - constants: { - MIME_BMP: MIME_TYPE, - MIME_X_MS_BMP: MIME_TYPE_SECOND, - }, - - decoders: { - [MIME_TYPE]: decode, - [MIME_TYPE_SECOND]: decode, - }, - - encoders: { - [MIME_TYPE]: encode, - [MIME_TYPE_SECOND]: encode, - }, -}); diff --git a/WechatBot/node_modules/@jimp/bmp/test/bmp.test.js b/WechatBot/node_modules/@jimp/bmp/test/bmp.test.js deleted file mode 100755 index c72536eed..000000000 --- a/WechatBot/node_modules/@jimp/bmp/test/bmp.test.js +++ /dev/null @@ -1,47 +0,0 @@ -/* eslint-disable no-control-regex */ - -import { Jimp, getTestDir } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import bmp from "../src"; - -const jimp = configure({ types: [bmp] }, Jimp); - -describe("BMP", () => { - const imagesDir = getTestDir(__dirname) + "/images"; - - it("load BMP", async () => { - const image = await jimp.read(imagesDir + "/windows95.bmp"); - - image.getPixelColor(10, 10).should.be.equal(0xeff7f7ff); - image.getPixelColor(150, 80).should.be.equal(0x73add6ff); - image.getPixelColor(190, 200).should.be.equal(0xf7c300ff); - }); - - it("export BMP", async () => { - const image = await jimp.read({ - width: 3, - height: 3, - data: [ - 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff, - 0xff00ffff, 0x8000ffff, 0x0000ffff, - ], - }); - const buffer = await image.getBufferAsync("image/bmp"); - - buffer.toString().should.match(/^BMZ\u0000/); - }); - - it("uses correct colors for BMP", async function () { - this.timeout(4000); - - const expectedImg = await jimp.read( - getTestDir(__dirname) + "/images/windows95.png" - ); - const image = await jimp.read( - getTestDir(__dirname) + "/images/windows95.bmp" - ); - - image.bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); -}); diff --git a/WechatBot/node_modules/@jimp/bmp/test/images/windows95.bmp b/WechatBot/node_modules/@jimp/bmp/test/images/windows95.bmp deleted file mode 100644 index b5f870eb3..000000000 Binary files a/WechatBot/node_modules/@jimp/bmp/test/images/windows95.bmp and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/bmp/test/images/windows95.png b/WechatBot/node_modules/@jimp/bmp/test/images/windows95.png deleted file mode 100644 index 95bb07993..000000000 Binary files a/WechatBot/node_modules/@jimp/bmp/test/images/windows95.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/core/CHANGELOG.md b/WechatBot/node_modules/@jimp/core/CHANGELOG.md deleted file mode 100644 index d709b8282..000000000 --- a/WechatBot/node_modules/@jimp/core/CHANGELOG.md +++ /dev/null @@ -1,104 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### 🐛 Bug Fix - -- Fix edgeHandling types [#1080](https://github.com/jimp-dev/jimp/pull/1080) ([@domdomegg](https://github.com/domdomegg)) -- upgrade file-type [#1108](https://github.com/jimp-dev/jimp/pull/1108) ([@krudos](https://github.com/krudos)) - -#### ⚠️ Pushed to `master` - -- try this ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- update linting ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 3 - -- [@krudos](https://github.com/krudos) -- Adam Jones ([@domdomegg](https://github.com/domdomegg)) -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.14.0 (Mon Jun 29 2020) - -#### 🚀 Enhancement - -- include Addition (Add) blending mode + Officially drop support for Node 8 [#904](https://github.com/oliver-moran/jimp/pull/904) ([@GlitchyPSIX](https://github.com/GlitchyPSIX)) - -#### Authors: 1 - -- GlitchyPSI ([@GlitchyPSIX](https://github.com/GlitchyPSIX)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### 🐛 Bug Fix - -- Make callback optional for Jimp.rgbaToInt [#889](https://github.com/oliver-moran/jimp/pull/889) ([@HanKruiger](https://github.com/HanKruiger)) - -#### Authors: 2 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) -- Han Kruiger ([@HanKruiger](https://github.com/HanKruiger)) - ---- - -# v0.10.2 (Tue Apr 14 2020) - -#### 🐛 Bug Fix - -- Rewrite handling EXIF orientation — add tests, make it plugin-independent [#875](https://github.com/oliver-moran/jimp/pull/875) ([@skalee](https://github.com/skalee)) - -#### Authors: 1 - -- Sebastian Skałacki ([@skalee](https://github.com/skalee)) - ---- - -# v0.10.0 (Mon Mar 30 2020) - -#### 🚀 Enhancement - -- Properly split constructor and instance types [#867](https://github.com/oliver-moran/jimp/pull/867) ([@forivall](https://github.com/forivall)) - -#### Authors: 1 - -- Emily Marigold Klassen ([@forivall](https://github.com/forivall)) - ---- - -# v0.9.6 (Wed Mar 18 2020) - -#### 🐛 Bug Fix - -- Relax mkdirp dependency to allow newer minimist [#857](https://github.com/oliver-moran/jimp/pull/857) ([@Den-dp](https://github.com/Den-dp)) - -#### 🏠 Internal - -- Fix TypeScript error on 'next' [#858](https://github.com/oliver-moran/jimp/pull/858) ([@crutchcorn](https://github.com/crutchcorn)) - -#### Authors: 2 - -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) -- Denis Bendrikov ([@Den-dp](https://github.com/Den-dp)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) -- `@jimp/core` - - Follow redirects [#789](https://github.com/oliver-moran/jimp/pull/789) ([@SaWey](https://github.com/SaWey) sander@solora.be) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/core/LICENSE b/WechatBot/node_modules/@jimp/core/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/core/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/core/README.md b/WechatBot/node_modules/@jimp/core/README.md deleted file mode 100644 index 4ca355ff9..000000000 --- a/WechatBot/node_modules/@jimp/core/README.md +++ /dev/null @@ -1,52 +0,0 @@ -
- -

@jimp/core

-
- -The main Jimp class. This class can be extended with types and bitmap manipulation functions. Out of the box it does not support any image type. - -## Available Methods - -### Jimp - -The Jimp class constructor. - -### addConstants - -Add constant or static methods to the Jimp constructor. - -```js -addConstants({ - MIME_SPECIAL: "image/special", -}); -``` - -### addJimpMethods - -Add a bitmap manipulation method to Jimp constructor. These method should return this so that the function can be chain-able. - -```js -addJimpMethods({ - cropCrazy: function() { - // Your custom image manipulation method - - return this; - } -}) - -const image = await Jimp.read(...); - -image.resize(10, Jimp.AUTO), - .cropCrazy(); - -await image.writeAsync('test.png'); -``` - -### addType - -Add a image mime type to Jimp constructor. First argument is a mime type and the second is an array of file extension for that type. - -```js -addType("image/special", ["spec", "special"]); -``` diff --git a/WechatBot/node_modules/@jimp/core/dist/composite/composite-modes.js b/WechatBot/node_modules/@jimp/core/dist/composite/composite-modes.js deleted file mode 100755 index eee30efdd..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/composite/composite-modes.js +++ /dev/null @@ -1,236 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.srcOver = srcOver; -exports.dstOver = dstOver; -exports.multiply = multiply; -exports.add = add; -exports.screen = screen; -exports.overlay = overlay; -exports.darken = darken; -exports.lighten = lighten; -exports.hardLight = hardLight; -exports.difference = difference; -exports.exclusion = exclusion; - -function srcOver(src, dst) { - var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - src.a *= ops; - var a = dst.a + src.a - dst.a * src.a; - var r = (src.r * src.a + dst.r * dst.a * (1 - src.a)) / a; - var g = (src.g * src.a + dst.g * dst.a * (1 - src.a)) / a; - var b = (src.b * src.a + dst.b * dst.a * (1 - src.a)) / a; - return { - r: r, - g: g, - b: b, - a: a - }; -} - -function dstOver(src, dst) { - var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - src.a *= ops; - var a = dst.a + src.a - dst.a * src.a; - var r = (dst.r * dst.a + src.r * src.a * (1 - dst.a)) / a; - var g = (dst.g * dst.a + src.g * src.a * (1 - dst.a)) / a; - var b = (dst.b * dst.a + src.b * src.a * (1 - dst.a)) / a; - return { - r: r, - g: g, - b: b, - a: a - }; -} - -function multiply(src, dst) { - var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - src.a *= ops; - var a = dst.a + src.a - dst.a * src.a; - var sra = src.r * src.a; - var sga = src.g * src.a; - var sba = src.b * src.a; - var dra = dst.r * dst.a; - var dga = dst.g * dst.a; - var dba = dst.b * dst.a; - var r = (sra * dra + sra * (1 - dst.a) + dra * (1 - src.a)) / a; - var g = (sga * dga + sga * (1 - dst.a) + dga * (1 - src.a)) / a; - var b = (sba * dba + sba * (1 - dst.a) + dba * (1 - src.a)) / a; - return { - r: r, - g: g, - b: b, - a: a - }; -} - -function add(src, dst) { - var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - src.a *= ops; - var a = dst.a + src.a - dst.a * src.a; - var sra = src.r * src.a; - var sga = src.g * src.a; - var sba = src.b * src.a; - var dra = dst.r * dst.a; - var dga = dst.g * dst.a; - var dba = dst.b * dst.a; - var r = (sra + dra) / a; - var g = (sga + dga) / a; - var b = (sba + dba) / a; - return { - r: r, - g: g, - b: b, - a: a - }; -} - -function screen(src, dst) { - var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - src.a *= ops; - var a = dst.a + src.a - dst.a * src.a; - var sra = src.r * src.a; - var sga = src.g * src.a; - var sba = src.b * src.a; - var dra = dst.r * dst.a; - var dga = dst.g * dst.a; - var dba = dst.b * dst.a; - var r = (sra * dst.a + dra * src.a - sra * dra + sra * (1 - dst.a) + dra * (1 - src.a)) / a; - var g = (sga * dst.a + dga * src.a - sga * dga + sga * (1 - dst.a) + dga * (1 - src.a)) / a; - var b = (sba * dst.a + dba * src.a - sba * dba + sba * (1 - dst.a) + dba * (1 - src.a)) / a; - return { - r: r, - g: g, - b: b, - a: a - }; -} - -function overlay(src, dst) { - var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - src.a *= ops; - var a = dst.a + src.a - dst.a * src.a; - var sra = src.r * src.a; - var sga = src.g * src.a; - var sba = src.b * src.a; - var dra = dst.r * dst.a; - var dga = dst.g * dst.a; - var dba = dst.b * dst.a; - var r = (2 * dra <= dst.a ? 2 * sra * dra + sra * (1 - dst.a) + dra * (1 - src.a) : sra * (1 + dst.a) + dra * (1 + src.a) - 2 * dra * sra - dst.a * src.a) / a; - var g = (2 * dga <= dst.a ? 2 * sga * dga + sga * (1 - dst.a) + dga * (1 - src.a) : sga * (1 + dst.a) + dga * (1 + src.a) - 2 * dga * sga - dst.a * src.a) / a; - var b = (2 * dba <= dst.a ? 2 * sba * dba + sba * (1 - dst.a) + dba * (1 - src.a) : sba * (1 + dst.a) + dba * (1 + src.a) - 2 * dba * sba - dst.a * src.a) / a; - return { - r: r, - g: g, - b: b, - a: a - }; -} - -function darken(src, dst) { - var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - src.a *= ops; - var a = dst.a + src.a - dst.a * src.a; - var sra = src.r * src.a; - var sga = src.g * src.a; - var sba = src.b * src.a; - var dra = dst.r * dst.a; - var dga = dst.g * dst.a; - var dba = dst.b * dst.a; - var r = (Math.min(sra * dst.a, dra * src.a) + sra * (1 - dst.a) + dra * (1 - src.a)) / a; - var g = (Math.min(sga * dst.a, dga * src.a) + sga * (1 - dst.a) + dga * (1 - src.a)) / a; - var b = (Math.min(sba * dst.a, dba * src.a) + sba * (1 - dst.a) + dba * (1 - src.a)) / a; - return { - r: r, - g: g, - b: b, - a: a - }; -} - -function lighten(src, dst) { - var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - src.a *= ops; - var a = dst.a + src.a - dst.a * src.a; - var sra = src.r * src.a; - var sga = src.g * src.a; - var sba = src.b * src.a; - var dra = dst.r * dst.a; - var dga = dst.g * dst.a; - var dba = dst.b * dst.a; - var r = (Math.max(sra * dst.a, dra * src.a) + sra * (1 - dst.a) + dra * (1 - src.a)) / a; - var g = (Math.max(sga * dst.a, dga * src.a) + sga * (1 - dst.a) + dga * (1 - src.a)) / a; - var b = (Math.max(sba * dst.a, dba * src.a) + sba * (1 - dst.a) + dba * (1 - src.a)) / a; - return { - r: r, - g: g, - b: b, - a: a - }; -} - -function hardLight(src, dst) { - var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - src.a *= ops; - var a = dst.a + src.a - dst.a * src.a; - var sra = src.r * src.a; - var sga = src.g * src.a; - var sba = src.b * src.a; - var dra = dst.r * dst.a; - var dga = dst.g * dst.a; - var dba = dst.b * dst.a; - var r = (2 * sra <= src.a ? 2 * sra * dra + sra * (1 - dst.a) + dra * (1 - src.a) : sra * (1 + dst.a) + dra * (1 + src.a) - 2 * dra * sra - dst.a * src.a) / a; - var g = (2 * sga <= src.a ? 2 * sga * dga + sga * (1 - dst.a) + dga * (1 - src.a) : sga * (1 + dst.a) + dga * (1 + src.a) - 2 * dga * sga - dst.a * src.a) / a; - var b = (2 * sba <= src.a ? 2 * sba * dba + sba * (1 - dst.a) + dba * (1 - src.a) : sba * (1 + dst.a) + dba * (1 + src.a) - 2 * dba * sba - dst.a * src.a) / a; - return { - r: r, - g: g, - b: b, - a: a - }; -} - -function difference(src, dst) { - var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - src.a *= ops; - var a = dst.a + src.a - dst.a * src.a; - var sra = src.r * src.a; - var sga = src.g * src.a; - var sba = src.b * src.a; - var dra = dst.r * dst.a; - var dga = dst.g * dst.a; - var dba = dst.b * dst.a; - var r = (sra + dra - 2 * Math.min(sra * dst.a, dra * src.a)) / a; - var g = (sga + dga - 2 * Math.min(sga * dst.a, dga * src.a)) / a; - var b = (sba + dba - 2 * Math.min(sba * dst.a, dba * src.a)) / a; - return { - r: r, - g: g, - b: b, - a: a - }; -} - -function exclusion(src, dst) { - var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1; - src.a *= ops; - var a = dst.a + src.a - dst.a * src.a; - var sra = src.r * src.a; - var sga = src.g * src.a; - var sba = src.b * src.a; - var dra = dst.r * dst.a; - var dga = dst.g * dst.a; - var dba = dst.b * dst.a; - var r = (sra * dst.a + dra * src.a - 2 * sra * dra + sra * (1 - dst.a) + dra * (1 - src.a)) / a; - var g = (sga * dst.a + dga * src.a - 2 * sga * dga + sga * (1 - dst.a) + dga * (1 - src.a)) / a; - var b = (sba * dst.a + dba * src.a - 2 * sba * dba + sba * (1 - dst.a) + dba * (1 - src.a)) / a; - return { - r: r, - g: g, - b: b, - a: a - }; -} -//# sourceMappingURL=composite-modes.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/composite/composite-modes.js.map b/WechatBot/node_modules/@jimp/core/dist/composite/composite-modes.js.map deleted file mode 100644 index 2d24ac883..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/composite/composite-modes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/composite/composite-modes.js"],"names":["srcOver","src","dst","ops","a","r","g","b","dstOver","multiply","sra","sga","sba","dra","dga","dba","add","screen","overlay","darken","Math","min","lighten","max","hardLight","difference","exclusion"],"mappings":";;;;;;;;;;;;;;;;;AAAO,SAASA,OAAT,CAAiBC,GAAjB,EAAsBC,GAAtB,EAAoC;AAAA,MAATC,GAAS,uEAAH,CAAG;AACzCF,EAAAA,GAAG,CAACG,CAAJ,IAASD,GAAT;AAEA,MAAMC,CAAC,GAAGF,GAAG,CAACE,CAAJ,GAAQH,GAAG,CAACG,CAAZ,GAAgBF,GAAG,CAACE,CAAJ,GAAQH,GAAG,CAACG,CAAtC;AAEA,MAAMC,CAAC,GAAG,CAACJ,GAAG,CAACI,CAAJ,GAAQJ,GAAG,CAACG,CAAZ,GAAgBF,GAAG,CAACG,CAAJ,GAAQH,GAAG,CAACE,CAAZ,IAAiB,IAAIH,GAAG,CAACG,CAAzB,CAAjB,IAAgDA,CAA1D;AACA,MAAME,CAAC,GAAG,CAACL,GAAG,CAACK,CAAJ,GAAQL,GAAG,CAACG,CAAZ,GAAgBF,GAAG,CAACI,CAAJ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b,GAAG,CAACK,CAAJ,GAAQL,GAAG,CAACE,CAAxB;AAEA,MAAMC,CAAC,GACL,CAACK,GAAG,GAAGR,GAAG,CAACE,CAAV,GACCS,GAAG,GAAGZ,GAAG,CAACG,CADX,GAEC,IAAIM,GAAJ,GAAUG,GAFX,GAGCH,GAAG,IAAI,IAAIR,GAAG,CAACE,CAAZ,CAHJ,GAICS,GAAG,IAAI,IAAIZ,GAAG,CAACG,CAAZ,CAJL,IAKAA,CANF;AAOA,MAAME,CAAC,GACL,CAACK,GAAG,GAAGT,GAAG,CAACE,CAAV,GACCU,GAAG,GAAGb,GAAG,CAACG,CADX,GAEC,IAAIO,GAAJ,GAAUG,GAFX,GAGCH,GAAG,IAAI,IAAIT,GAAG,CAACE,CAAZ,CAHJ,GAICU,GAAG,IAAI,IAAIb,GAAG,CAACG,CAAZ,CAJL,IAKAA,CANF;AAOA,MAAMG,CAAC,GACL,CAACK,GAAG,GAAGV,GAAG,CAACE,CAAV,GACCW,GAAG,GAAGd,GAAG,CAACG,CADX,GAEC,IAAIQ,GAAJ,GAAUG,GAFX,GAGCH,GAAG,IAAI,IAAIV,GAAG,CAACE,CAAZ,CAHJ,GAICW,GAAG,IAAI,IAAId,GAAG,CAACG,CAAZ,CAJL,IAKAA,CANF;AAQA,SAAO;AAAEC,IAAAA,CAAC,EAADA,CAAF;AAAKC,IAAAA,CAAC,EAADA,CAAL;AAAQC,IAAAA,CAAC,EAADA,CAAR;AAAWH,IAAAA,CAAC,EAADA;AAAX,GAAP;AACD","sourcesContent":["export function srcOver(src, dst, ops = 1) {\n src.a *= ops;\n\n const a = dst.a + src.a - dst.a * src.a;\n\n const r = (src.r * src.a + dst.r * dst.a * (1 - src.a)) / a;\n const g = (src.g * src.a + dst.g * dst.a * (1 - src.a)) / a;\n const b = (src.b * src.a + dst.b * dst.a * (1 - src.a)) / a;\n\n return { r, g, b, a };\n}\n\nexport function dstOver(src, dst, ops = 1) {\n src.a *= ops;\n\n const a = dst.a + src.a - dst.a * src.a;\n\n const r = (dst.r * dst.a + src.r * src.a * (1 - dst.a)) / a;\n const g = (dst.g * dst.a + src.g * src.a * (1 - dst.a)) / a;\n const b = (dst.b * dst.a + src.b * src.a * (1 - dst.a)) / a;\n\n return { r, g, b, a };\n}\n\nexport function multiply(src, dst, ops = 1) {\n src.a *= ops;\n\n const a = dst.a + src.a - dst.a * src.a;\n\n const sra = src.r * src.a;\n const sga = src.g * src.a;\n const sba = src.b * src.a;\n\n const dra = dst.r * dst.a;\n const dga = dst.g * dst.a;\n const dba = dst.b * dst.a;\n\n const r = (sra * dra + sra * (1 - dst.a) + dra * (1 - src.a)) / a;\n const g = (sga * dga + sga * (1 - dst.a) + dga * (1 - src.a)) / a;\n const b = (sba * dba + sba * (1 - dst.a) + dba * (1 - src.a)) / a;\n\n return { r, g, b, a };\n}\n\nexport function add(src, dst, ops = 1) {\n src.a *= ops;\n\n const a = dst.a + src.a - dst.a * src.a;\n\n const sra = src.r * src.a;\n const sga = src.g * src.a;\n const sba = src.b * src.a;\n\n const dra = dst.r * dst.a;\n const dga = dst.g * dst.a;\n const dba = dst.b * dst.a;\n\n const r = (sra + dra) / a;\n const g = (sga + dga) / a;\n const b = (sba + dba) / a;\n\n return { r, g, b, a };\n}\n\nexport function screen(src, dst, ops = 1) {\n src.a *= ops;\n\n const a = dst.a + src.a - dst.a * src.a;\n\n const sra = src.r * src.a;\n const sga = src.g * src.a;\n const sba = src.b * src.a;\n\n const dra = dst.r * dst.a;\n const dga = dst.g * dst.a;\n const dba = dst.b * dst.a;\n\n const r =\n (sra * dst.a +\n dra * src.a -\n sra * dra +\n sra * (1 - dst.a) +\n dra * (1 - src.a)) /\n a;\n const g =\n (sga * dst.a +\n dga * src.a -\n sga * dga +\n sga * (1 - dst.a) +\n dga * (1 - src.a)) /\n a;\n const b =\n (sba * dst.a +\n dba * src.a -\n sba * dba +\n sba * (1 - dst.a) +\n dba * (1 - src.a)) /\n a;\n\n return { r, g, b, a };\n}\n\nexport function overlay(src, dst, ops = 1) {\n src.a *= ops;\n\n const a = dst.a + src.a - dst.a * src.a;\n\n const sra = src.r * src.a;\n const sga = src.g * src.a;\n const sba = src.b * src.a;\n\n const dra = dst.r * dst.a;\n const dga = dst.g * dst.a;\n const dba = dst.b * dst.a;\n\n const r =\n (2 * dra <= dst.a\n ? 2 * sra * dra + sra * (1 - dst.a) + dra * (1 - src.a)\n : sra * (1 + dst.a) + dra * (1 + src.a) - 2 * dra * sra - dst.a * src.a) /\n a;\n\n const g =\n (2 * dga <= dst.a\n ? 2 * sga * dga + sga * (1 - dst.a) + dga * (1 - src.a)\n : sga * (1 + dst.a) + dga * (1 + src.a) - 2 * dga * sga - dst.a * src.a) /\n a;\n\n const b =\n (2 * dba <= dst.a\n ? 2 * sba * dba + sba * (1 - dst.a) + dba * (1 - src.a)\n : sba * (1 + dst.a) + dba * (1 + src.a) - 2 * dba * sba - dst.a * src.a) /\n a;\n\n return { r, g, b, a };\n}\n\nexport function darken(src, dst, ops = 1) {\n src.a *= ops;\n\n const a = dst.a + src.a - dst.a * src.a;\n\n const sra = src.r * src.a;\n const sga = src.g * src.a;\n const sba = src.b * src.a;\n\n const dra = dst.r * dst.a;\n const dga = dst.g * dst.a;\n const dba = dst.b * dst.a;\n\n const r =\n (Math.min(sra * dst.a, dra * src.a) +\n sra * (1 - dst.a) +\n dra * (1 - src.a)) /\n a;\n const g =\n (Math.min(sga * dst.a, dga * src.a) +\n sga * (1 - dst.a) +\n dga * (1 - src.a)) /\n a;\n const b =\n (Math.min(sba * dst.a, dba * src.a) +\n sba * (1 - dst.a) +\n dba * (1 - src.a)) /\n a;\n\n return { r, g, b, a };\n}\n\nexport function lighten(src, dst, ops = 1) {\n src.a *= ops;\n\n const a = dst.a + src.a - dst.a * src.a;\n\n const sra = src.r * src.a;\n const sga = src.g * src.a;\n const sba = src.b * src.a;\n\n const dra = dst.r * dst.a;\n const dga = dst.g * dst.a;\n const dba = dst.b * dst.a;\n\n const r =\n (Math.max(sra * dst.a, dra * src.a) +\n sra * (1 - dst.a) +\n dra * (1 - src.a)) /\n a;\n const g =\n (Math.max(sga * dst.a, dga * src.a) +\n sga * (1 - dst.a) +\n dga * (1 - src.a)) /\n a;\n const b =\n (Math.max(sba * dst.a, dba * src.a) +\n sba * (1 - dst.a) +\n dba * (1 - src.a)) /\n a;\n\n return { r, g, b, a };\n}\n\nexport function hardLight(src, dst, ops = 1) {\n src.a *= ops;\n\n const a = dst.a + src.a - dst.a * src.a;\n\n const sra = src.r * src.a;\n const sga = src.g * src.a;\n const sba = src.b * src.a;\n\n const dra = dst.r * dst.a;\n const dga = dst.g * dst.a;\n const dba = dst.b * dst.a;\n\n const r =\n (2 * sra <= src.a\n ? 2 * sra * dra + sra * (1 - dst.a) + dra * (1 - src.a)\n : sra * (1 + dst.a) + dra * (1 + src.a) - 2 * dra * sra - dst.a * src.a) /\n a;\n\n const g =\n (2 * sga <= src.a\n ? 2 * sga * dga + sga * (1 - dst.a) + dga * (1 - src.a)\n : sga * (1 + dst.a) + dga * (1 + src.a) - 2 * dga * sga - dst.a * src.a) /\n a;\n\n const b =\n (2 * sba <= src.a\n ? 2 * sba * dba + sba * (1 - dst.a) + dba * (1 - src.a)\n : sba * (1 + dst.a) + dba * (1 + src.a) - 2 * dba * sba - dst.a * src.a) /\n a;\n\n return { r, g, b, a };\n}\n\nexport function difference(src, dst, ops = 1) {\n src.a *= ops;\n\n const a = dst.a + src.a - dst.a * src.a;\n\n const sra = src.r * src.a;\n const sga = src.g * src.a;\n const sba = src.b * src.a;\n\n const dra = dst.r * dst.a;\n const dga = dst.g * dst.a;\n const dba = dst.b * dst.a;\n\n const r = (sra + dra - 2 * Math.min(sra * dst.a, dra * src.a)) / a;\n const g = (sga + dga - 2 * Math.min(sga * dst.a, dga * src.a)) / a;\n const b = (sba + dba - 2 * Math.min(sba * dst.a, dba * src.a)) / a;\n\n return { r, g, b, a };\n}\n\nexport function exclusion(src, dst, ops = 1) {\n src.a *= ops;\n\n const a = dst.a + src.a - dst.a * src.a;\n\n const sra = src.r * src.a;\n const sga = src.g * src.a;\n const sba = src.b * src.a;\n\n const dra = dst.r * dst.a;\n const dga = dst.g * dst.a;\n const dba = dst.b * dst.a;\n\n const r =\n (sra * dst.a +\n dra * src.a -\n 2 * sra * dra +\n sra * (1 - dst.a) +\n dra * (1 - src.a)) /\n a;\n const g =\n (sga * dst.a +\n dga * src.a -\n 2 * sga * dga +\n sga * (1 - dst.a) +\n dga * (1 - src.a)) /\n a;\n const b =\n (sba * dst.a +\n dba * src.a -\n 2 * sba * dba +\n sba * (1 - dst.a) +\n dba * (1 - src.a)) /\n a;\n\n return { r, g, b, a };\n}\n"],"file":"composite-modes.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/composite/index.js b/WechatBot/node_modules/@jimp/core/dist/composite/index.js deleted file mode 100755 index a308d8dec..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/composite/index.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; - -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = composite; - -var _utils = require("@jimp/utils"); - -var constants = _interopRequireWildcard(require("../constants")); - -var compositeModes = _interopRequireWildcard(require("./composite-modes")); - -/** - * Composites a source image over to this image respecting alpha channels - * @param {Jimp} src the source Jimp instance - * @param {number} x the x position to blit the image - * @param {number} y the y position to blit the image - * @param {object} options determine what mode to use - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -function composite(src, x, y) { - var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - var cb = arguments.length > 4 ? arguments[4] : undefined; - - if (typeof options === "function") { - cb = options; - options = {}; - } - - if (!(src instanceof this.constructor)) { - return _utils.throwError.call(this, "The source must be a Jimp image", cb); - } - - if (typeof x !== "number" || typeof y !== "number") { - return _utils.throwError.call(this, "x and y must be numbers", cb); - } - - var _options = options, - mode = _options.mode, - opacitySource = _options.opacitySource, - opacityDest = _options.opacityDest; - - if (!mode) { - mode = constants.BLEND_SOURCE_OVER; - } - - if (typeof opacitySource !== "number" || opacitySource < 0 || opacitySource > 1) { - opacitySource = 1.0; - } - - if (typeof opacityDest !== "number" || opacityDest < 0 || opacityDest > 1) { - opacityDest = 1.0; - } // eslint-disable-next-line import/namespace - - - var blendmode = compositeModes[mode]; // round input - - x = Math.round(x); - y = Math.round(y); - var baseImage = this; - - if (opacityDest !== 1.0) { - baseImage.opacity(opacityDest); - } - - src.scanQuiet(0, 0, src.bitmap.width, src.bitmap.height, function (sx, sy, idx) { - var dstIdx = baseImage.getPixelIndex(x + sx, y + sy, constants.EDGE_CROP); - var blended = blendmode({ - r: this.bitmap.data[idx + 0] / 255, - g: this.bitmap.data[idx + 1] / 255, - b: this.bitmap.data[idx + 2] / 255, - a: this.bitmap.data[idx + 3] / 255 - }, { - r: baseImage.bitmap.data[dstIdx + 0] / 255, - g: baseImage.bitmap.data[dstIdx + 1] / 255, - b: baseImage.bitmap.data[dstIdx + 2] / 255, - a: baseImage.bitmap.data[dstIdx + 3] / 255 - }, opacitySource); - baseImage.bitmap.data[dstIdx + 0] = this.constructor.limit255(blended.r * 255); - baseImage.bitmap.data[dstIdx + 1] = this.constructor.limit255(blended.g * 255); - baseImage.bitmap.data[dstIdx + 2] = this.constructor.limit255(blended.b * 255); - baseImage.bitmap.data[dstIdx + 3] = this.constructor.limit255(blended.a * 255); - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; -} - -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/composite/index.js.map b/WechatBot/node_modules/@jimp/core/dist/composite/index.js.map deleted file mode 100644 index f55a37489..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/composite/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/composite/index.js"],"names":["composite","src","x","y","options","cb","constructor","throwError","call","mode","opacitySource","opacityDest","constants","BLEND_SOURCE_OVER","blendmode","compositeModes","Math","round","baseImage","opacity","scanQuiet","bitmap","width","height","sx","sy","idx","dstIdx","getPixelIndex","EDGE_CROP","blended","r","data","g","b","a","limit255"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AAEA;;;;;;;;;AASe,SAASA,SAAT,CAAmBC,GAAnB,EAAwBC,CAAxB,EAA2BC,CAA3B,EAAgD;AAAA,MAAlBC,OAAkB,uEAAR,EAAQ;AAAA,MAAJC,EAAI;;AAC7D,MAAI,OAAOD,OAAP,KAAmB,UAAvB,EAAmC;AACjCC,IAAAA,EAAE,GAAGD,OAAL;AACAA,IAAAA,OAAO,GAAG,EAAV;AACD;;AAED,MAAI,EAAEH,GAAG,YAAY,KAAKK,WAAtB,CAAJ,EAAwC;AACtC,WAAOC,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,iCAAtB,EAAyDH,EAAzD,CAAP;AACD;;AAED,MAAI,OAAOH,CAAP,KAAa,QAAb,IAAyB,OAAOC,CAAP,KAAa,QAA1C,EAAoD;AAClD,WAAOI,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,yBAAtB,EAAiDH,EAAjD,CAAP;AACD;;AAZ4D,iBAclBD,OAdkB;AAAA,MAcvDK,IAduD,YAcvDA,IAduD;AAAA,MAcjDC,aAdiD,YAcjDA,aAdiD;AAAA,MAclCC,WAdkC,YAclCA,WAdkC;;AAgB7D,MAAI,CAACF,IAAL,EAAW;AACTA,IAAAA,IAAI,GAAGG,SAAS,CAACC,iBAAjB;AACD;;AAED,MACE,OAAOH,aAAP,KAAyB,QAAzB,IACAA,aAAa,GAAG,CADhB,IAEAA,aAAa,GAAG,CAHlB,EAIE;AACAA,IAAAA,aAAa,GAAG,GAAhB;AACD;;AAED,MAAI,OAAOC,WAAP,KAAuB,QAAvB,IAAmCA,WAAW,GAAG,CAAjD,IAAsDA,WAAW,GAAG,CAAxE,EAA2E;AACzEA,IAAAA,WAAW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EM,MAAAA,CAAC,EAAEf,SAAS,CAACG,MAAV,CAAiBW,IAAjB,CAAsBL,MAAM,GAAG,CAA/B,IAAoC,GAFzC;AAGEO,MAAAA,CAAC,EAAEhB,SAAS,CAACG,MAAV,CAAiBW,IAAjB,CAAsBL,MAAM,GAAG,CAA/B,IAAoC,GAHzC;AAIEQ,MAAAA,CAAC,EAAEjB,SAAS,CAACG,MAAV,CAAiBW,IAAjB,CAAsBL,MAAM,GAAG,CAA/B,IAAoC;AAJzC,KAPuB,EAavBjB,aAbuB,CAAzB;AAgBAQ,IAAAA,SAAS,CAACG,MAAV,CAAiBW,IAAjB,CAAsBL,MAAM,GAAG,CAA/B,IAAoC,KAAKrB,WAAL,CAAiB8B,QAAjB,CAClCN,OAAO,CAACC,CAAR,GAAY,GADsB,CAApC;AAGAb,IAAAA,SAAS,CAACG,MAAV,CAAiBW,IAAjB,CAAsBL,MAAM,GAAG,CAA/B,IAAoC,KAAKrB,WAAL,CAAiB8B,QAAjB,CAClCN,OAAO,CAACG,CAAR,GAAY,GADsB,CAApC;AAGAf,IAAAA,SAAS,CAACG,MAAV,CAAiBW,IAAjB,CAAsBL,MAAM,GAAG,CAA/B,IAAoC,KAAKrB,WAAL,CAAiB8B,QAAjB,CAClCN,OAAO,CAACI,CAAR,GAAY,GADsB,CAApC;AAGAhB,IAAAA,SAAS,CAACG,MAAV,CAAiBW,IAAjB,CAAsBL,MAAM,GAAG,CAA/B,IAAoC,KAAKrB,WAAL,CAAiB8B,QAAjB,CAClCN,OAAO,CAACK,CAAR,GAAY,GADsB,CAApC;AAGD,GAvCH;;AA0CA,MAAI,0BAAc9B,EAAd,CAAJ,EAAuB;AACrBA,IAAAA,EAAE,CAACG,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,SAAO,IAAP;AACD","sourcesContent":["import { isNodePattern, throwError } from \"@jimp/utils\";\nimport * as constants from \"../constants\";\n\nimport * as compositeModes from \"./composite-modes\";\n\n/**\n * Composites a source image over to this image respecting alpha channels\n * @param {Jimp} src the source Jimp instance\n * @param {number} x the x position to blit the image\n * @param {number} y the y position to blit the image\n * @param {object} options determine what mode to use\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default function composite(src, x, y, options = {}, cb) {\n if (typeof options === \"function\") {\n cb = options;\n options = {};\n }\n\n if (!(src instanceof this.constructor)) {\n return throwError.call(this, \"The source must be a Jimp image\", cb);\n }\n\n if (typeof x !== \"number\" || typeof y !== \"number\") {\n return throwError.call(this, \"x and y must be numbers\", cb);\n }\n\n let { mode, opacitySource, opacityDest } = options;\n\n if (!mode) {\n mode = constants.BLEND_SOURCE_OVER;\n }\n\n if (\n typeof opacitySource !== \"number\" ||\n opacitySource < 0 ||\n opacitySource > 1\n ) {\n opacitySource = 1.0;\n }\n\n if (typeof opacityDest !== \"number\" || opacityDest < 0 || opacityDest > 1) {\n opacityDest = 1.0;\n }\n\n // eslint-disable-next-line import/namespace\n const blendmode = compositeModes[mode];\n\n // round input\n x = Math.round(x);\n y = Math.round(y);\n\n const baseImage = this;\n\n if (opacityDest !== 1.0) {\n baseImage.opacity(opacityDest);\n }\n\n src.scanQuiet(\n 0,\n 0,\n src.bitmap.width,\n src.bitmap.height,\n function (sx, sy, idx) {\n const dstIdx = baseImage.getPixelIndex(\n x + sx,\n y + sy,\n constants.EDGE_CROP\n );\n const blended = blendmode(\n {\n r: this.bitmap.data[idx + 0] / 255,\n g: this.bitmap.data[idx + 1] / 255,\n b: this.bitmap.data[idx + 2] / 255,\n a: this.bitmap.data[idx + 3] / 255,\n },\n {\n r: baseImage.bitmap.data[dstIdx + 0] / 255,\n g: baseImage.bitmap.data[dstIdx + 1] / 255,\n b: baseImage.bitmap.data[dstIdx + 2] / 255,\n a: baseImage.bitmap.data[dstIdx + 3] / 255,\n },\n opacitySource\n );\n\n baseImage.bitmap.data[dstIdx + 0] = this.constructor.limit255(\n blended.r * 255\n );\n baseImage.bitmap.data[dstIdx + 1] = this.constructor.limit255(\n blended.g * 255\n );\n baseImage.bitmap.data[dstIdx + 2] = this.constructor.limit255(\n blended.b * 255\n );\n baseImage.bitmap.data[dstIdx + 3] = this.constructor.limit255(\n blended.a * 255\n );\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n}\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/constants.js b/WechatBot/node_modules/@jimp/core/dist/constants.js deleted file mode 100755 index 0c0c85229..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/constants.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.EDGE_CROP = exports.EDGE_WRAP = exports.EDGE_EXTEND = exports.BLEND_EXCLUSION = exports.BLEND_DIFFERENCE = exports.BLEND_HARDLIGHT = exports.BLEND_LIGHTEN = exports.BLEND_DARKEN = exports.BLEND_OVERLAY = exports.BLEND_SCREEN = exports.BLEND_ADD = exports.BLEND_MULTIPLY = exports.BLEND_DESTINATION_OVER = exports.BLEND_SOURCE_OVER = exports.VERTICAL_ALIGN_BOTTOM = exports.VERTICAL_ALIGN_MIDDLE = exports.VERTICAL_ALIGN_TOP = exports.HORIZONTAL_ALIGN_RIGHT = exports.HORIZONTAL_ALIGN_CENTER = exports.HORIZONTAL_ALIGN_LEFT = exports.AUTO = void 0; -// used to auto resizing etc. -var AUTO = -1; // Align modes for cover, contain, bit masks - -exports.AUTO = AUTO; -var HORIZONTAL_ALIGN_LEFT = 1; -exports.HORIZONTAL_ALIGN_LEFT = HORIZONTAL_ALIGN_LEFT; -var HORIZONTAL_ALIGN_CENTER = 2; -exports.HORIZONTAL_ALIGN_CENTER = HORIZONTAL_ALIGN_CENTER; -var HORIZONTAL_ALIGN_RIGHT = 4; -exports.HORIZONTAL_ALIGN_RIGHT = HORIZONTAL_ALIGN_RIGHT; -var VERTICAL_ALIGN_TOP = 8; -exports.VERTICAL_ALIGN_TOP = VERTICAL_ALIGN_TOP; -var VERTICAL_ALIGN_MIDDLE = 16; -exports.VERTICAL_ALIGN_MIDDLE = VERTICAL_ALIGN_MIDDLE; -var VERTICAL_ALIGN_BOTTOM = 32; // blend modes - -exports.VERTICAL_ALIGN_BOTTOM = VERTICAL_ALIGN_BOTTOM; -var BLEND_SOURCE_OVER = "srcOver"; -exports.BLEND_SOURCE_OVER = BLEND_SOURCE_OVER; -var BLEND_DESTINATION_OVER = "dstOver"; -exports.BLEND_DESTINATION_OVER = BLEND_DESTINATION_OVER; -var BLEND_MULTIPLY = "multiply"; -exports.BLEND_MULTIPLY = BLEND_MULTIPLY; -var BLEND_ADD = "add"; -exports.BLEND_ADD = BLEND_ADD; -var BLEND_SCREEN = "screen"; -exports.BLEND_SCREEN = BLEND_SCREEN; -var BLEND_OVERLAY = "overlay"; -exports.BLEND_OVERLAY = BLEND_OVERLAY; -var BLEND_DARKEN = "darken"; -exports.BLEND_DARKEN = BLEND_DARKEN; -var BLEND_LIGHTEN = "lighten"; -exports.BLEND_LIGHTEN = BLEND_LIGHTEN; -var BLEND_HARDLIGHT = "hardLight"; -exports.BLEND_HARDLIGHT = BLEND_HARDLIGHT; -var BLEND_DIFFERENCE = "difference"; -exports.BLEND_DIFFERENCE = BLEND_DIFFERENCE; -var BLEND_EXCLUSION = "exclusion"; // Edge Handling - -exports.BLEND_EXCLUSION = BLEND_EXCLUSION; -var EDGE_EXTEND = 1; -exports.EDGE_EXTEND = EDGE_EXTEND; -var EDGE_WRAP = 2; -exports.EDGE_WRAP = EDGE_WRAP; -var EDGE_CROP = 3; -exports.EDGE_CROP = EDGE_CROP; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/constants.js.map b/WechatBot/node_modules/@jimp/core/dist/constants.js.map deleted file mode 100644 index b9b18e6d4..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/constants.js"],"names":["AUTO","HORIZONTAL_ALIGN_LEFT","HORIZONTAL_ALIGN_CENTER","HORIZONTAL_ALIGN_RIGHT","VERTICAL_ALIGN_TOP","VERTICAL_ALIGN_MIDDLE","VERTICAL_ALIGN_BOTTOM","BLEND_SOURCE_OVER","BLEND_DESTINATION_OVER","BLEND_MULTIPLY","BLEND_ADD","BLEND_SCREEN","BLEND_OVERLAY","BLEND_DARKEN","BLEND_LIGHTEN","BLEND_HARDLIGHT","BLEND_DIFFERENCE","BLEND_EXCLUSION","EDGE_EXTEND","EDGE_WRAP","EDGE_CROP"],"mappings":";;;;;;AAAA;AACO,IAAMA,IAAI,GAAG,CAAC,CAAd,C,CAEP;;;AACO,IAAMC,qBAAqB,GAAG,CAA9B;;AACA,IAAMC,uBAAuB,GAAG,CAAhC;;AACA,IAAMC,sBAAsB,GAAG,CAA/B;;AAEA,IAAMC,kBAAkB,GAAG,CAA3B;;AACA,IAAMC,qBAAqB,GAAG,EAA9B;;AACA,IAAMC,qBAAqB,GAAG,EAA9B,C,CAEP;;;AACO,IAAMC,iBAAiB,GAAG,SAA1B;;AACA,IAAMC,sBAAsB,GAAG,SAA/B;;AACA,IAAMC,cAAc,GAAG,UAAvB;;AACA,IAAMC,SAAS,GAAG,KAAlB;;AACA,IAAMC,YAAY,GAAG,QAArB;;AACA,IAAMC,aAAa,GAAG,SAAtB;;AACA,IAAMC,YAAY,GAAG,QAArB;;AACA,IAAMC,aAAa,GAAG,SAAtB;;AACA,IAAMC,eAAe,GAAG,WAAxB;;AACA,IAAMC,gBAAgB,GAAG,YAAzB;;AACA,IAAMC,eAAe,GAAG,WAAxB,C,CAEP;;;AACO,IAAMC,WAAW,GAAG,CAApB;;AACA,IAAMC,SAAS,GAAG,CAAlB;;AACA,IAAMC,SAAS,GAAG,CAAlB","sourcesContent":["// used to auto resizing etc.\nexport const AUTO = -1;\n\n// Align modes for cover, contain, bit masks\nexport const HORIZONTAL_ALIGN_LEFT = 1;\nexport const HORIZONTAL_ALIGN_CENTER = 2;\nexport const HORIZONTAL_ALIGN_RIGHT = 4;\n\nexport const VERTICAL_ALIGN_TOP = 8;\nexport const VERTICAL_ALIGN_MIDDLE = 16;\nexport const VERTICAL_ALIGN_BOTTOM = 32;\n\n// blend modes\nexport const BLEND_SOURCE_OVER = \"srcOver\";\nexport const BLEND_DESTINATION_OVER = \"dstOver\";\nexport const BLEND_MULTIPLY = \"multiply\";\nexport const BLEND_ADD = \"add\";\nexport const BLEND_SCREEN = \"screen\";\nexport const BLEND_OVERLAY = \"overlay\";\nexport const BLEND_DARKEN = \"darken\";\nexport const BLEND_LIGHTEN = \"lighten\";\nexport const BLEND_HARDLIGHT = \"hardLight\";\nexport const BLEND_DIFFERENCE = \"difference\";\nexport const BLEND_EXCLUSION = \"exclusion\";\n\n// Edge Handling\nexport const EDGE_EXTEND = 1;\nexport const EDGE_WRAP = 2;\nexport const EDGE_CROP = 3;\n"],"file":"constants.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/index.js b/WechatBot/node_modules/@jimp/core/dist/index.js deleted file mode 100755 index 34f87fdd9..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/index.js +++ /dev/null @@ -1,1292 +0,0 @@ -"use strict"; - -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.addConstants = addConstants; -exports.addJimpMethods = addJimpMethods; -exports.jimpEvMethod = jimpEvMethod; -exports.jimpEvChange = jimpEvChange; -Object.defineProperty(exports, "addType", { - enumerable: true, - get: function get() { - return MIME.addType; - } -}); -exports["default"] = void 0; - -var _construct2 = _interopRequireDefault(require("@babel/runtime/helpers/construct")); - -var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); - -var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck")); - -var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass")); - -var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn")); - -var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf")); - -var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized")); - -var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits")); - -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); - -var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); - -var _fs = _interopRequireDefault(require("fs")); - -var _path = _interopRequireDefault(require("path")); - -var _events = _interopRequireDefault(require("events")); - -var _utils = require("@jimp/utils"); - -var _anyBase = _interopRequireDefault(require("any-base")); - -var _mkdirp = _interopRequireDefault(require("mkdirp")); - -var _pixelmatch = _interopRequireDefault(require("pixelmatch")); - -var _tinycolor = _interopRequireDefault(require("tinycolor2")); - -var _phash = _interopRequireDefault(require("./modules/phash")); - -var _request = _interopRequireDefault(require("./request")); - -var _composite = _interopRequireDefault(require("./composite")); - -var _promisify = _interopRequireDefault(require("./utils/promisify")); - -var MIME = _interopRequireWildcard(require("./utils/mime")); - -var _imageBitmap = require("./utils/image-bitmap"); - -var constants = _interopRequireWildcard(require("./constants")); - -var alphabet = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_"; // an array storing the maximum string length of hashes at various bases -// 0 and 1 do not exist as possible hash lengths - -var maxHashLength = [NaN, NaN]; - -for (var i = 2; i < 65; i++) { - var maxHash = (0, _anyBase["default"])(_anyBase["default"].BIN, alphabet.slice(0, i))(new Array(64 + 1).join("1")); - maxHashLength.push(maxHash.length); -} // no operation - - -function noop() {} // error checking methods - - -function isArrayBuffer(test) { - return Object.prototype.toString.call(test).toLowerCase().indexOf("arraybuffer") > -1; -} // Prepare a Buffer object from the arrayBuffer. Necessary in the browser > node conversion, -// But this function is not useful when running in node directly - - -function bufferFromArrayBuffer(arrayBuffer) { - var buffer = Buffer.alloc(arrayBuffer.byteLength); - var view = new Uint8Array(arrayBuffer); - - for (var _i = 0; _i < buffer.length; ++_i) { - buffer[_i] = view[_i]; - } - - return buffer; -} - -function loadFromURL(options, cb) { - (0, _request["default"])(options, function (err, response, data) { - if (err) { - return cb(err); - } - - if ("headers" in response && "location" in response.headers) { - options.url = response.headers.location; - return loadFromURL(options, cb); - } - - if ((0, _typeof2["default"])(data) === "object" && Buffer.isBuffer(data)) { - return cb(null, data); - } - - var msg = "Could not load Buffer from <" + options.url + "> " + "(HTTP: " + response.statusCode + ")"; - return new Error(msg); - }); -} - -function loadBufferFromPath(src, cb) { - if (_fs["default"] && typeof _fs["default"].readFile === "function" && !src.match(/^(http|ftp)s?:\/\/./)) { - _fs["default"].readFile(src, cb); - } else { - loadFromURL({ - url: src - }, cb); - } -} - -function isRawRGBAData(obj) { - return obj && (0, _typeof2["default"])(obj) === "object" && typeof obj.width === "number" && typeof obj.height === "number" && (Buffer.isBuffer(obj.data) || obj.data instanceof Uint8Array || typeof Uint8ClampedArray === "function" && obj.data instanceof Uint8ClampedArray) && (obj.data.length === obj.width * obj.height * 4 || obj.data.length === obj.width * obj.height * 3); -} - -function makeRGBABufferFromRGB(buffer) { - if (buffer.length % 3 !== 0) { - throw new Error("Buffer length is incorrect"); - } - - var rgbaBuffer = Buffer.allocUnsafe(buffer.length / 3 * 4); - var j = 0; - - for (var _i2 = 0; _i2 < buffer.length; _i2++) { - rgbaBuffer[j] = buffer[_i2]; - - if ((_i2 + 1) % 3 === 0) { - rgbaBuffer[++j] = 255; - } - - j++; - } - - return rgbaBuffer; -} - -var emptyBitmap = { - data: null, - width: null, - height: null -}; -/** - * Jimp constructor (from a file) - * @param path a path to the image - * @param {function(Error, Jimp)} cb (optional) a function to call when the image is parsed to a bitmap - */ - -/** - * Jimp constructor (from a url with options) - * @param options { url, otherOptions} - * @param {function(Error, Jimp)} cb (optional) a function to call when the image is parsed to a bitmap - */ - -/** - * Jimp constructor (from another Jimp image or raw image data) - * @param image a Jimp image to clone - * @param {function(Error, Jimp)} cb a function to call when the image is parsed to a bitmap - */ - -/** - * Jimp constructor (from a Buffer) - * @param data a Buffer containing the image data - * @param {function(Error, Jimp)} cb a function to call when the image is parsed to a bitmap - */ - -/** - * Jimp constructor (to generate a new image) - * @param w the width of the image - * @param h the height of the image - * @param {function(Error, Jimp)} cb (optional) a function to call when the image is parsed to a bitmap - */ - -/** - * Jimp constructor (to generate a new image) - * @param w the width of the image - * @param h the height of the image - * @param background color to fill the image with - * @param {function(Error, Jimp)} cb (optional) a function to call when the image is parsed to a bitmap - */ - -var Jimp = -/*#__PURE__*/ -function (_EventEmitter) { - (0, _inherits2["default"])(Jimp, _EventEmitter); - - // An object representing a bitmap in memory, comprising: - // - data: a buffer of the bitmap data - // - width: the width of the image in pixels - // - height: the height of the image in pixels - // Default colour to use for new pixels - // Default MIME is PNG - // Exif data for the image - // Whether Transparency supporting formats will be exported as RGB or RGBA - function Jimp() { - var _this; - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - (0, _classCallCheck2["default"])(this, Jimp); - _this = (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(Jimp).call(this)); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "bitmap", emptyBitmap); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "_background", 0x00000000); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "_originalMime", Jimp.MIME_PNG); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "_exif", null); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "_rgba", true); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "writeAsync", function (path) { - return (0, _promisify["default"])(_this.write, (0, _assertThisInitialized2["default"])(_this), path); - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getBase64Async", function (mime) { - return (0, _promisify["default"])(_this.getBase64, (0, _assertThisInitialized2["default"])(_this), mime); - }); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getBuffer", _imageBitmap.getBuffer); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getBufferAsync", _imageBitmap.getBufferAsync); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getPixelColour", _this.getPixelColor); - (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "setPixelColour", _this.setPixelColor); - var jimpInstance = (0, _assertThisInitialized2["default"])(_this); - var cb = noop; - - if (isArrayBuffer(args[0])) { - args[0] = bufferFromArrayBuffer(args[0]); - } - - function finish() { - for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { - args[_key2] = arguments[_key2]; - } - - var err = args[0]; - var evData = err || {}; - evData.methodName = "constructor"; - setTimeout(function () { - var _cb; - - // run on next tick. - if (err && cb === noop) { - jimpInstance.emitError("constructor", err); - } else if (!err) { - jimpInstance.emitMulti("constructor", "initialized"); - } - - (_cb = cb).call.apply(_cb, [jimpInstance].concat(args)); - }, 1); - } - - if (typeof args[0] === "number" && typeof args[1] === "number" || parseInt(args[0], 10) && parseInt(args[1], 10)) { - // create a new image - var w = parseInt(args[0], 10); - var h = parseInt(args[1], 10); - cb = args[2]; // with a hex color - - if (typeof args[2] === "number") { - _this._background = args[2]; - cb = args[3]; - } // with a css color - - - if (typeof args[2] === "string") { - _this._background = Jimp.cssColorToHex(args[2]); - cb = args[3]; - } - - if (typeof cb === "undefined") { - cb = noop; - } - - if (typeof cb !== "function") { - return (0, _possibleConstructorReturn2["default"])(_this, _utils.throwError.call((0, _assertThisInitialized2["default"])(_this), "cb must be a function", finish)); - } - - _this.bitmap = { - data: Buffer.alloc(w * h * 4), - width: w, - height: h - }; - - for (var _i3 = 0; _i3 < _this.bitmap.data.length; _i3 += 4) { - _this.bitmap.data.writeUInt32BE(_this._background, _i3); - } - - finish(null, (0, _assertThisInitialized2["default"])(_this)); - } else if ((0, _typeof2["default"])(args[0]) === "object" && args[0].url) { - cb = args[1] || noop; - - if (typeof cb !== "function") { - return (0, _possibleConstructorReturn2["default"])(_this, _utils.throwError.call((0, _assertThisInitialized2["default"])(_this), "cb must be a function", finish)); - } - - loadFromURL(args[0], function (err, data) { - if (err) { - return _utils.throwError.call((0, _assertThisInitialized2["default"])(_this), err, finish); - } - - _this.parseBitmap(data, args[0].url, finish); - }); - } else if (args[0] instanceof Jimp) { - // clone an existing Jimp - var original = args[0]; - cb = args[1]; - - if (typeof cb === "undefined") { - cb = noop; - } - - if (typeof cb !== "function") { - return (0, _possibleConstructorReturn2["default"])(_this, _utils.throwError.call((0, _assertThisInitialized2["default"])(_this), "cb must be a function", finish)); - } - - _this.bitmap = { - data: Buffer.from(original.bitmap.data), - width: original.bitmap.width, - height: original.bitmap.height - }; - _this._quality = original._quality; - _this._deflateLevel = original._deflateLevel; - _this._deflateStrategy = original._deflateStrategy; - _this._filterType = original._filterType; - _this._rgba = original._rgba; - _this._background = original._background; - _this._originalMime = original._originalMime; - finish(null, (0, _assertThisInitialized2["default"])(_this)); - } else if (isRawRGBAData(args[0])) { - var imageData = args[0]; - cb = args[1] || noop; - var isRGBA = imageData.width * imageData.height * 4 === imageData.data.length; - var buffer = isRGBA ? Buffer.from(imageData.data) : makeRGBABufferFromRGB(imageData.data); - _this.bitmap = { - data: buffer, - width: imageData.width, - height: imageData.height - }; - finish(null, (0, _assertThisInitialized2["default"])(_this)); - } else if (typeof args[0] === "string") { - // read from a path - var path = args[0]; - cb = args[1]; - - if (typeof cb === "undefined") { - cb = noop; - } - - if (typeof cb !== "function") { - return (0, _possibleConstructorReturn2["default"])(_this, _utils.throwError.call((0, _assertThisInitialized2["default"])(_this), "cb must be a function", finish)); - } - - loadBufferFromPath(path, function (err, data) { - if (err) { - return _utils.throwError.call((0, _assertThisInitialized2["default"])(_this), err, finish); - } - - _this.parseBitmap(data, path, finish); - }); - } else if ((0, _typeof2["default"])(args[0]) === "object" && Buffer.isBuffer(args[0])) { - // read from a buffer - var data = args[0]; - cb = args[1]; - - if (typeof cb !== "function") { - return (0, _possibleConstructorReturn2["default"])(_this, _utils.throwError.call((0, _assertThisInitialized2["default"])(_this), "cb must be a function", finish)); - } - - _this.parseBitmap(data, null, finish); - } else { - // Allow client libs to add new ways to build a Jimp object. - // Extra constructors must be added by `Jimp.appendConstructorOption()` - cb = args[args.length - 1]; - - if (typeof cb !== "function") { - // TODO: try to solve the args after cb problem. - cb = args[args.length - 2]; - - if (typeof cb !== "function") { - cb = noop; - } - } - - var extraConstructor = Jimp.__extraConstructors.find(function (c) { - return c.test.apply(c, args); - }); - - if (extraConstructor) { - new Promise(function (resolve, reject) { - var _extraConstructor$run; - - (_extraConstructor$run = extraConstructor.run).call.apply(_extraConstructor$run, [(0, _assertThisInitialized2["default"])(_this), resolve, reject].concat(args)); - }).then(function () { - return finish(null, (0, _assertThisInitialized2["default"])(_this)); - })["catch"](finish); - } else { - return (0, _possibleConstructorReturn2["default"])(_this, _utils.throwError.call((0, _assertThisInitialized2["default"])(_this), "No matching constructor overloading was found. " + "Please see the docs for how to call the Jimp constructor.", finish)); - } - } - - return _this; - } - /** - * Parse a bitmap with the loaded image types. - * - * @param {Buffer} data raw image data - * @param {string} path optional path to file - * @param {function(Error, Jimp)} finish (optional) a callback for when complete - * @memberof Jimp - */ - - - (0, _createClass2["default"])(Jimp, [{ - key: "parseBitmap", - value: function parseBitmap(data, path, finish) { - _imageBitmap.parseBitmap.call(this, data, null, finish); - } - /** - * Sets the type of the image (RGB or RGBA) when saving in a format that supports transparency (default is RGBA) - * @param {boolean} bool A Boolean, true to use RGBA or false to use RGB - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - - }, { - key: "rgba", - value: function rgba(bool, cb) { - if (typeof bool !== "boolean") { - return _utils.throwError.call(this, "bool must be a boolean, true for RGBA or false for RGB", cb); - } - - this._rgba = bool; - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - /** - * Emit for multiple listeners - * @param {string} methodName name of the method to emit an error for - * @param {string} eventName name of the eventName to emit an error for - * @param {object} data to emit - */ - - }, { - key: "emitMulti", - value: function emitMulti(methodName, eventName) { - var data = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - data = Object.assign(data, { - methodName: methodName, - eventName: eventName - }); - this.emit("any", data); - - if (methodName) { - this.emit(methodName, data); - } - - this.emit(eventName, data); - } - }, { - key: "emitError", - value: function emitError(methodName, err) { - this.emitMulti(methodName, "error", err); - } - /** - * Get the current height of the image - * @return {number} height of the image - */ - - }, { - key: "getHeight", - value: function getHeight() { - return this.bitmap.height; - } - /** - * Get the current width of the image - * @return {number} width of the image - */ - - }, { - key: "getWidth", - value: function getWidth() { - return this.bitmap.width; - } - /** - * Nicely format Jimp object when sent to the console e.g. console.log(image) - * @returns {string} pretty printed - */ - - }, { - key: "inspect", - value: function inspect() { - return ""; - } - /** - * Nicely format Jimp object when converted to a string - * @returns {string} pretty printed - */ - - }, { - key: "toString", - value: function toString() { - return "[object Jimp]"; - } - /** - * Returns the original MIME of the image (default: "image/png") - * @returns {string} the MIME - */ - - }, { - key: "getMIME", - value: function getMIME() { - var mime = this._originalMime || Jimp.MIME_PNG; - return mime; - } - /** - * Returns the appropriate file extension for the original MIME of the image (default: "png") - * @returns {string} the file extension - */ - - }, { - key: "getExtension", - value: function getExtension() { - var mime = this.getMIME(); - return MIME.getExtension(mime); - } - /** - * Writes the image to a file - * @param {string} path a path to the destination file - * @param {function(Error, Jimp)} cb (optional) a function to call when the image is saved to disk - * @returns {Jimp} this for chaining of methods - */ - - }, { - key: "write", - value: function write(path, cb) { - var _this2 = this; - - if (!_fs["default"] || !_fs["default"].createWriteStream) { - throw new Error("Cant access the filesystem. You can use the getBase64 method."); - } - - if (typeof path !== "string") { - return _utils.throwError.call(this, "path must be a string", cb); - } - - if (typeof cb === "undefined") { - cb = noop; - } - - if (typeof cb !== "function") { - return _utils.throwError.call(this, "cb must be a function", cb); - } - - var mime = MIME.getType(path) || this.getMIME(); - - var pathObj = _path["default"].parse(path); - - if (pathObj.dir) { - _mkdirp["default"].sync(pathObj.dir); - } - - this.getBuffer(mime, function (err, buffer) { - if (err) { - return _utils.throwError.call(_this2, err, cb); - } - - var stream = _fs["default"].createWriteStream(path); - - stream.on("open", function () { - stream.write(buffer); - stream.end(); - }).on("error", function (err) { - return _utils.throwError.call(_this2, err, cb); - }); - stream.on("finish", function () { - cb.call(_this2, null, _this2); - }); - }); - return this; - } - }, { - key: "getBase64", - - /** - * Converts the image to a base 64 string - * @param {string} mime the mime type of the image data to be created - * @param {function(Error, Jimp)} cb a Node-style function to call with the buffer as the second argument - * @returns {Jimp} this for chaining of methods - */ - value: function getBase64(mime, cb) { - if (mime === Jimp.AUTO) { - // allow auto MIME detection - mime = this.getMIME(); - } - - if (typeof mime !== "string") { - return _utils.throwError.call(this, "mime must be a string", cb); - } - - if (typeof cb !== "function") { - return _utils.throwError.call(this, "cb must be a function", cb); - } - - this.getBuffer(mime, function (err, data) { - if (err) { - return _utils.throwError.call(this, err, cb); - } - - var src = "data:" + mime + ";base64," + data.toString("base64"); - cb.call(this, null, src); - }); - return this; - } - }, { - key: "hash", - - /** - * Generates a perceptual hash of the image . And pads the string. Can configure base. - * @param {number} base (optional) a number between 2 and 64 representing the base for the hash (e.g. 2 is binary, 10 is decimal, 16 is hex, 64 is base 64). Defaults to 64. - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {string} a string representing the hash - */ - value: function hash(base, cb) { - base = base || 64; - - if (typeof base === "function") { - cb = base; - base = 64; - } - - if (typeof base !== "number") { - return _utils.throwError.call(this, "base must be a number", cb); - } - - if (base < 2 || base > 64) { - return _utils.throwError.call(this, "base must be a number between 2 and 64", cb); - } - - var hash = this.pHash(); - hash = (0, _anyBase["default"])(_anyBase["default"].BIN, alphabet.slice(0, base))(hash); - - while (hash.length < maxHashLength[base]) { - hash = "0" + hash; // pad out with leading zeros - } - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, hash); - } - - return hash; - } - /** - * Calculates the perceptual hash - * @returns {number} the perceptual hash - */ - - }, { - key: "pHash", - value: function pHash() { - var pHash = new _phash["default"](); - return pHash.getHash(this); - } - /** - * Calculates the hamming distance of the current image and a hash based on their perceptual hash - * @param {hash} compareHash hash to compare to - * @returns {number} a number ranging from 0 to 1, 0 means they are believed to be identical - */ - - }, { - key: "distanceFromHash", - value: function distanceFromHash(compareHash) { - var pHash = new _phash["default"](); - var currentHash = pHash.getHash(this); - return pHash.distance(currentHash, compareHash); - } - /** - * Converts the image to a buffer - * @param {string} mime the mime type of the image buffer to be created - * @param {function(Error, Jimp)} cb a Node-style function to call with the buffer as the second argument - * @returns {Jimp} this for chaining of methods - */ - - }, { - key: "getPixelIndex", - - /** - * Returns the offset of a pixel in the bitmap buffer - * @param {number} x the x coordinate - * @param {number} y the y coordinate - * @param {number} edgeHandling (optional) define how to sum pixels from outside the border - * @param {number} cb (optional) a callback for when complete - * @returns {number} the index of the pixel or -1 if not found - */ - value: function getPixelIndex(x, y, edgeHandling, cb) { - var xi; - var yi; - - if (typeof edgeHandling === "function" && typeof cb === "undefined") { - cb = edgeHandling; - edgeHandling = null; - } - - if (!edgeHandling) { - edgeHandling = Jimp.EDGE_EXTEND; - } - - if (typeof x !== "number" || typeof y !== "number") { - return _utils.throwError.call(this, "x and y must be numbers", cb); - } // round input - - - x = Math.round(x); - y = Math.round(y); - xi = x; - yi = y; - - if (edgeHandling === Jimp.EDGE_EXTEND) { - if (x < 0) xi = 0; - if (x >= this.bitmap.width) xi = this.bitmap.width - 1; - if (y < 0) yi = 0; - if (y >= this.bitmap.height) yi = this.bitmap.height - 1; - } - - if (edgeHandling === Jimp.EDGE_WRAP) { - if (x < 0) { - xi = this.bitmap.width + x; - } - - if (x >= this.bitmap.width) { - xi = x % this.bitmap.width; - } - - if (y < 0) { - xi = this.bitmap.height + y; - } - - if (y >= this.bitmap.height) { - yi = y % this.bitmap.height; - } - } - - var i = this.bitmap.width * yi + xi << 2; // if out of bounds index is -1 - - if (xi < 0 || xi >= this.bitmap.width) { - i = -1; - } - - if (yi < 0 || yi >= this.bitmap.height) { - i = -1; - } - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, i); - } - - return i; - } - /** - * Returns the hex colour value of a pixel - * @param {number} x the x coordinate - * @param {number} y the y coordinate - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {number} the color of the pixel - */ - - }, { - key: "getPixelColor", - value: function getPixelColor(x, y, cb) { - if (typeof x !== "number" || typeof y !== "number") return _utils.throwError.call(this, "x and y must be numbers", cb); // round input - - x = Math.round(x); - y = Math.round(y); - var idx = this.getPixelIndex(x, y); - var hex = this.bitmap.data.readUInt32BE(idx); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, hex); - } - - return hex; - } - }, { - key: "setPixelColor", - - /** - * Returns the hex colour value of a pixel - * @param {number} hex color to set - * @param {number} x the x coordinate - * @param {number} y the y coordinate - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {number} the index of the pixel or -1 if not found - */ - value: function setPixelColor(hex, x, y, cb) { - if (typeof hex !== "number" || typeof x !== "number" || typeof y !== "number") return _utils.throwError.call(this, "hex, x and y must be numbers", cb); // round input - - x = Math.round(x); - y = Math.round(y); - var idx = this.getPixelIndex(x, y); - this.bitmap.data.writeUInt32BE(hex, idx); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }, { - key: "hasAlpha", - - /** - * Determine if the image contains opaque pixels. - * @return {boolean} hasAlpha whether the image contains opaque pixels - */ - value: function hasAlpha() { - for (var yIndex = 0; yIndex < this.bitmap.height; yIndex++) { - for (var xIndex = 0; xIndex < this.bitmap.width; xIndex++) { - var idx = this.bitmap.width * yIndex + xIndex << 2; - var alpha = this.bitmap.data[idx + 3]; - - if (alpha !== 0xff) { - return true; - } - } - } - - return false; - } - /** - * Iterate scan through a region of the bitmap - * @param {number} x the x coordinate to begin the scan at - * @param {number} y the y coordinate to begin the scan at - * @param w the width of the scan region - * @param h the height of the scan region - * @returns {IterableIterator<{x: number, y: number, idx: number, image: Jimp}>} - */ - - }, { - key: "scanIterator", - value: function scanIterator(x, y, w, h) { - if (typeof x !== "number" || typeof y !== "number") { - return _utils.throwError.call(this, "x and y must be numbers"); - } - - if (typeof w !== "number" || typeof h !== "number") { - return _utils.throwError.call(this, "w and h must be numbers"); - } - - return (0, _utils.scanIterator)(this, x, y, w, h); - } - }]); - return Jimp; -}(_events["default"]); - -function addConstants(constants) { - var jimpInstance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Jimp; - Object.entries(constants).forEach(function (_ref) { - var _ref2 = (0, _slicedToArray2["default"])(_ref, 2), - name = _ref2[0], - value = _ref2[1]; - - jimpInstance[name] = value; - }); -} - -function addJimpMethods(methods) { - var jimpInstance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Jimp; - Object.entries(methods).forEach(function (_ref3) { - var _ref4 = (0, _slicedToArray2["default"])(_ref3, 2), - name = _ref4[0], - value = _ref4[1]; - - jimpInstance.prototype[name] = value; - }); -} - -addConstants(constants); -addJimpMethods({ - composite: _composite["default"] -}); -Jimp.__extraConstructors = []; -/** - * Allow client libs to add new ways to build a Jimp object. - * @param {string} name identify the extra constructor. - * @param {function} test a function that returns true when it accepts the arguments passed to the main constructor. - * @param {function} run where the magic happens. - */ - -Jimp.appendConstructorOption = function (name, test, run) { - Jimp.__extraConstructors.push({ - name: name, - test: test, - run: run - }); -}; -/** - * Read an image from a file or a Buffer. Takes the same args as the constructor - * @returns {Promise} a promise - */ - - -Jimp.read = function () { - for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) { - args[_key3] = arguments[_key3]; - } - - return new Promise(function (resolve, reject) { - // eslint-disable-next-line no-new - (0, _construct2["default"])(Jimp, args.concat([function (err, image) { - if (err) reject(err);else resolve(image); - }])); - }); -}; - -Jimp.create = Jimp.read; -/** - * A static helper method that converts RGBA values to a single integer value - * @param {number} r the red value (0-255) - * @param {number} g the green value (0-255) - * @param {number} b the blue value (0-255) - * @param {number} a the alpha value (0-255) - * @param {function(Error, Jimp)} cb (optional) A callback for when complete - * @returns {number} an single integer colour value - */ - -Jimp.rgbaToInt = function (r, g, b, a, cb) { - if (typeof r !== "number" || typeof g !== "number" || typeof b !== "number" || typeof a !== "number") { - return _utils.throwError.call(this, "r, g, b and a must be numbers", cb); - } - - if (r < 0 || r > 255) { - return _utils.throwError.call(this, "r must be between 0 and 255", cb); - } - - if (g < 0 || g > 255) { - _utils.throwError.call(this, "g must be between 0 and 255", cb); - } - - if (b < 0 || b > 255) { - return _utils.throwError.call(this, "b must be between 0 and 255", cb); - } - - if (a < 0 || a > 255) { - return _utils.throwError.call(this, "a must be between 0 and 255", cb); - } - - r = Math.round(r); - b = Math.round(b); - g = Math.round(g); - a = Math.round(a); - var i = r * Math.pow(256, 3) + g * Math.pow(256, 2) + b * Math.pow(256, 1) + a * Math.pow(256, 0); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, i); - } - - return i; -}; -/** - * A static helper method that converts RGBA values to a single integer value - * @param {number} i a single integer value representing an RGBA colour (e.g. 0xFF0000FF for red) - * @param {function(Error, Jimp)} cb (optional) A callback for when complete - * @returns {object} an object with the properties r, g, b and a representing RGBA values - */ - - -Jimp.intToRGBA = function (i, cb) { - if (typeof i !== "number") { - return _utils.throwError.call(this, "i must be a number", cb); - } - - var rgba = {}; - rgba.r = Math.floor(i / Math.pow(256, 3)); - rgba.g = Math.floor((i - rgba.r * Math.pow(256, 3)) / Math.pow(256, 2)); - rgba.b = Math.floor((i - rgba.r * Math.pow(256, 3) - rgba.g * Math.pow(256, 2)) / Math.pow(256, 1)); - rgba.a = Math.floor((i - rgba.r * Math.pow(256, 3) - rgba.g * Math.pow(256, 2) - rgba.b * Math.pow(256, 1)) / Math.pow(256, 0)); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, rgba); - } - - return rgba; -}; -/** - * Converts a css color (Hex, 8-digit (RGBA) Hex, RGB, RGBA, HSL, HSLA, HSV, HSVA, Named) to a hex number - * @param {string} cssColor a number - * @returns {number} a hex number representing a color - */ - - -Jimp.cssColorToHex = function (cssColor) { - cssColor = cssColor || 0; // 0, null, undefined, NaN - - if (typeof cssColor === "number") return Number(cssColor); - return parseInt((0, _tinycolor["default"])(cssColor).toHex8(), 16); -}; -/** - * Limits a number to between 0 or 255 - * @param {number} n a number - * @returns {number} the number limited to between 0 or 255 - */ - - -Jimp.limit255 = function (n) { - n = Math.max(n, 0); - n = Math.min(n, 255); - return n; -}; -/** - * Diffs two images and returns - * @param {Jimp} img1 a Jimp image to compare - * @param {Jimp} img2 a Jimp image to compare - * @param {number} threshold (optional) a number, 0 to 1, the smaller the value the more sensitive the comparison (default: 0.1) - * @returns {object} an object { percent: percent similar, diff: a Jimp image highlighting differences } - */ - - -Jimp.diff = function (img1, img2) { - var threshold = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0.1; - if (!(img1 instanceof Jimp) || !(img2 instanceof Jimp)) return _utils.throwError.call(this, "img1 and img2 must be an Jimp images"); - var bmp1 = img1.bitmap; - var bmp2 = img2.bitmap; - - if (bmp1.width !== bmp2.width || bmp1.height !== bmp2.height) { - if (bmp1.width * bmp1.height > bmp2.width * bmp2.height) { - // img1 is bigger - img1 = img1.cloneQuiet().resize(bmp2.width, bmp2.height); - } else { - // img2 is bigger (or they are the same in area) - img2 = img2.cloneQuiet().resize(bmp1.width, bmp1.height); - } - } - - if (typeof threshold !== "number" || threshold < 0 || threshold > 1) { - return _utils.throwError.call(this, "threshold must be a number between 0 and 1"); - } - - var diff = new Jimp(bmp1.width, bmp1.height, 0xffffffff); - var numDiffPixels = (0, _pixelmatch["default"])(bmp1.data, bmp2.data, diff.bitmap.data, diff.bitmap.width, diff.bitmap.height, { - threshold: threshold - }); - return { - percent: numDiffPixels / (diff.bitmap.width * diff.bitmap.height), - image: diff - }; -}; -/** - * Calculates the hamming distance of two images based on their perceptual hash - * @param {Jimp} img1 a Jimp image to compare - * @param {Jimp} img2 a Jimp image to compare - * @returns {number} a number ranging from 0 to 1, 0 means they are believed to be identical - */ - - -Jimp.distance = function (img1, img2) { - var phash = new _phash["default"](); - var hash1 = phash.getHash(img1); - var hash2 = phash.getHash(img2); - return phash.distance(hash1, hash2); -}; -/** - * Calculates the hamming distance of two images based on their perceptual hash - * @param {hash} hash1 a pHash - * @param {hash} hash2 a pHash - * @returns {number} a number ranging from 0 to 1, 0 means they are believed to be identical - */ - - -Jimp.compareHashes = function (hash1, hash2) { - var phash = new _phash["default"](); - return phash.distance(hash1, hash2); -}; -/** - * Compute color difference - * 0 means no difference, 1 means maximum difference. - * @param {number} rgba1: first color to compare. - * @param {number} rgba2: second color to compare. - * Both parameters must be an color object {r:val, g:val, b:val, a:val} - * Where `a` is optional and `val` is an integer between 0 and 255. - * @returns {number} float between 0 and 1. - */ - - -Jimp.colorDiff = function (rgba1, rgba2) { - var pow = function pow(n) { - return Math.pow(n, 2); - }; - - var max = Math.max; - var maxVal = 255 * 255 * 3; - - if (rgba1.a !== 0 && !rgba1.a) { - rgba1.a = 255; - } - - if (rgba2.a !== 0 && !rgba2.a) { - rgba2.a = 255; - } - - return (max(pow(rgba1.r - rgba2.r), pow(rgba1.r - rgba2.r - rgba1.a + rgba2.a)) + max(pow(rgba1.g - rgba2.g), pow(rgba1.g - rgba2.g - rgba1.a + rgba2.a)) + max(pow(rgba1.b - rgba2.b), pow(rgba1.b - rgba2.b - rgba1.a + rgba2.a))) / maxVal; -}; -/** - * Helper to create Jimp methods that emit events before and after its execution. - * @param {string} methodName The name to be appended to Jimp prototype. - * @param {string} evName The event name to be called. - * It will be prefixed by `before-` and emitted when on method call. - * It will be appended by `ed` and emitted after the method run. - * @param {function} method A function implementing the method itself. - * It will also create a quiet version that will not emit events, to not - * mess the user code with many `changed` event calls. You can call with - * `methodName + "Quiet"`. - * - * The emitted event comes with a object parameter to the listener with the - * `methodName` as one attribute. - */ - - -function jimpEvMethod(methodName, evName, method) { - var evNameBefore = "before-" + evName; - var evNameAfter = evName.replace(/e$/, "") + "ed"; - - Jimp.prototype[methodName] = function () { - var wrappedCb; - - for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) { - args[_key4] = arguments[_key4]; - } - - var cb = args[method.length - 1]; - var jimpInstance = this; - - if (typeof cb === "function") { - wrappedCb = function wrappedCb() { - for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) { - args[_key5] = arguments[_key5]; - } - - var err = args[0], - data = args[1]; - - if (err) { - jimpInstance.emitError(methodName, err); - } else { - jimpInstance.emitMulti(methodName, evNameAfter, (0, _defineProperty2["default"])({}, methodName, data)); - } - - cb.apply(this, args); - }; - - args[args.length - 1] = wrappedCb; - } else { - wrappedCb = false; - } - - this.emitMulti(methodName, evNameBefore); - var result; - - try { - result = method.apply(this, args); - - if (!wrappedCb) { - this.emitMulti(methodName, evNameAfter, (0, _defineProperty2["default"])({}, methodName, result)); - } - } catch (error) { - error.methodName = methodName; - this.emitError(methodName, error); - } - - return result; - }; - - Jimp.prototype[methodName + "Quiet"] = method; -} -/** - * Creates a new image that is a clone of this one. - * @param {function(Error, Jimp)} cb (optional) A callback for when complete - * @returns the new image - */ - - -jimpEvMethod("clone", "clone", function (cb) { - var clone = new Jimp(this); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(clone, null, clone); - } - - return clone; -}); -/** - * Simplify jimpEvMethod call for the common `change` evName. - * @param {string} methodName name of the method - * @param {function} method to watch changes for - */ - -function jimpEvChange(methodName, method) { - jimpEvMethod(methodName, "change", method); -} -/** - * Sets the type of the image (RGB or RGBA) when saving as PNG format (default is RGBA) - * @param b A Boolean, true to use RGBA or false to use RGB - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - - -jimpEvChange("background", function (hex, cb) { - if (typeof hex !== "number") { - return _utils.throwError.call(this, "hex must be a hexadecimal rgba value", cb); - } - - this._background = hex; - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; -}); -/** - * Scans through a region of the bitmap, calling a function for each pixel. - * @param {number} x the x coordinate to begin the scan at - * @param {number} y the y coordinate to begin the scan at - * @param w the width of the scan region - * @param h the height of the scan region - * @param f a function to call on even pixel; the (x, y) position of the pixel - * and the index of the pixel in the bitmap buffer are passed to the function - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - -jimpEvChange("scan", function (x, y, w, h, f, cb) { - if (typeof x !== "number" || typeof y !== "number") { - return _utils.throwError.call(this, "x and y must be numbers", cb); - } - - if (typeof w !== "number" || typeof h !== "number") { - return _utils.throwError.call(this, "w and h must be numbers", cb); - } - - if (typeof f !== "function") { - return _utils.throwError.call(this, "f must be a function", cb); - } - - var result = (0, _utils.scan)(this, x, y, w, h, f); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, result); - } - - return result; -}); - -if (process.env.ENVIRONMENT === "BROWSER") { - // For use in a web browser or web worker - - /* global self */ - var gl; - - if (typeof window !== "undefined" && (typeof window === "undefined" ? "undefined" : (0, _typeof2["default"])(window)) === "object") { - gl = window; - } - - if (typeof self !== "undefined" && (typeof self === "undefined" ? "undefined" : (0, _typeof2["default"])(self)) === "object") { - gl = self; - } - - gl.Jimp = Jimp; - gl.Buffer = Buffer; -} - -var _default = Jimp; -exports["default"] = _default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/index.js.map b/WechatBot/node_modules/@jimp/core/dist/index.js.map deleted file mode 100644 index 3f39a86ba..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["alphabet","maxHashLength","NaN","i","maxHash","anyBase","BIN","slice","Array","join","push","length","noop","isArrayBuffer","test","Object","prototype","toString","call","toLowerCase","indexOf","bufferFromArrayBuffer","arrayBuffer","buffer","Buffer","alloc","byteLength","view","Uint8Array","loadFromURL","options","cb","err","response","data","headers","url","location","isBuffer","msg","statusCode","Error","loadBufferFromPath","src","fs","readFile","match","isRawRGBAData","obj","width","height","Uint8ClampedArray","makeRGBABufferFromRGB","rgbaBuffer","allocUnsafe","j","emptyBitmap","Jimp","args","MIME_PNG","path","write","mime","getBase64","getBuffer","getBufferAsync","getPixelColor","setPixelColor","jimpInstance","finish","evData","methodName","setTimeout","emitError","emitMulti","parseInt","w","h","_background","cssColorToHex","throwError","bitmap","writeUInt32BE","parseBitmap","original","from","_quality","_deflateLevel","_deflateStrategy","_filterType","_rgba","_originalMime","imageData","isRGBA","extraConstructor","__extraConstructors","find","c","Promise","resolve","reject","run","then","bool","eventName","assign","emit","getMIME","MIME","getExtension","createWriteStream","getType","pathObj","Path","parse","dir","mkdirp","sync","stream","on","end","AUTO","base","hash","pHash","ImagePHash","getHash","compareHash","currentHash","distance","x","y","edgeHandling","xi","yi","EDGE_EXTEND","Math","round","EDGE_WRAP","idx","getPixelIndex","hex","readUInt32BE","yIndex","xIndex","alpha","EventEmitter","addConstants","constants","entries","forEach","name","value","addJimpMethods","methods","composite","appendConstructorOption","read","image","create","rgbaToInt","r","g","b","a","pow","intToRGBA","rgba","floor","cssColor","Number","toHex8","limit255","n","max","min","diff","img1","img2","threshold","bmp1","bmp2","cloneQuiet","resize","numDiffPixels","percent","phash","hash1","hash2","compareHashes","colorDiff","rgba1","rgba2","maxVal","jimpEvMethod","evName","method","evNameBefore","evNameAfter","replace","wrappedCb","apply","result","error","clone","jimpEvChange","f","process","env","ENVIRONMENT","gl","window","self"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AAEA;;AACA;;AAEA;;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,IAAL;AACD;;AAEDF,EAAAA,EAAE,CAACzJ,IAAH,GAAUA,IAAV;AACAyJ,EAAAA,EAAE,CAAC1L,MAAH,GAAYA,MAAZ;AACD;;eAIciC,I","sourcesContent":["import fs from \"fs\";\nimport Path from \"path\";\nimport EventEmitter from \"events\";\n\nimport { isNodePattern, throwError, scan, scanIterator } from \"@jimp/utils\";\nimport anyBase from \"any-base\";\nimport mkdirp from \"mkdirp\";\nimport pixelMatch from \"pixelmatch\";\nimport tinyColor from \"tinycolor2\";\n\nimport ImagePHash from \"./modules/phash\";\nimport request from \"./request\";\n\nimport composite from \"./composite\";\nimport promisify from \"./utils/promisify\";\nimport * as MIME from \"./utils/mime\";\nimport { parseBitmap, getBuffer, getBufferAsync } from \"./utils/image-bitmap\";\nimport * as constants from \"./constants\";\n\nconst alphabet =\n \"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_\";\n\n// an array storing the maximum string length of hashes at various bases\n// 0 and 1 do not exist as possible hash lengths\nconst maxHashLength = [NaN, NaN];\n\nfor (let i = 2; i < 65; i++) {\n const maxHash = anyBase(\n anyBase.BIN,\n alphabet.slice(0, i)\n )(new Array(64 + 1).join(\"1\"));\n maxHashLength.push(maxHash.length);\n}\n\n// no operation\nfunction noop() {}\n\n// error checking methods\n\nfunction isArrayBuffer(test) {\n return (\n Object.prototype.toString.call(test).toLowerCase().indexOf(\"arraybuffer\") >\n -1\n );\n}\n\n// Prepare a Buffer object from the arrayBuffer. Necessary in the browser > node conversion,\n// But this function is not useful when running in node directly\nfunction bufferFromArrayBuffer(arrayBuffer) {\n const buffer = Buffer.alloc(arrayBuffer.byteLength);\n const view = new Uint8Array(arrayBuffer);\n\n for (let i = 0; i < buffer.length; ++i) {\n buffer[i] = view[i];\n }\n\n return buffer;\n}\n\nfunction loadFromURL(options, cb) {\n request(options, (err, response, data) => {\n if (err) {\n return cb(err);\n }\n\n if (\"headers\" in response && \"location\" in response.headers) {\n options.url = response.headers.location;\n return loadFromURL(options, cb);\n }\n\n if (typeof data === \"object\" && Buffer.isBuffer(data)) {\n return cb(null, data);\n }\n\n const msg =\n \"Could not load Buffer from <\" +\n options.url +\n \"> \" +\n \"(HTTP: \" +\n response.statusCode +\n \")\";\n\n return new Error(msg);\n });\n}\n\nfunction loadBufferFromPath(src, cb) {\n if (\n fs &&\n typeof fs.readFile === \"function\" &&\n !src.match(/^(http|ftp)s?:\\/\\/./)\n ) {\n fs.readFile(src, cb);\n } else {\n loadFromURL({ url: src }, cb);\n }\n}\n\nfunction isRawRGBAData(obj) {\n return (\n obj &&\n typeof obj === \"object\" &&\n typeof obj.width === \"number\" &&\n typeof obj.height === \"number\" &&\n (Buffer.isBuffer(obj.data) ||\n obj.data instanceof Uint8Array ||\n (typeof Uint8ClampedArray === \"function\" &&\n obj.data instanceof Uint8ClampedArray)) &&\n (obj.data.length === obj.width * obj.height * 4 ||\n obj.data.length === obj.width * obj.height * 3)\n );\n}\n\nfunction makeRGBABufferFromRGB(buffer) {\n if (buffer.length % 3 !== 0) {\n throw new Error(\"Buffer length is incorrect\");\n }\n\n const rgbaBuffer = Buffer.allocUnsafe((buffer.length / 3) * 4);\n let j = 0;\n\n for (let i = 0; i < buffer.length; i++) {\n rgbaBuffer[j] = buffer[i];\n\n if ((i + 1) % 3 === 0) {\n rgbaBuffer[++j] = 255;\n }\n\n j++;\n }\n\n return rgbaBuffer;\n}\n\nconst emptyBitmap = {\n data: null,\n width: null,\n height: null,\n};\n\n/**\n * Jimp constructor (from a file)\n * @param path a path to the image\n * @param {function(Error, Jimp)} cb (optional) a function to call when the image is parsed to a bitmap\n */\n\n/**\n * Jimp constructor (from a url with options)\n * @param options { url, otherOptions}\n * @param {function(Error, Jimp)} cb (optional) a function to call when the image is parsed to a bitmap\n */\n\n/**\n * Jimp constructor (from another Jimp image or raw image data)\n * @param image a Jimp image to clone\n * @param {function(Error, Jimp)} cb a function to call when the image is parsed to a bitmap\n */\n\n/**\n * Jimp constructor (from a Buffer)\n * @param data a Buffer containing the image data\n * @param {function(Error, Jimp)} cb a function to call when the image is parsed to a bitmap\n */\n\n/**\n * Jimp constructor (to generate a new image)\n * @param w the width of the image\n * @param h the height of the image\n * @param {function(Error, Jimp)} cb (optional) a function to call when the image is parsed to a bitmap\n */\n\n/**\n * Jimp constructor (to generate a new image)\n * @param w the width of the image\n * @param h the height of the image\n * @param background color to fill the image with\n * @param {function(Error, Jimp)} cb (optional) a function to call when the image is parsed to a bitmap\n */\n\nclass Jimp extends EventEmitter {\n // An object representing a bitmap in memory, comprising:\n // - data: a buffer of the bitmap data\n // - width: the width of the image in pixels\n // - height: the height of the image in pixels\n bitmap = emptyBitmap;\n\n // Default colour to use for new pixels\n _background = 0x00000000;\n\n // Default MIME is PNG\n _originalMime = Jimp.MIME_PNG;\n\n // Exif data for the image\n _exif = null;\n\n // Whether Transparency supporting formats will be exported as RGB or RGBA\n _rgba = true;\n\n constructor(...args) {\n super();\n\n const jimpInstance = this;\n let cb = noop;\n\n if (isArrayBuffer(args[0])) {\n args[0] = bufferFromArrayBuffer(args[0]);\n }\n\n function finish(...args) {\n const [err] = args;\n const evData = err || {};\n evData.methodName = \"constructor\";\n\n setTimeout(() => {\n // run on next tick.\n if (err && cb === noop) {\n jimpInstance.emitError(\"constructor\", err);\n } else if (!err) {\n jimpInstance.emitMulti(\"constructor\", \"initialized\");\n }\n\n cb.call(jimpInstance, ...args);\n }, 1);\n }\n\n if (\n (typeof args[0] === \"number\" && typeof args[1] === \"number\") ||\n (parseInt(args[0], 10) && parseInt(args[1], 10))\n ) {\n // create a new image\n const w = parseInt(args[0], 10);\n const h = parseInt(args[1], 10);\n cb = args[2];\n\n // with a hex color\n if (typeof args[2] === \"number\") {\n this._background = args[2];\n cb = args[3];\n }\n\n // with a css color\n if (typeof args[2] === \"string\") {\n this._background = Jimp.cssColorToHex(args[2]);\n cb = args[3];\n }\n\n if (typeof cb === \"undefined\") {\n cb = noop;\n }\n\n if (typeof cb !== \"function\") {\n return throwError.call(this, \"cb must be a function\", finish);\n }\n\n this.bitmap = {\n data: Buffer.alloc(w * h * 4),\n width: w,\n height: h,\n };\n\n for (let i = 0; i < this.bitmap.data.length; i += 4) {\n this.bitmap.data.writeUInt32BE(this._background, i);\n }\n\n finish(null, this);\n } else if (typeof args[0] === \"object\" && args[0].url) {\n cb = args[1] || noop;\n\n if (typeof cb !== \"function\") {\n return throwError.call(this, \"cb must be a function\", finish);\n }\n\n loadFromURL(args[0], (err, data) => {\n if (err) {\n return throwError.call(this, err, finish);\n }\n\n this.parseBitmap(data, args[0].url, finish);\n });\n } else if (args[0] instanceof Jimp) {\n // clone an existing Jimp\n const [original] = args;\n cb = args[1];\n\n if (typeof cb === \"undefined\") {\n cb = noop;\n }\n\n if (typeof cb !== \"function\") {\n return throwError.call(this, \"cb must be a function\", finish);\n }\n\n this.bitmap = {\n data: Buffer.from(original.bitmap.data),\n width: original.bitmap.width,\n height: original.bitmap.height,\n };\n\n this._quality = original._quality;\n this._deflateLevel = original._deflateLevel;\n this._deflateStrategy = original._deflateStrategy;\n this._filterType = original._filterType;\n this._rgba = original._rgba;\n this._background = original._background;\n this._originalMime = original._originalMime;\n\n finish(null, this);\n } else if (isRawRGBAData(args[0])) {\n const [imageData] = args;\n cb = args[1] || noop;\n\n const isRGBA =\n imageData.width * imageData.height * 4 === imageData.data.length;\n const buffer = isRGBA\n ? Buffer.from(imageData.data)\n : makeRGBABufferFromRGB(imageData.data);\n\n this.bitmap = {\n data: buffer,\n width: imageData.width,\n height: imageData.height,\n };\n\n finish(null, this);\n } else if (typeof args[0] === \"string\") {\n // read from a path\n const path = args[0];\n cb = args[1];\n\n if (typeof cb === \"undefined\") {\n cb = noop;\n }\n\n if (typeof cb !== \"function\") {\n return throwError.call(this, \"cb must be a function\", finish);\n }\n\n loadBufferFromPath(path, (err, data) => {\n if (err) {\n return throwError.call(this, err, finish);\n }\n\n this.parseBitmap(data, path, finish);\n });\n } else if (typeof args[0] === \"object\" && Buffer.isBuffer(args[0])) {\n // read from a buffer\n const data = args[0];\n cb = args[1];\n\n if (typeof cb !== \"function\") {\n return throwError.call(this, \"cb must be a function\", finish);\n }\n\n this.parseBitmap(data, null, finish);\n } else {\n // Allow client libs to add new ways to build a Jimp object.\n // Extra constructors must be added by `Jimp.appendConstructorOption()`\n cb = args[args.length - 1];\n\n if (typeof cb !== \"function\") {\n // TODO: try to solve the args after cb problem.\n cb = args[args.length - 2];\n\n if (typeof cb !== \"function\") {\n cb = noop;\n }\n }\n\n const extraConstructor = Jimp.__extraConstructors.find((c) =>\n c.test(...args)\n );\n\n if (extraConstructor) {\n new Promise((resolve, reject) => {\n extraConstructor.run.call(this, resolve, reject, ...args);\n })\n .then(() => finish(null, this))\n .catch(finish);\n } else {\n return throwError.call(\n this,\n \"No matching constructor overloading was found. \" +\n \"Please see the docs for how to call the Jimp constructor.\",\n finish\n );\n }\n }\n }\n\n /**\n * Parse a bitmap with the loaded image types.\n *\n * @param {Buffer} data raw image data\n * @param {string} path optional path to file\n * @param {function(Error, Jimp)} finish (optional) a callback for when complete\n * @memberof Jimp\n */\n parseBitmap(data, path, finish) {\n parseBitmap.call(this, data, null, finish);\n }\n\n /**\n * Sets the type of the image (RGB or RGBA) when saving in a format that supports transparency (default is RGBA)\n * @param {boolean} bool A Boolean, true to use RGBA or false to use RGB\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n rgba(bool, cb) {\n if (typeof bool !== \"boolean\") {\n return throwError.call(\n this,\n \"bool must be a boolean, true for RGBA or false for RGB\",\n cb\n );\n }\n\n this._rgba = bool;\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n }\n\n /**\n * Emit for multiple listeners\n * @param {string} methodName name of the method to emit an error for\n * @param {string} eventName name of the eventName to emit an error for\n * @param {object} data to emit\n */\n emitMulti(methodName, eventName, data = {}) {\n data = Object.assign(data, { methodName, eventName });\n this.emit(\"any\", data);\n\n if (methodName) {\n this.emit(methodName, data);\n }\n\n this.emit(eventName, data);\n }\n\n emitError(methodName, err) {\n this.emitMulti(methodName, \"error\", err);\n }\n\n /**\n * Get the current height of the image\n * @return {number} height of the image\n */\n getHeight() {\n return this.bitmap.height;\n }\n\n /**\n * Get the current width of the image\n * @return {number} width of the image\n */\n getWidth() {\n return this.bitmap.width;\n }\n\n /**\n * Nicely format Jimp object when sent to the console e.g. console.log(image)\n * @returns {string} pretty printed\n */\n inspect() {\n return (\n \"\"\n );\n }\n\n /**\n * Nicely format Jimp object when converted to a string\n * @returns {string} pretty printed\n */\n toString() {\n return \"[object Jimp]\";\n }\n\n /**\n * Returns the original MIME of the image (default: \"image/png\")\n * @returns {string} the MIME\n */\n getMIME() {\n const mime = this._originalMime || Jimp.MIME_PNG;\n\n return mime;\n }\n\n /**\n * Returns the appropriate file extension for the original MIME of the image (default: \"png\")\n * @returns {string} the file extension\n */\n getExtension() {\n const mime = this.getMIME();\n\n return MIME.getExtension(mime);\n }\n\n /**\n * Writes the image to a file\n * @param {string} path a path to the destination file\n * @param {function(Error, Jimp)} cb (optional) a function to call when the image is saved to disk\n * @returns {Jimp} this for chaining of methods\n */\n write(path, cb) {\n if (!fs || !fs.createWriteStream) {\n throw new Error(\n \"Cant access the filesystem. You can use the getBase64 method.\"\n );\n }\n\n if (typeof path !== \"string\") {\n return throwError.call(this, \"path must be a string\", cb);\n }\n\n if (typeof cb === \"undefined\") {\n cb = noop;\n }\n\n if (typeof cb !== \"function\") {\n return throwError.call(this, \"cb must be a function\", cb);\n }\n\n const mime = MIME.getType(path) || this.getMIME();\n const pathObj = Path.parse(path);\n\n if (pathObj.dir) {\n mkdirp.sync(pathObj.dir);\n }\n\n this.getBuffer(mime, (err, buffer) => {\n if (err) {\n return throwError.call(this, err, cb);\n }\n\n const stream = fs.createWriteStream(path);\n\n stream\n .on(\"open\", () => {\n stream.write(buffer);\n stream.end();\n })\n .on(\"error\", (err) => {\n return throwError.call(this, err, cb);\n });\n stream.on(\"finish\", () => {\n cb.call(this, null, this);\n });\n });\n\n return this;\n }\n\n writeAsync = (path) => promisify(this.write, this, path);\n\n /**\n * Converts the image to a base 64 string\n * @param {string} mime the mime type of the image data to be created\n * @param {function(Error, Jimp)} cb a Node-style function to call with the buffer as the second argument\n * @returns {Jimp} this for chaining of methods\n */\n getBase64(mime, cb) {\n if (mime === Jimp.AUTO) {\n // allow auto MIME detection\n mime = this.getMIME();\n }\n\n if (typeof mime !== \"string\") {\n return throwError.call(this, \"mime must be a string\", cb);\n }\n\n if (typeof cb !== \"function\") {\n return throwError.call(this, \"cb must be a function\", cb);\n }\n\n this.getBuffer(mime, function (err, data) {\n if (err) {\n return throwError.call(this, err, cb);\n }\n\n const src = \"data:\" + mime + \";base64,\" + data.toString(\"base64\");\n cb.call(this, null, src);\n });\n\n return this;\n }\n\n getBase64Async = (mime) => promisify(this.getBase64, this, mime);\n\n /**\n * Generates a perceptual hash of the image . And pads the string. Can configure base.\n * @param {number} base (optional) a number between 2 and 64 representing the base for the hash (e.g. 2 is binary, 10 is decimal, 16 is hex, 64 is base 64). Defaults to 64.\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {string} a string representing the hash\n */\n hash(base, cb) {\n base = base || 64;\n\n if (typeof base === \"function\") {\n cb = base;\n base = 64;\n }\n\n if (typeof base !== \"number\") {\n return throwError.call(this, \"base must be a number\", cb);\n }\n\n if (base < 2 || base > 64) {\n return throwError.call(\n this,\n \"base must be a number between 2 and 64\",\n cb\n );\n }\n\n let hash = this.pHash();\n hash = anyBase(anyBase.BIN, alphabet.slice(0, base))(hash);\n\n while (hash.length < maxHashLength[base]) {\n hash = \"0\" + hash; // pad out with leading zeros\n }\n\n if (isNodePattern(cb)) {\n cb.call(this, null, hash);\n }\n\n return hash;\n }\n\n /**\n * Calculates the perceptual hash\n * @returns {number} the perceptual hash\n */\n pHash() {\n const pHash = new ImagePHash();\n return pHash.getHash(this);\n }\n\n /**\n * Calculates the hamming distance of the current image and a hash based on their perceptual hash\n * @param {hash} compareHash hash to compare to\n * @returns {number} a number ranging from 0 to 1, 0 means they are believed to be identical\n */\n distanceFromHash(compareHash) {\n const pHash = new ImagePHash();\n const currentHash = pHash.getHash(this);\n\n return pHash.distance(currentHash, compareHash);\n }\n\n /**\n * Converts the image to a buffer\n * @param {string} mime the mime type of the image buffer to be created\n * @param {function(Error, Jimp)} cb a Node-style function to call with the buffer as the second argument\n * @returns {Jimp} this for chaining of methods\n */\n getBuffer = getBuffer;\n\n getBufferAsync = getBufferAsync;\n\n /**\n * Returns the offset of a pixel in the bitmap buffer\n * @param {number} x the x coordinate\n * @param {number} y the y coordinate\n * @param {number} edgeHandling (optional) define how to sum pixels from outside the border\n * @param {number} cb (optional) a callback for when complete\n * @returns {number} the index of the pixel or -1 if not found\n */\n getPixelIndex(x, y, edgeHandling, cb) {\n let xi;\n let yi;\n\n if (typeof edgeHandling === \"function\" && typeof cb === \"undefined\") {\n cb = edgeHandling;\n edgeHandling = null;\n }\n\n if (!edgeHandling) {\n edgeHandling = Jimp.EDGE_EXTEND;\n }\n\n if (typeof x !== \"number\" || typeof y !== \"number\") {\n return throwError.call(this, \"x and y must be numbers\", cb);\n }\n\n // round input\n x = Math.round(x);\n y = Math.round(y);\n xi = x;\n yi = y;\n\n if (edgeHandling === Jimp.EDGE_EXTEND) {\n if (x < 0) xi = 0;\n if (x >= this.bitmap.width) xi = this.bitmap.width - 1;\n if (y < 0) yi = 0;\n if (y >= this.bitmap.height) yi = this.bitmap.height - 1;\n }\n\n if (edgeHandling === Jimp.EDGE_WRAP) {\n if (x < 0) {\n xi = this.bitmap.width + x;\n }\n\n if (x >= this.bitmap.width) {\n xi = x % this.bitmap.width;\n }\n\n if (y < 0) {\n xi = this.bitmap.height + y;\n }\n\n if (y >= this.bitmap.height) {\n yi = y % this.bitmap.height;\n }\n }\n\n let i = (this.bitmap.width * yi + xi) << 2;\n\n // if out of bounds index is -1\n if (xi < 0 || xi >= this.bitmap.width) {\n i = -1;\n }\n\n if (yi < 0 || yi >= this.bitmap.height) {\n i = -1;\n }\n\n if (isNodePattern(cb)) {\n cb.call(this, null, i);\n }\n\n return i;\n }\n\n /**\n * Returns the hex colour value of a pixel\n * @param {number} x the x coordinate\n * @param {number} y the y coordinate\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {number} the color of the pixel\n */\n getPixelColor(x, y, cb) {\n if (typeof x !== \"number\" || typeof y !== \"number\")\n return throwError.call(this, \"x and y must be numbers\", cb);\n\n // round input\n x = Math.round(x);\n y = Math.round(y);\n\n const idx = this.getPixelIndex(x, y);\n const hex = this.bitmap.data.readUInt32BE(idx);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, hex);\n }\n\n return hex;\n }\n\n getPixelColour = this.getPixelColor;\n\n /**\n * Returns the hex colour value of a pixel\n * @param {number} hex color to set\n * @param {number} x the x coordinate\n * @param {number} y the y coordinate\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {number} the index of the pixel or -1 if not found\n */\n setPixelColor(hex, x, y, cb) {\n if (\n typeof hex !== \"number\" ||\n typeof x !== \"number\" ||\n typeof y !== \"number\"\n )\n return throwError.call(this, \"hex, x and y must be numbers\", cb);\n\n // round input\n x = Math.round(x);\n y = Math.round(y);\n\n const idx = this.getPixelIndex(x, y);\n this.bitmap.data.writeUInt32BE(hex, idx);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n }\n\n setPixelColour = this.setPixelColor;\n\n /**\n * Determine if the image contains opaque pixels.\n * @return {boolean} hasAlpha whether the image contains opaque pixels\n */\n hasAlpha() {\n for (let yIndex = 0; yIndex < this.bitmap.height; yIndex++) {\n for (let xIndex = 0; xIndex < this.bitmap.width; xIndex++) {\n const idx = (this.bitmap.width * yIndex + xIndex) << 2;\n const alpha = this.bitmap.data[idx + 3];\n\n if (alpha !== 0xff) {\n return true;\n }\n }\n }\n\n return false;\n }\n\n /**\n * Iterate scan through a region of the bitmap\n * @param {number} x the x coordinate to begin the scan at\n * @param {number} y the y coordinate to begin the scan at\n * @param w the width of the scan region\n * @param h the height of the scan region\n * @returns {IterableIterator<{x: number, y: number, idx: number, image: Jimp}>}\n */\n scanIterator(x, y, w, h) {\n if (typeof x !== \"number\" || typeof y !== \"number\") {\n return throwError.call(this, \"x and y must be numbers\");\n }\n\n if (typeof w !== \"number\" || typeof h !== \"number\") {\n return throwError.call(this, \"w and h must be numbers\");\n }\n\n return scanIterator(this, x, y, w, h);\n }\n}\n\nexport function addConstants(constants, jimpInstance = Jimp) {\n Object.entries(constants).forEach(([name, value]) => {\n jimpInstance[name] = value;\n });\n}\n\nexport function addJimpMethods(methods, jimpInstance = Jimp) {\n Object.entries(methods).forEach(([name, value]) => {\n jimpInstance.prototype[name] = value;\n });\n}\n\naddConstants(constants);\naddJimpMethods({ composite });\n\nJimp.__extraConstructors = [];\n\n/**\n * Allow client libs to add new ways to build a Jimp object.\n * @param {string} name identify the extra constructor.\n * @param {function} test a function that returns true when it accepts the arguments passed to the main constructor.\n * @param {function} run where the magic happens.\n */\nJimp.appendConstructorOption = function (name, test, run) {\n Jimp.__extraConstructors.push({ name, test, run });\n};\n\n/**\n * Read an image from a file or a Buffer. Takes the same args as the constructor\n * @returns {Promise} a promise\n */\nJimp.read = function (...args) {\n return new Promise((resolve, reject) => {\n // eslint-disable-next-line no-new\n new Jimp(...args, (err, image) => {\n if (err) reject(err);\n else resolve(image);\n });\n });\n};\n\nJimp.create = Jimp.read;\n\n/**\n * A static helper method that converts RGBA values to a single integer value\n * @param {number} r the red value (0-255)\n * @param {number} g the green value (0-255)\n * @param {number} b the blue value (0-255)\n * @param {number} a the alpha value (0-255)\n * @param {function(Error, Jimp)} cb (optional) A callback for when complete\n * @returns {number} an single integer colour value\n */\nJimp.rgbaToInt = function (r, g, b, a, cb) {\n if (\n typeof r !== \"number\" ||\n typeof g !== \"number\" ||\n typeof b !== \"number\" ||\n typeof a !== \"number\"\n ) {\n return throwError.call(this, \"r, g, b and a must be numbers\", cb);\n }\n\n if (r < 0 || r > 255) {\n return throwError.call(this, \"r must be between 0 and 255\", cb);\n }\n\n if (g < 0 || g > 255) {\n throwError.call(this, \"g must be between 0 and 255\", cb);\n }\n\n if (b < 0 || b > 255) {\n return throwError.call(this, \"b must be between 0 and 255\", cb);\n }\n\n if (a < 0 || a > 255) {\n return throwError.call(this, \"a must be between 0 and 255\", cb);\n }\n\n r = Math.round(r);\n b = Math.round(b);\n g = Math.round(g);\n a = Math.round(a);\n\n const i =\n r * Math.pow(256, 3) +\n g * Math.pow(256, 2) +\n b * Math.pow(256, 1) +\n a * Math.pow(256, 0);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, i);\n }\n\n return i;\n};\n\n/**\n * A static helper method that converts RGBA values to a single integer value\n * @param {number} i a single integer value representing an RGBA colour (e.g. 0xFF0000FF for red)\n * @param {function(Error, Jimp)} cb (optional) A callback for when complete\n * @returns {object} an object with the properties r, g, b and a representing RGBA values\n */\nJimp.intToRGBA = function (i, cb) {\n if (typeof i !== \"number\") {\n return throwError.call(this, \"i must be a number\", cb);\n }\n\n const rgba = {};\n\n rgba.r = Math.floor(i / Math.pow(256, 3));\n rgba.g = Math.floor((i - rgba.r * Math.pow(256, 3)) / Math.pow(256, 2));\n rgba.b = Math.floor(\n (i - rgba.r * Math.pow(256, 3) - rgba.g * Math.pow(256, 2)) /\n Math.pow(256, 1)\n );\n rgba.a = Math.floor(\n (i -\n rgba.r * Math.pow(256, 3) -\n rgba.g * Math.pow(256, 2) -\n rgba.b * Math.pow(256, 1)) /\n Math.pow(256, 0)\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, rgba);\n }\n\n return rgba;\n};\n\n/**\n * Converts a css color (Hex, 8-digit (RGBA) Hex, RGB, RGBA, HSL, HSLA, HSV, HSVA, Named) to a hex number\n * @param {string} cssColor a number\n * @returns {number} a hex number representing a color\n */\nJimp.cssColorToHex = function (cssColor) {\n cssColor = cssColor || 0; // 0, null, undefined, NaN\n\n if (typeof cssColor === \"number\") return Number(cssColor);\n\n return parseInt(tinyColor(cssColor).toHex8(), 16);\n};\n\n/**\n * Limits a number to between 0 or 255\n * @param {number} n a number\n * @returns {number} the number limited to between 0 or 255\n */\nJimp.limit255 = function (n) {\n n = Math.max(n, 0);\n n = Math.min(n, 255);\n\n return n;\n};\n\n/**\n * Diffs two images and returns\n * @param {Jimp} img1 a Jimp image to compare\n * @param {Jimp} img2 a Jimp image to compare\n * @param {number} threshold (optional) a number, 0 to 1, the smaller the value the more sensitive the comparison (default: 0.1)\n * @returns {object} an object { percent: percent similar, diff: a Jimp image highlighting differences }\n */\nJimp.diff = function (img1, img2, threshold = 0.1) {\n if (!(img1 instanceof Jimp) || !(img2 instanceof Jimp))\n return throwError.call(this, \"img1 and img2 must be an Jimp images\");\n\n const bmp1 = img1.bitmap;\n const bmp2 = img2.bitmap;\n\n if (bmp1.width !== bmp2.width || bmp1.height !== bmp2.height) {\n if (bmp1.width * bmp1.height > bmp2.width * bmp2.height) {\n // img1 is bigger\n img1 = img1.cloneQuiet().resize(bmp2.width, bmp2.height);\n } else {\n // img2 is bigger (or they are the same in area)\n img2 = img2.cloneQuiet().resize(bmp1.width, bmp1.height);\n }\n }\n\n if (typeof threshold !== \"number\" || threshold < 0 || threshold > 1) {\n return throwError.call(this, \"threshold must be a number between 0 and 1\");\n }\n\n const diff = new Jimp(bmp1.width, bmp1.height, 0xffffffff);\n\n const numDiffPixels = pixelMatch(\n bmp1.data,\n bmp2.data,\n diff.bitmap.data,\n diff.bitmap.width,\n diff.bitmap.height,\n { threshold }\n );\n\n return {\n percent: numDiffPixels / (diff.bitmap.width * diff.bitmap.height),\n image: diff,\n };\n};\n\n/**\n * Calculates the hamming distance of two images based on their perceptual hash\n * @param {Jimp} img1 a Jimp image to compare\n * @param {Jimp} img2 a Jimp image to compare\n * @returns {number} a number ranging from 0 to 1, 0 means they are believed to be identical\n */\nJimp.distance = function (img1, img2) {\n const phash = new ImagePHash();\n const hash1 = phash.getHash(img1);\n const hash2 = phash.getHash(img2);\n\n return phash.distance(hash1, hash2);\n};\n\n/**\n * Calculates the hamming distance of two images based on their perceptual hash\n * @param {hash} hash1 a pHash\n * @param {hash} hash2 a pHash\n * @returns {number} a number ranging from 0 to 1, 0 means they are believed to be identical\n */\nJimp.compareHashes = function (hash1, hash2) {\n const phash = new ImagePHash();\n\n return phash.distance(hash1, hash2);\n};\n\n/**\n * Compute color difference\n * 0 means no difference, 1 means maximum difference.\n * @param {number} rgba1: first color to compare.\n * @param {number} rgba2: second color to compare.\n * Both parameters must be an color object {r:val, g:val, b:val, a:val}\n * Where `a` is optional and `val` is an integer between 0 and 255.\n * @returns {number} float between 0 and 1.\n */\nJimp.colorDiff = function (rgba1, rgba2) {\n const pow = (n) => Math.pow(n, 2);\n const { max } = Math;\n const maxVal = 255 * 255 * 3;\n\n if (rgba1.a !== 0 && !rgba1.a) {\n rgba1.a = 255;\n }\n\n if (rgba2.a !== 0 && !rgba2.a) {\n rgba2.a = 255;\n }\n\n return (\n (max(pow(rgba1.r - rgba2.r), pow(rgba1.r - rgba2.r - rgba1.a + rgba2.a)) +\n max(pow(rgba1.g - rgba2.g), pow(rgba1.g - rgba2.g - rgba1.a + rgba2.a)) +\n max(pow(rgba1.b - rgba2.b), pow(rgba1.b - rgba2.b - rgba1.a + rgba2.a))) /\n maxVal\n );\n};\n\n/**\n * Helper to create Jimp methods that emit events before and after its execution.\n * @param {string} methodName The name to be appended to Jimp prototype.\n * @param {string} evName The event name to be called.\n * It will be prefixed by `before-` and emitted when on method call.\n * It will be appended by `ed` and emitted after the method run.\n * @param {function} method A function implementing the method itself.\n * It will also create a quiet version that will not emit events, to not\n * mess the user code with many `changed` event calls. You can call with\n * `methodName + \"Quiet\"`.\n *\n * The emitted event comes with a object parameter to the listener with the\n * `methodName` as one attribute.\n */\nexport function jimpEvMethod(methodName, evName, method) {\n const evNameBefore = \"before-\" + evName;\n const evNameAfter = evName.replace(/e$/, \"\") + \"ed\";\n\n Jimp.prototype[methodName] = function (...args) {\n let wrappedCb;\n const cb = args[method.length - 1];\n const jimpInstance = this;\n\n if (typeof cb === \"function\") {\n wrappedCb = function (...args) {\n const [err, data] = args;\n\n if (err) {\n jimpInstance.emitError(methodName, err);\n } else {\n jimpInstance.emitMulti(methodName, evNameAfter, {\n [methodName]: data,\n });\n }\n\n cb.apply(this, args);\n };\n\n args[args.length - 1] = wrappedCb;\n } else {\n wrappedCb = false;\n }\n\n this.emitMulti(methodName, evNameBefore);\n\n let result;\n\n try {\n result = method.apply(this, args);\n\n if (!wrappedCb) {\n this.emitMulti(methodName, evNameAfter, {\n [methodName]: result,\n });\n }\n } catch (error) {\n error.methodName = methodName;\n this.emitError(methodName, error);\n }\n\n return result;\n };\n\n Jimp.prototype[methodName + \"Quiet\"] = method;\n}\n\n/**\n * Creates a new image that is a clone of this one.\n * @param {function(Error, Jimp)} cb (optional) A callback for when complete\n * @returns the new image\n */\njimpEvMethod(\"clone\", \"clone\", function (cb) {\n const clone = new Jimp(this);\n\n if (isNodePattern(cb)) {\n cb.call(clone, null, clone);\n }\n\n return clone;\n});\n\n/**\n * Simplify jimpEvMethod call for the common `change` evName.\n * @param {string} methodName name of the method\n * @param {function} method to watch changes for\n */\nexport function jimpEvChange(methodName, method) {\n jimpEvMethod(methodName, \"change\", method);\n}\n\n/**\n * Sets the type of the image (RGB or RGBA) when saving as PNG format (default is RGBA)\n * @param b A Boolean, true to use RGBA or false to use RGB\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\njimpEvChange(\"background\", function (hex, cb) {\n if (typeof hex !== \"number\") {\n return throwError.call(this, \"hex must be a hexadecimal rgba value\", cb);\n }\n\n this._background = hex;\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n});\n\n/**\n * Scans through a region of the bitmap, calling a function for each pixel.\n * @param {number} x the x coordinate to begin the scan at\n * @param {number} y the y coordinate to begin the scan at\n * @param w the width of the scan region\n * @param h the height of the scan region\n * @param f a function to call on even pixel; the (x, y) position of the pixel\n * and the index of the pixel in the bitmap buffer are passed to the function\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\njimpEvChange(\"scan\", function (x, y, w, h, f, cb) {\n if (typeof x !== \"number\" || typeof y !== \"number\") {\n return throwError.call(this, \"x and y must be numbers\", cb);\n }\n\n if (typeof w !== \"number\" || typeof h !== \"number\") {\n return throwError.call(this, \"w and h must be numbers\", cb);\n }\n\n if (typeof f !== \"function\") {\n return throwError.call(this, \"f must be a function\", cb);\n }\n\n const result = scan(this, x, y, w, h, f);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, result);\n }\n\n return result;\n});\n\nif (process.env.ENVIRONMENT === \"BROWSER\") {\n // For use in a web browser or web worker\n /* global self */\n let gl;\n\n if (typeof window !== \"undefined\" && typeof window === \"object\") {\n gl = window;\n }\n\n if (typeof self !== \"undefined\" && typeof self === \"object\") {\n gl = self;\n }\n\n gl.Jimp = Jimp;\n gl.Buffer = Buffer;\n}\n\nexport { addType } from \"./utils/mime\";\n\nexport default Jimp;\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/modules/phash.js b/WechatBot/node_modules/@jimp/core/dist/modules/phash.js deleted file mode 100755 index cc6556589..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/modules/phash.js +++ /dev/null @@ -1,173 +0,0 @@ -"use strict"; - -/* -Copyright (c) 2011 Elliot Shepherd - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ -// https://code.google.com/p/ironchef-team21/source/browse/ironchef_team21/src/ImagePHash.java - -/* - * pHash-like image hash. - * Author: Elliot Shepherd (elliot@jarofworms.com - * Based On: http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html - */ -function ImagePHash(size, smallerSize) { - this.size = this.size || size; - this.smallerSize = this.smallerSize || smallerSize; - initCoefficients(this.size); -} - -ImagePHash.prototype.size = 32; -ImagePHash.prototype.smallerSize = 8; - -ImagePHash.prototype.distance = function (s1, s2) { - var counter = 0; - - for (var k = 0; k < s1.length; k++) { - if (s1[k] !== s2[k]) { - counter++; - } - } - - return counter / s1.length; -}; // Returns a 'binary string' (like. 001010111011100010) which is easy to do a hamming distance on. - - -ImagePHash.prototype.getHash = function (img) { - /* 1. Reduce size. - * Like Average Hash, pHash starts with a small image. - * However, the image is larger than 8x8; 32x32 is a good size. - * This is really done to simplify the DCT computation and not - * because it is needed to reduce the high frequencies. - */ - img = img.clone().resize(this.size, this.size); - /* 2. Reduce color. - * The image is reduced to a grayscale just to further simplify - * the number of computations. - */ - - img.grayscale(); - var vals = []; - - for (var x = 0; x < img.bitmap.width; x++) { - vals[x] = []; - - for (var y = 0; y < img.bitmap.height; y++) { - vals[x][y] = intToRGBA(img.getPixelColor(x, y)).b; - } - } - /* 3. Compute the DCT. - * The DCT separates the image into a collection of frequencies - * and scalars. While JPEG uses an 8x8 DCT, this algorithm uses - * a 32x32 DCT. - */ - - - var dctVals = applyDCT(vals, this.size); - /* 4. Reduce the DCT. - * This is the magic step. While the DCT is 32x32, just keep the - * top-left 8x8. Those represent the lowest frequencies in the - * picture. - */ - - /* 5. Compute the average value. - * Like the Average Hash, compute the mean DCT value (using only - * the 8x8 DCT low-frequency values and excluding the first term - * since the DC coefficient can be significantly different from - * the other values and will throw off the average). - */ - - var total = 0; - - for (var _x = 0; _x < this.smallerSize; _x++) { - for (var _y = 0; _y < this.smallerSize; _y++) { - total += dctVals[_x][_y]; - } - } - - var avg = total / (this.smallerSize * this.smallerSize); - /* 6. Further reduce the DCT. - * This is the magic step. Set the 64 hash bits to 0 or 1 - * depending on whether each of the 64 DCT values is above or - * below the average value. The result doesn't tell us the - * actual low frequencies; it just tells us the very-rough - * relative scale of the frequencies to the mean. The result - * will not vary as long as the overall structure of the image - * remains the same; this can survive gamma and color histogram - * adjustments without a problem. - */ - - var hash = ""; - - for (var _x2 = 0; _x2 < this.smallerSize; _x2++) { - for (var _y2 = 0; _y2 < this.smallerSize; _y2++) { - hash += dctVals[_x2][_y2] > avg ? "1" : "0"; - } - } - - return hash; -}; // DCT function stolen from http://stackoverflow.com/questions/4240490/problems-with-dct-and-idct-algorithm-in-java - - -function intToRGBA(i) { - var rgba = {}; - rgba.r = Math.floor(i / Math.pow(256, 3)); - rgba.g = Math.floor((i - rgba.r * Math.pow(256, 3)) / Math.pow(256, 2)); - rgba.b = Math.floor((i - rgba.r * Math.pow(256, 3) - rgba.g * Math.pow(256, 2)) / Math.pow(256, 1)); - rgba.a = Math.floor((i - rgba.r * Math.pow(256, 3) - rgba.g * Math.pow(256, 2) - rgba.b * Math.pow(256, 1)) / Math.pow(256, 0)); - return rgba; -} - -var c = []; - -function initCoefficients(size) { - for (var i = 1; i < size; i++) { - c[i] = 1; - } - - c[0] = 1 / Math.sqrt(2.0); -} - -function applyDCT(f, size) { - var N = size; - var F = []; - - for (var u = 0; u < N; u++) { - F[u] = []; - - for (var v = 0; v < N; v++) { - var sum = 0; - - for (var i = 0; i < N; i++) { - for (var j = 0; j < N; j++) { - sum += Math.cos((2 * i + 1) / (2.0 * N) * u * Math.PI) * Math.cos((2 * j + 1) / (2.0 * N) * v * Math.PI) * f[i][j]; - } - } - - sum *= c[u] * c[v] / 4; - F[u][v] = sum; - } - } - - return F; -} - -module.exports = ImagePHash; -//# sourceMappingURL=phash.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/modules/phash.js.map b/WechatBot/node_modules/@jimp/core/dist/modules/phash.js.map deleted file mode 100644 index b7f5523ff..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/modules/phash.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/modules/phash.js"],"names":["ImagePHash","size","smallerSize","initCoefficients","prototype","distance","s1","s2","counter","k","length","getHash","img","clone","resize","grayscale","vals","x","bitmap","width","y","height","intToRGBA","getPixelColor","b","dctVals","applyDCT","total","avg","hash","i","rgba","r","Math","floor","pow","g","a","c","sqrt","f","N","F","u","v","sum","j","cos","PI","module","exports"],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;AAsBA;;AAEA;;;;;AAMA,SAASA,UAAT,CAAoBC,IAApB,EAA0BC,WAA1B,EAAuC;AACrC,OAAKD,IAAL,GAAY,KAAKA,IAAL,IAAaA,IAAzB;AACA,OAAKC,WAAL,GAAmB,KAAKA,WAAL,IAAoBA,WAAvC;AACAC,EAAAA,gBAAgB,CAAC,KAAKF,IAAN,CAAhB;AACD;;AAEDD,UAAU,CAACI,SAAX,CAAqBH,IAArB,GAA4B,EAA5B;AACAD,UAAU,CAACI,SAAX,CAAqBF,WAArB,GAAmC,CAAnC;;AAEAF,UAAU,CAACI,SAAX,CAAqBC,QAArB,GAAgC,UAAUC,EAAV,EAAcC,EAAd,EAAkB;AAChD,MAAIC,OAAO,GAAG,CAAd;;AAEA,OAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGH,EAAE,CAACI,MAAvB,EAA+BD,CAAC,EAAhC,EAAoC;AAClC,QAAIH,EAAE,CAACG,CAAD,CAAF,KAAUF,EAAE,CAACE,CA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xB,EAA4B;AAC1B,aAAK,IAAIgB,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGL,CAApB,EAAuBK,CAAC,EAAxB,EAA4B;AAC1BD,UAAAA,GAAG,IACDZ,IAAI,CAACc,GAAL,CAAU,CAAC,IAAIjB,CAAJ,GAAQ,CAAT,KAAe,MAAMW,CAArB,CAAD,GAA4BE,CAA5B,GAAgCV,IAAI,CAACe,EAA9C,IACAf,IAAI,CAACc,GAAL,CAAU,CAAC,IAAID,CAAJ,GAAQ,CAAT,KAAe,MAAML,CAArB,CAAD,GAA4BG,CAA5B,GAAgCX,IAAI,CAACe,EAA9C,CADA,GAEAR,CAAC,CAACV,CAAD,CAAD,CAAKgB,CAAL,CAHF;AAID;AACF;;AAEDD,MAAAA,GAAG,IAAKP,CAAC,CAACK,CAAD,CAAD,GAAOL,CAAC,CAACM,CAAD,CAAT,GAAgB,CAAvB;AACAF,MAAAA,CAAC,CAACC,CAAD,CAAD,CAAKC,CAAL,IAAUC,GAAV;AACD;AACF;;AAED,SAAOH,CAAP;AACD;;AAEDO,MAAM,CAACC,OAAP,GAAiBlD,UAAjB","sourcesContent":["/*\nCopyright (c) 2011 Elliot Shepherd\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n*/\n\n// https://code.google.com/p/ironchef-team21/source/browse/ironchef_team21/src/ImagePHash.java\n\n/*\n * pHash-like image hash.\n * Author: Elliot Shepherd (elliot@jarofworms.com\n * Based On: http://www.hackerfactor.com/blog/index.php?/archives/432-Looks-Like-It.html\n */\n\nfunction ImagePHash(size, smallerSize) {\n this.size = this.size || size;\n this.smallerSize = this.smallerSize || smallerSize;\n initCoefficients(this.size);\n}\n\nImagePHash.prototype.size = 32;\nImagePHash.prototype.smallerSize = 8;\n\nImagePHash.prototype.distance = function (s1, s2) {\n let counter = 0;\n\n for (let k = 0; k < s1.length; k++) {\n if (s1[k] !== s2[k]) {\n counter++;\n }\n }\n\n return counter / s1.length;\n};\n\n// Returns a 'binary string' (like. 001010111011100010) which is easy to do a hamming distance on.\nImagePHash.prototype.getHash = function (img) {\n /* 1. Reduce size.\n * Like Average Hash, pHash starts with a small image.\n * However, the image is larger than 8x8; 32x32 is a good size.\n * This is really done to simplify the DCT computation and not\n * because it is needed to reduce the high frequencies.\n */\n img = img.clone().resize(this.size, this.size);\n\n /* 2. Reduce color.\n * The image is reduced to a grayscale just to further simplify\n * the number of computations.\n */\n img.grayscale();\n\n const vals = [];\n\n for (let x = 0; x < img.bitmap.width; x++) {\n vals[x] = [];\n for (let y = 0; y < img.bitmap.height; y++) {\n vals[x][y] = intToRGBA(img.getPixelColor(x, y)).b;\n }\n }\n\n /* 3. Compute the DCT.\n * The DCT separates the image into a collection of frequencies\n * and scalars. While JPEG uses an 8x8 DCT, this algorithm uses\n * a 32x32 DCT.\n */\n const dctVals = applyDCT(vals, this.size);\n\n /* 4. Reduce the DCT.\n * This is the magic step. While the DCT is 32x32, just keep the\n * top-left 8x8. Those represent the lowest frequencies in the\n * picture.\n */\n /* 5. Compute the average value.\n * Like the Average Hash, compute the mean DCT value (using only\n * the 8x8 DCT low-frequency values and excluding the first term\n * since the DC coefficient can be significantly different from\n * the other values and will throw off the average).\n */\n let total = 0;\n\n for (let x = 0; x < this.smallerSize; x++) {\n for (let y = 0; y < this.smallerSize; y++) {\n total += dctVals[x][y];\n }\n }\n\n const avg = total / (this.smallerSize * this.smallerSize);\n\n /* 6. Further reduce the DCT.\n * This is the magic step. Set the 64 hash bits to 0 or 1\n * depending on whether each of the 64 DCT values is above or\n * below the average value. The result doesn't tell us the\n * actual low frequencies; it just tells us the very-rough\n * relative scale of the frequencies to the mean. The result\n * will not vary as long as the overall structure of the image\n * remains the same; this can survive gamma and color histogram\n * adjustments without a problem.\n */\n let hash = \"\";\n\n for (let x = 0; x < this.smallerSize; x++) {\n for (let y = 0; y < this.smallerSize; y++) {\n hash += dctVals[x][y] > avg ? \"1\" : \"0\";\n }\n }\n\n return hash;\n};\n\n// DCT function stolen from http://stackoverflow.com/questions/4240490/problems-with-dct-and-idct-algorithm-in-java\n\nfunction intToRGBA(i) {\n const rgba = {};\n\n rgba.r = Math.floor(i / Math.pow(256, 3));\n rgba.g = Math.floor((i - rgba.r * Math.pow(256, 3)) / Math.pow(256, 2));\n rgba.b = Math.floor(\n (i - rgba.r * Math.pow(256, 3) - rgba.g * Math.pow(256, 2)) /\n Math.pow(256, 1)\n );\n rgba.a = Math.floor(\n (i -\n rgba.r * Math.pow(256, 3) -\n rgba.g * Math.pow(256, 2) -\n rgba.b * Math.pow(256, 1)) /\n Math.pow(256, 0)\n );\n\n return rgba;\n}\n\nconst c = [];\nfunction initCoefficients(size) {\n for (let i = 1; i < size; i++) {\n c[i] = 1;\n }\n\n c[0] = 1 / Math.sqrt(2.0);\n}\n\nfunction applyDCT(f, size) {\n const N = size;\n const F = [];\n\n for (let u = 0; u < N; u++) {\n F[u] = [];\n for (let v = 0; v < N; v++) {\n let sum = 0;\n for (let i = 0; i < N; i++) {\n for (let j = 0; j < N; j++) {\n sum +=\n Math.cos(((2 * i + 1) / (2.0 * N)) * u * Math.PI) *\n Math.cos(((2 * j + 1) / (2.0 * N)) * v * Math.PI) *\n f[i][j];\n }\n }\n\n sum *= (c[u] * c[v]) / 4;\n F[u][v] = sum;\n }\n }\n\n return F;\n}\n\nmodule.exports = ImagePHash;\n"],"file":"phash.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/request.js b/WechatBot/node_modules/@jimp/core/dist/request.js deleted file mode 100755 index 074adb5d8..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/request.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); - -var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -/* global XMLHttpRequest */ -if (process.browser || process.env.ENVIRONMENT === "BROWSER" || typeof process.versions.electron !== "undefined" && process.type === "renderer" && typeof XMLHttpRequest === "function") { - // If we run into a browser or the electron renderer process, - // use XHR method instead of Request node module. - module.exports = function (options, cb) { - var xhr = new XMLHttpRequest(); - xhr.open("GET", options.url, true); - xhr.responseType = "arraybuffer"; - xhr.addEventListener("load", function () { - if (xhr.status < 400) { - try { - var data = Buffer.from(this.response); - cb(null, xhr, data); - } catch (error) { - return cb(new Error("Response is not a buffer for url " + options.url + ". Error: " + error.message)); - } - } else { - cb(new Error("HTTP Status " + xhr.status + " for url " + options.url)); - } - }); - xhr.addEventListener("error", function (e) { - cb(e); - }); - xhr.send(); - }; -} else { - module.exports = function (_ref, cb) { - var options = (0, _extends2["default"])({}, _ref); - - var p = require("phin"); - - p(_objectSpread({ - compression: true - }, options), function (err, res) { - if (err === null) { - cb(null, res, res.body); - } else { - cb(err); - } - }); - }; -} -//# sourceMappingURL=request.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/request.js.map b/WechatBot/node_modules/@jimp/core/dist/request.js.map deleted file mode 100644 index 6ffeb7f1d..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/request.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/request.js"],"names":["process","browser","env","ENVIRONMENT","versions","electron","type","XMLHttpRequest","module","exports","options","cb","xhr","open","url","responseType","addEventListener","status","data","Buffer","from","response","error","Error","message","e","send","p","require","compression","err","res","body"],"mappings":";;;;;;;;;;;;AAAA;AAEA,IACEA,OAAO,CAACC,OAAR,IACAD,OAAO,CAACE,GAAR,CAAYC,WAAZ,KAA4B,SAD5B,IAEC,OAAOH,OAAO,CAACI,QAAR,CAAiBC,QAAxB,KAAqC,WAArC,IACCL,OAAO,CAACM,IAAR,KAAiB,UADlB,IAEC,OAAOC,cAAP,KAA0B,UAL9B,EAME;AACA;AACA;AAEAC,EAAAA,MAAM,CAACC,OAAP,GAAiB,UAAUC,OAAV,EAAmBC,EAAnB,EAAuB;AACtC,QAAMC,GAAG,GAAG,IAAIL,cAAJ,EAAZ;AACAK,IAAAA,GAAG,CAACC,IAAJ,CAAS,KAAT,EAAgBH,OAAO,CAACI,GAAxB,EAA6B,IAA7B;AACAF,IAAAA,GAAG,CAACG,YAAJ,GAAmB,aAAnB;AACAH,IAAAA,GAAG,CAACI,gBAAJ,CAAqB,MAArB,EAA6B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.ENVIRONMENT === \"BROWSER\" ||\n (typeof process.versions.electron !== \"undefined\" &&\n process.type === \"renderer\" &&\n typeof XMLHttpRequest === \"function\")\n) {\n // If we run into a browser or the electron renderer process,\n // use XHR method instead of Request node module.\n\n module.exports = function (options, cb) {\n const xhr = new XMLHttpRequest();\n xhr.open(\"GET\", options.url, true);\n xhr.responseType = \"arraybuffer\";\n xhr.addEventListener(\"load\", function () {\n if (xhr.status < 400) {\n try {\n const data = Buffer.from(this.response);\n cb(null, xhr, data);\n } catch (error) {\n return cb(\n new Error(\n \"Response is not a buffer for url \" +\n options.url +\n \". Error: \" +\n error.message\n )\n );\n }\n } else {\n cb(new Error(\"HTTP Status \" + xhr.status + \" for url \" + options.url));\n }\n });\n xhr.addEventListener(\"error\", (e) => {\n cb(e);\n });\n xhr.send();\n };\n} else {\n module.exports = function ({ ...options }, cb) {\n const p = require(\"phin\");\n\n p({ compression: true, ...options }, (err, res) => {\n if (err === null) {\n cb(null, res, res.body);\n } else {\n cb(err);\n }\n });\n };\n}\n"],"file":"request.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/utils/image-bitmap.js b/WechatBot/node_modules/@jimp/core/dist/utils/image-bitmap.js deleted file mode 100755 index e7c3dc99a..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/utils/image-bitmap.js +++ /dev/null @@ -1,319 +0,0 @@ -"use strict"; - -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.parseBitmap = parseBitmap; -exports.getBuffer = getBuffer; -exports.getBufferAsync = getBufferAsync; - -var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); - -var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); - -var _fileType = _interopRequireDefault(require("file-type")); - -var _exifParser = _interopRequireDefault(require("exif-parser")); - -var _utils = require("@jimp/utils"); - -var constants = _interopRequireWildcard(require("../constants")); - -var MIME = _interopRequireWildcard(require("./mime")); - -var _promisify = _interopRequireDefault(require("./promisify")); - -function getMIMEFromBuffer(buffer, path) { - var fileTypeFromBuffer; - return _regenerator["default"].async(function getMIMEFromBuffer$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return _regenerator["default"].awrap(_fileType["default"].fromBuffer(buffer)); - - case 2: - fileTypeFromBuffer = _context.sent; - - if (!fileTypeFromBuffer) { - _context.next = 5; - break; - } - - return _context.abrupt("return", fileTypeFromBuffer.mime); - - case 5: - if (!path) { - _context.next = 7; - break; - } - - return _context.abrupt("return", MIME.getType(path)); - - case 7: - return _context.abrupt("return", null); - - case 8: - case "end": - return _context.stop(); - } - } - }); -} -/* - * Obtains image orientation from EXIF metadata. - * - * @param img {Jimp} a Jimp image object - * @returns {number} a number 1-8 representing EXIF orientation, - * in particular 1 if orientation tag is missing - */ - - -function getExifOrientation(img) { - return img._exif && img._exif.tags && img._exif.tags.Orientation || 1; -} -/** - * Returns a function which translates EXIF-rotated coordinates into - * non-rotated ones. - * - * Transformation reference: http://sylvana.net/jpegcrop/exif_orientation.html. - * - * @param img {Jimp} a Jimp image object - * @returns {function} transformation function for transformBitmap(). - */ - - -function getExifOrientationTransformation(img) { - var w = img.getWidth(); - var h = img.getHeight(); - - switch (getExifOrientation(img)) { - case 1: - // Horizontal (normal) - // does not need to be supported here - return null; - - case 2: - // Mirror horizontal - return function (x, y) { - return [w - x - 1, y]; - }; - - case 3: - // Rotate 180 - return function (x, y) { - return [w - x - 1, h - y - 1]; - }; - - case 4: - // Mirror vertical - return function (x, y) { - return [x, h - y - 1]; - }; - - case 5: - // Mirror horizontal and rotate 270 CW - return function (x, y) { - return [y, x]; - }; - - case 6: - // Rotate 90 CW - return function (x, y) { - return [y, h - x - 1]; - }; - - case 7: - // Mirror horizontal and rotate 90 CW - return function (x, y) { - return [w - y - 1, h - x - 1]; - }; - - case 8: - // Rotate 270 CW - return function (x, y) { - return [w - y - 1, x]; - }; - - default: - return null; - } -} -/* - * Transforms bitmap in place (moves pixels around) according to given - * transformation function. - * - * @param img {Jimp} a Jimp image object, which bitmap is supposed to - * be transformed - * @param width {number} bitmap width after the transformation - * @param height {number} bitmap height after the transformation - * @param transformation {function} transformation function which defines pixel - * mapping between new and source bitmap. It takes a pair of coordinates - * in the target, and returns a respective pair of coordinates in - * the source bitmap, i.e. has following form: - * `function(new_x, new_y) { return [src_x, src_y] }`. - */ - - -function transformBitmap(img, width, height, transformation) { - // Underscore-prefixed values are related to the source bitmap - // Their counterparts with no prefix are related to the target bitmap - var _data = img.bitmap.data; - var _width = img.bitmap.width; - var data = Buffer.alloc(_data.length); - - for (var x = 0; x < width; x++) { - for (var y = 0; y < height; y++) { - var _transformation = transformation(x, y), - _transformation2 = (0, _slicedToArray2["default"])(_transformation, 2), - _x = _transformation2[0], - _y = _transformation2[1]; - - var idx = width * y + x << 2; - - var _idx = _width * _y + _x << 2; - - var pixel = _data.readUInt32BE(_idx); - - data.writeUInt32BE(pixel, idx); - } - } - - img.bitmap.data = data; - img.bitmap.width = width; - img.bitmap.height = height; -} -/* - * Automagically rotates an image based on its EXIF data (if present). - * @param img {Jimp} a Jimp image object - */ - - -function exifRotate(img) { - if (getExifOrientation(img) < 2) return; - var transformation = getExifOrientationTransformation(img); - var swapDimensions = getExifOrientation(img) > 4; - var newWidth = swapDimensions ? img.bitmap.height : img.bitmap.width; - var newHeight = swapDimensions ? img.bitmap.width : img.bitmap.height; - transformBitmap(img, newWidth, newHeight, transformation); -} // parses a bitmap from the constructor to the JIMP bitmap property - - -function parseBitmap(data, path, cb) { - var mime, _mime; - - return _regenerator["default"].async(function parseBitmap$(_context2) { - while (1) { - switch (_context2.prev = _context2.next) { - case 0: - _context2.next = 2; - return _regenerator["default"].awrap(getMIMEFromBuffer(data, path)); - - case 2: - mime = _context2.sent; - - if (!(typeof mime !== "string")) { - _context2.next = 5; - break; - } - - return _context2.abrupt("return", cb(new Error("Could not find MIME for Buffer <" + path + ">"))); - - case 5: - this._originalMime = mime.toLowerCase(); - _context2.prev = 6; - _mime = this.getMIME(); - - if (!this.constructor.decoders[_mime]) { - _context2.next = 12; - break; - } - - this.bitmap = this.constructor.decoders[_mime](data); - _context2.next = 13; - break; - - case 12: - return _context2.abrupt("return", _utils.throwError.call(this, "Unsupported MIME type: " + _mime, cb)); - - case 13: - _context2.next = 18; - break; - - case 15: - _context2.prev = 15; - _context2.t0 = _context2["catch"](6); - return _context2.abrupt("return", cb.call(this, _context2.t0, this)); - - case 18: - try { - this._exif = _exifParser["default"].create(data).parse(); - exifRotate(this); // EXIF data - } catch (error) { - /* meh */ - } - - cb.call(this, null, this); - return _context2.abrupt("return", this); - - case 21: - case "end": - return _context2.stop(); - } - } - }, null, this, [[6, 15]]); -} - -function compositeBitmapOverBackground(Jimp, image) { - return new Jimp(image.bitmap.width, image.bitmap.height, image._background).composite(image, 0, 0).bitmap; -} -/** - * Converts the image to a buffer - * @param {string} mime the mime type of the image buffer to be created - * @param {function(Error, Jimp)} cb a Node-style function to call with the buffer as the second argument - * @returns {Jimp} this for chaining of methods - */ - - -function getBuffer(mime, cb) { - if (mime === constants.AUTO) { - // allow auto MIME detection - mime = this.getMIME(); - } - - if (typeof mime !== "string") { - return _utils.throwError.call(this, "mime must be a string", cb); - } - - if (typeof cb !== "function") { - return _utils.throwError.call(this, "cb must be a function", cb); - } - - mime = mime.toLowerCase(); - - if (this._rgba && this.constructor.hasAlpha[mime]) { - this.bitmap.data = Buffer.from(this.bitmap.data); - } else { - // when format doesn't support alpha - // composite onto a new image so that the background shows through alpha channels - this.bitmap.data = compositeBitmapOverBackground(this.constructor, this).data; - } - - if (this.constructor.encoders[mime]) { - var buffer = this.constructor.encoders[mime](this); - cb.call(this, null, buffer); - } else { - cb.call(this, "Unsupported MIME type: " + mime); - } - - return this; -} - -function getBufferAsync(mime) { - return (0, _promisify["default"])(getBuffer, this, mime); -} -//# sourceMappingURL=image-bitmap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/utils/image-bitmap.js.map b/WechatBot/node_modules/@jimp/core/dist/utils/image-bitmap.js.map deleted file mode 100644 index dcc464e99..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/utils/image-bitmap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/utils/image-bitmap.js"],"names":["getMIMEFromBuffer","buffer","path","FileType","fromBuffer","fileTypeFromBuffer","mime","MIME","getType","getExifOrientation","img","_exif","tags","Orientation","getExifOrientationTransformation","w","getWidth","h","getHeight","x","y","transformBitmap","width","height","transformation","_data","bitmap","data","_width","Buffer","alloc","length","_x","_y","idx","_idx","pixel","readUInt32BE","writeUInt32BE","exifRotate","swapDimensions","newWidth","newHeight","parseBitmap","cb","Error","_originalMime","toLowerCase","getMIME","constructor","decoders","throwError","call","EXIFParser","create","parse","error","compositeBitmapOverBackground","Jimp","image","_background","composite","getBuffer","constants","AUTO","_rgba","hasAlpha","from","encoders","getBufferAsync"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;AAEA;;AACA;;AAEA;;AACA;;AACA;;AAEA,SAAeA,iBAAf,CAAiCC,MAAjC,EAAyCC,IAAzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,+CACmCC,qBAASC,UAAT,CAAoBH,MAApB,CADnC;;AAAA;AACQI,UAAAA,kBADR;;AAAA,eAGMA,kBAHN;AAAA;AAAA;AAAA;;AAAA,2CAKWA,kBAAkB,CAACC,IAL9B;;AAAA;AAAA,eAQMJ,IARN;AAAA;AAAA;AAAA;;AAAA,2CAWWK,IAAI,CAACC,OAAL,CAAaN,IAAb,CAXX;;AAAA;AAAA,2CAcS,IAdT;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBA;;;;;;;;;AAOA,SAASO,kBAAT,CAA4BC,GAA5B,EAAiC;AAC/B,SAAQA,GAAG,CAACC,KAAJ,IAAaD,GAAG,CAACC,KAAJ,CAAUC,I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/C,CAAP;AACD;;AAED,MAAI,OAAOA,EAAP,KAAc,UAAlB,EAA8B;AAC5B,WAAOO,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,uBAAtB,EAA+CR,EAA/C,CAAP;AACD;;AAEDtC,EAAAA,IAAI,GAAGA,IAAI,CAACyC,WAAL,EAAP;;AAEA,MAAI,KAAKkB,KAAL,IAAc,KAAKhB,WAAL,CAAiBiB,QAAjB,CAA0B5D,IAA1B,CAAlB,EAAmD;AACjD,SAAKoB,MAAL,CAAYC,IAAZ,GAAmBE,MAAM,CAACsC,IAAP,CAAY,KAAKzC,MAAL,CAAYC,IAAxB,CAAnB;AACD,GAFD,MAEO;AACL;AACA;AACA,SAAKD,MAAL,CAAYC,IAAZ,GAAmB8B,6BAA6B,CAC9C,KAAKR,WADyC,EAE9C,IAF8C,CAA7B,CAGjBtB,IAHF;AAID;;AAED,MAAI,KAAKsB,WAAL,CAAiBmB,QAAjB,CAA0B9D,IAA1B,CAAJ,EAAqC;AACnC,QAAML,MAAM,GAAG,KAAKgD,WAAL,CAAiBmB,QAAjB,CAA0B9D,IAA1B,EAAgC,IAAhC,CAAf;AACAsC,IAAAA,EAAE,CAACQ,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoBnD,MAApB;AACD,GAHD,MAGO;AACL2C,IAAAA,EAAE,CAACQ,IAAH,CAAQ,IAAR,EAAc,4BAA4B9C,IAA1C;AACD;;AAED,SAAO,IAAP;AACD;;AAEM,SAAS+D,cAAT,CAAwB/D,IAAxB,EAA8B;AACnC,SAAO,2BAAUwD,SAAV,EAAqB,IAArB,EAA2BxD,IAA3B,CAAP;AACD","sourcesContent":["import FileType from \"file-type\";\n\nimport EXIFParser from \"exif-parser\";\nimport { throwError } from \"@jimp/utils\";\n\nimport * as constants from \"../constants\";\nimport * as MIME from \"./mime\";\nimport promisify from \"./promisify\";\n\nasync function getMIMEFromBuffer(buffer, path) {\n const fileTypeFromBuffer = await FileType.fromBuffer(buffer);\n\n if (fileTypeFromBuffer) {\n // If fileType returns something for buffer, then return the mime given\n return fileTypeFromBuffer.mime;\n }\n\n if (path) {\n // If a path is supplied, and fileType yields no results, then retry with MIME\n // Path can be either a file path or a url\n return MIME.getType(path);\n }\n\n return null;\n}\n\n/*\n * Obtains image orientation from EXIF metadata.\n *\n * @param img {Jimp} a Jimp image object\n * @returns {number} a number 1-8 representing EXIF orientation,\n * in particular 1 if orientation tag is missing\n */\nfunction getExifOrientation(img) {\n return (img._exif && img._exif.tags && img._exif.tags.Orientation) || 1;\n}\n\n/**\n * Returns a function which translates EXIF-rotated coordinates into\n * non-rotated ones.\n *\n * Transformation reference: http://sylvana.net/jpegcrop/exif_orientation.html.\n *\n * @param img {Jimp} a Jimp image object\n * @returns {function} transformation function for transformBitmap().\n */\nfunction getExifOrientationTransformation(img) {\n const w = img.getWidth();\n const h = img.getHeight();\n\n switch (getExifOrientation(img)) {\n case 1: // Horizontal (normal)\n // does not need to be supported here\n return null;\n\n case 2: // Mirror horizontal\n return function (x, y) {\n return [w - x - 1, y];\n };\n\n case 3: // Rotate 180\n return function (x, y) {\n return [w - x - 1, h - y - 1];\n };\n\n case 4: // Mirror vertical\n return function (x, y) {\n return [x, h - y - 1];\n };\n\n case 5: // Mirror horizontal and rotate 270 CW\n return function (x, y) {\n return [y, x];\n };\n\n case 6: // Rotate 90 CW\n return function (x, y) {\n return [y, h - x - 1];\n };\n\n case 7: // Mirror horizontal and rotate 90 CW\n return function (x, y) {\n return [w - y - 1, h - x - 1];\n };\n\n case 8: // Rotate 270 CW\n return function (x, y) {\n return [w - y - 1, x];\n };\n\n default:\n return null;\n }\n}\n\n/*\n * Transforms bitmap in place (moves pixels around) according to given\n * transformation function.\n *\n * @param img {Jimp} a Jimp image object, which bitmap is supposed to\n * be transformed\n * @param width {number} bitmap width after the transformation\n * @param height {number} bitmap height after the transformation\n * @param transformation {function} transformation function which defines pixel\n * mapping between new and source bitmap. It takes a pair of coordinates\n * in the target, and returns a respective pair of coordinates in\n * the source bitmap, i.e. has following form:\n * `function(new_x, new_y) { return [src_x, src_y] }`.\n */\nfunction transformBitmap(img, width, height, transformation) {\n // Underscore-prefixed values are related to the source bitmap\n // Their counterparts with no prefix are related to the target bitmap\n const _data = img.bitmap.data;\n const _width = img.bitmap.width;\n\n const data = Buffer.alloc(_data.length);\n\n for (let x = 0; x < width; x++) {\n for (let y = 0; y < height; y++) {\n const [_x, _y] = transformation(x, y);\n\n const idx = (width * y + x) << 2;\n const _idx = (_width * _y + _x) << 2;\n\n const pixel = _data.readUInt32BE(_idx);\n data.writeUInt32BE(pixel, idx);\n }\n }\n\n img.bitmap.data = data;\n img.bitmap.width = width;\n img.bitmap.height = height;\n}\n\n/*\n * Automagically rotates an image based on its EXIF data (if present).\n * @param img {Jimp} a Jimp image object\n */\nfunction exifRotate(img) {\n if (getExifOrientation(img) < 2) return;\n\n const transformation = getExifOrientationTransformation(img);\n const swapDimensions = getExifOrientation(img) > 4;\n\n const newWidth = swapDimensions ? img.bitmap.height : img.bitmap.width;\n const newHeight = swapDimensions ? img.bitmap.width : img.bitmap.height;\n\n transformBitmap(img, newWidth, newHeight, transformation);\n}\n\n// parses a bitmap from the constructor to the JIMP bitmap property\nexport async function parseBitmap(data, path, cb) {\n const mime = await getMIMEFromBuffer(data, path);\n\n if (typeof mime !== \"string\") {\n return cb(new Error(\"Could not find MIME for Buffer <\" + path + \">\"));\n }\n\n this._originalMime = mime.toLowerCase();\n\n try {\n const mime = this.getMIME();\n\n if (this.constructor.decoders[mime]) {\n this.bitmap = this.constructor.decoders[mime](data);\n } else {\n return throwError.call(this, \"Unsupported MIME type: \" + mime, cb);\n }\n } catch (error) {\n return cb.call(this, error, this);\n }\n\n try {\n this._exif = EXIFParser.create(data).parse();\n exifRotate(this); // EXIF data\n } catch (error) {\n /* meh */\n }\n\n cb.call(this, null, this);\n\n return this;\n}\n\nfunction compositeBitmapOverBackground(Jimp, image) {\n return new Jimp(\n image.bitmap.width,\n image.bitmap.height,\n image._background\n ).composite(image, 0, 0).bitmap;\n}\n\n/**\n * Converts the image to a buffer\n * @param {string} mime the mime type of the image buffer to be created\n * @param {function(Error, Jimp)} cb a Node-style function to call with the buffer as the second argument\n * @returns {Jimp} this for chaining of methods\n */\nexport function getBuffer(mime, cb) {\n if (mime === constants.AUTO) {\n // allow auto MIME detection\n mime = this.getMIME();\n }\n\n if (typeof mime !== \"string\") {\n return throwError.call(this, \"mime must be a string\", cb);\n }\n\n if (typeof cb !== \"function\") {\n return throwError.call(this, \"cb must be a function\", cb);\n }\n\n mime = mime.toLowerCase();\n\n if (this._rgba && this.constructor.hasAlpha[mime]) {\n this.bitmap.data = Buffer.from(this.bitmap.data);\n } else {\n // when format doesn't support alpha\n // composite onto a new image so that the background shows through alpha channels\n this.bitmap.data = compositeBitmapOverBackground(\n this.constructor,\n this\n ).data;\n }\n\n if (this.constructor.encoders[mime]) {\n const buffer = this.constructor.encoders[mime](this);\n cb.call(this, null, buffer);\n } else {\n cb.call(this, \"Unsupported MIME type: \" + mime);\n }\n\n return this;\n}\n\nexport function getBufferAsync(mime) {\n return promisify(getBuffer, this, mime);\n}\n"],"file":"image-bitmap.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/utils/mime.js b/WechatBot/node_modules/@jimp/core/dist/utils/mime.js deleted file mode 100755 index 6e94ba727..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/utils/mime.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.getExtension = exports.getType = exports.addType = void 0; -var mimeTypes = {}; - -var findType = function findType(extension) { - return Object.entries(mimeTypes).find(function (type) { - return type[1].includes(extension); - }) || []; -}; - -var addType = function addType(mime, extensions) { - mimeTypes[mime] = extensions; -}; -/** - * Lookup a mime type based on extension - * @param {string} path path to find extension for - * @returns {string} mime found mime type - */ - - -exports.addType = addType; - -var getType = function getType(path) { - var pathParts = path.split("/").slice(-1); - var extension = pathParts[pathParts.length - 1].split(".").pop(); - var type = findType(extension); - return type[0]; -}; -/** - * Return file extension associated with a mime type - * @param {string} type mime type to look up - * @returns {string} extension file extension - */ - - -exports.getType = getType; - -var getExtension = function getExtension(type) { - return (mimeTypes[type.toLowerCase()] || [])[0]; -}; - -exports.getExtension = getExtension; -//# sourceMappingURL=mime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/utils/mime.js.map b/WechatBot/node_modules/@jimp/core/dist/utils/mime.js.map deleted file mode 100644 index 0fbcd7e12..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/utils/mime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/utils/mime.js"],"names":["mimeTypes","findType","extension","Object","entries","find","type","includes","addType","mime","extensions","getType","path","pathParts","split","slice","length","pop","getExtension","toLowerCase"],"mappings":";;;;;;AAAA,IAAMA,SAAS,GAAG,EAAlB;;AAEA,IAAMC,QAAQ,GAAG,SAAXA,QAAW,CAACC,SAAD;AAAA,SACfC,MAAM,CAACC,OAAP,CAAeJ,SAAf,EAA0BK,IAA1B,CAA+B,UAACC,IAAD;AAAA,WAAUA,IAAI,CAAC,CAAD,CAAJ,CAAQC,QAAR,CAAiBL,SAAjB,CAAV;AAAA,GAA/B,KAAyE,EAD1D;AAAA,CAAjB;;AAGO,IAAMM,OAAO,GAAG,SAAVA,OAAU,CAACC,IAAD,EAAOC,UAAP,EAAsB;AAC3CV,EAAAA,SAAS,CAACS,IAAD,CAAT,GAAkBC,UAAlB;AACD,CAFM;AAIP;;;;;;;;;AAKO,IAAMC,OAAO,GAAG,SAAVA,OAAU,CAACC,IAAD,EAAU;AAC/B,MAAMC,SAAS,GAAGD,IAAI,CAACE,KAAL,CAAW,GAAX,EAAgBC,KAAhB,CAAsB,CAAC,CAAvB,CAAlB;AACA,MAAMb,SAAS,GAAGW,SAAS,CAACA,SAAS,CAACG,MAAV,GAAmB,CAApB,CAAT,CAAgCF,KAAhC,CAAsC,GAAtC,EAA2CG,GAA3C,EAAlB;AACA,MAAMX,IAAI,GAAGL,QAAQ,CAACC,SAAD,CAArB;AAEA,SAAOI,IAAI,CAAC,CAAD,CAAX;AACD,CANM;AAQP;;;;;;;;;AAKO,IAAMY,YAAY,GAAG,SAAfA,YAAe,CAACZ,IAAD;AAAA,SAAU,CAACN,SAAS,CAACM,IAAI,CAACa,WAAL,EAAD,CAAT,IAAiC,EAAlC,EAAsC,CAAtC,CAAV;AAAA,CAArB","sourcesContent":["const mimeTypes = {};\n\nconst findType = (extension) =>\n Object.entries(mimeTypes).find((type) => type[1].includes(extension)) || [];\n\nexport const addType = (mime, extensions) => {\n mimeTypes[mime] = extensions;\n};\n\n/**\n * Lookup a mime type based on extension\n * @param {string} path path to find extension for\n * @returns {string} mime found mime type\n */\nexport const getType = (path) => {\n const pathParts = path.split(\"/\").slice(-1);\n const extension = pathParts[pathParts.length - 1].split(\".\").pop();\n const type = findType(extension);\n\n return type[0];\n};\n\n/**\n * Return file extension associated with a mime type\n * @param {string} type mime type to look up\n * @returns {string} extension file extension\n */\nexport const getExtension = (type) => (mimeTypes[type.toLowerCase()] || [])[0];\n"],"file":"mime.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/utils/promisify.js b/WechatBot/node_modules/@jimp/core/dist/utils/promisify.js deleted file mode 100755 index 35223d344..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/utils/promisify.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var promisify = function promisify(fun, ctx) { - for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { - args[_key - 2] = arguments[_key]; - } - - return new Promise(function (resolve, reject) { - args.push(function (err, data) { - if (err) { - reject(err); - } - - resolve(data); - }); - fun.bind(ctx).apply(void 0, args); - }); -}; - -var _default = promisify; -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=promisify.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/dist/utils/promisify.js.map b/WechatBot/node_modules/@jimp/core/dist/utils/promisify.js.map deleted file mode 100644 index c72c0c483..000000000 --- a/WechatBot/node_modules/@jimp/core/dist/utils/promisify.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/utils/promisify.js"],"names":["promisify","fun","ctx","args","Promise","resolve","reject","push","err","data","bind"],"mappings":";;;;;;;AAAA,IAAMA,SAAS,GAAG,SAAZA,SAAY,CAACC,GAAD,EAAMC,GAAN;AAAA,oCAAcC,IAAd;AAAcA,IAAAA,IAAd;AAAA;;AAAA,SAChB,IAAIC,OAAJ,CAAY,UAACC,OAAD,EAAUC,MAAV,EAAqB;AAC/BH,IAAAA,IAAI,CAACI,IAAL,CAAU,UAACC,GAAD,EAAMC,IAAN,EAAe;AACvB,UAAID,GAAJ,EAAS;AACPF,QAAAA,MAAM,CAACE,GAAD,CAAN;AACD;;AAEDH,MAAAA,OAAO,CAACI,IAAD,CAAP;AACD,KAND;AAOAR,IAAAA,GAAG,CAACS,IAAJ,CAASR,GAAT,gBAAiBC,IAAjB;AACD,GATD,CADgB;AAAA,CAAlB;;eAYeH,S","sourcesContent":["const promisify = (fun, ctx, ...args) =>\n new Promise((resolve, reject) => {\n args.push((err, data) => {\n if (err) {\n reject(err);\n }\n\n resolve(data);\n });\n fun.bind(ctx)(...args);\n });\n\nexport default promisify;\n"],"file":"promisify.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/core/package.json b/WechatBot/node_modules/@jimp/core/package.json deleted file mode 100644 index 65183a5d3..000000000 --- a/WechatBot/node_modules/@jimp/core/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "@jimp/core", - "version": "0.16.13", - "description": "Jimp core", - "main": "dist/index.js", - "module": "es/index.js", - "types": "types/index.d.ts", - "files": [ - "dist", - "es", - "index.d.ts", - "fonts", - "types" - ], - "repository": "jimp-dev/jimp", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register test/**/*.js", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "Oliver Moran ", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13", - "any-base": "^1.1.0", - "buffer": "^5.2.0", - "exif-parser": "^0.1.12", - "file-type": "^16.5.4", - "load-bmfont": "^1.3.1", - "mkdirp": "^0.5.1", - "phin": "^2.9.1", - "pixelmatch": "^4.0.2", - "tinycolor2": "^1.4.1" - }, - "devDependencies": { - "should": "^13.2.3" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/core/types/etc.d.ts b/WechatBot/node_modules/@jimp/core/types/etc.d.ts deleted file mode 100644 index e13192e60..000000000 --- a/WechatBot/node_modules/@jimp/core/types/etc.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { Jimp } from "./jimp"; - -export interface Image { - bitmap: Bitmap; -} - -export type DecoderFn = (data: Buffer) => Bitmap; -export type EncoderFn = ( - image: ImageType -) => Buffer; - -export type GenericCallback = ( - this: TThis, - err: Error | null, - value: T -) => U; - -/** - * `jimp` must be defined otherwise `this` will not apply properly - * for custom configurations where plugins and types are needed - */ -export type ImageCallback = ( - this: jimp, - err: Error | null, - value: jimp, - coords: { - x: number; - y: number; - } -) => any; - -type BlendMode = { - mode: string; - opacitySource: number; - opacityDest: number; -}; - -type ChangeName = "background" | "scan" | "crop"; - -type ListenableName = - | "any" - | "initialized" - | "before-change" - | "changed" - | "before-clone" - | "cloned" - | ChangeName; - -type ListenerData = T extends "any" - ? any - : T extends ChangeName - ? { - eventName: "before-change" | "changed"; - methodName: T; - [key: string]: any; - } - : { - eventName: T; - methodName: T extends "initialized" - ? "constructor" - : T extends "before-change" | "changed" - ? ChangeName - : T extends "before-clone" | "cloned" - ? "clone" - : any; - }; - -type URLOptions = { - url: string; - compression?: boolean; - headers: { - [key: string]: any; - }; -}; - -export interface Bitmap { - data: Buffer; - width: number; - height: number; -} - -export interface RGB { - r: number; - g: number; - b: number; -} - -export interface RGBA { - r: number; - g: number; - b: number; - a: number; -} diff --git a/WechatBot/node_modules/@jimp/core/types/functions.d.ts b/WechatBot/node_modules/@jimp/core/types/functions.d.ts deleted file mode 100644 index de74902e2..000000000 --- a/WechatBot/node_modules/@jimp/core/types/functions.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Jimp } from "./jimp"; - -export function addConstants( - constants: [string, string | number], - jimpInstance?: Jimp -): void; -export function addJimpMethods( - methods: [string, Function], - jimpInstance?: Jimp -): void; -export function jimpEvMethod( - methodName: string, - evName: string, - method: Function -): void; -export function jimpEvChange(methodName: string, method: Function): void; -export function addType(mime: string, extensions: string[]): void; diff --git a/WechatBot/node_modules/@jimp/core/types/index.d.ts b/WechatBot/node_modules/@jimp/core/types/index.d.ts deleted file mode 100644 index 88bd53a74..000000000 --- a/WechatBot/node_modules/@jimp/core/types/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export * from "./etc"; -export * from "./functions"; -export * from "./plugins"; -export * from "./utils"; -import { Jimp, JimpConstructors } from "./jimp"; - -export { Jimp, JimpConstructors }; -declare const defaultExp: Jimp; -export default defaultExp; diff --git a/WechatBot/node_modules/@jimp/core/types/jimp.d.ts b/WechatBot/node_modules/@jimp/core/types/jimp.d.ts deleted file mode 100644 index 3b7d7a114..000000000 --- a/WechatBot/node_modules/@jimp/core/types/jimp.d.ts +++ /dev/null @@ -1,246 +0,0 @@ -import { - Bitmap, - ImageCallback, - URLOptions, - ListenableName, - ListenerData, - GenericCallback, - BlendMode, - RGBA, - RGB, -} from "./etc"; - -interface DiffReturn { - percent: number; - image: This; -} - -interface ScanIteratorReturn { - x: number; - y: number; - idx: number; - image: This; -} - -export interface JimpConstructors { - prototype: Jimp; - // Constants - AUTO: -1; - // blend modes - BLEND_SOURCE_OVER: string; - BLEND_DESTINATION_OVER: string; - BLEND_MULTIPLY: string; - BLEND_ADD: string; - BLEND_SCREEN: string; - BLEND_OVERLAY: string; - BLEND_DARKEN: string; - BLEND_LIGHTEN: string; - BLEND_HARDLIGHT: string; - BLEND_DIFFERENCE: string; - BLEND_EXCLUSION: string; - // Align modes for cover, contain, bit masks - HORIZONTAL_ALIGN_LEFT: 1; - HORIZONTAL_ALIGN_CENTER: 2; - HORIZONTAL_ALIGN_RIGHT: 4; - VERTICAL_ALIGN_TOP: 8; - VERTICAL_ALIGN_MIDDLE: 16; - VERTICAL_ALIGN_BOTTOM: 32; - // Edge Handling - EDGE_EXTEND: 1; - EDGE_WRAP: 2; - EDGE_CROP: 3; - - // Constructors - new (path: string, cb?: ImageCallback): this["prototype"]; - new ( - urlOptions: URLOptions, - cb?: ImageCallback - ): this["prototype"]; - new (image: Jimp, cb?: ImageCallback): this["prototype"]; - new (data: Buffer, cb?: ImageCallback): this["prototype"]; - new (data: Bitmap, cb?: ImageCallback): this["prototype"]; - new ( - w: number, - h: number, - cb?: ImageCallback - ): this["prototype"]; - new ( - w: number, - h: number, - background?: number | string, - cb?: ImageCallback - ): this["prototype"]; - // For custom constructors when using Jimp.appendConstructorOption - new (...args: any[]): this["prototype"]; - - // Functions - /** - * I'd like to make `Args` generic and used in `run` and `test` but alas, - * it's not possible RN: - * https://github.com/microsoft/TypeScript/issues/26113 - */ - appendConstructorOption< - Args extends any[], - J extends Jimp = this["prototype"] - >( - name: string, - test: (...args: any[]) => boolean, - run: ( - this: J, - resolve: (jimp?: J) => any, - reject: (reason: Error) => any, - ...args: any[] - ) => any - ): void; - read( - path: string, - cb?: ImageCallback - ): Promise; - read( - image: Jimp, - cb?: ImageCallback - ): Promise; - read( - data: Buffer, - cb?: ImageCallback - ): Promise; - read( - w: number, - h: number, - background?: number | string, - cb?: ImageCallback - ): Promise; - create(path: string): Promise; - create(image: Jimp): Promise; - create(data: Buffer): Promise; - create( - w: number, - h: number, - background?: number | string - ): Promise; - rgbaToInt( - r: number, - g: number, - b: number, - a: number, - cb?: GenericCallback - ): number; - intToRGBA(i: number, cb?: GenericCallback): RGBA; - cssColorToHex(cssColor: string): number; - limit255(n: number): number; - diff( - img1: Jimp, - img2: Jimp, - threshold?: number - ): DiffReturn; - distance(img1: Jimp, img2: Jimp): number; - compareHashes(hash1: string, hash2: string): number; - colorDiff(rgba1: RGB, rgba2: RGB): number; - colorDiff(rgba1: RGBA, rgba2: RGBA): number; -} - -export interface Jimp { - // Properties - bitmap: Bitmap; - _rgba: boolean; - _background: number; - _originalMime: string; - // Methods - on( - event: T, - cb: (data: ListenerData) => any - ): any; - parseBitmap( - data: Buffer, - path: string | null | undefined, - cb?: ImageCallback - ): void; - hasAlpha(): boolean; - getHeight(): number; - getWidth(): number; - inspect(): string; - toString(): string; - getMIME(): string; - getExtension(): string; - distanceFromHash(hash: string): number; - write(path: string, cb?: ImageCallback): this; - writeAsync(path: string): Promise; - rgba(bool: boolean, cb?: ImageCallback): this; - getBase64(mime: string, cb: GenericCallback): this; - getBase64Async(mime: string): Promise; - hash(cb?: GenericCallback): string; - hash( - base: number | null | undefined, - cb?: GenericCallback - ): string; - getBuffer(mime: string, cb: GenericCallback): this; - getBufferAsync(mime: string): Promise; - getPixelIndex( - x: number, - y: number, - cb?: GenericCallback - ): number; - getPixelIndex( - x: number, - y: number, - edgeHandling: number, - cb?: GenericCallback - ): number; - getPixelColor( - x: number, - y: number, - cb?: GenericCallback - ): number; - getPixelColour( - x: number, - y: number, - cb?: GenericCallback - ): number; - setPixelColor( - hex: number, - x: number, - y: number, - cb?: ImageCallback - ): this; - setPixelColour( - hex: number, - x: number, - y: number, - cb?: ImageCallback - ): this; - clone(cb?: ImageCallback): this; - cloneQuiet(cb?: ImageCallback): this; - background(hex: number, cb?: ImageCallback): this; - backgroundQuiet(hex: number, cb?: ImageCallback): this; - scan( - x: number, - y: number, - w: number, - h: number, - f: (this: this, x: number, y: number, idx: number) => any, - cb?: ImageCallback - ): this; - scanQuiet( - x: number, - y: number, - w: number, - h: number, - f: (this: this, x: number, y: number, idx: number) => any, - cb?: ImageCallback - ): this; - scanIterator( - x: number, - y: number, - w: number, - h: number - ): IterableIterator>; - - // Effect methods - composite( - src: Jimp, - x: number, - y: number, - options?: BlendMode, - cb?: ImageCallback - ): this; -} diff --git a/WechatBot/node_modules/@jimp/core/types/plugins.d.ts b/WechatBot/node_modules/@jimp/core/types/plugins.d.ts deleted file mode 100644 index 62bf2ea9e..000000000 --- a/WechatBot/node_modules/@jimp/core/types/plugins.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - * These files pertain to the typings of plugins or types - * - * They're not meant as utils to decode types, but rather - * the type definitons themsleves for plugins and types of various kinds - */ -import { Image, EncoderFn, DecoderFn } from "./etc"; - -import { Omit } from "./utils"; - -export type IllformedPlugin = Omit & { - class?: never; - constants?: never; -}; - -export interface WellFormedPlugin { - mime?: { - [MIME_TYPE: string]: string[]; - }; - hasAlpha?: { - [MIME_SPECIAL: string]: boolean; - }; - constants?: { - // Contants to assign to the Jimp instance - [MIME_SPECIAL: string]: any; - }; - decoders?: { - [MIME_TYPE: string]: DecoderFn; - }; - encoders?: { - // Jimp Image - [MIME_TYPE: string]: EncoderFn; - }; - // Extend the Jimp class with the following constants, etc - class?: any; -} - -type ClassOrConstantPlugin = WellFormedPlugin & - ( - | Required, "class">> - | Required, "constants">> - ); - -// A Jimp type requires mime, but not class -export type JimpType = WellFormedPlugin & - Required, "mime">>; - -// Jimp plugin either MUST have class OR constant or be illformed -export type JimpPlugin = - | ClassOrConstantPlugin - | IllformedPlugin; diff --git a/WechatBot/node_modules/@jimp/core/types/utils.d.ts b/WechatBot/node_modules/@jimp/core/types/utils.d.ts deleted file mode 100644 index 463321b97..000000000 --- a/WechatBot/node_modules/@jimp/core/types/utils.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { JimpType, JimpPlugin } from "./plugins"; - -// This is required as providing type arrays gives a union of all the generic -// types in the array rather than an intersection -export type UnionToIntersection = ( - U extends any ? (k: U) => void : never -) extends (k: infer I) => void - ? I - : never; - -/** - * The values to be extracted from a WellFormedPlugin to put onto the Jimp instance - * Left loose as "any" in order to enable the GetPluginVal to work properly - */ -export type WellFormedValues = T extends { class: infer Class } - ? Class - : {}; - -/** - * The constants to be extracted from a WellFormedPlugin to put onto the Jimp instance - * Left loose as "any" in order to enable the GetPluginConstants to work properly - */ -export type WellFormedConstants = T extends { - constants: infer Constants; -} - ? Constants - : {}; - -// Util type for the functions that deal with `@jimp/custom` -// Must accept any or no props thanks to typing of the `plugins` intersected function -export type FunctionRet = Array<(...props: any[] | never) => T>; - -/** - * This conditional cannot be flipped. TS assumes that Q is `WellFormed` even - * it does not have the `class` or `constant` props. As a result, it will end - * up `undefined`. Because we're always extending `IllformedPlugin` on the - * plugins, this should work fine - */ -export type GetPluginVal = Q extends - | Required<{ class: any }> - | Required<{ constants: any }> - ? WellFormedValues - : Q; - -export type GetPluginConst = Q extends - | Required<{ class: any }> - | Required<{ constants: any }> - ? WellFormedConstants - : {}; - -export type GetPluginDecoders = Q extends - | Required<{ class: any }> - | Required<{ constants: any }> - ? Q extends { decoders: infer Decoders } - ? Decoders - : {} - : {}; - -export type GetPluginEncoders = Q extends - | Required<{ class: any }> - | Required<{ constants: any }> - ? Q extends { encoders: infer Encoders } - ? Encoders - : {} - : {}; - -type GetPluginFuncArrValues = - // Given an array of types infer `Q` (Q should be the type value) - PluginFuncArr extends ReadonlyArray - ? F extends () => infer Q - ? // Get the plugin value, may be ill-formed or well-formed - GetPluginVal - : // This should never be reached - undefined - : undefined; - -/** - * A helper type to get the values to be intersected with `Jimp` to give - * the proper typing given an array of functions for plugins and types - */ -export type GetIntersectionFromPlugins< - PluginFuncArr extends FunctionRet -> = UnionToIntersection< - Exclude, undefined> ->; - -type GetPluginFuncArrConsts = - // Given an array of types infer `Q` (Q should be the type value) - PluginFuncArr extends ReadonlyArray - ? F extends () => infer Q - ? // Get the plugin constants, may be ill-formed or well-formed - GetPluginConst - : // This should never be reached - undefined - : undefined; - -type GetPluginFuncArrEncoders = - // Given an array of types infer `Q` (Q should be the type value) - PluginFuncArr extends ReadonlyArray - ? F extends () => infer Q - ? // Get the plugin encoders, may be ill-formed or well-formed - GetPluginEncoders - : // This should never be reached - undefined - : undefined; - -type GetPluginFuncArrDecoders = - // Given an array of types infer `Q` (Q should be the type value) - PluginFuncArr extends ReadonlyArray - ? F extends () => infer Q - ? // Get the plugin decoders, may be ill-formed or well-formed - GetPluginDecoders - : // This should never be reached - undefined - : undefined; - -/** - * A helper type to get the statics to be intersected with `Jimp` to give - * the proper typing given an array of functions for plugins and types - */ -export type GetIntersectionFromPluginsStatics< - PluginFuncArr extends FunctionRet -> = UnionToIntersection> & { - encoders: UnionToIntersection>; - decoders: UnionToIntersection>; -}; - -/** - * While this was added to TS 3.5, in order to support down to TS 2.8, we need - * to export this and use it in sub-packges that utilize it - */ -export type Omit = Pick>; diff --git a/WechatBot/node_modules/@jimp/custom/CHANGELOG.md b/WechatBot/node_modules/@jimp/custom/CHANGELOG.md deleted file mode 100644 index 7c14f300b..000000000 --- a/WechatBot/node_modules/@jimp/custom/CHANGELOG.md +++ /dev/null @@ -1,59 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.10.0 (Mon Mar 30 2020) - -#### 🚀 Enhancement - -- Properly split constructor and instance types [#867](https://github.com/oliver-moran/jimp/pull/867) ([@forivall](https://github.com/forivall)) - -#### Authors: 1 - -- Emily Marigold Klassen ([@forivall](https://github.com/forivall)) - ---- - -# v0.9.6 (Wed Mar 18 2020) - -#### 🏠 Internal - -- Fix TypeScript error on 'next' [#858](https://github.com/oliver-moran/jimp/pull/858) ([@crutchcorn](https://github.com/crutchcorn)) - -#### Authors: 1 - -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/custom/LICENSE b/WechatBot/node_modules/@jimp/custom/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/custom/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/custom/README.md b/WechatBot/node_modules/@jimp/custom/README.md deleted file mode 100644 index 961d73339..000000000 --- a/WechatBot/node_modules/@jimp/custom/README.md +++ /dev/null @@ -1,198 +0,0 @@ -
- -

@jimp/custom

-

Configure jimp with types and plugins.

-
- -## Useful Defaults - -The following wil configure a `jimp` instance with the same functionality as the main `jimp` package. - -```js -import configure from "@jimp/custom"; -// all of jimp's default types -import types from "@jimp/types"; -// all of jimp's default types -import plugins from "@jimp/plugins"; - -configure({ - types: [types], - plugins: [plugins], -}); -``` - -## Available Methods - -### configure - -Takes a Jimp configuration and applies it to `@jimp/core`. - -Sample Jimp configuration: - -```js -import types from '@jimp/types'; - -import bmp from '@jimp/bmp'; -import jpeg from '@jimp/types'; -... - -configure({ - types: [types] -}) - -// or - -configure({ - types: [bmp, jpeg, ...] -}) -``` - -#### Extending Jimp Further - -You can use configure to add more types and plugins to a jimp multiple times. - -```js -let jimp = configure({ - types: [bmp], -}); - -jimp = configure( - { - types: [jpeg], - }, - jimp -); -``` - -## Type Definition - -To define a new Jimp image type write a function the takes the current Jimp configuration. In this function you can extend Jimp's internal data structures. - -This function must return an object whose key is the mime type and value is an array of valid file extensions. - -```js -const special = require('special-js'); - -const MIME_TYPE = 'image/special'; - -export default () => ({ - mime: {[MIME_TYPE], ['spec', 'special']}, - - constants: { - MIME_SPECIAL: MIME_TYPE - }, - - decoders: { - [MIME_TYPE]: data => special.decode(data) - }, - - encoders: { - [MIME_TYPE]: image => special.encode(image.bitmap) - } -}); -``` - -### Constants - -A jimp image type can expose as many constants as it wants. Each jimp type is required to expose a mime type. - -```js -constants: { - MIME_SPECIAL: MIME_TYPE -}, -``` - -### hasAlpha - -A image type can define whether it supports an alpha channel. - -```js -hasAlpha: { - MIME_SPECIAL: true -}, -``` - -### Decoder - -A function that when supplied with a buffer should return a bitmap with height and width. - -```js -decoders: { - [MIME_TYPE]: data => special.decode(data) -}, -``` - -### Encoder - -A function that when supplied with a Jimp image should return an encoded buffer. - -```js -encoders: { - [MIME_TYPE]: image => special.encode(image.bitmap) -} -``` - -### Class - -Add class properties and function to the Jimp constructor. - -```js -class: { - _quality: 100, - quality: function(n, cb) { - if (typeof n !== 'number') { - return throwError.call(this, 'n must be a number', cb); - } - - if (n < 0 || n > 100) { - return throwError.call(this, 'n must be a number 0 - 100', cb); - } - - this._quality = Math.round(n); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - } -}; -``` - -## Plugin Definition - -Defining a plugin has access to all the same things in the type definition. Mainly plugins use just the `constants` and `class` config options. - -Below is the `invert` plugin. If a plugin doesn return an object with `constants` and `class`, all keys are treated as class functions. - -```js -import { isNodePattern } from "@jimp/utils"; - -/** - * Inverts the image - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -export default () => ({ - invert(cb) { - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - this.bitmap.data[idx] = 255 - this.bitmap.data[idx]; - this.bitmap.data[idx + 1] = 255 - this.bitmap.data[idx + 1]; - this.bitmap.data[idx + 2] = 255 - this.bitmap.data[idx + 2]; - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); -``` diff --git a/WechatBot/node_modules/@jimp/custom/dist/index.js b/WechatBot/node_modules/@jimp/custom/dist/index.js deleted file mode 100755 index 5379fa587..000000000 --- a/WechatBot/node_modules/@jimp/custom/dist/index.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; - -var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = configure; - -var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); - -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); - -var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray")); - -var _core = _interopRequireWildcard(require("@jimp/core")); - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } - -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } - -function configure(configuration) { - var jimpInstance = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _core["default"]; - var jimpConfig = { - hasAlpha: {}, - encoders: {}, - decoders: {}, - "class": {}, - constants: {} - }; - - function addToConfig(newConfig) { - Object.entries(newConfig).forEach(function (_ref) { - var _ref2 = (0, _slicedToArray2["default"])(_ref, 2), - key = _ref2[0], - value = _ref2[1]; - - jimpConfig[key] = _objectSpread({}, jimpConfig[key], {}, value); - }); - } - - function addImageType(typeModule) { - var type = typeModule(); - - if (Array.isArray(type.mime)) { - _core.addType.apply(void 0, (0, _toConsumableArray2["default"])(type.mime)); - } else { - Object.entries(type.mime).forEach(function (mimeType) { - return _core.addType.apply(void 0, (0, _toConsumableArray2["default"])(mimeType)); - }); - } - - delete type.mime; - addToConfig(type); - } - - function addPlugin(pluginModule) { - var plugin = pluginModule(_core.jimpEvChange) || {}; - - if (!plugin["class"] && !plugin.constants) { - // Default to class function - addToConfig({ - "class": plugin - }); - } else { - addToConfig(plugin); - } - } - - if (configuration.types) { - configuration.types.forEach(addImageType); - jimpInstance.decoders = _objectSpread({}, jimpInstance.decoders, {}, jimpConfig.decoders); - jimpInstance.encoders = _objectSpread({}, jimpInstance.encoders, {}, jimpConfig.encoders); - jimpInstance.hasAlpha = _objectSpread({}, jimpInstance.hasAlpha, {}, jimpConfig.hasAlpha); - } - - if (configuration.plugins) { - configuration.plugins.forEach(addPlugin); - } - - (0, _core.addJimpMethods)(jimpConfig["class"], jimpInstance); - (0, _core.addConstants)(jimpConfig.constants, jimpInstance); - return _core["default"]; -} - -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/custom/dist/index.js.map b/WechatBot/node_modules/@jimp/custom/dist/index.js.map deleted file mode 100644 index c10c12129..000000000 --- a/WechatBot/node_modules/@jimp/custom/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["configure","configuration","jimpInstance","Jimp","jimpConfig","hasAlpha","encoders","decoders","constants","addToConfig","newConfig","Object","entries","forEach","key","value","addImageType","typeModule","type","Array","isArray","mime","addType","mimeType","addPlugin","pluginModule","plugin","jimpEvChange","types","plugins"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;AAOe,SAASA,SAAT,CAAmBC,aAAnB,EAAuD;AAAA,MAArBC,YAAqB,uEAANC,gBAAM;AACpE,MAAMC,UAAU,GAAG;AACjBC,IAAAA,QAAQ,EAAE,EADO;AAEjBC,IAAAA,QAAQ,EAAE,EAFO;AAGjBC,IAAAA,QAAQ,EAAE,EAHO;AAIjB,aAAO,EAJU;AAKjBC,IAAAA,SAAS,EAAE;AALM,GAAnB;;AAQA,WAASC,WAAT,CAAqBC,SAArB,EAAgC;AAC9BC,IAAAA,MAAM,CAACC,OAAP,CAAeF,SAAf,EAA0BG,OAA1B,CAAkC,gBAAkB;AAAA;AAAA,UAAhBC,GAAgB;AAAA,UAAXC,KAAW;;AAClDX,MAAAA,UAAU,CAACU,GAAD,CAAV,qBACKV,UAAU,CAACU,GAAD,CADf,MAEKC,KAFL;AAID,KALD;AAMD;;AAED,WAASC,YAAT,CAAsBC,UAAtB,EAAkC;AAChC,QAAMC,IAAI,GAAGD,UAAU,EAAvB;;AAEA,QAAIE,KAAK,CAACC,OAAN,CAAcF,IAAI,CAACG,IAAnB,CAAJ,EAA8B;AAC5BC,sEAAWJ,IAAI,CAACG,IAAhB;AACD,KAFD,MAEO;AACLV,MAAAA,MAAM,CAACC,OAAP,CAAeM,IAAI,CAACG,IAApB,EAA0BR,OAA1B,CAAkC,UAACU,QAAD;AAAA,eAAcD,gEAAWC,QAAX,EAAd;AAAA,OAAlC;AACD;;AAED,WAAOL,IAAI,CAACG,IAAZ;AACAZ,IAAAA,WAAW,CAACS,IAAD,CAAX;AACD;;AAED,WAASM,SAAT,CAAmBC,YAAnB,EAAiC;AAC/B,QAAMC,MAAM,GAAGD,YAAY,CAACE,kBAAD,CAAZ,IAA8B,EAA7C;;AACA,QAAI,CAACD,MAAM,SAAP,IAAiB,CAACA,MAAM,CAAClB,SAA7B,EAAwC;AACtC;AACAC,MAAAA,WAAW,CAAC;AAAE,iBAAOiB;AAAT,OAAD,CAAX;AACD,KAHD,MAGO;AACLjB,MAAAA,WAAW,CAACiB,MAAD,CAAX;AACD;AACF;;AAED,MAAIzB,aAAa,CAAC2B,KAAlB,EAAyB;AACvB3B,IAAAA,aAAa,CAAC2B,KAAd,CAAoBf,OAApB,CAA4BG,YAA5B;AAEAd,IAAAA,YAAY,CAACK,QAAb,qBACKL,YAAY,CAACK,QADlB,MAEKH,UAAU,CAACG,QAFhB;AAIAL,IAAAA,YAAY,CAACI,QAAb,qBACKJ,YAAY,CAACI,QADlB,MAEKF,UAAU,CAACE,QAFhB;AAIAJ,IAAAA,YAAY,CAACG,QAAb,qBACKH,YAAY,CAACG,QADlB,MAEKD,UAAU,CAACC,QAFhB;AAID;;AAED,MAAIJ,aAAa,CAAC4B,OAAlB,EAA2B;AACzB5B,IAAAA,aAAa,CAAC4B,OAAd,CAAsBhB,OAAtB,CAA8BW,SAA9B;AACD;;AAED,4BAAepB,UAAU,SAAzB,EAAiCF,YAAjC;AACA,0BAAaE,UAAU,CAACI,SAAxB,EAAmCN,YAAnC;AAEA,SAAOC,gBAAP;AACD","sourcesContent":["import Jimp, {\n addType,\n addJimpMethods,\n addConstants,\n jimpEvChange,\n} from \"@jimp/core\";\n\nexport default function configure(configuration, jimpInstance = Jimp) {\n const jimpConfig = {\n hasAlpha: {},\n encoders: {},\n decoders: {},\n class: {},\n constants: {},\n };\n\n function addToConfig(newConfig) {\n Object.entries(newConfig).forEach(([key, value]) => {\n jimpConfig[key] = {\n ...jimpConfig[key],\n ...value,\n };\n });\n }\n\n function addImageType(typeModule) {\n const type = typeModule();\n\n if (Array.isArray(type.mime)) {\n addType(...type.mime);\n } else {\n Object.entries(type.mime).forEach((mimeType) => addType(...mimeType));\n }\n\n delete type.mime;\n addToConfig(type);\n }\n\n function addPlugin(pluginModule) {\n const plugin = pluginModule(jimpEvChange) || {};\n if (!plugin.class && !plugin.constants) {\n // Default to class function\n addToConfig({ class: plugin });\n } else {\n addToConfig(plugin);\n }\n }\n\n if (configuration.types) {\n configuration.types.forEach(addImageType);\n\n jimpInstance.decoders = {\n ...jimpInstance.decoders,\n ...jimpConfig.decoders,\n };\n jimpInstance.encoders = {\n ...jimpInstance.encoders,\n ...jimpConfig.encoders,\n };\n jimpInstance.hasAlpha = {\n ...jimpInstance.hasAlpha,\n ...jimpConfig.hasAlpha,\n };\n }\n\n if (configuration.plugins) {\n configuration.plugins.forEach(addPlugin);\n }\n\n addJimpMethods(jimpConfig.class, jimpInstance);\n addConstants(jimpConfig.constants, jimpInstance);\n\n return Jimp;\n}\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/custom/package.json b/WechatBot/node_modules/@jimp/custom/package.json deleted file mode 100644 index 61c55585f..000000000 --- a/WechatBot/node_modules/@jimp/custom/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@jimp/custom", - "version": "0.16.13", - "description": "Interface to customize jimp configuration", - "main": "dist/index.js", - "module": "es/index.js", - "types": "types/index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/core": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/custom/src/index.js b/WechatBot/node_modules/@jimp/custom/src/index.js deleted file mode 100755 index dddc7d907..000000000 --- a/WechatBot/node_modules/@jimp/custom/src/index.js +++ /dev/null @@ -1,74 +0,0 @@ -import Jimp, { - addType, - addJimpMethods, - addConstants, - jimpEvChange, -} from "@jimp/core"; - -export default function configure(configuration, jimpInstance = Jimp) { - const jimpConfig = { - hasAlpha: {}, - encoders: {}, - decoders: {}, - class: {}, - constants: {}, - }; - - function addToConfig(newConfig) { - Object.entries(newConfig).forEach(([key, value]) => { - jimpConfig[key] = { - ...jimpConfig[key], - ...value, - }; - }); - } - - function addImageType(typeModule) { - const type = typeModule(); - - if (Array.isArray(type.mime)) { - addType(...type.mime); - } else { - Object.entries(type.mime).forEach((mimeType) => addType(...mimeType)); - } - - delete type.mime; - addToConfig(type); - } - - function addPlugin(pluginModule) { - const plugin = pluginModule(jimpEvChange) || {}; - if (!plugin.class && !plugin.constants) { - // Default to class function - addToConfig({ class: plugin }); - } else { - addToConfig(plugin); - } - } - - if (configuration.types) { - configuration.types.forEach(addImageType); - - jimpInstance.decoders = { - ...jimpInstance.decoders, - ...jimpConfig.decoders, - }; - jimpInstance.encoders = { - ...jimpInstance.encoders, - ...jimpConfig.encoders, - }; - jimpInstance.hasAlpha = { - ...jimpInstance.hasAlpha, - ...jimpConfig.hasAlpha, - }; - } - - if (configuration.plugins) { - configuration.plugins.forEach(addPlugin); - } - - addJimpMethods(jimpConfig.class, jimpInstance); - addConstants(jimpConfig.constants, jimpInstance); - - return Jimp; -} diff --git a/WechatBot/node_modules/@jimp/custom/types/index.d.ts b/WechatBot/node_modules/@jimp/custom/types/index.d.ts deleted file mode 100644 index 4bdca8d07..000000000 --- a/WechatBot/node_modules/@jimp/custom/types/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -// TypeScript Version: 3.1 -// See the `jimp` package index.d.ts for why the version is not 2.8 -import { - FunctionRet, - Jimp, - JimpPlugin, - JimpType, - GetIntersectionFromPlugins, - GetIntersectionFromPluginsStatics, - JimpConstructors, -} from "@jimp/core"; - -type JimpInstance< - TypesFuncArr extends FunctionRet | undefined, - PluginFuncArr extends FunctionRet | undefined, - J extends JimpConstructors -> = J & - GetIntersectionFromPluginsStatics< - Exclude - > & { - prototype: JimpType & - GetIntersectionFromPlugins< - Exclude - >; - }; - -declare function configure< - TypesFuncArr extends FunctionRet | undefined = undefined, - PluginFuncArr extends FunctionRet | undefined = undefined, - J extends JimpConstructors = JimpConstructors ->( - configuration: { - types?: TypesFuncArr; - plugins?: PluginFuncArr; - }, - jimpInstance?: J - // Since JimpInstance is required, we want to use the default `Jimp` type -): JimpInstance; - -export default configure; diff --git a/WechatBot/node_modules/@jimp/custom/types/test.ts b/WechatBot/node_modules/@jimp/custom/types/test.ts deleted file mode 100644 index e0f77bb2d..000000000 --- a/WechatBot/node_modules/@jimp/custom/types/test.ts +++ /dev/null @@ -1,401 +0,0 @@ -import configure from "@jimp/custom"; -import gif from "@jimp/gif"; -import png from "@jimp/png"; -import displace from "@jimp/plugin-displace"; -import resize from "@jimp/plugin-resize"; -import scale from "@jimp/plugin-scale"; -import types from "@jimp/types"; -import plugins from "@jimp/plugins"; -import * as Jimp from "jimp"; - -// configure should return a valid Jimp type with addons -const CustomJimp = configure({ - types: [gif, png], - plugins: [displace, resize], -}); - -test("should function the same as the `jimp` types", () => { - const FullCustomJimp = configure({ - types: [types], - plugins: [plugins], - }); - - const jimpInst = new FullCustomJimp("test"); - - // Main Jimp export should already have all of these already applied - // $ExpectError - jimpInst.read("Test"); - jimpInst.displace(jimpInst, 2); - jimpInst.resize(40, 40); - jimpInst.displace(jimpInst, 2); - jimpInst.shadow((err, val, coords) => {}); - jimpInst.fishEye({ r: 12 }); - jimpInst.circle({ radius: 12, x: 12, y: 12 }); - // $ExpectError - jimpInst.PNG_FILTER_NONE; - - // $ExpectError - jimpInst.test; - - // $ExpectError - jimpInst.func(); - - // Main Jimp export should already have all of these already applied - FullCustomJimp.read("Test"); - - // $ExpectType 0 - FullCustomJimp.PNG_FILTER_NONE; - - // $ExpectError - FullCustomJimp.test; - - // $ExpectError - FullCustomJimp.func(); - - test("can clone properly", async () => { - const baseImage = await FullCustomJimp.read("filename"); - const cloneBaseImage = baseImage.clone(); - - // $ExpectType number - cloneBaseImage._deflateLevel; - - test("can handle `this` returns on the core type properly", () => { - // $ExpectType number - cloneBaseImage.posterize(3)._quality; - }); - - test("can handle `this` returns properly", () => { - cloneBaseImage - .resize(1, 1) - .crop(0, 0, 0, 0) - .mask(cloneBaseImage, 2, 2) - .print("a" as any, 2, 2, "a" as any) - .resize(1, 1) - .quality(1) - .deflateLevel(2)._filterType; - }); - - test("can handle imageCallbacks `this` properly", () => { - cloneBaseImage.rgba(false, (_, jimpCBIn) => { - // $ExpectError - jimpCBIn.read("Test"); - jimpCBIn.displace(jimpInst, 2); - jimpCBIn.resize(40, 40); - // $ExpectType number - jimpCBIn._filterType; - - // $ExpectError - jimpCBIn.test; - - // $ExpectError - jimpCBIn.func(); - }); - }); - }); - - test("Can handle callback with constructor", () => { - const myBmpBuffer: Buffer = {} as any; - - Jimp.read(myBmpBuffer, (err, cbJimpInst) => { - // $ExpectError - cbJimpInst.read("Test"); - cbJimpInst.displace(jimpInst, 2); - cbJimpInst.resize(40, 40); - // $ExpectType number - cbJimpInst._filterType; - - // $ExpectError - cbJimpInst.test; - - // $ExpectError - cbJimpInst.func(); - }); - }); -}); - -test("can handle custom jimp", () => { - // Constants from types should be applied - // $ExpectType 0 - CustomJimp.PNG_FILTER_NONE; - - // Core functions should still work from Jimp - CustomJimp.read("Test"); - - // Constants should not(?) be applied from ill-formed plugins - // $ExpectError - CustomJimp.displace(CustomJimp, 2); - - // Methods should be applied from well-formed plugins only to the instance - // $ExpectError - CustomJimp.resize(40, 40); - - // Constants should be applied from well-formed plugins - CustomJimp.RESIZE_NEAREST_NEIGHBOR; - - // $ExpectError - CustomJimp.test; - - // $ExpectError - CustomJimp.func(); - - const Jiimp = new CustomJimp("test"); - // Methods from types should be applied - Jiimp.deflateLevel(4); - // Constants from types should be applied to the static only - // $ExpectError - Jiimp.PNG_FILTER_NONE; - - // Core functions should still work from Jimp - Jiimp.getPixelColor(1, 1); - - // Constants should be applied from ill-formed plugins - Jiimp.displace(Jiimp, 2); - - // Methods should be applied from well-formed plugins - Jiimp.resize(40, 40); - - // Constants should not be applied to the object - // $ExpectError - Jiimp.RESIZE_NEAREST_NEIGHBOR; - - // $ExpectError - Jiimp.test; - - // $ExpectError - Jiimp.func(); -}); - -test("can compose", () => { - const OtherCustomJimp = configure( - { - plugins: [scale], - }, - CustomJimp - ); - // Constants from types should be applied - // $ExpectType 0 - OtherCustomJimp.PNG_FILTER_NONE; - - // Core functions should still work from Jimp - OtherCustomJimp.read("Test"); - - // Constants should not be applied to the static instance from ill-formed plugins - // $ExpectError - OtherCustomJimp.displace(OtherCustomJimp, 2); - - // Methods should not be applied to the static instance from well-formed plugins - // $ExpectError - OtherCustomJimp.resize(40, 40); - - // Constants should be applied from well-formed plugins - OtherCustomJimp.RESIZE_NEAREST_NEIGHBOR; - - // $ExpectError - OtherCustomJimp.test; - - // $ExpectError - OtherCustomJimp.func(); - - const Jiimp = new OtherCustomJimp("test"); - // Methods from types should be applied - Jiimp.deflateLevel(4); - // Constants from types should not be applied to objects - // $ExpectError - Jiimp.PNG_FILTER_NONE; - - // Methods from new plugins should be applied - Jiimp.scale(3); - - // Methods from types should be applied - Jiimp.filterType(4); - - // Core functions should still work from Jimp - Jiimp.getPixelColor(1, 1); - - // Constants should be applied from ill-formed plugins - Jiimp.displace(Jiimp, 2); - - // Methods should be applied from well-formed plugins - Jiimp.resize(40, 40); - - // Constants should not be applied from well-formed plugins to objects - // $ExpectError - Jiimp.RESIZE_NEAREST_NEIGHBOR; - - // $ExpectError - Jiimp.test; - - // $ExpectError - Jiimp.func(); -}); - -test("can handle only plugins", () => { - const PluginsJimp = configure({ - plugins: [plugins], - }); - - // Core functions should still work from Jimp - PluginsJimp.read("Test"); - - // Constants should not be applied from ill-formed plugins - // $ExpectError - PluginsJimp.displace(PluginsJimp, 2); - - // Methods should be not be applied to from well-formed plugins to the top level - // $ExpectError - PluginsJimp.resize(40, 40); - - // Constants should be applied from well-formed plugins - // $ExpectType "nearestNeighbor" - PluginsJimp.RESIZE_NEAREST_NEIGHBOR; - - // $ExpectError - PluginsJimp.test; - - // $ExpectError - PluginsJimp.func(); - - const Jiimp = new PluginsJimp("test"); - - // Core functions should still work from Jimp - Jiimp.getPixelColor(1, 1); - - // Constants should be applied from ill-formed plugins - Jiimp.displace(Jiimp, 2); - - // Methods should be applied from well-formed plugins - Jiimp.resize(40, 40); - - // Constants should be not applied to objects from well-formed plugins - // $ExpectError - Jiimp.RESIZE_NEAREST_NEIGHBOR; - - // $ExpectError - Jiimp.test; - - // $ExpectError - Jiimp.func(); -}); - -test("can handle only all types", () => { - const TypesJimp = configure({ - types: [types], - }); - - // Methods from types should not be applied - // $ExpectError - TypesJimp.filterType(4); - // Constants from types should be applied - // $ExpectType 0 - TypesJimp.PNG_FILTER_NONE; - - // $ExpectError - TypesJimp.test; - - // $ExpectError - TypesJimp.func(); - - const Jiimp = new TypesJimp("test"); - // Methods from types should be applied - Jiimp.filterType(4); - // Constants from types should be not applied to objects - // $ExpectError - Jiimp.PNG_FILTER_NONE; - - // $ExpectError - Jiimp.test; - - // $ExpectError - Jiimp.func(); -}); - -test("can handle only one type", () => { - const PngJimp = configure({ - types: [png], - }); - - // Constants from other types should be not applied - // $ExpectError - PngJimp.MIME_TIFF; - - // Constants from types should be applied - // $ExpectType 0 - PngJimp.PNG_FILTER_NONE; - - // $ExpectError - PngJimp.test; - - // $ExpectError - PngJimp.func(); - - const Jiimp = new PngJimp("test"); - // Constants from other types should be not applied - // $ExpectError - Jiimp.MIME_TIFF; - - // Constants from types should not be applied to objects - // $ExpectError - Jiimp.PNG_FILTER_NONE; - - // $ExpectError - Jiimp.test; - - // $ExpectError - Jiimp.func(); -}); - -test("can handle only one plugin", () => { - const ResizeJimp = configure({ - plugins: [resize], - }); - - // Constants from other plugins should be not applied - // $ExpectError - ResizeJimp.FONT_SANS_8_BLACK; - - // Constants from plugin should be applied - // $ExpectType "nearestNeighbor" - ResizeJimp.RESIZE_NEAREST_NEIGHBOR; - - // $ExpectError - ResizeJimp.resize(2, 2); - - // $ExpectError - ResizeJimp.test; - - // $ExpectError - ResizeJimp.func(); - - const Jiimp: InstanceType = new ResizeJimp("test"); - // Constants from other plugins should be not applied - // $ExpectError - Jiimp.FONT_SANS_8_BLACK; - - // Constants from plugin should not be applied to the object - // $ExpectError - Jiimp.RESIZE_NEAREST_NEIGHBOR; - - Jiimp.resize(2, 2); - - // $ExpectError - Jiimp.test; - - // $ExpectError - Jiimp.func(); -}); - -test("Can handle appendConstructorOption", () => { - const AppendJimp = configure({}); - - AppendJimp.appendConstructorOption( - "Name of Option", - (args) => args.hasSomeCustomThing, - function (resolve, reject, args) { - // $ExpectError - this.bitmap = 3; - // $ExpectError - AppendJimp.resize(2, 2); - resolve(); - } - ); -}); diff --git a/WechatBot/node_modules/@jimp/custom/types/tsconfig.json b/WechatBot/node_modules/@jimp/custom/types/tsconfig.json deleted file mode 100644 index dcfe450fd..000000000 --- a/WechatBot/node_modules/@jimp/custom/types/tsconfig.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": ["es6"], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "noEmit": true, - - // If the library is an external module (uses `export`), this allows your test file to import "mylib" instead of "./index". - // If the library is global (cannot be imported via `import` or `require`), leave this out. - "baseUrl": ".", - "paths": { - "mylib": ["."] - } - } -} diff --git a/WechatBot/node_modules/@jimp/gif/CHANGELOG.md b/WechatBot/node_modules/@jimp/gif/CHANGELOG.md deleted file mode 100644 index 6a9f1c91a..000000000 --- a/WechatBot/node_modules/@jimp/gif/CHANGELOG.md +++ /dev/null @@ -1,48 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.13.0 (Fri Jun 05 2020) - -#### 🚀 Enhancement - -- Add single frame encoder for type-gif [#899](https://github.com/oliver-moran/jimp/pull/899) ([@jeffbseeking](https://github.com/jeffbseeking) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Jeff Bonnes ([@jeffbseeking](https://github.com/jeffbseeking)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/gif/LICENSE b/WechatBot/node_modules/@jimp/gif/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/gif/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/gif/README.md b/WechatBot/node_modules/@jimp/gif/README.md deleted file mode 100644 index 9a4349279..000000000 --- a/WechatBot/node_modules/@jimp/gif/README.md +++ /dev/null @@ -1,8 +0,0 @@ -
- -

@jimp/gif

-

Default Jimp gif decoder.

-
- -NOTE: Encoder currently unavailable. diff --git a/WechatBot/node_modules/@jimp/gif/dist/index.js b/WechatBot/node_modules/@jimp/gif/dist/index.js deleted file mode 100755 index 5633a04f6..000000000 --- a/WechatBot/node_modules/@jimp/gif/dist/index.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); - -var _omggif = _interopRequireDefault(require("omggif")); - -var _gifwrap = require("gifwrap"); - -var MIME_TYPE = "image/gif"; - -var _default = function _default() { - return { - mime: (0, _defineProperty2["default"])({}, MIME_TYPE, ["gif"]), - constants: { - MIME_GIF: MIME_TYPE - }, - decoders: (0, _defineProperty2["default"])({}, MIME_TYPE, function (data) { - var gifObj = new _omggif["default"].GifReader(data); - var gifData = Buffer.alloc(gifObj.width * gifObj.height * 4); - gifObj.decodeAndBlitFrameRGBA(0, gifData); - return { - data: gifData, - width: gifObj.width, - height: gifObj.height - }; - }), - encoders: (0, _defineProperty2["default"])({}, MIME_TYPE, function (data) { - var bitmap = new _gifwrap.BitmapImage(data.bitmap); - - _gifwrap.GifUtil.quantizeDekker(bitmap, 256); - - var newFrame = new _gifwrap.GifFrame(bitmap); - var gifCodec = new _gifwrap.GifCodec(); - return gifCodec.encodeGif([newFrame], {}).then(function (newGif) { - return newGif.buffer; - }); - }) - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/gif/dist/index.js.map b/WechatBot/node_modules/@jimp/gif/dist/index.js.map deleted file mode 100644 index 55d22e17b..000000000 --- a/WechatBot/node_modules/@jimp/gif/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["MIME_TYPE","mime","constants","MIME_GIF","decoders","data","gifObj","GIF","GifReader","gifData","Buffer","alloc","width","height","decodeAndBlitFrameRGBA","encoders","bitmap","BitmapImage","GifUtil","quantizeDekker","newFrame","GifFrame","gifCodec","GifCodec","encodeGif","then","newGif","buffer"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA,IAAMA,SAAS,GAAG,WAAlB;;eAEe;AAAA,SAAO;AACpBC,IAAAA,IAAI,uCAAKD,SAAL,EAAiB,CAAC,KAAD,CAAjB,CADgB;AAGpBE,IAAAA,SAAS,EAAE;AACTC,MAAAA,QAAQ,EAAEH;AADD,KAHS;AAOpBI,IAAAA,QAAQ,uCACLJ,SADK,EACO,UAACK,IAAD,EAAU;AACrB,UAAMC,MAAM,GAAG,IAAIC,mBAAIC,SAAR,CAAkBH,IAAlB,CAAf;AACA,UAAMI,OAAO,GAAGC,MAAM,CAACC,KAAP,CAAaL,MAAM,CAACM,KAAP,GAAeN,MAAM,CAACO,MAAtB,GAA+B,CAA5C,CAAhB;AAEAP,MAAAA,MAAM,CAACQ,sBAAP,CAA8B,CAA9B,EAAiCL,OAAjC;AAEA,aAAO;AACLJ,QAAAA,IAAI,EAAEI,OADD;AAELG,QAAAA,KAAK,EAAEN,MAAM,CAACM,KAFT;AAGLC,QAAAA,MAAM,EAAEP,MAAM,CAACO;AAHV,OAAP;AAKD,KAZK,CAPY;AAsBpBE,IAAAA,QAAQ,uCACLf,SADK,EACO,UAACK,IAAD,EAAU;AACrB,UAAMW,MAAM,GAAG,IAAIC,oBAAJ,CAAgBZ,IAAI,CAACW,MAArB,CAAf;;AACAE,uBAAQC,cAAR,CAAuBH,MAAvB,EAA+B,GAA/B;;AACA,UAAMI,QAAQ,GAAG,IAAIC,iBAAJ,CAAaL,MAAb,CAAjB;AACA,UAAMM,QAAQ,GAAG,IAAIC,iBAAJ,EAAjB;AACA,aAAOD,QAAQ,CAACE,SAAT,CAAmB,CAACJ,QAAD,CAAnB,EAA+B,EAA/B,EAAmCK,IAAnC,CAAwC,UAACC,MAAD,EAAY;AACzD,eAAOA,MAAM,CAACC,MAAd;AACD,OAFM,CAAP;AAGD,KATK;AAtBY,GAAP;AAAA,C","sourcesContent":["import GIF from \"omggif\";\nimport { GifUtil, GifFrame, BitmapImage, GifCodec } from \"gifwrap\";\n\nconst MIME_TYPE = \"image/gif\";\n\nexport default () => ({\n mime: { [MIME_TYPE]: [\"gif\"] },\n\n constants: {\n MIME_GIF: MIME_TYPE,\n },\n\n decoders: {\n [MIME_TYPE]: (data) => {\n const gifObj = new GIF.GifReader(data);\n const gifData = Buffer.alloc(gifObj.width * gifObj.height * 4);\n\n gifObj.decodeAndBlitFrameRGBA(0, gifData);\n\n return {\n data: gifData,\n width: gifObj.width,\n height: gifObj.height,\n };\n },\n },\n\n encoders: {\n [MIME_TYPE]: (data) => {\n const bitmap = new BitmapImage(data.bitmap);\n GifUtil.quantizeDekker(bitmap, 256);\n const newFrame = new GifFrame(bitmap);\n const gifCodec = new GifCodec();\n return gifCodec.encodeGif([newFrame], {}).then((newGif) => {\n return newGif.buffer;\n });\n },\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/gif/index.d.ts b/WechatBot/node_modules/@jimp/gif/index.d.ts deleted file mode 100644 index d1b1c679d..000000000 --- a/WechatBot/node_modules/@jimp/gif/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { DecoderFn } from "@jimp/core"; - -interface Gif { - mime: { - "image/gif": string[]; - }; - - constants: { - MIME_GIF: "image/gif"; - }; - - decoders: { - "image/gif": DecoderFn; - }; -} - -export default function (): Gif; diff --git a/WechatBot/node_modules/@jimp/gif/package.json b/WechatBot/node_modules/@jimp/gif/package.json deleted file mode 100644 index 023efdd81..000000000 --- a/WechatBot/node_modules/@jimp/gif/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "@jimp/gif", - "version": "0.16.13", - "description": "Default Jimp gif encoder/decoder.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13", - "gifwrap": "^0.9.2", - "omggif": "^1.0.9" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/gif/src/index.js b/WechatBot/node_modules/@jimp/gif/src/index.js deleted file mode 100755 index 7acf2ff99..000000000 --- a/WechatBot/node_modules/@jimp/gif/src/index.js +++ /dev/null @@ -1,39 +0,0 @@ -import GIF from "omggif"; -import { GifUtil, GifFrame, BitmapImage, GifCodec } from "gifwrap"; - -const MIME_TYPE = "image/gif"; - -export default () => ({ - mime: { [MIME_TYPE]: ["gif"] }, - - constants: { - MIME_GIF: MIME_TYPE, - }, - - decoders: { - [MIME_TYPE]: (data) => { - const gifObj = new GIF.GifReader(data); - const gifData = Buffer.alloc(gifObj.width * gifObj.height * 4); - - gifObj.decodeAndBlitFrameRGBA(0, gifData); - - return { - data: gifData, - width: gifObj.width, - height: gifObj.height, - }; - }, - }, - - encoders: { - [MIME_TYPE]: (data) => { - const bitmap = new BitmapImage(data.bitmap); - GifUtil.quantizeDekker(bitmap, 256); - const newFrame = new GifFrame(bitmap); - const gifCodec = new GifCodec(); - return gifCodec.encodeGif([newFrame], {}).then((newGif) => { - return newGif.buffer; - }); - }, - }, -}); diff --git a/WechatBot/node_modules/@jimp/gif/test/gif.test.js b/WechatBot/node_modules/@jimp/gif/test/gif.test.js deleted file mode 100755 index 7b316887e..000000000 --- a/WechatBot/node_modules/@jimp/gif/test/gif.test.js +++ /dev/null @@ -1,26 +0,0 @@ -import { Jimp, getTestDir } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import gif from "../src"; - -const jimp = configure({ types: [gif] }, Jimp); - -describe("GIF", () => { - const imagesDir = getTestDir(__dirname) + "/images"; - - it("load GIF", async () => { - const image = await jimp.read(imagesDir + "/flower.gif"); - image.getPixelColor(10, 10).should.be.equal(0xe5e6d9ff); - }); - - it("load animated GIF", async () => { - const image = await jimp.read(imagesDir + "/animated.gif"); - image.getPixelColor(10, 10).should.be.equal(0xa1d2f1ff); - }); - - it("export GIF", async () => { - const jgd = await jimp.read(imagesDir + "/flower.gif"); - const buffer = await jgd.getBufferAsync("image/gif"); - buffer.toString().startsWith("GIF").should.be.equal(true); - }); -}); diff --git a/WechatBot/node_modules/@jimp/gif/test/images/animated.gif b/WechatBot/node_modules/@jimp/gif/test/images/animated.gif deleted file mode 100644 index 401ef84a9..000000000 Binary files a/WechatBot/node_modules/@jimp/gif/test/images/animated.gif and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/gif/test/images/flower.gif b/WechatBot/node_modules/@jimp/gif/test/images/flower.gif deleted file mode 100644 index 23595dd56..000000000 Binary files a/WechatBot/node_modules/@jimp/gif/test/images/flower.gif and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/jpeg/CHANGELOG.md b/WechatBot/node_modules/@jimp/jpeg/CHANGELOG.md deleted file mode 100644 index e33a92ff8..000000000 --- a/WechatBot/node_modules/@jimp/jpeg/CHANGELOG.md +++ /dev/null @@ -1,84 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.16.2 (Thu Sep 15 2022) - -#### 🐛 Bug Fix - -- Bump jpeg-js over 0.4.4 to avoid cve-2022-25851 [#1093](https://github.com/oliver-moran/jimp/pull/1093) ([@melhadad](https://github.com/melhadad)) - -#### Authors: 1 - -- Michael Elhadad ([@melhadad](https://github.com/melhadad)) - ---- - -# v0.16.1 (Fri Aug 28 2020) - -#### 🐛 Bug Fix - -- upgrade jpeg-js dependency [#933](https://github.com/oliver-moran/jimp/pull/933) (vincentdufrasnes@vincent-dufrasnes [@Chupsy](https://github.com/Chupsy)) - -#### Authors: 2 - -- Vincent Dufrasnes ([@Chupsy](https://github.com/Chupsy)) -- vincent dufrasnes (vincentdufrasnes@vincent-dufrasnes) - ---- - -# v0.12.1 (Tue May 19 2020) - -#### 🐛 Bug Fix - -- update jpeg-js [#892](https://github.com/oliver-moran/jimp/pull/892) ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.10.0 (Mon Mar 30 2020) - -#### 🚀 Enhancement - -- Properly split constructor and instance types [#867](https://github.com/oliver-moran/jimp/pull/867) ([@forivall](https://github.com/forivall)) - -#### Authors: 1 - -- Emily Marigold Klassen ([@forivall](https://github.com/forivall)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/jpeg/LICENSE b/WechatBot/node_modules/@jimp/jpeg/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/jpeg/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/jpeg/README.md b/WechatBot/node_modules/@jimp/jpeg/README.md deleted file mode 100644 index 89255137e..000000000 --- a/WechatBot/node_modules/@jimp/jpeg/README.md +++ /dev/null @@ -1,12 +0,0 @@ -
- -

@jimp/jpeg

-

Default Jimp jpeg encoder/decoder.

-
- -## Available Methods - -### Jimp.quality - -Sets the quality of the image when saving as JPEG format (default is 100) diff --git a/WechatBot/node_modules/@jimp/jpeg/dist/index.js b/WechatBot/node_modules/@jimp/jpeg/dist/index.js deleted file mode 100755 index 835f10cdd..000000000 --- a/WechatBot/node_modules/@jimp/jpeg/dist/index.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); - -var _jpegJs = _interopRequireDefault(require("jpeg-js")); - -var _utils = require("@jimp/utils"); - -var MIME_TYPE = "image/jpeg"; - -var _default = function _default() { - return { - mime: (0, _defineProperty2["default"])({}, MIME_TYPE, ["jpeg", "jpg", "jpe"]), - constants: { - MIME_JPEG: MIME_TYPE - }, - decoders: (0, _defineProperty2["default"])({}, MIME_TYPE, _jpegJs["default"].decode), - encoders: (0, _defineProperty2["default"])({}, MIME_TYPE, function (image) { - return _jpegJs["default"].encode(image.bitmap, image._quality).data; - }), - "class": { - // The quality to be used when saving JPEG images - _quality: 100, - - /** - * Sets the quality of the image when saving as JPEG format (default is 100) - * @param {number} n The quality to use 0-100 - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - quality: function quality(n, cb) { - if (typeof n !== "number") { - return _utils.throwError.call(this, "n must be a number", cb); - } - - if (n < 0 || n > 100) { - return _utils.throwError.call(this, "n must be a number 0 - 100", cb); - } - - this._quality = Math.round(n); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/jpeg/dist/index.js.map b/WechatBot/node_modules/@jimp/jpeg/dist/index.js.map deleted file mode 100644 index 11caf6f7f..000000000 --- a/WechatBot/node_modules/@jimp/jpeg/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["MIME_TYPE","mime","constants","MIME_JPEG","decoders","JPEG","decode","encoders","image","encode","bitmap","_quality","data","quality","n","cb","throwError","call","Math","round"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA,IAAMA,SAAS,GAAG,YAAlB;;eAEe;AAAA,SAAO;AACpBC,IAAAA,IAAI,uCAAKD,SAAL,EAAiB,CAAC,MAAD,EAAS,KAAT,EAAgB,KAAhB,CAAjB,CADgB;AAGpBE,IAAAA,SAAS,EAAE;AACTC,MAAAA,SAAS,EAAEH;AADF,KAHS;AAOpBI,IAAAA,QAAQ,uCACLJ,SADK,EACOK,mBAAKC,MADZ,CAPY;AAWpBC,IAAAA,QAAQ,uCACLP,SADK,EACO,UAACQ,KAAD;AAAA,aAAWH,mBAAKI,MAAL,CAAYD,KAAK,CAACE,MAAlB,EAA0BF,KAAK,CAACG,QAAhC,EAA0CC,IAArD;AAAA,KADP,CAXY;AAepB,aAAO;AACL;AACAD,MAAAA,QAAQ,EAAE,GAFL;;AAGL;;;;;;AAMAE,MAAAA,OATK,mBASGC,CATH,EASMC,EATN,EASU;AACb,YAAI,OAAOD,CAAP,KAAa,QAAjB,EAA2B;AACzB,iBAAOE,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,oBAAtB,EAA4CF,EAA5C,CAAP;AACD;;AAED,YAAID,CAAC,GAAG,CAAJ,IAASA,CAAC,GAAG,GAAjB,EAAsB;AACpB,iBAAOE,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,4BAAtB,EAAoDF,EAApD,CAAP;AACD;;AAED,aAAKJ,QAAL,GAAgBO,IAAI,CAACC,KAAL,CAAWL,CAAX,CAAhB;;AAEA,YAAI,0BAAcC,EAAd,CAAJ,EAAuB;AACrBA,UAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,eAAO,IAAP;AACD;AAzBI;AAfa,GAAP;AAAA,C","sourcesContent":["import JPEG from \"jpeg-js\";\nimport { throwError, isNodePattern } from \"@jimp/utils\";\n\nconst MIME_TYPE = \"image/jpeg\";\n\nexport default () => ({\n mime: { [MIME_TYPE]: [\"jpeg\", \"jpg\", \"jpe\"] },\n\n constants: {\n MIME_JPEG: MIME_TYPE,\n },\n\n decoders: {\n [MIME_TYPE]: JPEG.decode,\n },\n\n encoders: {\n [MIME_TYPE]: (image) => JPEG.encode(image.bitmap, image._quality).data,\n },\n\n class: {\n // The quality to be used when saving JPEG images\n _quality: 100,\n /**\n * Sets the quality of the image when saving as JPEG format (default is 100)\n * @param {number} n The quality to use 0-100\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n quality(n, cb) {\n if (typeof n !== \"number\") {\n return throwError.call(this, \"n must be a number\", cb);\n }\n\n if (n < 0 || n > 100) {\n return throwError.call(this, \"n must be a number 0 - 100\", cb);\n }\n\n this._quality = Math.round(n);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/jpeg/index.d.ts b/WechatBot/node_modules/@jimp/jpeg/index.d.ts deleted file mode 100644 index 94b86ba20..000000000 --- a/WechatBot/node_modules/@jimp/jpeg/index.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { DecoderFn, EncoderFn, ImageCallback } from "@jimp/core"; - -interface JpegClass { - _quality: number; - quality: (n: number, cb?: ImageCallback) => this; -} - -interface Jpeg { - mime: { "image/jpeg": string[] }; - - constants: { - MIME_JPEG: "image/jpeg"; - }; - - encoders: { - "image/jpeg": EncoderFn; - }; - - decoders: { - "image/jpeg": DecoderFn; - }; - - class: JpegClass; -} - -export default function (): Jpeg; diff --git a/WechatBot/node_modules/@jimp/jpeg/package.json b/WechatBot/node_modules/@jimp/jpeg/package.json deleted file mode 100644 index 6859cbdd2..000000000 --- a/WechatBot/node_modules/@jimp/jpeg/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@jimp/jpeg", - "version": "0.16.13", - "description": "Default Jimp jpeg encoder/decoder.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13", - "jpeg-js": "^0.4.2" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/jpeg/src/index.js b/WechatBot/node_modules/@jimp/jpeg/src/index.js deleted file mode 100755 index 489c8220b..000000000 --- a/WechatBot/node_modules/@jimp/jpeg/src/index.js +++ /dev/null @@ -1,48 +0,0 @@ -import JPEG from "jpeg-js"; -import { throwError, isNodePattern } from "@jimp/utils"; - -const MIME_TYPE = "image/jpeg"; - -export default () => ({ - mime: { [MIME_TYPE]: ["jpeg", "jpg", "jpe"] }, - - constants: { - MIME_JPEG: MIME_TYPE, - }, - - decoders: { - [MIME_TYPE]: JPEG.decode, - }, - - encoders: { - [MIME_TYPE]: (image) => JPEG.encode(image.bitmap, image._quality).data, - }, - - class: { - // The quality to be used when saving JPEG images - _quality: 100, - /** - * Sets the quality of the image when saving as JPEG format (default is 100) - * @param {number} n The quality to use 0-100 - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - quality(n, cb) { - if (typeof n !== "number") { - return throwError.call(this, "n must be a number", cb); - } - - if (n < 0 || n > 100) { - return throwError.call(this, "n must be a number 0 - 100", cb); - } - - this._quality = Math.round(n); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - }, -}); diff --git a/WechatBot/node_modules/@jimp/jpeg/test/images/cops.jpg b/WechatBot/node_modules/@jimp/jpeg/test/images/cops.jpg deleted file mode 100644 index f843a4f97..000000000 Binary files a/WechatBot/node_modules/@jimp/jpeg/test/images/cops.jpg and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/jpeg/test/images/fillbytes.jpg b/WechatBot/node_modules/@jimp/jpeg/test/images/fillbytes.jpg deleted file mode 100644 index 981bdd5d9..000000000 Binary files a/WechatBot/node_modules/@jimp/jpeg/test/images/fillbytes.jpg and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/jpeg/test/jpeg.test.js b/WechatBot/node_modules/@jimp/jpeg/test/jpeg.test.js deleted file mode 100755 index 6ee30b7cb..000000000 --- a/WechatBot/node_modules/@jimp/jpeg/test/jpeg.test.js +++ /dev/null @@ -1,41 +0,0 @@ -import { Jimp, getTestDir } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import jpeg from "../src"; - -const jimp = configure({ types: [jpeg] }, Jimp); - -describe("JPEG", () => { - const imagesDir = getTestDir(__dirname) + "/images"; - - it("load JPG", async () => { - const image = await jimp.read(imagesDir + "/cops.jpg"); - - image.getPixelColor(10, 10).should.be.equal(0x3f4a02ff); - image.getPixelColor(220, 190).should.be.equal(0x5d94b6ff); - image.getPixelColor(350, 130).should.be.equal(0xdf7944ff); - }); - - it("load JPG with fill bytes", async () => { - const image = await jimp.read(imagesDir + "/fillbytes.jpg"); - - image.getPixelColor(10, 10).should.be.equal(0xaeb8c3ff); - image.getPixelColor(220, 190).should.be.equal(0x262b21ff); - image.getPixelColor(350, 130).should.be.equal(0x4e5d30ff); - }); - - it("export JPG", async () => { - const image = await jimp.read({ - width: 3, - height: 3, - data: [ - 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff, - 0xff00ffff, 0x8000ffff, 0x0000ffff, - ], - }); - image.quality(50); - const buffer = await image.getBufferAsync("image/jpeg"); - - buffer.toString().should.match(/^.{3,9}JFIF\u0000/); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-blit/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-blit/CHANGELOG.md deleted file mode 100644 index cf26b5c36..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blit/CHANGELOG.md +++ /dev/null @@ -1,36 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- update linting ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-blit/LICENSE b/WechatBot/node_modules/@jimp/plugin-blit/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blit/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-blit/README.md b/WechatBot/node_modules/@jimp/plugin-blit/README.md deleted file mode 100644 index 7ceb48158..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blit/README.md +++ /dev/null @@ -1,34 +0,0 @@ -
- -

@jimp/plugin-blit

-

Blit an image.

-
- -> Blit - a data operation commonly used in computer graphics in which several bitmaps are combined into one using a boolean function. - -## Usage - -Blits a source image on to this image - -- @param {Jimp} src image to blit -- @param {number} x the x position to blit the image -- @param {number} y the y position to blit the image -- @param {number} srcx (optional) the x position from which to crop the source image -- @param {number} srcy (optional) the y position from which to crop the source image -- @param {number} srcw (optional) the width to which to crop the source image -- @param {number} srch (optional) the height to which to crop the source image -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - const parrot = await jimp.read("test/party-parrot.png"); - - image.blit(parrot, x, y); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-blit/dist/index.js b/WechatBot/node_modules/@jimp/plugin-blit/dist/index.js deleted file mode 100755 index 0e237b8a4..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blit/dist/index.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); - -var _utils = require("@jimp/utils"); - -var _default = function _default() { - return { - /** - * Blits a source image on to this image - * @param {Jimp} src the source Jimp instance - * @param {number} x the x position to blit the image - * @param {number} y the y position to blit the image - * @param {number} srcx (optional) the x position from which to crop the source image - * @param {number} srcy (optional) the y position from which to crop the source image - * @param {number} srcw (optional) the width to which to crop the source image - * @param {number} srch (optional) the height to which to crop the source image - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - blit: function blit(src, x, y, srcx, srcy, srcw, srch, cb) { - if (!(src instanceof this.constructor)) { - return _utils.throwError.call(this, "The source must be a Jimp image", cb); - } - - if (typeof x !== "number" || typeof y !== "number") { - return _utils.throwError.call(this, "x and y must be numbers", cb); - } - - if (typeof srcx === "function") { - cb = srcx; - srcx = 0; - srcy = 0; - srcw = src.bitmap.width; - srch = src.bitmap.height; - } else if ((0, _typeof2["default"])(srcx) === (0, _typeof2["default"])(srcy) && (0, _typeof2["default"])(srcy) === (0, _typeof2["default"])(srcw) && (0, _typeof2["default"])(srcw) === (0, _typeof2["default"])(srch)) { - srcx = srcx || 0; - srcy = srcy || 0; - srcw = srcw || src.bitmap.width; - srch = srch || src.bitmap.height; - } else { - return _utils.throwError.call(this, "srcx, srcy, srcw, srch must be numbers", cb); - } // round input - - - x = Math.round(x); - y = Math.round(y); // round input - - srcx = Math.round(srcx); - srcy = Math.round(srcy); - srcw = Math.round(srcw); - srch = Math.round(srch); - var maxWidth = this.bitmap.width; - var maxHeight = this.bitmap.height; - var baseImage = this; - src.scanQuiet(srcx, srcy, srcw, srch, function (sx, sy, idx) { - var xOffset = x + sx - srcx; - var yOffset = y + sy - srcy; - - if (xOffset >= 0 && yOffset >= 0 && maxWidth - xOffset > 0 && maxHeight - yOffset > 0) { - var dstIdx = baseImage.getPixelIndex(xOffset, yOffset); - var _src = { - r: this.bitmap.data[idx], - g: this.bitmap.data[idx + 1], - b: this.bitmap.data[idx + 2], - a: this.bitmap.data[idx + 3] - }; - var dst = { - r: baseImage.bitmap.data[dstIdx], - g: baseImage.bitmap.data[dstIdx + 1], - b: baseImage.bitmap.data[dstIdx + 2], - a: baseImage.bitmap.data[dstIdx + 3] - }; - baseImage.bitmap.data[dstIdx] = (_src.a * (_src.r - dst.r) - dst.r + 255 >> 8) + dst.r; - baseImage.bitmap.data[dstIdx + 1] = (_src.a * (_src.g - dst.g) - dst.g + 255 >> 8) + dst.g; - baseImage.bitmap.data[dstIdx + 2] = (_src.a * (_src.b - dst.b) - dst.b + 255 >> 8) + dst.b; - baseImage.bitmap.data[dstIdx + 3] = this.constructor.limit255(dst.a + _src.a); - } - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-blit/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-blit/dist/index.js.map deleted file mode 100644 index 835bdb8eb..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blit/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["blit","src","x","y","srcx","srcy","srcw","srch","cb","constructor","throwError","call","bitmap","width","height","Math","round","maxWidth","maxHeight","baseImage","scanQuiet","sx","sy","idx","xOffset","yOffset","dstIdx","getPixelIndex","r","data","g","b","a","dst","limit255"],"mappings":";;;;;;;;;;;AAAA;;eAEe;AAAA,SAAO;AACpB;;;;;;;;;;;;AAYAA,IAAAA,IAboB,gBAafC,GAbe,EAaVC,CAbU,EAaPC,CAbO,EAaJC,IAbI,EAaEC,IAbF,EAaQC,IAbR,EAacC,IAbd,EAaoBC,EAbpB,EAawB;AAC1C,UAAI,EAAEP,GAAG,YAAY,KAAKQ,WAAtB,CAAJ,EAAwC;AACtC,eAAOC,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,iCAAtB,EAAyDH,EAAzD,CAAP;AACD;;AAED,UAAI,OAAON,CAAP,KAAa,QAAb,IAAyB,OAAOC,CAAP,KAAa,QAA1C,EAAoD;AAClD,eAAOO,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,yBAAtB,EAAiDH,EAAjD,CAAP;AACD;;AAED,UAAI,OAAOJ,IAAP,KAAgB,UAApB,EAAgC;AAC9BI,QAAAA,EAAE,GAAGJ,IAAL;AACAA,QAAAA,IAAI,GAAG,CAAP;AACAC,QAAAA,IAAI,GAAG,CAAP;AACAC,QAAAA,IAAI,GAAGL,GAAG,CAACW,MAAJ,CAAWC,KAAlB;AACAN,QAAAA,IAAI,GAAGN,GAAG,CAACW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2B,CAAJ,GAAQK,GAAG,CAACL,CAArB,IAA0BK,GAAG,CAACL,CAA9B,GAAkC,GAAnC,IAA2C,CAA5C,IAAiDK,GAAG,CAACL,CADvD;AAEAT,UAAAA,SAAS,CAACP,MAAV,CAAiBiB,IAAjB,CAAsBH,MAAM,GAAG,CAA/B,IACE,CAAEzB,IAAG,CAAC+B,CAAJ,IAAS/B,IAAG,CAAC6B,CAAJ,GAAQG,GAAG,CAACH,CAArB,IAA0BG,GAAG,CAACH,CAA9B,GAAkC,GAAnC,IAA2C,CAA5C,IAAiDG,GAAG,CAACH,CADvD;AAEAX,UAAAA,SAAS,CAACP,MAAV,CAAiBiB,IAAjB,CAAsBH,MAAM,GAAG,CAA/B,IACE,CAAEzB,IAAG,CAAC+B,CAAJ,IAAS/B,IAAG,CAAC8B,CAAJ,GAAQE,GAAG,CAACF,CAArB,IAA0BE,GAAG,CAACF,CAA9B,GAAkC,GAAnC,IAA2C,CAA5C,IAAiDE,GAAG,CAACF,CADvD;AAEAZ,UAAAA,SAAS,CAACP,MAAV,CAAiBiB,IAAjB,CAAsBH,MAAM,GAAG,CAA/B,IAAoC,KAAKjB,WAAL,CAAiByB,QAAjB,CAClCD,GAAG,CAACD,CAAJ,GAAQ/B,IAAG,CAAC+B,CADsB,CAApC;AAGD;AACF,OAnCD;;AAqCA,UAAI,0BAAcxB,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACG,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AArGmB,GAAP;AAAA,C","sourcesContent":["import { throwError, isNodePattern } from \"@jimp/utils\";\n\nexport default () => ({\n /**\n * Blits a source image on to this image\n * @param {Jimp} src the source Jimp instance\n * @param {number} x the x position to blit the image\n * @param {number} y the y position to blit the image\n * @param {number} srcx (optional) the x position from which to crop the source image\n * @param {number} srcy (optional) the y position from which to crop the source image\n * @param {number} srcw (optional) the width to which to crop the source image\n * @param {number} srch (optional) the height to which to crop the source image\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n blit(src, x, y, srcx, srcy, srcw, srch, cb) {\n if (!(src instanceof this.constructor)) {\n return throwError.call(this, \"The source must be a Jimp image\", cb);\n }\n\n if (typeof x !== \"number\" || typeof y !== \"number\") {\n return throwError.call(this, \"x and y must be numbers\", cb);\n }\n\n if (typeof srcx === \"function\") {\n cb = srcx;\n srcx = 0;\n srcy = 0;\n srcw = src.bitmap.width;\n srch = src.bitmap.height;\n } else if (\n typeof srcx === typeof srcy &&\n typeof srcy === typeof srcw &&\n typeof srcw === typeof srch\n ) {\n srcx = srcx || 0;\n srcy = srcy || 0;\n srcw = srcw || src.bitmap.width;\n srch = srch || src.bitmap.height;\n } else {\n return throwError.call(\n this,\n \"srcx, srcy, srcw, srch must be numbers\",\n cb\n );\n }\n\n // round input\n x = Math.round(x);\n y = Math.round(y);\n\n // round input\n srcx = Math.round(srcx);\n srcy = Math.round(srcy);\n srcw = Math.round(srcw);\n srch = Math.round(srch);\n\n const maxWidth = this.bitmap.width;\n const maxHeight = this.bitmap.height;\n const baseImage = this;\n\n src.scanQuiet(srcx, srcy, srcw, srch, function (sx, sy, idx) {\n const xOffset = x + sx - srcx;\n const yOffset = y + sy - srcy;\n\n if (\n xOffset >= 0 &&\n yOffset >= 0 &&\n maxWidth - xOffset > 0 &&\n maxHeight - yOffset > 0\n ) {\n const dstIdx = baseImage.getPixelIndex(xOffset, yOffset);\n const src = {\n r: this.bitmap.data[idx],\n g: this.bitmap.data[idx + 1],\n b: this.bitmap.data[idx + 2],\n a: this.bitmap.data[idx + 3],\n };\n\n const dst = {\n r: baseImage.bitmap.data[dstIdx],\n g: baseImage.bitmap.data[dstIdx + 1],\n b: baseImage.bitmap.data[dstIdx + 2],\n a: baseImage.bitmap.data[dstIdx + 3],\n };\n\n baseImage.bitmap.data[dstIdx] =\n ((src.a * (src.r - dst.r) - dst.r + 255) >> 8) + dst.r;\n baseImage.bitmap.data[dstIdx + 1] =\n ((src.a * (src.g - dst.g) - dst.g + 255) >> 8) + dst.g;\n baseImage.bitmap.data[dstIdx + 2] =\n ((src.a * (src.b - dst.b) - dst.b + 255) >> 8) + dst.b;\n baseImage.bitmap.data[dstIdx + 3] = this.constructor.limit255(\n dst.a + src.a\n );\n }\n });\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-blit/index.d.ts b/WechatBot/node_modules/@jimp/plugin-blit/index.d.ts deleted file mode 100644 index 0caad70e3..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blit/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Jimp, ImageCallback } from "@jimp/core"; - -interface Blit { - blit(src: Jimp, x: number, y: number, cb?: ImageCallback): this; - blit( - src: Jimp, - x: number, - y: number, - srcx: number, - srcy: number, - srcw: number, - srch: number, - cb?: ImageCallback - ): this; -} - -export default function (): Blit; diff --git a/WechatBot/node_modules/@jimp/plugin-blit/package.json b/WechatBot/node_modules/@jimp/plugin-blit/package.json deleted file mode 100644 index 76a9143db..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blit/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@jimp/plugin-blit", - "version": "0.16.13", - "description": "Blit an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/jpeg": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-blit/src/index.js b/WechatBot/node_modules/@jimp/plugin-blit/src/index.js deleted file mode 100755 index 133a53742..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blit/src/index.js +++ /dev/null @@ -1,105 +0,0 @@ -import { throwError, isNodePattern } from "@jimp/utils"; - -export default () => ({ - /** - * Blits a source image on to this image - * @param {Jimp} src the source Jimp instance - * @param {number} x the x position to blit the image - * @param {number} y the y position to blit the image - * @param {number} srcx (optional) the x position from which to crop the source image - * @param {number} srcy (optional) the y position from which to crop the source image - * @param {number} srcw (optional) the width to which to crop the source image - * @param {number} srch (optional) the height to which to crop the source image - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - blit(src, x, y, srcx, srcy, srcw, srch, cb) { - if (!(src instanceof this.constructor)) { - return throwError.call(this, "The source must be a Jimp image", cb); - } - - if (typeof x !== "number" || typeof y !== "number") { - return throwError.call(this, "x and y must be numbers", cb); - } - - if (typeof srcx === "function") { - cb = srcx; - srcx = 0; - srcy = 0; - srcw = src.bitmap.width; - srch = src.bitmap.height; - } else if ( - typeof srcx === typeof srcy && - typeof srcy === typeof srcw && - typeof srcw === typeof srch - ) { - srcx = srcx || 0; - srcy = srcy || 0; - srcw = srcw || src.bitmap.width; - srch = srch || src.bitmap.height; - } else { - return throwError.call( - this, - "srcx, srcy, srcw, srch must be numbers", - cb - ); - } - - // round input - x = Math.round(x); - y = Math.round(y); - - // round input - srcx = Math.round(srcx); - srcy = Math.round(srcy); - srcw = Math.round(srcw); - srch = Math.round(srch); - - const maxWidth = this.bitmap.width; - const maxHeight = this.bitmap.height; - const baseImage = this; - - src.scanQuiet(srcx, srcy, srcw, srch, function (sx, sy, idx) { - const xOffset = x + sx - srcx; - const yOffset = y + sy - srcy; - - if ( - xOffset >= 0 && - yOffset >= 0 && - maxWidth - xOffset > 0 && - maxHeight - yOffset > 0 - ) { - const dstIdx = baseImage.getPixelIndex(xOffset, yOffset); - const src = { - r: this.bitmap.data[idx], - g: this.bitmap.data[idx + 1], - b: this.bitmap.data[idx + 2], - a: this.bitmap.data[idx + 3], - }; - - const dst = { - r: baseImage.bitmap.data[dstIdx], - g: baseImage.bitmap.data[dstIdx + 1], - b: baseImage.bitmap.data[dstIdx + 2], - a: baseImage.bitmap.data[dstIdx + 3], - }; - - baseImage.bitmap.data[dstIdx] = - ((src.a * (src.r - dst.r) - dst.r + 255) >> 8) + dst.r; - baseImage.bitmap.data[dstIdx + 1] = - ((src.a * (src.g - dst.g) - dst.g + 255) >> 8) + dst.g; - baseImage.bitmap.data[dstIdx + 2] = - ((src.a * (src.b - dst.b) - dst.b + 255) >> 8) + dst.b; - baseImage.bitmap.data[dstIdx + 3] = this.constructor.limit255( - dst.a + src.a - ); - } - }); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-blit/test/blit.test.js b/WechatBot/node_modules/@jimp/plugin-blit/test/blit.test.js deleted file mode 100755 index d4e11a1a8..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blit/test/blit.test.js +++ /dev/null @@ -1,235 +0,0 @@ -import { Jimp, mkJGD, getTestDir } from "@jimp/test-utils"; -import jpeg from "@jimp/jpeg"; -import configure from "@jimp/custom"; - -import blit from "../src"; - -const jimp = configure({ types: [jpeg], plugins: [blit] }, Jimp); -const testDir = getTestDir(__dirname); - -describe("Blit over image", function () { - this.timeout(15000); - const targetJGD = mkJGD( - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆" - ); - const srcJGD = mkJGD( - "□□□□□□", - "□▥▥▥▥□", - "□▥■■▥□", - "□▥■■▥□", - "□▥▥▥▥□", - "□□□□□□" - ); - - let targetImg; - let srcImg; // stores the Jimp instances of the JGD images above. - - before((done) => { - const img1 = jimp.read(targetJGD); - const img2 = jimp.read(srcJGD); - Promise.all([img1, img2]) - .then((images) => { - targetImg = images[0]; - srcImg = images[1]; - done(); - }) - .catch(done); - }); - - it("blit on top, with no crop", () => { - targetImg - .clone() - .blit(srcImg, 0, 0) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "□□□□□□▸▸", - "□▥▥▥▥□▸▸", - "□▥■■▥□▸▸", - "□▥■■▥□▸▸", - "□▥▥▥▥□◆◆", - "□□□□□□◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆" - ) - ); - }); - - it("blit on middle, with no crop", () => { - targetImg - .clone() - .blit(srcImg, 1, 1) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "▴▴▴▴▸▸▸▸", - "▴□□□□□□▸", - "▴□▥▥▥▥□▸", - "▴□▥■■▥□▸", - "▾□▥■■▥□◆", - "▾□▥▥▥▥□◆", - "▾□□□□□□◆", - "▾▾▾▾◆◆◆◆" - ) - ); - }); - - it("blit on middle, with x,y crop", () => { - targetImg - .clone() - .blit(srcImg, 2, 2, 1, 1, 5, 5) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▥▥▥▥□▸", - "▴▴▥■■▥□▸", - "▾▾▥■■▥□◆", - "▾▾▥▥▥▥□◆", - "▾▾□□□□□◆", - "▾▾▾▾◆◆◆◆" - ) - ); - }); - - it("blit on middle, with x,y,w,h crop", () => { - targetImg - .clone() - .blit(srcImg, 2, 2, 1, 1, 4, 4) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▥▥▥▥▸▸", - "▴▴▥■■▥▸▸", - "▾▾▥■■▥◆◆", - "▾▾▥▥▥▥◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆" - ) - ); - }); - - it("blit partially out, on top-left", () => { - targetImg - .clone() - .blit(srcImg, -1, -1) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "▥▥▥▥□▸▸▸", - "▥■■▥□▸▸▸", - "▥■■▥□▸▸▸", - "▥▥▥▥□▸▸▸", - "□□□□□◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆" - ) - ); - }); - - it("blit partially out, on bottom-right", () => { - targetImg - .clone() - .blit(srcImg, 3, 3) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴□□□□□", - "▾▾▾□▥▥▥▥", - "▾▾▾□▥■■▥", - "▾▾▾□▥■■▥", - "▾▾▾□▥▥▥▥" - ) - ); - }); - - it("blit alpha", async () => { - const expectedImg = await Jimp.read(testDir + "/images/blit-alpha.png"); - const dice = await Jimp.read(testDir + "/images/dice.png"); - const image = await Jimp.read(testDir + "/images/cops.jpg"); - - image - .blit(dice, 0, 0) - .bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); - - async function createCat(catNum, len) { - const imgHeight = 60; - - const butt = await Jimp.read(testDir + "/images/cat_butt.png"); - const head = await Jimp.read(testDir + "/images/cat_head.png"); - const fuzz = await Jimp.read(testDir + "/images/cat_fuzz.png"); - - let longCat = len; - longCat = longCat > 20 ? 20 : longCat; - longCat = longCat <= 1 ? 1 : longCat; - - const cat = - Math.floor(catNum * (head.bitmap.height / imgHeight)) * imgHeight; - - const newImage = await Jimp.create( - butt.bitmap.width + head.bitmap.width + fuzz.bitmap.width * longCat, - imgHeight, - 0x00000000 - ); - - newImage.blit(butt, 0, 0, 0, cat, butt.bitmap.width, imgHeight); - for (let i = 0; i < longCat; i++) { - newImage.blit( - fuzz, - butt.bitmap.width + fuzz.bitmap.width * i, - 0, - 0, - cat, - fuzz.bitmap.width, - imgHeight - ); - } - - newImage.blit( - head, - butt.bitmap.width + fuzz.bitmap.width * longCat, - 0, - 0, - cat, - head.bitmap.width, - imgHeight - ); - - return newImage; - } - - it("uses src params correctly", async () => { - const expectedSmall = await Jimp.read( - testDir + "/images/cat-results/small-cat.png" - ); - const small = await createCat(0.3, 1); - small.bitmap.data.should.be.deepEqual(expectedSmall.bitmap.data); - - const expectedMedium = await Jimp.read( - testDir + "/images/cat-results/medium-cat.png" - ); - const medium = await createCat(0.6, 7); - medium.bitmap.data.should.be.deepEqual(expectedMedium.bitmap.data); - - const expectedLarge = await Jimp.read( - testDir + "/images/cat-results/large-cat.png" - ); - const large = await createCat(0.9, 20); - large.bitmap.data.should.be.deepEqual(expectedLarge.bitmap.data); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-blit/test/images/blit-alpha.png b/WechatBot/node_modules/@jimp/plugin-blit/test/images/blit-alpha.png deleted file mode 100644 index c5995100f..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-blit/test/images/blit-alpha.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat-results/large-cat.png b/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat-results/large-cat.png deleted file mode 100644 index 059852dc7..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat-results/large-cat.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat-results/medium-cat.png b/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat-results/medium-cat.png deleted file mode 100644 index 7da75acf7..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat-results/medium-cat.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat-results/small-cat.png b/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat-results/small-cat.png deleted file mode 100644 index 1cbc5d63d..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat-results/small-cat.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat_butt.png b/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat_butt.png deleted file mode 100644 index a96a11490..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat_butt.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat_fuzz.png b/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat_fuzz.png deleted file mode 100644 index 8bce44afb..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat_fuzz.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat_head.png b/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat_head.png deleted file mode 100644 index c0bf98780..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cat_head.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cops.jpg b/WechatBot/node_modules/@jimp/plugin-blit/test/images/cops.jpg deleted file mode 100644 index f843a4f97..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-blit/test/images/cops.jpg and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-blit/test/images/dice.png b/WechatBot/node_modules/@jimp/plugin-blit/test/images/dice.png deleted file mode 100644 index b28653fb7..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-blit/test/images/dice.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-blur/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-blur/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blur/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-blur/LICENSE b/WechatBot/node_modules/@jimp/plugin-blur/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blur/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-blur/README.md b/WechatBot/node_modules/@jimp/plugin-blur/README.md deleted file mode 100644 index caa715836..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blur/README.md +++ /dev/null @@ -1,25 +0,0 @@ -
- -

@jimp/plugin-blur

-

Blur an image.

-
- -A fast blur algorithm that produces similar effect to a Gaussian blur - but MUCH quicker - -## Usage - -- @param {number} r the pixel radius of the blur -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.blur(5); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-blur/dist/blur-tables.js b/WechatBot/node_modules/@jimp/plugin-blur/dist/blur-tables.js deleted file mode 100755 index 6d31ea19a..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blur/dist/blur-tables.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.shgTable = exports.mulTable = void 0; -var mulTable = [1, 57, 41, 21, 203, 34, 97, 73, 227, 91, 149, 62, 105, 45, 39, 137, 241, 107, 3, 173, 39, 71, 65, 238, 219, 101, 187, 87, 81, 151, 141, 133, 249, 117, 221, 209, 197, 187, 177, 169, 5, 153, 73, 139, 133, 127, 243, 233, 223, 107, 103, 99, 191, 23, 177, 171, 165, 159, 77, 149, 9, 139, 135, 131, 253, 245, 119, 231, 224, 109, 211, 103, 25, 195, 189, 23, 45, 175, 171, 83, 81, 79, 155, 151, 147, 9, 141, 137, 67, 131, 129, 251, 123, 30, 235, 115, 113, 221, 217, 53, 13, 51, 50, 49, 193, 189, 185, 91, 179, 175, 43, 169, 83, 163, 5, 79, 155, 19, 75, 147, 145, 143, 35, 69, 17, 67, 33, 65, 255, 251, 247, 243, 239, 59, 29, 229, 113, 111, 219, 27, 213, 105, 207, 51, 201, 199, 49, 193, 191, 47, 93, 183, 181, 179, 11, 87, 43, 85, 167, 165, 163, 161, 159, 157, 155, 77, 19, 75, 37, 73, 145, 143, 141, 35, 138, 137, 135, 67, 33, 131, 129, 255, 63, 250, 247, 61, 121, 239, 237, 117, 29, 229, 227, 225, 111, 55, 109, 216, 213, 211, 209, 207, 205, 203, 201, 199, 197, 195, 193, 48, 190, 47, 93, 185, 183, 181, 179, 178, 176, 175, 173, 171, 85, 21, 167, 165, 41, 163, 161, 5, 79, 157, 78, 154, 153, 19, 75, 149, 74, 147, 73, 144, 143, 71, 141, 140, 139, 137, 17, 135, 134, 133, 66, 131, 65, 129, 1]; -exports.mulTable = mulTable; -var shgTable = [0, 9, 10, 10, 14, 12, 14, 14, 16, 15, 16, 15, 16, 15, 15, 17, 18, 17, 12, 18, 16, 17, 17, 19, 19, 18, 19, 18, 18, 19, 19, 19, 20, 19, 20, 20, 20, 20, 20, 20, 15, 20, 19, 20, 20, 20, 21, 21, 21, 20, 20, 20, 21, 18, 21, 21, 21, 21, 20, 21, 17, 21, 21, 21, 22, 22, 21, 22, 22, 21, 22, 21, 19, 22, 22, 19, 20, 22, 22, 21, 21, 21, 22, 22, 22, 18, 22, 22, 21, 22, 22, 23, 22, 20, 23, 22, 22, 23, 23, 21, 19, 21, 21, 21, 23, 23, 23, 22, 23, 23, 21, 23, 22, 23, 18, 22, 23, 20, 22, 23, 23, 23, 21, 22, 20, 22, 21, 22, 24, 24, 24, 24, 24, 22, 21, 24, 23, 23, 24, 21, 24, 23, 24, 22, 24, 24, 22, 24, 24, 22, 23, 24, 24, 24, 20, 23, 22, 23, 24, 24, 24, 24, 24, 24, 24, 23, 21, 23, 22, 23, 24, 24, 24, 22, 24, 24, 24, 23, 22, 24, 24, 25, 23, 25, 25, 23, 24, 25, 25, 24, 22, 25, 25, 25, 24, 23, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 23, 25, 23, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 24, 22, 25, 25, 23, 25, 25, 20, 24, 25, 24, 25, 25, 22, 24, 25, 24, 25, 24, 25, 25, 24, 25, 25, 25, 25, 22, 25, 25, 25, 24, 25, 24, 25, 18]; -exports.shgTable = shgTable; -//# sourceMappingURL=blur-tables.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-blur/dist/blur-tables.js.map b/WechatBot/node_modules/@jimp/plugin-blur/dist/blur-tables.js.map deleted file mode 100644 index a1ceeb6f4..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blur/dist/blur-tables.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/blur-tables.js"],"names":["mulTable","shgTable"],"mappings":";;;;;;AAAO,IAAMA,QAAQ,GAAG,CACtB,CADsB,EACnB,EADmB,EACf,EADe,EACX,EADW,EACP,GADO,EACF,EADE,EACE,EADF,EACM,EADN,EACU,GADV,EACe,EADf,EACmB,GADn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Y8B,EAZ9B,EAYkC,EAZlC,EAYsC,EAZtC,EAY0C,EAZ1C,EAY8C,EAZ9C,EAYkD,EAZlD,EAatB,EAbsB,EAalB,EAbkB,EAad,EAbc,EAaV,EAbU,EAaN,EAbM,EAaF,EAbE,EAaE,EAbF,EAaM,EAbN,EAaU,EAbV,EAac,EAbd,EAakB,EAblB,EAasB,EAbtB,EAa0B,EAb1B,EAa8B,EAb9B,EAakC,EAblC,EAasC,EAbtC,EAa0C,EAb1C,EAa8C,EAb9C,EAakD,EAblD,EActB,EAdsB,EAclB,EAdkB,EAcd,EAdc,EAcV,EAdU,EAcN,EAdM,EAcF,EAdE,EAcE,EAdF,EAcM,EAdN,EAcU,EAdV,CAAjB","sourcesContent":["export const mulTable = [\n 1, 57, 41, 21, 203, 34, 97, 73, 227, 91, 149, 62, 105, 45, 39, 137, 241, 107,\n 3, 173, 39, 71, 65, 238, 219, 101, 187, 87, 81, 151, 141, 133, 249, 117, 221,\n 209, 197, 187, 177, 169, 5, 153, 73, 139, 133, 127, 243, 233, 223, 107, 103,\n 99, 191, 23, 177, 171, 165, 159, 77, 149, 9, 139, 135, 131, 253, 245, 119,\n 231, 224, 109, 211, 103, 25, 195, 189, 23, 45, 175, 171, 83, 81, 79, 155, 151,\n 147, 9, 141, 137, 67, 131, 129, 251, 123, 30, 235, 115, 113, 221, 217, 53, 13,\n 51, 50, 49, 193, 189, 185, 91, 179, 175, 43, 169, 83, 163, 5, 79, 155, 19, 75,\n 147, 145, 143, 35, 69, 17, 67, 33, 65, 255, 251, 247, 243, 239, 59, 29, 229,\n 113, 111, 219, 27, 213, 105, 207, 51, 201, 199, 49, 193, 191, 47, 93, 183,\n 181, 179, 11, 87, 43, 85, 167, 165, 163, 161, 159, 157, 155, 77, 19, 75, 37,\n 73, 145, 143, 141, 35, 138, 137, 135, 67, 33, 131, 129, 255, 63, 250, 247, 61,\n 121, 239, 237, 117, 29, 229, 227, 225, 111, 55, 109, 216, 213, 211, 209, 207,\n 205, 203, 201, 199, 197, 195, 193, 48, 190, 47, 93, 185, 183, 181, 179, 178,\n 176, 175, 173, 171, 85, 21, 167, 165, 41, 163, 161, 5, 79, 157, 78, 154, 153,\n 19, 75, 149, 74, 147, 73, 144, 143, 71, 141, 140, 139, 137, 17, 135, 134, 133,\n 66, 131, 65, 129, 1,\n];\n\nexport const shgTable = [\n 0, 9, 10, 10, 14, 12, 14, 14, 16, 15, 16, 15, 16, 15, 15, 17, 18, 17, 12, 18,\n 16, 17, 17, 19, 19, 18, 19, 18, 18, 19, 19, 19, 20, 19, 20, 20, 20, 20, 20,\n 20, 15, 20, 19, 20, 20, 20, 21, 21, 21, 20, 20, 20, 21, 18, 21, 21, 21, 21,\n 20, 21, 17, 21, 21, 21, 22, 22, 21, 22, 22, 21, 22, 21, 19, 22, 22, 19, 20,\n 22, 22, 21, 21, 21, 22, 22, 22, 18, 22, 22, 21, 22, 22, 23, 22, 20, 23, 22,\n 22, 23, 23, 21, 19, 21, 21, 21, 23, 23, 23, 22, 23, 23, 21, 23, 22, 23, 18,\n 22, 23, 20, 22, 23, 23, 23, 21, 22, 20, 22, 21, 22, 24, 24, 24, 24, 24, 22,\n 21, 24, 23, 23, 24, 21, 24, 23, 24, 22, 24, 24, 22, 24, 24, 22, 23, 24, 24,\n 24, 20, 23, 22, 23, 24, 24, 24, 24, 24, 24, 24, 23, 21, 23, 22, 23, 24, 24,\n 24, 22, 24, 24, 24, 23, 22, 24, 24, 25, 23, 25, 25, 23, 24, 25, 25, 24, 22,\n 25, 25, 25, 24, 23, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 23,\n 25, 23, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 24, 22, 25, 25, 23, 25, 25,\n 20, 24, 25, 24, 25, 25, 22, 24, 25, 24, 25, 24, 25, 25, 24, 25, 25, 25, 25,\n 22, 25, 25, 25, 24, 25, 24, 25, 18,\n];\n"],"file":"blur-tables.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-blur/dist/index.js b/WechatBot/node_modules/@jimp/plugin-blur/dist/index.js deleted file mode 100755 index 38f8bb5a9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blur/dist/index.js +++ /dev/null @@ -1,182 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -var _blurTables = require("./blur-tables"); - -/* - Superfast Blur (0.5) - http://www.quasimondo.com/BoxBlurForCanvas/FastBlur.js - - Copyright (c) 2011 Mario Klingemann - - Permission is hereby granted, free of charge, to any person - obtaining a copy of this software and associated documentation - files (the "Software"), to deal in the Software without - restriction, including without limitation the rights to use, - copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the - Software is furnished to do so, subject to the following - conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES - OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - OTHER DEALINGS IN THE SOFTWARE. -*/ -var _default = function _default() { - return { - /** - * A fast blur algorithm that produces similar effect to a Gaussian blur - but MUCH quicker - * @param {number} r the pixel radius of the blur - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - blur: function blur(r, cb) { - if (typeof r !== "number") return _utils.throwError.call(this, "r must be a number", cb); - if (r < 1) return _utils.throwError.call(this, "r must be greater than 0", cb); - var rsum; - var gsum; - var bsum; - var asum; - var x; - var y; - var i; - var p; - var p1; - var p2; - var yp; - var yi; - var yw; - var pa; - var wm = this.bitmap.width - 1; - var hm = this.bitmap.height - 1; // const wh = this.bitmap.width * this.bitmap.height; - - var rad1 = r + 1; - var mulSum = _blurTables.mulTable[r]; - var shgSum = _blurTables.shgTable[r]; - var red = []; - var green = []; - var blue = []; - var alpha = []; - var vmin = []; - var vmax = []; - var iterations = 2; - - while (iterations-- > 0) { - yi = 0; - yw = 0; - - for (y = 0; y < this.bitmap.height; y++) { - rsum = this.bitmap.data[yw] * rad1; - gsum = this.bitmap.data[yw + 1] * rad1; - bsum = this.bitmap.data[yw + 2] * rad1; - asum = this.bitmap.data[yw + 3] * rad1; - - for (i = 1; i <= r; i++) { - p = yw + ((i > wm ? wm : i) << 2); - rsum += this.bitmap.data[p++]; - gsum += this.bitmap.data[p++]; - bsum += this.bitmap.data[p++]; - asum += this.bitmap.data[p]; - } - - for (x = 0; x < this.bitmap.width; x++) { - red[yi] = rsum; - green[yi] = gsum; - blue[yi] = bsum; - alpha[yi] = asum; - - if (y === 0) { - vmin[x] = ((p = x + rad1) < wm ? p : wm) << 2; - vmax[x] = (p = x - r) > 0 ? p << 2 : 0; - } - - p1 = yw + vmin[x]; - p2 = yw + vmax[x]; - rsum += this.bitmap.data[p1++] - this.bitmap.data[p2++]; - gsum += this.bitmap.data[p1++] - this.bitmap.data[p2++]; - bsum += this.bitmap.data[p1++] - this.bitmap.data[p2++]; - asum += this.bitmap.data[p1] - this.bitmap.data[p2]; - yi++; - } - - yw += this.bitmap.width << 2; - } - - for (x = 0; x < this.bitmap.width; x++) { - yp = x; - rsum = red[yp] * rad1; - gsum = green[yp] * rad1; - bsum = blue[yp] * rad1; - asum = alpha[yp] * rad1; - - for (i = 1; i <= r; i++) { - yp += i > hm ? 0 : this.bitmap.width; - rsum += red[yp]; - gsum += green[yp]; - bsum += blue[yp]; - asum += alpha[yp]; - } - - yi = x << 2; - - for (y = 0; y < this.bitmap.height; y++) { - pa = asum * mulSum >>> shgSum; - this.bitmap.data[yi + 3] = pa; // normalize alpha - - if (pa > 255) { - this.bitmap.data[yi + 3] = 255; - } - - if (pa > 0) { - pa = 255 / pa; - this.bitmap.data[yi] = (rsum * mulSum >>> shgSum) * pa; - this.bitmap.data[yi + 1] = (gsum * mulSum >>> shgSum) * pa; - this.bitmap.data[yi + 2] = (bsum * mulSum >>> shgSum) * pa; - } else { - this.bitmap.data[yi + 2] = 0; - this.bitmap.data[yi + 1] = 0; - this.bitmap.data[yi] = 0; - } - - if (x === 0) { - vmin[y] = ((p = y + rad1) < hm ? p : hm) * this.bitmap.width; - vmax[y] = (p = y - r) > 0 ? p * this.bitmap.width : 0; - } - - p1 = x + vmin[y]; - p2 = x + vmax[y]; - rsum += red[p1] - red[p2]; - gsum += green[p1] - green[p2]; - bsum += blue[p1] - blue[p2]; - asum += alpha[p1] - alpha[p2]; - yi += this.bitmap.width << 2; - } - } - } - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-blur/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-blur/dist/index.js.map deleted file mode 100644 index 9892b9a11..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blur/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["blur","r","cb","throwError","call","rsum","gsum","bsum","asum","x","y","i","p","p1","p2","yp","yi","yw","pa","wm","bitmap","width","hm","height","rad1","mulSum","mulTable","shgSum","shgTable","red","green","blue","alpha","vmin","vmax","iterations","data"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;eA4Be;AAAA,SAAO;AACpB;;;;;;AAMAA,IAAAA,IAPoB,gBAOfC,CAPe,EAOZC,EAPY,EAOR;AACV,UAAI,OAAOD,CAAP,KAAa,QAAjB,EACE,OAAOE,kBA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zB;AACAP,YAAAA,IAAI,IAAIwB,IAAI,CAAClB,EAAD,CAAJ,GAAWkB,IAAI,CAACjB,EAAD,CAAvB;AACAN,YAAAA,IAAI,IAAIwB,KAAK,CAACnB,EAAD,CAAL,GAAYmB,KAAK,CAAClB,EAAD,CAAzB;AAEAE,YAAAA,EAAE,IAAI,KAAKI,MAAL,CAAYC,KAAZ,IAAqB,CAA3B;AACD;AACF;AACF;;AAED,UAAI,0BAAcnB,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AApJmB,GAAP;AAAA,C","sourcesContent":["import { throwError, isNodePattern } from \"@jimp/utils\";\nimport { mulTable, shgTable } from \"./blur-tables\";\n\n/*\n Superfast Blur (0.5)\n http://www.quasimondo.com/BoxBlurForCanvas/FastBlur.js\n\n Copyright (c) 2011 Mario Klingemann\n\n Permission is hereby granted, free of charge, to any person\n obtaining a copy of this software and associated documentation\n files (the \"Software\"), to deal in the Software without\n restriction, including without limitation the rights to use,\n copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the\n Software is furnished to do so, subject to the following\n conditions:\n\n The above copyright notice and this permission notice shall be\n included in all copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\n OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\n NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\n FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\n OTHER DEALINGS IN THE SOFTWARE.\n*/\n\nexport default () => ({\n /**\n * A fast blur algorithm that produces similar effect to a Gaussian blur - but MUCH quicker\n * @param {number} r the pixel radius of the blur\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n blur(r, cb) {\n if (typeof r !== \"number\")\n return throwError.call(this, \"r must be a number\", cb);\n if (r < 1) return throwError.call(this, \"r must be greater than 0\", cb);\n\n let rsum;\n let gsum;\n let bsum;\n let asum;\n let x;\n let y;\n let i;\n let p;\n let p1;\n let p2;\n let yp;\n let yi;\n let yw;\n let pa;\n\n const wm = this.bitmap.width - 1;\n const hm = this.bitmap.height - 1;\n // const wh = this.bitmap.width * this.bitmap.height;\n const rad1 = r + 1;\n\n const mulSum = mulTable[r];\n const shgSum = shgTable[r];\n\n const red = [];\n const green = [];\n const blue = [];\n const alpha = [];\n\n const vmin = [];\n const vmax = [];\n\n let iterations = 2;\n\n while (iterations-- > 0) {\n yi = 0;\n yw = 0;\n\n for (y = 0; y < this.bitmap.height; y++) {\n rsum = this.bitmap.data[yw] * rad1;\n gsum = this.bitmap.data[yw + 1] * rad1;\n bsum = this.bitmap.data[yw + 2] * rad1;\n asum = this.bitmap.data[yw + 3] * rad1;\n\n for (i = 1; i <= r; i++) {\n p = yw + ((i > wm ? wm : i) << 2);\n rsum += this.bitmap.data[p++];\n gsum += this.bitmap.data[p++];\n bsum += this.bitmap.data[p++];\n asum += this.bitmap.data[p];\n }\n\n for (x = 0; x < this.bitmap.width; x++) {\n red[yi] = rsum;\n green[yi] = gsum;\n blue[yi] = bsum;\n alpha[yi] = asum;\n\n if (y === 0) {\n vmin[x] = ((p = x + rad1) < wm ? p : wm) << 2;\n vmax[x] = (p = x - r) > 0 ? p << 2 : 0;\n }\n\n p1 = yw + vmin[x];\n p2 = yw + vmax[x];\n\n rsum += this.bitmap.data[p1++] - this.bitmap.data[p2++];\n gsum += this.bitmap.data[p1++] - this.bitmap.data[p2++];\n bsum += this.bitmap.data[p1++] - this.bitmap.data[p2++];\n asum += this.bitmap.data[p1] - this.bitmap.data[p2];\n\n yi++;\n }\n\n yw += this.bitmap.width << 2;\n }\n\n for (x = 0; x < this.bitmap.width; x++) {\n yp = x;\n rsum = red[yp] * rad1;\n gsum = green[yp] * rad1;\n bsum = blue[yp] * rad1;\n asum = alpha[yp] * rad1;\n\n for (i = 1; i <= r; i++) {\n yp += i > hm ? 0 : this.bitmap.width;\n rsum += red[yp];\n gsum += green[yp];\n bsum += blue[yp];\n asum += alpha[yp];\n }\n\n yi = x << 2;\n\n for (y = 0; y < this.bitmap.height; y++) {\n pa = (asum * mulSum) >>> shgSum;\n this.bitmap.data[yi + 3] = pa;\n\n // normalize alpha\n if (pa > 255) {\n this.bitmap.data[yi + 3] = 255;\n }\n\n if (pa > 0) {\n pa = 255 / pa;\n this.bitmap.data[yi] = ((rsum * mulSum) >>> shgSum) * pa;\n this.bitmap.data[yi + 1] = ((gsum * mulSum) >>> shgSum) * pa;\n this.bitmap.data[yi + 2] = ((bsum * mulSum) >>> shgSum) * pa;\n } else {\n this.bitmap.data[yi + 2] = 0;\n this.bitmap.data[yi + 1] = 0;\n this.bitmap.data[yi] = 0;\n }\n\n if (x === 0) {\n vmin[y] = ((p = y + rad1) < hm ? p : hm) * this.bitmap.width;\n vmax[y] = (p = y - r) > 0 ? p * this.bitmap.width : 0;\n }\n\n p1 = x + vmin[y];\n p2 = x + vmax[y];\n\n rsum += red[p1] - red[p2];\n gsum += green[p1] - green[p2];\n bsum += blue[p1] - blue[p2];\n asum += alpha[p1] - alpha[p2];\n\n yi += this.bitmap.width << 2;\n }\n }\n }\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-blur/index.d.ts b/WechatBot/node_modules/@jimp/plugin-blur/index.d.ts deleted file mode 100644 index 8e325774e..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blur/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Blur { - blur(r: number, cb?: ImageCallback): this; -} - -export default function (): Blur; diff --git a/WechatBot/node_modules/@jimp/plugin-blur/package.json b/WechatBot/node_modules/@jimp/plugin-blur/package.json deleted file mode 100644 index 9f89b8419..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blur/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@jimp/plugin-blur", - "version": "0.16.13", - "description": "blur an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-blur/src/blur-tables.js b/WechatBot/node_modules/@jimp/plugin-blur/src/blur-tables.js deleted file mode 100755 index b63001458..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blur/src/blur-tables.js +++ /dev/null @@ -1,35 +0,0 @@ -export const mulTable = [ - 1, 57, 41, 21, 203, 34, 97, 73, 227, 91, 149, 62, 105, 45, 39, 137, 241, 107, - 3, 173, 39, 71, 65, 238, 219, 101, 187, 87, 81, 151, 141, 133, 249, 117, 221, - 209, 197, 187, 177, 169, 5, 153, 73, 139, 133, 127, 243, 233, 223, 107, 103, - 99, 191, 23, 177, 171, 165, 159, 77, 149, 9, 139, 135, 131, 253, 245, 119, - 231, 224, 109, 211, 103, 25, 195, 189, 23, 45, 175, 171, 83, 81, 79, 155, 151, - 147, 9, 141, 137, 67, 131, 129, 251, 123, 30, 235, 115, 113, 221, 217, 53, 13, - 51, 50, 49, 193, 189, 185, 91, 179, 175, 43, 169, 83, 163, 5, 79, 155, 19, 75, - 147, 145, 143, 35, 69, 17, 67, 33, 65, 255, 251, 247, 243, 239, 59, 29, 229, - 113, 111, 219, 27, 213, 105, 207, 51, 201, 199, 49, 193, 191, 47, 93, 183, - 181, 179, 11, 87, 43, 85, 167, 165, 163, 161, 159, 157, 155, 77, 19, 75, 37, - 73, 145, 143, 141, 35, 138, 137, 135, 67, 33, 131, 129, 255, 63, 250, 247, 61, - 121, 239, 237, 117, 29, 229, 227, 225, 111, 55, 109, 216, 213, 211, 209, 207, - 205, 203, 201, 199, 197, 195, 193, 48, 190, 47, 93, 185, 183, 181, 179, 178, - 176, 175, 173, 171, 85, 21, 167, 165, 41, 163, 161, 5, 79, 157, 78, 154, 153, - 19, 75, 149, 74, 147, 73, 144, 143, 71, 141, 140, 139, 137, 17, 135, 134, 133, - 66, 131, 65, 129, 1, -]; - -export const shgTable = [ - 0, 9, 10, 10, 14, 12, 14, 14, 16, 15, 16, 15, 16, 15, 15, 17, 18, 17, 12, 18, - 16, 17, 17, 19, 19, 18, 19, 18, 18, 19, 19, 19, 20, 19, 20, 20, 20, 20, 20, - 20, 15, 20, 19, 20, 20, 20, 21, 21, 21, 20, 20, 20, 21, 18, 21, 21, 21, 21, - 20, 21, 17, 21, 21, 21, 22, 22, 21, 22, 22, 21, 22, 21, 19, 22, 22, 19, 20, - 22, 22, 21, 21, 21, 22, 22, 22, 18, 22, 22, 21, 22, 22, 23, 22, 20, 23, 22, - 22, 23, 23, 21, 19, 21, 21, 21, 23, 23, 23, 22, 23, 23, 21, 23, 22, 23, 18, - 22, 23, 20, 22, 23, 23, 23, 21, 22, 20, 22, 21, 22, 24, 24, 24, 24, 24, 22, - 21, 24, 23, 23, 24, 21, 24, 23, 24, 22, 24, 24, 22, 24, 24, 22, 23, 24, 24, - 24, 20, 23, 22, 23, 24, 24, 24, 24, 24, 24, 24, 23, 21, 23, 22, 23, 24, 24, - 24, 22, 24, 24, 24, 23, 22, 24, 24, 25, 23, 25, 25, 23, 24, 25, 25, 24, 22, - 25, 25, 25, 24, 23, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 25, 23, - 25, 23, 24, 25, 25, 25, 25, 25, 25, 25, 25, 25, 24, 22, 25, 25, 23, 25, 25, - 20, 24, 25, 24, 25, 25, 22, 24, 25, 24, 25, 24, 25, 25, 24, 25, 25, 25, 25, - 22, 25, 25, 25, 24, 25, 24, 25, 18, -]; diff --git a/WechatBot/node_modules/@jimp/plugin-blur/src/index.js b/WechatBot/node_modules/@jimp/plugin-blur/src/index.js deleted file mode 100755 index d97ae3d6f..000000000 --- a/WechatBot/node_modules/@jimp/plugin-blur/src/index.js +++ /dev/null @@ -1,181 +0,0 @@ -import { throwError, isNodePattern } from "@jimp/utils"; -import { mulTable, shgTable } from "./blur-tables"; - -/* - Superfast Blur (0.5) - http://www.quasimondo.com/BoxBlurForCanvas/FastBlur.js - - Copyright (c) 2011 Mario Klingemann - - Permission is hereby granted, free of charge, to any person - obtaining a copy of this software and associated documentation - files (the "Software"), to deal in the Software without - restriction, including without limitation the rights to use, - copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the - Software is furnished to do so, subject to the following - conditions: - - The above copyright notice and this permission notice shall be - included in all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES - OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT - HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, - WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - OTHER DEALINGS IN THE SOFTWARE. -*/ - -export default () => ({ - /** - * A fast blur algorithm that produces similar effect to a Gaussian blur - but MUCH quicker - * @param {number} r the pixel radius of the blur - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - blur(r, cb) { - if (typeof r !== "number") - return throwError.call(this, "r must be a number", cb); - if (r < 1) return throwError.call(this, "r must be greater than 0", cb); - - let rsum; - let gsum; - let bsum; - let asum; - let x; - let y; - let i; - let p; - let p1; - let p2; - let yp; - let yi; - let yw; - let pa; - - const wm = this.bitmap.width - 1; - const hm = this.bitmap.height - 1; - // const wh = this.bitmap.width * this.bitmap.height; - const rad1 = r + 1; - - const mulSum = mulTable[r]; - const shgSum = shgTable[r]; - - const red = []; - const green = []; - const blue = []; - const alpha = []; - - const vmin = []; - const vmax = []; - - let iterations = 2; - - while (iterations-- > 0) { - yi = 0; - yw = 0; - - for (y = 0; y < this.bitmap.height; y++) { - rsum = this.bitmap.data[yw] * rad1; - gsum = this.bitmap.data[yw + 1] * rad1; - bsum = this.bitmap.data[yw + 2] * rad1; - asum = this.bitmap.data[yw + 3] * rad1; - - for (i = 1; i <= r; i++) { - p = yw + ((i > wm ? wm : i) << 2); - rsum += this.bitmap.data[p++]; - gsum += this.bitmap.data[p++]; - bsum += this.bitmap.data[p++]; - asum += this.bitmap.data[p]; - } - - for (x = 0; x < this.bitmap.width; x++) { - red[yi] = rsum; - green[yi] = gsum; - blue[yi] = bsum; - alpha[yi] = asum; - - if (y === 0) { - vmin[x] = ((p = x + rad1) < wm ? p : wm) << 2; - vmax[x] = (p = x - r) > 0 ? p << 2 : 0; - } - - p1 = yw + vmin[x]; - p2 = yw + vmax[x]; - - rsum += this.bitmap.data[p1++] - this.bitmap.data[p2++]; - gsum += this.bitmap.data[p1++] - this.bitmap.data[p2++]; - bsum += this.bitmap.data[p1++] - this.bitmap.data[p2++]; - asum += this.bitmap.data[p1] - this.bitmap.data[p2]; - - yi++; - } - - yw += this.bitmap.width << 2; - } - - for (x = 0; x < this.bitmap.width; x++) { - yp = x; - rsum = red[yp] * rad1; - gsum = green[yp] * rad1; - bsum = blue[yp] * rad1; - asum = alpha[yp] * rad1; - - for (i = 1; i <= r; i++) { - yp += i > hm ? 0 : this.bitmap.width; - rsum += red[yp]; - gsum += green[yp]; - bsum += blue[yp]; - asum += alpha[yp]; - } - - yi = x << 2; - - for (y = 0; y < this.bitmap.height; y++) { - pa = (asum * mulSum) >>> shgSum; - this.bitmap.data[yi + 3] = pa; - - // normalize alpha - if (pa > 255) { - this.bitmap.data[yi + 3] = 255; - } - - if (pa > 0) { - pa = 255 / pa; - this.bitmap.data[yi] = ((rsum * mulSum) >>> shgSum) * pa; - this.bitmap.data[yi + 1] = ((gsum * mulSum) >>> shgSum) * pa; - this.bitmap.data[yi + 2] = ((bsum * mulSum) >>> shgSum) * pa; - } else { - this.bitmap.data[yi + 2] = 0; - this.bitmap.data[yi + 1] = 0; - this.bitmap.data[yi] = 0; - } - - if (x === 0) { - vmin[y] = ((p = y + rad1) < hm ? p : hm) * this.bitmap.width; - vmax[y] = (p = y - r) > 0 ? p * this.bitmap.width : 0; - } - - p1 = x + vmin[y]; - p2 = x + vmax[y]; - - rsum += red[p1] - red[p2]; - gsum += green[p1] - green[p2]; - bsum += blue[p1] - blue[p2]; - asum += alpha[p1] - alpha[p2]; - - yi += this.bitmap.width << 2; - } - } - } - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-circle/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-circle/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-circle/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-circle/LICENSE b/WechatBot/node_modules/@jimp/plugin-circle/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-circle/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-circle/README.md b/WechatBot/node_modules/@jimp/plugin-circle/README.md deleted file mode 100644 index 689b3ab84..000000000 --- a/WechatBot/node_modules/@jimp/plugin-circle/README.md +++ /dev/null @@ -1,25 +0,0 @@ -
- -

@jimp/plugin-circle

-

Creates a circle out of an image.

-
- -## Usage - -- @param {function(Error, Jimp)} options (optional) radius, x, y -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.circle(); - // or - image.circle({ radius: 50, x: 25, y: 25 }); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-circle/dist/index.js b/WechatBot/node_modules/@jimp/plugin-circle/dist/index.js deleted file mode 100755 index bb423d5f6..000000000 --- a/WechatBot/node_modules/@jimp/plugin-circle/dist/index.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Creates a circle out of an image. - * @param {function(Error, Jimp)} options (optional) radius, x, y - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -var _default = function _default() { - return { - circle: function circle() { - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var cb = arguments.length > 1 ? arguments[1] : undefined; - - if (typeof options === "function") { - cb = options; - options = {}; - } - - var radius = options.radius || (this.bitmap.width > this.bitmap.height ? this.bitmap.height : this.bitmap.width) / 2; - var center = { - x: typeof options.x === "number" ? options.x : this.bitmap.width / 2, - y: typeof options.y === "number" ? options.y : this.bitmap.height / 2 - }; - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - var curR = Math.sqrt(Math.pow(x - center.x, 2) + Math.pow(y - center.y, 2)); - - if (radius - curR <= 0.0) { - this.bitmap.data[idx + 3] = 0; - } else if (radius - curR < 1.0) { - this.bitmap.data[idx + 3] = 255 * (radius - curR); - } - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-circle/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-circle/dist/index.js.map deleted file mode 100644 index dc73d883a..000000000 --- a/WechatBot/node_modules/@jimp/plugin-circle/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["circle","options","cb","radius","bitmap","width","height","center","x","y","scanQuiet","idx","curR","Math","sqrt","pow","data","call"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;eAMe;AAAA,SAAO;AACpBA,IAAAA,MADoB,oBACK;AAAA,UAAlBC,OAAkB,uEAAR,EAAQ;AAAA,UAAJC,EAAI;;AACvB,UAAI,OAAOD,OAAP,KAAmB,UAAvB,EAAmC;AACjCC,QAAAA,EAAE,GAAGD,OAAL;AACAA,QAAAA,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,0BAAcV,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACe,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AAzCmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern } from \"@jimp/utils\";\n\n/**\n * Creates a circle out of an image.\n * @param {function(Error, Jimp)} options (optional) radius, x, y\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default () => ({\n circle(options = {}, cb) {\n if (typeof options === \"function\") {\n cb = options;\n options = {};\n }\n\n const radius =\n options.radius ||\n (this.bitmap.width > this.bitmap.height\n ? this.bitmap.height\n : this.bitmap.width) / 2;\n\n const center = {\n x: typeof options.x === \"number\" ? options.x : this.bitmap.width / 2,\n y: typeof options.y === \"number\" ? options.y : this.bitmap.height / 2,\n };\n\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n const curR = Math.sqrt(\n Math.pow(x - center.x, 2) + Math.pow(y - center.y, 2)\n );\n\n if (radius - curR <= 0.0) {\n this.bitmap.data[idx + 3] = 0;\n } else if (radius - curR < 1.0) {\n this.bitmap.data[idx + 3] = 255 * (radius - curR);\n }\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-circle/index.d.ts b/WechatBot/node_modules/@jimp/plugin-circle/index.d.ts deleted file mode 100644 index 302dda00c..000000000 --- a/WechatBot/node_modules/@jimp/plugin-circle/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Circle { - circle( - options?: { - radius: number; - x: number; - y: number; - }, - cb?: ImageCallback - ): this; - circle(cb?: ImageCallback): this; -} - -export default function (): Circle; diff --git a/WechatBot/node_modules/@jimp/plugin-circle/package.json b/WechatBot/node_modules/@jimp/plugin-circle/package.json deleted file mode 100644 index f58b5faec..000000000 --- a/WechatBot/node_modules/@jimp/plugin-circle/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@jimp/plugin-circle", - "version": "0.16.13", - "description": "Creates a circle out of an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-circle/src/index.js b/WechatBot/node_modules/@jimp/plugin-circle/src/index.js deleted file mode 100755 index 5d1a5c9c4..000000000 --- a/WechatBot/node_modules/@jimp/plugin-circle/src/index.js +++ /dev/null @@ -1,51 +0,0 @@ -import { isNodePattern } from "@jimp/utils"; - -/** - * Creates a circle out of an image. - * @param {function(Error, Jimp)} options (optional) radius, x, y - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -export default () => ({ - circle(options = {}, cb) { - if (typeof options === "function") { - cb = options; - options = {}; - } - - const radius = - options.radius || - (this.bitmap.width > this.bitmap.height - ? this.bitmap.height - : this.bitmap.width) / 2; - - const center = { - x: typeof options.x === "number" ? options.x : this.bitmap.width / 2, - y: typeof options.y === "number" ? options.y : this.bitmap.height / 2, - }; - - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - const curR = Math.sqrt( - Math.pow(x - center.x, 2) + Math.pow(y - center.y, 2) - ); - - if (radius - curR <= 0.0) { - this.bitmap.data[idx + 3] = 0; - } else if (radius - curR < 1.0) { - this.bitmap.data[idx + 3] = 255 * (radius - curR); - } - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-circle/test/circle.test.js b/WechatBot/node_modules/@jimp/plugin-circle/test/circle.test.js deleted file mode 100755 index 19fc95d04..000000000 --- a/WechatBot/node_modules/@jimp/plugin-circle/test/circle.test.js +++ /dev/null @@ -1,78 +0,0 @@ -import { Jimp, mkJGD, getTestDir } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import circle from "../src"; - -const jimp = configure({ plugins: [circle] }, Jimp); - -describe("Circle", () => { - it("makes a circle based on image height and width", async () => { - const expectedImg = await Jimp.read( - getTestDir(__dirname) + "/images/circled.png" - ); - const imgSrc = await jimp.read( - mkJGD( - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦" - ) - ); - - imgSrc.circle().bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); - - it("makes a circle using provided radius", async () => { - const expectedImg = await Jimp.read( - getTestDir(__dirname) + "/images/radius-3-circle.png" - ); - const imgSrc = await jimp.read( - mkJGD( - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦" - ) - ); - - imgSrc - .circle({ radius: 3 }) - .bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); - - it("should ", async () => { - const expectedImg = await Jimp.read( - getTestDir(__dirname) + "/images/x-y-circle.png" - ); - const imgSrc = await jimp.read( - mkJGD( - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦", - "▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦▦" - ) - ); - - imgSrc - .circle({ radius: 5, x: 5, y: 5 }) - .bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-circle/test/images/circled.png b/WechatBot/node_modules/@jimp/plugin-circle/test/images/circled.png deleted file mode 100644 index 8128de03c..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-circle/test/images/circled.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-circle/test/images/radius-3-circle.png b/WechatBot/node_modules/@jimp/plugin-circle/test/images/radius-3-circle.png deleted file mode 100644 index 79d998d04..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-circle/test/images/radius-3-circle.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-circle/test/images/x-y-circle.png b/WechatBot/node_modules/@jimp/plugin-circle/test/images/x-y-circle.png deleted file mode 100644 index e102b6347..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-circle/test/images/x-y-circle.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-color/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-color/CHANGELOG.md deleted file mode 100644 index e0fea7c17..000000000 --- a/WechatBot/node_modules/@jimp/plugin-color/CHANGELOG.md +++ /dev/null @@ -1,41 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### 🐛 Bug Fix - -- Fix edgeHandling types [#1080](https://github.com/jimp-dev/jimp/pull/1080) ([@domdomegg](https://github.com/domdomegg)) - -#### ⚠️ Pushed to `master` - -- update linting ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Adam Jones ([@domdomegg](https://github.com/domdomegg)) -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-color/LICENSE b/WechatBot/node_modules/@jimp/plugin-color/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-color/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-color/README.md b/WechatBot/node_modules/@jimp/plugin-color/README.md deleted file mode 100644 index 1b4c800fc..000000000 --- a/WechatBot/node_modules/@jimp/plugin-color/README.md +++ /dev/null @@ -1,262 +0,0 @@ -
- -

@jimp/plugin-color

-

Jimp color methods.

-
- -Bitmap manipulation to adjust the color in an image. - -## color - -Apply multiple color modification rules - -- @param {array} actions list of color modification rules, in following format: { apply: '', params: [ ] } -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.color([{ apply: "red", params: [100] }]); -} - -main(); -``` - -Jimp supports advanced colour manipulation using a single method as follows: - -```js -image.color([ - { apply: "hue", params: [-90] }, - { apply: "lighten", params: [50] }, - { apply: "xor", params: ["#06D"] }, -]); -``` - -The method supports the following modifiers: - -| Modifier | Description | -| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| **lighten** {amount} | Lighten the color a given amount, from 0 to 100. Providing 100 will always return white (works through [TinyColor](https://github.com/bgrins/TinyColor)) | -| **brighten** {amount} | Brighten the color a given amount, from 0 to 100 (works through [TinyColor](https://github.com/bgrins/TinyColor)) | -| **darken** {amount} | Darken the color a given amount, from 0 to 100. Providing 100 will always return black (works through [TinyColor](https://github.com/bgrins/TinyColor)) | -| **desaturate** {amount} | Desaturate the color a given amount, from 0 to 100. Providing 100 will is the same as calling greyscale (works through [TinyColor](https://github.com/bgrins/TinyColor)) | -| **saturate** {amount} | Saturate the color a given amount, from 0 to 100 (works through [TinyColor](https://github.com/bgrins/TinyColor)) | -| **greyscale** {amount} | Completely desaturates a color into greyscale (works through [TinyColor](https://github.com/bgrins/TinyColor)) | -| **spin** {degree} | Spin the hue a given amount, from -360 to 360. Calling with 0, 360, or -360 will do nothing - since it sets the hue back to what it was before. (works through [TinyColor](https://github.com/bgrins/TinyColor)) | -| **hue** {degree} | Alias for **spin** | -| **mix** {color, amount} | Mixes colors by their RGB component values. Amount is opacity of overlaying color | -| **tint** {amount} | Same as applying **mix** with white color | -| **shade** {amount} | Same as applying **mix** with black color | -| **xor** {color} | Treats the two colors as bitfields and applies an XOR operation to the red, green, and blue components | -| **red** {amount} | Modify Red component by a given amount | -| **green** {amount} | Modify Green component by a given amount | -| **blue** {amount} | Modify Blue component by a given amount | - -## brightness - -Adjusts the brightness of the image - -- @param {number} val the amount to adjust the brightness, a number between -1 and +1 -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.brightness(20); -} - -main(); -``` - -## contrast - -Adjusts the contrast of the image - -- @param {number} val the amount to adjust the contrast, a number between -1 and +1 -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.contrast(70); -} - -main(); -``` - -## posterize - -Apply a posterize effect - -- @param {number} n the amount to adjust the contrast, minimum threshold is two -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.posterize(5); -} - -main(); -``` - -## opacity - -Multiplies the opacity of each pixel by a factor between 0 and 1 - -- @param {number} f A number, the factor by which to multiply the opacity of each pixel -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.opacity(80); -} - -main(); -``` - -## sepia - -Applies a sepia tone to the image - -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.sepia(); -} - -main(); -``` - -## fade - -Fades each pixel by a factor between 0 and 1 - -- @param {number} f A number from 0 to 1. 0 will haven no effect. 1 will turn the image completely transparent. -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.fade(0.7); -} - -main(); -``` - -## convolution - -Sum neighbor pixels weighted by the kernel matrix. You can find a nice explanation with examples at [GIMP's Convolution Matrix plugin](https://docs.gimp.org/2.6/en/plug-in-convmatrix.html) - -- @param {array} kernel a matrix to weight the neighbors sum -- @param {number} edgeHandling (optional) define how to sum pixels from outside the border -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.convolution( - [ - [-1, -1, -1], - [-1, 8, -1], - [-1, -1, -1], - ], - jimp.EDGE_EXTEND - ); -} - -main(); -``` - -## opaque - -Set the alpha channel on every pixel to fully opaque - -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.opaque(); -} - -main(); -``` - -## pixelate - -Pixelates the image or a region - -- @param {number} size the size of the pixels -- @param {number} x (optional) the x position of the region to pixelate -- @param {number} y (optional) the y position of the region to pixelate -- @param {number} w (optional) the width of the region to pixelate -- @param {number} h (optional) the height of the region to pixelate -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.pixelate(10); -} - -main(); -``` - -## convolute - -Applies a convolution kernel to the image or a region - -- @param {array} kernel the convolution kernel -- @param {number} x (optional) the x position of the region to apply convolution to -- @param {number} y (optional) the y position of the region to apply convolution to -- @param {number} w (optional) the width of the region to apply convolution to -- @param {number} h (optional) the height of the region to apply convolution to -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - // make me better - image.pixelate(kernal); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-color/dist/index.js b/WechatBot/node_modules/@jimp/plugin-color/dist/index.js deleted file mode 100755 index e733f3ad1..000000000 --- a/WechatBot/node_modules/@jimp/plugin-color/dist/index.js +++ /dev/null @@ -1,567 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); - -var _tinycolor = _interopRequireDefault(require("tinycolor2")); - -var _utils = require("@jimp/utils"); - -function applyKernel(im, kernel, x, y) { - var value = [0, 0, 0]; - var size = (kernel.length - 1) / 2; - - for (var kx = 0; kx < kernel.length; kx += 1) { - for (var ky = 0; ky < kernel[kx].length; ky += 1) { - var idx = im.getPixelIndex(x + kx - size, y + ky - size); - value[0] += im.bitmap.data[idx] * kernel[kx][ky]; - value[1] += im.bitmap.data[idx + 1] * kernel[kx][ky]; - value[2] += im.bitmap.data[idx + 2] * kernel[kx][ky]; - } - } - - return value; -} - -var isDef = function isDef(v) { - return typeof v !== "undefined" && v !== null; -}; - -function greyscale(cb) { - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - var grey = parseInt(0.2126 * this.bitmap.data[idx] + 0.7152 * this.bitmap.data[idx + 1] + 0.0722 * this.bitmap.data[idx + 2], 10); - this.bitmap.data[idx] = grey; - this.bitmap.data[idx + 1] = grey; - this.bitmap.data[idx + 2] = grey; - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; -} - -function mix(clr, clr2) { - var p = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 50; - return { - r: (clr2.r - clr.r) * (p / 100) + clr.r, - g: (clr2.g - clr.g) * (p / 100) + clr.g, - b: (clr2.b - clr.b) * (p / 100) + clr.b - }; -} - -function colorFn(actions, cb) { - var _this = this; - - if (!actions || !Array.isArray(actions)) { - return _utils.throwError.call(this, "actions must be an array", cb); - } - - actions = actions.map(function (action) { - if (action.apply === "xor" || action.apply === "mix") { - action.params[0] = (0, _tinycolor["default"])(action.params[0]).toRgb(); - } - - return action; - }); - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - var clr = { - r: _this.bitmap.data[idx], - g: _this.bitmap.data[idx + 1], - b: _this.bitmap.data[idx + 2] - }; - - var colorModifier = function colorModifier(i, amount) { - return _this.constructor.limit255(clr[i] + amount); - }; - - actions.forEach(function (action) { - if (action.apply === "mix") { - clr = mix(clr, action.params[0], action.params[1]); - } else if (action.apply === "tint") { - clr = mix(clr, { - r: 255, - g: 255, - b: 255 - }, action.params[0]); - } else if (action.apply === "shade") { - clr = mix(clr, { - r: 0, - g: 0, - b: 0 - }, action.params[0]); - } else if (action.apply === "xor") { - clr = { - r: clr.r ^ action.params[0].r, - g: clr.g ^ action.params[0].g, - b: clr.b ^ action.params[0].b - }; - } else if (action.apply === "red") { - clr.r = colorModifier("r", action.params[0]); - } else if (action.apply === "green") { - clr.g = colorModifier("g", action.params[0]); - } else if (action.apply === "blue") { - clr.b = colorModifier("b", action.params[0]); - } else { - var _clr; - - if (action.apply === "hue") { - action.apply = "spin"; - } - - clr = (0, _tinycolor["default"])(clr); - - if (!clr[action.apply]) { - return _utils.throwError.call(_this, "action " + action.apply + " not supported", cb); - } - - clr = (_clr = clr)[action.apply].apply(_clr, (0, _toConsumableArray2["default"])(action.params)).toRgb(); - } - }); - _this.bitmap.data[idx] = clr.r; - _this.bitmap.data[idx + 1] = clr.g; - _this.bitmap.data[idx + 2] = clr.b; - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; -} - -var _default = function _default() { - return { - /** - * Adjusts the brightness of the image - * @param {number} val the amount to adjust the brightness, a number between -1 and +1 - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - brightness: function brightness(val, cb) { - if (typeof val !== "number") { - return _utils.throwError.call(this, "val must be numbers", cb); - } - - if (val < -1 || val > +1) { - return _utils.throwError.call(this, "val must be a number between -1 and +1", cb); - } - - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - if (val < 0.0) { - this.bitmap.data[idx] *= 1 + val; - this.bitmap.data[idx + 1] *= 1 + val; - this.bitmap.data[idx + 2] *= 1 + val; - } else { - this.bitmap.data[idx] += (255 - this.bitmap.data[idx]) * val; - this.bitmap.data[idx + 1] += (255 - this.bitmap.data[idx + 1]) * val; - this.bitmap.data[idx + 2] += (255 - this.bitmap.data[idx + 2]) * val; - } - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Adjusts the contrast of the image - * @param {number} val the amount to adjust the contrast, a number between -1 and +1 - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - contrast: function contrast(val, cb) { - if (typeof val !== "number") { - return _utils.throwError.call(this, "val must be numbers", cb); - } - - if (val < -1 || val > +1) { - return _utils.throwError.call(this, "val must be a number between -1 and +1", cb); - } - - var factor = (val + 1) / (1 - val); - - function adjust(value) { - value = Math.floor(factor * (value - 127) + 127); - return value < 0 ? 0 : value > 255 ? 255 : value; - } - - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - this.bitmap.data[idx] = adjust(this.bitmap.data[idx]); - this.bitmap.data[idx + 1] = adjust(this.bitmap.data[idx + 1]); - this.bitmap.data[idx + 2] = adjust(this.bitmap.data[idx + 2]); - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Apply a posterize effect - * @param {number} n the amount to adjust the contrast, minimum threshold is two - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - posterize: function posterize(n, cb) { - if (typeof n !== "number") { - return _utils.throwError.call(this, "n must be numbers", cb); - } - - if (n < 2) { - n = 2; - } // minimum of 2 levels - - - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - this.bitmap.data[idx] = Math.floor(this.bitmap.data[idx] / 255 * (n - 1)) / (n - 1) * 255; - this.bitmap.data[idx + 1] = Math.floor(this.bitmap.data[idx + 1] / 255 * (n - 1)) / (n - 1) * 255; - this.bitmap.data[idx + 2] = Math.floor(this.bitmap.data[idx + 2] / 255 * (n - 1)) / (n - 1) * 255; - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Removes colour from the image using ITU Rec 709 luminance values - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - greyscale: greyscale, - // Alias of greyscale for our American friends - grayscale: greyscale, - - /** - * Multiplies the opacity of each pixel by a factor between 0 and 1 - * @param {number} f A number, the factor by which to multiply the opacity of each pixel - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - opacity: function opacity(f, cb) { - if (typeof f !== "number") return _utils.throwError.call(this, "f must be a number", cb); - if (f < 0 || f > 1) return _utils.throwError.call(this, "f must be a number from 0 to 1", cb); - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - var v = this.bitmap.data[idx + 3] * f; - this.bitmap.data[idx + 3] = v; - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Applies a sepia tone to the image - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - sepia: function sepia(cb) { - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - var red = this.bitmap.data[idx]; - var green = this.bitmap.data[idx + 1]; - var blue = this.bitmap.data[idx + 2]; - red = red * 0.393 + green * 0.769 + blue * 0.189; - green = red * 0.349 + green * 0.686 + blue * 0.168; - blue = red * 0.272 + green * 0.534 + blue * 0.131; - this.bitmap.data[idx] = red < 255 ? red : 255; - this.bitmap.data[idx + 1] = green < 255 ? green : 255; - this.bitmap.data[idx + 2] = blue < 255 ? blue : 255; - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Fades each pixel by a factor between 0 and 1 - * @param {number} f A number from 0 to 1. 0 will haven no effect. 1 will turn the image completely transparent. - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - fade: function fade(f, cb) { - if (typeof f !== "number") { - return _utils.throwError.call(this, "f must be a number", cb); - } - - if (f < 0 || f > 1) { - return _utils.throwError.call(this, "f must be a number from 0 to 1", cb); - } // this method is an alternative to opacity (which may be deprecated) - - - this.opacity(1 - f); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Adds each element of the image to its local neighbors, weighted by the kernel - * @param {array} kernel a matrix to weight the neighbors sum - * @param {number} edgeHandling (optional) define how to sum pixels from outside the border - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - convolution: function convolution(kernel, edgeHandling, cb) { - if (typeof edgeHandling === "function" && typeof cb === "undefined") { - cb = edgeHandling; - edgeHandling = null; - } - - if (!edgeHandling) { - edgeHandling = this.constructor.EDGE_EXTEND; - } - - var newData = Buffer.from(this.bitmap.data); - var kRows = kernel.length; - var kCols = kernel[0].length; - var rowEnd = Math.floor(kRows / 2); - var colEnd = Math.floor(kCols / 2); - var rowIni = -rowEnd; - var colIni = -colEnd; - var weight; - var rSum; - var gSum; - var bSum; - var ri; - var gi; - var bi; - var xi; - var yi; - var idxi; - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - bSum = 0; - gSum = 0; - rSum = 0; - - for (var row = rowIni; row <= rowEnd; row++) { - for (var col = colIni; col <= colEnd; col++) { - xi = x + col; - yi = y + row; - weight = kernel[row + rowEnd][col + colEnd]; - idxi = this.getPixelIndex(xi, yi, edgeHandling); - - if (idxi === -1) { - bi = 0; - gi = 0; - ri = 0; - } else { - ri = this.bitmap.data[idxi + 0]; - gi = this.bitmap.data[idxi + 1]; - bi = this.bitmap.data[idxi + 2]; - } - - rSum += weight * ri; - gSum += weight * gi; - bSum += weight * bi; - } - } - - if (rSum < 0) { - rSum = 0; - } - - if (gSum < 0) { - gSum = 0; - } - - if (bSum < 0) { - bSum = 0; - } - - if (rSum > 255) { - rSum = 255; - } - - if (gSum > 255) { - gSum = 255; - } - - if (bSum > 255) { - bSum = 255; - } - - newData[idx + 0] = rSum; - newData[idx + 1] = gSum; - newData[idx + 2] = bSum; - }); - this.bitmap.data = newData; - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Set the alpha channel on every pixel to fully opaque - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - opaque: function opaque(cb) { - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - this.bitmap.data[idx + 3] = 255; - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Pixelates the image or a region - * @param {number} size the size of the pixels - * @param {number} x (optional) the x position of the region to pixelate - * @param {number} y (optional) the y position of the region to pixelate - * @param {number} w (optional) the width of the region to pixelate - * @param {number} h (optional) the height of the region to pixelate - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - pixelate: function pixelate(size, x, y, w, h, cb) { - if (typeof x === "function") { - cb = x; - h = null; - w = null; - y = null; - x = null; - } else { - if (typeof size !== "number") { - return _utils.throwError.call(this, "size must be a number", cb); - } - - if (isDef(x) && typeof x !== "number") { - return _utils.throwError.call(this, "x must be a number", cb); - } - - if (isDef(y) && typeof y !== "number") { - return _utils.throwError.call(this, "y must be a number", cb); - } - - if (isDef(w) && typeof w !== "number") { - return _utils.throwError.call(this, "w must be a number", cb); - } - - if (isDef(h) && typeof h !== "number") { - return _utils.throwError.call(this, "h must be a number", cb); - } - } - - var kernel = [[1 / 16, 2 / 16, 1 / 16], [2 / 16, 4 / 16, 2 / 16], [1 / 16, 2 / 16, 1 / 16]]; - x = x || 0; - y = y || 0; - w = isDef(w) ? w : this.bitmap.width - x; - h = isDef(h) ? h : this.bitmap.height - y; - var source = this.cloneQuiet(); - this.scanQuiet(x, y, w, h, function (xx, yx, idx) { - xx = size * Math.floor(xx / size); - yx = size * Math.floor(yx / size); - var value = applyKernel(source, kernel, xx, yx); - this.bitmap.data[idx] = value[0]; - this.bitmap.data[idx + 1] = value[1]; - this.bitmap.data[idx + 2] = value[2]; - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Applies a convolution kernel to the image or a region - * @param {array} kernel the convolution kernel - * @param {number} x (optional) the x position of the region to apply convolution to - * @param {number} y (optional) the y position of the region to apply convolution to - * @param {number} w (optional) the width of the region to apply convolution to - * @param {number} h (optional) the height of the region to apply convolution to - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - convolute: function convolute(kernel, x, y, w, h, cb) { - if (!Array.isArray(kernel)) return _utils.throwError.call(this, "the kernel must be an array", cb); - - if (typeof x === "function") { - cb = x; - x = null; - y = null; - w = null; - h = null; - } else { - if (isDef(x) && typeof x !== "number") { - return _utils.throwError.call(this, "x must be a number", cb); - } - - if (isDef(y) && typeof y !== "number") { - return _utils.throwError.call(this, "y must be a number", cb); - } - - if (isDef(w) && typeof w !== "number") { - return _utils.throwError.call(this, "w must be a number", cb); - } - - if (isDef(h) && typeof h !== "number") { - return _utils.throwError.call(this, "h must be a number", cb); - } - } - - var ksize = (kernel.length - 1) / 2; - x = isDef(x) ? x : ksize; - y = isDef(y) ? y : ksize; - w = isDef(w) ? w : this.bitmap.width - x; - h = isDef(h) ? h : this.bitmap.height - y; - var source = this.cloneQuiet(); - this.scanQuiet(x, y, w, h, function (xx, yx, idx) { - var value = applyKernel(source, kernel, xx, yx); - this.bitmap.data[idx] = this.constructor.limit255(value[0]); - this.bitmap.data[idx + 1] = this.constructor.limit255(value[1]); - this.bitmap.data[idx + 2] = this.constructor.limit255(value[2]); - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Apply multiple color modification rules - * @param {array} actions list of color modification rules, in following format: { apply: '', params: [ ] } - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - color: colorFn, - colour: colorFn - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-color/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-color/dist/index.js.map deleted file mode 100644 index d477bda8c..000000000 --- a/WechatBot/node_modules/@jimp/plugin-color/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["applyKernel","im","kernel","x","y","value","size","length","kx","ky","idx","getPixelIndex","bitmap","data","isDef","v","greyscale","cb","scanQuiet","width","height","grey","parseInt","call","mix","clr","clr2","p","r","g","b","colorFn","actions","Array","isArray","throwError","map","action","apply","params","toRgb","colorModifier","i","amount","constructor","limit255","forEach","brightness","val","contrast","factor","adjust","Math","floor","posterize","n","grayscale","opacity","f","sepia","red","green","blue","fade","convolution","edgeHandling","EDGE_EXTEND","newData","Buffer","from","kRows","kCols","rowEnd","colEnd","rowIni","colIni","weight","rSum","gSum","bSum","ri","gi","bi","xi","yi","idxi","row","col","opaque","pixelate","w","h","source","cloneQuiet","xx","yx","convolute","ksize","color","colour"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA,SAASA,WAAT,CAAqBC,EAArB,EAAyBC,MAAzB,EAAiCC,CAAjC,EAAoCC,CAApC,EAAuC;AACrC,MAAMC,KAAK,GAAG,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,CAAd;AACA,MAAMC,IAAI,GAAG,CAACJ,MAAM,CAACK,MAAP,GAAgB,CAAjB,IAAsB,CAAnC;;AAEA,OAAK,IAAIC,EAAE,GAAG,CAAd,EAAiBA,EAAE,GAAGN,MAAM,CAACK,MAA7B,EAAqCC,EAAE,IAAI,CAA3C,EAA8C;AAC5C,SAAK,IAAIC,EAAE,GAAG,CAAd,EAAiBA,EAAE,GAAGP,MAAM,CAACM,EAAD,CAAN,CAAWD,MAAjC,EAAyCE,EAAE,IAAI,CAA/C,EAAkD;AAChD,UAAMC,GAAG,GAAGT,EAAE,CAACU,aAAH,CAAiBR,CAAC,GAAGK,EAAJ,GAASF,IAA1B,EAAgCF,CAAC,GAAGK,EAAJ,GAASH,IAAzC,CAAZ;AAEAD,MAAAA,KAAK,CAAC,CAAD,CAAL,IAAYJ,EAAE,CAACW,MAAH,CAAUC,IAAV,CAAeH,GAAf,IAAsBR,MAAM,CAACM,EAAD,CAAN,CAAWC,EAAX,CAAlC;AACAJ,MAAAA,KAAK,CAAC,CAAD,CAAL,IAAYJ,EAAE,CAACW,MAAH,CAAUC,IAAV,CAAeH,GAAG,GAAG,CAArB,IAA0BR,MAAM,CAACM,EAAD,CAAN,CAAWC,EAAX,CAAtC;AACAJ,MAAAA,KAAK,CAAC,CAAD,CAAL,IAAYJ,EAAE,CAACW,MAAH,CAAUC,IAAV,CAAeH,GAAG,GAAG,CAArB,IAA0BR,MAAM,CAACM,EAA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,CAAiBH,GAAG,GAAG,CAAvB,IAA4B,KAAKkC,WAAL,CAAiBC,QAAjB,CAA0BxC,KAAK,CAAC,CAAD,CAA/B,CAA5B;AACD,OAND;;AAQA,UAAI,0BAAcY,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACM,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD,KAzemB;;AA2epB;;;;;;AAMA2E,IAAAA,KAAK,EAAEnE,OAjfa;AAkfpBoE,IAAAA,MAAM,EAAEpE;AAlfY,GAAP;AAAA,C","sourcesContent":["import tinyColor from \"tinycolor2\";\nimport { throwError, isNodePattern } from \"@jimp/utils\";\n\nfunction applyKernel(im, kernel, x, y) {\n const value = [0, 0, 0];\n const size = (kernel.length - 1) / 2;\n\n for (let kx = 0; kx < kernel.length; kx += 1) {\n for (let ky = 0; ky < kernel[kx].length; ky += 1) {\n const idx = im.getPixelIndex(x + kx - size, y + ky - size);\n\n value[0] += im.bitmap.data[idx] * kernel[kx][ky];\n value[1] += im.bitmap.data[idx + 1] * kernel[kx][ky];\n value[2] += im.bitmap.data[idx + 2] * kernel[kx][ky];\n }\n }\n\n return value;\n}\n\nconst isDef = (v) => typeof v !== \"undefined\" && v !== null;\n\nfunction greyscale(cb) {\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n const grey = parseInt(\n 0.2126 * this.bitmap.data[idx] +\n 0.7152 * this.bitmap.data[idx + 1] +\n 0.0722 * this.bitmap.data[idx + 2],\n 10\n );\n\n this.bitmap.data[idx] = grey;\n this.bitmap.data[idx + 1] = grey;\n this.bitmap.data[idx + 2] = grey;\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n}\n\nfunction mix(clr, clr2, p = 50) {\n return {\n r: (clr2.r - clr.r) * (p / 100) + clr.r,\n g: (clr2.g - clr.g) * (p / 100) + clr.g,\n b: (clr2.b - clr.b) * (p / 100) + clr.b,\n };\n}\n\nfunction colorFn(actions, cb) {\n if (!actions || !Array.isArray(actions)) {\n return throwError.call(this, \"actions must be an array\", cb);\n }\n\n actions = actions.map((action) => {\n if (action.apply === \"xor\" || action.apply === \"mix\") {\n action.params[0] = tinyColor(action.params[0]).toRgb();\n }\n\n return action;\n });\n\n this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, (x, y, idx) => {\n let clr = {\n r: this.bitmap.data[idx],\n g: this.bitmap.data[idx + 1],\n b: this.bitmap.data[idx + 2],\n };\n\n const colorModifier = (i, amount) =>\n this.constructor.limit255(clr[i] + amount);\n\n actions.forEach((action) => {\n if (action.apply === \"mix\") {\n clr = mix(clr, action.params[0], action.params[1]);\n } else if (action.apply === \"tint\") {\n clr = mix(clr, { r: 255, g: 255, b: 255 }, action.params[0]);\n } else if (action.apply === \"shade\") {\n clr = mix(clr, { r: 0, g: 0, b: 0 }, action.params[0]);\n } else if (action.apply === \"xor\") {\n clr = {\n r: clr.r ^ action.params[0].r,\n g: clr.g ^ action.params[0].g,\n b: clr.b ^ action.params[0].b,\n };\n } else if (action.apply === \"red\") {\n clr.r = colorModifier(\"r\", action.params[0]);\n } else if (action.apply === \"green\") {\n clr.g = colorModifier(\"g\", action.params[0]);\n } else if (action.apply === \"blue\") {\n clr.b = colorModifier(\"b\", action.params[0]);\n } else {\n if (action.apply === \"hue\") {\n action.apply = \"spin\";\n }\n\n clr = tinyColor(clr);\n\n if (!clr[action.apply]) {\n return throwError.call(\n this,\n \"action \" + action.apply + \" not supported\",\n cb\n );\n }\n\n clr = clr[action.apply](...action.params).toRgb();\n }\n });\n\n this.bitmap.data[idx] = clr.r;\n this.bitmap.data[idx + 1] = clr.g;\n this.bitmap.data[idx + 2] = clr.b;\n });\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n}\n\nexport default () => ({\n /**\n * Adjusts the brightness of the image\n * @param {number} val the amount to adjust the brightness, a number between -1 and +1\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n brightness(val, cb) {\n if (typeof val !== \"number\") {\n return throwError.call(this, \"val must be numbers\", cb);\n }\n\n if (val < -1 || val > +1) {\n return throwError.call(\n this,\n \"val must be a number between -1 and +1\",\n cb\n );\n }\n\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n if (val < 0.0) {\n this.bitmap.data[idx] *= 1 + val;\n this.bitmap.data[idx + 1] *= 1 + val;\n this.bitmap.data[idx + 2] *= 1 + val;\n } else {\n this.bitmap.data[idx] += (255 - this.bitmap.data[idx]) * val;\n this.bitmap.data[idx + 1] += (255 - this.bitmap.data[idx + 1]) * val;\n this.bitmap.data[idx + 2] += (255 - this.bitmap.data[idx + 2]) * val;\n }\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Adjusts the contrast of the image\n * @param {number} val the amount to adjust the contrast, a number between -1 and +1\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n contrast(val, cb) {\n if (typeof val !== \"number\") {\n return throwError.call(this, \"val must be numbers\", cb);\n }\n\n if (val < -1 || val > +1) {\n return throwError.call(\n this,\n \"val must be a number between -1 and +1\",\n cb\n );\n }\n\n const factor = (val + 1) / (1 - val);\n\n function adjust(value) {\n value = Math.floor(factor * (value - 127) + 127);\n\n return value < 0 ? 0 : value > 255 ? 255 : value;\n }\n\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n this.bitmap.data[idx] = adjust(this.bitmap.data[idx]);\n this.bitmap.data[idx + 1] = adjust(this.bitmap.data[idx + 1]);\n this.bitmap.data[idx + 2] = adjust(this.bitmap.data[idx + 2]);\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Apply a posterize effect\n * @param {number} n the amount to adjust the contrast, minimum threshold is two\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n posterize(n, cb) {\n if (typeof n !== \"number\") {\n return throwError.call(this, \"n must be numbers\", cb);\n }\n\n if (n < 2) {\n n = 2;\n } // minimum of 2 levels\n\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n this.bitmap.data[idx] =\n (Math.floor((this.bitmap.data[idx] / 255) * (n - 1)) / (n - 1)) * 255;\n this.bitmap.data[idx + 1] =\n (Math.floor((this.bitmap.data[idx + 1] / 255) * (n - 1)) / (n - 1)) *\n 255;\n this.bitmap.data[idx + 2] =\n (Math.floor((this.bitmap.data[idx + 2] / 255) * (n - 1)) / (n - 1)) *\n 255;\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Removes colour from the image using ITU Rec 709 luminance values\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n greyscale,\n\n // Alias of greyscale for our American friends\n grayscale: greyscale,\n\n /**\n * Multiplies the opacity of each pixel by a factor between 0 and 1\n * @param {number} f A number, the factor by which to multiply the opacity of each pixel\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n opacity(f, cb) {\n if (typeof f !== \"number\")\n return throwError.call(this, \"f must be a number\", cb);\n if (f < 0 || f > 1)\n return throwError.call(this, \"f must be a number from 0 to 1\", cb);\n\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n const v = this.bitmap.data[idx + 3] * f;\n this.bitmap.data[idx + 3] = v;\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Applies a sepia tone to the image\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n sepia(cb) {\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n let red = this.bitmap.data[idx];\n let green = this.bitmap.data[idx + 1];\n let blue = this.bitmap.data[idx + 2];\n\n red = red * 0.393 + green * 0.769 + blue * 0.189;\n green = red * 0.349 + green * 0.686 + blue * 0.168;\n blue = red * 0.272 + green * 0.534 + blue * 0.131;\n\n this.bitmap.data[idx] = red < 255 ? red : 255;\n this.bitmap.data[idx + 1] = green < 255 ? green : 255;\n this.bitmap.data[idx + 2] = blue < 255 ? blue : 255;\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Fades each pixel by a factor between 0 and 1\n * @param {number} f A number from 0 to 1. 0 will haven no effect. 1 will turn the image completely transparent.\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n fade(f, cb) {\n if (typeof f !== \"number\") {\n return throwError.call(this, \"f must be a number\", cb);\n }\n\n if (f < 0 || f > 1) {\n return throwError.call(this, \"f must be a number from 0 to 1\", cb);\n }\n\n // this method is an alternative to opacity (which may be deprecated)\n this.opacity(1 - f);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Adds each element of the image to its local neighbors, weighted by the kernel\n * @param {array} kernel a matrix to weight the neighbors sum\n * @param {number} edgeHandling (optional) define how to sum pixels from outside the border\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n convolution(kernel, edgeHandling, cb) {\n if (typeof edgeHandling === \"function\" && typeof cb === \"undefined\") {\n cb = edgeHandling;\n edgeHandling = null;\n }\n\n if (!edgeHandling) {\n edgeHandling = this.constructor.EDGE_EXTEND;\n }\n\n const newData = Buffer.from(this.bitmap.data);\n const kRows = kernel.length;\n const kCols = kernel[0].length;\n const rowEnd = Math.floor(kRows / 2);\n const colEnd = Math.floor(kCols / 2);\n const rowIni = -rowEnd;\n const colIni = -colEnd;\n\n let weight;\n let rSum;\n let gSum;\n let bSum;\n let ri;\n let gi;\n let bi;\n let xi;\n let yi;\n let idxi;\n\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n bSum = 0;\n gSum = 0;\n rSum = 0;\n\n for (let row = rowIni; row <= rowEnd; row++) {\n for (let col = colIni; col <= colEnd; col++) {\n xi = x + col;\n yi = y + row;\n weight = kernel[row + rowEnd][col + colEnd];\n idxi = this.getPixelIndex(xi, yi, edgeHandling);\n\n if (idxi === -1) {\n bi = 0;\n gi = 0;\n ri = 0;\n } else {\n ri = this.bitmap.data[idxi + 0];\n gi = this.bitmap.data[idxi + 1];\n bi = this.bitmap.data[idxi + 2];\n }\n\n rSum += weight * ri;\n gSum += weight * gi;\n bSum += weight * bi;\n }\n }\n\n if (rSum < 0) {\n rSum = 0;\n }\n\n if (gSum < 0) {\n gSum = 0;\n }\n\n if (bSum < 0) {\n bSum = 0;\n }\n\n if (rSum > 255) {\n rSum = 255;\n }\n\n if (gSum > 255) {\n gSum = 255;\n }\n\n if (bSum > 255) {\n bSum = 255;\n }\n\n newData[idx + 0] = rSum;\n newData[idx + 1] = gSum;\n newData[idx + 2] = bSum;\n }\n );\n\n this.bitmap.data = newData;\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Set the alpha channel on every pixel to fully opaque\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n opaque(cb) {\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n this.bitmap.data[idx + 3] = 255;\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Pixelates the image or a region\n * @param {number} size the size of the pixels\n * @param {number} x (optional) the x position of the region to pixelate\n * @param {number} y (optional) the y position of the region to pixelate\n * @param {number} w (optional) the width of the region to pixelate\n * @param {number} h (optional) the height of the region to pixelate\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n pixelate(size, x, y, w, h, cb) {\n if (typeof x === \"function\") {\n cb = x;\n h = null;\n w = null;\n y = null;\n x = null;\n } else {\n if (typeof size !== \"number\") {\n return throwError.call(this, \"size must be a number\", cb);\n }\n\n if (isDef(x) && typeof x !== \"number\") {\n return throwError.call(this, \"x must be a number\", cb);\n }\n\n if (isDef(y) && typeof y !== \"number\") {\n return throwError.call(this, \"y must be a number\", cb);\n }\n\n if (isDef(w) && typeof w !== \"number\") {\n return throwError.call(this, \"w must be a number\", cb);\n }\n\n if (isDef(h) && typeof h !== \"number\") {\n return throwError.call(this, \"h must be a number\", cb);\n }\n }\n\n const kernel = [\n [1 / 16, 2 / 16, 1 / 16],\n [2 / 16, 4 / 16, 2 / 16],\n [1 / 16, 2 / 16, 1 / 16],\n ];\n\n x = x || 0;\n y = y || 0;\n w = isDef(w) ? w : this.bitmap.width - x;\n h = isDef(h) ? h : this.bitmap.height - y;\n\n const source = this.cloneQuiet();\n\n this.scanQuiet(x, y, w, h, function (xx, yx, idx) {\n xx = size * Math.floor(xx / size);\n yx = size * Math.floor(yx / size);\n\n const value = applyKernel(source, kernel, xx, yx);\n\n this.bitmap.data[idx] = value[0];\n this.bitmap.data[idx + 1] = value[1];\n this.bitmap.data[idx + 2] = value[2];\n });\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Applies a convolution kernel to the image or a region\n * @param {array} kernel the convolution kernel\n * @param {number} x (optional) the x position of the region to apply convolution to\n * @param {number} y (optional) the y position of the region to apply convolution to\n * @param {number} w (optional) the width of the region to apply convolution to\n * @param {number} h (optional) the height of the region to apply convolution to\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n convolute(kernel, x, y, w, h, cb) {\n if (!Array.isArray(kernel))\n return throwError.call(this, \"the kernel must be an array\", cb);\n\n if (typeof x === \"function\") {\n cb = x;\n x = null;\n y = null;\n w = null;\n h = null;\n } else {\n if (isDef(x) && typeof x !== \"number\") {\n return throwError.call(this, \"x must be a number\", cb);\n }\n\n if (isDef(y) && typeof y !== \"number\") {\n return throwError.call(this, \"y must be a number\", cb);\n }\n\n if (isDef(w) && typeof w !== \"number\") {\n return throwError.call(this, \"w must be a number\", cb);\n }\n\n if (isDef(h) && typeof h !== \"number\") {\n return throwError.call(this, \"h must be a number\", cb);\n }\n }\n\n const ksize = (kernel.length - 1) / 2;\n\n x = isDef(x) ? x : ksize;\n y = isDef(y) ? y : ksize;\n w = isDef(w) ? w : this.bitmap.width - x;\n h = isDef(h) ? h : this.bitmap.height - y;\n\n const source = this.cloneQuiet();\n\n this.scanQuiet(x, y, w, h, function (xx, yx, idx) {\n const value = applyKernel(source, kernel, xx, yx);\n\n this.bitmap.data[idx] = this.constructor.limit255(value[0]);\n this.bitmap.data[idx + 1] = this.constructor.limit255(value[1]);\n this.bitmap.data[idx + 2] = this.constructor.limit255(value[2]);\n });\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Apply multiple color modification rules\n * @param {array} actions list of color modification rules, in following format: { apply: '', params: [ ] }\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp }this for chaining of methods\n */\n color: colorFn,\n colour: colorFn,\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-color/index.d.ts b/WechatBot/node_modules/@jimp/plugin-color/index.d.ts deleted file mode 100644 index 44a4ce5e8..000000000 --- a/WechatBot/node_modules/@jimp/plugin-color/index.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -type ColorActionName = - | "mix" - | "tint" - | "shade" - | "xor" - | "red" - | "green" - | "blue" - | "hue"; - -type ColorAction = { - apply: ColorActionName; - params: any; -}; - -interface Color { - brightness(val: number, cb?: ImageCallback): this; - contrast(val: number, cb?: ImageCallback): this; - posterize(n: number, cb?: ImageCallback): this; - greyscale(cb?: ImageCallback): this; - grayscale(cb?: ImageCallback): this; - opacity(f: number, cb?: ImageCallback): this; - sepia(cb?: ImageCallback): this; - fade(f: number, cb?: ImageCallback): this; - convolution(kernel: number[][], cb?: ImageCallback): this; - convolution( - kernel: number[][], - edgeHandling: number, - cb?: ImageCallback - ): this; - opaque(cb?: ImageCallback): this; - pixelate(size: number, cb?: ImageCallback): this; - pixelate( - size: number, - x: number, - y: number, - w: number, - h: number, - cb?: ImageCallback - ): this; - convolute(kernel: number[][], cb?: ImageCallback): this; - convolute( - kernel: number[][], - x: number, - y: number, - w: number, - h: number, - cb?: ImageCallback - ): this; - color(actions: ColorAction[], cb?: ImageCallback): this; - colour(actions: ColorAction[], cb?: ImageCallback): this; -} - -export default function (): Color; diff --git a/WechatBot/node_modules/@jimp/plugin-color/package.json b/WechatBot/node_modules/@jimp/plugin-color/package.json deleted file mode 100644 index 918917770..000000000 --- a/WechatBot/node_modules/@jimp/plugin-color/package.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "name": "@jimp/plugin-color", - "version": "0.16.13", - "description": "Bitmap manipulation to adjust the color in an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13", - "tinycolor2": "^1.4.1" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/test-utils": "^0.16.13", - "@jimp/types": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-color/src/index.js b/WechatBot/node_modules/@jimp/plugin-color/src/index.js deleted file mode 100755 index 1531a2a16..000000000 --- a/WechatBot/node_modules/@jimp/plugin-color/src/index.js +++ /dev/null @@ -1,630 +0,0 @@ -import tinyColor from "tinycolor2"; -import { throwError, isNodePattern } from "@jimp/utils"; - -function applyKernel(im, kernel, x, y) { - const value = [0, 0, 0]; - const size = (kernel.length - 1) / 2; - - for (let kx = 0; kx < kernel.length; kx += 1) { - for (let ky = 0; ky < kernel[kx].length; ky += 1) { - const idx = im.getPixelIndex(x + kx - size, y + ky - size); - - value[0] += im.bitmap.data[idx] * kernel[kx][ky]; - value[1] += im.bitmap.data[idx + 1] * kernel[kx][ky]; - value[2] += im.bitmap.data[idx + 2] * kernel[kx][ky]; - } - } - - return value; -} - -const isDef = (v) => typeof v !== "undefined" && v !== null; - -function greyscale(cb) { - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - const grey = parseInt( - 0.2126 * this.bitmap.data[idx] + - 0.7152 * this.bitmap.data[idx + 1] + - 0.0722 * this.bitmap.data[idx + 2], - 10 - ); - - this.bitmap.data[idx] = grey; - this.bitmap.data[idx + 1] = grey; - this.bitmap.data[idx + 2] = grey; - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; -} - -function mix(clr, clr2, p = 50) { - return { - r: (clr2.r - clr.r) * (p / 100) + clr.r, - g: (clr2.g - clr.g) * (p / 100) + clr.g, - b: (clr2.b - clr.b) * (p / 100) + clr.b, - }; -} - -function colorFn(actions, cb) { - if (!actions || !Array.isArray(actions)) { - return throwError.call(this, "actions must be an array", cb); - } - - actions = actions.map((action) => { - if (action.apply === "xor" || action.apply === "mix") { - action.params[0] = tinyColor(action.params[0]).toRgb(); - } - - return action; - }); - - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, (x, y, idx) => { - let clr = { - r: this.bitmap.data[idx], - g: this.bitmap.data[idx + 1], - b: this.bitmap.data[idx + 2], - }; - - const colorModifier = (i, amount) => - this.constructor.limit255(clr[i] + amount); - - actions.forEach((action) => { - if (action.apply === "mix") { - clr = mix(clr, action.params[0], action.params[1]); - } else if (action.apply === "tint") { - clr = mix(clr, { r: 255, g: 255, b: 255 }, action.params[0]); - } else if (action.apply === "shade") { - clr = mix(clr, { r: 0, g: 0, b: 0 }, action.params[0]); - } else if (action.apply === "xor") { - clr = { - r: clr.r ^ action.params[0].r, - g: clr.g ^ action.params[0].g, - b: clr.b ^ action.params[0].b, - }; - } else if (action.apply === "red") { - clr.r = colorModifier("r", action.params[0]); - } else if (action.apply === "green") { - clr.g = colorModifier("g", action.params[0]); - } else if (action.apply === "blue") { - clr.b = colorModifier("b", action.params[0]); - } else { - if (action.apply === "hue") { - action.apply = "spin"; - } - - clr = tinyColor(clr); - - if (!clr[action.apply]) { - return throwError.call( - this, - "action " + action.apply + " not supported", - cb - ); - } - - clr = clr[action.apply](...action.params).toRgb(); - } - }); - - this.bitmap.data[idx] = clr.r; - this.bitmap.data[idx + 1] = clr.g; - this.bitmap.data[idx + 2] = clr.b; - }); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; -} - -export default () => ({ - /** - * Adjusts the brightness of the image - * @param {number} val the amount to adjust the brightness, a number between -1 and +1 - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - brightness(val, cb) { - if (typeof val !== "number") { - return throwError.call(this, "val must be numbers", cb); - } - - if (val < -1 || val > +1) { - return throwError.call( - this, - "val must be a number between -1 and +1", - cb - ); - } - - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - if (val < 0.0) { - this.bitmap.data[idx] *= 1 + val; - this.bitmap.data[idx + 1] *= 1 + val; - this.bitmap.data[idx + 2] *= 1 + val; - } else { - this.bitmap.data[idx] += (255 - this.bitmap.data[idx]) * val; - this.bitmap.data[idx + 1] += (255 - this.bitmap.data[idx + 1]) * val; - this.bitmap.data[idx + 2] += (255 - this.bitmap.data[idx + 2]) * val; - } - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Adjusts the contrast of the image - * @param {number} val the amount to adjust the contrast, a number between -1 and +1 - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - contrast(val, cb) { - if (typeof val !== "number") { - return throwError.call(this, "val must be numbers", cb); - } - - if (val < -1 || val > +1) { - return throwError.call( - this, - "val must be a number between -1 and +1", - cb - ); - } - - const factor = (val + 1) / (1 - val); - - function adjust(value) { - value = Math.floor(factor * (value - 127) + 127); - - return value < 0 ? 0 : value > 255 ? 255 : value; - } - - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - this.bitmap.data[idx] = adjust(this.bitmap.data[idx]); - this.bitmap.data[idx + 1] = adjust(this.bitmap.data[idx + 1]); - this.bitmap.data[idx + 2] = adjust(this.bitmap.data[idx + 2]); - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Apply a posterize effect - * @param {number} n the amount to adjust the contrast, minimum threshold is two - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - posterize(n, cb) { - if (typeof n !== "number") { - return throwError.call(this, "n must be numbers", cb); - } - - if (n < 2) { - n = 2; - } // minimum of 2 levels - - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - this.bitmap.data[idx] = - (Math.floor((this.bitmap.data[idx] / 255) * (n - 1)) / (n - 1)) * 255; - this.bitmap.data[idx + 1] = - (Math.floor((this.bitmap.data[idx + 1] / 255) * (n - 1)) / (n - 1)) * - 255; - this.bitmap.data[idx + 2] = - (Math.floor((this.bitmap.data[idx + 2] / 255) * (n - 1)) / (n - 1)) * - 255; - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Removes colour from the image using ITU Rec 709 luminance values - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - greyscale, - - // Alias of greyscale for our American friends - grayscale: greyscale, - - /** - * Multiplies the opacity of each pixel by a factor between 0 and 1 - * @param {number} f A number, the factor by which to multiply the opacity of each pixel - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - opacity(f, cb) { - if (typeof f !== "number") - return throwError.call(this, "f must be a number", cb); - if (f < 0 || f > 1) - return throwError.call(this, "f must be a number from 0 to 1", cb); - - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - const v = this.bitmap.data[idx + 3] * f; - this.bitmap.data[idx + 3] = v; - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Applies a sepia tone to the image - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - sepia(cb) { - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - let red = this.bitmap.data[idx]; - let green = this.bitmap.data[idx + 1]; - let blue = this.bitmap.data[idx + 2]; - - red = red * 0.393 + green * 0.769 + blue * 0.189; - green = red * 0.349 + green * 0.686 + blue * 0.168; - blue = red * 0.272 + green * 0.534 + blue * 0.131; - - this.bitmap.data[idx] = red < 255 ? red : 255; - this.bitmap.data[idx + 1] = green < 255 ? green : 255; - this.bitmap.data[idx + 2] = blue < 255 ? blue : 255; - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Fades each pixel by a factor between 0 and 1 - * @param {number} f A number from 0 to 1. 0 will haven no effect. 1 will turn the image completely transparent. - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - fade(f, cb) { - if (typeof f !== "number") { - return throwError.call(this, "f must be a number", cb); - } - - if (f < 0 || f > 1) { - return throwError.call(this, "f must be a number from 0 to 1", cb); - } - - // this method is an alternative to opacity (which may be deprecated) - this.opacity(1 - f); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Adds each element of the image to its local neighbors, weighted by the kernel - * @param {array} kernel a matrix to weight the neighbors sum - * @param {number} edgeHandling (optional) define how to sum pixels from outside the border - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - convolution(kernel, edgeHandling, cb) { - if (typeof edgeHandling === "function" && typeof cb === "undefined") { - cb = edgeHandling; - edgeHandling = null; - } - - if (!edgeHandling) { - edgeHandling = this.constructor.EDGE_EXTEND; - } - - const newData = Buffer.from(this.bitmap.data); - const kRows = kernel.length; - const kCols = kernel[0].length; - const rowEnd = Math.floor(kRows / 2); - const colEnd = Math.floor(kCols / 2); - const rowIni = -rowEnd; - const colIni = -colEnd; - - let weight; - let rSum; - let gSum; - let bSum; - let ri; - let gi; - let bi; - let xi; - let yi; - let idxi; - - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - bSum = 0; - gSum = 0; - rSum = 0; - - for (let row = rowIni; row <= rowEnd; row++) { - for (let col = colIni; col <= colEnd; col++) { - xi = x + col; - yi = y + row; - weight = kernel[row + rowEnd][col + colEnd]; - idxi = this.getPixelIndex(xi, yi, edgeHandling); - - if (idxi === -1) { - bi = 0; - gi = 0; - ri = 0; - } else { - ri = this.bitmap.data[idxi + 0]; - gi = this.bitmap.data[idxi + 1]; - bi = this.bitmap.data[idxi + 2]; - } - - rSum += weight * ri; - gSum += weight * gi; - bSum += weight * bi; - } - } - - if (rSum < 0) { - rSum = 0; - } - - if (gSum < 0) { - gSum = 0; - } - - if (bSum < 0) { - bSum = 0; - } - - if (rSum > 255) { - rSum = 255; - } - - if (gSum > 255) { - gSum = 255; - } - - if (bSum > 255) { - bSum = 255; - } - - newData[idx + 0] = rSum; - newData[idx + 1] = gSum; - newData[idx + 2] = bSum; - } - ); - - this.bitmap.data = newData; - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Set the alpha channel on every pixel to fully opaque - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - opaque(cb) { - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - this.bitmap.data[idx + 3] = 255; - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Pixelates the image or a region - * @param {number} size the size of the pixels - * @param {number} x (optional) the x position of the region to pixelate - * @param {number} y (optional) the y position of the region to pixelate - * @param {number} w (optional) the width of the region to pixelate - * @param {number} h (optional) the height of the region to pixelate - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - pixelate(size, x, y, w, h, cb) { - if (typeof x === "function") { - cb = x; - h = null; - w = null; - y = null; - x = null; - } else { - if (typeof size !== "number") { - return throwError.call(this, "size must be a number", cb); - } - - if (isDef(x) && typeof x !== "number") { - return throwError.call(this, "x must be a number", cb); - } - - if (isDef(y) && typeof y !== "number") { - return throwError.call(this, "y must be a number", cb); - } - - if (isDef(w) && typeof w !== "number") { - return throwError.call(this, "w must be a number", cb); - } - - if (isDef(h) && typeof h !== "number") { - return throwError.call(this, "h must be a number", cb); - } - } - - const kernel = [ - [1 / 16, 2 / 16, 1 / 16], - [2 / 16, 4 / 16, 2 / 16], - [1 / 16, 2 / 16, 1 / 16], - ]; - - x = x || 0; - y = y || 0; - w = isDef(w) ? w : this.bitmap.width - x; - h = isDef(h) ? h : this.bitmap.height - y; - - const source = this.cloneQuiet(); - - this.scanQuiet(x, y, w, h, function (xx, yx, idx) { - xx = size * Math.floor(xx / size); - yx = size * Math.floor(yx / size); - - const value = applyKernel(source, kernel, xx, yx); - - this.bitmap.data[idx] = value[0]; - this.bitmap.data[idx + 1] = value[1]; - this.bitmap.data[idx + 2] = value[2]; - }); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Applies a convolution kernel to the image or a region - * @param {array} kernel the convolution kernel - * @param {number} x (optional) the x position of the region to apply convolution to - * @param {number} y (optional) the y position of the region to apply convolution to - * @param {number} w (optional) the width of the region to apply convolution to - * @param {number} h (optional) the height of the region to apply convolution to - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - convolute(kernel, x, y, w, h, cb) { - if (!Array.isArray(kernel)) - return throwError.call(this, "the kernel must be an array", cb); - - if (typeof x === "function") { - cb = x; - x = null; - y = null; - w = null; - h = null; - } else { - if (isDef(x) && typeof x !== "number") { - return throwError.call(this, "x must be a number", cb); - } - - if (isDef(y) && typeof y !== "number") { - return throwError.call(this, "y must be a number", cb); - } - - if (isDef(w) && typeof w !== "number") { - return throwError.call(this, "w must be a number", cb); - } - - if (isDef(h) && typeof h !== "number") { - return throwError.call(this, "h must be a number", cb); - } - } - - const ksize = (kernel.length - 1) / 2; - - x = isDef(x) ? x : ksize; - y = isDef(y) ? y : ksize; - w = isDef(w) ? w : this.bitmap.width - x; - h = isDef(h) ? h : this.bitmap.height - y; - - const source = this.cloneQuiet(); - - this.scanQuiet(x, y, w, h, function (xx, yx, idx) { - const value = applyKernel(source, kernel, xx, yx); - - this.bitmap.data[idx] = this.constructor.limit255(value[0]); - this.bitmap.data[idx + 1] = this.constructor.limit255(value[1]); - this.bitmap.data[idx + 2] = this.constructor.limit255(value[2]); - }); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Apply multiple color modification rules - * @param {array} actions list of color modification rules, in following format: { apply: '', params: [ ] } - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp }this for chaining of methods - */ - color: colorFn, - colour: colorFn, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-color/test/color.test.js b/WechatBot/node_modules/@jimp/plugin-color/test/color.test.js deleted file mode 100755 index 562808bf5..000000000 --- a/WechatBot/node_modules/@jimp/plugin-color/test/color.test.js +++ /dev/null @@ -1,49 +0,0 @@ -import { Jimp, donutJGD } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import color from "../src"; - -const jimp = configure({ plugins: [color] }, Jimp); - -describe("canvas color transformation", () => { - const redDonutJGD = donutJGD(0x00000000, 0xff000088, 0xff0000ff); - - it("can apply more than one color transformation", async () => { - const image = await jimp.read(redDonutJGD); - const newJGD = image - .color([ - { apply: "hue", params: [-180] }, - { apply: "lighten", params: [25] }, - ]) - .getJGDSync(); - - newJGD.should.be.sameJGD(donutJGD(0x40404000, 0x80ffff88, 0x80ffffff)); - }); - - it("lighten", async () => { - const image = await jimp.read(redDonutJGD); - - image - .color([{ apply: "lighten", params: [25] }]) - .getJGDSync() - .should.be.sameJGD(donutJGD(0x40404000, 0xff808088, 0xff8080ff)); - }); - - it("brighten", async () => { - const image = await jimp.read(redDonutJGD); - - image - .color([{ apply: "brighten", params: [25] }]) - .getJGDSync() - .should.be.sameJGD(donutJGD(0x40404000, 0xff404088, 0xff4040ff)); - }); - - it("spin hue", async () => { - const image = await jimp.read(redDonutJGD); - - image - .color([{ apply: "hue", params: [150] }]) - .getJGDSync() - .should.be.sameJGD(donutJGD(0x00000000, 0x00ff8088, 0x00ff80ff)); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-color/test/convolution.test.js b/WechatBot/node_modules/@jimp/plugin-color/test/convolution.test.js deleted file mode 100755 index 2bf66085b..000000000 --- a/WechatBot/node_modules/@jimp/plugin-color/test/convolution.test.js +++ /dev/null @@ -1,188 +0,0 @@ -import { Jimp, mkJGD, getTestDir } from "@jimp/test-utils"; -import configure from "@jimp/custom"; -import types from "@jimp/types"; - -import color from "../src"; - -const jimp = configure({ types: [types], plugins: [color] }, Jimp); - -describe("Convolution", function () { - this.timeout(15000); - - const imgs = [ - jimp.read( - mkJGD( - "22222222", - "22222222", - "22888822", - "22888822", - "22888822", - "22888822", - "22222222", - "22222222" - ) - ), - jimp.read( - mkJGD( - "88222222", - "88222222", - "22222222", - "22222222", - "22222222", - "22222222", - "22222222", - "22222222" - ) - ), - ]; - - let imgMid; - let imgTopLeft; // stores the Jimp instances of the JGD images above. - - before((done) => { - Promise.all(imgs) - .then((imgs) => { - imgMid = imgs[0]; - imgTopLeft = imgs[1]; - done(); - }) - .catch(done); - }); - - const sharpM = [ - [-1, -1, 0], - [-1, 1, 1], - [0, 1, 1], - ]; - - it("3x3 sharp matrix on EDGE_EXTEND", (done) => { - imgMid - .clone() - .convolution(sharpM) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "22222222", - "28EEE822", - "2EFFF802", - "2EF88002", - "2EF88002", - "28800002", - "22000002", - "22222222" - ), - "Mid light block" - ); - imgTopLeft - .clone() - .convolution(sharpM) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "80022222", - "00022222", - "00022222", - "22222222", - "22222222", - "22222222", - "22222222", - "22222222" - ), - "Top left light block" - ); - done(); - }); - - it("3x3 sharp matrix on EDGE_WRAP", (done) => { - imgMid - .clone() - .convolution(sharpM, jimp.EDGE_WRAP) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "66666666", - "28EEE822", - "2EFFF802", - "2EF88002", - "2EF88002", - "28800002", - "22000002", - "22222222" - ), - "Mid light block" - ); - imgTopLeft - .clone() - .convolution(sharpM, jimp.EDGE_WRAP) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "FC06666F", - "80022228", - "00022222", - "22222222", - "22222222", - "22222222", - "22222222", - "E8222228" - ), - "Top left light block" - ); - done(); - }); - - it("3x3 sharp matrix on EDGE_CROP", (done) => { - imgMid - .clone() - .convolution(sharpM, jimp.EDGE_CROP) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "86666662", - "68EEE820", - "6EFFF800", - "6EF88000", - "6EF88000", - "68800000", - "62000000", - "20000000" - ), - "Mid light block" - ); - imgTopLeft - .clone() - .convolution(sharpM, jimp.EDGE_CROP) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "FC066662", - "C0022220", - "00022220", - "62222220", - "62222220", - "62222220", - "62222220", - "20000000" - ), - "Top left light block" - ); - done(); - }); - - it("new pixel value is greater than 255", async () => { - const expectedImg = await jimp.read( - getTestDir(__dirname) + "/images/qr-convoluted.png" - ); - const image = await jimp.read(getTestDir(__dirname) + "/images/qr.jpg"); - - image - .convolution([ - [0, 0, 0, 0, 0], - [0, 1, 1, 1, 0], - [0, 1, 0, 1, 0], - [0, 1, 1, 1, 0], - [0, 0, 0, 0, 0], - ]) - .bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-color/test/images/qr-convoluted.png b/WechatBot/node_modules/@jimp/plugin-color/test/images/qr-convoluted.png deleted file mode 100644 index 9b42e016a..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-color/test/images/qr-convoluted.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-color/test/images/qr.jpg b/WechatBot/node_modules/@jimp/plugin-color/test/images/qr.jpg deleted file mode 100644 index b2cc618b2..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-color/test/images/qr.jpg and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-contain/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-contain/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-contain/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-contain/LICENSE b/WechatBot/node_modules/@jimp/plugin-contain/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-contain/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-contain/README.md b/WechatBot/node_modules/@jimp/plugin-contain/README.md deleted file mode 100644 index 187cdc754..000000000 --- a/WechatBot/node_modules/@jimp/plugin-contain/README.md +++ /dev/null @@ -1,59 +0,0 @@ -
- -

@jimp/plugin-contain

-

Contain an image within a height and width.

-
- -Scale the image to the given width and height keeping the aspect ratio. Some parts of the image may be letter boxed. - -## Usage - -- @param {number} w the width to resize the image to -- @param {number} h the height to resize the image to -- @param {number} alignBits (optional) A bitmask for horizontal and vertical alignment -- @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.contain(150, 100); -} - -main(); -``` - -### Align modes - -The following constants can be passed to `image.contain`: - -```js -Jimp.HORIZONTAL_ALIGN_LEFT; -Jimp.HORIZONTAL_ALIGN_CENTER; -Jimp.HORIZONTAL_ALIGN_RIGHT; - -Jimp.VERTICAL_ALIGN_TOP; -Jimp.VERTICAL_ALIGN_MIDDLE; -Jimp.VERTICAL_ALIGN_BOTTOM; -``` - -For example: - -```js -image.contain(250, 250, Jimp.HORIZONTAL_ALIGN_LEFT | Jimp.VERTICAL_ALIGN_TOP); -image.contain( - 250, - 250, - Jimp.HORIZONTAL_ALIGN_RIGHT | Jimp.VERTICAL_ALIGN_BOTTOM -); -``` - -Default align mode for `image.contain` is: - -```js -Jimp.HORIZONTAL_ALIGN_CENTER | Jimp.VERTICAL_ALIGN_MIDDLE; -``` diff --git a/WechatBot/node_modules/@jimp/plugin-contain/dist/index.js b/WechatBot/node_modules/@jimp/plugin-contain/dist/index.js deleted file mode 100755 index 77b211ded..000000000 --- a/WechatBot/node_modules/@jimp/plugin-contain/dist/index.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Scale the image to the given width and height keeping the aspect ratio. Some parts of the image may be letter boxed. - * @param {number} w the width to resize the image to - * @param {number} h the height to resize the image to - * @param {number} alignBits (optional) A bitmask for horizontal and vertical alignment - * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -var _default = function _default() { - return { - contain: function contain(w, h, alignBits, mode, cb) { - if (typeof w !== "number" || typeof h !== "number") { - return _utils.throwError.call(this, "w and h must be numbers", cb); - } // permit any sort of optional parameters combination - - - if (typeof alignBits === "string") { - if (typeof mode === "function" && typeof cb === "undefined") cb = mode; - mode = alignBits; - alignBits = null; - } - - if (typeof alignBits === "function") { - if (typeof cb === "undefined") cb = alignBits; - mode = null; - alignBits = null; - } - - if (typeof mode === "function" && typeof cb === "undefined") { - cb = mode; - mode = null; - } - - alignBits = alignBits || this.constructor.HORIZONTAL_ALIGN_CENTER | this.constructor.VERTICAL_ALIGN_MIDDLE; - var hbits = alignBits & (1 << 3) - 1; - var vbits = alignBits >> 3; // check if more flags than one is in the bit sets - - if (!(hbits !== 0 && !(hbits & hbits - 1) || vbits !== 0 && !(vbits & vbits - 1))) { - return _utils.throwError.call(this, "only use one flag per alignment direction", cb); - } - - var alignH = hbits >> 1; // 0, 1, 2 - - var alignV = vbits >> 1; // 0, 1, 2 - - var f = w / h > this.bitmap.width / this.bitmap.height ? h / this.bitmap.height : w / this.bitmap.width; - var c = this.cloneQuiet().scale(f, mode); - this.resize(w, h, mode); - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - this.bitmap.data.writeUInt32BE(this._background, idx); - }); - this.blit(c, (this.bitmap.width - c.bitmap.width) / 2 * alignH, (this.bitmap.height - c.bitmap.height) / 2 * alignV); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-contain/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-contain/dist/index.js.map deleted file mode 100644 index e534381f0..000000000 --- a/WechatBot/node_modules/@jimp/plugin-contain/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["contain","w","h","alignBits","mode","cb","throwError","call","constructor","HORIZONTAL_ALIGN_CENTER","VERTICAL_ALIGN_MIDDLE","hbits","vbits","alignH","alignV","f","bitmap","width","height","c","cloneQuiet","scale","resize","scanQuiet","x","y","idx","data","writeUInt32BE","_background","blit"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;;;;eASe;AAAA,SAAO;AACpBA,IAAAA,OADoB,mBACZC,CADY,EACTC,CADS,EACNC,SADM,EACKC,IADL,EACWC,EADX,EACe;AACjC,UAAI,OAAOJ,CAAP,KAAa,QAAb,IAAyB,OAAOC,CAAP,KAAa,QAA1C,EAAoD;AAClD,eAAOI,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,yBAAtB,EAAiDF,EAAjD,CAAP;AACD,OAHgC,CAKjC;;;AACA,UA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C,KAAZ,GAAoB,KAAKD,MAAL,CAAYE,MAAxC,GACIhB,CAAC,GAAG,KAAKc,MAAL,CAAYE,MADpB,GAEIjB,CAAC,GAAG,KAAKe,MAAL,CAAYC,KAHtB;AAIA,UAAME,CAAC,GAAG,KAAKC,UAAL,GAAkBC,KAAlB,CAAwBN,CAAxB,EAA2BX,IAA3B,CAAV;AAEA,WAAKkB,MAAL,CAAYrB,CAAZ,EAAeC,CAAf,EAAkBE,IAAlB;AACA,WAAKmB,SAAL,CACE,CADF,EAEE,CAFF,EAGE,KAAKP,MAAL,CAAYC,KAHd,EAIE,KAAKD,MAAL,CAAYE,MAJd,EAKE,UAAUM,CAAV,EAAaC,CAAb,EAAgBC,GAAhB,EAAqB;AACnB,aAAKV,MAAL,CAAYW,IAAZ,CAAiBC,aAAjB,CAA+B,KAAKC,WAApC,EAAiDH,GAAjD;AACD,OAPH;AASA,WAAKI,IAAL,CACEX,CADF,EAEG,CAAC,KAAKH,MAAL,CAAYC,KAAZ,GAAoBE,CAAC,CAACH,MAAF,CAASC,KAA9B,IAAuC,CAAxC,GAA6CJ,MAF/C,EAGG,CAAC,KAAKG,MAAL,CAAYE,MAAZ,GAAqBC,CAAC,CAACH,MAAF,CAASE,MAA/B,IAAyC,CAA1C,GAA+CJ,MAHjD;;AAMA,UAAI,0BAAcT,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AA3EmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern, throwError } from \"@jimp/utils\";\n\n/**\n * Scale the image to the given width and height keeping the aspect ratio. Some parts of the image may be letter boxed.\n * @param {number} w the width to resize the image to\n * @param {number} h the height to resize the image to\n * @param {number} alignBits (optional) A bitmask for horizontal and vertical alignment\n * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER)\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default () => ({\n contain(w, h, alignBits, mode, cb) {\n if (typeof w !== \"number\" || typeof h !== \"number\") {\n return throwError.call(this, \"w and h must be numbers\", cb);\n }\n\n // permit any sort of optional parameters combination\n if (typeof alignBits === \"string\") {\n if (typeof mode === \"function\" && typeof cb === \"undefined\") cb = mode;\n mode = alignBits;\n alignBits = null;\n }\n\n if (typeof alignBits === \"function\") {\n if (typeof cb === \"undefined\") cb = alignBits;\n mode = null;\n alignBits = null;\n }\n\n if (typeof mode === \"function\" && typeof cb === \"undefined\") {\n cb = mode;\n mode = null;\n }\n\n alignBits =\n alignBits ||\n this.constructor.HORIZONTAL_ALIGN_CENTER |\n this.constructor.VERTICAL_ALIGN_MIDDLE;\n const hbits = alignBits & ((1 << 3) - 1);\n const vbits = alignBits >> 3;\n\n // check if more flags than one is in the bit sets\n if (\n !(\n (hbits !== 0 && !(hbits & (hbits - 1))) ||\n (vbits !== 0 && !(vbits & (vbits - 1)))\n )\n ) {\n return throwError.call(\n this,\n \"only use one flag per alignment direction\",\n cb\n );\n }\n\n const alignH = hbits >> 1; // 0, 1, 2\n const alignV = vbits >> 1; // 0, 1, 2\n\n const f =\n w / h > this.bitmap.width / this.bitmap.height\n ? h / this.bitmap.height\n : w / this.bitmap.width;\n const c = this.cloneQuiet().scale(f, mode);\n\n this.resize(w, h, mode);\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n this.bitmap.data.writeUInt32BE(this._background, idx);\n }\n );\n this.blit(\n c,\n ((this.bitmap.width - c.bitmap.width) / 2) * alignH,\n ((this.bitmap.height - c.bitmap.height) / 2) * alignV\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-contain/index.d.ts b/WechatBot/node_modules/@jimp/plugin-contain/index.d.ts deleted file mode 100644 index 8c3306d3b..000000000 --- a/WechatBot/node_modules/@jimp/plugin-contain/index.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Contain { - contain(w: number, h: number, cb?: ImageCallback): this; - contain(w: number, h: number, mode?: string, cb?: ImageCallback): this; - contain( - w: number, - h: number, - alignBits?: number, - cb?: ImageCallback - ): this; - contain( - w: number, - h: number, - alignBits?: number, - mode?: string, - cb?: ImageCallback - ): this; -} - -export default function (): Contain; diff --git a/WechatBot/node_modules/@jimp/plugin-contain/package.json b/WechatBot/node_modules/@jimp/plugin-contain/package.json deleted file mode 100644 index 3a91ace73..000000000 --- a/WechatBot/node_modules/@jimp/plugin-contain/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@jimp/plugin-contain", - "version": "0.16.13", - "description": "contain an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5", - "@jimp/plugin-blit": ">=0.3.5", - "@jimp/plugin-resize": ">=0.3.5", - "@jimp/plugin-scale": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/plugin-blit": "^0.16.13", - "@jimp/plugin-resize": "^0.16.13", - "@jimp/plugin-scale": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-contain/src/index.js b/WechatBot/node_modules/@jimp/plugin-contain/src/index.js deleted file mode 100755 index 1736343c9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-contain/src/index.js +++ /dev/null @@ -1,88 +0,0 @@ -import { isNodePattern, throwError } from "@jimp/utils"; - -/** - * Scale the image to the given width and height keeping the aspect ratio. Some parts of the image may be letter boxed. - * @param {number} w the width to resize the image to - * @param {number} h the height to resize the image to - * @param {number} alignBits (optional) A bitmask for horizontal and vertical alignment - * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -export default () => ({ - contain(w, h, alignBits, mode, cb) { - if (typeof w !== "number" || typeof h !== "number") { - return throwError.call(this, "w and h must be numbers", cb); - } - - // permit any sort of optional parameters combination - if (typeof alignBits === "string") { - if (typeof mode === "function" && typeof cb === "undefined") cb = mode; - mode = alignBits; - alignBits = null; - } - - if (typeof alignBits === "function") { - if (typeof cb === "undefined") cb = alignBits; - mode = null; - alignBits = null; - } - - if (typeof mode === "function" && typeof cb === "undefined") { - cb = mode; - mode = null; - } - - alignBits = - alignBits || - this.constructor.HORIZONTAL_ALIGN_CENTER | - this.constructor.VERTICAL_ALIGN_MIDDLE; - const hbits = alignBits & ((1 << 3) - 1); - const vbits = alignBits >> 3; - - // check if more flags than one is in the bit sets - if ( - !( - (hbits !== 0 && !(hbits & (hbits - 1))) || - (vbits !== 0 && !(vbits & (vbits - 1))) - ) - ) { - return throwError.call( - this, - "only use one flag per alignment direction", - cb - ); - } - - const alignH = hbits >> 1; // 0, 1, 2 - const alignV = vbits >> 1; // 0, 1, 2 - - const f = - w / h > this.bitmap.width / this.bitmap.height - ? h / this.bitmap.height - : w / this.bitmap.width; - const c = this.cloneQuiet().scale(f, mode); - - this.resize(w, h, mode); - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - this.bitmap.data.writeUInt32BE(this._background, idx); - } - ); - this.blit( - c, - ((this.bitmap.width - c.bitmap.width) / 2) * alignH, - ((this.bitmap.height - c.bitmap.height) / 2) * alignV - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-contain/test/contain.test.js b/WechatBot/node_modules/@jimp/plugin-contain/test/contain.test.js deleted file mode 100755 index 19739a277..000000000 --- a/WechatBot/node_modules/@jimp/plugin-contain/test/contain.test.js +++ /dev/null @@ -1,131 +0,0 @@ -import { Jimp, mkJGD, hasOwnProp } from "@jimp/test-utils"; -import configure from "@jimp/custom"; -import blit from "@jimp/plugin-blit"; -import resize from "@jimp/plugin-resize"; -import scale from "@jimp/plugin-scale"; - -import contain from "../src"; - -const jimp = configure({ plugins: [scale, resize, blit, contain] }, Jimp); - -describe("All align combinations for contain", () => { - const verticalJGD = mkJGD( - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆" - ); - - const horizontalJGD = mkJGD( - "▴▴▴▴▴▴▸▸▸▸▸▸", - "▴▴▴▴▴▴▸▸▸▸▸▸", - "▴▴▴▴▴▴▸▸▸▸▸▸", - "▴▴▴▴▴▴▸▸▸▸▸▸", - "▾▾▾▾▾▾◆◆◆◆◆◆", - "▾▾▾▾▾▾◆◆◆◆◆◆", - "▾▾▾▾▾▾◆◆◆◆◆◆", - "▾▾▾▾▾▾◆◆◆◆◆◆" - ); - - let vertical; - let horizontal; // stores the Jimp instances of the JGD images above. - - before((done) => { - const img1 = jimp.read(verticalJGD); - const img2 = jimp.read(horizontalJGD); - Promise.all([img1, img2]) - .then((images) => { - vertical = images[0]; - horizontal = images[1]; - done(); - }) - .catch(done); - }); - - const tests = {}; // Stores the expected result for each alignment combination. - tests["LEFT TOP"] = { - contain: { - verti: mkJGD("▴▴▸▸ ", "▴▴▸▸ ", "▴▴▸▸ ", "▾▾◆◆ ", "▾▾◆◆ ", "▾▾◆◆ "), - horiz: mkJGD("▴▴▴▸▸▸", "▴▴▴▸▸▸", "▾▾▾◆◆◆", "▾▾▾◆◆◆", " ", " "), - }, - }; - tests["CENTER TOP"] = { - contain: { - verti: mkJGD(" ▴▴▸▸ ", " ▴▴▸▸ ", " ▴▴▸▸ ", " ▾▾◆◆ ", " ▾▾◆◆ ", " ▾▾◆◆ "), - horiz: mkJGD("▴▴▴▸▸▸", "▴▴▴▸▸▸", "▾▾▾◆◆◆", "▾▾▾◆◆◆", " ", " "), - }, - }; - tests["RIGHT TOP"] = { - contain: { - verti: mkJGD(" ▴▴▸▸", " ▴▴▸▸", " ▴▴▸▸", " ▾▾◆◆", " ▾▾◆◆", " ▾▾◆◆"), - horiz: mkJGD("▴▴▴▸▸▸", "▴▴▴▸▸▸", "▾▾▾◆◆◆", "▾▾▾◆◆◆", " ", " "), - }, - }; - - tests["LEFT MIDDLE"] = { - contain: { - verti: mkJGD("▴▴▸▸ ", "▴▴▸▸ ", "▴▴▸▸ ", "▾▾◆◆ ", "▾▾◆◆ ", "▾▾◆◆ "), - horiz: mkJGD(" ", "▴▴▴▸▸▸", "▴▴▴▸▸▸", "▾▾▾◆◆◆", "▾▾▾◆◆◆", " "), - }, - }; - tests["CENTER MIDDLE"] = { - contain: { - verti: mkJGD(" ▴▴▸▸ ", " ▴▴▸▸ ", " ▴▴▸▸ ", " ▾▾◆◆ ", " ▾▾◆◆ ", " ▾▾◆◆ "), - horiz: mkJGD(" ", "▴▴▴▸▸▸", "▴▴▴▸▸▸", "▾▾▾◆◆◆", "▾▾▾◆◆◆", " "), - }, - }; - tests["RIGHT MIDDLE"] = { - contain: { - verti: mkJGD(" ▴▴▸▸", " ▴▴▸▸", " ▴▴▸▸", " ▾▾◆◆", " ▾▾◆◆", " ▾▾◆◆"), - horiz: mkJGD(" ", "▴▴▴▸▸▸", "▴▴▴▸▸▸", "▾▾▾◆◆◆", "▾▾▾◆◆◆", " "), - }, - }; - - tests["LEFT BOTTOM"] = { - contain: { - verti: mkJGD("▴▴▸▸ ", "▴▴▸▸ ", "▴▴▸▸ ", "▾▾◆◆ ", "▾▾◆◆ ", "▾▾◆◆ "), - horiz: mkJGD(" ", " ", "▴▴▴▸▸▸", "▴▴▴▸▸▸", "▾▾▾◆◆◆", "▾▾▾◆◆◆"), - }, - }; - tests["CENTER BOTTOM"] = { - contain: { - verti: mkJGD(" ▴▴▸▸ ", " ▴▴▸▸ ", " ▴▴▸▸ ", " ▾▾◆◆ ", " ▾▾◆◆ ", " ▾▾◆◆ "), - horiz: mkJGD(" ", " ", "▴▴▴▸▸▸", "▴▴▴▸▸▸", "▾▾▾◆◆◆", "▾▾▾◆◆◆"), - }, - }; - tests["RIGHT BOTTOM"] = { - contain: { - verti: mkJGD(" ▴▴▸▸", " ▴▴▸▸", " ▴▴▸▸", " ▾▾◆◆", " ▾▾◆◆", " ▾▾◆◆"), - horiz: mkJGD(" ", " ", "▴▴▴▸▸▸", "▴▴▴▸▸▸", "▾▾▾◆◆◆", "▾▾▾◆◆◆"), - }, - }; - - function runAlignTest(align) { - const jgdContainV = tests[align].contain.verti; - const jgdContainH = tests[align].contain.horiz; - let a = align.split(" "); - a = Jimp["HORIZONTAL_ALIGN_" + a[0]] | Jimp["VERTICAL_ALIGN_" + a[1]]; - it("contain aligned to " + align, () => { - vertical - .clone() - .contain(6, 6, a) - .getJGDSync() - .should.be.sameJGD(jgdContainV, "Vertical image"); - horizontal - .clone() - .contain(6, 6, a) - .getJGDSync() - .should.be.sameJGD(jgdContainH, "Horizontal image"); - }); - } - - for (const align in tests) if (hasOwnProp(tests, align)) runAlignTest(align); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-cover/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-cover/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-cover/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-cover/LICENSE b/WechatBot/node_modules/@jimp/plugin-cover/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-cover/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-cover/README.md b/WechatBot/node_modules/@jimp/plugin-cover/README.md deleted file mode 100644 index 8313aa2c2..000000000 --- a/WechatBot/node_modules/@jimp/plugin-cover/README.md +++ /dev/null @@ -1,54 +0,0 @@ -
- -

@jimp/plugin-cover

-
- -Scale the image so the given width and height keeping the aspect ratio. Some parts of the image may be clipped. - -## Usage - -- @param {number} w the width to resize the image to -- @param {number} h the height to resize the image to -- @param {number} alignBits (optional) A bitmask for horizontal and vertical alignment -- @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.cover(150, 100); -} - -main(); -``` - -### Align modes - -The following constants can be passed to `image.cover`: - -```js -Jimp.HORIZONTAL_ALIGN_LEFT; -Jimp.HORIZONTAL_ALIGN_CENTER; -Jimp.HORIZONTAL_ALIGN_RIGHT; - -Jimp.VERTICAL_ALIGN_TOP; -Jimp.VERTICAL_ALIGN_MIDDLE; -Jimp.VERTICAL_ALIGN_BOTTOM; -``` - -For example: - -```js -image.cover(250, 250, Jimp.HORIZONTAL_ALIGN_LEFT | Jimp.VERTICAL_ALIGN_TOP); -image.cover(250, 250, Jimp.HORIZONTAL_ALIGN_RIGHT | Jimp.VERTICAL_ALIGN_BOTTOM); -``` - -Default align mode for `image.cover` is: - -```js -Jimp.HORIZONTAL_ALIGN_CENTER | Jimp.VERTICAL_ALIGN_MIDDLE; -``` diff --git a/WechatBot/node_modules/@jimp/plugin-cover/dist/index.js b/WechatBot/node_modules/@jimp/plugin-cover/dist/index.js deleted file mode 100755 index 9dec03819..000000000 --- a/WechatBot/node_modules/@jimp/plugin-cover/dist/index.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Scale the image so the given width and height keeping the aspect ratio. Some parts of the image may be clipped. - * @param {number} w the width to resize the image to - * @param {number} h the height to resize the image to - * @param {number} alignBits (optional) A bitmask for horizontal and vertical alignment - * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -var _default = function _default() { - return { - cover: function cover(w, h, alignBits, mode, cb) { - if (typeof w !== "number" || typeof h !== "number") { - return _utils.throwError.call(this, "w and h must be numbers", cb); - } - - if (alignBits && typeof alignBits === "function" && typeof cb === "undefined") { - cb = alignBits; - alignBits = null; - mode = null; - } else if (typeof mode === "function" && typeof cb === "undefined") { - cb = mode; - mode = null; - } - - alignBits = alignBits || this.constructor.HORIZONTAL_ALIGN_CENTER | this.constructor.VERTICAL_ALIGN_MIDDLE; - var hbits = alignBits & (1 << 3) - 1; - var vbits = alignBits >> 3; // check if more flags than one is in the bit sets - - if (!(hbits !== 0 && !(hbits & hbits - 1) || vbits !== 0 && !(vbits & vbits - 1))) return _utils.throwError.call(this, "only use one flag per alignment direction", cb); - var alignH = hbits >> 1; // 0, 1, 2 - - var alignV = vbits >> 1; // 0, 1, 2 - - var f = w / h > this.bitmap.width / this.bitmap.height ? w / this.bitmap.width : h / this.bitmap.height; - this.scale(f, mode); - this.crop((this.bitmap.width - w) / 2 * alignH, (this.bitmap.height - h) / 2 * alignV, w, h); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-cover/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-cover/dist/index.js.map deleted file mode 100644 index e0713d42d..000000000 --- a/WechatBot/node_modules/@jimp/plugin-cover/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["cover","w","h","alignBits","mode","cb","throwError","call","constructor","HORIZONTAL_ALIGN_CENTER","VERTICAL_ALIGN_MIDDLE","hbits","vbits","alignH","alignV","f","bitmap","width","height","scale","crop"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;;;;eASe;AAAA,SAAO;AACpBA,IAAAA,KADoB,iBACdC,CADc,EACXC,CADW,EACRC,SADQ,EACGC,IADH,EACSC,EADT,EACa;AAC/B,UAAI,OAAOJ,CAAP,KAAa,QAAb,IAAyB,OAAOC,CAAP,KAAa,QAA1C,EAAoD;AAClD,eAAOI,kBAAWC,IAAX,CAAgB,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,CAAX,EAAcX,IAAd;AACA,WAAKgB,IAAL,CACG,CAAC,KAAKJ,MAAL,CAAYC,KAAZ,GAAoBhB,CAArB,IAA0B,CAA3B,GAAgCY,MADlC,EAEG,CAAC,KAAKG,MAAL,CAAYE,MAAZ,GAAqBhB,CAAtB,IAA2B,CAA5B,GAAiCY,MAFnC,EAGEb,CAHF,EAIEC,CAJF;;AAOA,UAAI,0BAAcG,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AA3DmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern, throwError } from \"@jimp/utils\";\n\n/**\n * Scale the image so the given width and height keeping the aspect ratio. Some parts of the image may be clipped.\n * @param {number} w the width to resize the image to\n * @param {number} h the height to resize the image to\n * @param {number} alignBits (optional) A bitmask for horizontal and vertical alignment\n * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER)\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default () => ({\n cover(w, h, alignBits, mode, cb) {\n if (typeof w !== \"number\" || typeof h !== \"number\") {\n return throwError.call(this, \"w and h must be numbers\", cb);\n }\n\n if (\n alignBits &&\n typeof alignBits === \"function\" &&\n typeof cb === \"undefined\"\n ) {\n cb = alignBits;\n alignBits = null;\n mode = null;\n } else if (typeof mode === \"function\" && typeof cb === \"undefined\") {\n cb = mode;\n mode = null;\n }\n\n alignBits =\n alignBits ||\n this.constructor.HORIZONTAL_ALIGN_CENTER |\n this.constructor.VERTICAL_ALIGN_MIDDLE;\n const hbits = alignBits & ((1 << 3) - 1);\n const vbits = alignBits >> 3;\n\n // check if more flags than one is in the bit sets\n if (\n !(\n (hbits !== 0 && !(hbits & (hbits - 1))) ||\n (vbits !== 0 && !(vbits & (vbits - 1)))\n )\n )\n return throwError.call(\n this,\n \"only use one flag per alignment direction\",\n cb\n );\n\n const alignH = hbits >> 1; // 0, 1, 2\n const alignV = vbits >> 1; // 0, 1, 2\n\n const f =\n w / h > this.bitmap.width / this.bitmap.height\n ? w / this.bitmap.width\n : h / this.bitmap.height;\n this.scale(f, mode);\n this.crop(\n ((this.bitmap.width - w) / 2) * alignH,\n ((this.bitmap.height - h) / 2) * alignV,\n w,\n h\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-cover/index.d.ts b/WechatBot/node_modules/@jimp/plugin-cover/index.d.ts deleted file mode 100644 index 6a9e5d1cc..000000000 --- a/WechatBot/node_modules/@jimp/plugin-cover/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Cover { - cover(w: number, h: number, cb?: ImageCallback): this; - cover( - w: number, - h: number, - alignBits?: number, - cb?: ImageCallback - ): this; - cover( - w: number, - h: number, - alignBits?: number, - mode?: string, - cb?: ImageCallback - ): this; -} - -export default function (): Cover; diff --git a/WechatBot/node_modules/@jimp/plugin-cover/package.json b/WechatBot/node_modules/@jimp/plugin-cover/package.json deleted file mode 100644 index 0e7a6a6d1..000000000 --- a/WechatBot/node_modules/@jimp/plugin-cover/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@jimp/plugin-cover", - "version": "0.16.13", - "description": "cover an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5", - "@jimp/plugin-crop": ">=0.3.5", - "@jimp/plugin-resize": ">=0.3.5", - "@jimp/plugin-scale": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/plugin-crop": "^0.16.13", - "@jimp/plugin-resize": "^0.16.13", - "@jimp/plugin-scale": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-cover/src/index.js b/WechatBot/node_modules/@jimp/plugin-cover/src/index.js deleted file mode 100755 index 37a0f1b78..000000000 --- a/WechatBot/node_modules/@jimp/plugin-cover/src/index.js +++ /dev/null @@ -1,72 +0,0 @@ -import { isNodePattern, throwError } from "@jimp/utils"; - -/** - * Scale the image so the given width and height keeping the aspect ratio. Some parts of the image may be clipped. - * @param {number} w the width to resize the image to - * @param {number} h the height to resize the image to - * @param {number} alignBits (optional) A bitmask for horizontal and vertical alignment - * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -export default () => ({ - cover(w, h, alignBits, mode, cb) { - if (typeof w !== "number" || typeof h !== "number") { - return throwError.call(this, "w and h must be numbers", cb); - } - - if ( - alignBits && - typeof alignBits === "function" && - typeof cb === "undefined" - ) { - cb = alignBits; - alignBits = null; - mode = null; - } else if (typeof mode === "function" && typeof cb === "undefined") { - cb = mode; - mode = null; - } - - alignBits = - alignBits || - this.constructor.HORIZONTAL_ALIGN_CENTER | - this.constructor.VERTICAL_ALIGN_MIDDLE; - const hbits = alignBits & ((1 << 3) - 1); - const vbits = alignBits >> 3; - - // check if more flags than one is in the bit sets - if ( - !( - (hbits !== 0 && !(hbits & (hbits - 1))) || - (vbits !== 0 && !(vbits & (vbits - 1))) - ) - ) - return throwError.call( - this, - "only use one flag per alignment direction", - cb - ); - - const alignH = hbits >> 1; // 0, 1, 2 - const alignV = vbits >> 1; // 0, 1, 2 - - const f = - w / h > this.bitmap.width / this.bitmap.height - ? w / this.bitmap.width - : h / this.bitmap.height; - this.scale(f, mode); - this.crop( - ((this.bitmap.width - w) / 2) * alignH, - ((this.bitmap.height - h) / 2) * alignV, - w, - h - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-cover/test/cover.test.js b/WechatBot/node_modules/@jimp/plugin-cover/test/cover.test.js deleted file mode 100755 index 121fa4421..000000000 --- a/WechatBot/node_modules/@jimp/plugin-cover/test/cover.test.js +++ /dev/null @@ -1,131 +0,0 @@ -import { Jimp, mkJGD, hasOwnProp } from "@jimp/test-utils"; -import configure from "@jimp/custom"; -import crop from "@jimp/plugin-crop"; -import scale from "@jimp/plugin-scale"; -import resize from "@jimp/plugin-resize"; - -import cover from "../src"; - -const jimp = configure({ plugins: [resize, scale, crop, cover] }, Jimp); - -describe("All align combinations for cover", () => { - const verticalJGD = mkJGD( - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▴▴▴▴▸▸▸▸", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆", - "▾▾▾▾◆◆◆◆" - ); - - const horizontalJGD = mkJGD( - "▴▴▴▴▴▴▸▸▸▸▸▸", - "▴▴▴▴▴▴▸▸▸▸▸▸", - "▴▴▴▴▴▴▸▸▸▸▸▸", - "▴▴▴▴▴▴▸▸▸▸▸▸", - "▾▾▾▾▾▾◆◆◆◆◆◆", - "▾▾▾▾▾▾◆◆◆◆◆◆", - "▾▾▾▾▾▾◆◆◆◆◆◆", - "▾▾▾▾▾▾◆◆◆◆◆◆" - ); - - let vertical; - let horizontal; // stores the Jimp instances of the JGD images above. - - before((done) => { - const img1 = jimp.read(verticalJGD); - const img2 = jimp.read(horizontalJGD); - Promise.all([img1, img2]) - .then((images) => { - vertical = images[0]; - horizontal = images[1]; - done(); - }) - .catch(done); - }); - - const tests = {}; // Stores the expected result for each alignment combination. - tests["LEFT TOP"] = { - cover: { - verti: mkJGD("▴▴▸▸", "▴▴▸▸", "▴▴▸▸", "▾▾◆◆"), - horiz: mkJGD("▴▴▴▸", "▴▴▴▸", "▾▾▾◆", "▾▾▾◆"), - }, - }; - tests["CENTER TOP"] = { - cover: { - verti: mkJGD("▴▴▸▸", "▴▴▸▸", "▴▴▸▸", "▾▾◆◆"), - horiz: mkJGD("▴▴▸▸", "▴▴▸▸", "▾▾◆◆", "▾▾◆◆"), - }, - }; - tests["RIGHT TOP"] = { - cover: { - verti: mkJGD("▴▴▸▸", "▴▴▸▸", "▴▴▸▸", "▾▾◆◆"), - horiz: mkJGD("▴▸▸▸", "▴▸▸▸", "▾◆◆◆", "▾◆◆◆"), - }, - }; - - tests["LEFT MIDDLE"] = { - cover: { - verti: mkJGD("▴▴▸▸", "▴▴▸▸", "▾▾◆◆", "▾▾◆◆"), - horiz: mkJGD("▴▴▴▸", "▴▴▴▸", "▾▾▾◆", "▾▾▾◆"), - }, - }; - tests["CENTER MIDDLE"] = { - cover: { - verti: mkJGD("▴▴▸▸", "▴▴▸▸", "▾▾◆◆", "▾▾◆◆"), - horiz: mkJGD("▴▴▸▸", "▴▴▸▸", "▾▾◆◆", "▾▾◆◆"), - }, - }; - tests["RIGHT MIDDLE"] = { - cover: { - verti: mkJGD("▴▴▸▸", "▴▴▸▸", "▾▾◆◆", "▾▾◆◆"), - horiz: mkJGD("▴▸▸▸", "▴▸▸▸", "▾◆◆◆", "▾◆◆◆"), - }, - }; - - tests["LEFT BOTTOM"] = { - cover: { - verti: mkJGD("▴▴▸▸", "▾▾◆◆", "▾▾◆◆", "▾▾◆◆"), - horiz: mkJGD("▴▴▴▸", "▴▴▴▸", "▾▾▾◆", "▾▾▾◆"), - }, - }; - tests["CENTER BOTTOM"] = { - cover: { - verti: mkJGD("▴▴▸▸", "▾▾◆◆", "▾▾◆◆", "▾▾◆◆"), - horiz: mkJGD("▴▴▸▸", "▴▴▸▸", "▾▾◆◆", "▾▾◆◆"), - }, - }; - tests["RIGHT BOTTOM"] = { - cover: { - verti: mkJGD("▴▴▸▸", "▾▾◆◆", "▾▾◆◆", "▾▾◆◆"), - horiz: mkJGD("▴▸▸▸", "▴▸▸▸", "▾◆◆◆", "▾◆◆◆"), - }, - }; - - function runAlignTest(align) { - const jgdCoverV = tests[align].cover.verti; - const jgdCoverH = tests[align].cover.horiz; - let a = align.split(" "); - a = Jimp["HORIZONTAL_ALIGN_" + a[0]] | Jimp["VERTICAL_ALIGN_" + a[1]]; - it("cover aligned to " + align, () => { - vertical - .clone() - .cover(4, 4, a) - .getJGDSync() - .should.be.sameJGD(jgdCoverV, "Vertical image"); - horizontal - .clone() - .cover(4, 4, a) - .getJGDSync() - .should.be.sameJGD(jgdCoverH, "Horizontal image"); - }); - } - - for (const align in tests) if (hasOwnProp(tests, align)) runAlignTest(align); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-crop/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-crop/CHANGELOG.md deleted file mode 100644 index bfa0db7b8..000000000 --- a/WechatBot/node_modules/@jimp/plugin-crop/CHANGELOG.md +++ /dev/null @@ -1,52 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### 🐛 Bug Fix - -- fixed plugin-crop full width slices math [#1073](https://github.com/jimp-dev/jimp/pull/1073) ([@endreszabo](https://github.com/endreszabo)) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Endre Szabo ([@endreszabo](https://github.com/endreszabo)) - ---- - -# v0.16.0 (Sat Aug 08 2020) - -#### 🚀 Enhancement - -- added ability to ignore sides on autocrop [#924](https://github.com/oliver-moran/jimp/pull/924) ([@cbanfiel](https://github.com/cbanfiel)) - -#### Authors: 1 - -- Chad Banfield ([@cbanfiel](https://github.com/cbanfiel)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-crop/LICENSE b/WechatBot/node_modules/@jimp/plugin-crop/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-crop/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-crop/README.md b/WechatBot/node_modules/@jimp/plugin-crop/README.md deleted file mode 100644 index 64689368f..000000000 --- a/WechatBot/node_modules/@jimp/plugin-crop/README.md +++ /dev/null @@ -1,56 +0,0 @@ -
- -

@jimp/plugin-crop

-

Crop an image.

-
- -## Crop - -Crops the image at a given point to a give size - -- @param {number} x the x coordinate to crop form -- @param {number} y the y coordinate to crop form -- @param w the width of the crop region -- @param h the height of the crop region -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.crop(150, 150); -} - -main(); -``` - -## AutoCrop - -AutoCrop same color borders from this image - -- @param {number} tolerance (optional): a percent value of tolerance for pixels color difference (default: 0.0002%) -- @param {boolean} cropOnlyFrames (optional): flag to crop only real frames: all 4 sides of the image must have some border (default: true) - -or - -- @param {object} options object - - tolerance (optional): a percent value of tolerance for pixels color difference (default: 0.0002%) - - cropOnlyFrames (optional): flag to crop only real frames: all 4 sides of the image must have some border (default: true) - - cropSymmetric (optional): flag to force cropping top be symmetric. north and south / east and west are cropped by the same value - - leaveBorder (optional): integer of how many pixels of the background color to leave around the image - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.autocrop(); - image.autocrop({ cropOnlyFrames: false, cropSymmetric: true }); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-crop/dist/index.js b/WechatBot/node_modules/@jimp/plugin-crop/dist/index.js deleted file mode 100755 index 1b58ec6ae..000000000 --- a/WechatBot/node_modules/@jimp/plugin-crop/dist/index.js +++ /dev/null @@ -1,287 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = pluginCrop; - -var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); - -var _utils = require("@jimp/utils"); - -/* eslint-disable no-labels */ -function pluginCrop(event) { - /** - * Crops the image at a given point to a give size - * @param {number} x the x coordinate to crop form - * @param {number} y the y coordinate to crop form - * @param w the width of the crop region - * @param h the height of the crop region - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - event("crop", function (x, y, w, h, cb) { - if (typeof x !== "number" || typeof y !== "number") return _utils.throwError.call(this, "x and y must be numbers", cb); - if (typeof w !== "number" || typeof h !== "number") return _utils.throwError.call(this, "w and h must be numbers", cb); // round input - - x = Math.round(x); - y = Math.round(y); - w = Math.round(w); - h = Math.round(h); - - if (x === 0 && w === this.bitmap.width) { - // shortcut - var start = w * y + x << 2; - var end = start + (h * w << 2); - this.bitmap.data = this.bitmap.data.slice(start, end); - } else { - var bitmap = Buffer.allocUnsafe(w * h * 4); - var offset = 0; - this.scanQuiet(x, y, w, h, function (x, y, idx) { - var data = this.bitmap.data.readUInt32BE(idx, true); - bitmap.writeUInt32BE(data, offset, true); - offset += 4; - }); - this.bitmap.data = bitmap; - } - - this.bitmap.width = w; - this.bitmap.height = h; - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }); - return { - "class": { - /** - * Autocrop same color borders from this image - * @param {number} tolerance (optional): a percent value of tolerance for pixels color difference (default: 0.0002%) - * @param {boolean} cropOnlyFrames (optional): flag to crop only real frames: all 4 sides of the image must have some border (default: true) - * @param {function(Error, Jimp)} cb (optional): a callback for when complete (default: no callback) - * @returns {Jimp} this for chaining of methods - */ - autocrop: function autocrop() { - var w = this.bitmap.width; - var h = this.bitmap.height; - var minPixelsPerSide = 1; // to avoid cropping completely the image, resulting in an invalid 0 sized image - - var cb; // callback - - var leaveBorder = 0; // Amount of pixels in border to leave - - var tolerance = 0.0002; // percent of color difference tolerance (default value) - - var cropOnlyFrames = true; // flag to force cropping only if the image has a real "frame" - // i.e. all 4 sides have some border (default value) - - var cropSymmetric = false; // flag to force cropping top be symmetric. - // i.e. north and south / east and west are cropped by the same value - - var ignoreSides = { - north: false, - south: false, - east: false, - west: false - }; // parse arguments - - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - - for (var a = 0, len = args.length; a < len; a++) { - if (typeof args[a] === "number") { - // tolerance value passed - tolerance = args[a]; - } - - if (typeof args[a] === "boolean") { - // cropOnlyFrames value passed - cropOnlyFrames = args[a]; - } - - if (typeof args[a] === "function") { - // callback value passed - cb = args[a]; - } - - if ((0, _typeof2["default"])(args[a]) === "object") { - // config object passed - var config = args[a]; - - if (typeof config.tolerance !== "undefined") { - tolerance = config.tolerance; - } - - if (typeof config.cropOnlyFrames !== "undefined") { - cropOnlyFrames = config.cropOnlyFrames; - } - - if (typeof config.cropSymmetric !== "undefined") { - cropSymmetric = config.cropSymmetric; - } - - if (typeof config.leaveBorder !== "undefined") { - leaveBorder = config.leaveBorder; - } - - if (typeof config.ignoreSides !== "undefined") { - ignoreSides = config.ignoreSides; - } - } - } - /** - * All borders must be of the same color as the top left pixel, to be cropped. - * It should be possible to crop borders each with a different color, - * but since there are many ways for corners to intersect, it would - * introduce unnecessary complexity to the algorithm. - */ - // scan each side for same color borders - - - var colorTarget = this.getPixelColor(0, 0); // top left pixel color is the target color - - var rgba1 = this.constructor.intToRGBA(colorTarget); // for north and east sides - - var northPixelsToCrop = 0; - var eastPixelsToCrop = 0; - var southPixelsToCrop = 0; - var westPixelsToCrop = 0; // north side (scan rows from north to south) - - colorTarget = this.getPixelColor(0, 0); - - if (!ignoreSides.north) { - north: for (var y = 0; y < h - minPixelsPerSide; y++) { - for (var x = 0; x < w; x++) { - var colorXY = this.getPixelColor(x, y); - var rgba2 = this.constructor.intToRGBA(colorXY); - - if (this.constructor.colorDiff(rgba1, rgba2) > tolerance) { - // this pixel is too distant from the first one: abort this side scan - break north; - } - } // this row contains all pixels with the same color: increment this side pixels to crop - - - northPixelsToCrop++; - } - } // east side (scan columns from east to west) - - - colorTarget = this.getPixelColor(w, 0); - - if (!ignoreSides.east) { - east: for (var _x = 0; _x < w - minPixelsPerSide; _x++) { - for (var _y = 0 + northPixelsToCrop; _y < h; _y++) { - var _colorXY = this.getPixelColor(_x, _y); - - var _rgba = this.constructor.intToRGBA(_colorXY); - - if (this.constructor.colorDiff(rgba1, _rgba) > tolerance) { - // this pixel is too distant from the first one: abort this side scan - break east; - } - } // this column contains all pixels with the same color: increment this side pixels to crop - - - eastPixelsToCrop++; - } - } // south side (scan rows from south to north) - - - colorTarget = this.getPixelColor(0, h); - - if (!ignoreSides.south) { - south: for (var _y2 = h - 1; _y2 >= northPixelsToCrop + minPixelsPerSide; _y2--) { - for (var _x2 = w - eastPixelsToCrop - 1; _x2 >= 0; _x2--) { - var _colorXY2 = this.getPixelColor(_x2, _y2); - - var _rgba2 = this.constructor.intToRGBA(_colorXY2); - - if (this.constructor.colorDiff(rgba1, _rgba2) > tolerance) { - // this pixel is too distant from the first one: abort this side scan - break south; - } - } // this row contains all pixels with the same color: increment this side pixels to crop - - - southPixelsToCrop++; - } - } // west side (scan columns from west to east) - - - colorTarget = this.getPixelColor(w, h); - - if (!ignoreSides.west) { - west: for (var _x3 = w - 1; _x3 >= 0 + eastPixelsToCrop + minPixelsPerSide; _x3--) { - for (var _y3 = h - 1; _y3 >= 0 + northPixelsToCrop; _y3--) { - var _colorXY3 = this.getPixelColor(_x3, _y3); - - var _rgba3 = this.constructor.intToRGBA(_colorXY3); - - if (this.constructor.colorDiff(rgba1, _rgba3) > tolerance) { - // this pixel is too distant from the first one: abort this side scan - break west; - } - } // this column contains all pixels with the same color: increment this side pixels to crop - - - westPixelsToCrop++; - } - } // decide if a crop is needed - - - var doCrop = false; // apply leaveBorder - - westPixelsToCrop -= leaveBorder; - eastPixelsToCrop -= leaveBorder; - northPixelsToCrop -= leaveBorder; - southPixelsToCrop -= leaveBorder; - - if (cropSymmetric) { - var horizontal = Math.min(eastPixelsToCrop, westPixelsToCrop); - var vertical = Math.min(northPixelsToCrop, southPixelsToCrop); - westPixelsToCrop = horizontal; - eastPixelsToCrop = horizontal; - northPixelsToCrop = vertical; - southPixelsToCrop = vertical; - } // make sure that crops are >= 0 - - - westPixelsToCrop = westPixelsToCrop >= 0 ? westPixelsToCrop : 0; - eastPixelsToCrop = eastPixelsToCrop >= 0 ? eastPixelsToCrop : 0; - northPixelsToCrop = northPixelsToCrop >= 0 ? northPixelsToCrop : 0; - southPixelsToCrop = southPixelsToCrop >= 0 ? southPixelsToCrop : 0; // safety checks - - var widthOfRemainingPixels = w - (westPixelsToCrop + eastPixelsToCrop); - var heightOfRemainingPixels = h - (southPixelsToCrop + northPixelsToCrop); - - if (cropOnlyFrames) { - // crop image if all sides should be cropped - doCrop = eastPixelsToCrop !== 0 && northPixelsToCrop !== 0 && westPixelsToCrop !== 0 && southPixelsToCrop !== 0; - } else { - // crop image if at least one side should be cropped - doCrop = eastPixelsToCrop !== 0 || northPixelsToCrop !== 0 || westPixelsToCrop !== 0 || southPixelsToCrop !== 0; - } - - if (doCrop) { - // do the real crop - this.crop(eastPixelsToCrop, northPixelsToCrop, widthOfRemainingPixels, heightOfRemainingPixels); - } - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - } - }; -} - -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-crop/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-crop/dist/index.js.map deleted file mode 100644 index 8edd88356..000000000 --- a/WechatBot/node_modules/@jimp/plugin-crop/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["pluginCrop","event","x","y","w","h","cb","throwError","call","Math","round","bitmap","width","start","end","data","slice","Buffer","allocUnsafe","offset","scanQuiet","idx","readUInt32BE","writeUInt32BE","height","autocrop","minPixelsPerSide","leaveBorder","tolerance","cropOnlyFrames","cropSymmetric","ignoreSides","north","south","east","west","args","a","len","length","config","colorTarget","getPixelColor","rgba1","constructor","intToRGBA","northPixelsToCrop","eastPixelsToCrop","southPixelsToCrop","westPixelsToCrop","colorXY","rgba2","colorDiff","doCrop","horizontal","min","vertical","widthOfRemainingPixels","heightOfRemainingPixels","crop"],"mappings":";;;;;;;;;;;AAEA;;AAFA;AAIe,SAASA,UAAT,CAAoBC,KAApB,EAA2B;AACxC;;;;;;;;;AASAA,EAAAA,KAAK,CAAC,MAAD,EAAS,UAAUC,CAAV,EAAaC,CAAb,EAAgBC,CAAhB,EAAmBC,CAAnB,EAAsBC,EAAtB,EAA0B;AACtC,QAAI,OAAOJ,CAAP,KAAa,QAAb,IAAyB,OAAOC,CAAP,KAAa,QAA1C,EACE,OAAOI,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,yBAAtB,EA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;AACD,SApLe,CAsLhB;;;AACAP,QAAAA,gBAAgB,GAAGA,gBAAgB,IAAI,CAApB,GAAwBA,gBAAxB,GAA2C,CAA9D;AACAF,QAAAA,gBAAgB,GAAGA,gBAAgB,IAAI,CAApB,GAAwBA,gBAAxB,GAA2C,CAA9D;AACAD,QAAAA,iBAAiB,GAAGA,iBAAiB,IAAI,CAArB,GAAyBA,iBAAzB,GAA6C,CAAjE;AACAE,QAAAA,iBAAiB,GAAGA,iBAAiB,IAAI,CAArB,GAAyBA,iBAAzB,GAA6C,CAAjE,CA1LgB,CA4LhB;;AACA,YAAMS,sBAAsB,GAC1BrD,CAAC,IAAI6C,gBAAgB,GAAGF,gBAAvB,CADH;AAEA,YAAMW,uBAAuB,GAC3BrD,CAAC,IAAI2C,iBAAiB,GAAGF,iBAAxB,CADH;;AAGA,YAAIjB,cAAJ,EAAoB;AAClB;AACAwB,UAAAA,MAAM,GACJN,gBAAgB,KAAK,CAArB,IACAD,iBAAiB,KAAK,CADtB,IAEAG,gBAAgB,KAAK,CAFrB,IAGAD,iBAAiB,KAAK,CAJxB;AAKD,SAPD,MAOO;AACL;AACAK,UAAAA,MAAM,GACJN,gBAAgB,KAAK,CAArB,IACAD,iBAAiB,KAAK,CADtB,IAEAG,gBAAgB,KAAK,CAFrB,IAGAD,iBAAiB,KAAK,CAJxB;AAKD;;AAED,YAAIK,MAAJ,EAAY;AACV;AACA,eAAKM,IAAL,CACEZ,gBADF,EAEED,iBAFF,EAGEW,sBAHF,EAIEC,uBAJF;AAMD;;AAED,YAAI,0BAAcpD,EAAd,CAAJ,EAAuB;AACrBA,UAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,eAAO,IAAP;AACD;AAzOI;AADF,GAAP;AA6OD","sourcesContent":["/* eslint-disable no-labels */\n\nimport { throwError, isNodePattern } from \"@jimp/utils\";\n\nexport default function pluginCrop(event) {\n /**\n * Crops the image at a given point to a give size\n * @param {number} x the x coordinate to crop form\n * @param {number} y the y coordinate to crop form\n * @param w the width of the crop region\n * @param h the height of the crop region\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n event(\"crop\", function (x, y, w, h, cb) {\n if (typeof x !== \"number\" || typeof y !== \"number\")\n return throwError.call(this, \"x and y must be numbers\", cb);\n if (typeof w !== \"number\" || typeof h !== \"number\")\n return throwError.call(this, \"w and h must be numbers\", cb);\n\n // round input\n x = Math.round(x);\n y = Math.round(y);\n w = Math.round(w);\n h = Math.round(h);\n\n if (x === 0 && w === this.bitmap.width) {\n // shortcut\n const start = (w * y + x) << 2;\n const end = start + ((h * w) << 2);\n\n this.bitmap.data = this.bitmap.data.slice(start, end);\n } else {\n const bitmap = Buffer.allocUnsafe(w * h * 4);\n let offset = 0;\n\n this.scanQuiet(x, y, w, h, function (x, y, idx) {\n const data = this.bitmap.data.readUInt32BE(idx, true);\n bitmap.writeUInt32BE(data, offset, true);\n offset += 4;\n });\n\n this.bitmap.data = bitmap;\n }\n\n this.bitmap.width = w;\n this.bitmap.height = h;\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n });\n\n return {\n class: {\n /**\n * Autocrop same color borders from this image\n * @param {number} tolerance (optional): a percent value of tolerance for pixels color difference (default: 0.0002%)\n * @param {boolean} cropOnlyFrames (optional): flag to crop only real frames: all 4 sides of the image must have some border (default: true)\n * @param {function(Error, Jimp)} cb (optional): a callback for when complete (default: no callback)\n * @returns {Jimp} this for chaining of methods\n */\n autocrop(...args) {\n const w = this.bitmap.width;\n const h = this.bitmap.height;\n const minPixelsPerSide = 1; // to avoid cropping completely the image, resulting in an invalid 0 sized image\n\n let cb; // callback\n let leaveBorder = 0; // Amount of pixels in border to leave\n let tolerance = 0.0002; // percent of color difference tolerance (default value)\n let cropOnlyFrames = true; // flag to force cropping only if the image has a real \"frame\"\n // i.e. all 4 sides have some border (default value)\n let cropSymmetric = false; // flag to force cropping top be symmetric.\n // i.e. north and south / east and west are cropped by the same value\n let ignoreSides = {\n north: false,\n south: false,\n east: false,\n west: false,\n };\n\n // parse arguments\n for (let a = 0, len = args.length; a < len; a++) {\n if (typeof args[a] === \"number\") {\n // tolerance value passed\n tolerance = args[a];\n }\n\n if (typeof args[a] === \"boolean\") {\n // cropOnlyFrames value passed\n cropOnlyFrames = args[a];\n }\n\n if (typeof args[a] === \"function\") {\n // callback value passed\n cb = args[a];\n }\n\n if (typeof args[a] === \"object\") {\n // config object passed\n const config = args[a];\n\n if (typeof config.tolerance !== \"undefined\") {\n ({ tolerance } = config);\n }\n\n if (typeof config.cropOnlyFrames !== \"undefined\") {\n ({ cropOnlyFrames } = config);\n }\n\n if (typeof config.cropSymmetric !== \"undefined\") {\n ({ cropSymmetric } = config);\n }\n\n if (typeof config.leaveBorder !== \"undefined\") {\n ({ leaveBorder } = config);\n }\n\n if (typeof config.ignoreSides !== \"undefined\") {\n ({ ignoreSides } = config);\n }\n }\n }\n\n /**\n * All borders must be of the same color as the top left pixel, to be cropped.\n * It should be possible to crop borders each with a different color,\n * but since there are many ways for corners to intersect, it would\n * introduce unnecessary complexity to the algorithm.\n */\n\n // scan each side for same color borders\n let colorTarget = this.getPixelColor(0, 0); // top left pixel color is the target color\n const rgba1 = this.constructor.intToRGBA(colorTarget);\n\n // for north and east sides\n let northPixelsToCrop = 0;\n let eastPixelsToCrop = 0;\n let southPixelsToCrop = 0;\n let westPixelsToCrop = 0;\n\n // north side (scan rows from north to south)\n colorTarget = this.getPixelColor(0, 0);\n if (!ignoreSides.north) {\n north: for (let y = 0; y < h - minPixelsPerSide; y++) {\n for (let x = 0; x < w; x++) {\n const colorXY = this.getPixelColor(x, y);\n const rgba2 = this.constructor.intToRGBA(colorXY);\n\n if (this.constructor.colorDiff(rgba1, rgba2) > tolerance) {\n // this pixel is too distant from the first one: abort this side scan\n break north;\n }\n }\n\n // this row contains all pixels with the same color: increment this side pixels to crop\n northPixelsToCrop++;\n }\n }\n\n // east side (scan columns from east to west)\n colorTarget = this.getPixelColor(w, 0);\n if (!ignoreSides.east) {\n east: for (let x = 0; x < w - minPixelsPerSide; x++) {\n for (let y = 0 + northPixelsToCrop; y < h; y++) {\n const colorXY = this.getPixelColor(x, y);\n const rgba2 = this.constructor.intToRGBA(colorXY);\n\n if (this.constructor.colorDiff(rgba1, rgba2) > tolerance) {\n // this pixel is too distant from the first one: abort this side scan\n break east;\n }\n }\n\n // this column contains all pixels with the same color: increment this side pixels to crop\n eastPixelsToCrop++;\n }\n }\n\n // south side (scan rows from south to north)\n colorTarget = this.getPixelColor(0, h);\n\n if (!ignoreSides.south) {\n south: for (\n let y = h - 1;\n y >= northPixelsToCrop + minPixelsPerSide;\n y--\n ) {\n for (let x = w - eastPixelsToCrop - 1; x >= 0; x--) {\n const colorXY = this.getPixelColor(x, y);\n const rgba2 = this.constructor.intToRGBA(colorXY);\n\n if (this.constructor.colorDiff(rgba1, rgba2) > tolerance) {\n // this pixel is too distant from the first one: abort this side scan\n break south;\n }\n }\n\n // this row contains all pixels with the same color: increment this side pixels to crop\n southPixelsToCrop++;\n }\n }\n\n // west side (scan columns from west to east)\n colorTarget = this.getPixelColor(w, h);\n if (!ignoreSides.west) {\n west: for (\n let x = w - 1;\n x >= 0 + eastPixelsToCrop + minPixelsPerSide;\n x--\n ) {\n for (let y = h - 1; y >= 0 + northPixelsToCrop; y--) {\n const colorXY = this.getPixelColor(x, y);\n const rgba2 = this.constructor.intToRGBA(colorXY);\n\n if (this.constructor.colorDiff(rgba1, rgba2) > tolerance) {\n // this pixel is too distant from the first one: abort this side scan\n break west;\n }\n }\n\n // this column contains all pixels with the same color: increment this side pixels to crop\n westPixelsToCrop++;\n }\n }\n\n // decide if a crop is needed\n let doCrop = false;\n\n // apply leaveBorder\n westPixelsToCrop -= leaveBorder;\n eastPixelsToCrop -= leaveBorder;\n northPixelsToCrop -= leaveBorder;\n southPixelsToCrop -= leaveBorder;\n\n if (cropSymmetric) {\n const horizontal = Math.min(eastPixelsToCrop, westPixelsToCrop);\n const vertical = Math.min(northPixelsToCrop, southPixelsToCrop);\n westPixelsToCrop = horizontal;\n eastPixelsToCrop = horizontal;\n northPixelsToCrop = vertical;\n southPixelsToCrop = vertical;\n }\n\n // make sure that crops are >= 0\n westPixelsToCrop = westPixelsToCrop >= 0 ? westPixelsToCrop : 0;\n eastPixelsToCrop = eastPixelsToCrop >= 0 ? eastPixelsToCrop : 0;\n northPixelsToCrop = northPixelsToCrop >= 0 ? northPixelsToCrop : 0;\n southPixelsToCrop = southPixelsToCrop >= 0 ? southPixelsToCrop : 0;\n\n // safety checks\n const widthOfRemainingPixels =\n w - (westPixelsToCrop + eastPixelsToCrop);\n const heightOfRemainingPixels =\n h - (southPixelsToCrop + northPixelsToCrop);\n\n if (cropOnlyFrames) {\n // crop image if all sides should be cropped\n doCrop =\n eastPixelsToCrop !== 0 &&\n northPixelsToCrop !== 0 &&\n westPixelsToCrop !== 0 &&\n southPixelsToCrop !== 0;\n } else {\n // crop image if at least one side should be cropped\n doCrop =\n eastPixelsToCrop !== 0 ||\n northPixelsToCrop !== 0 ||\n westPixelsToCrop !== 0 ||\n southPixelsToCrop !== 0;\n }\n\n if (doCrop) {\n // do the real crop\n this.crop(\n eastPixelsToCrop,\n northPixelsToCrop,\n widthOfRemainingPixels,\n heightOfRemainingPixels\n );\n }\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n },\n };\n}\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-crop/index.d.ts b/WechatBot/node_modules/@jimp/plugin-crop/index.d.ts deleted file mode 100644 index 48550b4f0..000000000 --- a/WechatBot/node_modules/@jimp/plugin-crop/index.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { Jimp, ImageCallback } from "@jimp/core"; - -interface CropClass { - crop( - x: number, - y: number, - w: number, - h: number, - cb?: ImageCallback - ): this; - cropQuiet( - x: number, - y: number, - w: number, - h: number, - cb?: ImageCallback - ): this; - autocrop(tolerance?: number, cb?: ImageCallback): this; - autocrop(cropOnlyFrames?: boolean, cb?: ImageCallback): this; - autocrop( - tolerance?: number, - cropOnlyFrames?: boolean, - cb?: ImageCallback - ): this; - autocrop( - options: { - tolerance?: number; - cropOnlyFrames?: boolean; - cropSymmetric?: boolean; - leaveBorder?: number; - ignoreSides?: { - north: boolean; - south: boolean; - east: boolean; - west: boolean; - }; - }, - cb?: ImageCallback - ): this; -} - -interface Crop { - class: CropClass; -} - -export default function (): Crop; diff --git a/WechatBot/node_modules/@jimp/plugin-crop/package.json b/WechatBot/node_modules/@jimp/plugin-crop/package.json deleted file mode 100644 index ec1f3e564..000000000 --- a/WechatBot/node_modules/@jimp/plugin-crop/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@jimp/plugin-crop", - "version": "0.16.13", - "description": "crop an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-crop/src/index.js b/WechatBot/node_modules/@jimp/plugin-crop/src/index.js deleted file mode 100755 index 5cb13d47f..000000000 --- a/WechatBot/node_modules/@jimp/plugin-crop/src/index.js +++ /dev/null @@ -1,293 +0,0 @@ -/* eslint-disable no-labels */ - -import { throwError, isNodePattern } from "@jimp/utils"; - -export default function pluginCrop(event) { - /** - * Crops the image at a given point to a give size - * @param {number} x the x coordinate to crop form - * @param {number} y the y coordinate to crop form - * @param w the width of the crop region - * @param h the height of the crop region - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - event("crop", function (x, y, w, h, cb) { - if (typeof x !== "number" || typeof y !== "number") - return throwError.call(this, "x and y must be numbers", cb); - if (typeof w !== "number" || typeof h !== "number") - return throwError.call(this, "w and h must be numbers", cb); - - // round input - x = Math.round(x); - y = Math.round(y); - w = Math.round(w); - h = Math.round(h); - - if (x === 0 && w === this.bitmap.width) { - // shortcut - const start = (w * y + x) << 2; - const end = start + ((h * w) << 2); - - this.bitmap.data = this.bitmap.data.slice(start, end); - } else { - const bitmap = Buffer.allocUnsafe(w * h * 4); - let offset = 0; - - this.scanQuiet(x, y, w, h, function (x, y, idx) { - const data = this.bitmap.data.readUInt32BE(idx, true); - bitmap.writeUInt32BE(data, offset, true); - offset += 4; - }); - - this.bitmap.data = bitmap; - } - - this.bitmap.width = w; - this.bitmap.height = h; - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }); - - return { - class: { - /** - * Autocrop same color borders from this image - * @param {number} tolerance (optional): a percent value of tolerance for pixels color difference (default: 0.0002%) - * @param {boolean} cropOnlyFrames (optional): flag to crop only real frames: all 4 sides of the image must have some border (default: true) - * @param {function(Error, Jimp)} cb (optional): a callback for when complete (default: no callback) - * @returns {Jimp} this for chaining of methods - */ - autocrop(...args) { - const w = this.bitmap.width; - const h = this.bitmap.height; - const minPixelsPerSide = 1; // to avoid cropping completely the image, resulting in an invalid 0 sized image - - let cb; // callback - let leaveBorder = 0; // Amount of pixels in border to leave - let tolerance = 0.0002; // percent of color difference tolerance (default value) - let cropOnlyFrames = true; // flag to force cropping only if the image has a real "frame" - // i.e. all 4 sides have some border (default value) - let cropSymmetric = false; // flag to force cropping top be symmetric. - // i.e. north and south / east and west are cropped by the same value - let ignoreSides = { - north: false, - south: false, - east: false, - west: false, - }; - - // parse arguments - for (let a = 0, len = args.length; a < len; a++) { - if (typeof args[a] === "number") { - // tolerance value passed - tolerance = args[a]; - } - - if (typeof args[a] === "boolean") { - // cropOnlyFrames value passed - cropOnlyFrames = args[a]; - } - - if (typeof args[a] === "function") { - // callback value passed - cb = args[a]; - } - - if (typeof args[a] === "object") { - // config object passed - const config = args[a]; - - if (typeof config.tolerance !== "undefined") { - ({ tolerance } = config); - } - - if (typeof config.cropOnlyFrames !== "undefined") { - ({ cropOnlyFrames } = config); - } - - if (typeof config.cropSymmetric !== "undefined") { - ({ cropSymmetric } = config); - } - - if (typeof config.leaveBorder !== "undefined") { - ({ leaveBorder } = config); - } - - if (typeof config.ignoreSides !== "undefined") { - ({ ignoreSides } = config); - } - } - } - - /** - * All borders must be of the same color as the top left pixel, to be cropped. - * It should be possible to crop borders each with a different color, - * but since there are many ways for corners to intersect, it would - * introduce unnecessary complexity to the algorithm. - */ - - // scan each side for same color borders - let colorTarget = this.getPixelColor(0, 0); // top left pixel color is the target color - const rgba1 = this.constructor.intToRGBA(colorTarget); - - // for north and east sides - let northPixelsToCrop = 0; - let eastPixelsToCrop = 0; - let southPixelsToCrop = 0; - let westPixelsToCrop = 0; - - // north side (scan rows from north to south) - colorTarget = this.getPixelColor(0, 0); - if (!ignoreSides.north) { - north: for (let y = 0; y < h - minPixelsPerSide; y++) { - for (let x = 0; x < w; x++) { - const colorXY = this.getPixelColor(x, y); - const rgba2 = this.constructor.intToRGBA(colorXY); - - if (this.constructor.colorDiff(rgba1, rgba2) > tolerance) { - // this pixel is too distant from the first one: abort this side scan - break north; - } - } - - // this row contains all pixels with the same color: increment this side pixels to crop - northPixelsToCrop++; - } - } - - // east side (scan columns from east to west) - colorTarget = this.getPixelColor(w, 0); - if (!ignoreSides.east) { - east: for (let x = 0; x < w - minPixelsPerSide; x++) { - for (let y = 0 + northPixelsToCrop; y < h; y++) { - const colorXY = this.getPixelColor(x, y); - const rgba2 = this.constructor.intToRGBA(colorXY); - - if (this.constructor.colorDiff(rgba1, rgba2) > tolerance) { - // this pixel is too distant from the first one: abort this side scan - break east; - } - } - - // this column contains all pixels with the same color: increment this side pixels to crop - eastPixelsToCrop++; - } - } - - // south side (scan rows from south to north) - colorTarget = this.getPixelColor(0, h); - - if (!ignoreSides.south) { - south: for ( - let y = h - 1; - y >= northPixelsToCrop + minPixelsPerSide; - y-- - ) { - for (let x = w - eastPixelsToCrop - 1; x >= 0; x--) { - const colorXY = this.getPixelColor(x, y); - const rgba2 = this.constructor.intToRGBA(colorXY); - - if (this.constructor.colorDiff(rgba1, rgba2) > tolerance) { - // this pixel is too distant from the first one: abort this side scan - break south; - } - } - - // this row contains all pixels with the same color: increment this side pixels to crop - southPixelsToCrop++; - } - } - - // west side (scan columns from west to east) - colorTarget = this.getPixelColor(w, h); - if (!ignoreSides.west) { - west: for ( - let x = w - 1; - x >= 0 + eastPixelsToCrop + minPixelsPerSide; - x-- - ) { - for (let y = h - 1; y >= 0 + northPixelsToCrop; y--) { - const colorXY = this.getPixelColor(x, y); - const rgba2 = this.constructor.intToRGBA(colorXY); - - if (this.constructor.colorDiff(rgba1, rgba2) > tolerance) { - // this pixel is too distant from the first one: abort this side scan - break west; - } - } - - // this column contains all pixels with the same color: increment this side pixels to crop - westPixelsToCrop++; - } - } - - // decide if a crop is needed - let doCrop = false; - - // apply leaveBorder - westPixelsToCrop -= leaveBorder; - eastPixelsToCrop -= leaveBorder; - northPixelsToCrop -= leaveBorder; - southPixelsToCrop -= leaveBorder; - - if (cropSymmetric) { - const horizontal = Math.min(eastPixelsToCrop, westPixelsToCrop); - const vertical = Math.min(northPixelsToCrop, southPixelsToCrop); - westPixelsToCrop = horizontal; - eastPixelsToCrop = horizontal; - northPixelsToCrop = vertical; - southPixelsToCrop = vertical; - } - - // make sure that crops are >= 0 - westPixelsToCrop = westPixelsToCrop >= 0 ? westPixelsToCrop : 0; - eastPixelsToCrop = eastPixelsToCrop >= 0 ? eastPixelsToCrop : 0; - northPixelsToCrop = northPixelsToCrop >= 0 ? northPixelsToCrop : 0; - southPixelsToCrop = southPixelsToCrop >= 0 ? southPixelsToCrop : 0; - - // safety checks - const widthOfRemainingPixels = - w - (westPixelsToCrop + eastPixelsToCrop); - const heightOfRemainingPixels = - h - (southPixelsToCrop + northPixelsToCrop); - - if (cropOnlyFrames) { - // crop image if all sides should be cropped - doCrop = - eastPixelsToCrop !== 0 && - northPixelsToCrop !== 0 && - westPixelsToCrop !== 0 && - southPixelsToCrop !== 0; - } else { - // crop image if at least one side should be cropped - doCrop = - eastPixelsToCrop !== 0 || - northPixelsToCrop !== 0 || - westPixelsToCrop !== 0 || - southPixelsToCrop !== 0; - } - - if (doCrop) { - // do the real crop - this.crop( - eastPixelsToCrop, - northPixelsToCrop, - widthOfRemainingPixels, - heightOfRemainingPixels - ); - } - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - }, - }; -} diff --git a/WechatBot/node_modules/@jimp/plugin-crop/test/autocrop.test.js b/WechatBot/node_modules/@jimp/plugin-crop/test/autocrop.test.js deleted file mode 100755 index 915fb7c9a..000000000 --- a/WechatBot/node_modules/@jimp/plugin-crop/test/autocrop.test.js +++ /dev/null @@ -1,429 +0,0 @@ -import { Jimp, mkJGD } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import crop from "../src"; - -const jimp = configure({ plugins: [crop] }, Jimp); - -describe("Autocrop", () => { - it("image with transparent surround color", async () => { - const imgSrc = await jimp.read( - mkJGD( - " ", - " ◆◆ ", - " ◆▦▦◆ ", - " ◆▦▦▦▦◆ ", - " ◆▦▦◆ ", - " ◆◆ ", - " " - ) - ); - - imgSrc - .autocrop() - .getJGDSync() - .should.be.sameJGD( - mkJGD(" ◆◆ ", " ◆▦▦◆ ", "◆▦▦▦▦◆", " ◆▦▦◆ ", " ◆◆ ") - ); - }); - - it("image with opaque surround color", async () => { - const imgSrc = await jimp.read( - mkJGD( - "▥▥▥▥▥▥▥▥▥▥", - "▥▥▥▥◆◆▥▥▥▥", - "▥▥▥◆▦▦◆▥▥▥", - "▥▥◆▦▦▦▦◆▥▥", - "▥▥▥◆▦▦◆▥▥▥", - "▥▥▥▥◆◆▥▥▥▥", - "▥▥▥▥▥▥▥▥▥▥" - ) - ); - - imgSrc - .autocrop() - .getJGDSync() - .should.be.sameJGD( - mkJGD("▥▥◆◆▥▥", "▥◆▦▦◆▥", "◆▦▦▦▦◆", "▥◆▦▦◆▥", "▥▥◆◆▥▥") - ); - }); - - it("image with one color border", async () => { - const imgSrc = await jimp.read( - mkJGD( - "▥▥▥▥▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥▥▥▥▥", - "▥▥ ◆◆ ▥▥", - "▥▥ ◆▦▦◆ ▥▥", - "▥▥ ◆▦▦▦▦◆ ▥▥", - "▥▥ ◆▦▦◆ ▥▥", - "▥▥ ◆◆ ▥▥", - "▥▥▥▥▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥▥▥▥▥" - ) - ); - - imgSrc - .autocrop() - .getJGDSync() - .should.be.sameJGD( - mkJGD(" ◆◆ ", " ◆▦▦◆ ", " ◆▦▦▦▦◆ ", " ◆▦▦◆ ", " ◆◆ ") - ); - }); - - it("image border with small variation", async () => { - const imgSrc = await jimp.read( - mkJGD( - "323232323232", - "232323232323", - "32 ◆◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆▦▦▦▦◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆◆ 32", - "232323232323", - "323232323232" - ) - ); - imgSrc - .clone() - .autocrop() - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "323232323232", - "232323232323", - "32 ◆◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆▦▦▦▦◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆◆ 32", - "232323232323", - "323232323232" - ) - ); - imgSrc - .clone() - .autocrop(0.005) - .getJGDSync() - .should.be.sameJGD( - mkJGD(" ◆◆ ", " ◆▦▦◆ ", " ◆▦▦▦▦◆ ", " ◆▦▦◆ ", " ◆◆ ") - ); - }); - - it("image border with small variation configured by options", async () => { - const imgSrc = await Jimp.read( - mkJGD( - "323232323232", - "232323232323", - "32 ◆◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆▦▦▦▦◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆◆ 32", - "232323232323", - "323232323232" - ) - ); - imgSrc - .clone() - .autocrop() - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "323232323232", - "232323232323", - "32 ◆◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆▦▦▦▦◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆◆ 32", - "232323232323", - "323232323232" - ) - ); - imgSrc - .clone() - .autocrop({ tolerance: 0.005 }) - .getJGDSync() - .should.be.sameJGD( - mkJGD(" ◆◆ ", " ◆▦▦◆ ", " ◆▦▦▦▦◆ ", " ◆▦▦◆ ", " ◆◆ ") - ); - }); - - it("image without frame", async () => { - const imgSrc = await Jimp.read( - mkJGD( - "▥▥ ◆◆ ", - "▥▥ ◆▦▦◆ ", - "▥▥ ◆▦▦▦▦◆ ", - "▥▥ ◆▦▦◆ ", - "▥▥ ◆◆ ", - "▥▥▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥▥▥" - ) - ); - - imgSrc - .autocrop(false) - .getJGDSync() - .should.be.sameJGD( - mkJGD(" ◆◆ ", " ◆▦▦◆ ", " ◆▦▦▦▦◆ ", " ◆▦▦◆ ", " ◆◆ ") - ); - }); - - it("image without frame configured by options", async () => { - const imgSrc = await Jimp.read( - mkJGD( - "▥▥ ◆◆ ", - "▥▥ ◆▦▦◆ ", - "▥▥ ◆▦▦▦▦◆ ", - "▥▥ ◆▦▦◆ ", - "▥▥ ◆◆ ", - "▥▥▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥▥▥" - ) - ); - - imgSrc - .autocrop({ cropOnlyFrames: false }) - .getJGDSync() - .should.be.sameJGD( - mkJGD(" ◆◆ ", " ◆▦▦◆ ", " ◆▦▦▦▦◆ ", " ◆▦▦◆ ", " ◆◆ ") - ); - }); - - it("image with symmetric border configured by options", async () => { - const imgSrc = await Jimp.read( - mkJGD( - "▥▥▥▥▥▥▥▥▥▥▥▥▥▥", - "▥▥ ◆◆ ▥▥▥▥", - "▥▥ ◆▦▦◆ ▥▥▥▥", - "▥▥ ◆▦▦▦▦◆ ▥▥▥▥", - "▥▥ ◆▦▦◆ ▥▥▥▥", - "▥▥ ◆◆ ▥▥▥▥", - "▥▥▥▥▥▥▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥▥▥▥▥▥▥" - ) - ); - - imgSrc - .autocrop({ cropSymmetric: true }) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ◆◆ ▥▥", - " ◆▦▦◆ ▥▥", - " ◆▦▦▦▦◆ ▥▥", - " ◆▦▦◆ ▥▥", - " ◆◆ ▥▥", - "▥▥▥▥▥▥▥▥▥▥" - ) - ); - }); - - it("image without frame and with symmetric border configured by options", async () => { - const imgSrc = await Jimp.read( - mkJGD( - "▥▥ ◆◆ ▥▥▥▥", - "▥▥ ◆▦▦◆ ▥▥▥▥", - "▥▥ ◆▦▦▦▦◆ ▥▥▥▥", - "▥▥ ◆▦▦◆ ▥▥▥▥", - "▥▥ ◆◆ ▥▥▥▥", - "▥▥▥▥▥▥▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥▥▥▥▥▥▥" - ) - ); - imgSrc - .autocrop({ cropSymmetric: true, cropOnlyFrames: false }) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ◆◆ ▥▥", - " ◆▦▦◆ ▥▥", - " ◆▦▦▦▦◆ ▥▥", - " ◆▦▦◆ ▥▥", - " ◆◆ ▥▥", - "▥▥▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥▥▥" - ) - ); - }); - - it("image without frame and with some border left", async () => { - const imgSrc = await Jimp.read( - mkJGD( - "323232323232", - "232323232323", - "32 ◆◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆▦▦▦▦◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆◆ 32", - "232323232323", - "323232323232" - ) - ); - - imgSrc - .autocrop({ - tolerance: 0.005, - leaveBorder: 1, - }) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "3232323232", - "2 ◆◆ 3", - "3 ◆▦▦◆ 2", - "2 ◆▦▦▦▦◆ 3", - "3 ◆▦▦◆ 2", - "2 ◆◆ 3", - "3232323232" - ) - ); - }); - - it('image not cropped given an out of bounds "leaveBorder" value ', async () => { - const imgSrc = await Jimp.read( - mkJGD( - "323232323232", - "232323232323", - "32 ◆◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆▦▦▦▦◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆◆ 32", - "232323232323", - "323232323232" - ) - ); - - imgSrc - .autocrop({ - tolerance: 0.005, - leaveBorder: 100, - }) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "323232323232", - "232323232323", - "32 ◆◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆▦▦▦▦◆ 32", - "23 ◆▦▦◆ 23", - "32 ◆◆ 32", - "232323232323", - "323232323232" - ) - ); - }); - - it("image with top and bottom frame and leaveBorder", async () => { - const imgSrc = await Jimp.read( - mkJGD( - "▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥", - " ◆◆ ", - " ◆▦▦◆ ", - " ◆▦▦▦▦◆ ", - " ◆▦▦◆ ", - " ◆◆ ", - "▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥" - ) - ); - imgSrc - .autocrop({ cropSymmetric: true, cropOnlyFrames: false, leaveBorder: 2 }) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥", - " ◆◆ ", - " ◆▦▦◆ ", - " ◆▦▦▦▦◆ ", - " ◆▦▦◆ ", - " ◆◆ ", - "▥▥▥▥▥▥▥▥", - "▥▥▥▥▥▥▥▥" - ) - ); - }); - - it("ignore sides north", async () => { - const imgSrc = await jimp.read( - mkJGD( - " ", - " ◆◆ ", - " ◆▦▦◆ ", - " ◆▦▦▦▦◆ ", - " ◆▦▦◆ ", - " ◆◆ ", - " " - ) - ); - - imgSrc - .autocrop({ cropOnlyFrames: false, ignoreSides: { north: true } }) - .getJGDSync() - .should.be.sameJGD( - mkJGD(" ", " ◆◆ ", " ◆▦▦◆ ", "◆▦▦▦▦◆", " ◆▦▦◆ ", " ◆◆ ") - ); - }); - - it("ignore sides south and west", async () => { - const imgSrc = await jimp.read( - mkJGD( - " ", - " ◆◆ ", - " ◆▦▦◆ ", - " ◆▦▦▦▦◆ ", - " ◆▦▦◆ ", - " ◆◆ ", - " " - ) - ); - - imgSrc - .autocrop({ - cropOnlyFrames: false, - ignoreSides: { west: true, south: true }, - }) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ◆◆ ", - " ◆▦▦◆ ", - "◆▦▦▦▦◆ ", - " ◆▦▦◆ ", - " ◆◆ ", - " " - ) - ); - }); - - it("ignore sides east", async () => { - const imgSrc = await jimp.read( - mkJGD( - " ", - " ◆◆ ", - " ◆▦▦◆ ", - " ◆▦▦▦▦◆ ", - " ◆▦▦◆ ", - " ◆◆ ", - " " - ) - ); - - imgSrc - .autocrop({ cropOnlyFrames: false, ignoreSides: { east: true } }) - .getJGDSync() - .should.be.sameJGD( - mkJGD(" ◆◆ ", " ◆▦▦◆ ", " ◆▦▦▦▦◆", " ◆▦▦◆ ", " ◆◆ ") - ); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-crop/test/crop.test.js b/WechatBot/node_modules/@jimp/plugin-crop/test/crop.test.js deleted file mode 100755 index 734e2788d..000000000 --- a/WechatBot/node_modules/@jimp/plugin-crop/test/crop.test.js +++ /dev/null @@ -1,65 +0,0 @@ -import { Jimp, mkJGD } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import crop from "../src"; - -const jimp = configure({ plugins: [crop] }, Jimp); - -describe("crop", () => { - // 6x5 size - const testImage = mkJGD(" ◆◆ ", " ◆▦▦◆ ", "◆▦▦▦▦◆", " ◆▦▦◆ ", " ◆◆ "); - - it("full width from top", async () => { - const imgSrc = await jimp.read(testImage); - - imgSrc - .crop(0, 0, 6, 2) - .getJGDSync() - .should.be.sameJGD(mkJGD(" ◆◆ ", " ◆▦▦◆ ")); - }); - - it("full width from bottom", async () => { - const imgSrc = await jimp.read(testImage); - - imgSrc - .crop(0, 3, 6, 2) - .getJGDSync() - .should.be.sameJGD(mkJGD(" ◆▦▦◆ ", " ◆◆ ")); - }); - - it("full width from middle", async () => { - const imgSrc = await jimp.read(testImage); - - imgSrc - .crop(0, 2, 6, 2) - .getJGDSync() - .should.be.sameJGD(mkJGD("◆▦▦▦▦◆", " ◆▦▦◆ ")); - }); - - it("full height from left", async () => { - const imgSrc = await jimp.read(testImage); - - imgSrc - .crop(0, 0, 2, 5) - .getJGDSync() - .should.be.sameJGD(mkJGD(" ", " ◆", "◆▦", " ◆", " ")); - }); - - it("full height from right", async () => { - const imgSrc = await jimp.read(testImage); - - imgSrc - .crop(4, 0, 2, 5) - .getJGDSync() - .should.be.sameJGD(mkJGD(" ", "◆ ", "▦◆", "◆ ", " ")); - }); - - it("full height from middle", async () => { - const imgSrc = await jimp.read(testImage); - - imgSrc - .crop(2, 0, 2, 5) - .getJGDSync() - .should.be.sameJGD(mkJGD("◆◆", "▦▦", "▦▦", "▦▦", "◆◆")); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-displace/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-displace/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-displace/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-displace/LICENSE b/WechatBot/node_modules/@jimp/plugin-displace/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-displace/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-displace/README.md b/WechatBot/node_modules/@jimp/plugin-displace/README.md deleted file mode 100644 index d74a24472..000000000 --- a/WechatBot/node_modules/@jimp/plugin-displace/README.md +++ /dev/null @@ -1,27 +0,0 @@ -
- -

@jimp/plugin-displace

-

Displace an image.

-
- -Displaces the image based on the provided displacement map - -## Usage - -- @param {object} map the source Jimp instance -- @param {number} offset the maximum displacement value -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - // Make me better! - image.displace(map, 10); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-displace/dist/index.js b/WechatBot/node_modules/@jimp/plugin-displace/dist/index.js deleted file mode 100755 index caa1a1fdf..000000000 --- a/WechatBot/node_modules/@jimp/plugin-displace/dist/index.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); - -var _utils = require("@jimp/utils"); - -/** - * Displaces the image based on the provided displacement map - * @param {object} map the source Jimp instance - * @param {number} offset the maximum displacement value - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -var _default = function _default() { - return { - displace: function displace(map, offset, cb) { - if ((0, _typeof2["default"])(map) !== "object" || map.constructor !== this.constructor) { - return _utils.throwError.call(this, "The source must be a Jimp image", cb); - } - - if (typeof offset !== "number") { - return _utils.throwError.call(this, "factor must be a number", cb); - } - - var source = this.cloneQuiet(); - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - var displacement = map.bitmap.data[idx] / 256 * offset; - displacement = Math.round(displacement); - var ids = this.getPixelIndex(x + displacement, y); - this.bitmap.data[ids] = source.bitmap.data[idx]; - this.bitmap.data[ids + 1] = source.bitmap.data[idx + 1]; - this.bitmap.data[ids + 2] = source.bitmap.data[idx + 2]; - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-displace/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-displace/dist/index.js.map deleted file mode 100644 index d525666d1..000000000 --- a/WechatBot/node_modules/@jimp/plugin-displace/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["displace","map","offset","cb","constructor","throwError","call","source","cloneQuiet","scanQuiet","bitmap","width","height","x","y","idx","displacement","data","Math","round","ids","getPixelIndex"],"mappings":";;;;;;;;;;;AAAA;;AAEA;;;;;;;eAOe;AAAA,SAA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AAgBA,UAAI,0BAAcZ,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACG,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AAhCmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern, throwError } from \"@jimp/utils\";\n\n/**\n * Displaces the image based on the provided displacement map\n * @param {object} map the source Jimp instance\n * @param {number} offset the maximum displacement value\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default () => ({\n displace(map, offset, cb) {\n if (typeof map !== \"object\" || map.constructor !== this.constructor) {\n return throwError.call(this, \"The source must be a Jimp image\", cb);\n }\n\n if (typeof offset !== \"number\") {\n return throwError.call(this, \"factor must be a number\", cb);\n }\n\n const source = this.cloneQuiet();\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n let displacement = (map.bitmap.data[idx] / 256) * offset;\n displacement = Math.round(displacement);\n\n const ids = this.getPixelIndex(x + displacement, y);\n this.bitmap.data[ids] = source.bitmap.data[idx];\n this.bitmap.data[ids + 1] = source.bitmap.data[idx + 1];\n this.bitmap.data[ids + 2] = source.bitmap.data[idx + 2];\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-displace/index.d.ts b/WechatBot/node_modules/@jimp/plugin-displace/index.d.ts deleted file mode 100644 index d2ea79bf6..000000000 --- a/WechatBot/node_modules/@jimp/plugin-displace/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Jimp, ImageCallback } from "@jimp/core"; - -interface Displace { - displace(map: Jimp, offset: number, cb?: ImageCallback): this; -} - -export default function (): Displace; diff --git a/WechatBot/node_modules/@jimp/plugin-displace/package.json b/WechatBot/node_modules/@jimp/plugin-displace/package.json deleted file mode 100644 index b0ac12847..000000000 --- a/WechatBot/node_modules/@jimp/plugin-displace/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@jimp/plugin-displace", - "version": "0.16.13", - "description": "displace an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-displace/src/index.js b/WechatBot/node_modules/@jimp/plugin-displace/src/index.js deleted file mode 100755 index 4dcd44031..000000000 --- a/WechatBot/node_modules/@jimp/plugin-displace/src/index.js +++ /dev/null @@ -1,43 +0,0 @@ -import { isNodePattern, throwError } from "@jimp/utils"; - -/** - * Displaces the image based on the provided displacement map - * @param {object} map the source Jimp instance - * @param {number} offset the maximum displacement value - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -export default () => ({ - displace(map, offset, cb) { - if (typeof map !== "object" || map.constructor !== this.constructor) { - return throwError.call(this, "The source must be a Jimp image", cb); - } - - if (typeof offset !== "number") { - return throwError.call(this, "factor must be a number", cb); - } - - const source = this.cloneQuiet(); - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - let displacement = (map.bitmap.data[idx] / 256) * offset; - displacement = Math.round(displacement); - - const ids = this.getPixelIndex(x + displacement, y); - this.bitmap.data[ids] = source.bitmap.data[idx]; - this.bitmap.data[ids + 1] = source.bitmap.data[idx + 1]; - this.bitmap.data[ids + 2] = source.bitmap.data[idx + 2]; - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-dither/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-dither/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-dither/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-dither/LICENSE b/WechatBot/node_modules/@jimp/plugin-dither/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-dither/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-dither/README.md b/WechatBot/node_modules/@jimp/plugin-dither/README.md deleted file mode 100644 index b384599d1..000000000 --- a/WechatBot/node_modules/@jimp/plugin-dither/README.md +++ /dev/null @@ -1,26 +0,0 @@ -
- -

@jimp/plugin-dither

-

Apply a dither effect to an image.

-
- -> Dither - is an intentionally applied form of noise used to randomize quantization error, preventing large-scale patterns such as color banding in images. Dither is routinely used in processing of both digital audio and video data, and is often one of the last stages of mastering audio to a CD. - -## Usage - -Apply a ordered dithering effect - -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.dither565(); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-dither/dist/index.js b/WechatBot/node_modules/@jimp/plugin-dither/dist/index.js deleted file mode 100755 index a4fc3cd8c..000000000 --- a/WechatBot/node_modules/@jimp/plugin-dither/dist/index.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Apply a ordered dithering effect - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -function dither(cb) { - var rgb565Matrix = [1, 9, 3, 11, 13, 5, 15, 7, 4, 12, 2, 10, 16, 8, 14, 6]; - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - var thresholdId = ((y & 3) << 2) + x % 4; - var dither = rgb565Matrix[thresholdId]; - this.bitmap.data[idx] = Math.min(this.bitmap.data[idx] + dither, 0xff); - this.bitmap.data[idx + 1] = Math.min(this.bitmap.data[idx + 1] + dither, 0xff); - this.bitmap.data[idx + 2] = Math.min(this.bitmap.data[idx + 2] + dither, 0xff); - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; -} - -var _default = function _default() { - return { - dither565: dither, - dither16: dither - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-dither/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-dither/dist/index.js.map deleted file mode 100644 index b96091f40..000000000 --- a/WechatBot/node_modules/@jimp/plugin-dither/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["dither","cb","rgb565Matrix","scanQuiet","bitmap","width","height","x","y","idx","thresholdId","data","Math","min","call","dither565","dither16"],"mappings":";;;;;;;AAAA;;AAEA;;;;;AAKA,SAASA,MAAT,CAAgBC,EAAhB,EAAoB;AAClB,MAAMC,YAAY,GAAG,CAAC,CAAD,EAAI,CAAJ,EAAO,CAAP,EAAU,EAAV,EAAc,EAAd,EAAkB,CAAlB,EAAqB,EAArB,EAAyB,CAAzB,EAA4B,CAA5B,EAA+B,EAA/B,EAAmC,CAAnC,EAAsC,EAAtC,EAA0C,EAA1C,EAA8C,CAA9C,EAAiD,EAAjD,EAAqD,CAArD,CAArB;AACA,OAAKC,SAAL,CACE,CADF,EAEE,CAFF,EAGE,KAAKC,MAAL,CAAYC,KAHd,EAIE,KAAKD,MAAL,CAAYE,MAJd,EAKE,UAAUC,CAAV,EAAaC,CAAb,EAAgBC,GAAhB,EAAqB;AACnB,QAAMC,WAAW,GAAG,CAAC,CAACF,CAAC,GAAG,CAAL,KAAW,CAAZ,IAAkBD,CAAC,GAAG,CAA1C;AACA,QAAMP,MAAM,GAAGE,YAAY,CAACQ,WAAD,CAA3B;AACA,SAAKN,MAAL,CAAYO,IAAZ,CAAiBF,GAAjB,IAAwBG,IAAI,CAACC,GAAL,CAAS,KAAKT,MAAL,CAAYO,IAAZ,CAAiBF,GAAjB,IAAwBT,MAAjC,EAAyC,IAAzC,CAAxB;AACA,SAAKI,MAAL,CAAYO,IAAZ,CAAiBF,GAAG,GAAG,CAAvB,IAA4BG,IAAI,CAACC,GAAL,CAC1B,KAAKT,MAAL,CAAYO,IAAZ,CAAiBF,GAAG,GAAG,CAAvB,IAA4BT,MADF,EAE1B,IAF0B,CAA5B;AAIA,SAAKI,MAAL,CAAYO,IAAZ,CAAiBF,GAAG,GAAG,CAAvB,IAA4BG,IAAI,CAACC,GAAL,CAC1B,KAAKT,MAAL,CAAYO,IAAZ,CAAiBF,GAAG,GAAG,CAAvB,IAA4BT,MADF,EAE1B,IAF0B,CAA5B;AAID,GAjBH;;AAoBA,MAAI,0BAAcC,EAAd,CAAJ,EAAuB;AACrBA,IAAAA,EAAE,CAACa,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,SAAO,IAAP;AACD;;eAEc;AAAA,SAAO;AACpBC,IAAAA,SAAS,EAAEf,MADS;AAEpBgB,IAAAA,QAAQ,EAAEhB;AAFU,GAAP;AAAA,C","sourcesContent":["import { isNodePattern } from \"@jimp/utils\";\n\n/**\n * Apply a ordered dithering effect\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nfunction dither(cb) {\n const rgb565Matrix = [1, 9, 3, 11, 13, 5, 15, 7, 4, 12, 2, 10, 16, 8, 14, 6];\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n const thresholdId = ((y & 3) << 2) + (x % 4);\n const dither = rgb565Matrix[thresholdId];\n this.bitmap.data[idx] = Math.min(this.bitmap.data[idx] + dither, 0xff);\n this.bitmap.data[idx + 1] = Math.min(\n this.bitmap.data[idx + 1] + dither,\n 0xff\n );\n this.bitmap.data[idx + 2] = Math.min(\n this.bitmap.data[idx + 2] + dither,\n 0xff\n );\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n}\n\nexport default () => ({\n dither565: dither,\n dither16: dither,\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-dither/index.d.ts b/WechatBot/node_modules/@jimp/plugin-dither/index.d.ts deleted file mode 100644 index 9f2415df3..000000000 --- a/WechatBot/node_modules/@jimp/plugin-dither/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Dither { - dither565(cb?: ImageCallback): this; - dither16(cb?: ImageCallback): this; -} - -export default function (): Dither; diff --git a/WechatBot/node_modules/@jimp/plugin-dither/package.json b/WechatBot/node_modules/@jimp/plugin-dither/package.json deleted file mode 100644 index 5a1d627dd..000000000 --- a/WechatBot/node_modules/@jimp/plugin-dither/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@jimp/plugin-dither", - "version": "0.16.13", - "description": "Dither an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-dither/src/index.js b/WechatBot/node_modules/@jimp/plugin-dither/src/index.js deleted file mode 100755 index c5ce9ecec..000000000 --- a/WechatBot/node_modules/@jimp/plugin-dither/src/index.js +++ /dev/null @@ -1,40 +0,0 @@ -import { isNodePattern } from "@jimp/utils"; - -/** - * Apply a ordered dithering effect - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -function dither(cb) { - const rgb565Matrix = [1, 9, 3, 11, 13, 5, 15, 7, 4, 12, 2, 10, 16, 8, 14, 6]; - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - const thresholdId = ((y & 3) << 2) + (x % 4); - const dither = rgb565Matrix[thresholdId]; - this.bitmap.data[idx] = Math.min(this.bitmap.data[idx] + dither, 0xff); - this.bitmap.data[idx + 1] = Math.min( - this.bitmap.data[idx + 1] + dither, - 0xff - ); - this.bitmap.data[idx + 2] = Math.min( - this.bitmap.data[idx + 2] + dither, - 0xff - ); - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; -} - -export default () => ({ - dither565: dither, - dither16: dither, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-fisheye/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-fisheye/CHANGELOG.md deleted file mode 100644 index 5bd13a6a7..000000000 --- a/WechatBot/node_modules/@jimp/plugin-fisheye/CHANGELOG.md +++ /dev/null @@ -1,47 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.16.2 (Thu Sep 15 2022) - -#### 📝 Documentation - -- added the "e" back to @jimp/plugin-fisheye [#947](https://github.com/oliver-moran/jimp/pull/947) ([@mynameismax](https://github.com/mynameismax)) - -#### Authors: 1 - -- Max ([@mynameismax](https://github.com/mynameismax)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-fisheye/LICENSE b/WechatBot/node_modules/@jimp/plugin-fisheye/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-fisheye/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-fisheye/README.md b/WechatBot/node_modules/@jimp/plugin-fisheye/README.md deleted file mode 100644 index 3a1ae13c8..000000000 --- a/WechatBot/node_modules/@jimp/plugin-fisheye/README.md +++ /dev/null @@ -1,27 +0,0 @@ -
- -

@jimp/plugin-fisheye

-

Apply a fisheye effect to an image

-
- -## Usage - -- @param {function(Error, Jimp)} options (optional) radius -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.fisheye(); - // or - image.fisheye({ r: 1.6 }); -} - -main(); -``` - -Produces nice images with [@jimp/plugin-circle](../plugin-circle). diff --git a/WechatBot/node_modules/@jimp/plugin-fisheye/babel.config.js b/WechatBot/node_modules/@jimp/plugin-fisheye/babel.config.js deleted file mode 100755 index 13e2603a3..000000000 --- a/WechatBot/node_modules/@jimp/plugin-fisheye/babel.config.js +++ /dev/null @@ -1,38 +0,0 @@ -module.exports = (api) => { - api.cache(true); - - return { - presets: [ - [ - "@babel/env", - { - useBuiltIns: "usage", - }, - ], - ], - - plugins: [ - "@babel/proposal-class-properties", - "@babel/syntax-object-rest-spread", - process.env.BABEL_ENV !== "module" && "add-module-exports", - [ - "transform-inline-environment-variables", - { include: ["BABEL_ENV", "ENV"] }, - ], - ].filter(Boolean), - - env: { - test: { - plugins: ["istanbul"], - }, - development: { - plugins: [process.env.ENV !== "browser" && "source-map-support"].filter( - Boolean - ), - }, - module: { - presets: [["@babel/env", { modules: false }]], - }, - }, - }; -}; diff --git a/WechatBot/node_modules/@jimp/plugin-fisheye/dist/index.js b/WechatBot/node_modules/@jimp/plugin-fisheye/dist/index.js deleted file mode 100755 index fba912903..000000000 --- a/WechatBot/node_modules/@jimp/plugin-fisheye/dist/index.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Creates a circle out of an image. - * @param {object} options (optional) r: radius of effect - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -var _default = function _default() { - return { - fisheye: function fisheye() { - var _this = this; - - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : { - r: 2.5 - }; - var cb = arguments.length > 1 ? arguments[1] : undefined; - - if (typeof options === "function") { - cb = options; - options = { - r: 2.5 - }; - } - - var source = this.cloneQuiet(); - var _source$bitmap = source.bitmap, - width = _source$bitmap.width, - height = _source$bitmap.height; - source.scanQuiet(0, 0, width, height, function (x, y) { - var hx = x / width; - var hy = y / height; - var r = Math.sqrt(Math.pow(hx - 0.5, 2) + Math.pow(hy - 0.5, 2)); - var rn = 2 * Math.pow(r, options.r); - var cosA = (hx - 0.5) / r; - var sinA = (hy - 0.5) / r; - var newX = Math.round((rn * cosA + 0.5) * width); - var newY = Math.round((rn * sinA + 0.5) * height); - var color = source.getPixelColor(newX, newY); - - _this.setPixelColor(color, x, y); - }); - /* Set center pixel color, otherwise it will be transparent */ - - this.setPixelColor(source.getPixelColor(width / 2, height / 2), width / 2, height / 2); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-fisheye/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-fisheye/dist/index.js.map deleted file mode 100644 index 4ff401d59..000000000 --- a/WechatBot/node_modules/@jimp/plugin-fisheye/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["fisheye","options","r","cb","source","cloneQuiet","bitmap","width","height","scanQuiet","x","y","hx","hy","Math","sqrt","pow","rn","cosA","sinA","newX","round","newY","color","getPixelColor","setPixelColor","call"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;eAMe;AAAA,SAAO;AACpBA,IAAAA,OADoB,qBACc;AAAA;;AAAA,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Ab;AACA,YAAMe,KAAK,GAAGnB,MAAM,CAACoB,aAAP,CAAqBJ,IAArB,EAA2BE,IAA3B,CAAd;;AAEA,QAAA,KAAI,CAACG,aAAL,CAAmBF,KAAnB,EAA0Bb,CAA1B,EAA6BC,CAA7B;AACD,OAZD;AAcA;;AACA,WAAKc,aAAL,CACErB,MAAM,CAACoB,aAAP,CAAqBjB,KAAK,GAAG,CAA7B,EAAgCC,MAAM,GAAG,CAAzC,CADF,EAEED,KAAK,GAAG,CAFV,EAGEC,MAAM,GAAG,CAHX;;AAMA,UAAI,0BAAcL,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACuB,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AApCmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern } from \"@jimp/utils\";\n\n/**\n * Creates a circle out of an image.\n * @param {object} options (optional) r: radius of effect\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default () => ({\n fisheye(options = { r: 2.5 }, cb) {\n if (typeof options === \"function\") {\n cb = options;\n options = { r: 2.5 };\n }\n\n const source = this.cloneQuiet();\n const { width, height } = source.bitmap;\n\n source.scanQuiet(0, 0, width, height, (x, y) => {\n const hx = x / width;\n const hy = y / height;\n const r = Math.sqrt(Math.pow(hx - 0.5, 2) + Math.pow(hy - 0.5, 2));\n const rn = 2 * Math.pow(r, options.r);\n const cosA = (hx - 0.5) / r;\n const sinA = (hy - 0.5) / r;\n const newX = Math.round((rn * cosA + 0.5) * width);\n const newY = Math.round((rn * sinA + 0.5) * height);\n const color = source.getPixelColor(newX, newY);\n\n this.setPixelColor(color, x, y);\n });\n\n /* Set center pixel color, otherwise it will be transparent */\n this.setPixelColor(\n source.getPixelColor(width / 2, height / 2),\n width / 2,\n height / 2\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-fisheye/index.d.ts b/WechatBot/node_modules/@jimp/plugin-fisheye/index.d.ts deleted file mode 100644 index 693b6f33b..000000000 --- a/WechatBot/node_modules/@jimp/plugin-fisheye/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Fisheye { - fishEye(opts?: { r: number }, cb?: ImageCallback): this; - fishEye(cb?: ImageCallback): this; -} - -export default function (): Fisheye; diff --git a/WechatBot/node_modules/@jimp/plugin-fisheye/package.json b/WechatBot/node_modules/@jimp/plugin-fisheye/package.json deleted file mode 100644 index 6b9f695b2..000000000 --- a/WechatBot/node_modules/@jimp/plugin-fisheye/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@jimp/plugin-fisheye", - "version": "0.16.13", - "description": "Apply a fisheye effect to an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-fisheye/src/index.js b/WechatBot/node_modules/@jimp/plugin-fisheye/src/index.js deleted file mode 100755 index 15c5b51d6..000000000 --- a/WechatBot/node_modules/@jimp/plugin-fisheye/src/index.js +++ /dev/null @@ -1,46 +0,0 @@ -import { isNodePattern } from "@jimp/utils"; - -/** - * Creates a circle out of an image. - * @param {object} options (optional) r: radius of effect - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -export default () => ({ - fisheye(options = { r: 2.5 }, cb) { - if (typeof options === "function") { - cb = options; - options = { r: 2.5 }; - } - - const source = this.cloneQuiet(); - const { width, height } = source.bitmap; - - source.scanQuiet(0, 0, width, height, (x, y) => { - const hx = x / width; - const hy = y / height; - const r = Math.sqrt(Math.pow(hx - 0.5, 2) + Math.pow(hy - 0.5, 2)); - const rn = 2 * Math.pow(r, options.r); - const cosA = (hx - 0.5) / r; - const sinA = (hy - 0.5) / r; - const newX = Math.round((rn * cosA + 0.5) * width); - const newY = Math.round((rn * sinA + 0.5) * height); - const color = source.getPixelColor(newX, newY); - - this.setPixelColor(color, x, y); - }); - - /* Set center pixel color, otherwise it will be transparent */ - this.setPixelColor( - source.getPixelColor(width / 2, height / 2), - width / 2, - height / 2 - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-fisheye/test/fisheye.test.js b/WechatBot/node_modules/@jimp/plugin-fisheye/test/fisheye.test.js deleted file mode 100755 index b8f5aa1e6..000000000 --- a/WechatBot/node_modules/@jimp/plugin-fisheye/test/fisheye.test.js +++ /dev/null @@ -1,77 +0,0 @@ -import { Jimp, mkJGD } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import fisheye from "../src"; - -const jimp = configure({ plugins: [fisheye] }, Jimp); - -describe("Fisheye", () => { - it("should create fisheye lens to image", async () => { - const imgNormal = await jimp.read( - mkJGD( - "0000000000", - "0001221000", - "0022222200", - "0122112210", - "0221001220", - "0221001220", - "0122112210", - "0022222200", - "0001221000", - "0000000000" - ) - ); - const imgBulged = await jimp.read( - mkJGD( - "0001221000", - "0221112220", - "0220000121", - "1100000112", - "2100000012", - "2100000012", - "1200000012", - "0211000222", - "0221111220", - "0012222200" - ) - ); - - imgNormal.fisheye().getJGDSync().should.be.sameJGD(imgBulged.getJGDSync()); - }); - - it("should create fisheye lens to image with radius", async () => { - const imgNormal = await jimp.read( - mkJGD( - "0000000000", - "0000000000", - "0000000000", - "0000000000", - "0001111000", - "0001111000", - "0000000000", - "0000000000", - "0000000000", - "0000000000" - ) - ); - const imgBulged = await jimp.read( - mkJGD( - "■■■■■■■■■■", - "■■■■■■■■■■", - "■■■■■■■■■■", - "■■■11111■■", - "■■111111■■", - "■■111111■■", - "■■■■111■■■", - "■■■■■■■■■■", - "■■■■■■■■■■", - "■■■■■■■■■■" - ) - ); - - imgNormal - .fisheye({ r: 1.8 }) - .getJGDSync() - .should.be.sameJGD(imgBulged.getJGDSync()); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-flip/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-flip/CHANGELOG.md deleted file mode 100644 index ecf1d4df9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-flip/CHANGELOG.md +++ /dev/null @@ -1,47 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.10.3 (Mon Apr 20 2020) - -#### 🐛 Bug Fix - -- Simplify and fix flip [#879](https://github.com/oliver-moran/jimp/pull/879) ([@skalee](https://github.com/skalee)) - -#### Authors: 1 - -- Sebastian Skałacki ([@skalee](https://github.com/skalee)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-flip/LICENSE b/WechatBot/node_modules/@jimp/plugin-flip/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-flip/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-flip/README.md b/WechatBot/node_modules/@jimp/plugin-flip/README.md deleted file mode 100644 index dd7ecaf58..000000000 --- a/WechatBot/node_modules/@jimp/plugin-flip/README.md +++ /dev/null @@ -1,30 +0,0 @@ -
- -

@jimp/plugin-flip

-

flip an image.

-
- -Flip the image horizontally or vertically. Defaults to horizontal. - -Also aliased as `mirror` - -## Usage - -- @param {boolean} horizontal a Boolean, if true the image will be flipped horizontally -- @param {boolean} vertical a Boolean, if true the image will be flipped vertically -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.flip(); - image.mirror(); - image.flip(false, true); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-flip/dist/index.js b/WechatBot/node_modules/@jimp/plugin-flip/dist/index.js deleted file mode 100755 index b3f82f1bf..000000000 --- a/WechatBot/node_modules/@jimp/plugin-flip/dist/index.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Flip the image horizontally - * @param {boolean} horizontal a Boolean, if true the image will be flipped horizontally - * @param {boolean} vertical a Boolean, if true the image will be flipped vertically - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -function flipFn(horizontal, vertical, cb) { - if (typeof horizontal !== "boolean" || typeof vertical !== "boolean") return _utils.throwError.call(this, "horizontal and vertical must be Booleans", cb); - var bitmap = Buffer.alloc(this.bitmap.data.length); - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - var _x = horizontal ? this.bitmap.width - 1 - x : x; - - var _y = vertical ? this.bitmap.height - 1 - y : y; - - var _idx = this.bitmap.width * _y + _x << 2; - - var data = this.bitmap.data.readUInt32BE(idx); - bitmap.writeUInt32BE(data, _idx); - }); - this.bitmap.data = Buffer.from(bitmap); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; -} - -var _default = function _default() { - return { - flip: flipFn, - mirror: flipFn - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-flip/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-flip/dist/index.js.map deleted file mode 100644 index afa7b12f7..000000000 --- a/WechatBot/node_modules/@jimp/plugin-flip/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["flipFn","horizontal","vertical","cb","throwError","call","bitmap","Buffer","alloc","data","length","scanQuiet","width","height","x","y","idx","_x","_y","_idx","readUInt32BE","writeUInt32BE","from","flip","mirror"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;;AAOA,SAASA,MAAT,CAAgBC,UAAhB,EAA4BC,QAA5B,EAAsCC,EAAtC,EAA0C;AACxC,MAAI,OAAOF,UAAP,KAAsB,SAAtB,IAAmC,OAAOC,QAAP,KAAoB,SAA3D,EACE,OAAOE,kBAAWC,IAAX,CACL,IADK,EAEL,0CAFK,EAGLF,EAHK,CAAP;AAMF,MAAMG,MAAM,GAAGC,MAAM,CAACC,KAAP,CAAa,KAAKF,MAAL,CAAYG,IAAZ,CAAiBC,MAA9B,CAAf;AACA,OAAKC,SAAL,CACE,CADF,EAEE,CAFF,EAGE,KAAKL,MAAL,CAAYM,KAHd,EAIE,KAAKN,MAAL,CAAYO,MAJd,EAKE,UAAUC,CAAV,EAAaC,CAAb,EAAgBC,GAAhB,EAAqB;AACnB,QAAMC,EAAE,GAAGhB,UAAU,GAAG,KAAKK,MAAL,CAAYM,KAAZ,GAAoB,CAApB,GAAwBE,CAA3B,GAA+BA,CAApD;;AACA,QAAMI,EAAE,GAAGhB,QAAQ,GAAG,KAAKI,MAAL,CAAYO,MAAZ,GAAqB,CAArB,GAAyBE,CAA5B,GAAgCA,CAAnD;;AACA,QAAMI,IAAI,GAAI,KAAKb,MAAL,CAAYM,KAAZ,GAAoBM,EAApB,GAAyBD,EAA1B,IAAiC,CAA9C;;AACA,QAAMR,IAAI,GAAG,KAAKH,MAAL,CAAYG,IAAZ,CAAiBW,YAAjB,CAA8BJ,GAA9B,CAAb;AAEAV,IAAAA,MAAM,CAACe,aAAP,CAAqBZ,IAArB,EAA2BU,IAA3B;AACD,GAZH;AAeA,OAAKb,MAAL,CAAYG,IAAZ,GAAmBF,MAAM,CAACe,IAAP,CAAYhB,MAAZ,CAAnB;;AAEA,MAAI,0BAAcH,EAAd,CAAJ,EAAuB;AACrBA,IAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,SAAO,IAAP;AACD;;eAEc;AAAA,SAAO;AACpBkB,IAAAA,IAAI,EAAEvB,MADc;AAEpBwB,IAAAA,MAAM,EAAExB;AAFY,GAAP;AAAA,C","sourcesContent":["import { isNodePattern, throwError } from \"@jimp/utils\";\n\n/**\n * Flip the image horizontally\n * @param {boolean} horizontal a Boolean, if true the image will be flipped horizontally\n * @param {boolean} vertical a Boolean, if true the image will be flipped vertically\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nfunction flipFn(horizontal, vertical, cb) {\n if (typeof horizontal !== \"boolean\" || typeof vertical !== \"boolean\")\n return throwError.call(\n this,\n \"horizontal and vertical must be Booleans\",\n cb\n );\n\n const bitmap = Buffer.alloc(this.bitmap.data.length);\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n const _x = horizontal ? this.bitmap.width - 1 - x : x;\n const _y = vertical ? this.bitmap.height - 1 - y : y;\n const _idx = (this.bitmap.width * _y + _x) << 2;\n const data = this.bitmap.data.readUInt32BE(idx);\n\n bitmap.writeUInt32BE(data, _idx);\n }\n );\n\n this.bitmap.data = Buffer.from(bitmap);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n}\n\nexport default () => ({\n flip: flipFn,\n mirror: flipFn,\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-flip/index.d.ts b/WechatBot/node_modules/@jimp/plugin-flip/index.d.ts deleted file mode 100644 index 3f1efd66d..000000000 --- a/WechatBot/node_modules/@jimp/plugin-flip/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Flip { - flip(horizontal: boolean, vertical: boolean, cb?: ImageCallback): this; - mirror( - horizontal: boolean, - vertical: boolean, - cb?: ImageCallback - ): this; -} - -export default function (): Flip; diff --git a/WechatBot/node_modules/@jimp/plugin-flip/package.json b/WechatBot/node_modules/@jimp/plugin-flip/package.json deleted file mode 100644 index 8b4f801b0..000000000 --- a/WechatBot/node_modules/@jimp/plugin-flip/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@jimp/plugin-flip", - "version": "0.16.13", - "description": "flip an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5", - "@jimp/plugin-rotate": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-flip/src/index.js b/WechatBot/node_modules/@jimp/plugin-flip/src/index.js deleted file mode 100755 index 01064ac18..000000000 --- a/WechatBot/node_modules/@jimp/plugin-flip/src/index.js +++ /dev/null @@ -1,46 +0,0 @@ -import { isNodePattern, throwError } from "@jimp/utils"; - -/** - * Flip the image horizontally - * @param {boolean} horizontal a Boolean, if true the image will be flipped horizontally - * @param {boolean} vertical a Boolean, if true the image will be flipped vertically - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -function flipFn(horizontal, vertical, cb) { - if (typeof horizontal !== "boolean" || typeof vertical !== "boolean") - return throwError.call( - this, - "horizontal and vertical must be Booleans", - cb - ); - - const bitmap = Buffer.alloc(this.bitmap.data.length); - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - const _x = horizontal ? this.bitmap.width - 1 - x : x; - const _y = vertical ? this.bitmap.height - 1 - y : y; - const _idx = (this.bitmap.width * _y + _x) << 2; - const data = this.bitmap.data.readUInt32BE(idx); - - bitmap.writeUInt32BE(data, _idx); - } - ); - - this.bitmap.data = Buffer.from(bitmap); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; -} - -export default () => ({ - flip: flipFn, - mirror: flipFn, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-flip/test/flipping.test.js b/WechatBot/node_modules/@jimp/plugin-flip/test/flipping.test.js deleted file mode 100755 index fb17d2032..000000000 --- a/WechatBot/node_modules/@jimp/plugin-flip/test/flipping.test.js +++ /dev/null @@ -1,99 +0,0 @@ -import { Jimp, mkJGD } from "@jimp/test-utils"; - -import configure from "@jimp/custom"; - -import flip from "../src"; - -const jimp = configure({ plugins: [flip] }, Jimp); - -describe("Flipping plugin", () => { - it("can flip horizontally", async () => { - const src = await jimp.read( - mkJGD( - "AAAABBBB", - "AAABAAAB", - "ABABABAB", - "CCCCCCCC", - "CCCCCCCC", - "CCCCCCCC", - "AACCCCAA" - ) - ); - - const result = src.flip(true, false); - - result - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "BBBBAAAA", - "BAAABAAA", - "BABABABA", - "CCCCCCCC", - "CCCCCCCC", - "CCCCCCCC", - "AACCCCAA" - ) - ); - }); - - it("can flip vertically", async () => { - const src = await jimp.read( - mkJGD( - "AAAABBBB", - "AAABAAAB", - "ABABABAB", - "CCCCCCCC", - "CCCCCCCC", - "CCCCCCCC", - "AACCCCAA" - ) - ); - - const result = src.flip(false, true); - - result - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "AACCCCAA", - "CCCCCCCC", - "CCCCCCCC", - "CCCCCCCC", - "ABABABAB", - "AAABAAAB", - "AAAABBBB" - ) - ); - }); - - it("can flip both horizontally and vertically at once", async () => { - const src = await jimp.read( - mkJGD( - "AAAABBBB", - "AAABAAAB", - "ABABABAB", - "CCCCCCCC", - "CCCCCCCC", - "CCCCCCCC", - "AACCCCAA" - ) - ); - - const result = src.flip(true, true); - - result - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "AACCCCAA", - "CCCCCCCC", - "CCCCCCCC", - "CCCCCCCC", - "BABABABA", - "BAAABAAA", - "BBBBAAAA" - ) - ); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-gaussian/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-gaussian/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-gaussian/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-gaussian/LICENSE b/WechatBot/node_modules/@jimp/plugin-gaussian/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-gaussian/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-gaussian/README.md b/WechatBot/node_modules/@jimp/plugin-gaussian/README.md deleted file mode 100644 index 0f15ca985..000000000 --- a/WechatBot/node_modules/@jimp/plugin-gaussian/README.md +++ /dev/null @@ -1,25 +0,0 @@ -
- -

@jimp/plugin-gaussian

-

Gaussian blur an image.

-
- -Applies a true Gaussian blur to the image (warning: this is VERY slow) - -## Usage - -- @param {number} r the pixel radius of the blur -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.gaussian(15); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-gaussian/dist/index.js b/WechatBot/node_modules/@jimp/plugin-gaussian/dist/index.js deleted file mode 100755 index d4312c8c4..000000000 --- a/WechatBot/node_modules/@jimp/plugin-gaussian/dist/index.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Applies a true Gaussian blur to the image (warning: this is VERY slow) - * @param {number} r the pixel radius of the blur - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -var _default = function _default() { - return { - gaussian: function gaussian(r, cb) { - // http://blog.ivank.net/fastest-gaussian-blur.html - if (typeof r !== "number") { - return _utils.throwError.call(this, "r must be a number", cb); - } - - if (r < 1) { - return _utils.throwError.call(this, "r must be greater than 0", cb); - } - - var rs = Math.ceil(r * 2.57); // significant radius - - var range = rs * 2 + 1; - var rr2 = r * r * 2; - var rr2pi = rr2 * Math.PI; - var weights = []; - - for (var y = 0; y < range; y++) { - weights[y] = []; - - for (var x = 0; x < range; x++) { - var dsq = Math.pow(x - rs, 2) + Math.pow(y - rs, 2); - weights[y][x] = Math.exp(-dsq / rr2) / rr2pi; - } - } - - for (var _y = 0; _y < this.bitmap.height; _y++) { - for (var _x = 0; _x < this.bitmap.width; _x++) { - var red = 0; - var green = 0; - var blue = 0; - var alpha = 0; - var wsum = 0; - - for (var iy = 0; iy < range; iy++) { - for (var ix = 0; ix < range; ix++) { - var x1 = Math.min(this.bitmap.width - 1, Math.max(0, ix + _x - rs)); - var y1 = Math.min(this.bitmap.height - 1, Math.max(0, iy + _y - rs)); - var weight = weights[iy][ix]; - - var _idx = y1 * this.bitmap.width + x1 << 2; - - red += this.bitmap.data[_idx] * weight; - green += this.bitmap.data[_idx + 1] * weight; - blue += this.bitmap.data[_idx + 2] * weight; - alpha += this.bitmap.data[_idx + 3] * weight; - wsum += weight; - } - - var idx = _y * this.bitmap.width + _x << 2; - this.bitmap.data[idx] = Math.round(red / wsum); - this.bitmap.data[idx + 1] = Math.round(green / wsum); - this.bitmap.data[idx + 2] = Math.round(blue / wsum); - this.bitmap.data[idx + 3] = Math.round(alpha / wsum); - } - } - } - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-gaussian/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-gaussian/dist/index.js.map deleted file mode 100644 index b0a9e436f..000000000 --- a/WechatBot/node_modules/@jimp/plugin-gaussian/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["gaussian","r","cb","throwError","call","rs","Math","ceil","range","rr2","rr2pi","PI","weights","y","x","dsq","exp","bitmap","height","width","red","green","blue","alpha","wsum","iy","ix","x1","min","max","y1","weight","idx","data","round"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;eAMe;AAAA,SAAO;AACpBA,IAAAA,QADoB,oBACXC,CADW,EACRC,EADQ,EACJ;AACd;AACA,UAAI,OAAOD,CAAP,KAAa,QAAjB,EAA2B;AACzB,eAAOE,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,oBAAtB,EAA4CF,EAA5C,CAAP;AACD;;AAED,UAAID,CAAC,GAAG,CAAR,EAAW;AACT,eAAOE,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,0BAAtB,EAAkDF,EAAlD,CAAP;AACD;;AAED,UAAMG,EAAE,GAAGC,IAAI,CAACC,IAAL,CAAUN,CAAC,GAAG,IAAd,CAAX,CAVc,CAUkB;;AAChC,UAAMO,KAAK,GAAGH,EAAE,GAAG,CAAL,GAAS,CAAvB;AACA,UAAMI,GAAG,GAAGR,CAAC,GAAGA,CAAJ,GAAQ,CAApB;AACA,UAAMS,KAAK,GAAGD,GAAG,GAAGH,IAAI,CAACK,EAAzB;AAEA,UAAMC,OAAO,GAAG,EAAhB;;AAEA,WAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGL,KAApB,EAA2BK,CAAC,EAA5B,EAAgC;AAC9BD,QAAAA,OAAO,CAACC,CAAD,CAAP,GAAa,EAAb;;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IAAnB,CAA5B;AACD;AACF;AACF;;AAED,UAAI,0BAActB,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AArEmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern, throwError } from \"@jimp/utils\";\n\n/**\n * Applies a true Gaussian blur to the image (warning: this is VERY slow)\n * @param {number} r the pixel radius of the blur\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default () => ({\n gaussian(r, cb) {\n // http://blog.ivank.net/fastest-gaussian-blur.html\n if (typeof r !== \"number\") {\n return throwError.call(this, \"r must be a number\", cb);\n }\n\n if (r < 1) {\n return throwError.call(this, \"r must be greater than 0\", cb);\n }\n\n const rs = Math.ceil(r * 2.57); // significant radius\n const range = rs * 2 + 1;\n const rr2 = r * r * 2;\n const rr2pi = rr2 * Math.PI;\n\n const weights = [];\n\n for (let y = 0; y < range; y++) {\n weights[y] = [];\n for (let x = 0; x < range; x++) {\n const dsq = (x - rs) ** 2 + (y - rs) ** 2;\n weights[y][x] = Math.exp(-dsq / rr2) / rr2pi;\n }\n }\n\n for (let y = 0; y < this.bitmap.height; y++) {\n for (let x = 0; x < this.bitmap.width; x++) {\n let red = 0;\n let green = 0;\n let blue = 0;\n let alpha = 0;\n let wsum = 0;\n\n for (let iy = 0; iy < range; iy++) {\n for (let ix = 0; ix < range; ix++) {\n const x1 = Math.min(\n this.bitmap.width - 1,\n Math.max(0, ix + x - rs)\n );\n const y1 = Math.min(\n this.bitmap.height - 1,\n Math.max(0, iy + y - rs)\n );\n const weight = weights[iy][ix];\n const idx = (y1 * this.bitmap.width + x1) << 2;\n\n red += this.bitmap.data[idx] * weight;\n green += this.bitmap.data[idx + 1] * weight;\n blue += this.bitmap.data[idx + 2] * weight;\n alpha += this.bitmap.data[idx + 3] * weight;\n wsum += weight;\n }\n\n const idx = (y * this.bitmap.width + x) << 2;\n\n this.bitmap.data[idx] = Math.round(red / wsum);\n this.bitmap.data[idx + 1] = Math.round(green / wsum);\n this.bitmap.data[idx + 2] = Math.round(blue / wsum);\n this.bitmap.data[idx + 3] = Math.round(alpha / wsum);\n }\n }\n }\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-gaussian/index.d.ts b/WechatBot/node_modules/@jimp/plugin-gaussian/index.d.ts deleted file mode 100644 index 4f9114c92..000000000 --- a/WechatBot/node_modules/@jimp/plugin-gaussian/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Gaussian { - gaussian(r: number, cb?: ImageCallback): this; -} - -export default function (): Gaussian; diff --git a/WechatBot/node_modules/@jimp/plugin-gaussian/package.json b/WechatBot/node_modules/@jimp/plugin-gaussian/package.json deleted file mode 100644 index c78a8cd2b..000000000 --- a/WechatBot/node_modules/@jimp/plugin-gaussian/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@jimp/plugin-gaussian", - "version": "0.16.13", - "description": "gaussian blur an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-gaussian/src/index.js b/WechatBot/node_modules/@jimp/plugin-gaussian/src/index.js deleted file mode 100755 index 21528cb66..000000000 --- a/WechatBot/node_modules/@jimp/plugin-gaussian/src/index.js +++ /dev/null @@ -1,79 +0,0 @@ -import { isNodePattern, throwError } from "@jimp/utils"; - -/** - * Applies a true Gaussian blur to the image (warning: this is VERY slow) - * @param {number} r the pixel radius of the blur - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -export default () => ({ - gaussian(r, cb) { - // http://blog.ivank.net/fastest-gaussian-blur.html - if (typeof r !== "number") { - return throwError.call(this, "r must be a number", cb); - } - - if (r < 1) { - return throwError.call(this, "r must be greater than 0", cb); - } - - const rs = Math.ceil(r * 2.57); // significant radius - const range = rs * 2 + 1; - const rr2 = r * r * 2; - const rr2pi = rr2 * Math.PI; - - const weights = []; - - for (let y = 0; y < range; y++) { - weights[y] = []; - for (let x = 0; x < range; x++) { - const dsq = (x - rs) ** 2 + (y - rs) ** 2; - weights[y][x] = Math.exp(-dsq / rr2) / rr2pi; - } - } - - for (let y = 0; y < this.bitmap.height; y++) { - for (let x = 0; x < this.bitmap.width; x++) { - let red = 0; - let green = 0; - let blue = 0; - let alpha = 0; - let wsum = 0; - - for (let iy = 0; iy < range; iy++) { - for (let ix = 0; ix < range; ix++) { - const x1 = Math.min( - this.bitmap.width - 1, - Math.max(0, ix + x - rs) - ); - const y1 = Math.min( - this.bitmap.height - 1, - Math.max(0, iy + y - rs) - ); - const weight = weights[iy][ix]; - const idx = (y1 * this.bitmap.width + x1) << 2; - - red += this.bitmap.data[idx] * weight; - green += this.bitmap.data[idx + 1] * weight; - blue += this.bitmap.data[idx + 2] * weight; - alpha += this.bitmap.data[idx + 3] * weight; - wsum += weight; - } - - const idx = (y * this.bitmap.width + x) << 2; - - this.bitmap.data[idx] = Math.round(red / wsum); - this.bitmap.data[idx + 1] = Math.round(green / wsum); - this.bitmap.data[idx + 2] = Math.round(blue / wsum); - this.bitmap.data[idx + 3] = Math.round(alpha / wsum); - } - } - } - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-invert/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-invert/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-invert/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-invert/LICENSE b/WechatBot/node_modules/@jimp/plugin-invert/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-invert/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-invert/README.md b/WechatBot/node_modules/@jimp/plugin-invert/README.md deleted file mode 100644 index e201f5844..000000000 --- a/WechatBot/node_modules/@jimp/plugin-invert/README.md +++ /dev/null @@ -1,24 +0,0 @@ -
- -

@jimp/plugin-invert

-

Invert an image's colors.

-
- -Invert an image's colors. - -## Usage - -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.invert(); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-invert/dist/index.js b/WechatBot/node_modules/@jimp/plugin-invert/dist/index.js deleted file mode 100755 index e65becc69..000000000 --- a/WechatBot/node_modules/@jimp/plugin-invert/dist/index.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Inverts the image - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -var _default = function _default() { - return { - invert: function invert(cb) { - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - this.bitmap.data[idx] = 255 - this.bitmap.data[idx]; - this.bitmap.data[idx + 1] = 255 - this.bitmap.data[idx + 1]; - this.bitmap.data[idx + 2] = 255 - this.bitmap.data[idx + 2]; - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-invert/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-invert/dist/index.js.map deleted file mode 100644 index 317ed8955..000000000 --- a/WechatBot/node_modules/@jimp/plugin-invert/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["invert","cb","scanQuiet","bitmap","width","height","x","y","idx","data","call"],"mappings":";;;;;;;AAAA;;AAEA;;;;;eAKe;AAAA,SAAO;AACpBA,IAAAA,MADoB,kBACbC,EADa,EACT;AACT,WAAKC,SAAL,CACE,CADF,EAEE,CAFF,EAGE,KAAKC,MAAL,CAAYC,KAHd,EAIE,KAAKD,MAAL,CAAYE,MAJd,EAKE,UAAUC,CAAV,EAAaC,CAAb,EAAgBC,GAAhB,EAAqB;AACnB,aAAKL,MAAL,CAAYM,IAAZ,CAAiBD,GAAjB,IAAwB,MAAM,KAAKL,MAAL,CAAYM,IAAZ,CAAiBD,GAAjB,CAA9B;AACA,aAAKL,MAAL,CAAYM,IAAZ,CAAiBD,GAAG,GAAG,CAAvB,IAA4B,MAAM,KAAKL,MAAL,CAAYM,IAAZ,CAAiBD,GAAG,GAAG,CAAvB,CAAlC;AACA,aAAKL,MAAL,CAAYM,IAAZ,CAAiBD,GAAG,GAAG,CAAvB,IAA4B,MAAM,KAAKL,MAAL,CAAYM,IAAZ,CAAiBD,GAAG,GAAG,CAAvB,CAAlC;AACD,OATH;;AAYA,UAAI,0BAAcP,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACS,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AAnBmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern } from \"@jimp/utils\";\n\n/**\n * Inverts the image\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default () => ({\n invert(cb) {\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n this.bitmap.data[idx] = 255 - this.bitmap.data[idx];\n this.bitmap.data[idx + 1] = 255 - this.bitmap.data[idx + 1];\n this.bitmap.data[idx + 2] = 255 - this.bitmap.data[idx + 2];\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-invert/index.d.ts b/WechatBot/node_modules/@jimp/plugin-invert/index.d.ts deleted file mode 100644 index 483b54307..000000000 --- a/WechatBot/node_modules/@jimp/plugin-invert/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Invert { - invert(cb?: ImageCallback): this; -} - -export default function (): Invert; diff --git a/WechatBot/node_modules/@jimp/plugin-invert/package.json b/WechatBot/node_modules/@jimp/plugin-invert/package.json deleted file mode 100644 index 093b6ca26..000000000 --- a/WechatBot/node_modules/@jimp/plugin-invert/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@jimp/plugin-invert", - "version": "0.16.13", - "description": "invert an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-invert/src/index.js b/WechatBot/node_modules/@jimp/plugin-invert/src/index.js deleted file mode 100755 index 44ad93022..000000000 --- a/WechatBot/node_modules/@jimp/plugin-invert/src/index.js +++ /dev/null @@ -1,28 +0,0 @@ -import { isNodePattern } from "@jimp/utils"; - -/** - * Inverts the image - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -export default () => ({ - invert(cb) { - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - this.bitmap.data[idx] = 255 - this.bitmap.data[idx]; - this.bitmap.data[idx + 1] = 255 - this.bitmap.data[idx + 1]; - this.bitmap.data[idx + 2] = 255 - this.bitmap.data[idx + 2]; - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-mask/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-mask/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-mask/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-mask/LICENSE b/WechatBot/node_modules/@jimp/plugin-mask/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-mask/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-mask/README.md b/WechatBot/node_modules/@jimp/plugin-mask/README.md deleted file mode 100644 index 840ce3726..000000000 --- a/WechatBot/node_modules/@jimp/plugin-mask/README.md +++ /dev/null @@ -1,26 +0,0 @@ -
- -

@jimp/plugin-mask

-

mask an image with another image.

-
- -Masks a source image on to this image using average pixel colour. A completely black pixel on the mask will turn a pixel in the image completely transparent. - -## Usage - -- @param {Jimp} src the source Jimp instance -- @param {number} x the horizontal position to blit the image -- @param {number} y the vertical position to blit the image -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - const mask = await jimp.read("test/mask.png"); - - image.mask(mask); -} -``` diff --git a/WechatBot/node_modules/@jimp/plugin-mask/dist/index.js b/WechatBot/node_modules/@jimp/plugin-mask/dist/index.js deleted file mode 100755 index 79a6f19ba..000000000 --- a/WechatBot/node_modules/@jimp/plugin-mask/dist/index.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Masks a source image on to this image using average pixel colour. A completely black pixel on the mask will turn a pixel in the image completely transparent. - * @param {Jimp} src the source Jimp instance - * @param {number} x the horizontal position to blit the image - * @param {number} y the vertical position to blit the image - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -var _default = function _default() { - return { - mask: function mask(src) { - var x = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0; - var y = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0; - var cb = arguments.length > 3 ? arguments[3] : undefined; - - if (!(src instanceof this.constructor)) { - return _utils.throwError.call(this, "The source must be a Jimp image", cb); - } - - if (typeof x !== "number" || typeof y !== "number") { - return _utils.throwError.call(this, "x and y must be numbers", cb); - } // round input - - - x = Math.round(x); - y = Math.round(y); - var w = this.bitmap.width; - var h = this.bitmap.height; - var baseImage = this; - src.scanQuiet(0, 0, src.bitmap.width, src.bitmap.height, function (sx, sy, idx) { - var destX = x + sx; - var destY = y + sy; - - if (destX >= 0 && destY >= 0 && destX < w && destY < h) { - var dstIdx = baseImage.getPixelIndex(destX, destY); - var data = this.bitmap.data; - var avg = (data[idx + 0] + data[idx + 1] + data[idx + 2]) / 3; - baseImage.bitmap.data[dstIdx + 3] *= avg / 255; - } - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-mask/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-mask/dist/index.js.map deleted file mode 100644 index 40cda5165..000000000 --- a/WechatBot/node_modules/@jimp/plugin-mask/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["mask","src","x","y","cb","constructor","throwError","call","Math","round","w","bitmap","width","h","height","baseImage","scanQuiet","sx","sy","idx","destX","destY","dstIdx","getPixelIndex","data","avg"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;;;eAQe;AAAA,SAAO;AACpBA,IAAAA,IADoB,gBACfC,GADe,EACQ;AAAA,UAAlBC,CAAkB,uEAAd,CAAc;AAAA,UAAXC,CAAW,uEAAP,CAAO;AAAA,UAAJC,EAAI;;AAC1B,UAAI,EAAEH,GAAG,YAAY,KAAKI,WAAtB,CAAJ,EAAwC;AACtC,eAAOC,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,iCAAtB,EAAyDH,EAAzD,CAAP;AACD;;AAED,UAAI,OAAOF,CAAP,KAAa,QAAb,IAAyB,OAAOC,CAAP,KAAa,QAA1C,EAAoD;AAClD,eAAOG,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,yBAAtB,EAAiDH,EAAjD,CAAP;AACD,OAPyB,CAS1B;;;AACAF,MAAAA,CAAC,GAAGM,IAAI,CAACC,KAAL,CAAWP,CAAX,CAAJ;AACAC,MAAAA,CAAC,GAAGK,IAAI,CAACC,KAAL,CAAWN,CAAX,CAAJ;AAEA,UAAMO,CAAC,GAAG,KAAKC,MAAL,CAAYC,KAAtB;AACA,UAAMC,CAAC,GAAG,KAAKF,MAAL,CAAYG,MAAtB;AACA,UAAMC,SAAS,GAAG,IAAlB;AAEAd,MAAAA,GAAG,CAACe,SAAJ,CACE,CADF,EAEE,CAFF,EAGEf,GAAG,CAACU,MAAJ,CAAWC,KAHb,EAIEX,GAAG,CAACU,MAAJ,CAAWG,MAJb,EAKE,UAAUG,EAAV,EAAcC,EAAd,EAAkBC,GAAlB,EAAuB;AACrB,YAAMC,KAAK,GAAGlB,CAAC,GAAGe,EAAlB;AACA,YAAMI,KAAK,GAAGlB,CAAC,GAAGe,EAAlB;;AAEA,YAAIE,KAAK,IAAI,CAAT,IAAcC,KAAK,IAAI,CAAvB,IAA4BD,KAAK,GAAGV,CAApC,IAAyCW,KAAK,GAAGR,CAArD,EAAwD;AACtD,cAAMS,MAAM,GAAGP,SAAS,CAACQ,aAAV,CAAwBH,KAAxB,EAA+BC,KAA/B,CAAf;AADsD,cAE9CG,IAF8C,GAErC,KAAKb,MAFgC,CAE9Ca,IAF8C;AAGtD,cAAMC,GAAG,GAAG,CAACD,IAAI,CAACL,GAAG,GAAG,CAAP,CAAJ,GAAgBK,IAAI,CAACL,GAAG,GAAG,CAAP,CAApB,GAAgCK,IAAI,CAACL,GAAG,GAAG,CAAP,CAArC,IAAkD,CAA9D;AAEAJ,UAAAA,SAAS,CAACJ,MAAV,CAAiBa,IAAjB,CAAsBF,MAAM,GAAG,CAA/B,KAAqCG,GAAG,GAAG,GAA3C;AACD;AACF,OAhBH;;AAmBA,UAAI,0BAAcrB,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACG,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AA1CmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern, throwError } from \"@jimp/utils\";\n\n/**\n * Masks a source image on to this image using average pixel colour. A completely black pixel on the mask will turn a pixel in the image completely transparent.\n * @param {Jimp} src the source Jimp instance\n * @param {number} x the horizontal position to blit the image\n * @param {number} y the vertical position to blit the image\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default () => ({\n mask(src, x = 0, y = 0, cb) {\n if (!(src instanceof this.constructor)) {\n return throwError.call(this, \"The source must be a Jimp image\", cb);\n }\n\n if (typeof x !== \"number\" || typeof y !== \"number\") {\n return throwError.call(this, \"x and y must be numbers\", cb);\n }\n\n // round input\n x = Math.round(x);\n y = Math.round(y);\n\n const w = this.bitmap.width;\n const h = this.bitmap.height;\n const baseImage = this;\n\n src.scanQuiet(\n 0,\n 0,\n src.bitmap.width,\n src.bitmap.height,\n function (sx, sy, idx) {\n const destX = x + sx;\n const destY = y + sy;\n\n if (destX >= 0 && destY >= 0 && destX < w && destY < h) {\n const dstIdx = baseImage.getPixelIndex(destX, destY);\n const { data } = this.bitmap;\n const avg = (data[idx + 0] + data[idx + 1] + data[idx + 2]) / 3;\n\n baseImage.bitmap.data[dstIdx + 3] *= avg / 255;\n }\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-mask/index.d.ts b/WechatBot/node_modules/@jimp/plugin-mask/index.d.ts deleted file mode 100644 index 8effa592a..000000000 --- a/WechatBot/node_modules/@jimp/plugin-mask/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ImageCallback, Jimp } from "@jimp/core"; - -interface Mask { - mask(src: Jimp, x: number, y: number, cb?: ImageCallback): this; -} - -export default function (): Mask; diff --git a/WechatBot/node_modules/@jimp/plugin-mask/package.json b/WechatBot/node_modules/@jimp/plugin-mask/package.json deleted file mode 100644 index eea0bd57b..000000000 --- a/WechatBot/node_modules/@jimp/plugin-mask/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@jimp/plugin-mask", - "version": "0.16.13", - "description": "mask an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-mask/src/index.js b/WechatBot/node_modules/@jimp/plugin-mask/src/index.js deleted file mode 100755 index 2a6b32d4c..000000000 --- a/WechatBot/node_modules/@jimp/plugin-mask/src/index.js +++ /dev/null @@ -1,54 +0,0 @@ -import { isNodePattern, throwError } from "@jimp/utils"; - -/** - * Masks a source image on to this image using average pixel colour. A completely black pixel on the mask will turn a pixel in the image completely transparent. - * @param {Jimp} src the source Jimp instance - * @param {number} x the horizontal position to blit the image - * @param {number} y the vertical position to blit the image - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -export default () => ({ - mask(src, x = 0, y = 0, cb) { - if (!(src instanceof this.constructor)) { - return throwError.call(this, "The source must be a Jimp image", cb); - } - - if (typeof x !== "number" || typeof y !== "number") { - return throwError.call(this, "x and y must be numbers", cb); - } - - // round input - x = Math.round(x); - y = Math.round(y); - - const w = this.bitmap.width; - const h = this.bitmap.height; - const baseImage = this; - - src.scanQuiet( - 0, - 0, - src.bitmap.width, - src.bitmap.height, - function (sx, sy, idx) { - const destX = x + sx; - const destY = y + sy; - - if (destX >= 0 && destY >= 0 && destX < w && destY < h) { - const dstIdx = baseImage.getPixelIndex(destX, destY); - const { data } = this.bitmap; - const avg = (data[idx + 0] + data[idx + 1] + data[idx + 2]) / 3; - - baseImage.bitmap.data[dstIdx + 3] *= avg / 255; - } - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-mask/test/mask.test.js b/WechatBot/node_modules/@jimp/plugin-mask/test/mask.test.js deleted file mode 100755 index 373bc099e..000000000 --- a/WechatBot/node_modules/@jimp/plugin-mask/test/mask.test.js +++ /dev/null @@ -1,173 +0,0 @@ -import { Jimp, mkJGD } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import mask from "../src"; - -const jimp = configure({ plugins: [mask] }, Jimp); - -describe("Mask", () => { - let imgSrcOpaq; - let imgSrcAlpa; - let maskGrayBig; - let maskGraySmall; - let maskColor; - - before((done) => { - Promise.all([ - jimp.read(mkJGD("▴□▾□■□", "■▴■▾■□", "■□▴□▾□", "■□■▴■▾")), - jimp.read(mkJGD("▴▵▾▿", "▴▵▾▿", "▴▵▾▿")), - jimp.read(mkJGD("048840", "8CFFC8", "8CFFC8", "048840")), - jimp.read(mkJGD("0369", "369C", "69CF")), - jimp.read(mkJGD("▴▴▾▾", "▪▪▰▰", "□□□□")), - ]) - .then((imgs) => { - imgSrcOpaq = imgs[0]; - imgSrcAlpa = imgs[1]; - maskGrayBig = imgs[2]; - maskGraySmall = imgs[3]; - maskColor = imgs[4]; - done(); - }) - .catch(done); - }); - - it("Affect opaque image with a gray mask with the same size", () => { - imgSrcOpaq - .clone() - .mask(maskGrayBig) - .getJGDSync() - .should.be.sameJGD({ - width: 6, - height: 4, - data: [ - 0xff000000, 0xffffff44, 0x0000ff88, 0xffffff88, 0x00000044, - 0xffffff00, 0x00000088, 0xff0000cc, 0x000000ff, 0x0000ffff, - 0x000000cc, 0xffffff88, 0x00000088, 0xffffffcc, 0xff0000ff, - 0xffffffff, 0x0000ffcc, 0xffffff88, 0x00000000, 0xffffff44, - 0x00000088, 0xff000088, 0x00000044, 0x0000ff00, - ], - }); - }); - - it("Affect opaque image with a gray mask with the same size, blited", () => { - imgSrcOpaq - .clone() - .mask(maskGrayBig, 1, 1) - .getJGDSync() - .should.be.sameJGD({ - width: 6, - height: 4, - data: [ - 0xff0000ff, 0xffffffff, 0x0000ffff, 0xffffffff, 0x000000ff, - 0xffffffff, 0x000000ff, 0xff000000, 0x00000044, 0x0000ff88, - 0x00000088, 0xffffff44, 0x000000ff, 0xffffff88, 0xff0000cc, - 0xffffffff, 0x0000ffff, 0xffffffcc, 0x000000ff, 0xffffff88, - 0x000000cc, 0xff0000ff, 0x000000ff, 0x0000ffcc, - ], - }); - }); - - it("Affect opaque image with a gray mask with the same size, blited negative", () => { - imgSrcOpaq - .clone() - .mask(maskGrayBig, -1, -1) - .getJGDSync() - .should.be.sameJGD({ - width: 6, - height: 4, - data: [ - 0xff0000cc, 0xffffffff, 0x0000ffff, 0xffffffcc, 0x00000088, - 0xffffffff, 0x000000cc, 0xff0000ff, 0x000000ff, 0x0000ffcc, - 0x00000088, 0xffffffff, 0x00000044, 0xffffff88, 0xff000088, - 0xffffff44, 0x0000ff00, 0xffffffff, 0x000000ff, 0xffffffff, - 0x000000ff, 0xff0000ff, 0x000000ff, 0x0000ffff, - ], - }); - }); - - it("Affect opaque image with a smaller gray mask", () => { - imgSrcOpaq - .clone() - .mask(maskGraySmall) - .getJGDSync() - .should.be.sameJGD({ - width: 6, - height: 4, - data: [ - 0xff000000, 0xffffff33, 0x0000ff66, 0xffffff99, 0x000000ff, - 0xffffffff, 0x00000033, 0xff000066, 0x00000099, 0x0000ffcc, - 0x000000ff, 0xffffffff, 0x00000066, 0xffffff99, 0xff0000cc, - 0xffffffff, 0x0000ffff, 0xffffffff, 0x000000ff, 0xffffffff, - 0x000000ff, 0xff0000ff, 0x000000ff, 0x0000ffff, - ], - }); - }); - - it("Affect opaque image with a smaller gray mask, blited", () => { - imgSrcOpaq - .clone() - .mask(maskGraySmall, 1, 1) - .getJGDSync() - .should.be.sameJGD({ - width: 6, - height: 4, - data: [ - 0xff0000ff, 0xffffffff, 0x0000ffff, 0xffffffff, 0x000000ff, - 0xffffffff, 0x000000ff, 0xff000000, 0x00000033, 0x0000ff66, - 0x00000099, 0xffffffff, 0x000000ff, 0xffffff33, 0xff000066, - 0xffffff99, 0x0000ffcc, 0xffffffff, 0x000000ff, 0xffffff66, - 0x00000099, 0xff0000cc, 0x000000ff, 0x0000ffff, - ], - }); - }); - - it("Affect alpha image with a bigger gray mask", () => { - imgSrcAlpa - .clone() - .mask(maskGrayBig) - .getJGDSync() - .should.be.sameJGD({ - width: 4, - height: 3, - data: [ - 0xff000000, 0xff000021, 0x0000ff88, 0x0000ff43, 0xff000088, - 0xff000065, 0x0000ffff, 0x0000ff7f, 0xff000088, 0xff000065, - 0x0000ffff, 0x0000ff7f, - ], - }); - }); - - it("Affect alpha image with a bigger gray mask, blited", () => { - imgSrcAlpa - .clone() - .mask(maskGrayBig, -1, -1) - .getJGDSync() - .should.be.sameJGD({ - width: 4, - height: 3, - data: [ - 0xff0000cc, 0xff00007f, 0x0000ffff, 0x0000ff65, 0xff0000cc, - 0xff00007f, 0x0000ffff, 0x0000ff65, 0xff000044, 0xff000043, - 0x0000ff88, 0x0000ff21, - ], - }); - }); - - it("Affect opaque image with a colored mask", () => { - imgSrcOpaq - .clone() - .mask(maskColor, 1, 1) - .getJGDSync() - .should.be.sameJGD({ - width: 6, - height: 4, - data: [ - 0xff0000ff, 0xffffffff, 0x0000ffff, 0xffffffff, 0x000000ff, - 0xffffffff, 0x000000ff, 0xff000055, 0x00000055, 0x0000ff55, - 0x00000055, 0xffffffff, 0x000000ff, 0xffffffaa, 0xff0000aa, - 0xffffffaa, 0x0000ffaa, 0xffffffff, 0x000000ff, 0xffffffff, - 0x000000ff, 0xff0000ff, 0x000000ff, 0x0000ffff, - ], - }); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-normalize/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-normalize/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-normalize/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-normalize/LICENSE b/WechatBot/node_modules/@jimp/plugin-normalize/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-normalize/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-normalize/README.md b/WechatBot/node_modules/@jimp/plugin-normalize/README.md deleted file mode 100644 index 19ba914d5..000000000 --- a/WechatBot/node_modules/@jimp/plugin-normalize/README.md +++ /dev/null @@ -1,24 +0,0 @@ -
- -

@jimp/plugin-normalize

-

Normalize an image's colors.

-
- -Normalizes an images color by computing a histogram. - -## Usage - -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.normalize(); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-normalize/dist/index.js b/WechatBot/node_modules/@jimp/plugin-normalize/dist/index.js deleted file mode 100755 index d5a04e60e..000000000 --- a/WechatBot/node_modules/@jimp/plugin-normalize/dist/index.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Get an image's histogram - * @return {object} An object with an array of color occurrence counts for each channel (r,g,b) - */ -function histogram() { - var histogram = { - r: new Array(256).fill(0), - g: new Array(256).fill(0), - b: new Array(256).fill(0) - }; - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, index) { - histogram.r[this.bitmap.data[index + 0]]++; - histogram.g[this.bitmap.data[index + 1]]++; - histogram.b[this.bitmap.data[index + 2]]++; - }); - return histogram; -} -/** - * Normalize values - * @param {integer} value Pixel channel value. - * @param {integer} min Minimum value for channel - * @param {integer} max Maximum value for channel - * @return {integer} normalized values - */ - - -var _normalize = function normalize(value, min, max) { - return (value - min) * 255 / (max - min); -}; - -var getBounds = function getBounds(histogramChannel) { - return [histogramChannel.findIndex(function (value) { - return value > 0; - }), 255 - histogramChannel.slice().reverse().findIndex(function (value) { - return value > 0; - })]; -}; -/** - * Normalizes the image - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - - -var _default = function _default() { - return { - normalize: function normalize(cb) { - var h = histogram.call(this); // store bounds (minimum and maximum values) - - var bounds = { - r: getBounds(h.r), - g: getBounds(h.g), - b: getBounds(h.b) - }; // apply value transformations - - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - var r = this.bitmap.data[idx + 0]; - var g = this.bitmap.data[idx + 1]; - var b = this.bitmap.data[idx + 2]; - this.bitmap.data[idx + 0] = _normalize(r, bounds.r[0], bounds.r[1]); - this.bitmap.data[idx + 1] = _normalize(g, bounds.g[0], bounds.g[1]); - this.bitmap.data[idx + 2] = _normalize(b, bounds.b[0], bounds.b[1]); - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-normalize/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-normalize/dist/index.js.map deleted file mode 100644 index 5d2e75a74..000000000 --- a/WechatBot/node_modules/@jimp/plugin-normalize/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["histogram","r","Array","fill","g","b","scanQuiet","bitmap","width","height","x","y","index","data","normalize","value","min","max","getBounds","histogramChannel","findIndex","slice","reverse","cb","h","call","bounds","idx"],"mappings":";;;;;;;AAAA;;AAEA;;;;AAIA,SAASA,SAAT,GAAqB;AACnB,MAAMA,SAAS,GAAG;AAChBC,IAAAA,CAAC,EAAE,IAAIC,KAAJ,CAAU,GAAV,EAAeC,IAAf,CAAoB,CAApB,CADa;AAEhBC,IAAAA,CAAC,EAAE,IAAIF,KAAJ,CAAU,GAAV,EAAeC,IAAf,CAAoB,CAApB,CAFa;AAGhBE,IAAAA,CAAC,EAAE,IAAIH,KAAJ,CAAU,GAAV,EAAeC,IAAf,CAAoB,CAApB;AAHa,GAAlB;AAMA,OAAKG,SAAL,CACE,CADF,EAEE,CAFF,EAGE,KAAKC,MAAL,CAAYC,KAHd,EAIE,KAAKD,MAAL,CAAYE,MAJd,EAKE,UAAUC,CAAV,EAAaC,CAAb,EAAgBC,KAAhB,EAAuB;AACrBZ,IAAAA,SAAS,CAACC,CAAV,CAAY,KAAKM,MAAL,CAAYM,IAAZ,CAAiBD,KAAK,GAAG,CAAzB,CAAZ;AACAZ,IAAAA,SAAS,CAACI,CAAV,CAAY,KAAKG,MAAL,CAAYM,IAAZ,CAAiBD,KAAK,GAAG,CAAzB,CAAZ;AACAZ,IAAAA,SAAS,CAACK,CAAV,CAAY,KAAKE,MAAL,CAAYM,IAAZ,CAAiBD,KAAK,GAAG,CAAzB,CAAZ;AACD,GATH;AAYA,SAAOZ,SAAP;AACD;AAED;;;;;;;;;AAOA,IAAMc,UAAS,GAAG,SAAZA,SAAY,CAAUC,KAAV,EAAiBC,GAAjB,EAAsBC,GAAtB,EAA2B;AAC3C,SAAQ,C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M,IAAZ,CAAiBc,GAAG,GAAG,CAAvB,IAA4Bb,UAAS,CAACb,CAAD,EAAIyB,MAAM,CAACzB,CAAP,CAAS,CAAT,CAAJ,EAAiByB,MAAM,CAACzB,CAAP,CAAS,CAAT,CAAjB,CAArC;AACA,aAAKM,MAAL,CAAYM,IAAZ,CAAiBc,GAAG,GAAG,CAAvB,IAA4Bb,UAAS,CAACV,CAAD,EAAIsB,MAAM,CAACtB,CAAP,CAAS,CAAT,CAAJ,EAAiBsB,MAAM,CAACtB,CAAP,CAAS,CAAT,CAAjB,CAArC;AACA,aAAKG,MAAL,CAAYM,IAAZ,CAAiBc,GAAG,GAAG,CAAvB,IAA4Bb,UAAS,CAACT,CAAD,EAAIqB,MAAM,CAACrB,CAAP,CAAS,CAAT,CAAJ,EAAiBqB,MAAM,CAACrB,CAAP,CAAS,CAAT,CAAjB,CAArC;AACD,OAbH;;AAgBA,UAAI,0BAAckB,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AAjCmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern } from \"@jimp/utils\";\n\n/**\n * Get an image's histogram\n * @return {object} An object with an array of color occurrence counts for each channel (r,g,b)\n */\nfunction histogram() {\n const histogram = {\n r: new Array(256).fill(0),\n g: new Array(256).fill(0),\n b: new Array(256).fill(0),\n };\n\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, index) {\n histogram.r[this.bitmap.data[index + 0]]++;\n histogram.g[this.bitmap.data[index + 1]]++;\n histogram.b[this.bitmap.data[index + 2]]++;\n }\n );\n\n return histogram;\n}\n\n/**\n * Normalize values\n * @param {integer} value Pixel channel value.\n * @param {integer} min Minimum value for channel\n * @param {integer} max Maximum value for channel\n * @return {integer} normalized values\n */\nconst normalize = function (value, min, max) {\n return ((value - min) * 255) / (max - min);\n};\n\nconst getBounds = function (histogramChannel) {\n return [\n histogramChannel.findIndex((value) => value > 0),\n 255 -\n histogramChannel\n .slice()\n .reverse()\n .findIndex((value) => value > 0),\n ];\n};\n\n/**\n * Normalizes the image\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default () => ({\n normalize(cb) {\n const h = histogram.call(this);\n\n // store bounds (minimum and maximum values)\n const bounds = {\n r: getBounds(h.r),\n g: getBounds(h.g),\n b: getBounds(h.b),\n };\n\n // apply value transformations\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n const r = this.bitmap.data[idx + 0];\n const g = this.bitmap.data[idx + 1];\n const b = this.bitmap.data[idx + 2];\n\n this.bitmap.data[idx + 0] = normalize(r, bounds.r[0], bounds.r[1]);\n this.bitmap.data[idx + 1] = normalize(g, bounds.g[0], bounds.g[1]);\n this.bitmap.data[idx + 2] = normalize(b, bounds.b[0], bounds.b[1]);\n }\n );\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-normalize/index.d.ts b/WechatBot/node_modules/@jimp/plugin-normalize/index.d.ts deleted file mode 100644 index 1ae996dcf..000000000 --- a/WechatBot/node_modules/@jimp/plugin-normalize/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Normalize { - normalize(cb?: ImageCallback): this; -} - -export default function (): Normalize; diff --git a/WechatBot/node_modules/@jimp/plugin-normalize/package.json b/WechatBot/node_modules/@jimp/plugin-normalize/package.json deleted file mode 100644 index 3da939c1a..000000000 --- a/WechatBot/node_modules/@jimp/plugin-normalize/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@jimp/plugin-normalize", - "version": "0.16.13", - "description": "normalize an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-normalize/src/index.js b/WechatBot/node_modules/@jimp/plugin-normalize/src/index.js deleted file mode 100755 index 57a696cac..000000000 --- a/WechatBot/node_modules/@jimp/plugin-normalize/src/index.js +++ /dev/null @@ -1,90 +0,0 @@ -import { isNodePattern } from "@jimp/utils"; - -/** - * Get an image's histogram - * @return {object} An object with an array of color occurrence counts for each channel (r,g,b) - */ -function histogram() { - const histogram = { - r: new Array(256).fill(0), - g: new Array(256).fill(0), - b: new Array(256).fill(0), - }; - - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, index) { - histogram.r[this.bitmap.data[index + 0]]++; - histogram.g[this.bitmap.data[index + 1]]++; - histogram.b[this.bitmap.data[index + 2]]++; - } - ); - - return histogram; -} - -/** - * Normalize values - * @param {integer} value Pixel channel value. - * @param {integer} min Minimum value for channel - * @param {integer} max Maximum value for channel - * @return {integer} normalized values - */ -const normalize = function (value, min, max) { - return ((value - min) * 255) / (max - min); -}; - -const getBounds = function (histogramChannel) { - return [ - histogramChannel.findIndex((value) => value > 0), - 255 - - histogramChannel - .slice() - .reverse() - .findIndex((value) => value > 0), - ]; -}; - -/** - * Normalizes the image - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -export default () => ({ - normalize(cb) { - const h = histogram.call(this); - - // store bounds (minimum and maximum values) - const bounds = { - r: getBounds(h.r), - g: getBounds(h.g), - b: getBounds(h.b), - }; - - // apply value transformations - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - const r = this.bitmap.data[idx + 0]; - const g = this.bitmap.data[idx + 1]; - const b = this.bitmap.data[idx + 2]; - - this.bitmap.data[idx + 0] = normalize(r, bounds.r[0], bounds.r[1]); - this.bitmap.data[idx + 1] = normalize(g, bounds.g[0], bounds.g[1]); - this.bitmap.data[idx + 2] = normalize(b, bounds.b[0], bounds.b[1]); - } - ); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-normalize/test/normalize.test.js b/WechatBot/node_modules/@jimp/plugin-normalize/test/normalize.test.js deleted file mode 100755 index fc67fec76..000000000 --- a/WechatBot/node_modules/@jimp/plugin-normalize/test/normalize.test.js +++ /dev/null @@ -1,39 +0,0 @@ -import { Jimp, mkJGD } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import normalize from "../src"; - -const jimp = configure({ plugins: [normalize] }, Jimp); - -describe("Normalize", () => { - it("change grayscale image", async () => { - const image = await jimp.read(mkJGD("36▦", "6▦9", "▦9C")); - - image - .normalize() - .getJGDSync() - .should.be.sameJGD(mkJGD("■5▦", "5▦A", "▦A□")); - }); - - it("change red/blue image", async () => { - const image = await jimp.read({ - width: 3, - height: 2, - data: [ - 0x000000ff, 0x400022ff, 0x40002200, 0x400000ff, 0x000022ff, 0x800055ff, - ], - }); - - image - .normalize() - .getJGDSync() - .should.be.sameJGD({ - width: 3, - height: 2, - data: [ - 0x000000ff, 0x7f0066ff, 0x7f006600, 0x7f0000ff, 0x000066ff, - 0xff00ffff, - ], - }); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-print/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-print/CHANGELOG.md deleted file mode 100644 index 23f8c511f..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/CHANGELOG.md +++ /dev/null @@ -1,71 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### 🐛 Bug Fix - -- Update README.md [#1120](https://github.com/jimp-dev/jimp/pull/1120) ([@mfuatnuroglu](https://github.com/mfuatnuroglu)) - -#### ⚠️ Pushed to `master` - -- try this ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- [@mfuatnuroglu](https://github.com/mfuatnuroglu) -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.10.1 (Sun Apr 05 2020) - -#### 📝 Documentation - -- Fix a `loadFont` and case inconsistency of `jimp` [#868](https://github.com/oliver-moran/jimp/pull/868) ([@xinbenlv](https://github.com/xinbenlv)) - -#### Authors: 1 - -- xinbenlv ([@xinbenlv](https://github.com/xinbenlv)) - ---- - -# v0.9.5 (Tue Mar 03 2020) - -#### 🐛 Bug Fix - -- `@jimp/plugin-print` - - Export font type [#838](https://github.com/oliver-moran/jimp/pull/838) ([@DomiR](https://github.com/DomiR)) - -#### 📝 Documentation - -- `@jimp/plugin-print` - - Added ttf2fnt.com to the list [#845](https://github.com/oliver-moran/jimp/pull/845) ([@mbejda](https://github.com/mbejda)) - -#### Authors: 1 - -- Dominique Rau ([@DomiR](https://github.com/DomiR)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-print/LICENSE b/WechatBot/node_modules/@jimp/plugin-print/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-print/README.md b/WechatBot/node_modules/@jimp/plugin-print/README.md deleted file mode 100644 index 4d395c87e..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/README.md +++ /dev/null @@ -1,173 +0,0 @@ -
- -

@jimp/plugin-print

-

Print text on an image.

-
- -Jimp supports basic typography using BMFont format (.fnt) even ones in different languages! Just find a bitmap font that is suitable [bitmap fonts](https://en.wikipedia.org/wiki/Bitmap_fonts). - -Online tools are also available to convert TTF fonts to BMFont format. They can be used to create color font or sprite packs. - -:star: [ttf2fnt](https://ttf2fnt.com/) - -:star: [Littera](http://kvazars.com/littera/) - -:star: [Hiero](https://github.com/libgdx/libgdx/wiki/Hiero) - -## Included Fonts - -- `Jimp.FONT_SANS_8_BLACK` -- `Jimp.FONT_SANS_10_BLACK` -- `Jimp.FONT_SANS_12_BLACK` -- `Jimp.FONT_SANS_14_BLACK` -- `Jimp.FONT_SANS_16_BLACK` -- `Jimp.FONT_SANS_32_BLACK` -- `Jimp.FONT_SANS_64_BLACK` -- `Jimp.FONT_SANS_128_BLACK` -- `Jimp.FONT_SANS_8_WHITE` -- `Jimp.FONT_SANS_16_WHITE` -- `Jimp.FONT_SANS_32_WHITE` -- `Jimp.FONT_SANS_64_WHITE` -- `Jimp.FONT_SANS_128_WHITE` - -## loadFont - -Loads a bitmap font from a file - -- @param {string} file the file path of a .fnt file -- @param {function(Error, Jimp)} cb (optional) a function to call when the font is loaded -- @returns {Promise} a promise - -```js -import Jimp from "jimp"; - -async function main() { - const font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK); -} - -main(); -``` - -## print - -Draws a text on a image on a given boundary - -- @param {Jimp} font a bitmap font loaded from `Jimp.loadFont` command -- @param {number} x the x position to start drawing the text -- @param {number} y the y position to start drawing the text -- @param {string} text the text to draw (string or object with `text`, `alignmentX`, and/or `alignmentY`) -- @param {number} maxWidth (optional) the boundary width to draw in -- @param {number} maxHeight (optional) the boundary height to draw in -- @param {function(Error, Jimp)} cb (optional) a function to call when the text is written - -```js -import Jimp from "jimp"; - -async function main() { - const font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK); - const image = await Jimp.read(1000, 1000, 0x0000ffff); - - image.print(font, 10, 10, "Hello World!"); -} - -main(); -``` - -### Alignment - -Alignment modes are supported by replacing the `str` argument with an object containing `text`, `alignmentX` and `alignmentY`. `alignmentX` defaults to `Jimp.HORIZONTAL_ALIGN_LEFT` and `alignmentY` defaults to `Jimp.VERTICAL_ALIGN_TOP`. - -You can align text using the following constants. - -```js -Jimp.HORIZONTAL_ALIGN_LEFT; -Jimp.HORIZONTAL_ALIGN_CENTER; -Jimp.HORIZONTAL_ALIGN_RIGHT; - -Jimp.VERTICAL_ALIGN_TOP; -Jimp.VERTICAL_ALIGN_MIDDLE; -Jimp.VERTICAL_ALIGN_BOTTOM; -``` - -Default align modes for `image.print` are: - -```js -{ - alignmentX: Jimp.HORIZONTAL_ALIGN_LEFT, - alignmentY: Jimp.VERTICAL_ALIGN_TOP -} -``` - -```js -const font = await Jimp.loadFont(pathOrURL); - -// prints 'Hello world!' on an image, middle and center-aligned -image.print( - font, - x, - y, - { - text: "Hello world!", - alignmentX: Jimp.HORIZONTAL_ALIGN_CENTER, - alignmentY: Jimp.VERTICAL_ALIGN_MIDDLE, - }, - maxWidth, - maxHeight -); -``` - -**Note**: although `maxWidth` and `maxHeight` parameters are optional to `print()`, they are needed to correctly align the text using the requested alignment mode. - -#### Staggering Text - -If you need to stagger text position along the x or y-axis the print method also returns the final coordinates as an argument to the callback. - -```js -const font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK); - -image.print( - font, - 10, - 10, - "Hello world that wraps!", - 50, - (err, image, { x, y }) => { - image.print(font, x, y + 20, "More text on another line", 50); - } -); -``` - -## measureText - -Measure how wide a piece of text will be. - -```js -import Jimp from "jimp"; - -async function main() { - const font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK); - const image = await Jimp.read(1000, 1000, 0x0000ffff); - - Jimp.measureText(font, "Hello World!"); -} - -main(); -``` - -## measureTextHeight - -Measure how tall a piece of text will be. - -```js -import Jimp from "jimp"; - -async function main() { - const font = await Jimp.loadFont(Jimp.FONT_SANS_32_BLACK); - const image = await Jimp.read(1000, 1000, 0x0000ffff); - - Jimp.measureTextHeight(font, "Hello World!", 100); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-print/dist/index.js b/WechatBot/node_modules/@jimp/plugin-print/dist/index.js deleted file mode 100755 index 8dd27c05b..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/dist/index.js +++ /dev/null @@ -1,261 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof")); - -var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); - -var _path = _interopRequireDefault(require("path")); - -var _loadBmfont = _interopRequireDefault(require("load-bmfont")); - -var _utils = require("@jimp/utils"); - -var _measureText = require("./measure-text"); - -function xOffsetBasedOnAlignment(constants, font, line, maxWidth, alignment) { - if (alignment === constants.HORIZONTAL_ALIGN_LEFT) { - return 0; - } - - if (alignment === constants.HORIZONTAL_ALIGN_CENTER) { - return (maxWidth - (0, _measureText.measureText)(font, line)) / 2; - } - - return maxWidth - (0, _measureText.measureText)(font, line); -} - -function drawCharacter(image, font, x, y, _char) { - if (_char.width > 0 && _char.height > 0) { - var characterPage = font.pages[_char.page]; - image.blit(characterPage, x + _char.xoffset, y + _char.yoffset, _char.x, _char.y, _char.width, _char.height); - } - - return image; -} - -function printText(font, x, y, text, defaultCharWidth) { - for (var i = 0; i < text.length; i++) { - var _char2 = void 0; - - if (font.chars[text[i]]) { - _char2 = text[i]; - } else if (/\s/.test(text[i])) { - _char2 = ""; - } else { - _char2 = "?"; - } - - var fontChar = font.chars[_char2] || {}; - var fontKerning = font.kernings[_char2]; - drawCharacter(this, font, x, y, fontChar || {}); - var kerning = fontKerning && fontKerning[text[i + 1]] ? fontKerning[text[i + 1]] : 0; - x += kerning + (fontChar.xadvance || defaultCharWidth); - } -} - -function splitLines(font, text, maxWidth) { - var words = text.split(" "); - var lines = []; - var currentLine = []; - var longestLine = 0; - words.forEach(function (word) { - var line = [].concat((0, _toConsumableArray2["default"])(currentLine), [word]).join(" "); - var length = (0, _measureText.measureText)(font, line); - - if (length <= maxWidth) { - if (length > longestLine) { - longestLine = length; - } - - currentLine.push(word); - } else { - lines.push(currentLine); - currentLine = [word]; - } - }); - lines.push(currentLine); - return { - lines: lines, - longestLine: longestLine - }; -} - -function loadPages(Jimp, dir, pages) { - var newPages = pages.map(function (page) { - return Jimp.read(dir + "/" + page); - }); - return Promise.all(newPages); -} - -var dir = process.env.DIRNAME || "".concat(__dirname, "/../"); - -var _default = function _default() { - return { - constants: { - measureText: _measureText.measureText, - measureTextHeight: _measureText.measureTextHeight, - FONT_SANS_8_BLACK: _path["default"].join(dir, "fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt"), - FONT_SANS_10_BLACK: _path["default"].join(dir, "fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt"), - FONT_SANS_12_BLACK: _path["default"].join(dir, "fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt"), - FONT_SANS_14_BLACK: _path["default"].join(dir, "fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt"), - FONT_SANS_16_BLACK: _path["default"].join(dir, "fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt"), - FONT_SANS_32_BLACK: _path["default"].join(dir, "fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt"), - FONT_SANS_64_BLACK: _path["default"].join(dir, "fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt"), - FONT_SANS_128_BLACK: _path["default"].join(dir, "fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt"), - FONT_SANS_8_WHITE: _path["default"].join(dir, "fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt"), - FONT_SANS_16_WHITE: _path["default"].join(dir, "fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt"), - FONT_SANS_32_WHITE: _path["default"].join(dir, "fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt"), - FONT_SANS_64_WHITE: _path["default"].join(dir, "fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt"), - FONT_SANS_128_WHITE: _path["default"].join(dir, "fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt"), - - /** - * Loads a bitmap font from a file - * @param {string} file the file path of a .fnt file - * @param {function(Error, Jimp)} cb (optional) a function to call when the font is loaded - * @returns {Promise} a promise - */ - loadFont: function loadFont(file, cb) { - var _this = this; - - if (typeof file !== "string") return _utils.throwError.call(this, "file must be a string", cb); - return new Promise(function (resolve, reject) { - cb = cb || function (err, font) { - if (err) reject(err);else resolve(font); - }; - - (0, _loadBmfont["default"])(file, function (err, font) { - var chars = {}; - var kernings = {}; - - if (err) { - return _utils.throwError.call(_this, err, cb); - } - - for (var i = 0; i < font.chars.length; i++) { - chars[String.fromCharCode(font.chars[i].id)] = font.chars[i]; - } - - for (var _i = 0; _i < font.kernings.length; _i++) { - var firstString = String.fromCharCode(font.kernings[_i].first); - kernings[firstString] = kernings[firstString] || {}; - kernings[firstString][String.fromCharCode(font.kernings[_i].second)] = font.kernings[_i].amount; - } - - loadPages(_this, _path["default"].dirname(file), font.pages).then(function (pages) { - cb(null, { - chars: chars, - kernings: kernings, - pages: pages, - common: font.common, - info: font.info - }); - }); - }); - }); - } - }, - "class": { - /** - * Draws a text on a image on a given boundary - * @param {Jimp} font a bitmap font loaded from `Jimp.loadFont` command - * @param {number} x the x position to start drawing the text - * @param {number} y the y position to start drawing the text - * @param {any} text the text to draw (string or object with `text`, `alignmentX`, and/or `alignmentY`) - * @param {number} maxWidth (optional) the boundary width to draw in - * @param {number} maxHeight (optional) the boundary height to draw in - * @param {function(Error, Jimp)} cb (optional) a function to call when the text is written - * @returns {Jimp} this for chaining of methods - */ - print: function print(font, x, y, text, maxWidth, maxHeight, cb) { - var _this2 = this; - - if (typeof maxWidth === "function" && typeof cb === "undefined") { - cb = maxWidth; - maxWidth = Infinity; - } - - if (typeof maxWidth === "undefined") { - maxWidth = Infinity; - } - - if (typeof maxHeight === "function" && typeof cb === "undefined") { - cb = maxHeight; - maxHeight = Infinity; - } - - if (typeof maxHeight === "undefined") { - maxHeight = Infinity; - } - - if ((0, _typeof2["default"])(font) !== "object") { - return _utils.throwError.call(this, "font must be a Jimp loadFont", cb); - } - - if (typeof x !== "number" || typeof y !== "number" || typeof maxWidth !== "number") { - return _utils.throwError.call(this, "x, y and maxWidth must be numbers", cb); - } - - if (typeof maxWidth !== "number") { - return _utils.throwError.call(this, "maxWidth must be a number", cb); - } - - if (typeof maxHeight !== "number") { - return _utils.throwError.call(this, "maxHeight must be a number", cb); - } - - var alignmentX; - var alignmentY; - - if ((0, _typeof2["default"])(text) === "object" && text.text !== null && text.text !== undefined) { - alignmentX = text.alignmentX || this.constructor.HORIZONTAL_ALIGN_LEFT; - alignmentY = text.alignmentY || this.constructor.VERTICAL_ALIGN_TOP; - var _text = text; - text = _text.text; - } else { - alignmentX = this.constructor.HORIZONTAL_ALIGN_LEFT; - alignmentY = this.constructor.VERTICAL_ALIGN_TOP; - text = text.toString(); - } - - if (maxHeight !== Infinity && alignmentY === this.constructor.VERTICAL_ALIGN_BOTTOM) { - y += maxHeight - (0, _measureText.measureTextHeight)(font, text, maxWidth); - } else if (maxHeight !== Infinity && alignmentY === this.constructor.VERTICAL_ALIGN_MIDDLE) { - y += maxHeight / 2 - (0, _measureText.measureTextHeight)(font, text, maxWidth) / 2; - } - - var defaultCharWidth = Object.entries(font.chars)[0][1].xadvance; - - var _splitLines = splitLines(font, text, maxWidth), - lines = _splitLines.lines, - longestLine = _splitLines.longestLine; - - lines.forEach(function (line) { - var lineString = line.join(" "); - var alignmentWidth = xOffsetBasedOnAlignment(_this2.constructor, font, lineString, maxWidth, alignmentX); - printText.call(_this2, font, x + alignmentWidth, y, lineString, defaultCharWidth); - y += font.common.lineHeight; - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this, { - x: x + longestLine, - y: y - }); - } - - return this; - } - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-print/dist/index.js.map deleted file mode 100644 index 054132758..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["xOffsetBasedOnAlignment","constants","font","line","maxWidth","alignment","HORIZONTAL_ALIGN_LEFT","HORIZONTAL_ALIGN_CENTER","drawCharacter","image","x","y","char","width","height","characterPage","pages","page","blit","xoffset","yoffset","printText","text","defaultCharWidth","i","length","chars","test","fontChar","fontKerning","kernings","kerning","xadvance","splitLines","words","split","lines","currentLine","longestLine","forEach","word","join","push","loadPages","Jimp","dir","newPages","map","read","Promise","all","process","env","DIRNAME","__dirname","measureText","measureTextHeight","FONT_SANS_8_BLACK","Path","FONT_SANS_10_BLACK","FONT_SANS_12_BLACK","FONT_SANS_14_BLACK","FONT_SANS_16_BLACK","FONT_SANS_32_BLACK","FONT_SANS_64_BLACK","FONT_SANS_128_BLACK","FONT_SANS_8_WHITE","FONT_SANS_16_WHITE","FONT_SANS_32_WHITE","FONT_SANS_64_WHITE","FONT_SANS_128_WHITE","loadFont","file","cb","throwError","call","resolve","reject","err","String","fromCharCode","id","firstString","first","second","amount","dirname","then","common","info","print","maxHeight","Infinity","alignmentX","alignmentY","undefined","constructor","VERTICAL_ALIGN_TOP","toString","VERTICAL_ALIGN_BOTTOM","VERTICAL_ALIGN_MIDDLE","Object","entries","lineString","alignmentWidth","lineHeight"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA,SAASA,uBAAT,CAAiCC,SAAjC,EAA4CC,IAA5C,EAAkDC,IAAlD,EAAwDC,QAAxD,EAAkEC,SAAlE,EAA6E;AAC3E,MAAIA,SAAS,KAAKJ,SAAS,CAACK,qBAA5B,EAAmD;AACjD,WAAO,CAAP;AACD;;AAED,MAAID,SAAS,KAAKJ,SAAS,CAACM,uBAA5B,EAAqD;AACnD,WAAO,CAACH,QAAQ,GAAG,8BAAYF,IAAZ,EAAkBC,IAAlB,CAAZ,IAAuC,CAA9C;AACD;;AAED,SAAOC,QAAQ,GAAG,8BAAYF,IAAZ,EAAkBC,IAAlB,CAAlB;AACD;;AAED,SAASK,aAAT,CAAuBC,KAAvB,EAA8BP,IAA9B,EAAoCQ,CAApC,EAAuCC,CAAvC,EAA0CC,KAA1C,EAAgD;AAC9C,MAAIA,KAAI,CAACC,KAAL,GAAa,CAAb,IAAkBD,KAAI,CAACE,MAAL,GAAc,CAApC,EAAuC;AACrC,QAAMC,aAAa,GAAGb,IAAI,CAACc,KAAL,CAAWJ,KAAI,CAACK,IAAhB,CAAtB;AAEAR,IAAAA,KAAK,CAACS,IAAN,CACEH,aADF,EAEEL,CAAC,GAAGE,KAAI,CAACO,OAFX,EAGER,CAAC,GAAGC,KAAI,CAACQ,OAHX,EAIER,KAAI,CAACF,CAJP,EAKEE,KAAI,CAACD,CALP,EAMEC,KAAI,CAACC,KANP,EAOED,KAAI,CAACE,MAPP;AASD;;AAED,SAAOL,KAAP;AACD;;AAED,SAASY,SAA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4B,WAAT;AAAsB3B,YAAAA,CAAC,EAADA;AAAtB,WAA1B;AACD;;AAED,eAAO,IAAP;AACD;AA9GI;AA9Ga,GAAP;AAAA,C","sourcesContent":["import Path from \"path\";\nimport bMFont from \"load-bmfont\";\nimport { isNodePattern, throwError } from \"@jimp/utils\";\nimport { measureText, measureTextHeight } from \"./measure-text\";\n\nfunction xOffsetBasedOnAlignment(constants, font, line, maxWidth, alignment) {\n if (alignment === constants.HORIZONTAL_ALIGN_LEFT) {\n return 0;\n }\n\n if (alignment === constants.HORIZONTAL_ALIGN_CENTER) {\n return (maxWidth - measureText(font, line)) / 2;\n }\n\n return maxWidth - measureText(font, line);\n}\n\nfunction drawCharacter(image, font, x, y, char) {\n if (char.width > 0 && char.height > 0) {\n const characterPage = font.pages[char.page];\n\n image.blit(\n characterPage,\n x + char.xoffset,\n y + char.yoffset,\n char.x,\n char.y,\n char.width,\n char.height\n );\n }\n\n return image;\n}\n\nfunction printText(font, x, y, text, defaultCharWidth) {\n for (let i = 0; i < text.length; i++) {\n let char;\n\n if (font.chars[text[i]]) {\n char = text[i];\n } else if (/\\s/.test(text[i])) {\n char = \"\";\n } else {\n char = \"?\";\n }\n\n const fontChar = font.chars[char] || {};\n const fontKerning = font.kernings[char];\n\n drawCharacter(this, font, x, y, fontChar || {});\n\n const kerning =\n fontKerning && fontKerning[text[i + 1]] ? fontKerning[text[i + 1]] : 0;\n\n x += kerning + (fontChar.xadvance || defaultCharWidth);\n }\n}\n\nfunction splitLines(font, text, maxWidth) {\n const words = text.split(\" \");\n const lines = [];\n let currentLine = [];\n let longestLine = 0;\n\n words.forEach((word) => {\n const line = [...currentLine, word].join(\" \");\n const length = measureText(font, line);\n\n if (length <= maxWidth) {\n if (length > longestLine) {\n longestLine = length;\n }\n\n currentLine.push(word);\n } else {\n lines.push(currentLine);\n currentLine = [word];\n }\n });\n\n lines.push(currentLine);\n\n return {\n lines,\n longestLine,\n };\n}\n\nfunction loadPages(Jimp, dir, pages) {\n const newPages = pages.map((page) => {\n return Jimp.read(dir + \"/\" + page);\n });\n\n return Promise.all(newPages);\n}\n\nconst dir = process.env.DIRNAME || `${__dirname}/../`;\n\nexport default () => ({\n constants: {\n measureText,\n measureTextHeight,\n FONT_SANS_8_BLACK: Path.join(\n dir,\n \"fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt\"\n ),\n FONT_SANS_10_BLACK: Path.join(\n dir,\n \"fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt\"\n ),\n FONT_SANS_12_BLACK: Path.join(\n dir,\n \"fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt\"\n ),\n FONT_SANS_14_BLACK: Path.join(\n dir,\n \"fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt\"\n ),\n FONT_SANS_16_BLACK: Path.join(\n dir,\n \"fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt\"\n ),\n FONT_SANS_32_BLACK: Path.join(\n dir,\n \"fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt\"\n ),\n FONT_SANS_64_BLACK: Path.join(\n dir,\n \"fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt\"\n ),\n FONT_SANS_128_BLACK: Path.join(\n dir,\n \"fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt\"\n ),\n\n FONT_SANS_8_WHITE: Path.join(\n dir,\n \"fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt\"\n ),\n FONT_SANS_16_WHITE: Path.join(\n dir,\n \"fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt\"\n ),\n FONT_SANS_32_WHITE: Path.join(\n dir,\n \"fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt\"\n ),\n FONT_SANS_64_WHITE: Path.join(\n dir,\n \"fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt\"\n ),\n FONT_SANS_128_WHITE: Path.join(\n dir,\n \"fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt\"\n ),\n\n /**\n * Loads a bitmap font from a file\n * @param {string} file the file path of a .fnt file\n * @param {function(Error, Jimp)} cb (optional) a function to call when the font is loaded\n * @returns {Promise} a promise\n */\n loadFont(file, cb) {\n if (typeof file !== \"string\")\n return throwError.call(this, \"file must be a string\", cb);\n\n return new Promise((resolve, reject) => {\n cb =\n cb ||\n function (err, font) {\n if (err) reject(err);\n else resolve(font);\n };\n\n bMFont(file, (err, font) => {\n const chars = {};\n const kernings = {};\n\n if (err) {\n return throwError.call(this, err, cb);\n }\n\n for (let i = 0; i < font.chars.length; i++) {\n chars[String.fromCharCode(font.chars[i].id)] = font.chars[i];\n }\n\n for (let i = 0; i < font.kernings.length; i++) {\n const firstString = String.fromCharCode(font.kernings[i].first);\n kernings[firstString] = kernings[firstString] || {};\n kernings[firstString][\n String.fromCharCode(font.kernings[i].second)\n ] = font.kernings[i].amount;\n }\n\n loadPages(this, Path.dirname(file), font.pages).then((pages) => {\n cb(null, {\n chars,\n kernings,\n pages,\n common: font.common,\n info: font.info,\n });\n });\n });\n });\n },\n },\n\n class: {\n /**\n * Draws a text on a image on a given boundary\n * @param {Jimp} font a bitmap font loaded from `Jimp.loadFont` command\n * @param {number} x the x position to start drawing the text\n * @param {number} y the y position to start drawing the text\n * @param {any} text the text to draw (string or object with `text`, `alignmentX`, and/or `alignmentY`)\n * @param {number} maxWidth (optional) the boundary width to draw in\n * @param {number} maxHeight (optional) the boundary height to draw in\n * @param {function(Error, Jimp)} cb (optional) a function to call when the text is written\n * @returns {Jimp} this for chaining of methods\n */\n print(font, x, y, text, maxWidth, maxHeight, cb) {\n if (typeof maxWidth === \"function\" && typeof cb === \"undefined\") {\n cb = maxWidth;\n maxWidth = Infinity;\n }\n\n if (typeof maxWidth === \"undefined\") {\n maxWidth = Infinity;\n }\n\n if (typeof maxHeight === \"function\" && typeof cb === \"undefined\") {\n cb = maxHeight;\n maxHeight = Infinity;\n }\n\n if (typeof maxHeight === \"undefined\") {\n maxHeight = Infinity;\n }\n\n if (typeof font !== \"object\") {\n return throwError.call(this, \"font must be a Jimp loadFont\", cb);\n }\n\n if (\n typeof x !== \"number\" ||\n typeof y !== \"number\" ||\n typeof maxWidth !== \"number\"\n ) {\n return throwError.call(this, \"x, y and maxWidth must be numbers\", cb);\n }\n\n if (typeof maxWidth !== \"number\") {\n return throwError.call(this, \"maxWidth must be a number\", cb);\n }\n\n if (typeof maxHeight !== \"number\") {\n return throwError.call(this, \"maxHeight must be a number\", cb);\n }\n\n let alignmentX;\n let alignmentY;\n\n if (\n typeof text === \"object\" &&\n text.text !== null &&\n text.text !== undefined\n ) {\n alignmentX = text.alignmentX || this.constructor.HORIZONTAL_ALIGN_LEFT;\n alignmentY = text.alignmentY || this.constructor.VERTICAL_ALIGN_TOP;\n ({ text } = text);\n } else {\n alignmentX = this.constructor.HORIZONTAL_ALIGN_LEFT;\n alignmentY = this.constructor.VERTICAL_ALIGN_TOP;\n text = text.toString();\n }\n\n if (\n maxHeight !== Infinity &&\n alignmentY === this.constructor.VERTICAL_ALIGN_BOTTOM\n ) {\n y += maxHeight - measureTextHeight(font, text, maxWidth);\n } else if (\n maxHeight !== Infinity &&\n alignmentY === this.constructor.VERTICAL_ALIGN_MIDDLE\n ) {\n y += maxHeight / 2 - measureTextHeight(font, text, maxWidth) / 2;\n }\n\n const defaultCharWidth = Object.entries(font.chars)[0][1].xadvance;\n const { lines, longestLine } = splitLines(font, text, maxWidth);\n\n lines.forEach((line) => {\n const lineString = line.join(\" \");\n const alignmentWidth = xOffsetBasedOnAlignment(\n this.constructor,\n font,\n lineString,\n maxWidth,\n alignmentX\n );\n\n printText.call(\n this,\n font,\n x + alignmentWidth,\n y,\n lineString,\n defaultCharWidth\n );\n\n y += font.common.lineHeight;\n });\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this, { x: x + longestLine, y });\n }\n\n return this;\n },\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/dist/measure-text.js b/WechatBot/node_modules/@jimp/plugin-print/dist/measure-text.js deleted file mode 100755 index 42939faeb..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/dist/measure-text.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.measureText = measureText; -exports.measureTextHeight = measureTextHeight; - -function measureText(font, text) { - var x = 0; - - for (var i = 0; i < text.length; i++) { - if (font.chars[text[i]]) { - var kerning = font.kernings[text[i]] && font.kernings[text[i]][text[i + 1]] ? font.kernings[text[i]][text[i + 1]] : 0; - x += (font.chars[text[i]].xadvance || 0) + kerning; - } - } - - return x; -} - -function measureTextHeight(font, text, maxWidth) { - var words = text.split(" "); - var line = ""; - var textTotalHeight = font.common.lineHeight; - - for (var n = 0; n < words.length; n++) { - var testLine = line + words[n] + " "; - var testWidth = measureText(font, testLine); - - if (testWidth > maxWidth && n > 0) { - textTotalHeight += font.common.lineHeight; - line = words[n] + " "; - } else { - line = testLine; - } - } - - return textTotalHeight; -} -//# sourceMappingURL=measure-text.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/dist/measure-text.js.map b/WechatBot/node_modules/@jimp/plugin-print/dist/measure-text.js.map deleted file mode 100644 index 724d20aac..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/dist/measure-text.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/measure-text.js"],"names":["measureText","font","text","x","i","length","chars","kerning","kernings","xadvance","measureTextHeight","maxWidth","words","split","line","textTotalHeight","common","lineHeight","n","testLine","testWidth"],"mappings":";;;;;;;;AAAO,SAASA,WAAT,CAAqBC,IAArB,EAA2BC,IAA3B,EAAiC;AACtC,MAAIC,CAAC,GAAG,CAAR;;AAEA,OAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGF,IAAI,CAACG,MAAzB,EAAiCD,CAAC,EAAlC,EAAsC;AACpC,QAAIH,IAAI,CAACK,KAAL,CAAWJ,IAAI,CAACE,CAAD,CAAf,CAAJ,EAAyB;AACvB,UAAMG,OAA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{\n let x = 0;\n\n for (let i = 0; i < text.length; i++) {\n if (font.chars[text[i]]) {\n const kerning =\n font.kernings[text[i]] && font.kernings[text[i]][text[i + 1]]\n ? font.kernings[text[i]][text[i + 1]]\n : 0;\n\n x += (font.chars[text[i]].xadvance || 0) + kerning;\n }\n }\n\n return x;\n}\n\nexport function measureTextHeight(font, text, maxWidth) {\n const words = text.split(\" \");\n let line = \"\";\n let textTotalHeight = font.common.lineHeight;\n\n for (let n = 0; n < words.length; n++) {\n const testLine = line + words[n] + \" \";\n const testWidth = measureText(font, testLine);\n\n if (testWidth > maxWidth && n > 0) {\n textTotalHeight += font.common.lineHeight;\n line = words[n] + \" \";\n } else {\n line = testLine;\n }\n }\n\n return textTotalHeight;\n}\n"],"file":"measure-text.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/Apache License.txt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/Apache License.txt deleted file mode 100644 index 989e2c59e..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/Apache License.txt +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt deleted file mode 100644 index 1e4c5db0e..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.png deleted file mode 100644 index a45929811..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-10-black/open-sans-10-black.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt deleted file mode 100644 index 5372da2ae..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt +++ /dev/null @@ -1,183 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.png deleted file mode 100644 index b84a9d794..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-12-black/open-sans-12-black.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt deleted file mode 100644 index 6175b9cb8..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.png deleted file mode 100644 index 77cd5ed6b..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-black/open-sans-128-black.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt deleted file mode 100644 index 9c89b4403..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.png deleted file mode 100644 index 461af9a00..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-128-white/open-sans-128-white.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt deleted file mode 100644 index 8df67a9b5..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt +++ /dev/null @@ -1,215 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.png deleted file mode 100644 index e66461fe5..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-14-black/open-sans-14-black.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt deleted file mode 100644 index 602a3a4e8..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.png deleted file mode 100644 index 4f7e287bb..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt deleted file mode 100644 index c78ccdce5..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.png deleted file mode 100644 index 039206cfd..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-16-white/open-sans-16-white.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt deleted file mode 100644 index 3733597bd..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.png deleted file mode 100644 index a064a1121..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-black/open-sans-32-black.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt deleted file mode 100644 index 6b51c7c09..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.png deleted file mode 100644 index 4ecce3e54..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-32-white/open-sans-32-white.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt deleted file mode 100644 index 500c923ef..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.png deleted file mode 100644 index 25fe95feb..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-black/open-sans-64-black.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt deleted file mode 100644 index 19a724535..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.png deleted file mode 100644 index 1baf1f50b..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-64-white/open-sans-64-white.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt deleted file mode 100644 index 15b6be3a5..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.png deleted file mode 100644 index 71a55514f..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-black/open-sans-8-black.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt deleted file mode 100644 index 3264cc42d..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt +++ /dev/null @@ -1,297 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.png b/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.png deleted file mode 100644 index ed1eb48b7..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/fonts/open-sans/open-sans-8-white/open-sans-8-white.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/index.d.ts b/WechatBot/node_modules/@jimp/plugin-print/index.d.ts deleted file mode 100644 index c5c9cd3ec..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/index.d.ts +++ /dev/null @@ -1,125 +0,0 @@ -import { GenericCallback, ImageCallback } from "@jimp/core"; - -export interface FontChar { - id: number; - x: number; - y: number; - width: number; - height: number; - xoffset: number; - yoffset: number; - xadvance: number; - page: number; - chnl: number; -} - -export interface FontInfo { - face: string; - size: number; - bold: number; - italic: number; - charset: string; - unicode: number; - stretchH: number; - smooth: number; - aa: number; - padding: [number, number, number, number]; - spacing: [number, number]; -} - -export interface FontCommon { - lineHeight: number; - base: number; - scaleW: number; - scaleH: number; - pages: number; - packed: number; - alphaChnl: number; - redChnl: number; - greenChnl: number; - blueChnl: number; -} - -export interface Font { - chars: { - [char: string]: FontChar; - }; - kernings: { - [firstString: string]: { - [secondString: string]: number; - }; - }; - pages: string[]; - common: FontCommon; - info: FontInfo; -} - -type PrintableText = - | any - | { - text: string; - alignmentX: number; - alignmentY: number; - }; - -interface PrintClass { - // Text methods - print( - font: Font, - x: number, - y: number, - text: PrintableText, - cb?: ImageCallback - ): this; - print( - font: Font, - x: number, - y: number, - text: PrintableText, - maxWidth?: number, - cb?: ImageCallback - ): this; - print( - font: Font, - x: number, - y: number, - text: PrintableText, - maxWidth?: number, - maxHeight?: number, - cb?: ImageCallback - ): this; -} - -interface Print { - constants: { - measureText(font: Font, text: PrintableText): number; - measureTextHeight( - font: Font, - text: PrintableText, - maxWidth: number - ): number; - - // Font locations - FONT_SANS_8_BLACK: string; - FONT_SANS_10_BLACK: string; - FONT_SANS_12_BLACK: string; - FONT_SANS_14_BLACK: string; - FONT_SANS_16_BLACK: string; - FONT_SANS_32_BLACK: string; - FONT_SANS_64_BLACK: string; - FONT_SANS_128_BLACK: string; - - FONT_SANS_8_WHITE: string; - FONT_SANS_16_WHITE: string; - FONT_SANS_32_WHITE: string; - FONT_SANS_64_WHITE: string; - FONT_SANS_128_WHITE: string; - - loadFont(file: string): Promise; - loadFont(file: string, cb: GenericCallback): Promise; - }; - - class: PrintClass; -} - -export default function (): Print; diff --git a/WechatBot/node_modules/@jimp/plugin-print/package.json b/WechatBot/node_modules/@jimp/plugin-print/package.json deleted file mode 100644 index e443c64ca..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@jimp/plugin-print", - "version": "0.16.13", - "description": "print an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13", - "load-bmfont": "^1.4.0" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5", - "@jimp/plugin-blit": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/plugin-blit": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-print/src/index.js b/WechatBot/node_modules/@jimp/plugin-print/src/index.js deleted file mode 100755 index df71548b9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/src/index.js +++ /dev/null @@ -1,322 +0,0 @@ -import Path from "path"; -import bMFont from "load-bmfont"; -import { isNodePattern, throwError } from "@jimp/utils"; -import { measureText, measureTextHeight } from "./measure-text"; - -function xOffsetBasedOnAlignment(constants, font, line, maxWidth, alignment) { - if (alignment === constants.HORIZONTAL_ALIGN_LEFT) { - return 0; - } - - if (alignment === constants.HORIZONTAL_ALIGN_CENTER) { - return (maxWidth - measureText(font, line)) / 2; - } - - return maxWidth - measureText(font, line); -} - -function drawCharacter(image, font, x, y, char) { - if (char.width > 0 && char.height > 0) { - const characterPage = font.pages[char.page]; - - image.blit( - characterPage, - x + char.xoffset, - y + char.yoffset, - char.x, - char.y, - char.width, - char.height - ); - } - - return image; -} - -function printText(font, x, y, text, defaultCharWidth) { - for (let i = 0; i < text.length; i++) { - let char; - - if (font.chars[text[i]]) { - char = text[i]; - } else if (/\s/.test(text[i])) { - char = ""; - } else { - char = "?"; - } - - const fontChar = font.chars[char] || {}; - const fontKerning = font.kernings[char]; - - drawCharacter(this, font, x, y, fontChar || {}); - - const kerning = - fontKerning && fontKerning[text[i + 1]] ? fontKerning[text[i + 1]] : 0; - - x += kerning + (fontChar.xadvance || defaultCharWidth); - } -} - -function splitLines(font, text, maxWidth) { - const words = text.split(" "); - const lines = []; - let currentLine = []; - let longestLine = 0; - - words.forEach((word) => { - const line = [...currentLine, word].join(" "); - const length = measureText(font, line); - - if (length <= maxWidth) { - if (length > longestLine) { - longestLine = length; - } - - currentLine.push(word); - } else { - lines.push(currentLine); - currentLine = [word]; - } - }); - - lines.push(currentLine); - - return { - lines, - longestLine, - }; -} - -function loadPages(Jimp, dir, pages) { - const newPages = pages.map((page) => { - return Jimp.read(dir + "/" + page); - }); - - return Promise.all(newPages); -} - -const dir = process.env.DIRNAME || `${__dirname}/../`; - -export default () => ({ - constants: { - measureText, - measureTextHeight, - FONT_SANS_8_BLACK: Path.join( - dir, - "fonts/open-sans/open-sans-8-black/open-sans-8-black.fnt" - ), - FONT_SANS_10_BLACK: Path.join( - dir, - "fonts/open-sans/open-sans-10-black/open-sans-10-black.fnt" - ), - FONT_SANS_12_BLACK: Path.join( - dir, - "fonts/open-sans/open-sans-12-black/open-sans-12-black.fnt" - ), - FONT_SANS_14_BLACK: Path.join( - dir, - "fonts/open-sans/open-sans-14-black/open-sans-14-black.fnt" - ), - FONT_SANS_16_BLACK: Path.join( - dir, - "fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt" - ), - FONT_SANS_32_BLACK: Path.join( - dir, - "fonts/open-sans/open-sans-32-black/open-sans-32-black.fnt" - ), - FONT_SANS_64_BLACK: Path.join( - dir, - "fonts/open-sans/open-sans-64-black/open-sans-64-black.fnt" - ), - FONT_SANS_128_BLACK: Path.join( - dir, - "fonts/open-sans/open-sans-128-black/open-sans-128-black.fnt" - ), - - FONT_SANS_8_WHITE: Path.join( - dir, - "fonts/open-sans/open-sans-8-white/open-sans-8-white.fnt" - ), - FONT_SANS_16_WHITE: Path.join( - dir, - "fonts/open-sans/open-sans-16-white/open-sans-16-white.fnt" - ), - FONT_SANS_32_WHITE: Path.join( - dir, - "fonts/open-sans/open-sans-32-white/open-sans-32-white.fnt" - ), - FONT_SANS_64_WHITE: Path.join( - dir, - "fonts/open-sans/open-sans-64-white/open-sans-64-white.fnt" - ), - FONT_SANS_128_WHITE: Path.join( - dir, - "fonts/open-sans/open-sans-128-white/open-sans-128-white.fnt" - ), - - /** - * Loads a bitmap font from a file - * @param {string} file the file path of a .fnt file - * @param {function(Error, Jimp)} cb (optional) a function to call when the font is loaded - * @returns {Promise} a promise - */ - loadFont(file, cb) { - if (typeof file !== "string") - return throwError.call(this, "file must be a string", cb); - - return new Promise((resolve, reject) => { - cb = - cb || - function (err, font) { - if (err) reject(err); - else resolve(font); - }; - - bMFont(file, (err, font) => { - const chars = {}; - const kernings = {}; - - if (err) { - return throwError.call(this, err, cb); - } - - for (let i = 0; i < font.chars.length; i++) { - chars[String.fromCharCode(font.chars[i].id)] = font.chars[i]; - } - - for (let i = 0; i < font.kernings.length; i++) { - const firstString = String.fromCharCode(font.kernings[i].first); - kernings[firstString] = kernings[firstString] || {}; - kernings[firstString][ - String.fromCharCode(font.kernings[i].second) - ] = font.kernings[i].amount; - } - - loadPages(this, Path.dirname(file), font.pages).then((pages) => { - cb(null, { - chars, - kernings, - pages, - common: font.common, - info: font.info, - }); - }); - }); - }); - }, - }, - - class: { - /** - * Draws a text on a image on a given boundary - * @param {Jimp} font a bitmap font loaded from `Jimp.loadFont` command - * @param {number} x the x position to start drawing the text - * @param {number} y the y position to start drawing the text - * @param {any} text the text to draw (string or object with `text`, `alignmentX`, and/or `alignmentY`) - * @param {number} maxWidth (optional) the boundary width to draw in - * @param {number} maxHeight (optional) the boundary height to draw in - * @param {function(Error, Jimp)} cb (optional) a function to call when the text is written - * @returns {Jimp} this for chaining of methods - */ - print(font, x, y, text, maxWidth, maxHeight, cb) { - if (typeof maxWidth === "function" && typeof cb === "undefined") { - cb = maxWidth; - maxWidth = Infinity; - } - - if (typeof maxWidth === "undefined") { - maxWidth = Infinity; - } - - if (typeof maxHeight === "function" && typeof cb === "undefined") { - cb = maxHeight; - maxHeight = Infinity; - } - - if (typeof maxHeight === "undefined") { - maxHeight = Infinity; - } - - if (typeof font !== "object") { - return throwError.call(this, "font must be a Jimp loadFont", cb); - } - - if ( - typeof x !== "number" || - typeof y !== "number" || - typeof maxWidth !== "number" - ) { - return throwError.call(this, "x, y and maxWidth must be numbers", cb); - } - - if (typeof maxWidth !== "number") { - return throwError.call(this, "maxWidth must be a number", cb); - } - - if (typeof maxHeight !== "number") { - return throwError.call(this, "maxHeight must be a number", cb); - } - - let alignmentX; - let alignmentY; - - if ( - typeof text === "object" && - text.text !== null && - text.text !== undefined - ) { - alignmentX = text.alignmentX || this.constructor.HORIZONTAL_ALIGN_LEFT; - alignmentY = text.alignmentY || this.constructor.VERTICAL_ALIGN_TOP; - ({ text } = text); - } else { - alignmentX = this.constructor.HORIZONTAL_ALIGN_LEFT; - alignmentY = this.constructor.VERTICAL_ALIGN_TOP; - text = text.toString(); - } - - if ( - maxHeight !== Infinity && - alignmentY === this.constructor.VERTICAL_ALIGN_BOTTOM - ) { - y += maxHeight - measureTextHeight(font, text, maxWidth); - } else if ( - maxHeight !== Infinity && - alignmentY === this.constructor.VERTICAL_ALIGN_MIDDLE - ) { - y += maxHeight / 2 - measureTextHeight(font, text, maxWidth) / 2; - } - - const defaultCharWidth = Object.entries(font.chars)[0][1].xadvance; - const { lines, longestLine } = splitLines(font, text, maxWidth); - - lines.forEach((line) => { - const lineString = line.join(" "); - const alignmentWidth = xOffsetBasedOnAlignment( - this.constructor, - font, - lineString, - maxWidth, - alignmentX - ); - - printText.call( - this, - font, - x + alignmentWidth, - y, - lineString, - defaultCharWidth - ); - - y += font.common.lineHeight; - }); - - if (isNodePattern(cb)) { - cb.call(this, null, this, { x: x + longestLine, y }); - } - - return this; - }, - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-print/src/measure-text.js b/WechatBot/node_modules/@jimp/plugin-print/src/measure-text.js deleted file mode 100755 index a86dfbe3b..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/src/measure-text.js +++ /dev/null @@ -1,36 +0,0 @@ -export function measureText(font, text) { - let x = 0; - - for (let i = 0; i < text.length; i++) { - if (font.chars[text[i]]) { - const kerning = - font.kernings[text[i]] && font.kernings[text[i]][text[i + 1]] - ? font.kernings[text[i]][text[i + 1]] - : 0; - - x += (font.chars[text[i]].xadvance || 0) + kerning; - } - } - - return x; -} - -export function measureTextHeight(font, text, maxWidth) { - const words = text.split(" "); - let line = ""; - let textTotalHeight = font.common.lineHeight; - - for (let n = 0; n < words.length; n++) { - const testLine = line + words[n] + " "; - const testWidth = measureText(font, testLine); - - if (testWidth > maxWidth && n > 0) { - textTotalHeight += font.common.lineHeight; - line = words[n] + " "; - } else { - line = testLine; - } - } - - return textTotalHeight; -} diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_16_BLACK-positioned.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_16_BLACK-positioned.png deleted file mode 100644 index be11559a7..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_16_BLACK-positioned.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_16_BLACK.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_16_BLACK.png deleted file mode 100644 index 2369ba836..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_16_BLACK.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_16_WHITE.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_16_WHITE.png deleted file mode 100644 index 8b1bd8d31..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_16_WHITE.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_32_BLACK.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_32_BLACK.png deleted file mode 100644 index 2084bb673..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_32_BLACK.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_32_WHITE.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_32_WHITE.png deleted file mode 100644 index 58d3ea293..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_32_WHITE.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_64_BLACK.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_64_BLACK.png deleted file mode 100644 index a263ab239..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_64_BLACK.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_64_WHITE.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_64_WHITE.png deleted file mode 100644 index 1573052d0..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_64_WHITE.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_8_BLACK.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_8_BLACK.png deleted file mode 100644 index 9295ee976..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_8_BLACK.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_8_WHITE.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_8_WHITE.png deleted file mode 100644 index df20ee1bb..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/SANS_8_WHITE.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/bottom-aligned-y.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/bottom-aligned-y.png deleted file mode 100644 index 6298192d3..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/bottom-aligned-y.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/bottom-aligned.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/bottom-aligned.png deleted file mode 100644 index ff7a00a1a..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/bottom-aligned.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/center-aligned.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/center-aligned.png deleted file mode 100644 index 602f576b3..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/center-aligned.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/left-aligned.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/left-aligned.png deleted file mode 100644 index 5d919cd3a..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/left-aligned.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/middle-aligned-y.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/middle-aligned-y.png deleted file mode 100644 index d6eec20b1..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/middle-aligned-y.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/middle-aligned.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/middle-aligned.png deleted file mode 100644 index 214e23b2e..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/middle-aligned.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/print-number.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/print-number.png deleted file mode 100644 index 46f01d7c2..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/print-number.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/right-aligned.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/right-aligned.png deleted file mode 100644 index 77651496d..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/right-aligned.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/spacing.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/spacing.png deleted file mode 100644 index f6422e481..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/spacing.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/images/unknown-char-test.png b/WechatBot/node_modules/@jimp/plugin-print/test/images/unknown-char-test.png deleted file mode 100644 index 2ae9ff596..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-print/test/images/unknown-char-test.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-print/test/print.test.js b/WechatBot/node_modules/@jimp/plugin-print/test/print.test.js deleted file mode 100755 index b0292a3ce..000000000 --- a/WechatBot/node_modules/@jimp/plugin-print/test/print.test.js +++ /dev/null @@ -1,284 +0,0 @@ -/* eslint key-spacing: ["error", { "align": "value" }] */ - -import { Jimp, getTestDir, hasOwnProp } from "@jimp/test-utils"; -import configure from "@jimp/custom"; -import blit from "@jimp/plugin-blit"; - -import print from "../src"; - -const jimp = configure({ plugins: [print, blit] }, Jimp); - -async function createTextImage( - width, - height, - font, - { x = 0, y = 0, text, maxWidth, maxHeight } -) { - const loadedFont = await jimp.loadFont(font); - const image = await Jimp.create(width, height, 0xffffffff); - - return image.print(loadedFont, x, y, text, maxWidth, maxHeight); -} - -describe("Write text over image", function () { - this.timeout(30000); - - const fontDefs = { - SANS_8_BLACK: { w: 28, h: 28, bg: 0xffffffff }, - - SANS_16_BLACK: { w: 54, h: 54, bg: 0xffffffff }, - SANS_32_BLACK: { w: 114, h: 114, bg: 0xffffffff }, - SANS_64_BLACK: { w: 220, h: 220, bg: 0xffffffff }, - - SANS_8_WHITE: { w: 28, h: 28, bg: 0x000000ff }, - - SANS_16_WHITE: { w: 54, h: 54, bg: 0x000000ff }, - SANS_32_WHITE: { w: 114, h: 114, bg: 0x000000ff }, - SANS_64_WHITE: { w: 220, h: 220, bg: 0x000000ff }, - }; - - for (const fontName in fontDefs) - if (hasOwnProp(fontDefs, fontName)) - ((fontName, conf) => { - it("Jimp preset " + fontName + " bitmap font", async () => { - const font = await jimp.loadFont(Jimp["FONT_" + fontName]); - const expected = - getTestDir(__dirname) + "/images/" + fontName + ".png"; - - const expectedImg = await Jimp.read(expected); - const image = await Jimp.create(conf.w, conf.h, conf.bg); - - image - .print(font, 0, 0, "This is only a test.", image.bitmap.width) - .bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); - })(fontName, fontDefs[fontName]); - - it("Jimp preset SANS_16_BLACK bitmap font positioned", async () => { - const font = await jimp.loadFont(Jimp.FONT_SANS_16_BLACK); - const expected = - getTestDir(__dirname) + "/images/SANS_16_BLACK-positioned.png"; - const expectedImg = await Jimp.read(expected); - const image = await Jimp.create("300", "100", 0xff8800ff); - - image - .print(font, 150, 50, "This is only a test.", 100) - .bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); - - it("Jimp loads font from URL", async () => { - const font = await Jimp.loadFont( - "https://raw.githubusercontent.com/jimp-dev/jimp/master/packages/plugin-print/fonts/open-sans/open-sans-16-black/open-sans-16-black.fnt" - ); - const expected = - getTestDir(__dirname) + "/images/SANS_16_BLACK-positioned.png"; - const expectedImg = await Jimp.read(expected); - const image = await Jimp.create("300", "100", 0xff8800ff); - - image - .print(font, 150, 50, "This is only a test.", 100) - .bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); - - it("Jimp renders ? for unknown characters", async () => { - const font = await jimp.loadFont(Jimp.FONT_SANS_16_BLACK); - - const expected = getTestDir(__dirname) + "/images/unknown-char-test.png"; - const expectedImg = await Jimp.read(expected); - const image = await Jimp.read("300", "100", 0xff8800ff); - - image - .print(font, 0, 0, "ツ ツ ツ", 100) - .bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); - - it("Jimp can print numbers too", async () => { - const font = await Jimp.loadFont(Jimp.FONT_SANS_16_BLACK); - - const expected = getTestDir(__dirname) + "/images/print-number.png"; - const expectedImg = await Jimp.read(expected); - const image = await Jimp.read("300", "100", 0xff8800ff); - - image - .print(font, 0, 0, 12345678, 100) - .bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); - - it("left-align text by default", async () => { - const expectedImage = await Jimp.read( - getTestDir(__dirname) + "/images/left-aligned.png" - ); - const textImage = await createTextImage(320, 240, Jimp.FONT_SANS_16_BLACK, { - text: "This is only a test.", - - maxWidth: 100, - }); - - expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); - }); - - it("left-align text by default when passing object", async () => { - const expectedImage = await Jimp.read( - getTestDir(__dirname) + "/images/left-aligned.png" - ); - const textImage = await createTextImage(320, 240, Jimp.FONT_SANS_16_BLACK, { - text: { text: "This is only a test." }, - - maxWidth: 100, - }); - - expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); - }); - - it("left-align text when passing object with alignmentX", async () => { - const expectedImage = await Jimp.read( - getTestDir(__dirname) + "/images/left-aligned.png" - ); - const textImage = await createTextImage(320, 240, Jimp.FONT_SANS_16_BLACK, { - text: { - text: "This is only a test.", - - alignmentX: Jimp.HORIZONTAL_ALIGN_LEFT, - }, - maxWidth: 100, - }); - - expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); - }); - - it("center-align text when passing object with alignmentX", async () => { - const expectedImage = await Jimp.read( - getTestDir(__dirname) + "/images/center-aligned.png" - ); - const textImage = await createTextImage(320, 240, Jimp.FONT_SANS_16_BLACK, { - text: { - text: "This is only a test.", - - alignmentX: Jimp.HORIZONTAL_ALIGN_CENTER, - }, - maxWidth: 100, - }); - - expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); - }); - - it("right-align text when passing object with alignmentX", async () => { - const expectedImage = await Jimp.read( - getTestDir(__dirname) + "/images/right-aligned.png" - ); - const textImage = await createTextImage(320, 240, Jimp.FONT_SANS_16_BLACK, { - text: { - text: "This is only a test.", - - alignmentX: Jimp.HORIZONTAL_ALIGN_RIGHT, - }, - maxWidth: 100, - }); - - expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); - }); - - it("middle-align text when passing object with alignmentY", async () => { - const expectedImage = await Jimp.read( - getTestDir(__dirname) + "/images/middle-aligned.png" - ); - const textImage = await createTextImage(320, 240, Jimp.FONT_SANS_16_BLACK, { - text: { - text: "This is only a test.", - - alignmentY: Jimp.VERTICAL_ALIGN_MIDDLE, - }, - maxWidth: 100, - - maxHeight: 240, - }); - - expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); - }); - - it("middle-align text when passing object with alignmentY can offset y", async () => { - const expectedImage = await Jimp.read( - getTestDir(__dirname) + "/images/middle-aligned-y.png" - ); - const textImage = await createTextImage(320, 240, Jimp.FONT_SANS_16_BLACK, { - y: 50, - - text: { - text: "This is only a test.", - - alignmentY: Jimp.VERTICAL_ALIGN_MIDDLE, - }, - maxWidth: 100, - - maxHeight: 240, - }); - - expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); - }); - - it("bottom-align text when passing object with alignmentY", async () => { - const expectedImage = await Jimp.read( - getTestDir(__dirname) + "/images/bottom-aligned.png" - ); - const textImage = await createTextImage(320, 240, Jimp.FONT_SANS_16_BLACK, { - text: { - text: "This is only a test.", - - alignmentY: Jimp.VERTICAL_ALIGN_BOTTOM, - }, - maxWidth: 100, - - maxHeight: 240, - }); - - expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); - }); - - it("bottom-align text when passing object with alignmentY offset y", async () => { - const expectedImage = await Jimp.read( - getTestDir(__dirname) + "/images/bottom-aligned-y.png" - ); - const textImage = await createTextImage(320, 240, Jimp.FONT_SANS_16_BLACK, { - y: 100, - - text: { - text: "This is only a test.", - - alignmentY: Jimp.VERTICAL_ALIGN_BOTTOM, - }, - maxWidth: 100, - - maxHeight: 100, - }); - - expectedImage.bitmap.data.should.be.deepEqual(textImage.bitmap.data); - }); - - it("exposes print y position in cb", async () => { - const expectedImage = await Jimp.read( - getTestDir(__dirname) + "/images/spacing.png" - ); - - const loadedFont = await jimp.loadFont(Jimp.FONT_SANS_16_BLACK); - const image = await Jimp.create(500, 500, 0xffffffff); - - image.print( - loadedFont, - 0, - 0, - "One two three four fix six seven eight nine ten eleven twelve", - 250, - (err, image, { x, y }) => { - image.print( - loadedFont, - x, - y + 50, - "thirteen fourteen fifteen sixteen seventeen eighteen nineteen twenty", - 250 - ); - } - ); - - expectedImage.bitmap.data.should.be.deepEqual(image.bitmap.data); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-resize/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-resize/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-resize/LICENSE b/WechatBot/node_modules/@jimp/plugin-resize/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-resize/README.md b/WechatBot/node_modules/@jimp/plugin-resize/README.md deleted file mode 100644 index a74dbdff6..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/README.md +++ /dev/null @@ -1,61 +0,0 @@ -
- -

@jimp/plugin-resize

-

Resize an image.

-
- -Resizes the image to a set width and height using a 2-pass bilinear algorithm/ - -## Usage - -- @param {number} w the width to resize the image to (or Jimp.AUTO) -- @param {number} h the height to resize the image to (or Jimp.AUTO) -- @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - // Read the image. - const image = await jimp.read("test/image.png"); - - // Resize the image to width 150 and auto height. - await image.resize(150, jimp.AUTO); - - // Save and overwrite the image - await image.writeAsync("test/image.png"); -} - -main(); -``` - -## Auto - -`Jimp.AUTO` can be passes to either the height or width and jimp will scale the image accordingly. `Jimp.AUTO` cannot be both height and width. - -```js -// resize the height to 250 and scale the width accordingly -image.resize(Jimp.AUTO, 250); -// resize the width to 250 and scale the height accordingly -image.resize(250, Jimp.AUTO); -``` - -### Resize modes - -The default resizing algorithm uses a bilinear method. - -Optionally, the following constants can be passed to choose a particular resizing algorithm: - -```js -Jimp.RESIZE_NEAREST_NEIGHBOR; -Jimp.RESIZE_BILINEAR; -Jimp.RESIZE_BICUBIC; -Jimp.RESIZE_HERMITE; -Jimp.RESIZE_BEZIER; -``` - -```js -image.resize(250, 250, Jimp.RESIZE_BEZIER); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-resize/dist/index.js b/WechatBot/node_modules/@jimp/plugin-resize/dist/index.js deleted file mode 100755 index 5facc5815..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/dist/index.js +++ /dev/null @@ -1,96 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -var _resize = _interopRequireDefault(require("./modules/resize")); - -var _resize2 = _interopRequireDefault(require("./modules/resize2")); - -var _default = function _default() { - return { - constants: { - RESIZE_NEAREST_NEIGHBOR: "nearestNeighbor", - RESIZE_BILINEAR: "bilinearInterpolation", - RESIZE_BICUBIC: "bicubicInterpolation", - RESIZE_HERMITE: "hermiteInterpolation", - RESIZE_BEZIER: "bezierInterpolation" - }, - "class": { - /** - * Resizes the image to a set width and height using a 2-pass bilinear algorithm - * @param {number} w the width to resize the image to (or Jimp.AUTO) - * @param {number} h the height to resize the image to (or Jimp.AUTO) - * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - resize: function resize(w, h, mode, cb) { - if (typeof w !== "number" || typeof h !== "number") { - return _utils.throwError.call(this, "w and h must be numbers", cb); - } - - if (typeof mode === "function" && typeof cb === "undefined") { - cb = mode; - mode = null; - } - - if (w === this.constructor.AUTO && h === this.constructor.AUTO) { - return _utils.throwError.call(this, "w and h cannot both be set to auto", cb); - } - - if (w === this.constructor.AUTO) { - w = this.bitmap.width * (h / this.bitmap.height); - } - - if (h === this.constructor.AUTO) { - h = this.bitmap.height * (w / this.bitmap.width); - } - - if (w < 0 || h < 0) { - return _utils.throwError.call(this, "w and h must be positive numbers", cb); - } // round inputs - - - w = Math.round(w); - h = Math.round(h); - - if (typeof _resize2["default"][mode] === "function") { - var dst = { - data: Buffer.alloc(w * h * 4), - width: w, - height: h - }; - - _resize2["default"][mode](this.bitmap, dst); - - this.bitmap = dst; - } else { - var image = this; - var resize = new _resize["default"](this.bitmap.width, this.bitmap.height, w, h, true, true, function (buffer) { - image.bitmap.data = Buffer.from(buffer); - image.bitmap.width = w; - image.bitmap.height = h; - }); - resize.resize(this.bitmap.data); - } - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-resize/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-resize/dist/index.js.map deleted file mode 100644 index 4f6cf9b85..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["constants","RESIZE_NEAREST_NEIGHBOR","RESIZE_BILINEAR","RESIZE_BICUBIC","RESIZE_HERMITE","RESIZE_BEZIER","resize","w","h","mode","cb","throwError","call","constructor","AUTO","bitmap","width","height","Math","round","Resize2","dst","data","Buffer","alloc","image","Resize","buffer","from"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;eAEe;AAAA,SAAO;AACpBA,IAAAA,SAAS,EAAE;AACTC,MAAAA,uBAAuB,EAAE,iBADhB;AAETC,MAAAA,eAAe,EAAE,uBAFR;AAGTC,MAAAA,cAAc,EAAE,sBAHP;AAITC,MAAAA,cAAc,EAAE,sBAJP;AAKTC,MAAAA,aAAa,EAAE;AALN,KADS;AASpB,aAAO;AACL;;;;;;;;AAQAC,MAAAA,MATK,kBASEC,CATF,EASKC,CATL,EASQC,IATR,EAScC,EATd,EASkB;AACrB,YAAI,OAAOH,CAAP,KAAa,QAAb,IAAyB,OAAOC,CAAP,KAAa,QAA1C,EAAoD;AAClD,iBAAOG,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,yBAAtB,EAAiDF,EAAjD,CAAP;AACD;;AAED,YAAI,OAAOD,IAAP,KAAgB,UAAhB,IAA8B,OAAOC,EAAP,KAAc,WAAhD,EAA6D;AAC3DA,UAAAA,EAAE,GAAGD,IAAL;AACAA,UAAAA,IAAI,GAAG,IAAP;AACD;;AAED,YAAIF,CAAC,KAAK,KAAKM,WAAL,CAAiBC,IAAvB,IAA+BN,CAAC,KAAK,KAAKK,WAAL,CAAiBC,IAA1D,EAAgE;AAC9D,iBAAOH,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,oCAAtB,EA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B,MAAD,EAAY;AACVF,YAAAA,KAAK,CAACV,MAAN,CAAaO,IAAb,GAAoBC,MAAM,CAACK,IAAP,CAAYD,MAAZ,CAApB;AACAF,YAAAA,KAAK,CAACV,MAAN,CAAaC,KAAb,GAAqBT,CAArB;AACAkB,YAAAA,KAAK,CAACV,MAAN,CAAaE,MAAb,GAAsBT,CAAtB;AACD,WAXY,CAAf;AAaAF,UAAAA,MAAM,CAACA,MAAP,CAAc,KAAKS,MAAL,CAAYO,IAA1B;AACD;;AAED,YAAI,0BAAcZ,EAAd,CAAJ,EAAuB;AACrBA,UAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,eAAO,IAAP;AACD;AAtEI;AATa,GAAP;AAAA,C","sourcesContent":["import { throwError, isNodePattern } from \"@jimp/utils\";\n\nimport Resize from \"./modules/resize\";\nimport Resize2 from \"./modules/resize2\";\n\nexport default () => ({\n constants: {\n RESIZE_NEAREST_NEIGHBOR: \"nearestNeighbor\",\n RESIZE_BILINEAR: \"bilinearInterpolation\",\n RESIZE_BICUBIC: \"bicubicInterpolation\",\n RESIZE_HERMITE: \"hermiteInterpolation\",\n RESIZE_BEZIER: \"bezierInterpolation\",\n },\n\n class: {\n /**\n * Resizes the image to a set width and height using a 2-pass bilinear algorithm\n * @param {number} w the width to resize the image to (or Jimp.AUTO)\n * @param {number} h the height to resize the image to (or Jimp.AUTO)\n * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER)\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n resize(w, h, mode, cb) {\n if (typeof w !== \"number\" || typeof h !== \"number\") {\n return throwError.call(this, \"w and h must be numbers\", cb);\n }\n\n if (typeof mode === \"function\" && typeof cb === \"undefined\") {\n cb = mode;\n mode = null;\n }\n\n if (w === this.constructor.AUTO && h === this.constructor.AUTO) {\n return throwError.call(this, \"w and h cannot both be set to auto\", cb);\n }\n\n if (w === this.constructor.AUTO) {\n w = this.bitmap.width * (h / this.bitmap.height);\n }\n\n if (h === this.constructor.AUTO) {\n h = this.bitmap.height * (w / this.bitmap.width);\n }\n\n if (w < 0 || h < 0) {\n return throwError.call(this, \"w and h must be positive numbers\", cb);\n }\n\n // round inputs\n w = Math.round(w);\n h = Math.round(h);\n\n if (typeof Resize2[mode] === \"function\") {\n const dst = {\n data: Buffer.alloc(w * h * 4),\n width: w,\n height: h,\n };\n Resize2[mode](this.bitmap, dst);\n this.bitmap = dst;\n } else {\n const image = this;\n const resize = new Resize(\n this.bitmap.width,\n this.bitmap.height,\n w,\n h,\n true,\n true,\n (buffer) => {\n image.bitmap.data = Buffer.from(buffer);\n image.bitmap.width = w;\n image.bitmap.height = h;\n }\n );\n resize.resize(this.bitmap.data);\n }\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize.js b/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize.js deleted file mode 100755 index 05c89c0d5..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize.js +++ /dev/null @@ -1,406 +0,0 @@ -"use strict"; - -// JavaScript Image Resizer (c) 2012 - Grant Galitz -// Released to public domain 29 July 2013: https://github.com/grantgalitz/JS-Image-Resizer/issues/4 -function Resize(widthOriginal, heightOriginal, targetWidth, targetHeight, blendAlpha, interpolationPass, resizeCallback) { - this.widthOriginal = Math.abs(Math.floor(widthOriginal) || 0); - this.heightOriginal = Math.abs(Math.floor(heightOriginal) || 0); - this.targetWidth = Math.abs(Math.floor(targetWidth) || 0); - this.targetHeight = Math.abs(Math.floor(targetHeight) || 0); - this.colorChannels = blendAlpha ? 4 : 3; - this.interpolationPass = Boolean(interpolationPass); - this.resizeCallback = typeof resizeCallback === "function" ? resizeCallback : function () {}; - this.targetWidthMultipliedByChannels = this.targetWidth * this.colorChannels; - this.originalWidthMultipliedByChannels = this.widthOriginal * this.colorChannels; - this.originalHeightMultipliedByChannels = this.heightOriginal * this.colorChannels; - this.widthPassResultSize = this.targetWidthMultipliedByChannels * this.heightOriginal; - this.finalResultSize = this.targetWidthMultipliedByChannels * this.targetHeight; - this.initialize(); -} - -Resize.prototype.initialize = function () { - // Perform some checks: - if (this.widthOriginal > 0 && this.heightOriginal > 0 && this.targetWidth > 0 && this.targetHeight > 0) { - this.configurePasses(); - } else { - throw new Error("Invalid settings specified for the resizer."); - } -}; - -Resize.prototype.configurePasses = function () { - if (this.widthOriginal === this.targetWidth) { - // Bypass the width resizer pass: - this.resizeWidth = this.bypassResizer; - } else { - // Setup the width resizer pass: - this.ratioWeightWidthPass = this.widthOriginal / this.targetWidth; - - if (this.ratioWeightWidthPass < 1 && this.interpolationPass) { - this.initializeFirstPassBuffers(true); - this.resizeWidth = this.colorChannels === 4 ? this.resizeWidthInterpolatedRGBA : this.resizeWidthInterpolatedRGB; - } else { - this.initializeFirstPassBuffers(false); - this.resizeWidth = this.colorChannels === 4 ? this.resizeWidthRGBA : this.resizeWidthRGB; - } - } - - if (this.heightOriginal === this.targetHeight) { - // Bypass the height resizer pass: - this.resizeHeight = this.bypassResizer; - } else { - // Setup the height resizer pass: - this.ratioWeightHeightPass = this.heightOriginal / this.targetHeight; - - if (this.ratioWeightHeightPass < 1 && this.interpolationPass) { - this.initializeSecondPassBuffers(true); - this.resizeHeight = this.resizeHeightInterpolated; - } else { - this.initializeSecondPassBuffers(false); - this.resizeHeight = this.colorChannels === 4 ? this.resizeHeightRGBA : this.resizeHeightRGB; - } - } -}; - -Resize.prototype._resizeWidthInterpolatedRGBChannels = function (buffer, fourthChannel) { - var channelsNum = fourthChannel ? 4 : 3; - var ratioWeight = this.ratioWeightWidthPass; - var outputBuffer = this.widthBuffer; - var weight = 0; - var finalOffset = 0; - var pixelOffset = 0; - var firstWeight = 0; - var secondWeight = 0; - var targetPosition; // Handle for only one interpolation input being valid for start calculation: - - for (targetPosition = 0; weight < 1 / 3; targetPosition += channelsNum, weight += ratioWeight) { - for (finalOffset = targetPosition, pixelOffset = 0; finalOffset < this.widthPassResultSize; pixelOffset += this.originalWidthMultipliedByChannels, finalOffset += this.targetWidthMultipliedByChannels) { - outputBuffer[finalOffset] = buffer[pixelOffset]; - outputBuffer[finalOffset + 1] = buffer[pixelOffset + 1]; - outputBuffer[finalOffset + 2] = buffer[pixelOffset + 2]; - if (fourthChannel) outputBuffer[finalOffset + 3] = buffer[pixelOffset + 3]; - } - } // Adjust for overshoot of the last pass's counter: - - - weight -= 1 / 3; - var interpolationWidthSourceReadStop; - - for (interpolationWidthSourceReadStop = this.widthOriginal - 1; weight < interpolationWidthSourceReadStop; targetPosition += channelsNum, weight += ratioWeight) { - // Calculate weightings: - secondWeight = weight % 1; - firstWeight = 1 - secondWeight; // Interpolate: - - for (finalOffset = targetPosition, pixelOffset = Math.floor(weight) * channelsNum; finalOffset < this.widthPassResultSize; pixelOffset += this.originalWidthMultipliedByChannels, finalOffset += this.targetWidthMultipliedByChannels) { - outputBuffer[finalOffset + 0] = buffer[pixelOffset + 0] * firstWeight + buffer[pixelOffset + channelsNum + 0] * secondWeight; - outputBuffer[finalOffset + 1] = buffer[pixelOffset + 1] * firstWeight + buffer[pixelOffset + channelsNum + 1] * secondWeight; - outputBuffer[finalOffset + 2] = buffer[pixelOffset + 2] * firstWeight + buffer[pixelOffset + channelsNum + 2] * secondWeight; - if (fourthChannel) outputBuffer[finalOffset + 3] = buffer[pixelOffset + 3] * firstWeight + buffer[pixelOffset + channelsNum + 3] * secondWeight; - } - } // Handle for only one interpolation input being valid for end calculation: - - - for (interpolationWidthSourceReadStop = this.originalWidthMultipliedByChannels - channelsNum; targetPosition < this.targetWidthMultipliedByChannels; targetPosition += channelsNum) { - for (finalOffset = targetPosition, pixelOffset = interpolationWidthSourceReadStop; finalOffset < this.widthPassResultSize; pixelOffset += this.originalWidthMultipliedByChannels, finalOffset += this.targetWidthMultipliedByChannels) { - outputBuffer[finalOffset] = buffer[pixelOffset]; - outputBuffer[finalOffset + 1] = buffer[pixelOffset + 1]; - outputBuffer[finalOffset + 2] = buffer[pixelOffset + 2]; - if (fourthChannel) outputBuffer[finalOffset + 3] = buffer[pixelOffset + 3]; - } - } - - return outputBuffer; -}; - -Resize.prototype._resizeWidthRGBChannels = function (buffer, fourthChannel) { - var channelsNum = fourthChannel ? 4 : 3; - var ratioWeight = this.ratioWeightWidthPass; - var ratioWeightDivisor = 1 / ratioWeight; - var nextLineOffsetOriginalWidth = this.originalWidthMultipliedByChannels - channelsNum + 1; - var nextLineOffsetTargetWidth = this.targetWidthMultipliedByChannels - channelsNum + 1; - var output = this.outputWidthWorkBench; - var outputBuffer = this.widthBuffer; - var trustworthyColorsCount = this.outputWidthWorkBenchOpaquePixelsCount; - var weight = 0; - var amountToNext = 0; - var actualPosition = 0; - var currentPosition = 0; - var line = 0; - var pixelOffset = 0; - var outputOffset = 0; - var multiplier = 1; - var r = 0; - var g = 0; - var b = 0; - var a = 0; - - do { - for (line = 0; line < this.originalHeightMultipliedByChannels;) { - output[line++] = 0; - output[line++] = 0; - output[line++] = 0; - - if (fourthChannel) { - output[line++] = 0; - trustworthyColorsCount[line / channelsNum - 1] = 0; - } - } - - weight = ratioWeight; - - do { - amountToNext = 1 + actualPosition - currentPosition; - multiplier = Math.min(weight, amountToNext); - - for (line = 0, pixelOffset = actualPosition; line < this.originalHeightMultipliedByChannels; pixelOffset += nextLineOffsetOriginalWidth) { - r = buffer[pixelOffset]; - g = buffer[++pixelOffset]; - b = buffer[++pixelOffset]; - a = fourthChannel ? buffer[++pixelOffset] : 255; // Ignore RGB values if pixel is completely transparent - - output[line++] += (a ? r : 0) * multiplier; - output[line++] += (a ? g : 0) * multiplier; - output[line++] += (a ? b : 0) * multiplier; - - if (fourthChannel) { - output[line++] += a * multiplier; - trustworthyColorsCount[line / channelsNum - 1] += a ? multiplier : 0; - } - } - - if (weight >= amountToNext) { - actualPosition += channelsNum; - currentPosition = actualPosition; - weight -= amountToNext; - } else { - currentPosition += weight; - break; - } - } while (weight > 0 && actualPosition < this.originalWidthMultipliedByChannels); - - for (line = 0, pixelOffset = outputOffset; line < this.originalHeightMultipliedByChannels; pixelOffset += nextLineOffsetTargetWidth) { - weight = fourthChannel ? trustworthyColorsCount[line / channelsNum] : 1; - multiplier = fourthChannel ? weight ? 1 / weight : 0 : ratioWeightDivisor; - outputBuffer[pixelOffset] = output[line++] * multiplier; - outputBuffer[++pixelOffset] = output[line++] * multiplier; - outputBuffer[++pixelOffset] = output[line++] * multiplier; - if (fourthChannel) outputBuffer[++pixelOffset] = output[line++] * ratioWeightDivisor; - } - - outputOffset += channelsNum; - } while (outputOffset < this.targetWidthMultipliedByChannels); - - return outputBuffer; -}; - -Resize.prototype._resizeHeightRGBChannels = function (buffer, fourthChannel) { - var ratioWeight = this.ratioWeightHeightPass; - var ratioWeightDivisor = 1 / ratioWeight; - var output = this.outputHeightWorkBench; - var outputBuffer = this.heightBuffer; - var trustworthyColorsCount = this.outputHeightWorkBenchOpaquePixelsCount; - var weight = 0; - var amountToNext = 0; - var actualPosition = 0; - var currentPosition = 0; - var pixelOffset = 0; - var outputOffset = 0; - var caret = 0; - var multiplier = 1; - var r = 0; - var g = 0; - var b = 0; - var a = 0; - - do { - for (pixelOffset = 0; pixelOffset < this.targetWidthMultipliedByChannels;) { - output[pixelOffset++] = 0; - output[pixelOffset++] = 0; - output[pixelOffset++] = 0; - - if (fourthChannel) { - output[pixelOffset++] = 0; - trustworthyColorsCount[pixelOffset / 4 - 1] = 0; - } - } - - weight = ratioWeight; - - do { - amountToNext = 1 + actualPosition - currentPosition; - multiplier = Math.min(weight, amountToNext); - caret = actualPosition; - - for (pixelOffset = 0; pixelOffset < this.targetWidthMultipliedByChannels;) { - r = buffer[caret++]; - g = buffer[caret++]; - b = buffer[caret++]; - a = fourthChannel ? buffer[caret++] : 255; // Ignore RGB values if pixel is completely transparent - - output[pixelOffset++] += (a ? r : 0) * multiplier; - output[pixelOffset++] += (a ? g : 0) * multiplier; - output[pixelOffset++] += (a ? b : 0) * multiplier; - - if (fourthChannel) { - output[pixelOffset++] += a * multiplier; - trustworthyColorsCount[pixelOffset / 4 - 1] += a ? multiplier : 0; - } - } - - if (weight >= amountToNext) { - actualPosition = caret; - currentPosition = actualPosition; - weight -= amountToNext; - } else { - currentPosition += weight; - break; - } - } while (weight > 0 && actualPosition < this.widthPassResultSize); - - for (pixelOffset = 0; pixelOffset < this.targetWidthMultipliedByChannels;) { - weight = fourthChannel ? trustworthyColorsCount[pixelOffset / 4] : 1; - multiplier = fourthChannel ? weight ? 1 / weight : 0 : ratioWeightDivisor; - outputBuffer[outputOffset++] = Math.round(output[pixelOffset++] * multiplier); - outputBuffer[outputOffset++] = Math.round(output[pixelOffset++] * multiplier); - outputBuffer[outputOffset++] = Math.round(output[pixelOffset++] * multiplier); - - if (fourthChannel) { - outputBuffer[outputOffset++] = Math.round(output[pixelOffset++] * ratioWeightDivisor); - } - } - } while (outputOffset < this.finalResultSize); - - return outputBuffer; -}; - -Resize.prototype.resizeWidthInterpolatedRGB = function (buffer) { - return this._resizeWidthInterpolatedRGBChannels(buffer, false); -}; - -Resize.prototype.resizeWidthInterpolatedRGBA = function (buffer) { - return this._resizeWidthInterpolatedRGBChannels(buffer, true); -}; - -Resize.prototype.resizeWidthRGB = function (buffer) { - return this._resizeWidthRGBChannels(buffer, false); -}; - -Resize.prototype.resizeWidthRGBA = function (buffer) { - return this._resizeWidthRGBChannels(buffer, true); -}; - -Resize.prototype.resizeHeightInterpolated = function (buffer) { - var ratioWeight = this.ratioWeightHeightPass; - var outputBuffer = this.heightBuffer; - var weight = 0; - var finalOffset = 0; - var pixelOffset = 0; - var pixelOffsetAccumulated = 0; - var pixelOffsetAccumulated2 = 0; - var firstWeight = 0; - var secondWeight = 0; - var interpolationHeightSourceReadStop; // Handle for only one interpolation input being valid for start calculation: - - for (; weight < 1 / 3; weight += ratioWeight) { - for (pixelOffset = 0; pixelOffset < this.targetWidthMultipliedByChannels;) { - outputBuffer[finalOffset++] = Math.round(buffer[pixelOffset++]); - } - } // Adjust for overshoot of the last pass's counter: - - - weight -= 1 / 3; - - for (interpolationHeightSourceReadStop = this.heightOriginal - 1; weight < interpolationHeightSourceReadStop; weight += ratioWeight) { - // Calculate weightings: - secondWeight = weight % 1; - firstWeight = 1 - secondWeight; // Interpolate: - - pixelOffsetAccumulated = Math.floor(weight) * this.targetWidthMultipliedByChannels; - pixelOffsetAccumulated2 = pixelOffsetAccumulated + this.targetWidthMultipliedByChannels; - - for (pixelOffset = 0; pixelOffset < this.targetWidthMultipliedByChannels; ++pixelOffset) { - outputBuffer[finalOffset++] = Math.round(buffer[pixelOffsetAccumulated++] * firstWeight + buffer[pixelOffsetAccumulated2++] * secondWeight); - } - } // Handle for only one interpolation input being valid for end calculation: - - - while (finalOffset < this.finalResultSize) { - for (pixelOffset = 0, pixelOffsetAccumulated = interpolationHeightSourceReadStop * this.targetWidthMultipliedByChannels; pixelOffset < this.targetWidthMultipliedByChannels; ++pixelOffset) { - outputBuffer[finalOffset++] = Math.round(buffer[pixelOffsetAccumulated++]); - } - } - - return outputBuffer; -}; - -Resize.prototype.resizeHeightRGB = function (buffer) { - return this._resizeHeightRGBChannels(buffer, false); -}; - -Resize.prototype.resizeHeightRGBA = function (buffer) { - return this._resizeHeightRGBChannels(buffer, true); -}; - -Resize.prototype.resize = function (buffer) { - this.resizeCallback(this.resizeHeight(this.resizeWidth(buffer))); -}; - -Resize.prototype.bypassResizer = function (buffer) { - // Just return the buffer passed: - return buffer; -}; - -Resize.prototype.initializeFirstPassBuffers = function (BILINEARAlgo) { - // Initialize the internal width pass buffers: - this.widthBuffer = this.generateFloatBuffer(this.widthPassResultSize); - - if (!BILINEARAlgo) { - this.outputWidthWorkBench = this.generateFloatBuffer(this.originalHeightMultipliedByChannels); - - if (this.colorChannels > 3) { - this.outputWidthWorkBenchOpaquePixelsCount = this.generateFloat64Buffer(this.heightOriginal); - } - } -}; - -Resize.prototype.initializeSecondPassBuffers = function (BILINEARAlgo) { - // Initialize the internal height pass buffers: - this.heightBuffer = this.generateUint8Buffer(this.finalResultSize); - - if (!BILINEARAlgo) { - this.outputHeightWorkBench = this.generateFloatBuffer(this.targetWidthMultipliedByChannels); - - if (this.colorChannels > 3) { - this.outputHeightWorkBenchOpaquePixelsCount = this.generateFloat64Buffer(this.targetWidth); - } - } -}; - -Resize.prototype.generateFloatBuffer = function (bufferLength) { - // Generate a float32 typed array buffer: - try { - return new Float32Array(bufferLength); - } catch (error) { - return []; - } -}; - -Resize.prototype.generateFloat64Buffer = function (bufferLength) { - // Generate a float64 typed array buffer: - try { - return new Float64Array(bufferLength); - } catch (error) { - return []; - } -}; - -Resize.prototype.generateUint8Buffer = function (bufferLength) { - // Generate a uint8 typed array buffer: - try { - return new Uint8Array(bufferLength); - } catch (error) { - return []; - } -}; - -module.exports = Resize; -//# sourceMappingURL=resize.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize.js.map b/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize.js.map deleted file mode 100644 index da4bf2ad4..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/modules/resize.js"],"names":["Resize","widthOriginal","heightOriginal","targetWidth","targetHeight","blendAlpha","interpolationPass","resizeCallback","Math","abs","floor","colorChannels","Boolean","targetWidthMultipliedByChannels","originalWidthMultipliedByChannels","originalHeightMultipliedByChannels","widthPassResultSize","finalResultSize","initialize","prototype","configurePasses","Error","resizeWidth","bypassResizer","ratioWeightWidthPass","initializeFirstPassBuffers","resizeWidthInterpolatedRGBA","resizeWidthInterpolatedRGB","resizeWidthRGBA","resizeWidthRGB","resizeHeight","ratioWeightHeightPass","initializeSecondPassBuffers","resizeHeightInterpolated","resizeHeightRGBA","resizeHeightRGB","_resizeWidthInterpolatedRGBChannels","buffer","fourthChannel","channelsNum","ratioWeight","outputBuffer","widthBuffer","weight","finalOffset","pixelOffset","firstWeight","secondWeight","targetPosition","interpolationWidthSourceReadStop","_resizeWidthRGBChannels","ratioWeightDivisor","nextLineOffsetOriginalWidth","nextLineOffsetTargetWidth","output","outputWidthWorkBench","trustworthyColorsCount","outputWidthWorkBenchOpaquePixelsCount","amountToNext","actualPosition","currentPosition","line","outputOffset","multiplier","r","g","b","a","min","_resizeHeightRGBChannels","outputHeightWorkBench","heightBuffer","outputHeightWorkBenchOpaquePixelsCount","caret","round","pixelOffsetAccumulated","pixelOffsetAccumulated2","interpolationHeightSourceReadStop","resize","BILINEARAlgo","generateFloatBuffer","generateFloat64Buffer","generateUint8Buffer","bufferLength","Float32Array","error","Float64Array","Uint8Array","module","exports"],"mappings":";;AAAA;AACA;AAEA,SAASA,MAAT,CACEC,aADF,EAEEC,cAFF,EAGEC,WAHF,EAIEC,YAJF,EAKEC,UALF,EAMEC,iBANF,EAOEC,cAPF,EAQE;AACA,OAAKN,aAAL,GAAqBO,IAAI,CAACC,GAAL,CAASD,IAAI,CAACE,KAAL,CAAWT,aAAX,KAA6B,CAAtC,CAArB;AACA,OAAKC,cAAL,GAAsBM,IAAI,CAACC,GAAL,CAASD,IAAI,CAACE,KAAL,CAAWR,cAAX,KAA8B,CAAvC,CAAtB;AACA,OAAKC,WAAL,GAAmBK,IAAI,CAACC,GAAL,CAASD,IAAI,CAACE,KAAL,CAAWP,WAAX,KAA2B,CAApC,CAAnB;AACA,OAAKC,YAAL,GAAoBI,IAAI,CAACC,GAAL,CAASD,IAAI,CAACE,KAAL,CAAWN,YAAX,KAA4B,CAArC,CAApB;AACA,OAAKO,aAAL,GAAqBN,UAAU,GAAG,CAAH,GAAO,CAAtC;AACA,OAAKC,iBAAL,GAAyBM,OAAO,CAACN,iBAAD,CAAhC;AACA,OAAKC,cAAL,GACE,OAAOA,cAAP,KAA0B,UAA1B,GAAuCA,cAAvC,GAAwD,YAAY,CAAE,CADxE;AAGA,OAA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ACA,MAAI;AACF,WAAO,IAAIG,YAAJ,CAAiBH,YAAjB,CAAP;AACD,GAFD,CAEE,OAAOE,KAAP,EAAc;AACd,WAAO,EAAP;AACD;AACF,CAPD;;AASArF,MAAM,CAACmB,SAAP,CAAiB+D,mBAAjB,GAAuC,UAAUC,YAAV,EAAwB;AAC7D;AACA,MAAI;AACF,WAAO,IAAII,UAAJ,CAAeJ,YAAf,CAAP;AACD,GAFD,CAEE,OAAOE,KAAP,EAAc;AACd,WAAO,EAAP;AACD;AACF,CAPD;;AASAG,MAAM,CAACC,OAAP,GAAiBzF,MAAjB","sourcesContent":["// JavaScript Image Resizer (c) 2012 - Grant Galitz\n// Released to public domain 29 July 2013: https://github.com/grantgalitz/JS-Image-Resizer/issues/4\n\nfunction Resize(\n widthOriginal,\n heightOriginal,\n targetWidth,\n targetHeight,\n blendAlpha,\n interpolationPass,\n resizeCallback\n) {\n this.widthOriginal = Math.abs(Math.floor(widthOriginal) || 0);\n this.heightOriginal = Math.abs(Math.floor(heightOriginal) || 0);\n this.targetWidth = Math.abs(Math.floor(targetWidth) || 0);\n this.targetHeight = Math.abs(Math.floor(targetHeight) || 0);\n this.colorChannels = blendAlpha ? 4 : 3;\n this.interpolationPass = Boolean(interpolationPass);\n this.resizeCallback =\n typeof resizeCallback === \"function\" ? resizeCallback : function () {};\n\n this.targetWidthMultipliedByChannels = this.targetWidth * this.colorChannels;\n this.originalWidthMultipliedByChannels =\n this.widthOriginal * this.colorChannels;\n this.originalHeightMultipliedByChannels =\n this.heightOriginal * this.colorChannels;\n this.widthPassResultSize =\n this.targetWidthMultipliedByChannels * this.heightOriginal;\n this.finalResultSize =\n this.targetWidthMultipliedByChannels * this.targetHeight;\n this.initialize();\n}\n\nResize.prototype.initialize = function () {\n // Perform some checks:\n if (\n this.widthOriginal > 0 &&\n this.heightOriginal > 0 &&\n this.targetWidth > 0 &&\n this.targetHeight > 0\n ) {\n this.configurePasses();\n } else {\n throw new Error(\"Invalid settings specified for the resizer.\");\n }\n};\n\nResize.prototype.configurePasses = function () {\n if (this.widthOriginal === this.targetWidth) {\n // Bypass the width resizer pass:\n this.resizeWidth = this.bypassResizer;\n } else {\n // Setup the width resizer pass:\n this.ratioWeightWidthPass = this.widthOriginal / this.targetWidth;\n if (this.ratioWeightWidthPass < 1 && this.interpolationPass) {\n this.initializeFirstPassBuffers(true);\n this.resizeWidth =\n this.colorChannels === 4\n ? this.resizeWidthInterpolatedRGBA\n : this.resizeWidthInterpolatedRGB;\n } else {\n this.initializeFirstPassBuffers(false);\n this.resizeWidth =\n this.colorChannels === 4 ? this.resizeWidthRGBA : this.resizeWidthRGB;\n }\n }\n\n if (this.heightOriginal === this.targetHeight) {\n // Bypass the height resizer pass:\n this.resizeHeight = this.bypassResizer;\n } else {\n // Setup the height resizer pass:\n this.ratioWeightHeightPass = this.heightOriginal / this.targetHeight;\n if (this.ratioWeightHeightPass < 1 && this.interpolationPass) {\n this.initializeSecondPassBuffers(true);\n this.resizeHeight = this.resizeHeightInterpolated;\n } else {\n this.initializeSecondPassBuffers(false);\n this.resizeHeight =\n this.colorChannels === 4 ? this.resizeHeightRGBA : this.resizeHeightRGB;\n }\n }\n};\n\nResize.prototype._resizeWidthInterpolatedRGBChannels = function (\n buffer,\n fourthChannel\n) {\n const channelsNum = fourthChannel ? 4 : 3;\n const ratioWeight = this.ratioWeightWidthPass;\n const outputBuffer = this.widthBuffer;\n\n let weight = 0;\n let finalOffset = 0;\n let pixelOffset = 0;\n let firstWeight = 0;\n let secondWeight = 0;\n let targetPosition;\n\n // Handle for only one interpolation input being valid for start calculation:\n for (\n targetPosition = 0;\n weight < 1 / 3;\n targetPosition += channelsNum, weight += ratioWeight\n ) {\n for (\n finalOffset = targetPosition, pixelOffset = 0;\n finalOffset < this.widthPassResultSize;\n pixelOffset += this.originalWidthMultipliedByChannels,\n finalOffset += this.targetWidthMultipliedByChannels\n ) {\n outputBuffer[finalOffset] = buffer[pixelOffset];\n outputBuffer[finalOffset + 1] = buffer[pixelOffset + 1];\n outputBuffer[finalOffset + 2] = buffer[pixelOffset + 2];\n if (fourthChannel)\n outputBuffer[finalOffset + 3] = buffer[pixelOffset + 3];\n }\n }\n\n // Adjust for overshoot of the last pass's counter:\n weight -= 1 / 3;\n let interpolationWidthSourceReadStop;\n\n for (\n interpolationWidthSourceReadStop = this.widthOriginal - 1;\n weight < interpolationWidthSourceReadStop;\n targetPosition += channelsNum, weight += ratioWeight\n ) {\n // Calculate weightings:\n secondWeight = weight % 1;\n firstWeight = 1 - secondWeight;\n // Interpolate:\n for (\n finalOffset = targetPosition,\n pixelOffset = Math.floor(weight) * channelsNum;\n finalOffset < this.widthPassResultSize;\n pixelOffset += this.originalWidthMultipliedByChannels,\n finalOffset += this.targetWidthMultipliedByChannels\n ) {\n outputBuffer[finalOffset + 0] =\n buffer[pixelOffset + 0] * firstWeight +\n buffer[pixelOffset + channelsNum + 0] * secondWeight;\n outputBuffer[finalOffset + 1] =\n buffer[pixelOffset + 1] * firstWeight +\n buffer[pixelOffset + channelsNum + 1] * secondWeight;\n outputBuffer[finalOffset + 2] =\n buffer[pixelOffset + 2] * firstWeight +\n buffer[pixelOffset + channelsNum + 2] * secondWeight;\n if (fourthChannel)\n outputBuffer[finalOffset + 3] =\n buffer[pixelOffset + 3] * firstWeight +\n buffer[pixelOffset + channelsNum + 3] * secondWeight;\n }\n }\n\n // Handle for only one interpolation input being valid for end calculation:\n for (\n interpolationWidthSourceReadStop =\n this.originalWidthMultipliedByChannels - channelsNum;\n targetPosition < this.targetWidthMultipliedByChannels;\n targetPosition += channelsNum\n ) {\n for (\n finalOffset = targetPosition,\n pixelOffset = interpolationWidthSourceReadStop;\n finalOffset < this.widthPassResultSize;\n pixelOffset += this.originalWidthMultipliedByChannels,\n finalOffset += this.targetWidthMultipliedByChannels\n ) {\n outputBuffer[finalOffset] = buffer[pixelOffset];\n outputBuffer[finalOffset + 1] = buffer[pixelOffset + 1];\n outputBuffer[finalOffset + 2] = buffer[pixelOffset + 2];\n if (fourthChannel)\n outputBuffer[finalOffset + 3] = buffer[pixelOffset + 3];\n }\n }\n\n return outputBuffer;\n};\n\nResize.prototype._resizeWidthRGBChannels = function (buffer, fourthChannel) {\n const channelsNum = fourthChannel ? 4 : 3;\n const ratioWeight = this.ratioWeightWidthPass;\n const ratioWeightDivisor = 1 / ratioWeight;\n const nextLineOffsetOriginalWidth =\n this.originalWidthMultipliedByChannels - channelsNum + 1;\n const nextLineOffsetTargetWidth =\n this.targetWidthMultipliedByChannels - channelsNum + 1;\n const output = this.outputWidthWorkBench;\n const outputBuffer = this.widthBuffer;\n const trustworthyColorsCount = this.outputWidthWorkBenchOpaquePixelsCount;\n\n let weight = 0;\n let amountToNext = 0;\n let actualPosition = 0;\n let currentPosition = 0;\n let line = 0;\n let pixelOffset = 0;\n let outputOffset = 0;\n let multiplier = 1;\n let r = 0;\n let g = 0;\n let b = 0;\n let a = 0;\n\n do {\n for (line = 0; line < this.originalHeightMultipliedByChannels; ) {\n output[line++] = 0;\n output[line++] = 0;\n output[line++] = 0;\n if (fourthChannel) {\n output[line++] = 0;\n trustworthyColorsCount[line / channelsNum - 1] = 0;\n }\n }\n\n weight = ratioWeight;\n\n do {\n amountToNext = 1 + actualPosition - currentPosition;\n multiplier = Math.min(weight, amountToNext);\n for (\n line = 0, pixelOffset = actualPosition;\n line < this.originalHeightMultipliedByChannels;\n pixelOffset += nextLineOffsetOriginalWidth\n ) {\n r = buffer[pixelOffset];\n g = buffer[++pixelOffset];\n b = buffer[++pixelOffset];\n a = fourthChannel ? buffer[++pixelOffset] : 255;\n // Ignore RGB values if pixel is completely transparent\n output[line++] += (a ? r : 0) * multiplier;\n output[line++] += (a ? g : 0) * multiplier;\n output[line++] += (a ? b : 0) * multiplier;\n if (fourthChannel) {\n output[line++] += a * multiplier;\n trustworthyColorsCount[line / channelsNum - 1] += a ? multiplier : 0;\n }\n }\n\n if (weight >= amountToNext) {\n actualPosition += channelsNum;\n currentPosition = actualPosition;\n weight -= amountToNext;\n } else {\n currentPosition += weight;\n break;\n }\n } while (\n weight > 0 &&\n actualPosition < this.originalWidthMultipliedByChannels\n );\n\n for (\n line = 0, pixelOffset = outputOffset;\n line < this.originalHeightMultipliedByChannels;\n pixelOffset += nextLineOffsetTargetWidth\n ) {\n weight = fourthChannel ? trustworthyColorsCount[line / channelsNum] : 1;\n multiplier = fourthChannel\n ? weight\n ? 1 / weight\n : 0\n : ratioWeightDivisor;\n outputBuffer[pixelOffset] = output[line++] * multiplier;\n outputBuffer[++pixelOffset] = output[line++] * multiplier;\n outputBuffer[++pixelOffset] = output[line++] * multiplier;\n if (fourthChannel)\n outputBuffer[++pixelOffset] = output[line++] * ratioWeightDivisor;\n }\n\n outputOffset += channelsNum;\n } while (outputOffset < this.targetWidthMultipliedByChannels);\n\n return outputBuffer;\n};\n\nResize.prototype._resizeHeightRGBChannels = function (buffer, fourthChannel) {\n const ratioWeight = this.ratioWeightHeightPass;\n const ratioWeightDivisor = 1 / ratioWeight;\n const output = this.outputHeightWorkBench;\n const outputBuffer = this.heightBuffer;\n const trustworthyColorsCount = this.outputHeightWorkBenchOpaquePixelsCount;\n\n let weight = 0;\n let amountToNext = 0;\n let actualPosition = 0;\n let currentPosition = 0;\n let pixelOffset = 0;\n let outputOffset = 0;\n let caret = 0;\n let multiplier = 1;\n let r = 0;\n let g = 0;\n let b = 0;\n let a = 0;\n\n do {\n for (\n pixelOffset = 0;\n pixelOffset < this.targetWidthMultipliedByChannels;\n\n ) {\n output[pixelOffset++] = 0;\n output[pixelOffset++] = 0;\n output[pixelOffset++] = 0;\n\n if (fourthChannel) {\n output[pixelOffset++] = 0;\n trustworthyColorsCount[pixelOffset / 4 - 1] = 0;\n }\n }\n\n weight = ratioWeight;\n\n do {\n amountToNext = 1 + actualPosition - currentPosition;\n multiplier = Math.min(weight, amountToNext);\n caret = actualPosition;\n\n for (\n pixelOffset = 0;\n pixelOffset < this.targetWidthMultipliedByChannels;\n\n ) {\n r = buffer[caret++];\n g = buffer[caret++];\n b = buffer[caret++];\n a = fourthChannel ? buffer[caret++] : 255;\n // Ignore RGB values if pixel is completely transparent\n output[pixelOffset++] += (a ? r : 0) * multiplier;\n output[pixelOffset++] += (a ? g : 0) * multiplier;\n output[pixelOffset++] += (a ? b : 0) * multiplier;\n\n if (fourthChannel) {\n output[pixelOffset++] += a * multiplier;\n trustworthyColorsCount[pixelOffset / 4 - 1] += a ? multiplier : 0;\n }\n }\n\n if (weight >= amountToNext) {\n actualPosition = caret;\n currentPosition = actualPosition;\n weight -= amountToNext;\n } else {\n currentPosition += weight;\n break;\n }\n } while (weight > 0 && actualPosition < this.widthPassResultSize);\n\n for (\n pixelOffset = 0;\n pixelOffset < this.targetWidthMultipliedByChannels;\n\n ) {\n weight = fourthChannel ? trustworthyColorsCount[pixelOffset / 4] : 1;\n multiplier = fourthChannel\n ? weight\n ? 1 / weight\n : 0\n : ratioWeightDivisor;\n outputBuffer[outputOffset++] = Math.round(\n output[pixelOffset++] * multiplier\n );\n outputBuffer[outputOffset++] = Math.round(\n output[pixelOffset++] * multiplier\n );\n outputBuffer[outputOffset++] = Math.round(\n output[pixelOffset++] * multiplier\n );\n\n if (fourthChannel) {\n outputBuffer[outputOffset++] = Math.round(\n output[pixelOffset++] * ratioWeightDivisor\n );\n }\n }\n } while (outputOffset < this.finalResultSize);\n\n return outputBuffer;\n};\n\nResize.prototype.resizeWidthInterpolatedRGB = function (buffer) {\n return this._resizeWidthInterpolatedRGBChannels(buffer, false);\n};\n\nResize.prototype.resizeWidthInterpolatedRGBA = function (buffer) {\n return this._resizeWidthInterpolatedRGBChannels(buffer, true);\n};\n\nResize.prototype.resizeWidthRGB = function (buffer) {\n return this._resizeWidthRGBChannels(buffer, false);\n};\n\nResize.prototype.resizeWidthRGBA = function (buffer) {\n return this._resizeWidthRGBChannels(buffer, true);\n};\n\nResize.prototype.resizeHeightInterpolated = function (buffer) {\n const ratioWeight = this.ratioWeightHeightPass;\n const outputBuffer = this.heightBuffer;\n\n let weight = 0;\n let finalOffset = 0;\n let pixelOffset = 0;\n let pixelOffsetAccumulated = 0;\n let pixelOffsetAccumulated2 = 0;\n let firstWeight = 0;\n let secondWeight = 0;\n let interpolationHeightSourceReadStop;\n\n // Handle for only one interpolation input being valid for start calculation:\n for (; weight < 1 / 3; weight += ratioWeight) {\n for (\n pixelOffset = 0;\n pixelOffset < this.targetWidthMultipliedByChannels;\n\n ) {\n outputBuffer[finalOffset++] = Math.round(buffer[pixelOffset++]);\n }\n }\n\n // Adjust for overshoot of the last pass's counter:\n weight -= 1 / 3;\n\n for (\n interpolationHeightSourceReadStop = this.heightOriginal - 1;\n weight < interpolationHeightSourceReadStop;\n weight += ratioWeight\n ) {\n // Calculate weightings:\n secondWeight = weight % 1;\n firstWeight = 1 - secondWeight;\n // Interpolate:\n pixelOffsetAccumulated =\n Math.floor(weight) * this.targetWidthMultipliedByChannels;\n pixelOffsetAccumulated2 =\n pixelOffsetAccumulated + this.targetWidthMultipliedByChannels;\n for (\n pixelOffset = 0;\n pixelOffset < this.targetWidthMultipliedByChannels;\n ++pixelOffset\n ) {\n outputBuffer[finalOffset++] = Math.round(\n buffer[pixelOffsetAccumulated++] * firstWeight +\n buffer[pixelOffsetAccumulated2++] * secondWeight\n );\n }\n }\n\n // Handle for only one interpolation input being valid for end calculation:\n while (finalOffset < this.finalResultSize) {\n for (\n pixelOffset = 0,\n pixelOffsetAccumulated =\n interpolationHeightSourceReadStop *\n this.targetWidthMultipliedByChannels;\n pixelOffset < this.targetWidthMultipliedByChannels;\n ++pixelOffset\n ) {\n outputBuffer[finalOffset++] = Math.round(\n buffer[pixelOffsetAccumulated++]\n );\n }\n }\n\n return outputBuffer;\n};\n\nResize.prototype.resizeHeightRGB = function (buffer) {\n return this._resizeHeightRGBChannels(buffer, false);\n};\n\nResize.prototype.resizeHeightRGBA = function (buffer) {\n return this._resizeHeightRGBChannels(buffer, true);\n};\n\nResize.prototype.resize = function (buffer) {\n this.resizeCallback(this.resizeHeight(this.resizeWidth(buffer)));\n};\n\nResize.prototype.bypassResizer = function (buffer) {\n // Just return the buffer passed:\n return buffer;\n};\n\nResize.prototype.initializeFirstPassBuffers = function (BILINEARAlgo) {\n // Initialize the internal width pass buffers:\n this.widthBuffer = this.generateFloatBuffer(this.widthPassResultSize);\n\n if (!BILINEARAlgo) {\n this.outputWidthWorkBench = this.generateFloatBuffer(\n this.originalHeightMultipliedByChannels\n );\n\n if (this.colorChannels > 3) {\n this.outputWidthWorkBenchOpaquePixelsCount = this.generateFloat64Buffer(\n this.heightOriginal\n );\n }\n }\n};\n\nResize.prototype.initializeSecondPassBuffers = function (BILINEARAlgo) {\n // Initialize the internal height pass buffers:\n this.heightBuffer = this.generateUint8Buffer(this.finalResultSize);\n\n if (!BILINEARAlgo) {\n this.outputHeightWorkBench = this.generateFloatBuffer(\n this.targetWidthMultipliedByChannels\n );\n\n if (this.colorChannels > 3) {\n this.outputHeightWorkBenchOpaquePixelsCount = this.generateFloat64Buffer(\n this.targetWidth\n );\n }\n }\n};\n\nResize.prototype.generateFloatBuffer = function (bufferLength) {\n // Generate a float32 typed array buffer:\n try {\n return new Float32Array(bufferLength);\n } catch (error) {\n return [];\n }\n};\n\nResize.prototype.generateFloat64Buffer = function (bufferLength) {\n // Generate a float64 typed array buffer:\n try {\n return new Float64Array(bufferLength);\n } catch (error) {\n return [];\n }\n};\n\nResize.prototype.generateUint8Buffer = function (bufferLength) {\n // Generate a uint8 typed array buffer:\n try {\n return new Uint8Array(bufferLength);\n } catch (error) {\n return [];\n }\n};\n\nmodule.exports = Resize;\n"],"file":"resize.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize2.js b/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize2.js deleted file mode 100755 index a1b6abdc9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize2.js +++ /dev/null @@ -1,266 +0,0 @@ -"use strict"; - -/** - * Copyright (c) 2015 Guyon Roche - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions:

- * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -module.exports = { - nearestNeighbor: function nearestNeighbor(src, dst) { - var wSrc = src.width; - var hSrc = src.height; - var wDst = dst.width; - var hDst = dst.height; - var bufSrc = src.data; - var bufDst = dst.data; - - for (var i = 0; i < hDst; i++) { - for (var j = 0; j < wDst; j++) { - var posDst = (i * wDst + j) * 4; - var iSrc = Math.floor(i * hSrc / hDst); - var jSrc = Math.floor(j * wSrc / wDst); - var posSrc = (iSrc * wSrc + jSrc) * 4; - bufDst[posDst++] = bufSrc[posSrc++]; - bufDst[posDst++] = bufSrc[posSrc++]; - bufDst[posDst++] = bufSrc[posSrc++]; - bufDst[posDst++] = bufSrc[posSrc++]; - } - } - }, - bilinearInterpolation: function bilinearInterpolation(src, dst) { - var wSrc = src.width; - var hSrc = src.height; - var wDst = dst.width; - var hDst = dst.height; - var bufSrc = src.data; - var bufDst = dst.data; - - var interpolate = function interpolate(k, kMin, vMin, kMax, vMax) { - // special case - k is integer - if (kMin === kMax) { - return vMin; - } - - return Math.round((k - kMin) * vMax + (kMax - k) * vMin); - }; - - var assign = function assign(pos, offset, x, xMin, xMax, y, yMin, yMax) { - var posMin = (yMin * wSrc + xMin) * 4 + offset; - var posMax = (yMin * wSrc + xMax) * 4 + offset; - var vMin = interpolate(x, xMin, bufSrc[posMin], xMax, bufSrc[posMax]); // special case, y is integer - - if (yMax === yMin) { - bufDst[pos + offset] = vMin; - } else { - posMin = (yMax * wSrc + xMin) * 4 + offset; - posMax = (yMax * wSrc + xMax) * 4 + offset; - var vMax = interpolate(x, xMin, bufSrc[posMin], xMax, bufSrc[posMax]); - bufDst[pos + offset] = interpolate(y, yMin, vMin, yMax, vMax); - } - }; - - for (var i = 0; i < hDst; i++) { - for (var j = 0; j < wDst; j++) { - var posDst = (i * wDst + j) * 4; // x & y in src coordinates - - var x = j * wSrc / wDst; - var xMin = Math.floor(x); - var xMax = Math.min(Math.ceil(x), wSrc - 1); - var y = i * hSrc / hDst; - var yMin = Math.floor(y); - var yMax = Math.min(Math.ceil(y), hSrc - 1); - assign(posDst, 0, x, xMin, xMax, y, yMin, yMax); - assign(posDst, 1, x, xMin, xMax, y, yMin, yMax); - assign(posDst, 2, x, xMin, xMax, y, yMin, yMax); - assign(posDst, 3, x, xMin, xMax, y, yMin, yMax); - } - } - }, - _interpolate2D: function _interpolate2D(src, dst, options, interpolate) { - var bufSrc = src.data; - var bufDst = dst.data; - var wSrc = src.width; - var hSrc = src.height; - var wDst = dst.width; - var hDst = dst.height; // when dst smaller than src/2, interpolate first to a multiple between 0.5 and 1.0 src, then sum squares - - var wM = Math.max(1, Math.floor(wSrc / wDst)); - var wDst2 = wDst * wM; - var hM = Math.max(1, Math.floor(hSrc / hDst)); - var hDst2 = hDst * hM; // =========================================================== - // Pass 1 - interpolate rows - // buf1 has width of dst2 and height of src - - var buf1 = Buffer.alloc(wDst2 * hSrc * 4); - - for (var i = 0; i < hSrc; i++) { - for (var j = 0; j < wDst2; j++) { - // i in src coords, j in dst coords - // calculate x in src coords - // this interpolation requires 4 sample points and the two inner ones must be real - // the outer points can be fudged for the edges. - // therefore (wSrc-1)/wDst2 - var x = j * (wSrc - 1) / wDst2; - var xPos = Math.floor(x); - var t = x - xPos; - var srcPos = (i * wSrc + xPos) * 4; - var buf1Pos = (i * wDst2 + j) * 4; - - for (var k = 0; k < 4; k++) { - var kPos = srcPos + k; - var x0 = xPos > 0 ? bufSrc[kPos - 4] : 2 * bufSrc[kPos] - bufSrc[kPos + 4]; - var x1 = bufSrc[kPos]; - var x2 = bufSrc[kPos + 4]; - var x3 = xPos < wSrc - 2 ? bufSrc[kPos + 8] : 2 * bufSrc[kPos + 4] - bufSrc[kPos]; - buf1[buf1Pos + k] = interpolate(x0, x1, x2, x3, t); - } - } - } // this._writeFile(wDst2, hSrc, buf1, "out/buf1.jpg"); - // =========================================================== - // Pass 2 - interpolate columns - // buf2 has width and height of dst2 - - - var buf2 = Buffer.alloc(wDst2 * hDst2 * 4); - - for (var _i = 0; _i < hDst2; _i++) { - for (var _j = 0; _j < wDst2; _j++) { - // i&j in dst2 coords - // calculate y in buf1 coords - // this interpolation requires 4 sample points and the two inner ones must be real - // the outer points can be fudged for the edges. - // therefore (hSrc-1)/hDst2 - var y = _i * (hSrc - 1) / hDst2; - var yPos = Math.floor(y); - - var _t = y - yPos; - - var _buf1Pos = (yPos * wDst2 + _j) * 4; - - var buf2Pos = (_i * wDst2 + _j) * 4; - - for (var _k = 0; _k < 4; _k++) { - var _kPos = _buf1Pos + _k; - - var y0 = yPos > 0 ? buf1[_kPos - wDst2 * 4] : 2 * buf1[_kPos] - buf1[_kPos + wDst2 * 4]; - var y1 = buf1[_kPos]; - var y2 = buf1[_kPos + wDst2 * 4]; - var y3 = yPos < hSrc - 2 ? buf1[_kPos + wDst2 * 8] : 2 * buf1[_kPos + wDst2 * 4] - buf1[_kPos]; - buf2[buf2Pos + _k] = interpolate(y0, y1, y2, y3, _t); - } - } - } // this._writeFile(wDst2, hDst2, buf2, "out/buf2.jpg"); - // =========================================================== - // Pass 3 - scale to dst - - - var m = wM * hM; - - if (m > 1) { - for (var _i2 = 0; _i2 < hDst; _i2++) { - for (var _j2 = 0; _j2 < wDst; _j2++) { - // i&j in dst bounded coords - var r = 0; - var g = 0; - var b = 0; - var a = 0; - var realColors = 0; - - for (var _y = 0; _y < hM; _y++) { - var _yPos = _i2 * hM + _y; - - for (var _x = 0; _x < wM; _x++) { - var _xPos = _j2 * wM + _x; - - var xyPos = (_yPos * wDst2 + _xPos) * 4; - var pixelAlpha = buf2[xyPos + 3]; - - if (pixelAlpha) { - r += buf2[xyPos]; - g += buf2[xyPos + 1]; - b += buf2[xyPos + 2]; - realColors++; - } - - a += pixelAlpha; - } - } - - var pos = (_i2 * wDst + _j2) * 4; - bufDst[pos] = realColors ? Math.round(r / realColors) : 0; - bufDst[pos + 1] = realColors ? Math.round(g / realColors) : 0; - bufDst[pos + 2] = realColors ? Math.round(b / realColors) : 0; - bufDst[pos + 3] = Math.round(a / m); - } - } - } else { - // replace dst buffer with buf2 - dst.data = buf2; - } - }, - bicubicInterpolation: function bicubicInterpolation(src, dst, options) { - var interpolateCubic = function interpolateCubic(x0, x1, x2, x3, t) { - var a0 = x3 - x2 - x0 + x1; - var a1 = x0 - x1 - a0; - var a2 = x2 - x0; - var a3 = x1; - return Math.max(0, Math.min(255, a0 * (t * t * t) + a1 * (t * t) + a2 * t + a3)); - }; - - return this._interpolate2D(src, dst, options, interpolateCubic); - }, - hermiteInterpolation: function hermiteInterpolation(src, dst, options) { - var interpolateHermite = function interpolateHermite(x0, x1, x2, x3, t) { - var c0 = x1; - var c1 = 0.5 * (x2 - x0); - var c2 = x0 - 2.5 * x1 + 2 * x2 - 0.5 * x3; - var c3 = 0.5 * (x3 - x0) + 1.5 * (x1 - x2); - return Math.max(0, Math.min(255, Math.round(((c3 * t + c2) * t + c1) * t + c0))); - }; - - return this._interpolate2D(src, dst, options, interpolateHermite); - }, - bezierInterpolation: function bezierInterpolation(src, dst, options) { - // between 2 points y(n), y(n+1), use next points out, y(n-1), y(n+2) - // to predict control points (a & b) to be placed at n+0.5 - // ya(n) = y(n) + (y(n+1)-y(n-1))/4 - // yb(n) = y(n+1) - (y(n+2)-y(n))/4 - // then use std bezier to interpolate [n,n+1) - // y(n+t) = y(n)*(1-t)^3 + 3 * ya(n)*(1-t)^2*t + 3 * yb(n)*(1-t)*t^2 + y(n+1)*t^3 - // note the 3* factor for the two control points - // for edge cases, can choose: - // y(-1) = y(0) - 2*(y(1)-y(0)) - // y(w) = y(w-1) + 2*(y(w-1)-y(w-2)) - // but can go with y(-1) = y(0) and y(w) = y(w-1) - var interpolateBezier = function interpolateBezier(x0, x1, x2, x3, t) { - // x1, x2 are the knots, use x0 and x3 to calculate control points - var cp1 = x1 + (x2 - x0) / 4; - var cp2 = x2 - (x3 - x1) / 4; - var nt = 1 - t; - var c0 = x1 * nt * nt * nt; - var c1 = 3 * cp1 * nt * nt * t; - var c2 = 3 * cp2 * nt * t * t; - var c3 = x2 * t * t * t; - return Math.max(0, Math.min(255, Math.round(c0 + c1 + c2 + c3))); - }; - - return this._interpolate2D(src, dst, options, interpolateBezier); - } -}; -//# sourceMappingURL=resize2.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize2.js.map b/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize2.js.map deleted file mode 100644 index 8183e69f3..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/dist/modules/resize2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../src/modules/resize2.js"],"names":["module","exports","nearestNeighbor","src","dst","wSrc","width","hSrc","height","wDst","hDst","bufSrc","data","bufDst","i","j","posDst","iSrc","Math","floor","jSrc","posSrc","bilinearInterpolation","interpolate","k","kMin","vMin","kMax","vMax","round","assign","pos","offset","x","xMin","xMax","y","yMin","yMax","posMin","posMax","min","ceil","_interpolate2D","options","wM","max","wDst2","hM","hDst2","buf1","Buffer","alloc","xPos","t","srcPos","buf1Pos","kPos","x0","x1","x2","x3","buf2","yPos","buf2Pos","y0","y1","y2","y3","m","r","g","b","a","realColors","xyPos","pixelAlpha","bicubicInterpolation","interpolateCubic","a0","a1","a2","a3","hermiteInterpolation","interpolateHermite","c0","c1","c2","c3","bezierInterpolation","interpolateBezier","cp1","cp2","nt"],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;AAsBAA,MAAM,CAACC,OAAP,GAAiB;AACfC,EAAAA,eADe,2BACCC,GADD,EACMC,GADN,EACW;AACxB,QAAMC,IAAI,GAAGF,GAAG,CAACG,KAAjB;AACA,QAAMC,IAAI,GAAGJ,GAAG,CAACK,MAAjB;AAEA,QAAMC,IAAI,GAAGL,GAAG,CAACE,KAAjB;AACA,QAAMI,IAAI,GAAGN,GAAG,CAACI,MAAjB;AAEA,QAAMG,MAAM,GAAGR,GAAG,CAACS,IAAnB;AACA,QAAMC,MAAM,GAAGT,GAAG,CAACQ,IAAnB;;AAEA,SAAK,IAAIE,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGJ,IAApB,EAA0BI,CAAC,EAA3B,EAA+B;AAC7B,WAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGN,IAApB,EAA0BM,CAAC,EAA3B,EAA+B;AAC7B,YAAIC,MAAM,GAAG,CAACF,CAAC,GAAGL,IAAJ,GAAWM,CAAZ,IAAiB,CAA9B;AAEA,YAAME,IAAI,GAAGC,IAAI,CAACC,KAAL,CAAYL,CAAC,GAAGP,IAAL,GAAaG,IAAxB,CAAb;AACA,YAAMU,IAAI,GAAGF,IAAI,CAACC,KAAL,CAAYJ,CAAC,GAAGV,IAAL,GAAaI,IAAxB,CAAb;AACA,YAAIY,MAAM,GAAG,CAACJ,IAAI,GAAGZ,IAAP,GAAce,IAAf,IAAuB,CAApC;AAEAP,QAAAA,MAAM,CAACG,MAAM,EAAP,CAAN,GAAmBL,MAAM,CAACU,MAAM,EAAP,CAAzB;AACAR,QAAAA,MAAM,CAACG,MAAM,EAAP,CAAN,GAAmBL,MAAM,CAACU,MAAM,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AAE,GAAGF,EAAN,IAAY,CAA7B;AACA,UAAMkC,GAAG,GAAGhC,EAAE,GAAG,CAACC,EAAE,GAAGF,EAAN,IAAY,CAA7B;AACA,UAAMkC,EAAE,GAAG,IAAIvC,CAAf;AACA,UAAM+B,EAAE,GAAG1B,EAAE,GAAGkC,EAAL,GAAUA,EAAV,GAAeA,EAA1B;AACA,UAAMP,EAAE,GAAG,IAAIK,GAAJ,GAAUE,EAAV,GAAeA,EAAf,GAAoBvC,CAA/B;AACA,UAAMiC,EAAE,GAAG,IAAIK,GAAJ,GAAUC,EAAV,GAAevC,CAAf,GAAmBA,CAA9B;AACA,UAAMkC,EAAE,GAAG5B,EAAE,GAAGN,CAAL,GAASA,CAAT,GAAaA,CAAxB;AACA,aAAOpC,IAAI,CAAC4B,GAAL,CAAS,CAAT,EAAY5B,IAAI,CAACuB,GAAL,CAAS,GAAT,EAAcvB,IAAI,CAACW,KAAL,CAAWwD,EAAE,GAAGC,EAAL,GAAUC,EAAV,GAAeC,EAA1B,CAAd,CAAZ,CAAP;AACD,KAVD;;AAYA,WAAO,KAAK7C,cAAL,CAAoBxC,GAApB,EAAyBC,GAAzB,EAA8BwC,OAA9B,EAAuC8C,iBAAvC,CAAP;AACD;AA7Qc,CAAjB","sourcesContent":["/**\n * Copyright (c) 2015 Guyon Roche\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:

\n *\n * The above copyright notice and this permission notice shall be included in\n * all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n * THE SOFTWARE.\n */\n\nmodule.exports = {\n nearestNeighbor(src, dst) {\n const wSrc = src.width;\n const hSrc = src.height;\n\n const wDst = dst.width;\n const hDst = dst.height;\n\n const bufSrc = src.data;\n const bufDst = dst.data;\n\n for (let i = 0; i < hDst; i++) {\n for (let j = 0; j < wDst; j++) {\n let posDst = (i * wDst + j) * 4;\n\n const iSrc = Math.floor((i * hSrc) / hDst);\n const jSrc = Math.floor((j * wSrc) / wDst);\n let posSrc = (iSrc * wSrc + jSrc) * 4;\n\n bufDst[posDst++] = bufSrc[posSrc++];\n bufDst[posDst++] = bufSrc[posSrc++];\n bufDst[posDst++] = bufSrc[posSrc++];\n bufDst[posDst++] = bufSrc[posSrc++];\n }\n }\n },\n\n bilinearInterpolation(src, dst) {\n const wSrc = src.width;\n const hSrc = src.height;\n\n const wDst = dst.width;\n const hDst = dst.height;\n\n const bufSrc = src.data;\n const bufDst = dst.data;\n\n const interpolate = function (k, kMin, vMin, kMax, vMax) {\n // special case - k is integer\n if (kMin === kMax) {\n return vMin;\n }\n\n return Math.round((k - kMin) * vMax + (kMax - k) * vMin);\n };\n\n const assign = function (pos, offset, x, xMin, xMax, y, yMin, yMax) {\n let posMin = (yMin * wSrc + xMin) * 4 + offset;\n let posMax = (yMin * wSrc + xMax) * 4 + offset;\n const vMin = interpolate(x, xMin, bufSrc[posMin], xMax, bufSrc[posMax]);\n\n // special case, y is integer\n if (yMax === yMin) {\n bufDst[pos + offset] = vMin;\n } else {\n posMin = (yMax * wSrc + xMin) * 4 + offset;\n posMax = (yMax * wSrc + xMax) * 4 + offset;\n const vMax = interpolate(x, xMin, bufSrc[posMin], xMax, bufSrc[posMax]);\n\n bufDst[pos + offset] = interpolate(y, yMin, vMin, yMax, vMax);\n }\n };\n\n for (let i = 0; i < hDst; i++) {\n for (let j = 0; j < wDst; j++) {\n const posDst = (i * wDst + j) * 4;\n // x & y in src coordinates\n const x = (j * wSrc) / wDst;\n const xMin = Math.floor(x);\n const xMax = Math.min(Math.ceil(x), wSrc - 1);\n\n const y = (i * hSrc) / hDst;\n const yMin = Math.floor(y);\n const yMax = Math.min(Math.ceil(y), hSrc - 1);\n\n assign(posDst, 0, x, xMin, xMax, y, yMin, yMax);\n assign(posDst, 1, x, xMin, xMax, y, yMin, yMax);\n assign(posDst, 2, x, xMin, xMax, y, yMin, yMax);\n assign(posDst, 3, x, xMin, xMax, y, yMin, yMax);\n }\n }\n },\n\n _interpolate2D(src, dst, options, interpolate) {\n const bufSrc = src.data;\n const bufDst = dst.data;\n\n const wSrc = src.width;\n const hSrc = src.height;\n\n const wDst = dst.width;\n const hDst = dst.height;\n\n // when dst smaller than src/2, interpolate first to a multiple between 0.5 and 1.0 src, then sum squares\n const wM = Math.max(1, Math.floor(wSrc / wDst));\n const wDst2 = wDst * wM;\n const hM = Math.max(1, Math.floor(hSrc / hDst));\n const hDst2 = hDst * hM;\n\n // ===========================================================\n // Pass 1 - interpolate rows\n // buf1 has width of dst2 and height of src\n const buf1 = Buffer.alloc(wDst2 * hSrc * 4);\n for (let i = 0; i < hSrc; i++) {\n for (let j = 0; j < wDst2; j++) {\n // i in src coords, j in dst coords\n\n // calculate x in src coords\n // this interpolation requires 4 sample points and the two inner ones must be real\n // the outer points can be fudged for the edges.\n // therefore (wSrc-1)/wDst2\n const x = (j * (wSrc - 1)) / wDst2;\n const xPos = Math.floor(x);\n const t = x - xPos;\n const srcPos = (i * wSrc + xPos) * 4;\n const buf1Pos = (i * wDst2 + j) * 4;\n\n for (let k = 0; k < 4; k++) {\n const kPos = srcPos + k;\n const x0 =\n xPos > 0 ? bufSrc[kPos - 4] : 2 * bufSrc[kPos] - bufSrc[kPos + 4];\n const x1 = bufSrc[kPos];\n const x2 = bufSrc[kPos + 4];\n const x3 =\n xPos < wSrc - 2\n ? bufSrc[kPos + 8]\n : 2 * bufSrc[kPos + 4] - bufSrc[kPos];\n buf1[buf1Pos + k] = interpolate(x0, x1, x2, x3, t);\n }\n }\n }\n // this._writeFile(wDst2, hSrc, buf1, \"out/buf1.jpg\");\n\n // ===========================================================\n // Pass 2 - interpolate columns\n // buf2 has width and height of dst2\n const buf2 = Buffer.alloc(wDst2 * hDst2 * 4);\n for (let i = 0; i < hDst2; i++) {\n for (let j = 0; j < wDst2; j++) {\n // i&j in dst2 coords\n\n // calculate y in buf1 coords\n // this interpolation requires 4 sample points and the two inner ones must be real\n // the outer points can be fudged for the edges.\n // therefore (hSrc-1)/hDst2\n const y = (i * (hSrc - 1)) / hDst2;\n const yPos = Math.floor(y);\n const t = y - yPos;\n const buf1Pos = (yPos * wDst2 + j) * 4;\n const buf2Pos = (i * wDst2 + j) * 4;\n for (let k = 0; k < 4; k++) {\n const kPos = buf1Pos + k;\n const y0 =\n yPos > 0\n ? buf1[kPos - wDst2 * 4]\n : 2 * buf1[kPos] - buf1[kPos + wDst2 * 4];\n const y1 = buf1[kPos];\n const y2 = buf1[kPos + wDst2 * 4];\n const y3 =\n yPos < hSrc - 2\n ? buf1[kPos + wDst2 * 8]\n : 2 * buf1[kPos + wDst2 * 4] - buf1[kPos];\n\n buf2[buf2Pos + k] = interpolate(y0, y1, y2, y3, t);\n }\n }\n }\n // this._writeFile(wDst2, hDst2, buf2, \"out/buf2.jpg\");\n\n // ===========================================================\n // Pass 3 - scale to dst\n const m = wM * hM;\n if (m > 1) {\n for (let i = 0; i < hDst; i++) {\n for (let j = 0; j < wDst; j++) {\n // i&j in dst bounded coords\n let r = 0;\n let g = 0;\n let b = 0;\n let a = 0;\n let realColors = 0;\n\n for (let y = 0; y < hM; y++) {\n const yPos = i * hM + y;\n\n for (let x = 0; x < wM; x++) {\n const xPos = j * wM + x;\n const xyPos = (yPos * wDst2 + xPos) * 4;\n const pixelAlpha = buf2[xyPos + 3];\n\n if (pixelAlpha) {\n r += buf2[xyPos];\n g += buf2[xyPos + 1];\n b += buf2[xyPos + 2];\n realColors++;\n }\n\n a += pixelAlpha;\n }\n }\n\n const pos = (i * wDst + j) * 4;\n bufDst[pos] = realColors ? Math.round(r / realColors) : 0;\n bufDst[pos + 1] = realColors ? Math.round(g / realColors) : 0;\n bufDst[pos + 2] = realColors ? Math.round(b / realColors) : 0;\n bufDst[pos + 3] = Math.round(a / m);\n }\n }\n } else {\n // replace dst buffer with buf2\n dst.data = buf2;\n }\n },\n\n bicubicInterpolation(src, dst, options) {\n const interpolateCubic = function (x0, x1, x2, x3, t) {\n const a0 = x3 - x2 - x0 + x1;\n const a1 = x0 - x1 - a0;\n const a2 = x2 - x0;\n const a3 = x1;\n return Math.max(\n 0,\n Math.min(255, a0 * (t * t * t) + a1 * (t * t) + a2 * t + a3)\n );\n };\n\n return this._interpolate2D(src, dst, options, interpolateCubic);\n },\n\n hermiteInterpolation(src, dst, options) {\n const interpolateHermite = function (x0, x1, x2, x3, t) {\n const c0 = x1;\n const c1 = 0.5 * (x2 - x0);\n const c2 = x0 - 2.5 * x1 + 2 * x2 - 0.5 * x3;\n const c3 = 0.5 * (x3 - x0) + 1.5 * (x1 - x2);\n return Math.max(\n 0,\n Math.min(255, Math.round(((c3 * t + c2) * t + c1) * t + c0))\n );\n };\n\n return this._interpolate2D(src, dst, options, interpolateHermite);\n },\n\n bezierInterpolation(src, dst, options) {\n // between 2 points y(n), y(n+1), use next points out, y(n-1), y(n+2)\n // to predict control points (a & b) to be placed at n+0.5\n // ya(n) = y(n) + (y(n+1)-y(n-1))/4\n // yb(n) = y(n+1) - (y(n+2)-y(n))/4\n // then use std bezier to interpolate [n,n+1)\n // y(n+t) = y(n)*(1-t)^3 + 3 * ya(n)*(1-t)^2*t + 3 * yb(n)*(1-t)*t^2 + y(n+1)*t^3\n // note the 3* factor for the two control points\n // for edge cases, can choose:\n // y(-1) = y(0) - 2*(y(1)-y(0))\n // y(w) = y(w-1) + 2*(y(w-1)-y(w-2))\n // but can go with y(-1) = y(0) and y(w) = y(w-1)\n const interpolateBezier = function (x0, x1, x2, x3, t) {\n // x1, x2 are the knots, use x0 and x3 to calculate control points\n const cp1 = x1 + (x2 - x0) / 4;\n const cp2 = x2 - (x3 - x1) / 4;\n const nt = 1 - t;\n const c0 = x1 * nt * nt * nt;\n const c1 = 3 * cp1 * nt * nt * t;\n const c2 = 3 * cp2 * nt * t * t;\n const c3 = x2 * t * t * t;\n return Math.max(0, Math.min(255, Math.round(c0 + c1 + c2 + c3)));\n };\n\n return this._interpolate2D(src, dst, options, interpolateBezier);\n },\n};\n"],"file":"resize2.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-resize/index.d.ts b/WechatBot/node_modules/@jimp/plugin-resize/index.d.ts deleted file mode 100644 index 58b3cdcb4..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/index.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface ResizeClass { - resize(w: number, h: number, cb?: ImageCallback): this; - resize(w: number, h: number, mode?: string, cb?: ImageCallback): this; -} - -interface Resize { - constants: { - // resize methods - RESIZE_NEAREST_NEIGHBOR: "nearestNeighbor"; - RESIZE_BILINEAR: "bilinearInterpolation"; - RESIZE_BICUBIC: "bicubicInterpolation"; - RESIZE_HERMITE: "hermiteInterpolation"; - RESIZE_BEZIER: "bezierInterpolation"; - }; - - class: ResizeClass; -} - -export default function (): Resize; diff --git a/WechatBot/node_modules/@jimp/plugin-resize/package.json b/WechatBot/node_modules/@jimp/plugin-resize/package.json deleted file mode 100644 index 550d992b5..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@jimp/plugin-resize", - "version": "0.16.13", - "description": "Resize an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-resize/src/index.js b/WechatBot/node_modules/@jimp/plugin-resize/src/index.js deleted file mode 100755 index 2c77df99a..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/src/index.js +++ /dev/null @@ -1,87 +0,0 @@ -import { throwError, isNodePattern } from "@jimp/utils"; - -import Resize from "./modules/resize"; -import Resize2 from "./modules/resize2"; - -export default () => ({ - constants: { - RESIZE_NEAREST_NEIGHBOR: "nearestNeighbor", - RESIZE_BILINEAR: "bilinearInterpolation", - RESIZE_BICUBIC: "bicubicInterpolation", - RESIZE_HERMITE: "hermiteInterpolation", - RESIZE_BEZIER: "bezierInterpolation", - }, - - class: { - /** - * Resizes the image to a set width and height using a 2-pass bilinear algorithm - * @param {number} w the width to resize the image to (or Jimp.AUTO) - * @param {number} h the height to resize the image to (or Jimp.AUTO) - * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - resize(w, h, mode, cb) { - if (typeof w !== "number" || typeof h !== "number") { - return throwError.call(this, "w and h must be numbers", cb); - } - - if (typeof mode === "function" && typeof cb === "undefined") { - cb = mode; - mode = null; - } - - if (w === this.constructor.AUTO && h === this.constructor.AUTO) { - return throwError.call(this, "w and h cannot both be set to auto", cb); - } - - if (w === this.constructor.AUTO) { - w = this.bitmap.width * (h / this.bitmap.height); - } - - if (h === this.constructor.AUTO) { - h = this.bitmap.height * (w / this.bitmap.width); - } - - if (w < 0 || h < 0) { - return throwError.call(this, "w and h must be positive numbers", cb); - } - - // round inputs - w = Math.round(w); - h = Math.round(h); - - if (typeof Resize2[mode] === "function") { - const dst = { - data: Buffer.alloc(w * h * 4), - width: w, - height: h, - }; - Resize2[mode](this.bitmap, dst); - this.bitmap = dst; - } else { - const image = this; - const resize = new Resize( - this.bitmap.width, - this.bitmap.height, - w, - h, - true, - true, - (buffer) => { - image.bitmap.data = Buffer.from(buffer); - image.bitmap.width = w; - image.bitmap.height = h; - } - ); - resize.resize(this.bitmap.data); - } - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-resize/src/modules/resize.js b/WechatBot/node_modules/@jimp/plugin-resize/src/modules/resize.js deleted file mode 100755 index d4c861475..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/src/modules/resize.js +++ /dev/null @@ -1,548 +0,0 @@ -// JavaScript Image Resizer (c) 2012 - Grant Galitz -// Released to public domain 29 July 2013: https://github.com/grantgalitz/JS-Image-Resizer/issues/4 - -function Resize( - widthOriginal, - heightOriginal, - targetWidth, - targetHeight, - blendAlpha, - interpolationPass, - resizeCallback -) { - this.widthOriginal = Math.abs(Math.floor(widthOriginal) || 0); - this.heightOriginal = Math.abs(Math.floor(heightOriginal) || 0); - this.targetWidth = Math.abs(Math.floor(targetWidth) || 0); - this.targetHeight = Math.abs(Math.floor(targetHeight) || 0); - this.colorChannels = blendAlpha ? 4 : 3; - this.interpolationPass = Boolean(interpolationPass); - this.resizeCallback = - typeof resizeCallback === "function" ? resizeCallback : function () {}; - - this.targetWidthMultipliedByChannels = this.targetWidth * this.colorChannels; - this.originalWidthMultipliedByChannels = - this.widthOriginal * this.colorChannels; - this.originalHeightMultipliedByChannels = - this.heightOriginal * this.colorChannels; - this.widthPassResultSize = - this.targetWidthMultipliedByChannels * this.heightOriginal; - this.finalResultSize = - this.targetWidthMultipliedByChannels * this.targetHeight; - this.initialize(); -} - -Resize.prototype.initialize = function () { - // Perform some checks: - if ( - this.widthOriginal > 0 && - this.heightOriginal > 0 && - this.targetWidth > 0 && - this.targetHeight > 0 - ) { - this.configurePasses(); - } else { - throw new Error("Invalid settings specified for the resizer."); - } -}; - -Resize.prototype.configurePasses = function () { - if (this.widthOriginal === this.targetWidth) { - // Bypass the width resizer pass: - this.resizeWidth = this.bypassResizer; - } else { - // Setup the width resizer pass: - this.ratioWeightWidthPass = this.widthOriginal / this.targetWidth; - if (this.ratioWeightWidthPass < 1 && this.interpolationPass) { - this.initializeFirstPassBuffers(true); - this.resizeWidth = - this.colorChannels === 4 - ? this.resizeWidthInterpolatedRGBA - : this.resizeWidthInterpolatedRGB; - } else { - this.initializeFirstPassBuffers(false); - this.resizeWidth = - this.colorChannels === 4 ? this.resizeWidthRGBA : this.resizeWidthRGB; - } - } - - if (this.heightOriginal === this.targetHeight) { - // Bypass the height resizer pass: - this.resizeHeight = this.bypassResizer; - } else { - // Setup the height resizer pass: - this.ratioWeightHeightPass = this.heightOriginal / this.targetHeight; - if (this.ratioWeightHeightPass < 1 && this.interpolationPass) { - this.initializeSecondPassBuffers(true); - this.resizeHeight = this.resizeHeightInterpolated; - } else { - this.initializeSecondPassBuffers(false); - this.resizeHeight = - this.colorChannels === 4 ? this.resizeHeightRGBA : this.resizeHeightRGB; - } - } -}; - -Resize.prototype._resizeWidthInterpolatedRGBChannels = function ( - buffer, - fourthChannel -) { - const channelsNum = fourthChannel ? 4 : 3; - const ratioWeight = this.ratioWeightWidthPass; - const outputBuffer = this.widthBuffer; - - let weight = 0; - let finalOffset = 0; - let pixelOffset = 0; - let firstWeight = 0; - let secondWeight = 0; - let targetPosition; - - // Handle for only one interpolation input being valid for start calculation: - for ( - targetPosition = 0; - weight < 1 / 3; - targetPosition += channelsNum, weight += ratioWeight - ) { - for ( - finalOffset = targetPosition, pixelOffset = 0; - finalOffset < this.widthPassResultSize; - pixelOffset += this.originalWidthMultipliedByChannels, - finalOffset += this.targetWidthMultipliedByChannels - ) { - outputBuffer[finalOffset] = buffer[pixelOffset]; - outputBuffer[finalOffset + 1] = buffer[pixelOffset + 1]; - outputBuffer[finalOffset + 2] = buffer[pixelOffset + 2]; - if (fourthChannel) - outputBuffer[finalOffset + 3] = buffer[pixelOffset + 3]; - } - } - - // Adjust for overshoot of the last pass's counter: - weight -= 1 / 3; - let interpolationWidthSourceReadStop; - - for ( - interpolationWidthSourceReadStop = this.widthOriginal - 1; - weight < interpolationWidthSourceReadStop; - targetPosition += channelsNum, weight += ratioWeight - ) { - // Calculate weightings: - secondWeight = weight % 1; - firstWeight = 1 - secondWeight; - // Interpolate: - for ( - finalOffset = targetPosition, - pixelOffset = Math.floor(weight) * channelsNum; - finalOffset < this.widthPassResultSize; - pixelOffset += this.originalWidthMultipliedByChannels, - finalOffset += this.targetWidthMultipliedByChannels - ) { - outputBuffer[finalOffset + 0] = - buffer[pixelOffset + 0] * firstWeight + - buffer[pixelOffset + channelsNum + 0] * secondWeight; - outputBuffer[finalOffset + 1] = - buffer[pixelOffset + 1] * firstWeight + - buffer[pixelOffset + channelsNum + 1] * secondWeight; - outputBuffer[finalOffset + 2] = - buffer[pixelOffset + 2] * firstWeight + - buffer[pixelOffset + channelsNum + 2] * secondWeight; - if (fourthChannel) - outputBuffer[finalOffset + 3] = - buffer[pixelOffset + 3] * firstWeight + - buffer[pixelOffset + channelsNum + 3] * secondWeight; - } - } - - // Handle for only one interpolation input being valid for end calculation: - for ( - interpolationWidthSourceReadStop = - this.originalWidthMultipliedByChannels - channelsNum; - targetPosition < this.targetWidthMultipliedByChannels; - targetPosition += channelsNum - ) { - for ( - finalOffset = targetPosition, - pixelOffset = interpolationWidthSourceReadStop; - finalOffset < this.widthPassResultSize; - pixelOffset += this.originalWidthMultipliedByChannels, - finalOffset += this.targetWidthMultipliedByChannels - ) { - outputBuffer[finalOffset] = buffer[pixelOffset]; - outputBuffer[finalOffset + 1] = buffer[pixelOffset + 1]; - outputBuffer[finalOffset + 2] = buffer[pixelOffset + 2]; - if (fourthChannel) - outputBuffer[finalOffset + 3] = buffer[pixelOffset + 3]; - } - } - - return outputBuffer; -}; - -Resize.prototype._resizeWidthRGBChannels = function (buffer, fourthChannel) { - const channelsNum = fourthChannel ? 4 : 3; - const ratioWeight = this.ratioWeightWidthPass; - const ratioWeightDivisor = 1 / ratioWeight; - const nextLineOffsetOriginalWidth = - this.originalWidthMultipliedByChannels - channelsNum + 1; - const nextLineOffsetTargetWidth = - this.targetWidthMultipliedByChannels - channelsNum + 1; - const output = this.outputWidthWorkBench; - const outputBuffer = this.widthBuffer; - const trustworthyColorsCount = this.outputWidthWorkBenchOpaquePixelsCount; - - let weight = 0; - let amountToNext = 0; - let actualPosition = 0; - let currentPosition = 0; - let line = 0; - let pixelOffset = 0; - let outputOffset = 0; - let multiplier = 1; - let r = 0; - let g = 0; - let b = 0; - let a = 0; - - do { - for (line = 0; line < this.originalHeightMultipliedByChannels; ) { - output[line++] = 0; - output[line++] = 0; - output[line++] = 0; - if (fourthChannel) { - output[line++] = 0; - trustworthyColorsCount[line / channelsNum - 1] = 0; - } - } - - weight = ratioWeight; - - do { - amountToNext = 1 + actualPosition - currentPosition; - multiplier = Math.min(weight, amountToNext); - for ( - line = 0, pixelOffset = actualPosition; - line < this.originalHeightMultipliedByChannels; - pixelOffset += nextLineOffsetOriginalWidth - ) { - r = buffer[pixelOffset]; - g = buffer[++pixelOffset]; - b = buffer[++pixelOffset]; - a = fourthChannel ? buffer[++pixelOffset] : 255; - // Ignore RGB values if pixel is completely transparent - output[line++] += (a ? r : 0) * multiplier; - output[line++] += (a ? g : 0) * multiplier; - output[line++] += (a ? b : 0) * multiplier; - if (fourthChannel) { - output[line++] += a * multiplier; - trustworthyColorsCount[line / channelsNum - 1] += a ? multiplier : 0; - } - } - - if (weight >= amountToNext) { - actualPosition += channelsNum; - currentPosition = actualPosition; - weight -= amountToNext; - } else { - currentPosition += weight; - break; - } - } while ( - weight > 0 && - actualPosition < this.originalWidthMultipliedByChannels - ); - - for ( - line = 0, pixelOffset = outputOffset; - line < this.originalHeightMultipliedByChannels; - pixelOffset += nextLineOffsetTargetWidth - ) { - weight = fourthChannel ? trustworthyColorsCount[line / channelsNum] : 1; - multiplier = fourthChannel - ? weight - ? 1 / weight - : 0 - : ratioWeightDivisor; - outputBuffer[pixelOffset] = output[line++] * multiplier; - outputBuffer[++pixelOffset] = output[line++] * multiplier; - outputBuffer[++pixelOffset] = output[line++] * multiplier; - if (fourthChannel) - outputBuffer[++pixelOffset] = output[line++] * ratioWeightDivisor; - } - - outputOffset += channelsNum; - } while (outputOffset < this.targetWidthMultipliedByChannels); - - return outputBuffer; -}; - -Resize.prototype._resizeHeightRGBChannels = function (buffer, fourthChannel) { - const ratioWeight = this.ratioWeightHeightPass; - const ratioWeightDivisor = 1 / ratioWeight; - const output = this.outputHeightWorkBench; - const outputBuffer = this.heightBuffer; - const trustworthyColorsCount = this.outputHeightWorkBenchOpaquePixelsCount; - - let weight = 0; - let amountToNext = 0; - let actualPosition = 0; - let currentPosition = 0; - let pixelOffset = 0; - let outputOffset = 0; - let caret = 0; - let multiplier = 1; - let r = 0; - let g = 0; - let b = 0; - let a = 0; - - do { - for ( - pixelOffset = 0; - pixelOffset < this.targetWidthMultipliedByChannels; - - ) { - output[pixelOffset++] = 0; - output[pixelOffset++] = 0; - output[pixelOffset++] = 0; - - if (fourthChannel) { - output[pixelOffset++] = 0; - trustworthyColorsCount[pixelOffset / 4 - 1] = 0; - } - } - - weight = ratioWeight; - - do { - amountToNext = 1 + actualPosition - currentPosition; - multiplier = Math.min(weight, amountToNext); - caret = actualPosition; - - for ( - pixelOffset = 0; - pixelOffset < this.targetWidthMultipliedByChannels; - - ) { - r = buffer[caret++]; - g = buffer[caret++]; - b = buffer[caret++]; - a = fourthChannel ? buffer[caret++] : 255; - // Ignore RGB values if pixel is completely transparent - output[pixelOffset++] += (a ? r : 0) * multiplier; - output[pixelOffset++] += (a ? g : 0) * multiplier; - output[pixelOffset++] += (a ? b : 0) * multiplier; - - if (fourthChannel) { - output[pixelOffset++] += a * multiplier; - trustworthyColorsCount[pixelOffset / 4 - 1] += a ? multiplier : 0; - } - } - - if (weight >= amountToNext) { - actualPosition = caret; - currentPosition = actualPosition; - weight -= amountToNext; - } else { - currentPosition += weight; - break; - } - } while (weight > 0 && actualPosition < this.widthPassResultSize); - - for ( - pixelOffset = 0; - pixelOffset < this.targetWidthMultipliedByChannels; - - ) { - weight = fourthChannel ? trustworthyColorsCount[pixelOffset / 4] : 1; - multiplier = fourthChannel - ? weight - ? 1 / weight - : 0 - : ratioWeightDivisor; - outputBuffer[outputOffset++] = Math.round( - output[pixelOffset++] * multiplier - ); - outputBuffer[outputOffset++] = Math.round( - output[pixelOffset++] * multiplier - ); - outputBuffer[outputOffset++] = Math.round( - output[pixelOffset++] * multiplier - ); - - if (fourthChannel) { - outputBuffer[outputOffset++] = Math.round( - output[pixelOffset++] * ratioWeightDivisor - ); - } - } - } while (outputOffset < this.finalResultSize); - - return outputBuffer; -}; - -Resize.prototype.resizeWidthInterpolatedRGB = function (buffer) { - return this._resizeWidthInterpolatedRGBChannels(buffer, false); -}; - -Resize.prototype.resizeWidthInterpolatedRGBA = function (buffer) { - return this._resizeWidthInterpolatedRGBChannels(buffer, true); -}; - -Resize.prototype.resizeWidthRGB = function (buffer) { - return this._resizeWidthRGBChannels(buffer, false); -}; - -Resize.prototype.resizeWidthRGBA = function (buffer) { - return this._resizeWidthRGBChannels(buffer, true); -}; - -Resize.prototype.resizeHeightInterpolated = function (buffer) { - const ratioWeight = this.ratioWeightHeightPass; - const outputBuffer = this.heightBuffer; - - let weight = 0; - let finalOffset = 0; - let pixelOffset = 0; - let pixelOffsetAccumulated = 0; - let pixelOffsetAccumulated2 = 0; - let firstWeight = 0; - let secondWeight = 0; - let interpolationHeightSourceReadStop; - - // Handle for only one interpolation input being valid for start calculation: - for (; weight < 1 / 3; weight += ratioWeight) { - for ( - pixelOffset = 0; - pixelOffset < this.targetWidthMultipliedByChannels; - - ) { - outputBuffer[finalOffset++] = Math.round(buffer[pixelOffset++]); - } - } - - // Adjust for overshoot of the last pass's counter: - weight -= 1 / 3; - - for ( - interpolationHeightSourceReadStop = this.heightOriginal - 1; - weight < interpolationHeightSourceReadStop; - weight += ratioWeight - ) { - // Calculate weightings: - secondWeight = weight % 1; - firstWeight = 1 - secondWeight; - // Interpolate: - pixelOffsetAccumulated = - Math.floor(weight) * this.targetWidthMultipliedByChannels; - pixelOffsetAccumulated2 = - pixelOffsetAccumulated + this.targetWidthMultipliedByChannels; - for ( - pixelOffset = 0; - pixelOffset < this.targetWidthMultipliedByChannels; - ++pixelOffset - ) { - outputBuffer[finalOffset++] = Math.round( - buffer[pixelOffsetAccumulated++] * firstWeight + - buffer[pixelOffsetAccumulated2++] * secondWeight - ); - } - } - - // Handle for only one interpolation input being valid for end calculation: - while (finalOffset < this.finalResultSize) { - for ( - pixelOffset = 0, - pixelOffsetAccumulated = - interpolationHeightSourceReadStop * - this.targetWidthMultipliedByChannels; - pixelOffset < this.targetWidthMultipliedByChannels; - ++pixelOffset - ) { - outputBuffer[finalOffset++] = Math.round( - buffer[pixelOffsetAccumulated++] - ); - } - } - - return outputBuffer; -}; - -Resize.prototype.resizeHeightRGB = function (buffer) { - return this._resizeHeightRGBChannels(buffer, false); -}; - -Resize.prototype.resizeHeightRGBA = function (buffer) { - return this._resizeHeightRGBChannels(buffer, true); -}; - -Resize.prototype.resize = function (buffer) { - this.resizeCallback(this.resizeHeight(this.resizeWidth(buffer))); -}; - -Resize.prototype.bypassResizer = function (buffer) { - // Just return the buffer passed: - return buffer; -}; - -Resize.prototype.initializeFirstPassBuffers = function (BILINEARAlgo) { - // Initialize the internal width pass buffers: - this.widthBuffer = this.generateFloatBuffer(this.widthPassResultSize); - - if (!BILINEARAlgo) { - this.outputWidthWorkBench = this.generateFloatBuffer( - this.originalHeightMultipliedByChannels - ); - - if (this.colorChannels > 3) { - this.outputWidthWorkBenchOpaquePixelsCount = this.generateFloat64Buffer( - this.heightOriginal - ); - } - } -}; - -Resize.prototype.initializeSecondPassBuffers = function (BILINEARAlgo) { - // Initialize the internal height pass buffers: - this.heightBuffer = this.generateUint8Buffer(this.finalResultSize); - - if (!BILINEARAlgo) { - this.outputHeightWorkBench = this.generateFloatBuffer( - this.targetWidthMultipliedByChannels - ); - - if (this.colorChannels > 3) { - this.outputHeightWorkBenchOpaquePixelsCount = this.generateFloat64Buffer( - this.targetWidth - ); - } - } -}; - -Resize.prototype.generateFloatBuffer = function (bufferLength) { - // Generate a float32 typed array buffer: - try { - return new Float32Array(bufferLength); - } catch (error) { - return []; - } -}; - -Resize.prototype.generateFloat64Buffer = function (bufferLength) { - // Generate a float64 typed array buffer: - try { - return new Float64Array(bufferLength); - } catch (error) { - return []; - } -}; - -Resize.prototype.generateUint8Buffer = function (bufferLength) { - // Generate a uint8 typed array buffer: - try { - return new Uint8Array(bufferLength); - } catch (error) { - return []; - } -}; - -module.exports = Resize; diff --git a/WechatBot/node_modules/@jimp/plugin-resize/src/modules/resize2.js b/WechatBot/node_modules/@jimp/plugin-resize/src/modules/resize2.js deleted file mode 100755 index 0b74dc8f1..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/src/modules/resize2.js +++ /dev/null @@ -1,293 +0,0 @@ -/** - * Copyright (c) 2015 Guyon Roche - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions:

- * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ - -module.exports = { - nearestNeighbor(src, dst) { - const wSrc = src.width; - const hSrc = src.height; - - const wDst = dst.width; - const hDst = dst.height; - - const bufSrc = src.data; - const bufDst = dst.data; - - for (let i = 0; i < hDst; i++) { - for (let j = 0; j < wDst; j++) { - let posDst = (i * wDst + j) * 4; - - const iSrc = Math.floor((i * hSrc) / hDst); - const jSrc = Math.floor((j * wSrc) / wDst); - let posSrc = (iSrc * wSrc + jSrc) * 4; - - bufDst[posDst++] = bufSrc[posSrc++]; - bufDst[posDst++] = bufSrc[posSrc++]; - bufDst[posDst++] = bufSrc[posSrc++]; - bufDst[posDst++] = bufSrc[posSrc++]; - } - } - }, - - bilinearInterpolation(src, dst) { - const wSrc = src.width; - const hSrc = src.height; - - const wDst = dst.width; - const hDst = dst.height; - - const bufSrc = src.data; - const bufDst = dst.data; - - const interpolate = function (k, kMin, vMin, kMax, vMax) { - // special case - k is integer - if (kMin === kMax) { - return vMin; - } - - return Math.round((k - kMin) * vMax + (kMax - k) * vMin); - }; - - const assign = function (pos, offset, x, xMin, xMax, y, yMin, yMax) { - let posMin = (yMin * wSrc + xMin) * 4 + offset; - let posMax = (yMin * wSrc + xMax) * 4 + offset; - const vMin = interpolate(x, xMin, bufSrc[posMin], xMax, bufSrc[posMax]); - - // special case, y is integer - if (yMax === yMin) { - bufDst[pos + offset] = vMin; - } else { - posMin = (yMax * wSrc + xMin) * 4 + offset; - posMax = (yMax * wSrc + xMax) * 4 + offset; - const vMax = interpolate(x, xMin, bufSrc[posMin], xMax, bufSrc[posMax]); - - bufDst[pos + offset] = interpolate(y, yMin, vMin, yMax, vMax); - } - }; - - for (let i = 0; i < hDst; i++) { - for (let j = 0; j < wDst; j++) { - const posDst = (i * wDst + j) * 4; - // x & y in src coordinates - const x = (j * wSrc) / wDst; - const xMin = Math.floor(x); - const xMax = Math.min(Math.ceil(x), wSrc - 1); - - const y = (i * hSrc) / hDst; - const yMin = Math.floor(y); - const yMax = Math.min(Math.ceil(y), hSrc - 1); - - assign(posDst, 0, x, xMin, xMax, y, yMin, yMax); - assign(posDst, 1, x, xMin, xMax, y, yMin, yMax); - assign(posDst, 2, x, xMin, xMax, y, yMin, yMax); - assign(posDst, 3, x, xMin, xMax, y, yMin, yMax); - } - } - }, - - _interpolate2D(src, dst, options, interpolate) { - const bufSrc = src.data; - const bufDst = dst.data; - - const wSrc = src.width; - const hSrc = src.height; - - const wDst = dst.width; - const hDst = dst.height; - - // when dst smaller than src/2, interpolate first to a multiple between 0.5 and 1.0 src, then sum squares - const wM = Math.max(1, Math.floor(wSrc / wDst)); - const wDst2 = wDst * wM; - const hM = Math.max(1, Math.floor(hSrc / hDst)); - const hDst2 = hDst * hM; - - // =========================================================== - // Pass 1 - interpolate rows - // buf1 has width of dst2 and height of src - const buf1 = Buffer.alloc(wDst2 * hSrc * 4); - for (let i = 0; i < hSrc; i++) { - for (let j = 0; j < wDst2; j++) { - // i in src coords, j in dst coords - - // calculate x in src coords - // this interpolation requires 4 sample points and the two inner ones must be real - // the outer points can be fudged for the edges. - // therefore (wSrc-1)/wDst2 - const x = (j * (wSrc - 1)) / wDst2; - const xPos = Math.floor(x); - const t = x - xPos; - const srcPos = (i * wSrc + xPos) * 4; - const buf1Pos = (i * wDst2 + j) * 4; - - for (let k = 0; k < 4; k++) { - const kPos = srcPos + k; - const x0 = - xPos > 0 ? bufSrc[kPos - 4] : 2 * bufSrc[kPos] - bufSrc[kPos + 4]; - const x1 = bufSrc[kPos]; - const x2 = bufSrc[kPos + 4]; - const x3 = - xPos < wSrc - 2 - ? bufSrc[kPos + 8] - : 2 * bufSrc[kPos + 4] - bufSrc[kPos]; - buf1[buf1Pos + k] = interpolate(x0, x1, x2, x3, t); - } - } - } - // this._writeFile(wDst2, hSrc, buf1, "out/buf1.jpg"); - - // =========================================================== - // Pass 2 - interpolate columns - // buf2 has width and height of dst2 - const buf2 = Buffer.alloc(wDst2 * hDst2 * 4); - for (let i = 0; i < hDst2; i++) { - for (let j = 0; j < wDst2; j++) { - // i&j in dst2 coords - - // calculate y in buf1 coords - // this interpolation requires 4 sample points and the two inner ones must be real - // the outer points can be fudged for the edges. - // therefore (hSrc-1)/hDst2 - const y = (i * (hSrc - 1)) / hDst2; - const yPos = Math.floor(y); - const t = y - yPos; - const buf1Pos = (yPos * wDst2 + j) * 4; - const buf2Pos = (i * wDst2 + j) * 4; - for (let k = 0; k < 4; k++) { - const kPos = buf1Pos + k; - const y0 = - yPos > 0 - ? buf1[kPos - wDst2 * 4] - : 2 * buf1[kPos] - buf1[kPos + wDst2 * 4]; - const y1 = buf1[kPos]; - const y2 = buf1[kPos + wDst2 * 4]; - const y3 = - yPos < hSrc - 2 - ? buf1[kPos + wDst2 * 8] - : 2 * buf1[kPos + wDst2 * 4] - buf1[kPos]; - - buf2[buf2Pos + k] = interpolate(y0, y1, y2, y3, t); - } - } - } - // this._writeFile(wDst2, hDst2, buf2, "out/buf2.jpg"); - - // =========================================================== - // Pass 3 - scale to dst - const m = wM * hM; - if (m > 1) { - for (let i = 0; i < hDst; i++) { - for (let j = 0; j < wDst; j++) { - // i&j in dst bounded coords - let r = 0; - let g = 0; - let b = 0; - let a = 0; - let realColors = 0; - - for (let y = 0; y < hM; y++) { - const yPos = i * hM + y; - - for (let x = 0; x < wM; x++) { - const xPos = j * wM + x; - const xyPos = (yPos * wDst2 + xPos) * 4; - const pixelAlpha = buf2[xyPos + 3]; - - if (pixelAlpha) { - r += buf2[xyPos]; - g += buf2[xyPos + 1]; - b += buf2[xyPos + 2]; - realColors++; - } - - a += pixelAlpha; - } - } - - const pos = (i * wDst + j) * 4; - bufDst[pos] = realColors ? Math.round(r / realColors) : 0; - bufDst[pos + 1] = realColors ? Math.round(g / realColors) : 0; - bufDst[pos + 2] = realColors ? Math.round(b / realColors) : 0; - bufDst[pos + 3] = Math.round(a / m); - } - } - } else { - // replace dst buffer with buf2 - dst.data = buf2; - } - }, - - bicubicInterpolation(src, dst, options) { - const interpolateCubic = function (x0, x1, x2, x3, t) { - const a0 = x3 - x2 - x0 + x1; - const a1 = x0 - x1 - a0; - const a2 = x2 - x0; - const a3 = x1; - return Math.max( - 0, - Math.min(255, a0 * (t * t * t) + a1 * (t * t) + a2 * t + a3) - ); - }; - - return this._interpolate2D(src, dst, options, interpolateCubic); - }, - - hermiteInterpolation(src, dst, options) { - const interpolateHermite = function (x0, x1, x2, x3, t) { - const c0 = x1; - const c1 = 0.5 * (x2 - x0); - const c2 = x0 - 2.5 * x1 + 2 * x2 - 0.5 * x3; - const c3 = 0.5 * (x3 - x0) + 1.5 * (x1 - x2); - return Math.max( - 0, - Math.min(255, Math.round(((c3 * t + c2) * t + c1) * t + c0)) - ); - }; - - return this._interpolate2D(src, dst, options, interpolateHermite); - }, - - bezierInterpolation(src, dst, options) { - // between 2 points y(n), y(n+1), use next points out, y(n-1), y(n+2) - // to predict control points (a & b) to be placed at n+0.5 - // ya(n) = y(n) + (y(n+1)-y(n-1))/4 - // yb(n) = y(n+1) - (y(n+2)-y(n))/4 - // then use std bezier to interpolate [n,n+1) - // y(n+t) = y(n)*(1-t)^3 + 3 * ya(n)*(1-t)^2*t + 3 * yb(n)*(1-t)*t^2 + y(n+1)*t^3 - // note the 3* factor for the two control points - // for edge cases, can choose: - // y(-1) = y(0) - 2*(y(1)-y(0)) - // y(w) = y(w-1) + 2*(y(w-1)-y(w-2)) - // but can go with y(-1) = y(0) and y(w) = y(w-1) - const interpolateBezier = function (x0, x1, x2, x3, t) { - // x1, x2 are the knots, use x0 and x3 to calculate control points - const cp1 = x1 + (x2 - x0) / 4; - const cp2 = x2 - (x3 - x1) / 4; - const nt = 1 - t; - const c0 = x1 * nt * nt * nt; - const c1 = 3 * cp1 * nt * nt * t; - const c2 = 3 * cp2 * nt * t * t; - const c3 = x2 * t * t * t; - return Math.max(0, Math.min(255, Math.round(c0 + c1 + c2 + c3))); - }; - - return this._interpolate2D(src, dst, options, interpolateBezier); - }, -}; diff --git a/WechatBot/node_modules/@jimp/plugin-resize/test/resize.test.js b/WechatBot/node_modules/@jimp/plugin-resize/test/resize.test.js deleted file mode 100755 index 7f759084b..000000000 --- a/WechatBot/node_modules/@jimp/plugin-resize/test/resize.test.js +++ /dev/null @@ -1,301 +0,0 @@ -import { Jimp, mkJGD, hashForEach } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import resize from "../src"; - -const jimp = configure({ plugins: [resize] }, Jimp); - -describe("Resize images", () => { - const testImages = [ - { - title: "max contrast 8x8", - src: jimp.read( - mkJGD( - "■■■■□□□□", - "■■■■□□□□", - "■■■■□□□□", - "■■■■□□□□", - "□□□□■■■■", - "□□□□■■■■", - "□□□□■■■■", - "□□□□■■■■" - ) - ), - results: { - "default 4x4": mkJGD("■■□□", "■■□□", "□□■■", "□□■■"), - "NEAREST_NEIGHBOR 4x4": mkJGD("■■□□", "■■□□", "□□■■", "□□■■"), - "BILINEAR 4x4": mkJGD("■■□□", "■■□□", "□□■■", "□□■■"), - "BICUBIC 4x4": { - width: 4, - height: 4, - data: [ - 0x000000ff, 0x000000ff, 0xbfbfbfff, 0xffffffff, 0x000000ff, - 0x000000ff, 0xbfbfbfff, 0xffffffff, 0xbfbfbfff, 0xbfbfbfff, - 0x5f5f5fff, 0x404040ff, 0xffffffff, 0xffffffff, 0x404040ff, - 0x000000ff, - ], - }, - "HERMITE 4x4": { - width: 4, - height: 4, - data: [ - 0x000000ff, 0x000000ff, 0xc0c0c0ff, 0xffffffff, 0x000000ff, - 0x000000ff, 0xc0c0c0ff, 0xffffffff, 0xc0c0c0ff, 0xc0c0c0ff, - 0x606060ff, 0x404040ff, 0xffffffff, 0xffffffff, 0x404040ff, - 0x000000ff, - ], - }, - "BEZIER 4x4": { - width: 4, - height: 4, - data: [ - 0x000000ff, 0x000000ff, 0xc0c0c0ff, 0xffffffff, 0x000000ff, - 0x000000ff, 0xc0c0c0ff, 0xffffffff, 0xc0c0c0ff, 0xc0c0c0ff, - 0x606060ff, 0x404040ff, 0xffffffff, 0xffffffff, 0x404040ff, - 0x000000ff, - ], - }, - "default 5x2": mkJGD("■■▦□□", "□□▦■■"), - "NEAREST_NEIGHBOR 5x2": mkJGD("■■■□□", "□□□■■"), - "BILINEAR 5x2": mkJGD("■■3□□", "□□C■■"), - "BICUBIC 5x2": { - width: 5, - height: 2, - data: [ - 0x000000ff, 0x000000ff, 0x000000ff, 0xffffffff, 0xffffffff, - 0xdfdfdfff, 0xdfdfdfff, 0xdfdfdfff, 0x202020ff, 0x202020ff, - ], - }, - "HERMITE 5x2": { - width: 5, - height: 2, - data: [ - 0x000000ff, 0x000000ff, 0x000000ff, 0xffffffff, 0xffffffff, - 0xdfdfdfff, 0xdfdfdfff, 0xdfdfdfff, 0x202020ff, 0x202020ff, - ], - }, - "BEZIER 5x2": { - width: 5, - height: 2, - data: [ - 0x000000ff, 0x000000ff, 0x000000ff, 0xffffffff, 0xffffffff, - 0xdfdfdfff, 0xdfdfdfff, 0xdfdfdfff, 0x202020ff, 0x202020ff, - ], - }, - }, - }, - /**********************************************************************/ - { - title: "max contrast 12x12 with dots", - src: jimp.read( - mkJGD( - "■■■■■■□□□□□□", - "■■■■■■□□□□□□", - "■■■□■■□□■□□□", - "■■■■■■□□□□□□", - "■■■■■■□□□□□□", - "■■■■■■□□□□□□", - "□□□□□□■■■■■■", - "□□□□□□■■■■■■", - "□□□□□□■■■■■■", - "□□□■□□■■□■■■", - "□□□□□□■■■■■■", - "□□□□□□■■■■■■" - ) - ), - results: { - "default 6x6": mkJGD( - "■■■□□□", - "■▩■□▥□", - "■■■□□□", - "□□□■■■", - "□▥□■▩■", - "□□□■■■" - ), - "NEAREST_NEIGHBOR 6x6": mkJGD( - "■■■□□□", - "■■■□■□", - "■■■□□□", - "□□□■■■", - "□□□■■■", - "□□□■■■" - ), - "BILINEAR 6x6": mkJGD( - "■■■□□□", - "■■■□■□", - "■■■□□□", - "□□□■■■", - "□□□■■■", - "□□□■■■" - ), - "BICUBIC 6x6": { - width: 6, - height: 6, - data: [ - 0x000000ff, 0x000000ff, 0x000000ff, 0xbfbfbfff, 0xffffffff, - 0xffffffff, 0x000000ff, 0x474747ff, 0x202020ff, 0xbfbfbfff, - 0x979797ff, 0xffffffff, 0x000000ff, 0x000000ff, 0x000000ff, - 0xbfbfbfff, 0xffffffff, 0xffffffff, 0xbfbfbfff, 0xbfbfbfff, - 0xbfbfbfff, 0x5f5f5fff, 0x404040ff, 0x404040ff, 0xffffffff, - 0xeeeeeeff, 0xf7f7f7ff, 0x404040ff, 0x181818ff, 0x000000ff, - 0xffffffff, 0xc9c9c9ff, 0xe6e6e6ff, 0x404040ff, 0x4e4e4eff, - 0x000000ff, - ], - }, - "HERMITE 6x6": { - width: 6, - height: 6, - data: [ - 0x000000ff, 0x000000ff, 0x000000ff, 0xc0c0c0ff, 0xffffffff, - 0xffffffff, 0x000000ff, 0x404040ff, 0x191919ff, 0xc0c0c0ff, - 0xa6a6a6ff, 0xffffffff, 0x000000ff, 0x000000ff, 0x000000ff, - 0xc0c0c0ff, 0xffffffff, 0xffffffff, 0xc0c0c0ff, 0xc0c0c0ff, - 0xc0c0c0ff, 0x606060ff, 0x404040ff, 0x404040ff, 0xffffffff, - 0xf3f3f3ff, 0xfafafaff, 0x404040ff, 0x111111ff, 0x000000ff, - 0xffffffff, 0xcbcbcbff, 0xebebebff, 0x404040ff, 0x484848ff, - 0x000000ff, - ], - }, - "BEZIER 6x6": { - width: 6, - height: 6, - data: [ - 0x000000ff, 0x000000ff, 0x000000ff, 0xc0c0c0ff, 0xffffffff, - 0xffffffff, 0x000000ff, 0x444444ff, 0x1d1d1dff, 0xc0c0c0ff, - 0x9f9f9fff, 0xffffffff, 0x000000ff, 0x000000ff, 0x000000ff, - 0xc0c0c0ff, 0xffffffff, 0xffffffff, 0xc0c0c0ff, 0xc0c0c0ff, - 0xc0c0c0ff, 0x606060ff, 0x404040ff, 0x404040ff, 0xffffffff, - 0xf0f0f0ff, 0xf9f9f9ff, 0x404040ff, 0x151515ff, 0x000000ff, - 0xffffffff, 0xcacacaff, 0xe9e9e9ff, 0x404040ff, 0x4b4b4bff, - 0x000000ff, - ], - }, - }, - }, - /**********************************************************************/ - { - title: "mutch contrast 4x4", - src: jimp.read(mkJGD("▩▩▥▥", "▩▩▥▥", "▥▥▩▩", "▥▥▩▩")), - results: { - "default 6x6": { - width: 6, - height: 6, - data: [ - 0x404040ff, 0x404040ff, 0x404040ff, 0x959595ff, 0xbfbfbfff, - 0xbfbfbfff, 0x404040ff, 0x404040ff, 0x404040ff, 0x959595ff, - 0xbfbfbfff, 0xbfbfbfff, 0x404040ff, 0x404040ff, 0x404040ff, - 0x959595ff, 0xbfbfbfff, 0xbfbfbfff, 0x959595ff, 0x959595ff, - 0x959595ff, 0x787878ff, 0x6a6a6aff, 0x6a6a6aff, 0xbfbfbfff, - 0xbfbfbfff, 0xbfbfbfff, 0x6a6a6aff, 0x404040ff, 0x404040ff, - 0xbfbfbfff, 0xbfbfbfff, 0xbfbfbfff, 0x6a6a6aff, 0x404040ff, - 0x404040ff, - ], - }, - "NEAREST_NEIGHBOR 6x6": { - width: 6, - height: 6, - data: [ - 0x404040ff, 0x404040ff, 0x404040ff, 0xbfbfbfff, 0xbfbfbfff, - 0xbfbfbfff, 0x404040ff, 0x404040ff, 0x404040ff, 0xbfbfbfff, - 0xbfbfbfff, 0xbfbfbfff, 0x404040ff, 0x404040ff, 0x404040ff, - 0xbfbfbfff, 0xbfbfbfff, 0xbfbfbfff, 0xbfbfbfff, 0xbfbfbfff, - 0xbfbfbfff, 0x404040ff, 0x404040ff, 0x404040ff, 0xbfbfbfff, - 0xbfbfbfff, 0xbfbfbfff, 0x404040ff, 0x404040ff, 0x404040ff, - 0xbfbfbfff, 0xbfbfbfff, 0xbfbfbfff, 0x404040ff, 0x404040ff, - 0x404040ff, - ], - }, - "BILINEAR 6x6": { - width: 6, - height: 6, - data: [ - 0x404040ff, 0x404040ff, 0x6a6a6aff, 0xbfbfbfff, 0xbfbfbfff, - 0xbfbfbfff, 0x404040ff, 0x404040ff, 0x6a6a6aff, 0xbfbfbfff, - 0xbfbfbfff, 0xbfbfbfff, 0x6a6a6aff, 0x6a6a6aff, 0x787878ff, - 0x959595ff, 0x959595ff, 0x959595ff, 0xbfbfbfff, 0xbfbfbfff, - 0x959595ff, 0x404040ff, 0x404040ff, 0x404040ff, 0xbfbfbfff, - 0xbfbfbfff, 0x959595ff, 0x404040ff, 0x404040ff, 0x404040ff, - 0xbfbfbfff, 0xbfbfbfff, 0x959595ff, 0x404040ff, 0x404040ff, - 0x404040ff, - ], - }, - "BICUBIC 6x6": { - width: 6, - height: 6, - data: [ - 0x404040ff, 0x303030ff, 0x404040ff, 0x7f7f7fff, 0xbfbfbfff, - 0xcececeff, 0x303030ff, 0x1c1c1cff, 0x303030ff, 0x7f7f7fff, - 0xcececeff, 0xe1e1e1ff, 0x404040ff, 0x303030ff, 0x404040ff, - 0x7f7f7fff, 0xbfbfbfff, 0xcececeff, 0x7f7f7fff, 0x7f7f7fff, - 0x7f7f7fff, 0x7f7f7fff, 0x7f7f7fff, 0x7f7f7fff, 0xbfbfbfff, - 0xcececeff, 0xbfbfbfff, 0x7f7f7fff, 0x404040ff, 0x303030ff, - 0xcececeff, 0xe1e1e1ff, 0xcececeff, 0x7f7f7fff, 0x303030ff, - 0x1c1c1cff, - ], - }, - "HERMITE 6x6": { - width: 6, - height: 6, - data: [ - 0x404040ff, 0x383838ff, 0x404040ff, 0x808080ff, 0xbfbfbfff, - 0xc7c7c7ff, 0x383838ff, 0x2f2f2fff, 0x383838ff, 0x808080ff, - 0xc7c7c7ff, 0xd0d0d0ff, 0x404040ff, 0x383838ff, 0x404040ff, - 0x808080ff, 0xbfbfbfff, 0xc7c7c7ff, 0x808080ff, 0x808080ff, - 0x808080ff, 0x808080ff, 0x808080ff, 0x808080ff, 0xbfbfbfff, - 0xc7c7c7ff, 0xbfbfbfff, 0x808080ff, 0x404040ff, 0x383838ff, - 0xc7c7c7ff, 0xd0d0d0ff, 0xc7c7c7ff, 0x808080ff, 0x383838ff, - 0x2f2f2fff, - ], - }, - "BEZIER 6x6": { - width: 6, - height: 6, - data: [ - 0x404040ff, 0x343434ff, 0x404040ff, 0x808080ff, 0xbfbfbfff, - 0xcbcbcbff, 0x343434ff, 0x262626ff, 0x343434ff, 0x808080ff, - 0xcbcbcbff, 0xd9d9d9ff, 0x404040ff, 0x343434ff, 0x404040ff, - 0x808080ff, 0xbfbfbfff, 0xcbcbcbff, 0x808080ff, 0x808080ff, - 0x808080ff, 0x808080ff, 0x808080ff, 0x808080ff, 0xbfbfbfff, - 0xcbcbcbff, 0xbfbfbfff, 0x808080ff, 0x404040ff, 0x343434ff, - 0xcbcbcbff, 0xd9d9d9ff, 0xcbcbcbff, 0x808080ff, 0x343434ff, - 0x262626ff, - ], - }, - }, - }, - ]; - - before((done) => { - const srcImgs = testImages.map((test) => test.src); - Promise.all(srcImgs) - .then((imgsJimp) => { - for (let i = 0; i < imgsJimp.length; i++) { - testImages[i].src = imgsJimp[i]; - } - - done(); - }) - .catch(done); - }); - - function testEach(test) { - describe(test.title, () => { - hashForEach(test.results, (expectedTitle, expectedJgd) => { - const mode = Jimp["RESIZE_" + expectedTitle.split(" ")[0]]; - const size = expectedTitle - .split(" ")[1] - .split("x") - .map((n) => parseInt(n, 10)); - it("to " + expectedTitle, () => { - test.src - .clone() - .resize(size[0], size[1], mode) - .getJGDSync() - .should.be.sameJGD(expectedJgd); - }); - }); - }); - } - - testImages.forEach(testEach); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-rotate/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-rotate/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-rotate/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-rotate/LICENSE b/WechatBot/node_modules/@jimp/plugin-rotate/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-rotate/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-rotate/README.md b/WechatBot/node_modules/@jimp/plugin-rotate/README.md deleted file mode 100644 index 6bacc7daf..000000000 --- a/WechatBot/node_modules/@jimp/plugin-rotate/README.md +++ /dev/null @@ -1,26 +0,0 @@ -
- -

@jimp/plugin-rotate

-

Rotate an image.

-
- -Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately. - -## Usage - -- @param {number} deg the number of degrees to rotate the image by -- @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.rotate(90); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-rotate/dist/index.js b/WechatBot/node_modules/@jimp/plugin-rotate/dist/index.js deleted file mode 100755 index c0a1fb6f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-rotate/dist/index.js +++ /dev/null @@ -1,139 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Rotates an image clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object. - * @param {number} deg the number of degrees to rotate the image by - * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed - */ -function advancedRotate(deg, mode) { - deg %= 360; - var rad = deg * Math.PI / 180; - var cosine = Math.cos(rad); - var sine = Math.sin(rad); // the final width and height will change if resize == true - - var w = this.bitmap.width; - var h = this.bitmap.height; - - if (mode === true || typeof mode === "string") { - // resize the image to it maximum dimension and blit the existing image - // onto the center so that when it is rotated the image is kept in bounds - // http://stackoverflow.com/questions/3231176/how-to-get-size-of-a-rotated-rectangle - // Plus 1 border pixel to ensure to show all rotated result for some cases. - w = Math.ceil(Math.abs(this.bitmap.width * cosine) + Math.abs(this.bitmap.height * sine)) + 1; - h = Math.ceil(Math.abs(this.bitmap.width * sine) + Math.abs(this.bitmap.height * cosine)) + 1; // Ensure destination to have even size to a better result. - - if (w % 2 !== 0) { - w++; - } - - if (h % 2 !== 0) { - h++; - } - - var c = this.cloneQuiet(); - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - this.bitmap.data.writeUInt32BE(this._background, idx); - }); - var max = Math.max(w, h, this.bitmap.width, this.bitmap.height); - this.resize(max, max, mode); - this.blit(c, this.bitmap.width / 2 - c.bitmap.width / 2, this.bitmap.height / 2 - c.bitmap.height / 2); - } - - var bW = this.bitmap.width; - var bH = this.bitmap.height; - var dstBuffer = Buffer.alloc(this.bitmap.data.length); - - function createTranslationFunction(deltaX, deltaY) { - return function (x, y) { - return { - x: x + deltaX, - y: y + deltaY - }; - }; - } - - var translate2Cartesian = createTranslationFunction(-(bW / 2), -(bH / 2)); - var translate2Screen = createTranslationFunction(bW / 2 + 0.5, bH / 2 + 0.5); - - for (var y = 1; y <= bH; y++) { - for (var x = 1; x <= bW; x++) { - var cartesian = translate2Cartesian(x, y); - var source = translate2Screen(cosine * cartesian.x - sine * cartesian.y, cosine * cartesian.y + sine * cartesian.x); - var dstIdx = bW * (y - 1) + x - 1 << 2; - - if (source.x >= 0 && source.x < bW && source.y >= 0 && source.y < bH) { - var srcIdx = (bW * (source.y | 0) + source.x | 0) << 2; - var pixelRGBA = this.bitmap.data.readUInt32BE(srcIdx); - dstBuffer.writeUInt32BE(pixelRGBA, dstIdx); - } else { - // reset off-image pixels - dstBuffer.writeUInt32BE(this._background, dstIdx); - } - } - } - - this.bitmap.data = dstBuffer; - - if (mode === true || typeof mode === "string") { - // now crop the image to the final size - var _x = bW / 2 - w / 2; - - var _y = bH / 2 - h / 2; - - this.crop(_x, _y, w, h); - } -} - -var _default = function _default() { - return { - /** - * Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately. - * @param {number} deg the number of degrees to rotate the image by - * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - rotate: function rotate(deg, mode, cb) { - // enable overloading - if (typeof mode === "undefined" || mode === null) { - // e.g. image.resize(120); - // e.g. image.resize(120, null, cb); - // e.g. image.resize(120, undefined, cb); - mode = true; - } - - if (typeof mode === "function" && typeof cb === "undefined") { - // e.g. image.resize(120, cb); - cb = mode; - mode = true; - } - - if (typeof deg !== "number") { - return _utils.throwError.call(this, "deg must be a number", cb); - } - - if (typeof mode !== "boolean" && typeof mode !== "string") { - return _utils.throwError.call(this, "mode must be a boolean or a string", cb); - } - - advancedRotate.call(this, deg, mode, cb); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-rotate/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-rotate/dist/index.js.map deleted file mode 100644 index 044394659..000000000 --- a/WechatBot/node_modules/@jimp/plugin-rotate/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["advancedRotate","deg","mode","rad","Math","PI","cosine","cos","sine","sin","w","bitmap","width","h","height","ceil","abs","c","cloneQuiet","scanQuiet","x","y","idx","data","writeUInt32BE","_background","max","resize","blit","bW","bH","dstBuffer","Buffer","alloc","length","createTranslationFunction","deltaX","deltaY","translate2Cartesian","translate2Screen","cartesian","source","dstIdx","srcIdx","pixelRGBA","readUInt32BE","crop","rotate","cb","throwError","call"],"mappings":";;;;;;;AAAA;;AAEA;;;;;AAKA,SAASA,cAAT,CAAwBC,GAAxB,EAA6BC,IAA7B,EAAmC;AACjCD,EAAAA,GAAG,IAAI,GAAP;AACA,MAAME,GAAG,GAAIF,GAAG,GAAGG,IAAI,CAACC,EAAZ,GAAkB,GAA9B;AACA,MAAMC,MAAM,GAAGF,IAAI,CAACG,GAAL,CAASJ,GAAT,CAAf;AACA,MAAMK,IAAI,GAAGJ,IAAI,CAACK,GAAL,CAASN,GAAT,CAAb,CAJiC,CAMjC;;AACA,MAAIO,CAAC,GAAG,KAAKC,MAAL,CAAYC,KAApB;AACA,MAAIC,CAAC,GAAG,KAAKF,MAAL,CAAYG,MAApB;;AAEA,MAAIZ,IAAI,KAAK,IAAT,IAAiB,OAAOA,IAAP,KAAgB,QAArC,EAA+C;A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AI,OAAO9C,IAAP,KAAgB,WAAhB,IAA+BA,IAAI,KAAK,IAA5C,EAAkD;AAChD;AACA;AACA;AACAA,QAAAA,IAAI,GAAG,IAAP;AACD;;AAED,UAAI,OAAOA,IAAP,KAAgB,UAAhB,IAA8B,OAAO8C,EAAP,KAAc,WAAhD,EAA6D;AAC3D;AACAA,QAAAA,EAAE,GAAG9C,IAAL;AACAA,QAAAA,IAAI,GAAG,IAAP;AACD;;AAED,UAAI,OAAOD,GAAP,KAAe,QAAnB,EAA6B;AAC3B,eAAOgD,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,sBAAtB,EAA8CF,EAA9C,CAAP;AACD;;AAED,UAAI,OAAO9C,IAAP,KAAgB,SAAhB,IAA6B,OAAOA,IAAP,KAAgB,QAAjD,EAA2D;AACzD,eAAO+C,kBAAWC,IAAX,CAAgB,IAAhB,EAAsB,oCAAtB,EAA4DF,EAA5D,CAAP;AACD;;AAEDhD,MAAAA,cAAc,CAACkD,IAAf,CAAoB,IAApB,EAA0BjD,GAA1B,EAA+BC,IAA/B,EAAqC8C,EAArC;;AAEA,UAAI,0BAAcA,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AAtCmB,GAAP;AAAA,C","sourcesContent":["import { throwError, isNodePattern } from \"@jimp/utils\";\n\n/**\n * Rotates an image clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object.\n * @param {number} deg the number of degrees to rotate the image by\n * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed\n */\nfunction advancedRotate(deg, mode) {\n deg %= 360;\n const rad = (deg * Math.PI) / 180;\n const cosine = Math.cos(rad);\n const sine = Math.sin(rad);\n\n // the final width and height will change if resize == true\n let w = this.bitmap.width;\n let h = this.bitmap.height;\n\n if (mode === true || typeof mode === \"string\") {\n // resize the image to it maximum dimension and blit the existing image\n // onto the center so that when it is rotated the image is kept in bounds\n\n // http://stackoverflow.com/questions/3231176/how-to-get-size-of-a-rotated-rectangle\n // Plus 1 border pixel to ensure to show all rotated result for some cases.\n w =\n Math.ceil(\n Math.abs(this.bitmap.width * cosine) +\n Math.abs(this.bitmap.height * sine)\n ) + 1;\n h =\n Math.ceil(\n Math.abs(this.bitmap.width * sine) +\n Math.abs(this.bitmap.height * cosine)\n ) + 1;\n // Ensure destination to have even size to a better result.\n if (w % 2 !== 0) {\n w++;\n }\n\n if (h % 2 !== 0) {\n h++;\n }\n\n const c = this.cloneQuiet();\n this.scanQuiet(\n 0,\n 0,\n this.bitmap.width,\n this.bitmap.height,\n function (x, y, idx) {\n this.bitmap.data.writeUInt32BE(this._background, idx);\n }\n );\n\n const max = Math.max(w, h, this.bitmap.width, this.bitmap.height);\n this.resize(max, max, mode);\n\n this.blit(\n c,\n this.bitmap.width / 2 - c.bitmap.width / 2,\n this.bitmap.height / 2 - c.bitmap.height / 2\n );\n }\n\n const bW = this.bitmap.width;\n const bH = this.bitmap.height;\n const dstBuffer = Buffer.alloc(this.bitmap.data.length);\n\n function createTranslationFunction(deltaX, deltaY) {\n return function (x, y) {\n return {\n x: x + deltaX,\n y: y + deltaY,\n };\n };\n }\n\n const translate2Cartesian = createTranslationFunction(-(bW / 2), -(bH / 2));\n const translate2Screen = createTranslationFunction(\n bW / 2 + 0.5,\n bH / 2 + 0.5\n );\n\n for (let y = 1; y <= bH; y++) {\n for (let x = 1; x <= bW; x++) {\n const cartesian = translate2Cartesian(x, y);\n const source = translate2Screen(\n cosine * cartesian.x - sine * cartesian.y,\n cosine * cartesian.y + sine * cartesian.x\n );\n const dstIdx = (bW * (y - 1) + x - 1) << 2;\n\n if (source.x >= 0 && source.x < bW && source.y >= 0 && source.y < bH) {\n const srcIdx = ((bW * (source.y | 0) + source.x) | 0) << 2;\n const pixelRGBA = this.bitmap.data.readUInt32BE(srcIdx);\n dstBuffer.writeUInt32BE(pixelRGBA, dstIdx);\n } else {\n // reset off-image pixels\n dstBuffer.writeUInt32BE(this._background, dstIdx);\n }\n }\n }\n\n this.bitmap.data = dstBuffer;\n\n if (mode === true || typeof mode === \"string\") {\n // now crop the image to the final size\n const x = bW / 2 - w / 2;\n const y = bH / 2 - h / 2;\n this.crop(x, y, w, h);\n }\n}\n\nexport default () => ({\n /**\n * Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately.\n * @param {number} deg the number of degrees to rotate the image by\n * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n rotate(deg, mode, cb) {\n // enable overloading\n if (typeof mode === \"undefined\" || mode === null) {\n // e.g. image.resize(120);\n // e.g. image.resize(120, null, cb);\n // e.g. image.resize(120, undefined, cb);\n mode = true;\n }\n\n if (typeof mode === \"function\" && typeof cb === \"undefined\") {\n // e.g. image.resize(120, cb);\n cb = mode;\n mode = true;\n }\n\n if (typeof deg !== \"number\") {\n return throwError.call(this, \"deg must be a number\", cb);\n }\n\n if (typeof mode !== \"boolean\" && typeof mode !== \"string\") {\n return throwError.call(this, \"mode must be a boolean or a string\", cb);\n }\n\n advancedRotate.call(this, deg, mode, cb);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-rotate/index.d.ts b/WechatBot/node_modules/@jimp/plugin-rotate/index.d.ts deleted file mode 100644 index 23d2aa2f4..000000000 --- a/WechatBot/node_modules/@jimp/plugin-rotate/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Rotate { - rotate(deg: number, cb?: ImageCallback): this; - rotate(deg: number, mode: string | boolean, cb?: ImageCallback): this; -} - -export default function (): Rotate; diff --git a/WechatBot/node_modules/@jimp/plugin-rotate/package.json b/WechatBot/node_modules/@jimp/plugin-rotate/package.json deleted file mode 100644 index 759cc59d2..000000000 --- a/WechatBot/node_modules/@jimp/plugin-rotate/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "@jimp/plugin-rotate", - "version": "0.16.13", - "description": "Rotate an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5", - "@jimp/plugin-blit": ">=0.3.5", - "@jimp/plugin-crop": ">=0.3.5", - "@jimp/plugin-resize": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/plugin-blit": "^0.16.13", - "@jimp/plugin-crop": "^0.16.13", - "@jimp/plugin-resize": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-rotate/src/index.js b/WechatBot/node_modules/@jimp/plugin-rotate/src/index.js deleted file mode 100755 index 7b0712a87..000000000 --- a/WechatBot/node_modules/@jimp/plugin-rotate/src/index.js +++ /dev/null @@ -1,152 +0,0 @@ -import { throwError, isNodePattern } from "@jimp/utils"; - -/** - * Rotates an image clockwise by an arbitrary number of degrees. NB: 'this' must be a Jimp object. - * @param {number} deg the number of degrees to rotate the image by - * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed - */ -function advancedRotate(deg, mode) { - deg %= 360; - const rad = (deg * Math.PI) / 180; - const cosine = Math.cos(rad); - const sine = Math.sin(rad); - - // the final width and height will change if resize == true - let w = this.bitmap.width; - let h = this.bitmap.height; - - if (mode === true || typeof mode === "string") { - // resize the image to it maximum dimension and blit the existing image - // onto the center so that when it is rotated the image is kept in bounds - - // http://stackoverflow.com/questions/3231176/how-to-get-size-of-a-rotated-rectangle - // Plus 1 border pixel to ensure to show all rotated result for some cases. - w = - Math.ceil( - Math.abs(this.bitmap.width * cosine) + - Math.abs(this.bitmap.height * sine) - ) + 1; - h = - Math.ceil( - Math.abs(this.bitmap.width * sine) + - Math.abs(this.bitmap.height * cosine) - ) + 1; - // Ensure destination to have even size to a better result. - if (w % 2 !== 0) { - w++; - } - - if (h % 2 !== 0) { - h++; - } - - const c = this.cloneQuiet(); - this.scanQuiet( - 0, - 0, - this.bitmap.width, - this.bitmap.height, - function (x, y, idx) { - this.bitmap.data.writeUInt32BE(this._background, idx); - } - ); - - const max = Math.max(w, h, this.bitmap.width, this.bitmap.height); - this.resize(max, max, mode); - - this.blit( - c, - this.bitmap.width / 2 - c.bitmap.width / 2, - this.bitmap.height / 2 - c.bitmap.height / 2 - ); - } - - const bW = this.bitmap.width; - const bH = this.bitmap.height; - const dstBuffer = Buffer.alloc(this.bitmap.data.length); - - function createTranslationFunction(deltaX, deltaY) { - return function (x, y) { - return { - x: x + deltaX, - y: y + deltaY, - }; - }; - } - - const translate2Cartesian = createTranslationFunction(-(bW / 2), -(bH / 2)); - const translate2Screen = createTranslationFunction( - bW / 2 + 0.5, - bH / 2 + 0.5 - ); - - for (let y = 1; y <= bH; y++) { - for (let x = 1; x <= bW; x++) { - const cartesian = translate2Cartesian(x, y); - const source = translate2Screen( - cosine * cartesian.x - sine * cartesian.y, - cosine * cartesian.y + sine * cartesian.x - ); - const dstIdx = (bW * (y - 1) + x - 1) << 2; - - if (source.x >= 0 && source.x < bW && source.y >= 0 && source.y < bH) { - const srcIdx = ((bW * (source.y | 0) + source.x) | 0) << 2; - const pixelRGBA = this.bitmap.data.readUInt32BE(srcIdx); - dstBuffer.writeUInt32BE(pixelRGBA, dstIdx); - } else { - // reset off-image pixels - dstBuffer.writeUInt32BE(this._background, dstIdx); - } - } - } - - this.bitmap.data = dstBuffer; - - if (mode === true || typeof mode === "string") { - // now crop the image to the final size - const x = bW / 2 - w / 2; - const y = bH / 2 - h / 2; - this.crop(x, y, w, h); - } -} - -export default () => ({ - /** - * Rotates the image clockwise by a number of degrees. By default the width and height of the image will be resized appropriately. - * @param {number} deg the number of degrees to rotate the image by - * @param {string|boolean} mode (optional) resize mode or a boolean, if false then the width and height of the image will not be changed - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - rotate(deg, mode, cb) { - // enable overloading - if (typeof mode === "undefined" || mode === null) { - // e.g. image.resize(120); - // e.g. image.resize(120, null, cb); - // e.g. image.resize(120, undefined, cb); - mode = true; - } - - if (typeof mode === "function" && typeof cb === "undefined") { - // e.g. image.resize(120, cb); - cb = mode; - mode = true; - } - - if (typeof deg !== "number") { - return throwError.call(this, "deg must be a number", cb); - } - - if (typeof mode !== "boolean" && typeof mode !== "string") { - return throwError.call(this, "mode must be a boolean or a string", cb); - } - - advancedRotate.call(this, deg, mode, cb); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-rotate/test/rotation.test.js b/WechatBot/node_modules/@jimp/plugin-rotate/test/rotation.test.js deleted file mode 100755 index c86db73fb..000000000 --- a/WechatBot/node_modules/@jimp/plugin-rotate/test/rotation.test.js +++ /dev/null @@ -1,636 +0,0 @@ -import { Jimp, mkJGD } from "@jimp/test-utils"; -import configure from "@jimp/custom"; -import blit from "@jimp/plugin-blit"; -import crop from "@jimp/plugin-crop"; -import resize from "@jimp/plugin-resize"; - -import rotate from "../src"; - -const jimp = configure({ plugins: [rotate, blit, crop, resize] }, Jimp); - -describe("Rotate a image with even size", () => { - let imgSrc = null; - - before((done) => { - jimp - .read( - mkJGD( - "▰▴▴▴▪▪▪▰", - "▴▴▴▴▪▪▪▪", - "▴▴▴▴▪▪▪▪", - "▴▴▴▴▪▪▪▪", - "▪▪▪▪▴▴▴▴", - "▪▪▪▪▴▴▴▴", - "▪▪▪▪▴▴▴▴", - "▦▪▪▪▴▴▴▦" - ) - ) - .then((imgJimp) => { - imgSrc = imgJimp; - done(); - }) - .catch(done); - }); - - it("1 degrees", () => { - imgSrc - .clone() - .rotate(1, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "▰▴▴▴▪▪▪▰ ", - "▴▴▴▴▪▪▪▪ ", - "▴▴▴▴▪▪▪▪ ", - "▴▴▴▴▪▪▪▪ ", - "▪▪▪▪▴▴▴▴ ", - "▪▪▪▪▴▴▴▴ ", - "▪▪▪▪▴▴▴▴ ", - "▦▪▪▪▴▴▴▦ ", - " ", - " " - ) - ); - }); - - it("91 degrees", () => { - imgSrc - .clone() - .rotate(91, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - "▰▪▪▪▴▴▴▦ ", - "▪▪▪▪▴▴▴▴ ", - "▪▪▪▪▴▴▴▴ ", - "▪▪▪▪▴▴▴▴ ", - "▴▴▴▴▪▪▪▪ ", - "▴▴▴▴▪▪▪▪ ", - "▴▴▴▴▪▪▪▪ ", - "▰▴▴▴▪▪▪▦ ", - " " - ) - ); - }); - - it("30 degrees", () => { - imgSrc - .clone() - .rotate(30, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ▰▰ ", - " ▪▪▪▪ ", - " ▴▪▪▪▪▪ ", - "▴▴▴▴▪▪▪▪ ", - "▴▴▴▴▪▪▴▴▴ ", - "▴▴▴▴▪▴▴▴▴▴ ", - " ▴▴▪▪▴▴▴▴▦ ", - " ▪▪▪▪▪▴▴▴ ", - " ▪▪▪▪▪ ", - " ▪▪▪ ", - " ▦ ", - " " - ) - ); - }); - - it("45 degrees", () => { - imgSrc - .clone() - .rotate(45, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▰ ", - " ▪▪▪ ", - " ▪▪▪▪▪ ", - " ▴▴▪▪▪▪▴ ", - " ▴▴▴▴▪▪▴▴▴ ", - "▰▰▴▴▴▴▴▴▴▴▦ ", - " ▴▴▴▴▪▪▴▴▴ ", - " ▴▴▪▪▪▪▴ ", - " ▪▪▪▪▪ ", - " ▪▪▪ ", - " ▦ ", - " ", - " " - ) - ); - }); - - it("60 degrees", () => { - imgSrc - .clone() - .rotate(60, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ▰ ", - " ▪▪▪ ", - " ▪▪▪▪▪ ", - " ▪▪▪▪▪▴▴▴ ", - " ▴▴▪▪▴▴▴▴▦ ", - "▴▴▴▴▪▴▴▴▴▴ ", - "▴▴▴▴▪▪▴▴▴ ", - "▴▴▴▴▪▪▪▪ ", - " ▴▪▪▪▪▪ ", - " ▪▪▪▪ ", - " ▦▦ ", - " " - ) - ); - }); - - it("90 degrees", () => { - imgSrc - .clone() - .rotate(90, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - "▰▪▪▪▴▴▴▦ ", - "▪▪▪▪▴▴▴▴ ", - "▪▪▪▪▴▴▴▴ ", - "▪▪▪▪▴▴▴▴ ", - "▴▴▴▴▪▪▪▪ ", - "▴▴▴▴▪▪▪▪ ", - "▴▴▴▴▪▪▪▪ ", - "▰▴▴▴▪▪▪▦ ", - " " - ) - ); - }); - - it("120 degrees", () => { - imgSrc - .clone() - .rotate(120, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▴▦ ", - " ▴▴▴▴ ", - " ▪▪▴▴▴▴ ", - "▰▪▪▪▴▴▴▴▪ ", - "▰▪▪▪▪▴▴▪▪▪ ", - " ▪▪▪▪▪▪▪▪▪ ", - " ▪▪▴▴▴▪▪▪▪▦ ", - " ▴▴▴▴▴▪▪ ", - " ▴▴▴▴▪ ", - " ▴▴▴ ", - " " - ) - ); - }); - - it("135 degrees", () => { - imgSrc - .clone() - .rotate(135, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ", - " ▦ ", - " ▴▴▴ ", - " ▴▴▴▴▴ ", - " ▪▪▴▴▴▪▪ ", - " ▪▪▪▪▴▪▪▪▪ ", - " ▰▪▪▪▪▴▪▪▪▪▦ ", - " ▪▪▪▴▴▴▪▪▪ ", - " ▪▴▴▴▴▴▪ ", - " ▴▴▴▴▴ ", - " ▴▰▴ ", - " ▰ ", - " " - ) - ); - }); - - it("180 degrees", () => { - imgSrc - .clone() - .rotate(180, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▦▴▴▴▪▪▪▦ ", - " ▴▴▴▴▪▪▪▪ ", - " ▴▴▴▴▪▪▪▪ ", - " ▴▴▴▴▪▪▪▪ ", - " ▪▪▪▪▴▴▴▴ ", - " ▪▪▪▪▴▴▴▴ ", - " ▪▪▪▪▴▴▴▴ ", - " ▰▪▪▪▴▴▴▰ ", - " " - ) - ); - }); - - it("225 degrees", () => { - imgSrc - .clone() - .rotate(225, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▦ ", - " ▪▪▪ ", - " ▪▪▪▪▪ ", - " ▴▪▪▪▪▴▴ ", - " ▴▴▴▪▪▴▴▴▴ ", - " ▦▴▴▴▴▴▴▴▴▰▰ ", - " ▴▴▴▪▪▴▴▴▴ ", - " ▴▪▪▪▪▴▴ ", - " ▪▪▪▪▪ ", - " ▪▪▪ ", - " ▰ ", - " ", - " " - ) - ); - }); - - it("270 degrees", () => { - imgSrc - .clone() - .rotate(270, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ▦▪▪▪▴▴▴▰ ", - " ▪▪▪▪▴▴▴▴ ", - " ▪▪▪▪▴▴▴▴ ", - " ▪▪▪▪▴▴▴▴ ", - " ▴▴▴▴▪▪▪▪ ", - " ▴▴▴▴▪▪▪▪ ", - " ▴▴▴▴▪▪▪▪ ", - " ▦▴▴▴▪▪▪▰ ", - " ", - " " - ) - ); - }); - - it("315 degrees", () => { - imgSrc - .clone() - .rotate(315, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ▰ ", - " ▴▰▴ ", - " ▴▴▴▴▴ ", - " ▪▴▴▴▴▴▪ ", - " ▪▪▪▴▴▴▪▪▪ ", - " ▦▪▪▪▪▴▪▪▪▪▰ ", - " ▪▪▪▪▴▪▪▪▪ ", - " ▪▪▴▴▴▪▪ ", - " ▴▴▴▴▴ ", - " ▴▴▴ ", - " ▦ ", - " ", - " ", - " " - ) - ); - }); - - it("360 degrees", () => { - imgSrc - .clone() - .rotate(360, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "▰▴▴▴▪▪▪▰ ", - "▴▴▴▴▪▪▪▪ ", - "▴▴▴▴▪▪▪▪ ", - "▴▴▴▴▪▪▪▪ ", - "▪▪▪▪▴▴▴▴ ", - "▪▪▪▪▴▴▴▴ ", - "▪▪▪▪▴▴▴▴ ", - "▦▪▪▪▴▴▴▦ ", - " ", - " " - ) - ); - }); -}); - -describe("Rotate a image with odd size", () => { - let imgSrc = null; - before((done) => { - jimp - .read( - mkJGD( - "▴▴▴▦▪▪▪", - "▴▴▴▦▪▪▪", - "▴▴▴▦▪▪▪", - "▦▦▦▦▦▦▦", - "▴▴▴▦▴▴▴", - "▴▴▴▦▴▴▴", - "▴▴▴▦▴▴▴" - ) - ) - .then((imgJimp) => { - imgSrc = imgJimp; - done(); - }) - .catch(done); - }); - - it("45 degrees", () => { - imgSrc - .clone() - .rotate(45, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▪ ", - " ▪▪▪ ", - " ▦▪▪▪▦ ", - " ▴▴▦▪▦▴▴ ", - " ▴▴▴▴▦▴▴▴▴ ", - " ▴▴▦▴▦▴▴ ", - " ▦▴▴▴▦ ", - " ▴▴▴ ", - " ▴ ", - " ", - " " - ) - ); - }); - - it("135 degrees", () => { - imgSrc - .clone() - .rotate(135, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▴ ", - " ▴▴▴ ", - " ▦▴▴▴▦ ", - " ▪▪▦▴▦▴▴ ", - " ▪▪▪▪▦▴▴▴▴ ", - " ▪▪▦▴▦▴▴ ", - " ▦▴▴▴▦ ", - " ▴▴▴ ", - " ▴ ", - " ", - " " - ) - ); - }); - - it("225 degrees", () => { - imgSrc - .clone() - .rotate(225, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▴ ", - " ▴▴▴ ", - " ▦▴▴▴▦ ", - " ▴▴▦▴▦▴▴ ", - " ▴▴▴▴▦▴▴▴▴ ", - " ▴▴▦▪▦▴▴ ", - " ▦▪▪▪▦ ", - " ▪▪▪ ", - " ▪ ", - " ", - " " - ) - ); - }); - - it("315 degrees", () => { - imgSrc - .clone() - .rotate(315, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▴ ", - " ▴▴▴ ", - " ▦▴▴▴▦ ", - " ▴▴▦▴▦▪▪ ", - " ▴▴▴▴▦▪▪▪▪ ", - " ▴▴▦▴▦▪▪ ", - " ▦▴▴▴▦ ", - " ▴▴▴ ", - " ▴ ", - " ", - " " - ) - ); - }); -}); - -describe("Rotate a non-square image", () => { - let imgSrc = null; - before((done) => { - jimp - .read(mkJGD("▴▴▴▴▪▪▪▪", "▴▴▴▴▪▪▪▪", "▦▦▦▦▴▴▴▴", "▦▦▦▦▴▴▴▴")) - .then((imgJimp) => { - imgSrc = imgJimp; - done(); - }) - .catch(done); - }); - - it("1 degrees", () => { - imgSrc - .clone() - .rotate(1, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - "▴▴▴▴▪▪▪▪ ", - "▴▴▴▴▪▪▪▪ ", - "▦▦▦▦▴▴▴▴ ", - "▦▦▦▦▴▴▴▴ ", - " ", - " " - ) - ); - }); - - it("10 degrees", () => { - imgSrc - .clone() - .rotate(10, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ▪ ", - " ▴▴▴▪▪▪▪ ", - "▴▴▴▴▪▪▪▴ ", - "▴▴▦▦▴▴▴▴ ", - "▦▦▦▦▴▴▴ ", - "▦▦ ", - " ", - " " - ) - ); - }); - - it("30 degrees", () => { - imgSrc - .clone() - .rotate(30, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▪▪ ", - " ▪▪▪▪ ", - " ▴▴▪▪▴▴▴ ", - "▴▴▴▦▴▴▴ ", - "▴▴▦▦▴▴ ", - "▦▦▦▦ ", - " ▦ ", - " ", - " " - ) - ); - }); - - it("45 degrees", () => { - imgSrc - .clone() - .rotate(45, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▪▪ ", - " ▪▪▪▴ ", - " ▴▪▪▴▴▴ ", - " ▴▴▴▴▴▴ ", - "▴▴▴▦▦▴ ", - "▴▴▦▦▦ ", - " ▦▦▦ ", - " ▦ ", - " " - ) - ); - }); - - it("90 degrees", () => { - imgSrc - .clone() - .rotate(90, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - "▪▪▴▴ ", - "▪▪▴▴ ", - "▪▪▴▴ ", - "▪▪▴▴ ", - "▴▴▦▦ ", - "▴▴▦▦ ", - "▴▴▦▦ ", - "▴▴▦▦ ", - " " - ) - ); - }); - - it("135 degrees", () => { - imgSrc - .clone() - .rotate(135, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▴ ", - " ▴▴▴ ", - " ▪▪▴▴▴ ", - " ▪▪▪▴▦▦ ", - " ▪▪▴▦▦▦ ", - " ▴▴▴▦▦▦ ", - " ▴▴▴▦ ", - " ▴▴ ", - " " - ) - ); - }); - - it("180 degrees", () => { - imgSrc - .clone() - .rotate(180, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ", - " ▴▴▴▴▦▦▦▦ ", - " ▴▴▴▴▦▦▦▦ ", - " ▪▪▪▪▴▴▴▴ ", - " ▪▪▪▪▴▴▴▴ ", - " " - ) - ); - }); - - it("225 degrees", () => { - imgSrc - .clone() - .rotate(225, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ▦ ", - " ▦▦▦ ", - " ▦▦▦▴▴ ", - " ▴▦▦▴▴▴ ", - " ▴▴▴▴▴▴ ", - " ▴▴▴▪▪▴ ", - " ▴▪▪▪ ", - " ▪▪ ", - " ", - " " - ) - ); - }); - - it("315 degrees", () => { - imgSrc - .clone() - .rotate(315, true) - .getJGDSync() - .should.be.sameJGD( - mkJGD( - " ▴▴ ", - " ▦▴▴▴ ", - "▦▦▦▴▴▴ ", - " ▦▦▦▴▪▪ ", - " ▦▦▴▪▪▪ ", - " ▴▴▴▪▪ ", - " ▴▴▴ ", - " ▴ ", - " ", - " " - ) - ); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-scale/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-scale/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-scale/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-scale/LICENSE b/WechatBot/node_modules/@jimp/plugin-scale/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-scale/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-scale/README.md b/WechatBot/node_modules/@jimp/plugin-scale/README.md deleted file mode 100644 index 708a7771c..000000000 --- a/WechatBot/node_modules/@jimp/plugin-scale/README.md +++ /dev/null @@ -1,48 +0,0 @@ -
- -

@jimp/plugin-scale

-

Scale an image.

-
- -## scale - -Uniformly scales the image by a factor. - -- @param {number} f the factor to scale the image by -- @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.scale(2); - image.scale(2, jimp.RESIZE_BEZIER); -} - -main(); -``` - -## scaleToFit - -Scale the image to the largest size that fits inside the rectangle that has the given width and height. - -- @param {number} w the width to resize the image to -- @param {number} h the height to resize the image to -- @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.scaleToFit(100, 100); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-scale/dist/index.js b/WechatBot/node_modules/@jimp/plugin-scale/dist/index.js deleted file mode 100755 index a89343d3f..000000000 --- a/WechatBot/node_modules/@jimp/plugin-scale/dist/index.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -var _default = function _default() { - return { - /** - * Uniformly scales the image by a factor. - * @param {number} f the factor to scale the image by - * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - scale: function scale(f, mode, cb) { - if (typeof f !== "number") { - return _utils.throwError.call(this, "f must be a number", cb); - } - - if (f < 0) { - return _utils.throwError.call(this, "f must be a positive number", cb); - } - - if (typeof mode === "function" && typeof cb === "undefined") { - cb = mode; - mode = null; - } - - var w = this.bitmap.width * f; - var h = this.bitmap.height * f; - this.resize(w, h, mode); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Scale the image to the largest size that fits inside the rectangle that has the given width and height. - * @param {number} w the width to resize the image to - * @param {number} h the height to resize the image to - * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - scaleToFit: function scaleToFit(w, h, mode, cb) { - if (typeof w !== "number" || typeof h !== "number") { - return _utils.throwError.call(this, "w and h must be numbers", cb); - } - - if (typeof mode === "function" && typeof cb === "undefined") { - cb = mode; - mode = null; - } - - var f = w / h > this.bitmap.width / this.bitmap.height ? h / this.bitmap.height : w / this.bitmap.width; - this.scale(f, mode); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-scale/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-scale/dist/index.js.map deleted file mode 100644 index fe17665a9..000000000 --- a/WechatBot/node_modules/@jimp/plugin-scale/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["scale","f","mode","cb","throwError","call","w","bitmap","width","h","height","resize","scaleToFit"],"mappings":";;;;;;;AAAA;;eAEe;AAAA,SAAO;AACpB;;;;;;;AAOAA,IAAAA,KARoB,iBAQdC,CARc,EAQXC,IARW,EAQLC,EARK,EAQD;AACjB,UAAI,OAAOF,CAAP,KAAa,QAAjB,EAA2B;AACzB,eAAOG,kBAAWC,IAAX,CAAgB,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,MAAL,CAAYG,MADpB,GAEIJ,CAAC,GAAG,KAAKC,MAAL,CAAYC,KAHtB;AAIA,WAAKR,KAAL,CAAWC,CAAX,EAAcC,IAAd;;AAEA,UAAI,0BAAcC,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACE,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AA9DmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern, throwError } from \"@jimp/utils\";\n\nexport default () => ({\n /**\n * Uniformly scales the image by a factor.\n * @param {number} f the factor to scale the image by\n * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER)\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n scale(f, mode, cb) {\n if (typeof f !== \"number\") {\n return throwError.call(this, \"f must be a number\", cb);\n }\n\n if (f < 0) {\n return throwError.call(this, \"f must be a positive number\", cb);\n }\n\n if (typeof mode === \"function\" && typeof cb === \"undefined\") {\n cb = mode;\n mode = null;\n }\n\n const w = this.bitmap.width * f;\n const h = this.bitmap.height * f;\n this.resize(w, h, mode);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Scale the image to the largest size that fits inside the rectangle that has the given width and height.\n * @param {number} w the width to resize the image to\n * @param {number} h the height to resize the image to\n * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER)\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n scaleToFit(w, h, mode, cb) {\n if (typeof w !== \"number\" || typeof h !== \"number\") {\n return throwError.call(this, \"w and h must be numbers\", cb);\n }\n\n if (typeof mode === \"function\" && typeof cb === \"undefined\") {\n cb = mode;\n mode = null;\n }\n\n const f =\n w / h > this.bitmap.width / this.bitmap.height\n ? h / this.bitmap.height\n : w / this.bitmap.width;\n this.scale(f, mode);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-scale/index.d.ts b/WechatBot/node_modules/@jimp/plugin-scale/index.d.ts deleted file mode 100644 index 28c26ba28..000000000 --- a/WechatBot/node_modules/@jimp/plugin-scale/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Scale { - scale(f: number, cb?: ImageCallback): this; - scale(f: number, mode?: string, cb?: ImageCallback): this; - scaleToFit(w: number, h: number, cb?: ImageCallback): this; - scaleToFit( - w: number, - h: number, - mode?: string, - cb?: ImageCallback - ): this; -} - -export default function (): Scale; diff --git a/WechatBot/node_modules/@jimp/plugin-scale/package.json b/WechatBot/node_modules/@jimp/plugin-scale/package.json deleted file mode 100644 index 30eff760e..000000000 --- a/WechatBot/node_modules/@jimp/plugin-scale/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@jimp/plugin-scale", - "version": "0.16.13", - "description": "scale an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5", - "@jimp/plugin-resize": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-scale/src/index.js b/WechatBot/node_modules/@jimp/plugin-scale/src/index.js deleted file mode 100755 index f67ce2b39..000000000 --- a/WechatBot/node_modules/@jimp/plugin-scale/src/index.js +++ /dev/null @@ -1,66 +0,0 @@ -import { isNodePattern, throwError } from "@jimp/utils"; - -export default () => ({ - /** - * Uniformly scales the image by a factor. - * @param {number} f the factor to scale the image by - * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - scale(f, mode, cb) { - if (typeof f !== "number") { - return throwError.call(this, "f must be a number", cb); - } - - if (f < 0) { - return throwError.call(this, "f must be a positive number", cb); - } - - if (typeof mode === "function" && typeof cb === "undefined") { - cb = mode; - mode = null; - } - - const w = this.bitmap.width * f; - const h = this.bitmap.height * f; - this.resize(w, h, mode); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Scale the image to the largest size that fits inside the rectangle that has the given width and height. - * @param {number} w the width to resize the image to - * @param {number} h the height to resize the image to - * @param {string} mode (optional) a scaling method (e.g. Jimp.RESIZE_BEZIER) - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - scaleToFit(w, h, mode, cb) { - if (typeof w !== "number" || typeof h !== "number") { - return throwError.call(this, "w and h must be numbers", cb); - } - - if (typeof mode === "function" && typeof cb === "undefined") { - cb = mode; - mode = null; - } - - const f = - w / h > this.bitmap.width / this.bitmap.height - ? h / this.bitmap.height - : w / this.bitmap.width; - this.scale(f, mode); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-shadow/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-shadow/CHANGELOG.md deleted file mode 100644 index 57102be3b..000000000 --- a/WechatBot/node_modules/@jimp/plugin-shadow/CHANGELOG.md +++ /dev/null @@ -1,48 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.4 (Tue Mar 03 2020) - -#### 🐛 Bug Fix - -- `@jimp/plugin-shadow` - - Update plugin-shadow type definition. [#841](https://github.com/oliver-moran/jimp/pull/841) ([@lekoaf](https://github.com/lekoaf)) - -#### Authors: 1 - -- Martin ([@lekoaf](https://github.com/lekoaf)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-shadow/LICENSE b/WechatBot/node_modules/@jimp/plugin-shadow/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-shadow/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-shadow/README.md b/WechatBot/node_modules/@jimp/plugin-shadow/README.md deleted file mode 100644 index b068cd224..000000000 --- a/WechatBot/node_modules/@jimp/plugin-shadow/README.md +++ /dev/null @@ -1,30 +0,0 @@ -
- -

@jimp/plugin-shadow

-

Creates a shadow on an image.

-
- -## Usage - -- @param {function(Error, Jimp)} options (optional) - - opacity - opacity of the shadow between 0 and 1 - - size,- of the shadow - - blur - how blurry the shadow is - - x - x position of shadow - - y - y position of shadow -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.shadow(); - // or - image.shadow({ opacity: 0.8, size: 1.2, blur: 10, x: -75, y: -75 }); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-shadow/babel.config.js b/WechatBot/node_modules/@jimp/plugin-shadow/babel.config.js deleted file mode 100755 index 13e2603a3..000000000 --- a/WechatBot/node_modules/@jimp/plugin-shadow/babel.config.js +++ /dev/null @@ -1,38 +0,0 @@ -module.exports = (api) => { - api.cache(true); - - return { - presets: [ - [ - "@babel/env", - { - useBuiltIns: "usage", - }, - ], - ], - - plugins: [ - "@babel/proposal-class-properties", - "@babel/syntax-object-rest-spread", - process.env.BABEL_ENV !== "module" && "add-module-exports", - [ - "transform-inline-environment-variables", - { include: ["BABEL_ENV", "ENV"] }, - ], - ].filter(Boolean), - - env: { - test: { - plugins: ["istanbul"], - }, - development: { - plugins: [process.env.ENV !== "browser" && "source-map-support"].filter( - Boolean - ), - }, - module: { - presets: [["@babel/env", { modules: false }]], - }, - }, - }; -}; diff --git a/WechatBot/node_modules/@jimp/plugin-shadow/dist/index.js b/WechatBot/node_modules/@jimp/plugin-shadow/dist/index.js deleted file mode 100755 index 77a4cc116..000000000 --- a/WechatBot/node_modules/@jimp/plugin-shadow/dist/index.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Creates a circle out of an image. - * @param {function(Error, Jimp)} options (optional) - * opacity - opacity of the shadow between 0 and 1 - * size,- of the shadow - * blur - how blurry the shadow is - * x- x position of shadow - * y - y position of shadow - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -var _default = function _default() { - return { - shadow: function shadow() { - var _this = this; - - var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; - var cb = arguments.length > 1 ? arguments[1] : undefined; - - if (typeof options === "function") { - cb = options; - options = {}; - } - - var _options = options, - _options$opacity = _options.opacity, - opacity = _options$opacity === void 0 ? 0.7 : _options$opacity, - _options$size = _options.size, - size = _options$size === void 0 ? 1.1 : _options$size, - _options$x = _options.x, - x = _options$x === void 0 ? -25 : _options$x, - _options$y = _options.y, - y = _options$y === void 0 ? 25 : _options$y, - _options$blur = _options.blur, - blur = _options$blur === void 0 ? 5 : _options$blur; // clone the image - - var orig = this.clone(); - var shadow = this.clone(); // turn all it's pixels black - - shadow.scan(0, 0, shadow.bitmap.width, shadow.bitmap.height, function (x, y, idx) { - shadow.bitmap.data[idx] = 0x00; - shadow.bitmap.data[idx + 1] = 0x00; - shadow.bitmap.data[idx + 2] = 0x00; // up the opacity a little, - - shadow.bitmap.data[idx + 3] = shadow.constructor.limit255(shadow.bitmap.data[idx + 3] * opacity); - _this.bitmap.data[idx] = 0x00; - _this.bitmap.data[idx + 1] = 0x00; - _this.bitmap.data[idx + 2] = 0x00; - _this.bitmap.data[idx + 3] = 0x00; - }); // enlarge it. This creates a "shadow". - - shadow.resize(shadow.bitmap.width * size, shadow.bitmap.height * size).blur(blur); // Then blit the "shadow" onto the background and the image on top of that. - - this.composite(shadow, x, y); - this.composite(orig, 0, 0); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-shadow/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-shadow/dist/index.js.map deleted file mode 100644 index 9fd966120..000000000 --- a/WechatBot/node_modules/@jimp/plugin-shadow/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["shadow","options","cb","opacity","size","x","y","blur","orig","clone","scan","bitmap","width","height","idx","data","constructor","limit255","resize","composite","call"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;;;;;;eAWe;AAAA,SAAO;AACpBA,IAAAA,MADoB,oBACK;AAAA;;AAAA,UAAlBC,OAAkB,uEAAR,EAAQ;AAAA,UAAJC,EA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AAiBD,GAAjB,IAAwB,IAAxB;AACA,QAAA,KAAI,CAACH,MAAL,CAAYI,IAAZ,CAAiBD,GAAG,GAAG,CAAvB,IAA4B,IAA5B;AACA,QAAA,KAAI,CAACH,MAAL,CAAYI,IAAZ,CAAiBD,GAAG,GAAG,CAAvB,IAA4B,IAA5B;AACA,QAAA,KAAI,CAACH,MAAL,CAAYI,IAAZ,CAAiBD,GAAG,GAAG,CAAvB,IAA4B,IAA5B;AACD,OAlBH,EAbuB,CAkCvB;;AACAd,MAAAA,MAAM,CACHkB,MADH,CACUlB,MAAM,CAACW,MAAP,CAAcC,KAAd,GAAsBR,IADhC,EACsCJ,MAAM,CAACW,MAAP,CAAcE,MAAd,GAAuBT,IAD7D,EAEGG,IAFH,CAEQA,IAFR,EAnCuB,CAuCvB;;AACA,WAAKY,SAAL,CAAenB,MAAf,EAAuBK,CAAvB,EAA0BC,CAA1B;AACA,WAAKa,SAAL,CAAeX,IAAf,EAAqB,CAArB,EAAwB,CAAxB;;AAEA,UAAI,0BAAcN,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACkB,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AAjDmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern } from \"@jimp/utils\";\n\n/**\n * Creates a circle out of an image.\n * @param {function(Error, Jimp)} options (optional)\n * opacity - opacity of the shadow between 0 and 1\n * size,- of the shadow\n * blur - how blurry the shadow is\n * x- x position of shadow\n * y - y position of shadow\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\nexport default () => ({\n shadow(options = {}, cb) {\n if (typeof options === \"function\") {\n cb = options;\n options = {};\n }\n\n const { opacity = 0.7, size = 1.1, x = -25, y = 25, blur = 5 } = options;\n\n // clone the image\n const orig = this.clone();\n const shadow = this.clone();\n\n // turn all it's pixels black\n shadow.scan(\n 0,\n 0,\n shadow.bitmap.width,\n shadow.bitmap.height,\n (x, y, idx) => {\n shadow.bitmap.data[idx] = 0x00;\n shadow.bitmap.data[idx + 1] = 0x00;\n shadow.bitmap.data[idx + 2] = 0x00;\n // up the opacity a little,\n shadow.bitmap.data[idx + 3] = shadow.constructor.limit255(\n shadow.bitmap.data[idx + 3] * opacity\n );\n\n this.bitmap.data[idx] = 0x00;\n this.bitmap.data[idx + 1] = 0x00;\n this.bitmap.data[idx + 2] = 0x00;\n this.bitmap.data[idx + 3] = 0x00;\n }\n );\n\n // enlarge it. This creates a \"shadow\".\n shadow\n .resize(shadow.bitmap.width * size, shadow.bitmap.height * size)\n .blur(blur);\n\n // Then blit the \"shadow\" onto the background and the image on top of that.\n this.composite(shadow, x, y);\n this.composite(orig, 0, 0);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-shadow/index.d.ts b/WechatBot/node_modules/@jimp/plugin-shadow/index.d.ts deleted file mode 100644 index 4e3c4841b..000000000 --- a/WechatBot/node_modules/@jimp/plugin-shadow/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Shadow { - shadow( - options?: { - size?: number; - opacity?: number; - blur: number; - x?: number; - y?: number; - }, - cb?: ImageCallback - ): this; - shadow(cb?: ImageCallback): this; -} - -export default function (): Shadow; diff --git a/WechatBot/node_modules/@jimp/plugin-shadow/package.json b/WechatBot/node_modules/@jimp/plugin-shadow/package.json deleted file mode 100644 index a8e3ebbbc..000000000 --- a/WechatBot/node_modules/@jimp/plugin-shadow/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "@jimp/plugin-shadow", - "version": "0.16.13", - "description": "Creates a shadow on an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5", - "@jimp/plugin-blur": ">=0.3.5", - "@jimp/plugin-resize": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/plugin-blur": "^0.16.13", - "@jimp/plugin-resize": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-shadow/src/index.js b/WechatBot/node_modules/@jimp/plugin-shadow/src/index.js deleted file mode 100755 index 81c23c41a..000000000 --- a/WechatBot/node_modules/@jimp/plugin-shadow/src/index.js +++ /dev/null @@ -1,64 +0,0 @@ -import { isNodePattern } from "@jimp/utils"; - -/** - * Creates a circle out of an image. - * @param {function(Error, Jimp)} options (optional) - * opacity - opacity of the shadow between 0 and 1 - * size,- of the shadow - * blur - how blurry the shadow is - * x- x position of shadow - * y - y position of shadow - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ -export default () => ({ - shadow(options = {}, cb) { - if (typeof options === "function") { - cb = options; - options = {}; - } - - const { opacity = 0.7, size = 1.1, x = -25, y = 25, blur = 5 } = options; - - // clone the image - const orig = this.clone(); - const shadow = this.clone(); - - // turn all it's pixels black - shadow.scan( - 0, - 0, - shadow.bitmap.width, - shadow.bitmap.height, - (x, y, idx) => { - shadow.bitmap.data[idx] = 0x00; - shadow.bitmap.data[idx + 1] = 0x00; - shadow.bitmap.data[idx + 2] = 0x00; - // up the opacity a little, - shadow.bitmap.data[idx + 3] = shadow.constructor.limit255( - shadow.bitmap.data[idx + 3] * opacity - ); - - this.bitmap.data[idx] = 0x00; - this.bitmap.data[idx + 1] = 0x00; - this.bitmap.data[idx + 2] = 0x00; - this.bitmap.data[idx + 3] = 0x00; - } - ); - - // enlarge it. This creates a "shadow". - shadow - .resize(shadow.bitmap.width * size, shadow.bitmap.height * size) - .blur(blur); - - // Then blit the "shadow" onto the background and the image on top of that. - this.composite(shadow, x, y); - this.composite(orig, 0, 0); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-shadow/test/images/shadow.png b/WechatBot/node_modules/@jimp/plugin-shadow/test/images/shadow.png deleted file mode 100644 index 5564dbb38..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-shadow/test/images/shadow.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-shadow/test/shadow.test.js b/WechatBot/node_modules/@jimp/plugin-shadow/test/shadow.test.js deleted file mode 100755 index 7f2e4dc9d..000000000 --- a/WechatBot/node_modules/@jimp/plugin-shadow/test/shadow.test.js +++ /dev/null @@ -1,31 +0,0 @@ -import { Jimp, mkJGD, getTestDir } from "@jimp/test-utils"; -import configure from "@jimp/custom"; -import resize from "@jimp/plugin-resize"; -import blur from "@jimp/plugin-blur"; - -import shadow from "../src"; - -const jimp = configure({ plugins: [shadow, resize, blur] }, Jimp); - -describe("Shadow", () => { - it("creates a shadow", async () => { - const expectedImg = await jimp.read( - getTestDir(__dirname) + "/images/shadow.png" - ); - const testImage = await jimp.read( - mkJGD( - " ", - " ◆◆ ", - " ◆▦▦◆ ", - " ◆▦▦▦▦◆ ", - " ◆▦▦◆ ", - " ◆◆ ", - " " - ) - ); - - testImage - .shadow({ x: -1, y: 1, blur: 1 }) - .bitmap.data.should.be.deepEqual(expectedImg.bitmap.data); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugin-threshold/CHANGELOG.md deleted file mode 100644 index 8ad0c7836..000000000 --- a/WechatBot/node_modules/@jimp/plugin-threshold/CHANGELOG.md +++ /dev/null @@ -1,47 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.7 (Fri Mar 27 2020) - -#### 🐛 Bug Fix - -- Relax version range of plugin-threshold peerDependencies [#859](https://github.com/oliver-moran/jimp/pull/859) ([@pasieronen](https://github.com/pasieronen)) - -#### Authors: 1 - -- Pasi Eronen ([@pasieronen](https://github.com/pasieronen)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/LICENSE b/WechatBot/node_modules/@jimp/plugin-threshold/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugin-threshold/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/README.md b/WechatBot/node_modules/@jimp/plugin-threshold/README.md deleted file mode 100644 index 57271c3b2..000000000 --- a/WechatBot/node_modules/@jimp/plugin-threshold/README.md +++ /dev/null @@ -1,30 +0,0 @@ -
- -

@jimp/plugin-threshold

-

Lightens an image.

-
- -This is useful as a simplified method for processing scanned drawings, signatures, etc - -## Usage - -- @param {number} options object - - max: A number auto limited between 0 - 255 - - replace: (optional) A number auto limited between 0 - 255 (default 255) - - autoGreyscale: (optional) A boolean whether to apply greyscale beforehand (default true) -- @param {function(Error, Jimp)} cb (optional) a callback for when complete - -```js -import jimp from "jimp"; - -async function main() { - const image = await jimp.read("test/image.png"); - - image.threshold({ max: 150 }); - // or - image.threshold({ max: 200, replace: 200, autoGreyscale: false }); -} - -main(); -``` diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/babel.config.js b/WechatBot/node_modules/@jimp/plugin-threshold/babel.config.js deleted file mode 100755 index 13e2603a3..000000000 --- a/WechatBot/node_modules/@jimp/plugin-threshold/babel.config.js +++ /dev/null @@ -1,38 +0,0 @@ -module.exports = (api) => { - api.cache(true); - - return { - presets: [ - [ - "@babel/env", - { - useBuiltIns: "usage", - }, - ], - ], - - plugins: [ - "@babel/proposal-class-properties", - "@babel/syntax-object-rest-spread", - process.env.BABEL_ENV !== "module" && "add-module-exports", - [ - "transform-inline-environment-variables", - { include: ["BABEL_ENV", "ENV"] }, - ], - ].filter(Boolean), - - env: { - test: { - plugins: ["istanbul"], - }, - development: { - plugins: [process.env.ENV !== "browser" && "source-map-support"].filter( - Boolean - ), - }, - module: { - presets: [["@babel/env", { modules: false }]], - }, - }, - }; -}; diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/dist/index.js b/WechatBot/node_modules/@jimp/plugin-threshold/dist/index.js deleted file mode 100755 index 398bd57e6..000000000 --- a/WechatBot/node_modules/@jimp/plugin-threshold/dist/index.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _utils = require("@jimp/utils"); - -/** - * Applies a minimum color threshold to a greyscale image. Converts image to greyscale by default - * @param {number} options object - * max: A number auto limited between 0 - 255 - * replace: (optional) A number auto limited between 0 - 255 (default 255) - * autoGreyscale: (optional) A boolean whether to apply greyscale beforehand (default true) - * @param {number} cb (optional) a callback for when complete - * @return {this} this for chaining of methods - */ -var _default = function _default() { - return { - threshold: function threshold(_ref, cb) { - var _this = this; - - var max = _ref.max, - _ref$replace = _ref.replace, - replace = _ref$replace === void 0 ? 255 : _ref$replace, - _ref$autoGreyscale = _ref.autoGreyscale, - autoGreyscale = _ref$autoGreyscale === void 0 ? true : _ref$autoGreyscale; - - if (typeof max !== "number") { - return _utils.throwError.call(this, "max must be a number", cb); - } - - if (typeof replace !== "number") { - return _utils.throwError.call(this, "replace must be a number", cb); - } - - if (typeof autoGreyscale !== "boolean") { - return _utils.throwError.call(this, "autoGreyscale must be a boolean", cb); - } - - max = this.constructor.limit255(max); - replace = this.constructor.limit255(replace); - - if (autoGreyscale) { - this.greyscale(); - } - - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, function (x, y, idx) { - var grey = _this.bitmap.data[idx] < max ? _this.bitmap.data[idx] : replace; - _this.bitmap.data[idx] = grey; - _this.bitmap.data[idx + 1] = grey; - _this.bitmap.data[idx + 2] = grey; - }); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/dist/index.js.map b/WechatBot/node_modules/@jimp/plugin-threshold/dist/index.js.map deleted file mode 100644 index 0fe673558..000000000 --- a/WechatBot/node_modules/@jimp/plugin-threshold/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["threshold","cb","max","replace","autoGreyscale","throwError","call","constructor","limit255","greyscale","scanQuiet","bitmap","width","height","x","y","idx","grey","data"],"mappings":";;;;;;;AAAA;;AAEA;;;;;;;;;eASe;AAAA,SAAO;AACpBA,IAAAA,SADoB,2BACoCC,EADpC,EACwC;AAAA;;AAAA,UAAhDC,GA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IAA5B;AACA,QAAA,KAAI,CAACN,MAAL,CAAYO,IAAZ,CAAiBF,GAAG,GAAG,CAAvB,IAA4BC,IAA5B;AACD,OAPD;;AASA,UAAI,0BAAchB,EAAd,CAAJ,EAAuB;AACrBA,QAAAA,EAAE,CAACK,IAAH,CAAQ,IAAR,EAAc,IAAd,EAAoB,IAApB;AACD;;AAED,aAAO,IAAP;AACD;AAnCmB,GAAP;AAAA,C","sourcesContent":["import { isNodePattern, throwError } from \"@jimp/utils\";\n\n/**\n * Applies a minimum color threshold to a greyscale image. Converts image to greyscale by default\n * @param {number} options object\n * max: A number auto limited between 0 - 255\n * replace: (optional) A number auto limited between 0 - 255 (default 255)\n * autoGreyscale: (optional) A boolean whether to apply greyscale beforehand (default true)\n * @param {number} cb (optional) a callback for when complete\n * @return {this} this for chaining of methods\n */\nexport default () => ({\n threshold({ max, replace = 255, autoGreyscale = true }, cb) {\n if (typeof max !== \"number\") {\n return throwError.call(this, \"max must be a number\", cb);\n }\n\n if (typeof replace !== \"number\") {\n return throwError.call(this, \"replace must be a number\", cb);\n }\n\n if (typeof autoGreyscale !== \"boolean\") {\n return throwError.call(this, \"autoGreyscale must be a boolean\", cb);\n }\n\n max = this.constructor.limit255(max);\n replace = this.constructor.limit255(replace);\n\n if (autoGreyscale) {\n this.greyscale();\n }\n\n this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, (x, y, idx) => {\n const grey =\n this.bitmap.data[idx] < max ? this.bitmap.data[idx] : replace;\n\n this.bitmap.data[idx] = grey;\n this.bitmap.data[idx + 1] = grey;\n this.bitmap.data[idx + 2] = grey;\n });\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/index.d.ts b/WechatBot/node_modules/@jimp/plugin-threshold/index.d.ts deleted file mode 100644 index 96ad193f4..000000000 --- a/WechatBot/node_modules/@jimp/plugin-threshold/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { ImageCallback } from "@jimp/core"; - -interface Threshold { - threshold( - opts: { - max: number; - replace?: number; - autoGreyscale?: boolean; - }, - cb?: ImageCallback - ): this; -} - -export default function (): Threshold; diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/package.json b/WechatBot/node_modules/@jimp/plugin-threshold/package.json deleted file mode 100644 index 6a4d57bf6..000000000 --- a/WechatBot/node_modules/@jimp/plugin-threshold/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "@jimp/plugin-threshold", - "version": "0.16.13", - "description": "Lightens an image.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5", - "@jimp/plugin-color": ">=0.8.0", - "@jimp/plugin-resize": ">=0.8.0" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/jpeg": "^0.16.13", - "@jimp/plugin-color": "^0.16.13", - "@jimp/plugin-resize": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/src/index.js b/WechatBot/node_modules/@jimp/plugin-threshold/src/index.js deleted file mode 100755 index fad06bacf..000000000 --- a/WechatBot/node_modules/@jimp/plugin-threshold/src/index.js +++ /dev/null @@ -1,48 +0,0 @@ -import { isNodePattern, throwError } from "@jimp/utils"; - -/** - * Applies a minimum color threshold to a greyscale image. Converts image to greyscale by default - * @param {number} options object - * max: A number auto limited between 0 - 255 - * replace: (optional) A number auto limited between 0 - 255 (default 255) - * autoGreyscale: (optional) A boolean whether to apply greyscale beforehand (default true) - * @param {number} cb (optional) a callback for when complete - * @return {this} this for chaining of methods - */ -export default () => ({ - threshold({ max, replace = 255, autoGreyscale = true }, cb) { - if (typeof max !== "number") { - return throwError.call(this, "max must be a number", cb); - } - - if (typeof replace !== "number") { - return throwError.call(this, "replace must be a number", cb); - } - - if (typeof autoGreyscale !== "boolean") { - return throwError.call(this, "autoGreyscale must be a boolean", cb); - } - - max = this.constructor.limit255(max); - replace = this.constructor.limit255(replace); - - if (autoGreyscale) { - this.greyscale(); - } - - this.scanQuiet(0, 0, this.bitmap.width, this.bitmap.height, (x, y, idx) => { - const grey = - this.bitmap.data[idx] < max ? this.bitmap.data[idx] : replace; - - this.bitmap.data[idx] = grey; - this.bitmap.data[idx + 1] = grey; - this.bitmap.data[idx + 2] = grey; - }); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, -}); diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/test/images/hands.jpg b/WechatBot/node_modules/@jimp/plugin-threshold/test/images/hands.jpg deleted file mode 100644 index c3a874ed0..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-threshold/test/images/hands.jpg and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/test/images/hands_mx200_rp255.jpg b/WechatBot/node_modules/@jimp/plugin-threshold/test/images/hands_mx200_rp255.jpg deleted file mode 100644 index b0b851133..000000000 Binary files a/WechatBot/node_modules/@jimp/plugin-threshold/test/images/hands_mx200_rp255.jpg and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/plugin-threshold/test/threshold.test.js b/WechatBot/node_modules/@jimp/plugin-threshold/test/threshold.test.js deleted file mode 100755 index 325f83136..000000000 --- a/WechatBot/node_modules/@jimp/plugin-threshold/test/threshold.test.js +++ /dev/null @@ -1,30 +0,0 @@ -import { Jimp, getTestDir } from "@jimp/test-utils"; -import configure from "@jimp/custom"; -import jpeg from "@jimp/jpeg"; -import color from "@jimp/plugin-color"; -import resize from "@jimp/plugin-resize"; - -import threshold from "../src"; - -const jimp = configure( - { types: [jpeg], plugins: [threshold, color, resize] }, - Jimp -); - -describe("Threshold", function () { - this.timeout(15000); - - it("defines default threshold for lighter backgrounds", async () => { - const expectedImage = await jimp.read( - getTestDir(__dirname) + "/images/hands_mx200_rp255.jpg" - ); - const testImage = await jimp.read( - getTestDir(__dirname) + "/images/hands.jpg" - ); - - testImage - .threshold({ max: 200, replace: 255 }) - .hash() - .should.be.equal(expectedImage.hash()); - }); -}); diff --git a/WechatBot/node_modules/@jimp/plugins/CHANGELOG.md b/WechatBot/node_modules/@jimp/plugins/CHANGELOG.md deleted file mode 100644 index dbaa66e5d..000000000 --- a/WechatBot/node_modules/@jimp/plugins/CHANGELOG.md +++ /dev/null @@ -1,59 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.8 (Sat Mar 28 2020) - -#### 🐛 Bug Fix - -- Export the four missing plugins from plugin package [#866](https://github.com/oliver-moran/jimp/pull/866) ([@crutchcorn](https://github.com/crutchcorn)) - -#### Authors: 1 - -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) - ---- - -# v0.9.7 (Fri Mar 27 2020) - -#### 🐛 Bug Fix - -- Added missing plugins to the types [#863](https://github.com/oliver-moran/jimp/pull/863) ([@crutchcorn](https://github.com/crutchcorn)) - -#### Authors: 1 - -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/plugins/LICENSE b/WechatBot/node_modules/@jimp/plugins/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/plugins/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/plugins/README.md b/WechatBot/node_modules/@jimp/plugins/README.md deleted file mode 100644 index 11defb95c..000000000 --- a/WechatBot/node_modules/@jimp/plugins/README.md +++ /dev/null @@ -1,25 +0,0 @@ -
- -

@jimp/plugins

-

Default Jimp plugins.

-
- -## Included Plugins - -- [blit](../plugin-blit) -- [blur](../plugin-blur) -- [color](../plugin-color) -- [contain](../plugin-contain) -- [cover](../plugin-cover) -- [displace](../plugin-displace) -- [dither](../plugin-dither) -- [flip](../plugin-flip) -- [gaussian](../plugin-gaussian) -- [invert](../plugin-invert) -- [mask](../plugin-mask) -- [normalize](../plugin-normalize) -- [print](../plugin-print) -- [resize](../plugin-resize) -- [rotate](../plugin-rotate) -- [scale](../plugin-scale) diff --git a/WechatBot/node_modules/@jimp/plugins/dist/index.js b/WechatBot/node_modules/@jimp/plugins/dist/index.js deleted file mode 100755 index 9c98b5a41..000000000 --- a/WechatBot/node_modules/@jimp/plugins/dist/index.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray")); - -var _timm = require("timm"); - -var _pluginBlit = _interopRequireDefault(require("@jimp/plugin-blit")); - -var _pluginBlur = _interopRequireDefault(require("@jimp/plugin-blur")); - -var _pluginCircle = _interopRequireDefault(require("@jimp/plugin-circle")); - -var _pluginColor = _interopRequireDefault(require("@jimp/plugin-color")); - -var _pluginContain = _interopRequireDefault(require("@jimp/plugin-contain")); - -var _pluginCover = _interopRequireDefault(require("@jimp/plugin-cover")); - -var _pluginCrop = _interopRequireDefault(require("@jimp/plugin-crop")); - -var _pluginDisplace = _interopRequireDefault(require("@jimp/plugin-displace")); - -var _pluginDither = _interopRequireDefault(require("@jimp/plugin-dither")); - -var _pluginFisheye = _interopRequireDefault(require("@jimp/plugin-fisheye")); - -var _pluginFlip = _interopRequireDefault(require("@jimp/plugin-flip")); - -var _pluginGaussian = _interopRequireDefault(require("@jimp/plugin-gaussian")); - -var _pluginInvert = _interopRequireDefault(require("@jimp/plugin-invert")); - -var _pluginMask = _interopRequireDefault(require("@jimp/plugin-mask")); - -var _pluginNormalize = _interopRequireDefault(require("@jimp/plugin-normalize")); - -var _pluginPrint = _interopRequireDefault(require("@jimp/plugin-print")); - -var _pluginResize = _interopRequireDefault(require("@jimp/plugin-resize")); - -var _pluginRotate = _interopRequireDefault(require("@jimp/plugin-rotate")); - -var _pluginScale = _interopRequireDefault(require("@jimp/plugin-scale")); - -var _pluginShadow = _interopRequireDefault(require("@jimp/plugin-shadow")); - -var _pluginThreshold = _interopRequireDefault(require("@jimp/plugin-threshold")); - -var plugins = [_pluginBlit["default"], _pluginBlur["default"], _pluginCircle["default"], _pluginColor["default"], _pluginContain["default"], _pluginCover["default"], _pluginCrop["default"], _pluginDisplace["default"], _pluginDither["default"], _pluginFisheye["default"], _pluginFlip["default"], _pluginGaussian["default"], _pluginInvert["default"], _pluginMask["default"], _pluginNormalize["default"], _pluginPrint["default"], _pluginResize["default"], _pluginRotate["default"], _pluginScale["default"], _pluginShadow["default"], _pluginThreshold["default"]]; - -var _default = function _default(jimpEvChange) { - var initializedPlugins = plugins.map(function (pluginModule) { - var plugin = pluginModule(jimpEvChange) || {}; - - if (!plugin["class"] && !plugin.constants) { - // Default to class function - plugin = { - "class": plugin - }; - } - - return plugin; - }); - return _timm.mergeDeep.apply(void 0, (0, _toConsumableArray2["default"])(initializedPlugins)); -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugins/dist/index.js.map b/WechatBot/node_modules/@jimp/plugins/dist/index.js.map deleted file mode 100644 index 7abc2a381..000000000 --- a/WechatBot/node_modules/@jimp/plugins/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["plugins","blit","blur","circle","color","contain","cover","crop","displace","dither","fisheye","flip","gaussian","invert","mask","normalize","print","resize","rotate","scale","shadow","threshold","jimpEvChange","initializedPlugins","map","pluginModule","plugin","constants","mergeDeep"],"mappings":";;;;;;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA,IAAMA,OAAO,GAAG,CACdC,sBADc,EAEdC,sBAFc,EAGdC,wBAHc,EAIdC,uBAJc,EAKdC,yBALc,EAMdC,uBANc,EAOdC,sBAPc,EAQdC,0BARc,EASdC,wBATc,EAUdC,yBAVc,EAWdC,sBAXc,EAYdC,0BAZc,EAadC,wBAbc,EAcdC,sBAdc,EAedC,2BAfc,EAgBdC,uBAhBc,EAiBdC,wBAjBc,EAkBdC,wBAlBc,EAmBdC,uBAnBc,EAoBdC,wBApBc,EAqBdC,2BArBc,CAAhB;;eAwBe,kBAACC,YAAD,EAAkB;AAC/B,MAAMC,kBAAkB,GAAGvB,OAAO,CAACwB,GAAR,CAAY,UAACC,YAAD,EAAkB;AACvD,QAAIC,MAAM,GAAGD,YAAY,CAACH,YAAD,CAAZ,IAA8B,EAA3C;;AAEA,QAAI,CAACI,MAAM,SAAP,IAAiB,CAACA,MAAM,CAACC,SAA7B,EAAwC;AACtC;AACAD,MAAAA,MAAM,GAAG;AAAE,iBAAOA;AAAT,OAAT;AACD;;AAED,WAAOA,MAAP;AACD,GAT0B,CAA3B;AAWA,SAAOE,kEAAaL,kBAAb,EAAP;AACD,C","sourcesContent":["import { mergeDeep } from \"timm\";\n\nimport blit from \"@jimp/plugin-blit\";\nimport blur from \"@jimp/plugin-blur\";\nimport circle from \"@jimp/plugin-circle\";\nimport color from \"@jimp/plugin-color\";\nimport contain from \"@jimp/plugin-contain\";\nimport cover from \"@jimp/plugin-cover\";\nimport crop from \"@jimp/plugin-crop\";\nimport displace from \"@jimp/plugin-displace\";\nimport dither from \"@jimp/plugin-dither\";\nimport fisheye from \"@jimp/plugin-fisheye\";\nimport flip from \"@jimp/plugin-flip\";\nimport gaussian from \"@jimp/plugin-gaussian\";\nimport invert from \"@jimp/plugin-invert\";\nimport mask from \"@jimp/plugin-mask\";\nimport normalize from \"@jimp/plugin-normalize\";\nimport print from \"@jimp/plugin-print\";\nimport resize from \"@jimp/plugin-resize\";\nimport rotate from \"@jimp/plugin-rotate\";\nimport scale from \"@jimp/plugin-scale\";\nimport shadow from \"@jimp/plugin-shadow\";\nimport threshold from \"@jimp/plugin-threshold\";\n\nconst plugins = [\n blit,\n blur,\n circle,\n color,\n contain,\n cover,\n crop,\n displace,\n dither,\n fisheye,\n flip,\n gaussian,\n invert,\n mask,\n normalize,\n print,\n resize,\n rotate,\n scale,\n shadow,\n threshold,\n];\n\nexport default (jimpEvChange) => {\n const initializedPlugins = plugins.map((pluginModule) => {\n let plugin = pluginModule(jimpEvChange) || {};\n\n if (!plugin.class && !plugin.constants) {\n // Default to class function\n plugin = { class: plugin };\n }\n\n return plugin;\n });\n\n return mergeDeep(...initializedPlugins);\n};\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/plugins/index.d.ts b/WechatBot/node_modules/@jimp/plugins/index.d.ts deleted file mode 100644 index 0184bbcce..000000000 --- a/WechatBot/node_modules/@jimp/plugins/index.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -import blit from "@jimp/plugin-blit"; -import blur from "@jimp/plugin-blur"; -import circle from "@jimp/plugin-circle"; -import color from "@jimp/plugin-color"; -import contain from "@jimp/plugin-contain"; -import cover from "@jimp/plugin-cover"; -import crop from "@jimp/plugin-crop"; -import displace from "@jimp/plugin-displace"; -import dither from "@jimp/plugin-dither"; -import fisheye from "@jimp/plugin-fisheye"; -import flip from "@jimp/plugin-flip"; -import gaussian from "@jimp/plugin-gaussian"; -import invert from "@jimp/plugin-invert"; -import mask from "@jimp/plugin-mask"; -import normalize from "@jimp/plugin-normalize"; -import print from "@jimp/plugin-print"; -import resize from "@jimp/plugin-resize"; -import rotate from "@jimp/plugin-rotate"; -import scale from "@jimp/plugin-scale"; -import shadow from "@jimp/plugin-shadow"; -import threshold from "@jimp/plugin-threshold"; - -type BlitRet = ReturnType; -type BlurRet = ReturnType; -type CircleRet = ReturnType; -type ColorRet = ReturnType; -type ContainRet = ReturnType; -type CoverRet = ReturnType; -type CropRet = ReturnType; -type DisplaceRet = ReturnType; -type DitherRet = ReturnType; -type FlipRet = ReturnType; -type FisheyeRet = ReturnType; -type GaussianRet = ReturnType; -type InvertRet = ReturnType; -type MaskRet = ReturnType; -type NormalizeRet = ReturnType; -type PrintRet = ReturnType; -type ResizeRet = ReturnType; -type RotateRet = ReturnType; -type ScaleRet = ReturnType; -type ShadowRet = ReturnType; -type ThresholdRet = ReturnType; - -/** - * This is made union and not intersection to avoid issues with - * `IllformedPlugin` and `WellFormedPlugin` when using typings with Jimp - * generic - * - * In reality, this should be an intersection but our type data isn't - * clever enough to figure out what's a class and what's not/etc - */ -type Plugins = - | BlitRet - | BlurRet - | CircleRet - | ColorRet - | ContainRet - | CoverRet - | CropRet - | DisplaceRet - | DitherRet - | FlipRet - | FisheyeRet - | GaussianRet - | InvertRet - | MaskRet - | NormalizeRet - | PrintRet - | ResizeRet - | RotateRet - | ScaleRet - | ShadowRet - | ThresholdRet; - -export default function (): Plugins; diff --git a/WechatBot/node_modules/@jimp/plugins/package.json b/WechatBot/node_modules/@jimp/plugins/package.json deleted file mode 100644 index 6f3bcc225..000000000 --- a/WechatBot/node_modules/@jimp/plugins/package.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "name": "@jimp/plugins", - "version": "0.16.13", - "description": "Default Jimp plugin.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/plugin-blit": "^0.16.13", - "@jimp/plugin-blur": "^0.16.13", - "@jimp/plugin-circle": "^0.16.13", - "@jimp/plugin-color": "^0.16.13", - "@jimp/plugin-contain": "^0.16.13", - "@jimp/plugin-cover": "^0.16.13", - "@jimp/plugin-crop": "^0.16.13", - "@jimp/plugin-displace": "^0.16.13", - "@jimp/plugin-dither": "^0.16.13", - "@jimp/plugin-fisheye": "^0.16.13", - "@jimp/plugin-flip": "^0.16.13", - "@jimp/plugin-gaussian": "^0.16.13", - "@jimp/plugin-invert": "^0.16.13", - "@jimp/plugin-mask": "^0.16.13", - "@jimp/plugin-normalize": "^0.16.13", - "@jimp/plugin-print": "^0.16.13", - "@jimp/plugin-resize": "^0.16.13", - "@jimp/plugin-rotate": "^0.16.13", - "@jimp/plugin-scale": "^0.16.13", - "@jimp/plugin-shadow": "^0.16.13", - "@jimp/plugin-threshold": "^0.16.13", - "timm": "^1.6.1" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/plugins/src/index.js b/WechatBot/node_modules/@jimp/plugins/src/index.js deleted file mode 100755 index a31740cfc..000000000 --- a/WechatBot/node_modules/@jimp/plugins/src/index.js +++ /dev/null @@ -1,62 +0,0 @@ -import { mergeDeep } from "timm"; - -import blit from "@jimp/plugin-blit"; -import blur from "@jimp/plugin-blur"; -import circle from "@jimp/plugin-circle"; -import color from "@jimp/plugin-color"; -import contain from "@jimp/plugin-contain"; -import cover from "@jimp/plugin-cover"; -import crop from "@jimp/plugin-crop"; -import displace from "@jimp/plugin-displace"; -import dither from "@jimp/plugin-dither"; -import fisheye from "@jimp/plugin-fisheye"; -import flip from "@jimp/plugin-flip"; -import gaussian from "@jimp/plugin-gaussian"; -import invert from "@jimp/plugin-invert"; -import mask from "@jimp/plugin-mask"; -import normalize from "@jimp/plugin-normalize"; -import print from "@jimp/plugin-print"; -import resize from "@jimp/plugin-resize"; -import rotate from "@jimp/plugin-rotate"; -import scale from "@jimp/plugin-scale"; -import shadow from "@jimp/plugin-shadow"; -import threshold from "@jimp/plugin-threshold"; - -const plugins = [ - blit, - blur, - circle, - color, - contain, - cover, - crop, - displace, - dither, - fisheye, - flip, - gaussian, - invert, - mask, - normalize, - print, - resize, - rotate, - scale, - shadow, - threshold, -]; - -export default (jimpEvChange) => { - const initializedPlugins = plugins.map((pluginModule) => { - let plugin = pluginModule(jimpEvChange) || {}; - - if (!plugin.class && !plugin.constants) { - // Default to class function - plugin = { class: plugin }; - } - - return plugin; - }); - - return mergeDeep(...initializedPlugins); -}; diff --git a/WechatBot/node_modules/@jimp/png/CHANGELOG.md b/WechatBot/node_modules/@jimp/png/CHANGELOG.md deleted file mode 100644 index cf26b5c36..000000000 --- a/WechatBot/node_modules/@jimp/png/CHANGELOG.md +++ /dev/null @@ -1,36 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- update linting ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/png/LICENSE b/WechatBot/node_modules/@jimp/png/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/png/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/png/README.md b/WechatBot/node_modules/@jimp/png/README.md deleted file mode 100644 index da13e4828..000000000 --- a/WechatBot/node_modules/@jimp/png/README.md +++ /dev/null @@ -1,35 +0,0 @@ -
- -

@jimp/png

-

Default Jimp png encoder/decoder.

-
- -## Available Methods - -### Jimp.deflateLevel - -Sets the deflate level used when saving as PNG format (default is 9) - -### Jimp.deflateStrategy - -Sets the deflate strategy used when saving as PNG format (default is 3) - -### Jimp.filterType - -Sets the filter type used when saving as PNG format (default is automatic filters) - -### Jimp.colorType - -Sets the color type used when saving as PNG format (one of 0, 2, 4, 6) - -### Filter Types - -```js -Jimp.PNG_FILTER_AUTO; -Jimp.PNG_FILTER_NONE; -Jimp.PNG_FILTER_SUB; -Jimp.PNG_FILTER_UP; -Jimp.PNG_FILTER_AVERAGE; -Jimp.PNG_FILTER_PATH; -``` diff --git a/WechatBot/node_modules/@jimp/png/dist/index.js b/WechatBot/node_modules/@jimp/png/dist/index.js deleted file mode 100755 index 0c1a688e3..000000000 --- a/WechatBot/node_modules/@jimp/png/dist/index.js +++ /dev/null @@ -1,162 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); - -var _pngjs = require("pngjs"); - -var _utils = require("@jimp/utils"); - -var MIME_TYPE = "image/png"; // PNG filter types - -var PNG_FILTER_AUTO = -1; -var PNG_FILTER_NONE = 0; -var PNG_FILTER_SUB = 1; -var PNG_FILTER_UP = 2; -var PNG_FILTER_AVERAGE = 3; -var PNG_FILTER_PATH = 4; - -var _default = function _default() { - return { - mime: (0, _defineProperty2["default"])({}, MIME_TYPE, ["png"]), - constants: { - MIME_PNG: MIME_TYPE, - PNG_FILTER_AUTO: PNG_FILTER_AUTO, - PNG_FILTER_NONE: PNG_FILTER_NONE, - PNG_FILTER_SUB: PNG_FILTER_SUB, - PNG_FILTER_UP: PNG_FILTER_UP, - PNG_FILTER_AVERAGE: PNG_FILTER_AVERAGE, - PNG_FILTER_PATH: PNG_FILTER_PATH - }, - hasAlpha: (0, _defineProperty2["default"])({}, MIME_TYPE, true), - decoders: (0, _defineProperty2["default"])({}, MIME_TYPE, _pngjs.PNG.sync.read), - encoders: (0, _defineProperty2["default"])({}, MIME_TYPE, function (data) { - var png = new _pngjs.PNG({ - width: data.bitmap.width, - height: data.bitmap.height - }); - png.data = data.bitmap.data; - return _pngjs.PNG.sync.write(png, { - width: data.bitmap.width, - height: data.bitmap.height, - deflateLevel: data._deflateLevel, - deflateStrategy: data._deflateStrategy, - filterType: data._filterType, - colorType: typeof data._colorType === "number" ? data._colorType : data._rgba ? 6 : 2, - inputHasAlpha: data._rgba - }); - }), - "class": { - _deflateLevel: 9, - _deflateStrategy: 3, - _filterType: PNG_FILTER_AUTO, - _colorType: null, - - /** - * Sets the deflate level used when saving as PNG format (default is 9) - * @param {number} l Deflate level to use 0-9. 0 is no compression. 9 (default) is maximum compression. - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - deflateLevel: function deflateLevel(l, cb) { - if (typeof l !== "number") { - return _utils.throwError.call(this, "l must be a number", cb); - } - - if (l < 0 || l > 9) { - return _utils.throwError.call(this, "l must be a number 0 - 9", cb); - } - - this._deflateLevel = Math.round(l); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Sets the deflate strategy used when saving as PNG format (default is 3) - * @param {number} s Deflate strategy to use 0-3. - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - deflateStrategy: function deflateStrategy(s, cb) { - if (typeof s !== "number") { - return _utils.throwError.call(this, "s must be a number", cb); - } - - if (s < 0 || s > 3) { - return _utils.throwError.call(this, "s must be a number 0 - 3", cb); - } - - this._deflateStrategy = Math.round(s); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Sets the filter type used when saving as PNG format (default is automatic filters) - * @param {number} f The quality to use -1-4. - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - filterType: function filterType(f, cb) { - if (typeof f !== "number") { - return _utils.throwError.call(this, "n must be a number", cb); - } - - if (f < -1 || f > 4) { - return _utils.throwError.call(this, "n must be -1 (auto) or a number 0 - 4", cb); - } - - this._filterType = Math.round(f); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Sets the color type used when saving as PNG format - * @param {number} s color type to use 0, 2, 4, 6. - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - colorType: function colorType(s, cb) { - if (typeof s !== "number") { - return _utils.throwError.call(this, "s must be a number", cb); - } - - if (s !== 0 && s !== 2 && s !== 4 && s !== 6) { - return _utils.throwError.call(this, "s must be a number 0, 2, 4, 6.", cb); - } - - this._colorType = Math.round(s); - - if ((0, _utils.isNodePattern)(cb)) { - cb.call(this, null, this); - } - - return this; - } - } - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/png/dist/index.js.map b/WechatBot/node_modules/@jimp/png/dist/index.js.map deleted file mode 100644 index a5bbc076c..000000000 --- a/WechatBot/node_modules/@jimp/png/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["MIME_TYPE","PNG_FILTER_AUTO","PNG_FILTER_NONE","PNG_FILTER_SUB","PNG_FILTER_UP","PNG_FILTER_AVERAGE","PNG_FILTER_PATH","mime","constants","MIME_PNG","hasAlpha","decoders","PNG","sync","read","encoders","data","png","width","bitmap","height","write","deflateLevel","_deflateLevel","deflateStrategy","_deflateStrategy","filterType","_filterType","colorType","_colorType","_rgba","inputHasAlpha","l","cb","throwError","call","Math","round","s","f"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA,IAAMA,SAAS,GAAG,WAAlB,C,CAEA;;AACA,IAAMC,eAAe,GAAG,CAAC,CAAzB;AACA,IAAMC,eAAe,GAAG,CAAxB;AACA,IAAMC,cAAc,GAAG,CAAvB;AACA,IAAMC,aAAa,GAAG,CAAtB;AACA,IAAMC,kBAAkB,GAAG,CAA3B;AACA,IAAMC,eAAe,GAAG,CAAxB;;eAEe;AAAA,SAAO;AACpBC,IAAAA,IAAI,uCAAKP,SAAL,EAAiB,CAAC,KAAD,CAAjB,CADgB;AAGpBQ,IAAAA,SAAS,EAAE;AACTC,MAAAA,QAAQ,EAAET,SADD;AAETC,MAAAA,eAAe,EAAfA,eAFS;AAGTC,MA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\"@jimp/utils\";\n\nconst MIME_TYPE = \"image/png\";\n\n// PNG filter types\nconst PNG_FILTER_AUTO = -1;\nconst PNG_FILTER_NONE = 0;\nconst PNG_FILTER_SUB = 1;\nconst PNG_FILTER_UP = 2;\nconst PNG_FILTER_AVERAGE = 3;\nconst PNG_FILTER_PATH = 4;\n\nexport default () => ({\n mime: { [MIME_TYPE]: [\"png\"] },\n\n constants: {\n MIME_PNG: MIME_TYPE,\n PNG_FILTER_AUTO,\n PNG_FILTER_NONE,\n PNG_FILTER_SUB,\n PNG_FILTER_UP,\n PNG_FILTER_AVERAGE,\n PNG_FILTER_PATH,\n },\n\n hasAlpha: { [MIME_TYPE]: true },\n decoders: { [MIME_TYPE]: PNG.sync.read },\n encoders: {\n [MIME_TYPE](data) {\n const png = new PNG({\n width: data.bitmap.width,\n height: data.bitmap.height,\n });\n\n png.data = data.bitmap.data;\n\n return PNG.sync.write(png, {\n width: data.bitmap.width,\n height: data.bitmap.height,\n deflateLevel: data._deflateLevel,\n deflateStrategy: data._deflateStrategy,\n filterType: data._filterType,\n colorType:\n typeof data._colorType === \"number\"\n ? data._colorType\n : data._rgba\n ? 6\n : 2,\n inputHasAlpha: data._rgba,\n });\n },\n },\n\n class: {\n _deflateLevel: 9,\n _deflateStrategy: 3,\n _filterType: PNG_FILTER_AUTO,\n _colorType: null,\n\n /**\n * Sets the deflate level used when saving as PNG format (default is 9)\n * @param {number} l Deflate level to use 0-9. 0 is no compression. 9 (default) is maximum compression.\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n deflateLevel(l, cb) {\n if (typeof l !== \"number\") {\n return throwError.call(this, \"l must be a number\", cb);\n }\n\n if (l < 0 || l > 9) {\n return throwError.call(this, \"l must be a number 0 - 9\", cb);\n }\n\n this._deflateLevel = Math.round(l);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Sets the deflate strategy used when saving as PNG format (default is 3)\n * @param {number} s Deflate strategy to use 0-3.\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n deflateStrategy(s, cb) {\n if (typeof s !== \"number\") {\n return throwError.call(this, \"s must be a number\", cb);\n }\n\n if (s < 0 || s > 3) {\n return throwError.call(this, \"s must be a number 0 - 3\", cb);\n }\n\n this._deflateStrategy = Math.round(s);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n\n /**\n * Sets the filter type used when saving as PNG format (default is automatic filters)\n * @param {number} f The quality to use -1-4.\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */\n filterType(f, cb) {\n if (typeof f !== \"number\") {\n return throwError.call(this, \"n must be a number\", cb);\n }\n\n if (f < -1 || f > 4) {\n return throwError.call(\n this,\n \"n must be -1 (auto) or a number 0 - 4\",\n cb\n );\n }\n\n this._filterType = Math.round(f);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n /**\n * Sets the color type used when saving as PNG format\n * @param {number} s color type to use 0, 2, 4, 6.\n * @param {function(Error, Jimp)} cb (optional) a callback for when complete\n * @returns {Jimp} this for chaining of methods\n */ colorType(s, cb) {\n if (typeof s !== \"number\") {\n return throwError.call(this, \"s must be a number\", cb);\n }\n\n if (s !== 0 && s !== 2 && s !== 4 && s !== 6) {\n return throwError.call(this, \"s must be a number 0, 2, 4, 6.\", cb);\n }\n\n this._colorType = Math.round(s);\n\n if (isNodePattern(cb)) {\n cb.call(this, null, this);\n }\n\n return this;\n },\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/png/index.d.ts b/WechatBot/node_modules/@jimp/png/index.d.ts deleted file mode 100644 index 52bcda0c0..000000000 --- a/WechatBot/node_modules/@jimp/png/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { DecoderFn, EncoderFn, ImageCallback } from "@jimp/core"; - -interface PNGClass { - _deflateLevel: number; - _deflateStrategy: number; - _filterType: number; - _colorType: number; - deflateLevel(l: number, cb?: ImageCallback): this; - deflateStrategy(s: number, cb?: ImageCallback): this; - filterType(f: number, cb?: ImageCallback): this; - colorType(s: number, cb?: ImageCallback): this; -} - -interface PNG { - mime: { "image/png": string[] }; - - hasAlpha: { "image/png": true }; - - decoders: { - "image/png": DecoderFn; - }; - encoders: { - "image/png": EncoderFn; - }; - - class: PNGClass; - - constants: { - MIME_PNG: "image/png"; - // PNG filter types - PNG_FILTER_AUTO: -1; - PNG_FILTER_NONE: 0; - PNG_FILTER_SUB: 1; - PNG_FILTER_UP: 2; - PNG_FILTER_AVERAGE: 3; - PNG_FILTER_PATH: 4; - }; -} - -export default function (): PNG; diff --git a/WechatBot/node_modules/@jimp/png/package.json b/WechatBot/node_modules/@jimp/png/package.json deleted file mode 100644 index eb0b0c68c..000000000 --- a/WechatBot/node_modules/@jimp/png/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@jimp/png", - "version": "0.16.13", - "description": "Default Jimp png encoder/decoder.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/utils": "^0.16.13", - "pngjs": "^3.3.3" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/png/src/index.js b/WechatBot/node_modules/@jimp/png/src/index.js deleted file mode 100755 index 5a337f8b3..000000000 --- a/WechatBot/node_modules/@jimp/png/src/index.js +++ /dev/null @@ -1,159 +0,0 @@ -import { PNG } from "pngjs"; -import { throwError, isNodePattern } from "@jimp/utils"; - -const MIME_TYPE = "image/png"; - -// PNG filter types -const PNG_FILTER_AUTO = -1; -const PNG_FILTER_NONE = 0; -const PNG_FILTER_SUB = 1; -const PNG_FILTER_UP = 2; -const PNG_FILTER_AVERAGE = 3; -const PNG_FILTER_PATH = 4; - -export default () => ({ - mime: { [MIME_TYPE]: ["png"] }, - - constants: { - MIME_PNG: MIME_TYPE, - PNG_FILTER_AUTO, - PNG_FILTER_NONE, - PNG_FILTER_SUB, - PNG_FILTER_UP, - PNG_FILTER_AVERAGE, - PNG_FILTER_PATH, - }, - - hasAlpha: { [MIME_TYPE]: true }, - decoders: { [MIME_TYPE]: PNG.sync.read }, - encoders: { - [MIME_TYPE](data) { - const png = new PNG({ - width: data.bitmap.width, - height: data.bitmap.height, - }); - - png.data = data.bitmap.data; - - return PNG.sync.write(png, { - width: data.bitmap.width, - height: data.bitmap.height, - deflateLevel: data._deflateLevel, - deflateStrategy: data._deflateStrategy, - filterType: data._filterType, - colorType: - typeof data._colorType === "number" - ? data._colorType - : data._rgba - ? 6 - : 2, - inputHasAlpha: data._rgba, - }); - }, - }, - - class: { - _deflateLevel: 9, - _deflateStrategy: 3, - _filterType: PNG_FILTER_AUTO, - _colorType: null, - - /** - * Sets the deflate level used when saving as PNG format (default is 9) - * @param {number} l Deflate level to use 0-9. 0 is no compression. 9 (default) is maximum compression. - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - deflateLevel(l, cb) { - if (typeof l !== "number") { - return throwError.call(this, "l must be a number", cb); - } - - if (l < 0 || l > 9) { - return throwError.call(this, "l must be a number 0 - 9", cb); - } - - this._deflateLevel = Math.round(l); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Sets the deflate strategy used when saving as PNG format (default is 3) - * @param {number} s Deflate strategy to use 0-3. - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - deflateStrategy(s, cb) { - if (typeof s !== "number") { - return throwError.call(this, "s must be a number", cb); - } - - if (s < 0 || s > 3) { - return throwError.call(this, "s must be a number 0 - 3", cb); - } - - this._deflateStrategy = Math.round(s); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - - /** - * Sets the filter type used when saving as PNG format (default is automatic filters) - * @param {number} f The quality to use -1-4. - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ - filterType(f, cb) { - if (typeof f !== "number") { - return throwError.call(this, "n must be a number", cb); - } - - if (f < -1 || f > 4) { - return throwError.call( - this, - "n must be -1 (auto) or a number 0 - 4", - cb - ); - } - - this._filterType = Math.round(f); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - /** - * Sets the color type used when saving as PNG format - * @param {number} s color type to use 0, 2, 4, 6. - * @param {function(Error, Jimp)} cb (optional) a callback for when complete - * @returns {Jimp} this for chaining of methods - */ colorType(s, cb) { - if (typeof s !== "number") { - return throwError.call(this, "s must be a number", cb); - } - - if (s !== 0 && s !== 2 && s !== 4 && s !== 6) { - return throwError.call(this, "s must be a number 0, 2, 4, 6.", cb); - } - - this._colorType = Math.round(s); - - if (isNodePattern(cb)) { - cb.call(this, null, this); - } - - return this; - }, - }, -}); diff --git a/WechatBot/node_modules/@jimp/png/test/images/dice.png b/WechatBot/node_modules/@jimp/png/test/images/dice.png deleted file mode 100644 index b28653fb7..000000000 Binary files a/WechatBot/node_modules/@jimp/png/test/images/dice.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/png/test/images/options.png b/WechatBot/node_modules/@jimp/png/test/images/options.png deleted file mode 100644 index 5358c02ad..000000000 Binary files a/WechatBot/node_modules/@jimp/png/test/images/options.png and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/png/test/png.test.js b/WechatBot/node_modules/@jimp/png/test/png.test.js deleted file mode 100755 index cad4a49b3..000000000 --- a/WechatBot/node_modules/@jimp/png/test/png.test.js +++ /dev/null @@ -1,60 +0,0 @@ -import { Jimp, getTestDir } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import png from "../src"; - -const jimp = configure({ types: [png] }, Jimp); - -describe("PNG", () => { - const imagesDir = getTestDir(__dirname) + "/images"; - - it("load PNG", async () => { - const image = await jimp.read(imagesDir + "/dice.png"); - - image.getPixelColor(10, 10).should.be.equal(0x00000000); - image.getPixelColor(160, 80).should.be.equal(0x1c1cd4ff); - image.getPixelColor(400, 250).should.be.equal(0x7e0c0cda); - }); - - it("export PNG", async () => { - const jgd = await jimp.read({ - width: 3, - height: 3, - data: [ - 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff, - 0xff00ffff, 0x8000ffff, 0x0000ffff, - ], - }); - const buffer = await jgd.getBufferAsync("image/png"); - - buffer.toString().should.match(/^.PNG\r\n/); - }); - - it("should use png options", async () => { - const jgd = await jimp.read({ - width: 20, - height: 20, - data: [ - 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff, - 0xff00ffff, 0x8000ffff, 0x0000ffff, 0xff0000ff, 0xff0080ff, 0xff00ffff, - 0xff0080ff, 0xff00ffff, 0x8000ffff, 0xff00ffff, 0x8000ffff, 0x0000ffff, - 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff, - 0xff00ffff, 0x8000ffff, 0x0000ffff, 0xff0000ff, 0xff0080ff, 0xff00ffff, - 0xff0080ff, 0xff00ffff, 0x8000ffff, 0xff00ffff, 0x8000ffff, 0x0000ffff, - ], - }); - - const image = await jgd - .deflateStrategy(0) - .colorType(0) - .getBufferAsync(Jimp.MIME_PNG); - - const expected = await jimp.read(imagesDir + "/options.png"); - const expectedBuffer = await expected - .deflateStrategy(0) - .colorType(0) - .getBufferAsync(Jimp.MIME_PNG); - - image.should.be.deepEqual(expectedBuffer); - }); -}); diff --git a/WechatBot/node_modules/@jimp/tiff/CHANGELOG.md b/WechatBot/node_modules/@jimp/tiff/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/tiff/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/tiff/LICENSE b/WechatBot/node_modules/@jimp/tiff/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/tiff/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/tiff/README.md b/WechatBot/node_modules/@jimp/tiff/README.md deleted file mode 100644 index 3f3a92d78..000000000 --- a/WechatBot/node_modules/@jimp/tiff/README.md +++ /dev/null @@ -1,6 +0,0 @@ -
- -

@jimp/tiff

-

Default Jimp tiff encoder/decoder.

-
diff --git a/WechatBot/node_modules/@jimp/tiff/dist/index.js b/WechatBot/node_modules/@jimp/tiff/dist/index.js deleted file mode 100755 index 9eeca7e23..000000000 --- a/WechatBot/node_modules/@jimp/tiff/dist/index.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty")); - -var _utif = _interopRequireDefault(require("utif")); - -var MIME_TYPE = "image/tiff"; - -var _default = function _default() { - return { - mime: (0, _defineProperty2["default"])({}, MIME_TYPE, ["tiff", "tif"]), - constants: { - MIME_TIFF: MIME_TYPE - }, - decoders: (0, _defineProperty2["default"])({}, MIME_TYPE, function (data) { - var ifds = _utif["default"].decode(data); - - var page = ifds[0]; - - _utif["default"].decodeImages(data, ifds); - - var rgba = _utif["default"].toRGBA8(page); - - return { - data: Buffer.from(rgba), - width: page.t256[0], - height: page.t257[0] - }; - }), - encoders: (0, _defineProperty2["default"])({}, MIME_TYPE, function (image) { - var tiff = _utif["default"].encodeImage(image.bitmap.data, image.bitmap.width, image.bitmap.height); - - return Buffer.from(tiff); - }) - }; -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/tiff/dist/index.js.map b/WechatBot/node_modules/@jimp/tiff/dist/index.js.map deleted file mode 100644 index 743e3f191..000000000 --- a/WechatBot/node_modules/@jimp/tiff/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["MIME_TYPE","mime","constants","MIME_TIFF","decoders","data","ifds","UTIF","decode","page","decodeImages","rgba","toRGBA8","Buffer","from","width","t256","height","t257","encoders","image","tiff","encodeImage","bitmap"],"mappings":";;;;;;;;;;;AAAA;;AAEA,IAAMA,SAAS,GAAG,YAAlB;;eAEe;AAAA,SAAO;AACpBC,IAAAA,IAAI,uCAAKD,SAAL,EAAiB,CAAC,MAAD,EAAS,KAAT,CAAjB,CADgB;AAGpBE,IAAAA,SAAS,EAAE;AACTC,MAAAA,SAAS,EAAEH;AADF,KAHS;AAOpBI,IAAAA,QAAQ,uCACLJ,SADK,EACO,UAACK,IAAD,EAAU;AACrB,UAAMC,IAAI,GAAGC,iBAAKC,MAAL,CAAYH,IAAZ,CAAb;;AACA,UAAMI,IAAI,GAAGH,IAAI,CAAC,CAAD,CAAjB;;AACAC,uBAAKG,YAAL,CAAkBL,IAAlB,EAAwBC,IAAxB;;AACA,UAAMK,IAAI,GAAGJ,iBAAKK,OAAL,CAAaH,IAAb,CAAb;;AAEA,aAAO;AACLJ,QAAAA,IAAI,EAAEQ,MAAM,CAACC,IAAP,CAAYH,IAAZ,CADD;AAELI,QAAAA,KAAK,EAAEN,IAAI,CAACO,IAAL,CAAU,CAAV,CAFF;AAGLC,QAAAA,MAAM,EAAER,IAAI,CAACS,IAAL,CAAU,CAAV;AAHH,OAAP;AAKD,KAZK,CAPY;AAsBpBC,IAAAA,QAAQ,uCACLnB,SADK,EACO,UAACoB,KAAD,EAAW;AACtB,UAAMC,IAAI,GAAGd,iBAAKe,WAAL,CACXF,KAAK,CAACG,MAAN,CAAalB,IADF,EAEXe,KAAK,CAACG,MAAN,CAAaR,KAFF,EAGXK,KAAK,CAACG,MAAN,CAAaN,MAHF,CAAb;;AAMA,aAAOJ,MAAM,CAACC,IAAP,CAAYO,IAAZ,CAAP;AACD,KATK;AAtBY,GAAP;AAAA,C","sourcesContent":["import UTIF from \"utif\";\n\nconst MIME_TYPE = \"image/tiff\";\n\nexport default () => ({\n mime: { [MIME_TYPE]: [\"tiff\", \"tif\"] },\n\n constants: {\n MIME_TIFF: MIME_TYPE,\n },\n\n decoders: {\n [MIME_TYPE]: (data) => {\n const ifds = UTIF.decode(data);\n const page = ifds[0];\n UTIF.decodeImages(data, ifds);\n const rgba = UTIF.toRGBA8(page);\n\n return {\n data: Buffer.from(rgba),\n width: page.t256[0],\n height: page.t257[0],\n };\n },\n },\n\n encoders: {\n [MIME_TYPE]: (image) => {\n const tiff = UTIF.encodeImage(\n image.bitmap.data,\n image.bitmap.width,\n image.bitmap.height\n );\n\n return Buffer.from(tiff);\n },\n },\n});\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/tiff/index.d.ts b/WechatBot/node_modules/@jimp/tiff/index.d.ts deleted file mode 100644 index 851d73838..000000000 --- a/WechatBot/node_modules/@jimp/tiff/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { DecoderFn, EncoderFn } from "@jimp/core"; - -interface Tiff { - mime: { "image/tiff": string[] }; - decoders: { - "image/tiff": DecoderFn; - }; - encoders: { - "image/tiff": EncoderFn; - }; - constants: { - MIME_TIFF: "image/tiff"; - }; -} - -export default function (): Tiff; diff --git a/WechatBot/node_modules/@jimp/tiff/package.json b/WechatBot/node_modules/@jimp/tiff/package.json deleted file mode 100644 index be7b1c1e0..000000000 --- a/WechatBot/node_modules/@jimp/tiff/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "@jimp/tiff", - "version": "0.16.13", - "description": "Default Jimp tiff encoder/decoder.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "test": "cross-env BABEL_ENV=test mocha --require @babel/register", - "test:watch": "npm run test -- --reporter min --watch", - "test:coverage": "nyc npm run test", - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "utif": "^2.0.1" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "devDependencies": { - "@jimp/custom": "^0.16.13", - "@jimp/test-utils": "^0.16.13" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/tiff/src/index.js b/WechatBot/node_modules/@jimp/tiff/src/index.js deleted file mode 100755 index 9035f80d1..000000000 --- a/WechatBot/node_modules/@jimp/tiff/src/index.js +++ /dev/null @@ -1,38 +0,0 @@ -import UTIF from "utif"; - -const MIME_TYPE = "image/tiff"; - -export default () => ({ - mime: { [MIME_TYPE]: ["tiff", "tif"] }, - - constants: { - MIME_TIFF: MIME_TYPE, - }, - - decoders: { - [MIME_TYPE]: (data) => { - const ifds = UTIF.decode(data); - const page = ifds[0]; - UTIF.decodeImages(data, ifds); - const rgba = UTIF.toRGBA8(page); - - return { - data: Buffer.from(rgba), - width: page.t256[0], - height: page.t257[0], - }; - }, - }, - - encoders: { - [MIME_TYPE]: (image) => { - const tiff = UTIF.encodeImage( - image.bitmap.data, - image.bitmap.width, - image.bitmap.height - ); - - return Buffer.from(tiff); - }, - }, -}); diff --git a/WechatBot/node_modules/@jimp/tiff/test/images/rgb.tiff b/WechatBot/node_modules/@jimp/tiff/test/images/rgb.tiff deleted file mode 100644 index b795bcdc3..000000000 Binary files a/WechatBot/node_modules/@jimp/tiff/test/images/rgb.tiff and /dev/null differ diff --git a/WechatBot/node_modules/@jimp/tiff/test/tiff.test.js b/WechatBot/node_modules/@jimp/tiff/test/tiff.test.js deleted file mode 100755 index 05211f28f..000000000 --- a/WechatBot/node_modules/@jimp/tiff/test/tiff.test.js +++ /dev/null @@ -1,34 +0,0 @@ -import { Jimp, getTestDir } from "@jimp/test-utils"; -import configure from "@jimp/custom"; - -import tiff from "../src"; - -const jimp = configure({ types: [tiff] }, Jimp); - -describe("TIFF", () => { - const imagesDir = getTestDir(__dirname) + "/images"; - - it("load TIFF", async () => { - const image = await jimp.read(imagesDir + "/rgb.tiff"); - - image.getPixelColor(10, 10).should.be.equal(0xa4988bff); - image.getPixelColor(220, 190).should.be.equal(0xe0d7ddff); - image.getPixelColor(350, 130).should.be.equal(0x565433ff); - }); - - const simpleJGD = { - width: 3, - height: 3, - data: [ - 0xff0000ff, 0xff0080ff, 0xff00ffff, 0xff0080ff, 0xff00ffff, 0x8000ffff, - 0xff00ffff, 0x8000ffff, 0x0000ffff, - ], - }; - - it("export TIFF", async () => { - const image = await jimp.read(simpleJGD); - const buffer = await image.getBufferAsync("image/tiff"); - - buffer.toString().should.match(/^MM\u0000*\u0000/); - }); -}); diff --git a/WechatBot/node_modules/@jimp/types/CHANGELOG.md b/WechatBot/node_modules/@jimp/types/CHANGELOG.md deleted file mode 100644 index 4eb3193f9..000000000 --- a/WechatBot/node_modules/@jimp/types/CHANGELOG.md +++ /dev/null @@ -1,35 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- `@jimp/cli`, `@jimp/core`, `@jimp/custom`, `jimp`, `@jimp/plugin-blit`, `@jimp/plugin-blur`, `@jimp/plugin-circle`, `@jimp/plugin-color`, `@jimp/plugin-contain`, `@jimp/plugin-cover`, `@jimp/plugin-crop`, `@jimp/plugin-displace`, `@jimp/plugin-dither`, `@jimp/plugin-fisheye`, `@jimp/plugin-flip`, `@jimp/plugin-gaussian`, `@jimp/plugin-invert`, `@jimp/plugin-mask`, `@jimp/plugin-normalize`, `@jimp/plugin-print`, `@jimp/plugin-resize`, `@jimp/plugin-rotate`, `@jimp/plugin-scale`, `@jimp/plugin-shadow`, `@jimp/plugin-threshold`, `@jimp/plugins`, `@jimp/test-utils`, `@jimp/bmp`, `@jimp/gif`, `@jimp/jpeg`, `@jimp/png`, `@jimp/tiff`, `@jimp/types`, `@jimp/utils` - - Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/types/LICENSE b/WechatBot/node_modules/@jimp/types/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/types/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/types/README.md b/WechatBot/node_modules/@jimp/types/README.md deleted file mode 100644 index 60dc41996..000000000 --- a/WechatBot/node_modules/@jimp/types/README.md +++ /dev/null @@ -1,14 +0,0 @@ -
- -

@jimp/types

-

Default Jimp types.

-
- -## Supported Image Types - -- [bmp](../type-bmp) -- [gif](../type-gif) -- [jpeg](../type-jpeg) -- [png](../type-png) -- [tiff](../type-tiff) diff --git a/WechatBot/node_modules/@jimp/types/dist/index.js b/WechatBot/node_modules/@jimp/types/dist/index.js deleted file mode 100755 index 6010c0609..000000000 --- a/WechatBot/node_modules/@jimp/types/dist/index.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; - -var _timm = require("timm"); - -var _jpeg = _interopRequireDefault(require("@jimp/jpeg")); - -var _png = _interopRequireDefault(require("@jimp/png")); - -var _bmp = _interopRequireDefault(require("@jimp/bmp")); - -var _tiff = _interopRequireDefault(require("@jimp/tiff")); - -var _gif = _interopRequireDefault(require("@jimp/gif")); - -var _default = function _default() { - return (0, _timm.mergeDeep)((0, _jpeg["default"])(), (0, _png["default"])(), (0, _bmp["default"])(), (0, _tiff["default"])(), (0, _gif["default"])()); -}; - -exports["default"] = _default; -module.exports = exports.default; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/types/dist/index.js.map b/WechatBot/node_modules/@jimp/types/dist/index.js.map deleted file mode 100644 index 2017bb5d6..000000000 --- a/WechatBot/node_modules/@jimp/types/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":[],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;AACA;;AACA;;AACA;;eAEe;AAAA,SAAM,qBAAU,uBAAV,EAAkB,sBAAlB,EAAyB,sBAAzB,EAAgC,uBAAhC,EAAwC,sBAAxC,CAAN;AAAA,C","sourcesContent":["import { mergeDeep } from \"timm\";\n\nimport jpeg from \"@jimp/jpeg\";\nimport png from \"@jimp/png\";\nimport bmp from \"@jimp/bmp\";\nimport tiff from \"@jimp/tiff\";\nimport gif from \"@jimp/gif\";\n\nexport default () => mergeDeep(jpeg(), png(), bmp(), tiff(), gif());\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/types/index.d.ts b/WechatBot/node_modules/@jimp/types/index.d.ts deleted file mode 100644 index 98f0cceb3..000000000 --- a/WechatBot/node_modules/@jimp/types/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import jpeg from "@jimp/jpeg"; -import png from "@jimp/png"; -import bmp from "@jimp/bmp"; -import tiff from "@jimp/tiff"; -import gif from "@jimp/gif"; - -type JpegRet = ReturnType; -type PngRet = ReturnType; -type BmpRet = ReturnType; -type TiffRet = ReturnType; -type GifRet = ReturnType; - -/** - * This is made union and not intersection to avoid issues with - * `IllformedPlugin` and `WellFormedPlugin` when using typings with Jimp - * generic - * - * In reality, this should be an intersection but our type data isn't - * clever enough to figure out what's a class and what's not/etc - */ -type Types = JpegRet | PngRet | BmpRet | TiffRet | GifRet; - -export default function (): Types; diff --git a/WechatBot/node_modules/@jimp/types/package.json b/WechatBot/node_modules/@jimp/types/package.json deleted file mode 100644 index 752b6936f..000000000 --- a/WechatBot/node_modules/@jimp/types/package.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "name": "@jimp/types", - "version": "0.16.13", - "description": "Default Jimp encoder/decoders.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "dependencies": { - "@babel/runtime": "^7.7.2", - "@jimp/bmp": "^0.16.13", - "@jimp/gif": "^0.16.13", - "@jimp/jpeg": "^0.16.13", - "@jimp/png": "^0.16.13", - "@jimp/tiff": "^0.16.13", - "timm": "^1.6.1" - }, - "peerDependencies": { - "@jimp/custom": ">=0.3.5" - }, - "devDependencies": { - "@types/node": "^12.7.5" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/types/src/index.js b/WechatBot/node_modules/@jimp/types/src/index.js deleted file mode 100755 index 1f6eb528b..000000000 --- a/WechatBot/node_modules/@jimp/types/src/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import { mergeDeep } from "timm"; - -import jpeg from "@jimp/jpeg"; -import png from "@jimp/png"; -import bmp from "@jimp/bmp"; -import tiff from "@jimp/tiff"; -import gif from "@jimp/gif"; - -export default () => mergeDeep(jpeg(), png(), bmp(), tiff(), gif()); diff --git a/WechatBot/node_modules/@jimp/utils/CHANGELOG.md b/WechatBot/node_modules/@jimp/utils/CHANGELOG.md deleted file mode 100644 index b4af2eee7..000000000 --- a/WechatBot/node_modules/@jimp/utils/CHANGELOG.md +++ /dev/null @@ -1,46 +0,0 @@ -# v0.16.3 (Sat Feb 04 2023) - -#### ⚠️ Pushed to `master` - -- upgrade prettier ([@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 1 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) - ---- - -# v0.11.0 (Fri May 15 2020) - -#### 🚀 Enhancement - -- Removed Core-JS as a dependency. [#882](https://github.com/oliver-moran/jimp/pull/882) ([@EricRabil](https://github.com/EricRabil)) - -#### Authors: 1 - -- Eric Rabil ([@EricRabil](https://github.com/EricRabil)) - ---- - -# v0.10.1 (Sun Apr 05 2020) - -#### 🐛 Bug Fix - -- Update package.json [#870](https://github.com/oliver-moran/jimp/pull/870) ([@arcanis](https://github.com/arcanis)) - -#### Authors: 1 - -- Maël Nison ([@arcanis](https://github.com/arcanis)) - ---- - -# v0.9.3 (Tue Nov 26 2019) - -#### 🐛 Bug Fix - -- Fix regeneratorRuntime errors [#815](https://github.com/oliver-moran/jimp/pull/815) ([@crutchcorn](https://github.com/crutchcorn) [@hipstersmoothie](https://github.com/hipstersmoothie)) - -#### Authors: 2 - -- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) -- Corbin Crutchley ([@crutchcorn](https://github.com/crutchcorn)) diff --git a/WechatBot/node_modules/@jimp/utils/LICENSE b/WechatBot/node_modules/@jimp/utils/LICENSE deleted file mode 100644 index baa5d4850..000000000 --- a/WechatBot/node_modules/@jimp/utils/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2018 Oliver Moran - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@jimp/utils/README.md b/WechatBot/node_modules/@jimp/utils/README.md deleted file mode 100644 index 51a52c4d8..000000000 --- a/WechatBot/node_modules/@jimp/utils/README.md +++ /dev/null @@ -1,70 +0,0 @@ -
- -

@jimp/utils

-

Utils for jimp extensions.

-
- -## Available Methods - -### isNodePattern - -Determines if function was passed an node callback. - -```js -if (isNodePattern(cb)) { - cb.call(this, null, this); -} -``` - -### throwError - -Either throws the error or calls the callback with the error. - -```js -if (/* check for error */) { - return throwError.call(this, 'someError', cb); -} -``` - -### scan - -Scans through a region of the bitmap, calling a function for each pixel. - -```js -function removeRed(image) { - return scan( - image, - 0, - 0, - image.bitmap.width, - image.bitmap.height, - function (x, y, index) { - const red = this.bitmap.data[index + 0]; - const green = this.bitmap.data[index + 1]; - const blue = this.bitmap.data[index + 2]; - const alpha = this.bitmap.data[index + 3]; - - this.bitmap.data[index + 0] = 0; - this.bitmap.data[index + 1] = green; - this.bitmap.data[index + 2] = blue; - this.bitmap.data[index + 3] = alpha; - } - ); -} -``` - -### scanIterator - -It's possible to make an iterator scan with a `for ... of`, if you want to `break` the scan before it reaches the end, but note, that this iterator has a huge performance implication: - -```js -for (const { x, y, idx, image } of scanIterator( - image, - 0, - 0, - image.bitmap.width, - image.bitmap.height -)) { -} -``` diff --git a/WechatBot/node_modules/@jimp/utils/dist/index.js b/WechatBot/node_modules/@jimp/utils/dist/index.js deleted file mode 100755 index dc9992b77..000000000 --- a/WechatBot/node_modules/@jimp/utils/dist/index.js +++ /dev/null @@ -1,114 +0,0 @@ -"use strict"; - -var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.isNodePattern = isNodePattern; -exports.throwError = throwError; -exports.scan = scan; -exports.scanIterator = scanIterator; - -var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator")); - -var _marked = -/*#__PURE__*/ -_regenerator["default"].mark(scanIterator); - -function isNodePattern(cb) { - if (typeof cb === "undefined") { - return false; - } - - if (typeof cb !== "function") { - throw new TypeError("Callback must be a function"); - } - - return true; -} - -function throwError(error, cb) { - if (typeof error === "string") { - error = new Error(error); - } - - if (typeof cb === "function") { - return cb.call(this, error); - } - - throw error; -} - -function scan(image, x, y, w, h, f) { - // round input - x = Math.round(x); - y = Math.round(y); - w = Math.round(w); - h = Math.round(h); - - for (var _y = y; _y < y + h; _y++) { - for (var _x = x; _x < x + w; _x++) { - var idx = image.bitmap.width * _y + _x << 2; - f.call(image, _x, _y, idx); - } - } - - return image; -} - -function scanIterator(image, x, y, w, h) { - var _y, _x, idx; - - return _regenerator["default"].wrap(function scanIterator$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - // round input - x = Math.round(x); - y = Math.round(y); - w = Math.round(w); - h = Math.round(h); - _y = y; - - case 5: - if (!(_y < y + h)) { - _context.next = 17; - break; - } - - _x = x; - - case 7: - if (!(_x < x + w)) { - _context.next = 14; - break; - } - - idx = image.bitmap.width * _y + _x << 2; - _context.next = 11; - return { - x: _x, - y: _y, - idx: idx, - image: image - }; - - case 11: - _x++; - _context.next = 7; - break; - - case 14: - _y++; - _context.next = 5; - break; - - case 17: - case "end": - return _context.stop(); - } - } - }, _marked); -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/utils/dist/index.js.map b/WechatBot/node_modules/@jimp/utils/dist/index.js.map deleted file mode 100644 index 25e5db6a0..000000000 --- a/WechatBot/node_modules/@jimp/utils/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../src/index.js"],"names":["scanIterator","isNodePattern","cb","TypeError","throwError","error","Error","call","scan","image","x","y","w","h","f","Math","round","_y","_x","idx","bitmap","width"],"mappings":";;;;;;;;;;;;;;;;6BAyCiBA,Y;;AAzCV,SAASC,aAAT,CAAuBC,EAAvB,EAA2B;AAChC,MAAI,OAAOA,EAAP,KAAc,WAAlB,EAA+B;AAC7B,WAAO,KAAP;AACD;;AAED,MAAI,OAAOA,EAAP,KAAc,UAAlB,EAA8B;AAC5B,UAAM,IAAIC,SAAJ,CAAc,6BAAd,CAAN;AACD;;AAED,SAAO,IAAP;AACD;;AAEM,SAASC,UAAT,CAAoB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AAAA;AAAA;AACL;AACAH,UAAAA,CAAC,GAAGK,IAAI,CAACC,KAAL,CAAWN,CAAX,CAAJ;AACAC,UAAAA,CAAC,GAAGI,IAAI,CAACC,KAAL,CAAWL,CAAX,CAAJ;AACAC,UAAAA,CAAC,GAAGG,IAAI,CAACC,KAAL,CAAWJ,CAAX,CAAJ;AACAC,UAAAA,CAAC,GAAGE,IAAI,CAACC,KAAL,CAAWH,CAAX,CAAJ;AAESI,UAAAA,EAPJ,GAOSN,CAPT;;AAAA;AAAA,gBAOYM,EAAE,GAAGN,CAAC,GAAGE,CAPrB;AAAA;AAAA;AAAA;;AAQMK,UAAAA,EARN,GAQWR,CARX;;AAAA;AAAA,gBAQcQ,EAAE,GAAGR,CAAC,GAAGE,CARvB;AAAA;AAAA;AAAA;;AASKO,UAAAA,GATL,GASYV,KAAK,CAACW,MAAN,CAAaC,KAAb,GAAqBJ,EAArB,GAA0BC,EAA3B,IAAkC,CAT7C;AAAA;AAUD,iBAAM;AAAER,YAAAA,CAAC,EAAEQ,EAAL;AAASP,YAAAA,CAAC,EAAEM,EAAZ;AAAgBE,YAAAA,GAAG,EAAHA,GAAhB;AAAqBV,YAAAA,KAAK,EAALA;AAArB,WAAN;;AAVC;AAQ0BS,UAAAA,EAAE,EAR5B;AAAA;AAAA;;AAAA;AAOwBD,UAAAA,EAAE,EAP1B;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export function isNodePattern(cb) {\n if (typeof cb === \"undefined\") {\n return false;\n }\n\n if (typeof cb !== \"function\") {\n throw new TypeError(\"Callback must be a function\");\n }\n\n return true;\n}\n\nexport function throwError(error, cb) {\n if (typeof error === \"string\") {\n error = new Error(error);\n }\n\n if (typeof cb === \"function\") {\n return cb.call(this, error);\n }\n\n throw error;\n}\n\nexport function scan(image, x, y, w, h, f) {\n // round input\n x = Math.round(x);\n y = Math.round(y);\n w = Math.round(w);\n h = Math.round(h);\n\n for (let _y = y; _y < y + h; _y++) {\n for (let _x = x; _x < x + w; _x++) {\n const idx = (image.bitmap.width * _y + _x) << 2;\n f.call(image, _x, _y, idx);\n }\n }\n\n return image;\n}\n\nexport function* scanIterator(image, x, y, w, h) {\n // round input\n x = Math.round(x);\n y = Math.round(y);\n w = Math.round(w);\n h = Math.round(h);\n\n for (let _y = y; _y < y + h; _y++) {\n for (let _x = x; _x < x + w; _x++) {\n const idx = (image.bitmap.width * _y + _x) << 2;\n yield { x: _x, y: _y, idx, image };\n }\n }\n}\n"],"file":"index.js"} \ No newline at end of file diff --git a/WechatBot/node_modules/@jimp/utils/index.d.ts b/WechatBot/node_modules/@jimp/utils/index.d.ts deleted file mode 100644 index 612e9fce7..000000000 --- a/WechatBot/node_modules/@jimp/utils/index.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Image, Omit } from "@jimp/core"; -import { ThrowStatement } from "typescript"; - -export function isNodePattern(cb: Function): true; -export function isNodePattern(cb: Omit): false; - -export function throwError( - error: string | Error, - cb?: (err: Error) => void -): ThrowStatement; - -export function scan( - image: Image, - x: number, - y: number, - w: number, - h: number, - f: (image: Image, _x: number, _y: number, idx: number) => void -): Image; diff --git a/WechatBot/node_modules/@jimp/utils/package.json b/WechatBot/node_modules/@jimp/utils/package.json deleted file mode 100644 index a9a6418ea..000000000 --- a/WechatBot/node_modules/@jimp/utils/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "@jimp/utils", - "version": "0.16.13", - "description": "Utils for jimp extensions.", - "main": "dist/index.js", - "module": "es/index.js", - "types": "index.d.ts", - "scripts": { - "build": "npm run build:node:production && npm run build:module", - "build:watch": "npm run build:node:debug -- -- --watch --verbose", - "build:debug": "npm run build:node:debug", - "build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js", - "build:node": "babel src -d dist --source-maps --config-file ../../babel.config.js", - "build:node:debug": "cross-env BABEL_ENV=development npm run build:node", - "build:node:production": "cross-env BABEL_ENV=production npm run build:node" - }, - "author": "", - "license": "MIT", - "publishConfig": { - "access": "public" - }, - "dependencies": { - "@babel/runtime": "^7.7.2", - "regenerator-runtime": "^0.13.3" - }, - "gitHead": "9eec86086634329a072901dca3a800b850548572" -} diff --git a/WechatBot/node_modules/@jimp/utils/src/index.js b/WechatBot/node_modules/@jimp/utils/src/index.js deleted file mode 100755 index 723f21148..000000000 --- a/WechatBot/node_modules/@jimp/utils/src/index.js +++ /dev/null @@ -1,55 +0,0 @@ -export function isNodePattern(cb) { - if (typeof cb === "undefined") { - return false; - } - - if (typeof cb !== "function") { - throw new TypeError("Callback must be a function"); - } - - return true; -} - -export function throwError(error, cb) { - if (typeof error === "string") { - error = new Error(error); - } - - if (typeof cb === "function") { - return cb.call(this, error); - } - - throw error; -} - -export function scan(image, x, y, w, h, f) { - // round input - x = Math.round(x); - y = Math.round(y); - w = Math.round(w); - h = Math.round(h); - - for (let _y = y; _y < y + h; _y++) { - for (let _x = x; _x < x + w; _x++) { - const idx = (image.bitmap.width * _y + _x) << 2; - f.call(image, _x, _y, idx); - } - } - - return image; -} - -export function* scanIterator(image, x, y, w, h) { - // round input - x = Math.round(x); - y = Math.round(y); - w = Math.round(w); - h = Math.round(h); - - for (let _y = y; _y < y + h; _y++) { - for (let _x = x; _x < x + w; _x++) { - const idx = (image.bitmap.width * _y + _x) << 2; - yield { x: _x, y: _y, idx, image }; - } - } -} diff --git a/WechatBot/node_modules/@pipeletteio/nop/CHANGELOG.md b/WechatBot/node_modules/@pipeletteio/nop/CHANGELOG.md deleted file mode 100644 index c78b4f22a..000000000 --- a/WechatBot/node_modules/@pipeletteio/nop/CHANGELOG.md +++ /dev/null @@ -1,6 +0,0 @@ -# 0.1.0 - -> 16/04/2020 - -- Add `nop` function to replace non-cancelable calls. -- Add `isNop` function to check if an argument is the nop function. diff --git a/WechatBot/node_modules/@pipeletteio/nop/LICENSE b/WechatBot/node_modules/@pipeletteio/nop/LICENSE deleted file mode 100644 index 4c06a7860..000000000 --- a/WechatBot/node_modules/@pipeletteio/nop/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) Pipelette.io and authors... - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/@pipeletteio/nop/README.md b/WechatBot/node_modules/@pipeletteio/nop/README.md deleted file mode 100644 index b63d6cc9b..000000000 --- a/WechatBot/node_modules/@pipeletteio/nop/README.md +++ /dev/null @@ -1,64 +0,0 @@ -

-

@pipeletteio/nop

-

- -

A simple nop (no-op) function helper. Nop is a function that does nothing.

- -

- - - - - - - - - - - - - - - -

- -## Installation -```bash -npm install @pipeletteio/nop -``` - -## Example - -```javascript -import { nop, isNop } from '@pipeletteio/nop'; -// const { nop, isNop } = require('@pipeletteio/nop'); - -isNop(nop); // => true - -isNop(function () {}); // => false -``` - -## Docs -Read [documentation](https://pipeletteio.github.io/nop) for more informations. - -## API - -#### nop - -The nop function which will be used to replace the non cancellable callables. - -| argument | type | details | -|--------------|-----------|---------| -| ...arg | any[] | ... | - -Return void. - -#### isNop - -Check if the argument is the nop function. - -| argument | type | details | -|--------------|-----------|--------------------------| -| arg | any | The checked argument. | - -Return a boolean. diff --git a/WechatBot/node_modules/@pipeletteio/nop/package.json b/WechatBot/node_modules/@pipeletteio/nop/package.json deleted file mode 100644 index a8eea8ce1..000000000 --- a/WechatBot/node_modules/@pipeletteio/nop/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "@pipeletteio/nop", - "version": "1.0.5", - "description": "A simple nop function helper", - "private": false, - "main": "./src/index.js", - "types": "./src/index.d.ts", - "author": "AshLePoney ", - "license": "MIT", - "homepage": "https://github.com/pipeletteio/nop#readme", - "repository": { - "type": "git", - "url": "git+https://github.com/pipeletteio/nop.git" - }, - "bugs": { - "url": "https://github.com/pipeletteio/nop/issues" - }, - "engines": { - "node": ">= 12.0.0" - }, - "scripts": { - "package": "npm run package:clear && npm run package:types && npm run package:build && npm run package:copyfiles", - "package:build": "swc src -d build/package/src", - "package:types": "tsc -p tsconfig.types.json --emitDeclarationOnly", - "package:copyfiles": "cp package.json README.md CHANGELOG.md LICENSE build/package", - "package:clear": "rm -rf build/package", - "package:publish": "cd build/package && npm publish --access public", - "type-check": "tsc --noEmit", - "lint": "eslint -c eslint.config.js .", - "test": "jest --config jest.config.js", - "coverage": "jest --config jest.config.js --coverage", - "docs": "npm run docs:clear && npm run docs:build", - "docs:clear": "rm -rf build/docs", - "docs:build": "typedoc --out build/docs --theme default src/index.ts", - "_postinstall": "husky install config/husky", - "prepublishOnly": "pinst --disable", - "postpublish": "pinst --enable", - "precommit": "npm run type-check && npm run lint && npm run coverage" - }, - "devDependencies": { - "@commitlint/cli": "^16.2.3", - "@microsoft/tsdoc": "^0.14.1", - "@swc/cli": "^0.1.57", - "@swc/core": "^1.2.171", - "@swc/jest": "^0.2.20", - "@types/jest": "^27.4.1", - "@types/node": "^17.0.25", - "@typescript-eslint/eslint-plugin": "^5.20.0", - "@typescript-eslint/parser": "^5.20.0", - "eslint": "8.14.0", - "eslint-plugin-tsdoc": "^0.2.16", - "husky": "^7.0.4", - "jest": "^27.5.1", - "pinst": "^3.0.0", - "typedoc": "^0.22.15", - "typescript": "^4.6.3" - } -} diff --git a/WechatBot/node_modules/@pipeletteio/nop/src/index.d.ts b/WechatBot/node_modules/@pipeletteio/nop/src/index.d.ts deleted file mode 100644 index ae0f2835f..000000000 --- a/WechatBot/node_modules/@pipeletteio/nop/src/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * A nop function which can be used to replace non-cancelable calls. - */ -export declare function nop(..._: any[]): void; -/** - * Check if argument is the shared nop function. - */ -export declare function isNop(arg: any): boolean; diff --git a/WechatBot/node_modules/@pipeletteio/nop/src/index.js b/WechatBot/node_modules/@pipeletteio/nop/src/index.js deleted file mode 100755 index b63e12b6a..000000000 --- a/WechatBot/node_modules/@pipeletteio/nop/src/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -exports.nop = nop; -exports.isNop = isNop; -function nop(..._) {} -function isNop(arg) { - return arg === nop; -} - -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/@pipeletteio/nop/src/index.js.map b/WechatBot/node_modules/@pipeletteio/nop/src/index.js.map deleted file mode 100644 index 88d7a12f0..000000000 --- a/WechatBot/node_modules/@pipeletteio/nop/src/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["../../../src/index.ts"],"sourcesContent":["/**\n * A nop function which can be used to replace non-cancelable calls.\n */\nexport function nop (..._: any[]): void {}\n\n/**\n * Check if argument is the shared nop function.\n */\nexport function isNop (arg: any): boolean {\n return arg === nop;\n}\n"],"names":["nop","isNop","_","arg"],"mappings":"AAGA;QAAgBA,GAAG,GAAHA,GAAG;QAKHC,KAAK,GAALA,KAAK;AALd,SAASD,GAAG,CAAE,GAAGE,CAAC,AAAO,EAAQ,EAAE;AAKnC,SAASD,KAAK,CAAEE,GAAQ,EAAW;IACxC,OAAOA,GAAG,KAAKH,GAAG,CAAC;CACpB"} \ No newline at end of file diff --git a/WechatBot/node_modules/@tokenizer/token/README.md b/WechatBot/node_modules/@tokenizer/token/README.md deleted file mode 100644 index 411604920..000000000 --- a/WechatBot/node_modules/@tokenizer/token/README.md +++ /dev/null @@ -1,19 +0,0 @@ -[![npm version](https://badge.fury.io/js/%40tokenizer%2Ftoken.svg)](https://www.npmjs.com/package/@tokenizer/token) -[![npm downloads](http://img.shields.io/npm/dm/@tokenizer/token.svg)](https://npmcharts.com/compare/@tokenizer/token?interval=30) - -# @tokenizer/token - -TypeScript definition of an [strtok3](https://github.com/Borewit/strtok3) token. - -## Licence - -(The MIT License) - -Copyright (c) 2020 Borewit - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/WechatBot/node_modules/@tokenizer/token/index.d.ts b/WechatBot/node_modules/@tokenizer/token/index.d.ts deleted file mode 100644 index 3703b77cd..000000000 --- a/WechatBot/node_modules/@tokenizer/token/index.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Read-only token - * See https://github.com/Borewit/strtok3 for more information - */ -export interface IGetToken { - - /** - * Length of encoded token in bytes - */ - len: number; - - /** - * Decode value from buffer at offset - * @param array - Uint8Array to read the decoded value from - * @param offset - Decode offset - * @return decoded value - */ - get(array: Array, offset: number): Value; -} - -export interface IToken extends IGetToken { - /** - * Encode value to buffer - * @param array - Uint8Array to write the encoded value to - * @param offset - Buffer write offset - * @param value - Value to decode of type T - * @return offset plus number of bytes written - */ - put(array: Array, offset: number, value: Value): number -} diff --git a/WechatBot/node_modules/@tokenizer/token/package.json b/WechatBot/node_modules/@tokenizer/token/package.json deleted file mode 100644 index 4bb38fd26..000000000 --- a/WechatBot/node_modules/@tokenizer/token/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "@tokenizer/token", - "version": "0.3.0", - "description": "TypeScript definition for strtok3 token", - "main": "", - "types": "index.d.ts", - "files": [ - "index.d.ts" - ], - "keywords": [ - "token", - "interface", - "tokenizer", - "TypeScript" - ], - "author": { - "name": "Borewit", - "url": "https://github.com/Borewit" - }, - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/Borewit/tokenizer-token.git" - }, - "bugs": { - "url": "https://github.com/Borewit/tokenizer-token/issues" - }, - "typeScriptVersion": "3.0", - "dependencies": {}, - "devDependencies": { - "@types/node": "^13.1.0" - } -} diff --git a/WechatBot/node_modules/@types/frida-gum/LICENSE b/WechatBot/node_modules/@types/frida-gum/LICENSE deleted file mode 100644 index 9e841e7a2..000000000 --- a/WechatBot/node_modules/@types/frida-gum/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/WechatBot/node_modules/@types/frida-gum/README.md b/WechatBot/node_modules/@types/frida-gum/README.md deleted file mode 100644 index aa2f6cc3f..000000000 --- a/WechatBot/node_modules/@types/frida-gum/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# Installation -> `npm install --save @types/frida-gum` - -# Summary -This package contains type definitions for frida-gum (https://github.com/frida/frida). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/frida-gum. - -### Additional Details - * Last updated: Tue, 01 Feb 2022 05:31:28 GMT - * Dependencies: none - * Global values: `ApiResolver`, `Arm64Instruction`, `Arm64Relocator`, `Arm64Writer`, `ArmInstruction`, `ArmRelocator`, `ArmWriter`, `Backtracer`, `CModule`, `DebugSymbol`, `File`, `Frida`, `IOStream`, `InputStream`, `Instruction`, `Int64`, `Interceptor`, `InvocationListener`, `InvocationReturnValue`, `Java`, `Kernel`, `MatchPattern`, `Memory`, `MemoryAccessMonitor`, `MipsInstruction`, `MipsRelocator`, `MipsWriter`, `Module`, `ModuleMap`, `NULL`, `NativeCallback`, `NativeFunction`, `NativePointer`, `ObjC`, `OutputStream`, `Process`, `Script`, `Socket`, `SocketConnection`, `SqliteDatabase`, `SqliteStatement`, `Stalker`, `SystemFunction`, `Thread`, `ThumbRelocator`, `ThumbWriter`, `UInt64`, `UnixInputStream`, `UnixOutputStream`, `Win32InputStream`, `Win32OutputStream`, `X86Instruction`, `X86Relocator`, `X86Writer`, `clearImmediate`, `clearInterval`, `clearTimeout`, `hexdump`, `int64`, `ptr`, `recv`, `rpc`, `send`, `setImmediate`, `setInterval`, `setTimeout`, `uint64` - -# Credits -These definitions were written by [Ole André Vadla Ravnås](https://github.com/oleavr), and [Francesco Tamagni](https://github.com/mrmacete). diff --git a/WechatBot/node_modules/@types/frida-gum/index.d.ts b/WechatBot/node_modules/@types/frida-gum/index.d.ts deleted file mode 100644 index 698bbdde3..000000000 --- a/WechatBot/node_modules/@types/frida-gum/index.d.ts +++ /dev/null @@ -1,7723 +0,0 @@ -// Type definitions for non-npm package frida-gum 17.3 -// Project: https://github.com/frida/frida -// Definitions by: Ole André Vadla Ravnås -// Francesco Tamagni -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// Minimum TypeScript Version: 4.1 - -/** - * Returns a hexdump of the provided ArrayBuffer or NativePointerValue target. - * - * @param target The ArrayBuffer or NativePointerValue to dump. - * @param options Options customizing the output. - */ -declare function hexdump(target: ArrayBuffer | NativePointerValue, options?: HexdumpOptions): string; - -interface HexdumpOptions { - /** - * Specifies byte offset of where to start dumping. Defaults to 0. - */ - offset?: number | undefined; - - /** - * Limits how many bytes to dump. - */ - length?: number | undefined; - - /** - * Whether a header should be included. Defaults to true. - */ - header?: boolean | undefined; - - /** - * Whether ANSI colors should be used. Defaults to false. - */ - ansi?: boolean | undefined; -} - -/** - * Short-hand for `new Int64(value)`. - */ -declare function int64(value: string | number): Int64; - -/** - * Short-hand for `new UInt64(value)`. - */ -declare function uint64(value: string | number): UInt64; - -/** - * Short-hand for `new NativePointer(value)`. - */ -declare function ptr(value: string | number): NativePointer; - -/** - * Short-hand for `ptr("0")`. - */ -declare const NULL: NativePointer; - -/** - * Requests callback to be called on the next message received from your Frida-based application. - * - * This will only give you one message, so you need to call `recv()` again to receive the next one. - */ -declare function recv(callback: MessageCallback): MessageRecvOperation; - -/** - * Requests callback to be called when the next message of the given `type` has been received from your - * Frida-based application. - * - * This will only give you one message, so you need to call `recv()` again to receive the next one. - */ -declare function recv(type: string, callback: MessageCallback): MessageRecvOperation; - -interface MessageCallback { (message: any, data: ArrayBuffer | null): void; } - -interface MessageRecvOperation { - /** - * Blocks until the message has been received and callback has returned. - */ - wait(): void; -} - -/** - * Sends a JSON-serializable message to your Frida-based application, - * with (optionally) some raw binary data included. The latter is useful - * if you e.g. dumped some memory using `NativePointer#readByteArray()`. - * - * @param message Any JSON-serializable value. - * @param data Raw binary data. - */ -declare function send(message: any, data?: ArrayBuffer | number[] | null): void; - -/** - * Calls `func` after `delay` milliseconds, or if omitted: as soon as Frida's - * JavaScript thread is idle. Any additional `params` are passed along. - * - * Returns an id that can be passed to `clearTimeout()` to cancel it. - */ -declare function setTimeout(func: ScheduledCallback, delay?: number, ...params: any[]): TimeoutId; - -/** - * Cancels a previously scheduled `setTimeout()`. - */ -declare function clearTimeout(id: TimeoutId): void; - -/** - * Opaque ID returned by `setTimeout()`. Pass it to `clearTimeout()` to cancel a pending `setTimeout()`. - */ -type TimeoutId = number; - -/** - * Calls `func` every `delay` milliseconds, optionally passing it the provided params. - * Returns an id that can be passed to clearInterval() to cancel it. - */ -declare function setInterval(func: ScheduledCallback, delay: number, ...params: any[]): IntervalId; - -/** - * Cancels a previously scheduled `setInterval()`. - */ -declare function clearInterval(id: IntervalId): void; - -/** - * Opaque ID returned by `setInterval()`. Pass it to `clearInterval()` to cancel a pending `setInterval()`. - */ -type IntervalId = number; - -/** - * Schedules `func` to be called on Frida's JavaScript thread, optionally passing it the provided params. - * Returns an id that can be passed to clearImmediate() to cancel it. - */ -declare function setImmediate(func: ScheduledCallback, ...params: any[]): ImmediateId; - -/** - * Cancels a previously scheduled `clearImmediate()`. - */ -declare function clearImmediate(id: ImmediateId): void; - -/** - * Opaque ID returned by `setImmediate()`. Pass it to `clearImmediate()` to cancel a pending `setImmediate()`. - */ -type ImmediateId = number; - -type ScheduledCallback = (...params: any[]) => void; - -declare namespace rpc { - /** - * Empty object that you can either replace or insert into to expose an RPC-style API to your application. - * The key specifies the method name and the value is your exported function. This function may either return - * a plain value for returning that to the caller immediately, or a Promise for returning asynchronously. - */ - let exports: RpcExports; -} - -interface RpcExports { - [name: string]: AnyFunction; -} - -type AnyFunction = (...args: any[]) => any; - -declare namespace Frida { - /** - * The current Frida version. - */ - const version: string; - - /** - * The current size – in bytes – of Frida’s private heap, which is shared by all scripts and Frida’s own runtime. - * This is useful for keeping an eye on how much memory your instrumentation is using out of the total consumed by - * the hosting process. - */ - const heapSize: number; -} - -declare namespace Script { - /** - * Runtime being used. - */ - const runtime: ScriptRuntime; - - /** - * Runs `func` on the next tick, i.e. when the current native thread exits - * the JavaScript runtime. Any additional `params` are passed to it. - */ - function nextTick(func: ScheduledCallback, ...params: any[]): void; - - /** - * Temporarily prevents the current script from being unloaded. - * This is reference-counted, so there must be one matching `unpin()` - * happening at a later point. - * - * Typically used in the callback of `Script.bindWeak()` when you need to - * schedule cleanup on another thread. - */ - function pin(): void; - - /** - * Reverses a previous `pin()` so the current script may be unloaded. - */ - function unpin(): void; - - /** - * Starts monitoring the lifetime of `target`. Calls `callback` as soon as - * value has been garbage-collected, or the script is about to get - * unloaded. - * - * Useful when you're building a language-binding where you need to free - * native resources when a JS value is no longer needed. - * - * Be careful so `callback` is not a closure that accidentally captures - * `target` and keeps it alive beyond its intended lifetime. - * - * @param target Heap-allocated JavaScript value to monitor lifetime of. - * @param callback Function to call when `target` gets GCed. - */ - function bindWeak(target: any, callback: WeakRefCallback): WeakRefId; - - /** - * Stops monitoring the value passed to `Script.bindWeak()` and calls the - * callback immediately. - * - * @param id ID returned by a previous call to `Script.bindWeak()`. - */ - function unbindWeak(id: WeakRefId): void; - - /** - * Installs or uninstalls a handler that is used to resolve attempts to - * access non-existent global variables. - * - * Useful for implementing a REPL where unknown identifiers may be fetched - * lazily from a database. - * - * @param handler The handler to install, or `null` to uninstall a - * previously installed handler. - */ - function setGlobalAccessHandler(handler: GlobalAccessHandler | null): void; -} - -type ScriptRuntime = "DUK" | "V8"; - -type WeakRefCallback = () => void; - -/** - * Opaque ID returned by `Script.bindWeak()`. Pass it to `Script.unbindWeak()` - * to stop monitoring the target value. - */ -type WeakRefId = number; - -interface GlobalAccessHandler { - /** - * Queries which additional globals exist. - */ - enumerate(): string[]; - - /** - * Called whenever an attempt to access a non-existent global variable is - * made. Return `undefined` to treat the variable as inexistent. - * - * @param property Name of non-existent global that is being accessed. - */ - get(property: string): any; -} - -declare namespace Process { - /** - * PID of the current process. - */ - const id: number; - - /** - * Architecture of the current process. - */ - const arch: Architecture; - - /** - * Platform of the current process. - */ - const platform: Platform; - - /** - * Size of a virtual memory page in bytes. This is used to make your scripts more portable. - */ - const pageSize: number; - - /** - * Size of a pointer in bytes. This is used to make your scripts more portable. - */ - const pointerSize: number; - - /** - * Whether Frida will avoid modifying existing code in memory and will not try to run unsigned code. - * Currently this property will always be set to Optional unless you are using Gadget and have configured - * it to assume that code-signing is required. This property allows you to determine whether the Interceptor - * API is off limits, and whether it is safe to modify code or run unsigned code. - */ - const codeSigningPolicy: CodeSigningPolicy; - - /** - * Determines whether a debugger is currently attached. - */ - function isDebuggerAttached(): boolean; - - /** - * Gets this thread’s OS-specific id. - */ - function getCurrentThreadId(): ThreadId; - - /** - * Enumerates all threads. - */ - function enumerateThreads(): ThreadDetails[]; - - /** - * Looks up a module by address. Returns null if not found. - */ - function findModuleByAddress(address: NativePointerValue): Module | null; - - /** - * Looks up a module by address. Throws an exception if not found. - */ - function getModuleByAddress(address: NativePointerValue): Module; - - /** - * Looks up a module by name. Returns null if not found. - */ - function findModuleByName(name: string): Module | null; - - /** - * Looks up a module by name. Throws an exception if not found. - */ - function getModuleByName(name: string): Module; - - /** - * Enumerates modules loaded right now. - */ - function enumerateModules(): Module[]; - - /** - * Looks up a memory range by address. Returns null if not found. - */ - function findRangeByAddress(address: NativePointerValue): RangeDetails | null; - - /** - * Looks up a memory range by address. Throws an exception if not found. - */ - function getRangeByAddress(address: NativePointerValue): RangeDetails; - - /** - * Enumerates memory ranges satisfying `specifier`. - * - * @param specifier The kind of ranges to include. - */ - function enumerateRanges(specifier: PageProtection | EnumerateRangesSpecifier): RangeDetails[]; - - /** - * Just like `enumerateRanges()`, but for individual memory allocations known to the system heap. - */ - function enumerateMallocRanges(): RangeDetails[]; - - /** - * Installs a process-wide exception handler callback that gets a chance to - * handle native exceptions before the hosting process itself does. - * - * It is up to your callback to decide what to do with the exception. - * It could for example: - * - Log the issue. - * - Notify your application through a `send()` followed by a blocking `recv()` for acknowledgement of the sent data - * being received. - * - Modify registers and memory to recover from the exception. - * - * You should return `true` if you did handle the exception, in which case - * Frida will resume the thread immediately. If you do not return `true`, - * Frida will forward the exception to the hosting process' exception - * handler, if it has one, or let the OS terminate the process. - */ - function setExceptionHandler(callback: ExceptionHandlerCallback): void; -} - -declare class Module { - /** - * Canonical module name. - */ - name: string; - - /** - * Base address. - */ - base: NativePointer; - - /** - * Size in bytes. - */ - size: number; - - /** - * Full filesystem path. - */ - path: string; - - /** - * Enumerates imports of module. - */ - enumerateImports(): ModuleImportDetails[]; - - /** - * Enumerates exports of module. - */ - enumerateExports(): ModuleExportDetails[]; - - /** - * Enumerates symbols of module. - */ - enumerateSymbols(): ModuleSymbolDetails[]; - - /** - * Enumerates memory ranges of module with the `name` as seen in `Process#enumerateModules()`. - * - * @param protection Minimum protection of ranges to include. - */ - enumerateRanges(protection: PageProtection): RangeDetails[]; - - /** - * Looks up the absolute address of the export named `exportName`. - * - * Returns null if the export doesn't exist. - * - * @param exportName Export name to find the address of. - */ - findExportByName(exportName: string): NativePointer | null; - - /** - * Looks up the absolute address of the export named `exportName`. - * - * Throws an exception if the export doesn't exist. - * - * @param exportName Export name to find the address of. - */ - getExportByName(exportName: string): NativePointer; - - /** - * Loads the specified module. - */ - static load(name: string): Module; - - /** - * Ensures that initializers of the specified module have been run. This is important during early instrumentation, - * i.e. code run early in the process lifetime, to be able to safely interact with APIs. - * - * One such use-case is interacting with ObjC classes provided by a given module. - */ - static ensureInitialized(name: string): void; - - /** - * Looks up the base address of the `name` module. Returns null if the module isn’t loaded. - * - * @param name Module name or path. - */ - static findBaseAddress(name: string): NativePointer | null; - - /** - * Looks up the base address of the `name` module. Throws an exception if the module isn’t loaded. - * - * @param name Module name or path. - */ - static getBaseAddress(name: string): NativePointer; - - /** - * Looks up the absolute address of the export named `exportName` in `moduleName`. If the module isn’t known you may - * pass null instead of its name, but this can be a costly search and should be avoided. - * - * Returns null if the module or export doesn't exist. - * - * @param moduleName Module name or path. - * @param exportName Export name to find the address of. - */ - static findExportByName(moduleName: string | null, exportName: string): NativePointer | null; - - /** - * Looks up the absolute address of the export named `exportName` in `moduleName`. If the module isn’t known you may - * pass null instead of its name, but this can be a costly search and should be avoided. - * - * Throws an exception if the module or export doesn't exist. - * - * @param moduleName Module name or path. - * @param exportName Export name to find the address of. - */ - static getExportByName(moduleName: string | null, exportName: string): NativePointer; -} - -declare class ModuleMap { - /** - * Creates a new module map optimized for determining which module a given memory address belongs to, if any. - * Takes a snapshot of the currently loaded modules when created, which may be refreshed by calling `update()`. - * - * The `filter` argument is optional and allows you to pass a function used for filtering the list of modules. - * This is useful if you e.g. only care about modules owned by the application itself, and allows you to quickly - * check if an address belongs to one of its modules. The filter function is given the module's details and must - * return true for each module that should be kept in the map. It is called for each loaded module every time the - * map is updated. - * - * @param filter Filter function to decide which modules are kept in the map. - */ - constructor(filter?: ModuleMapFilter); - - /** - * Determines if `address` belongs to any of the contained modules. - * - * @param address Address that might belong to a module in the map. - */ - has(address: NativePointerValue): boolean; - - /** - * Looks up a module by address. Returns null if not found. - * - * @param address Address that might belong to a module in the map. - */ - find(address: NativePointerValue): Module | null; - - /** - * Looks up a module by address. Throws an exception if not found. - * - * @param address Address that might belong to a module in the map. - */ - get(address: NativePointerValue): Module; - - /** - * Just like `find()`, but only returns the `name` field, which means less overhead when you don’t need the - * other details. Returns null if not found. - * - * @param address Address that might belong to a module in the map. - */ - findName(address: NativePointerValue): string | null; - - /** - * Just like `get()`, but only returns the `name` field, which means less overhead when you don’t need the - * other details. Throws an exception if not found. - * - * @param address Address that might belong to a module in the map. - */ - getName(address: NativePointerValue): string; - - /** - * Just like `find()`, but only returns the `path` field, which means less overhead when you don’t need the - * other details. Returns null if not found. - * - * @param address Address that might belong to a module in the map. - */ - findPath(address: NativePointerValue): string | null; - - /** - * Just like `get()`, but only returns the `path` field, which means less overhead when you don’t need the - * other details. Throws an exception if not found. - * - * @param address Address that might belong to a module in the map. - */ - getPath(address: NativePointerValue): string; - - /** - * Updates the map. - * - * You should call this after a module has been loaded or unloaded to avoid operating on stale data. - */ - update(): void; - - /** - * Gets the modules currently in the map. The returned array is a deep copy and will not mutate after a - * call to `update()`. - */ - values(): Module[]; -} - -type ModuleMapFilter = (m: Module) => boolean; - -declare namespace Memory { - /** - * Scans memory for occurences of `pattern` in the memory range given by `address` and `size`. - * - * @param address Starting address to scan from. - * @param size Number of bytes to scan. - * @param pattern Match pattern, see `MatchPattern` for details. - * @param callbacks Object with callbacks. - */ - function scan(address: NativePointerValue, size: number | UInt64, pattern: string | MatchPattern, - callbacks: MemoryScanCallbacks): Promise; - - /** - * Synchronous version of `scan()`. - * - * @param address Starting address to scan from. - * @param size Number of bytes to scan. - * @param pattern Match pattern, see `MatchPattern` for details. - */ - function scanSync(address: NativePointerValue, size: number | UInt64, pattern: string | MatchPattern): MemoryScanMatch[]; - - /** - * Allocates `size` bytes of memory on Frida's private heap, or, if `size` is a multiple of Process#pageSize, - * one or more raw memory pages managed by the OS. The allocated memory will be released when the returned - * NativePointer value gets garbage collected. This means you need to keep a reference to it while the pointer - * is being used by code outside the JavaScript runtime. - * - * @param size Number of bytes to allocate. - * @param options Options to customize the memory allocation. - */ - function alloc(size: number | UInt64, options?: MemoryAllocOptions): NativePointer; - - /** - * Allocates, encodes and writes out `str` as a UTF-8 string on Frida's private heap. - * See Memory#alloc() for details about its lifetime. - * - * @param str String to allocate. - */ - function allocUtf8String(str: string): NativePointer; - - /** - * Allocates, encodes and writes out `str` as a UTF-16 string on Frida's private heap. - * See Memory#alloc() for details about its lifetime. - * - * @param str String to allocate. - */ - function allocUtf16String(str: string): NativePointer; - - /** - * Allocates, encodes and writes out `str` as an ANSI string on Frida's private heap. - * See Memory#alloc() for details about its lifetime. - * - * @param str String to allocate. - */ - function allocAnsiString(str: string): NativePointer; - - /** - * Just like memcpy. - * - * @param dst Destination address. - * @param src Sources address. - * @param n Number of bytes to copy. - */ - function copy(dst: NativePointerValue, src: NativePointerValue, n: number | UInt64): void; - - /** - * Short-hand for Memory#alloc() followed by Memory#copy(). See Memory#alloc() for details about lifetime. - * - * @param address Address to copy from. - * @param size Number of bytes to copy. - */ - function dup(address: NativePointerValue, size: number | UInt64): NativePointer; - - /** - * Changes the page protection on a region of memory. - * - * @param address Starting address. - * @param size Number of bytes. Must be a multiple of Process#pageSize. - * @param protection Desired page protection. - */ - function protect(address: NativePointerValue, size: number | UInt64, protection: PageProtection): boolean; - - /** - * Safely modifies `size` bytes at `address`. The supplied function `apply` gets called with a writable pointer - * where you must write the desired modifications before returning. Do not make any assumptions about this being - * the same location as address, as some systems require modifications to be written to a temporary location before - * being mapped into memory on top of the original memory page (e.g. on iOS, where directly modifying in-memory - * code may result in the process losing its CS_VALID status). - * - * @param address Starting address to modify. - * @param size Number of bytes to modify. - * @param apply Function that applies the desired changes. - */ - function patchCode(address: NativePointerValue, size: number | UInt64, apply: MemoryPatchApplyCallback): void; -} - -interface MemoryRange { - /** - * Base address. - */ - base: NativePointer; - - /** - * Size in bytes. - */ - size: number; -} - -/** - * Monitors one or more memory ranges for access, and notifies on the first - * access of each contained memory page. - * - * Only available on Windows for now. We would love to support this on the other - * platforms too, so if you find this useful and would like to help out, please - * get in touch. - */ -declare namespace MemoryAccessMonitor { - /** - * Starts monitoring one or more memory ranges for access, and notifies on - * the first access of each contained memory page. - * - * @param ranges One or more ranges to monitor. - * @param callbacks Callbacks to be notified on access. - */ - function enable(ranges: MemoryAccessRange | MemoryAccessRange[], callbacks: MemoryAccessCallbacks): void; - - /** - * Stops monitoring the remaining memory ranges passed to - * `MemoryAccessMonitor.enable()`. - */ - function disable(): void; -} - -interface MemoryAccessRange { - /** - * Base address. - */ - base: NativePointer; - - /** - * Size in bytes. - */ - size: number; -} - -/** - * Callbacks to be notified synchronously on memory access. - */ -interface MemoryAccessCallbacks { - onAccess: (details: MemoryAccessDetails) => void; -} - -interface MemoryAccessDetails { - /** - * The kind of operation that triggered the access. - */ - operation: MemoryOperation; - - /** - * Address of instruction performing the access. - */ - from: NativePointer; - - /** - * Address being accessed. - */ - address: NativePointer; - - /** - * Index of the accessed range in the ranges provided to - * `MemoryAccessMonitor.enable()`. - */ - rangeIndex: number; - - /** - * Index of the accessed memory page inside the specified range. - */ - pageIndex: number; - - /** - * Overall number of pages which have been accessed so far, and are thus - * no longer being monitored. - */ - pagesCompleted: number; - - /** - * Overall number of pages that were initially monitored. - */ - pagesTotal: number; -} - -declare namespace Thread { - /** - * Generates a backtrace for the given thread's `context`. - * - * If you call this from Interceptor's `onEnter` or `onLeave` callbacks - * you should provide `this.context` for the optional `context` argument, - * as it will give you a more accurate backtrace. Omitting `context` means - * the backtrace will be generated from the current stack location, which - * may not give you a very good backtrace due to the JavaScript VM's - * potentially JITed stack frames. - * - * @param context CPU context to use for generating the backtrace. - * @param backtracer The kind of backtracer to use. Must be either - * `Backtracer.FUZZY` or `Backtracer.ACCURATE`, - * where the latter is the default if not specified. - */ - function backtrace(context?: CpuContext, backtracer?: Backtracer): NativePointer[]; - - /** - * Suspends execution of the current thread for `delay` seconds. - * - * For example `0.05` to sleep for 50 ms. - * - * @param delay Delay in seconds. - */ - function sleep(delay: number): void; -} - -// tslint:disable-next-line:no-unnecessary-class -declare class Backtracer { - /** - * The accurate kind of backtracers rely on debugger-friendly binaries or - * presence of debug information to do a good job, but avoid false - * positives. - */ - static ACCURATE: Backtracer; - - /** - * The fuzzy backtracers perform forensics on the stack in order to guess - * the return addresses, which means you will get false positives, but it - * will work on any binary. - */ - static FUZZY: Backtracer; -} - -type Architecture = - | "ia32" - | "x64" - | "arm" - | "arm64" - | "mips" - ; - -type Platform = - | "windows" - | "darwin" - | "linux" - | "qnx" - ; - -type CodeSigningPolicy = "optional" | "required"; - -/** - * Given as a string of the form: rwx, where rw- means “readable and writable”. - */ -type PageProtection = string; - -type ThreadId = number; - -type ThreadState = - | "running" - | "stopped" - | "waiting" - | "uninterruptible" - | "halted" - ; - -interface ThreadDetails { - /** - * OS-specific ID. - */ - id: ThreadId; - - /** - * Snapshot of state. - */ - state: ThreadState; - - /** - * Snapshot of CPU registers. - */ - context: CpuContext; -} - -interface KernelModuleDetails { - /** - * Canonical module name. - */ - name: string; - - /** - * Base address. - */ - base: UInt64; - - /** - * Size in bytes. - */ - size: number; -} - -interface ModuleImportDetails { - /** - * The kind of import, if available. - */ - type?: ModuleImportType | undefined; - - /** - * Imported symbol name. - */ - name: string; - - /** - * Module name, if available. - */ - module?: string | undefined; - - /** - * Absolute address, if available. - */ - address?: NativePointer | undefined; - - /** - * Memory location where the import is stored, if available. - */ - slot?: NativePointer | undefined; -} - -interface ModuleExportDetails { - /** - * The kind of export. - */ - type: ModuleExportType; - - /** - * Exported symbol name. - */ - name: string; - - /** - * Absolute address. - */ - address: NativePointer; -} - -interface ModuleSymbolDetails { - /** - * Whether symbol is globally visible. - */ - isGlobal: boolean; - - /** - * The kind of symbol. - */ - type: ModuleSymbolType; - - /** - * Which section this symbol resides in, if available. - */ - section?: ModuleSymbolSectionDetails | undefined; - - /** - * Symbol name. - */ - name: string; - - /** - * Absolute address. - */ - address: NativePointer; - - /** - * Size in bytes, if available. - */ - size?: number | undefined; -} - -type ModuleImportType = "function" | "variable"; - -type ModuleExportType = "function" | "variable"; - -type ModuleSymbolType = - // Common - | "unknown" - | "section" - - // Mach-O - | "undefined" - | "absolute" - | "prebound-undefined" - | "indirect" - - // ELF - | "object" - | "function" - | "file" - | "common" - | "tls" - ; - -interface ModuleSymbolSectionDetails { - /** - * Section index, segment name (if applicable) and section name – same format as r2’s section IDs. - */ - id: string; - - /** - * Section's memory protection. - */ - protection: PageProtection; -} - -interface RangeDetails { - /** - * Base address. - */ - base: NativePointer; - - /** - * Size in bytes. - */ - size: number; - - /** - * Protection. - */ - protection: PageProtection; - - /** - * File mapping details, if available. - */ - file?: FileMapping | undefined; -} - -interface KernelRangeDetails { - /** - * Base address. - */ - base: UInt64; - - /** - * Size in bytes. - */ - size: number; - - /** - * Protection. - */ - protection: PageProtection; -} - -interface KernelModuleRangeDetails { - /** - * Name. - */ - name: string; - - /** - * Base address. - */ - base: UInt64; - - /** - * Size in bytes. - */ - size: number; - - /** - * Protection. - */ - protection: PageProtection; -} - -interface FileMapping { - /** - * Full filesystem path. - */ - path: string; - - /** - * Offset in the mapped file on disk, in bytes. - */ - offset: number; - - /** - * Size in the mapped file on disk, in bytes. - */ - size: number; -} - -interface EnumerateRangesSpecifier { - /** - * Minimum protection required to be included in the result. - */ - protection: PageProtection; - - /** - * Whether neighboring ranges with the same protection should be coalesced. The default is false. - */ - coalesce: boolean; -} - -type ExceptionHandlerCallback = (exception: ExceptionDetails) => boolean | void; - -interface ExceptionDetails { - /** - * The kind of exception that occurred. - */ - type: ExceptionType; - - /** - * Address where the exception occurred. - */ - address: NativePointer; - - /** - * Memory operation details, if relevant. - */ - memory?: ExceptionMemoryDetails | undefined; - - /** - * CPU registers. You may also update register values by assigning to these keys. - */ - context: CpuContext; - - /** - * Address of the OS and architecture-specific CPU context struct. - * - * This is only exposed as a last resort for edge-cases where `context` isn’t providing enough details. - * We would however discourage using this and rather submit a pull-request to add the missing bits needed - * for your use-case. - */ - nativeContext: NativePointer; -} - -type ExceptionType = - | "abort" - | "access-violation" - | "guard-page" - | "illegal-instruction" - | "stack-overflow" - | "arithmetic" - | "breakpoint" - | "single-step" - | "system" - ; - -interface ExceptionMemoryDetails { - /** - * The kind of operation that triggered the exception. - */ - operation: MemoryOperation; - - /** - * Address that was accessed when the exception occurred. - */ - address: NativePointer; -} - -type MemoryOperation = "read" | "write" | "execute"; - -interface EnumerateCallbacks { - onMatch: (item: T) => void | EnumerateAction; - onComplete: () => void; -} - -type EnumerateAction = "stop"; - -interface MemoryScanCallbacks { - /** - * Called with each occurence that was found. - * - * @param address Memory address where a match was found. - * @param size Size of this match. - */ - onMatch: (address: NativePointer, size: number) => void | EnumerateAction; - - /** - * Called when there was a memory access error while scanning. - * - * @param reason Why the memory access failed. - */ - onError?: ((reason: string) => void) | undefined; - - /** - * Called when the memory range has been fully scanned. - */ - onComplete?: () => void; -} - -interface MemoryScanMatch { - /** - * Memory address where a match was found. - */ - address: NativePointer; - - /** - * Size of this match. - */ - size: number; -} - -interface KernelMemoryScanCallbacks { - /** - * Called with each occurence that was found. - * - * @param address Memory address where a match was found. - * @param size Size of this match. - */ - onMatch: (address: UInt64, size: number) => void | EnumerateAction; - - /** - * Called when there was a memory access error while scanning. - * - * @param reason Why the memory access failed. - */ - onError?: ((reason: string) => void) | undefined; - - /** - * Called when the memory range has been fully scanned. - */ - onComplete?: () => void; -} - -interface KernelMemoryScanMatch { - /** - * Memory address where a match was found. - */ - address: UInt64; - - /** - * Size of this match. - */ - size: number; -} - -type MemoryAllocOptions = Record | MemoryAllocNearOptions; - -interface MemoryAllocNearOptions { - /** - * Memory address to try allocating near. - */ - near: NativePointer; - - /** - * Maximum distance to the given memory address, in bytes. - */ - maxDistance: number; -} - -type MemoryPatchApplyCallback = (code: NativePointer) => void; - -/** - * Represents a signed 64-bit value. - */ -declare class Int64 { - /** - * Creates a new Int64 from `v`, which is either a string containing the value in decimal, or hexadecimal - * if prefixed with “0x”, or a number. You may use the int64(v) short-hand for brevity. - */ - constructor(v: string | number | Int64); - - /** - * Makes a new Int64 whose value is `this` + `v`. - */ - add(v: Int64 | number | string): Int64; - - /** - * Makes a new Int64 whose value is `this` - `v`. - */ - sub(v: Int64 | number | string): Int64; - - /** - * Makes a new Int64 whose value is `this` & `v`. - */ - and(v: Int64 | number | string): Int64; - - /** - * Makes a new Int64 whose value is `this` | `v`. - */ - or(v: Int64 | number | string): Int64; - - /** - * Makes a new Int64 whose value is `this` ^ `v`. - */ - xor(v: Int64 | number | string): Int64; - - /** - * Makes a new Int64 whose value is `this` << `v`. - */ - shl(v: Int64 | number | string): Int64; - - /** - * Makes a new Int64 whose value is `this` >> `v`. - */ - shr(v: Int64 | number | string): Int64; - - /** - * Makes a new Int64 whose value is ~`this`. - */ - not(): Int64; - - /** - * Returns an integer comparison result just like String#localeCompare(). - */ - compare(v: Int64 | number | string): number; - - /** - * Returns a boolean indicating whether `v` is equal to `this`. - */ - equals(v: Int64 | number | string): boolean; - - /** - * Converts to a number. - */ - toNumber(): number; - - /** - * Converts to a string, optionally with a custom `radix`. - */ - toString(radix?: number): string; - - /** - * Converts to a JSON-serializable value. Same as `toString()`. - */ - toJSON(): string; - - /** - * Converts to a number. Same as `toNumber()`. - */ - valueOf(): number; -} - -/** - * Represents an unsigned 64-bit value. - */ -declare class UInt64 { - /** - * Creates a new UInt64 from `v`, which is either a string containing the value in decimal, or hexadecimal - * if prefixed with “0x”, or a number. You may use the uint64(v) short-hand for brevity. - */ - constructor(v: string | number | UInt64); - - /** - * Makes a new UInt64 whose value is `this` + `v`. - */ - add(v: UInt64 | number | string): UInt64; - - /** - * Makes a new UInt64 whose value is `this` - `v`. - */ - sub(v: UInt64 | number | string): UInt64; - - /** - * Makes a new UInt64 whose value is `this` & `v`. - */ - and(v: UInt64 | number | string): UInt64; - - /** - * Makes a new UInt64 whose value is `this` | `v`. - */ - or(v: UInt64 | number | string): UInt64; - - /** - * Makes a new UInt64 whose value is `this` ^ `v`. - */ - xor(v: UInt64 | number | string): UInt64; - - /** - * Makes a new UInt64 whose value is `this` << `v`. - */ - shr(v: UInt64 | number | string): UInt64; - - /** - * Makes a new UInt64 whose value is `this` >> `v`. - */ - shl(v: UInt64 | number | string): UInt64; - - /** - * Makes a new UInt64 whose value is ~`this`. - */ - not(): UInt64; - - /** - * Returns an integer comparison result just like String#localeCompare(). - */ - compare(v: UInt64 | number | string): number; - - /** - * Returns a boolean indicating whether `v` is equal to `this`. - */ - equals(v: UInt64 | number | string): boolean; - - /** - * Converts to a number. - */ - toNumber(): number; - - /** - * Converts to a string, optionally with a custom `radix`. - */ - toString(radix?: number): string; - - /** - * Converts to a JSON-serializable value. Same as `toString()`. - */ - toJSON(): string; - - /** - * Converts to a number. Same as `toNumber()`. - */ - valueOf(): number; -} - -/** - * Represents a native pointer value whose size depends on Process#pointerSize. - */ -declare class NativePointer { - /** - * Creates a new NativePointer from `v`, which is either a string containing the memory address in decimal, - * or hexadecimal if prefixed with “0x”, or a number. You may use the ptr(v) short-hand for brevity. - */ - constructor(v: string | number | UInt64 | Int64 | NativePointerValue); - - /** - * Returns a boolean allowing you to conveniently check if a pointer is `NULL`. - */ - isNull(): boolean; - - /** - * Makes a new NativePointer whose value is `this` + `v`. - */ - add(v: NativePointerValue | UInt64 | Int64 | number | string): NativePointer; - - /** - * Makes a new NativePointer whose value is `this` - `v`. - */ - sub(v: NativePointerValue | UInt64 | Int64 | number | string): NativePointer; - - /** - * Makes a new NativePointer whose value is `this` & `v`. - */ - and(v: NativePointerValue | UInt64 | Int64 | number | string): NativePointer; - - /** - * Makes a new NativePointer whose value is `this` | `v`. - */ - or(v: NativePointerValue | UInt64 | Int64 | number | string): NativePointer; - - /** - * Makes a new NativePointer whose value is `this` ^ `v`. - */ - xor(v: NativePointerValue | UInt64 | Int64 | number | string): NativePointer; - - /** - * Makes a new NativePointer whose value is `this` << `v`. - */ - shr(v: NativePointerValue | UInt64 | Int64 | number | string): NativePointer; - - /** - * Makes a new NativePointer whose value is `this` >> `v`. - */ - shl(v: NativePointerValue | UInt64 | Int64 | number | string): NativePointer; - - /** - * Makes a new NativePointer whose value is ~`this`. - */ - not(): NativePointer; - - /** - * Makes a new NativePointer by taking the bits of `this` and adding - * pointer authentication bits, creating a signed pointer. This is a - * no-op if the current process does not support pointer - * authentication, returning `this` instead of a new value. - * - * @param key The key to use. Defaults to `ia`. - * @param data The data to use. Defaults to `0`. - */ - sign(key?: PointerAuthenticationKey, data?: NativePointerValue | UInt64 | Int64 | number | string): NativePointer; - - /** - * Makes a new NativePointer by taking the bits of `this` and - * removing its pointer authentication bits, creating a raw pointer. - * This is a no-op if the current process does not support pointer - * authentication, returning `this` instead of a new value. - * - * @param key The key that was used to sign `this`. Defaults to `ia`. - */ - strip(key?: PointerAuthenticationKey): NativePointer; - - /** - * Makes a new NativePointer by taking `this` and blending it with - * a constant, which may in turn be passed to `sign()` as `data`. - * - * @param smallInteger Value to blend with. - */ - blend(smallInteger: number): NativePointer; - - /** - * Returns a boolean indicating whether `v` is equal to `this`; i.e. it contains the same memory address. - */ - equals(v: NativePointerValue | UInt64 | Int64 | number | string): boolean; - - /** - * Returns an integer comparison result just like String#localeCompare(). - */ - compare(v: NativePointerValue | UInt64 | Int64 | number | string): number; - - /** - * Converts to a signed 32-bit integer. - */ - toInt32(): number; - - /** - * Converts to an unsigned 32-bit integer. - */ - toUInt32(): number; - - /** - * Converts to a “0x”-prefixed hexadecimal string, unless a `radix` - * is specified. - */ - toString(radix?: number): string; - - /** - * Converts to a JSON-serializable value. Same as `toString()`. - */ - toJSON(): string; - - /** - * Returns a string containing a `Memory#scan()`-compatible match pattern for this pointer’s raw value. - */ - toMatchPattern(): string; - - readPointer(): NativePointer; - readS8(): number; - readU8(): number; - readS16(): number; - readU16(): number; - readS32(): number; - readU32(): number; - readS64(): Int64; - readU64(): UInt64; - readShort(): number; - readUShort(): number; - readInt(): number; - readUInt(): number; - readLong(): number | Int64; - readULong(): number | UInt64; - readFloat(): number; - readDouble(): number; - readByteArray(length: number): ArrayBuffer | null; - readCString(size?: number): string | null; - readUtf8String(size?: number): string | null; - readUtf16String(length?: number): string | null; - readAnsiString(size?: number): string | null; - - writePointer(value: NativePointerValue): NativePointer; - writeS8(value: number | Int64): NativePointer; - writeU8(value: number | UInt64): NativePointer; - writeS16(value: number | Int64): NativePointer; - writeU16(value: number | UInt64): NativePointer; - writeS32(value: number | Int64): NativePointer; - writeU32(value: number | UInt64): NativePointer; - writeS64(value: number | Int64): NativePointer; - writeU64(value: number | UInt64): NativePointer; - writeShort(value: number | Int64): NativePointer; - writeUShort(value: number | UInt64): NativePointer; - writeInt(value: number | Int64): NativePointer; - writeUInt(value: number | UInt64): NativePointer; - writeLong(value: number | Int64): NativePointer; - writeULong(value: number | UInt64): NativePointer; - writeFloat(value: number): NativePointer; - writeDouble(value: number): NativePointer; - writeByteArray(value: ArrayBuffer | number[]): NativePointer; - writeUtf8String(value: string): NativePointer; - writeUtf16String(value: string): NativePointer; - writeAnsiString(value: string): NativePointer; -} - -type PointerAuthenticationKey = "ia" | "ib" | "da" | "db"; - -interface ObjectWrapper { - handle: NativePointer; -} - -interface ArrayBufferConstructor { - /** - * Creates an ArrayBuffer backed by an existing memory region. Unlike - * the NativePointer `read*()` and `write*()` APIs, no validation is - * performed on access, meaning a bad pointer will crash the process. - * - * @param address Base address of the region. Passing `NULL` will result - * in an empty buffer. - * @param size Size of the region. Passing `0` will result in an empty - * buffer. - */ - wrap(address: NativePointerValue, size: number): ArrayBuffer; -} - -interface ArrayBuffer { - /** - * Gets a pointer to the base address of the ArrayBuffer's backing store. - * It is the caller's responsibility to keep the buffer alive while the - * backing store is still being used. - */ - unwrap(): NativePointer; -} - -type NativePointerValue = NativePointer | ObjectWrapper; - -declare const NativeFunction: NativeFunctionConstructor; - -interface NativeFunctionConstructor { - new ( - address: NativePointerValue, - retType: RetType, - argTypes: ArgTypes, - abiOrOptions?: NativeABI | NativeFunctionOptions, - ): NativeFunction< - GetNativeFunctionReturnValue, - ResolveVariadic, unknown[]>> - >; - readonly prototype: NativeFunction; -} - -interface NativeFunction - extends NativePointer { - (...args: ArgTypes): RetType; - apply(thisArg: NativePointerValue | null | undefined, args: ArgTypes): RetType; - call(thisArg?: NativePointerValue | null, ...args: ArgTypes): RetType; -} - -declare const SystemFunction: SystemFunctionConstructor; - -interface SystemFunctionConstructor { - new ( - address: NativePointerValue, - retType: RetType, - argTypes: ArgTypes, - abiOrOptions?: NativeABI | NativeFunctionOptions, - ): SystemFunction< - GetNativeFunctionReturnValue, - ResolveVariadic, unknown[]>> - >; - readonly prototype: SystemFunction; -} - -interface SystemFunction - extends NativePointer { - (...args: ArgTypes): SystemFunctionResult; - apply(thisArg: NativePointerValue | null | undefined, args: ArgTypes): SystemFunctionResult; - call(thisArg?: NativePointerValue | null, ...args: ArgTypes): SystemFunctionResult; -} - -type SystemFunctionResult = - | WindowsSystemFunctionResult - | UnixSystemFunctionResult - ; - -interface WindowsSystemFunctionResult { - value: Value; - lastError: number; -} - -interface UnixSystemFunctionResult { - value: Value; - errno: number; -} - -declare class NativeCallback< - RetType extends NativeCallbackReturnType, - ArgTypes extends NativeCallbackArgumentType[] | [], -> extends NativePointer { - constructor( - func: NativeCallbackImplementation< - GetNativeCallbackReturnValue, - Extract, unknown[]> - >, - retType: RetType, - argTypes: ArgTypes, - abi?: NativeABI, - ); -} - -type NativeCallbackImplementation< - RetType extends NativeCallbackReturnValue, - ArgTypes extends NativeCallbackArgumentValue[] | [], -> = (this: CallbackContext | InvocationContext, ...args: ArgTypes) => RetType; - -interface CallbackContext { - /** - * Return address. - */ - returnAddress: NativePointer; - - /** - * CPU registers, but unlike `InvocationContext` this is read-only and only - * contains the bare minimum needed for `Thread.backtrace()` - all others - * are zeroed out. - */ - context: CpuContext; -} - -type Variadic = "..."; - -type ResolveVariadic = List extends [Variadic, ...infer Tail] - ? [...Array] - : List extends [infer Head, ...infer Tail] - ? [Head, ...ResolveVariadic] - : []; - -type RecursiveValuesOf = T[keyof T] | Array>; - -type RecursiveKeysOf = keyof T | Array> | []; - -type GetValue = Type[] extends T - ? Value - : T extends keyof Map - ? Map[T] - : { [P in keyof T]: T[P] extends Type ? GetValue : never }; - -// tslint:disable-next-line:interface-over-type-literal -type BaseNativeTypeMap = { - int: number; - uint: number; - long: number; - ulong: number; - char: number; - uchar: number; - float: number; - double: number; - int8: number; - uint8: number; - int16: number; - uint16: number; - int32: number; - uint32: number; - bool: number; -}; - -type NativeFunctionArgumentTypeMap = BaseNativeTypeMap & { - void: undefined; - pointer: NativePointerValue; - size_t: number | UInt64; - ssize_t: number | Int64; - int64: number | Int64; - uint64: number | UInt64; - "...": Variadic; -}; - -type NativeFunctionArgumentValue = RecursiveValuesOf; - -type NativeFunctionArgumentType = RecursiveKeysOf; - -type GetNativeFunctionArgumentValue = GetValue< - NativeFunctionArgumentTypeMap, - NativeFunctionArgumentValue, - NativeFunctionArgumentType, - T ->; - -type NativeFunctionReturnTypeMap = BaseNativeTypeMap & { - // tslint:disable-next-line:void-return - void: void; - pointer: NativePointer; - size_t: UInt64; - ssize_t: Int64; - int64: Int64; - uint64: UInt64; -}; - -type NativeFunctionReturnValue = RecursiveValuesOf; - -type NativeFunctionReturnType = RecursiveKeysOf; - -type GetNativeFunctionReturnValue = GetValue< - NativeFunctionReturnTypeMap, - NativeFunctionReturnValue, - NativeFunctionReturnType, - T ->; - -type NativeCallbackArgumentTypeMap = BaseNativeTypeMap & { - void: undefined; - pointer: NativePointer; - size_t: UInt64; - ssize_t: Int64; - int64: Int64; - uint64: UInt64; -}; - -type NativeCallbackArgumentValue = RecursiveValuesOf; - -type NativeCallbackArgumentType = RecursiveKeysOf; - -type GetNativeCallbackArgumentValue = GetValue< - NativeCallbackArgumentTypeMap, - NativeCallbackArgumentValue, - NativeCallbackArgumentType, - T ->; - -type NativeCallbackReturnTypeMap = BaseNativeTypeMap & { - // tslint:disable-next-line:void-return - void: void; - pointer: NativePointerValue; - size_t: number | UInt64; - ssize_t: number | Int64; - int64: number | Int64; - uint64: number | UInt64; -}; - -type NativeCallbackReturnValue = RecursiveValuesOf; - -type NativeCallbackReturnType = RecursiveKeysOf; - -type GetNativeCallbackReturnValue = GetValue< - NativeCallbackReturnTypeMap, - NativeCallbackReturnValue, - NativeCallbackReturnType, - T ->; - -type NativeABI = - | "default" - | "sysv" - | "stdcall" - | "thiscall" - | "fastcall" - | "mscdecl" - | "win64" - | "unix64" - | "vfp" - ; - -interface NativeFunctionOptions { - abi?: NativeABI | undefined; - scheduling?: SchedulingBehavior | undefined; - exceptions?: ExceptionsBehavior | undefined; - traps?: CodeTraps | undefined; -} - -type SchedulingBehavior = "cooperative" | "exclusive"; - -type ExceptionsBehavior = "steal" | "propagate"; - -type CodeTraps = "default" | "all"; - -type CpuContext = PortableCpuContext | Ia32CpuContext | X64CpuContext | ArmCpuContext | Arm64CpuContext | MipsCpuContext; - -interface PortableCpuContext { - pc: NativePointer; - sp: NativePointer; -} - -interface Ia32CpuContext extends PortableCpuContext { - eax: NativePointer; - ecx: NativePointer; - edx: NativePointer; - ebx: NativePointer; - esp: NativePointer; - ebp: NativePointer; - esi: NativePointer; - edi: NativePointer; - - eip: NativePointer; -} - -interface X64CpuContext extends PortableCpuContext { - rax: NativePointer; - rcx: NativePointer; - rdx: NativePointer; - rbx: NativePointer; - rsp: NativePointer; - rbp: NativePointer; - rsi: NativePointer; - rdi: NativePointer; - - r8: NativePointer; - r9: NativePointer; - r10: NativePointer; - r11: NativePointer; - r12: NativePointer; - r13: NativePointer; - r14: NativePointer; - r15: NativePointer; - - rip: NativePointer; -} - -interface ArmCpuContext extends PortableCpuContext { - r0: NativePointer; - r1: NativePointer; - r2: NativePointer; - r3: NativePointer; - r4: NativePointer; - r5: NativePointer; - r6: NativePointer; - r7: NativePointer; - - r8: NativePointer; - r9: NativePointer; - r10: NativePointer; - r11: NativePointer; - r12: NativePointer; - - lr: NativePointer; -} - -interface Arm64CpuContext extends PortableCpuContext { - x0: NativePointer; - x1: NativePointer; - x2: NativePointer; - x3: NativePointer; - x4: NativePointer; - x5: NativePointer; - x6: NativePointer; - x7: NativePointer; - x8: NativePointer; - x9: NativePointer; - x10: NativePointer; - x11: NativePointer; - x12: NativePointer; - x13: NativePointer; - x14: NativePointer; - x15: NativePointer; - x16: NativePointer; - x17: NativePointer; - x18: NativePointer; - x19: NativePointer; - x20: NativePointer; - x21: NativePointer; - x22: NativePointer; - x23: NativePointer; - x24: NativePointer; - x25: NativePointer; - x26: NativePointer; - x27: NativePointer; - x28: NativePointer; - - fp: NativePointer; - lr: NativePointer; -} - -interface MipsCpuContext extends PortableCpuContext { - gp: NativePointer; - fp: NativePointer; - ra: NativePointer; - - hi: NativePointer; - lo: NativePointer; - - at: NativePointer; - - v0: NativePointer; - v1: NativePointer; - - a0: NativePointer; - a1: NativePointer; - a2: NativePointer; - a3: NativePointer; - - t0: NativePointer; - t1: NativePointer; - t2: NativePointer; - t3: NativePointer; - t4: NativePointer; - t5: NativePointer; - t6: NativePointer; - t7: NativePointer; - t8: NativePointer; - t9: NativePointer; - - s0: NativePointer; - s1: NativePointer; - s2: NativePointer; - s3: NativePointer; - s4: NativePointer; - s5: NativePointer; - s6: NativePointer; - s7: NativePointer; - - k0: NativePointer; - k1: NativePointer; -} - -// tslint:disable:no-unnecessary-class -declare class MatchPattern { - /** - * Compiles a match pattern for use with e.g. `Memory.scan()`. - * - * @param pattern Match pattern of the form “13 37 ?? ff” to match 0x13 followed by 0x37 followed by any byte - * followed by 0xff, or “/Some\s*Pattern/” for matching a regular expression. - * - * For more advanced matching it is also possible to specify an r2-style mask. - * The mask is bitwise AND-ed against both the needle and the haystack. To specify the mask append - * a `:` character after the needle, followed by the mask using the same syntax. - * For example: “13 37 13 37 : 1f ff ff f1”. - * For convenience it is also possible to specify nibble-level wildcards, like “?3 37 13 ?7”, - * which gets translated into masks behind the scenes. - */ - constructor(pattern: string); -} - -/** - * TCP and UNIX sockets. - */ -declare namespace Socket { - /** - * Opens a TCP or UNIX listening socket. - * - * Defaults to listening on both IPv4 and IPv6, if supported, and binding on all interfaces on a randomly - * selected port. - */ - function listen(options?: SocketListenOptions): Promise; - - /** - * Connects to a TCP or UNIX server. - */ - function connect(options: SocketConnectOptions): Promise; - - /** - * Inspects the OS socket `handle` and returns its type, or `null` if invalid or unknown. - */ - function type(handle: number): SocketType | null; - - /** - * Inspects the OS socket `handle` and returns its local address, or `null` if invalid or unknown. - */ - function localAddress(handle: number): SocketEndpointAddress | null; - - /** - * Inspects the OS socket `handle` and returns its peer address, or `null` if invalid or unknown. - */ - function peerAddress(handle: number): SocketEndpointAddress | null; -} - -/** - * Listener created by `Socket.listen()`. - */ -type SocketListener = TcpListener | UnixListener; - -interface BaseListener { - /** - * Closes the listener, releasing resources related to it. Once the listener is closed, all other operations - * will fail. Closing a listener multiple times is allowed and will not result in an error. - */ - close(): Promise; - - /** - * Waits for the next client to connect. - */ - accept(): Promise; -} - -interface TcpListener extends BaseListener { - /** - * IP port being listened on. - */ - port: number; -} - -interface UnixListener extends BaseListener { - /** - * Path being listened on. - */ - path: string; -} - -declare abstract class SocketConnection extends IOStream { - /** - * Disables the Nagle algorithm if `noDelay` is `true`, otherwise enables it. The Nagle algorithm is enabled - * by default, so it is only necessary to call this method if you wish to optimize for low delay instead of - * high throughput. - */ - setNoDelay(noDelay: boolean): Promise; -} - -declare abstract class IOStream { - /** - * The `InputStream` to read from. - */ - input: InputStream; - - /** - * The `OutputStream` to write to. - */ - output: OutputStream; - - /** - * Closes the stream, releasing resources related to it. This will also close the individual input and output - * streams. Once the stream is closed, all other operations will fail. Closing a stream multiple times is allowed - * and will not result in an error. - */ - close(): Promise; -} - -declare abstract class InputStream { - /** - * Closes the stream, releasing resources related to it. Once the stream is closed, all other operations will fail. - * Closing a stream multiple times is allowed and will not result in an error. - */ - close(): Promise; - - /** - * Reads up to `size` bytes from the stream. The resulting buffer is up to `size` bytes long. End of stream is - * signalled through an empty buffer. - */ - read(size: number): Promise; - - /** - * Keeps reading from the stream until exactly `size` bytes have been consumed. The resulting buffer is exactly - * `size` bytes long. Premature error or end of stream results in an `Error` object with a `partialData` property - * containing the incomplete data. - */ - readAll(size: number): Promise; -} - -declare abstract class OutputStream { - /** - * Closes the stream, releasing resources related to it. Once the stream is closed, all other operations will fail. - * Closing a stream multiple times is allowed and will not result in an error. - */ - close(): Promise; - - /** - * Tries to write `data` to the stream. Returns how many bytes of `data` were written to the stream. - */ - write(data: ArrayBuffer | number[]): Promise; - - /** - * Keeps writing to the stream until all of `data` has been written. Premature error or end of stream results in an - * `Error` object with a `partialSize` property specifying how many bytes of `data` were written to the stream - * before the error occurred. - */ - writeAll(data: ArrayBuffer | number[]): Promise; - - /** - * Tries to write `size` bytes to the stream, reading them from `address`. Returns how many bytes were written - * to the stream. Premature error or end of stream results in an `Error` object with a `partialSize` property - * specifying how many bytes of `data` were written to the stream before the error occurred. - */ - writeMemoryRegion(address: NativePointerValue, size: number): Promise; -} - -/** - * Input stream backed by a file descriptor. - * - * Only available on UNIX-like OSes. - */ -declare class UnixInputStream extends InputStream { - /** - * Creates a new input stream from the specified file descriptor `fd`. - * - * @param fd File descriptor to read from. - * @param options Options to customize the stream. - */ - constructor(fd: number, options?: UnixStreamOptions); -} - -/** - * Output stream backed by a file descriptor. - * - * Only available on UNIX-like OSes. - */ -declare class UnixOutputStream extends OutputStream { - /** - * Creates a new output stream from the specified file descriptor `fd`. - * - * @param fd File descriptor to write to. - * @param options Options to customize the stream. - */ - constructor(fd: number, options?: UnixStreamOptions); -} - -/** - * Input stream backed by a Windows file handle. - * - * Only available on Windows. - */ -declare class Win32InputStream extends InputStream { - /** - * Creates a new input stream from the specified Windows file handle. - * - * @param handle Windows file `HANDLE` to read from. - * @param options Options to customize the stream. - */ - constructor(handle: NativePointerValue, options?: WindowsStreamOptions); -} - -/** - * Output stream backed by a Windows file handle. - * - * Only available on Windows. - */ -declare class Win32OutputStream extends OutputStream { - /** - * Creates a new output stream from the specified Windows file handle. - * - * @param handle Windows file `HANDLE` to write to. - * @param options Options to customize the stream. - */ - constructor(handle: NativePointerValue, options?: WindowsStreamOptions); -} - -interface UnixStreamOptions { - /** - * Whether the file descriptor should be closed when the stream is closed, - * either through `close()` or future garbage-collection. - */ - autoClose?: boolean | undefined; -} - -interface WindowsStreamOptions { - /** - * Whether the Windows `HANDLE` should be closed when the stream is closed, - * either through `close()` or future garbage-collection. - */ - autoClose?: boolean | undefined; -} - -type AddressFamily = - | "unix" - | "ipv4" - | "ipv6" - ; - -type SocketType = - | "tcp" - | "udp" - | "tcp6" - | "udp6" - | "unix:stream" - | "unix:dgram" - ; - -type UnixSocketType = - | "anonymous" - | "path" - | "abstract" - | "abstract-padded" - ; - -type SocketListenOptions = TcpListenOptions | UnixListenOptions; - -interface TcpListenOptions extends BaseListenOptions { - /** - * Address family. Omit to listen on both ipv4 and ipv6 – if supported by the OS. - */ - family?: "ipv4" | "ipv6" | undefined; - - /** - * Host or IP address to listen on. Omit to listen on all interfaces. - */ - host?: string | undefined; - - /** - * Port to listen on. Omit to listen on a randomly selected port. - */ - port?: number | undefined; -} - -interface UnixListenOptions extends BaseListenOptions { - /** - * Address family. - */ - family: "unix"; - - /** - * Type of UNIX socket to listen on. Defaults to UnixSocketType.Path. - */ - type?: UnixSocketType | undefined; - - /** - * UNIX socket path to listen on. - */ - path: string; -} - -interface BaseListenOptions { - /** - * Listen backlog. Defaults to 10. - */ - backlog?: number | undefined; -} - -type SocketConnectOptions = TcpConnectOptions | UnixConnectOptions; - -interface TcpConnectOptions { - /** - * Address family. Omit to determine based on the host specified. - */ - family?: "ipv4" | "ipv6" | undefined; - - /** - * Host or IP address to connect to. Defaults to `localhost`. - */ - host?: string | undefined; - - /** - * IP port to connect to. - */ - port: number; - - /** - * Whether to create a TLS connection. Defaults to `false`. - */ - tls?: boolean | undefined; -} - -interface UnixConnectOptions { - /** - * Address family. - */ - family: "unix"; - - /** - * Type of UNIX socket to connect to. Defaults to UnixSocketType.Path. - */ - type?: UnixSocketType | undefined; - - /** - * Path to UNIX socket to connect to. - */ - path: string; - - /** - * Whether to create a TLS connection. Defaults to `false`. - */ - tls?: boolean | undefined; -} - -type SocketEndpointAddress = TcpEndpointAddress | UnixEndpointAddress; - -interface TcpEndpointAddress { - /** - * IP address. - */ - ip: string; - - /** - * Port. - */ - port: number; -} - -interface UnixEndpointAddress { - /** - * UNIX socket path. - */ - path: string; -} - -/** - * Provides basic filesystem access. - */ -declare class File { - /** - * Opens or creates the file at `filePath` with `mode` specifying how - * it should be opened. For example `"wb"` to open the file for writing - * in binary mode. This is the same format as `fopen()` from the C - * standard library. - * - * @param filePath Path to file to open or create. - * @param mode Mode to use. - */ - constructor(filePath: string, mode: string); - - /** - * Synchronously writes `data` to the file. - * - * @param data Data to write. - */ - write(data: string | ArrayBuffer): void; - - /** - * Flushes any buffered data to the underlying file. - */ - flush(): void; - - /** - * Closes the file. You should call this function when you’re done with - * the file unless you are fine with this happening when the object is - * garbage-collected or the script is unloaded. - */ - close(): void; -} - -/** - * Provides read/write access to a SQLite database. Useful for persistence - * and to embed a cache in an agent. - */ -declare class SqliteDatabase { - /** - * Opens the SQLite v3 database at `path` on the filesystem. The database - * will by default be opened read-write, and the returned `SqliteDatabase` - * object will allow you to perform queries on it. Throws an exception if - * the database cannot be opened. - * - * @param path Filesystem path to database. - * @param options Options to customize how the database should be opened. - */ - static open(path: string, options?: SqliteOpenOptions): SqliteDatabase; - - /** - * Just like `open()` but the contents of the database is provided as a - * string containing its data, Base64-encoded. We recommend gzipping the - * database before Base64-encoding it, but this is optional and detected - * by looking for a gzip magic marker. The database is opened read-write, - * but is 100% in-memory and never touches the filesystem. Throws an - * exception if the database is malformed. - * - * This is useful for agents that need to bundle a cache of precomputed - * data, e.g. static analysis data used to guide dynamic analysis. - * - * @param encodedContents Base64-encoded database contents. - */ - static openInline(encodedContents: string): SqliteDatabase; - - /** - * Closes the database. You should call this function when you're done with - * the database, unless you are fine with this happening when the object is - * garbage-collected or the script is unloaded. - */ - close(): void; - - /** - * Executes a raw SQL query. Throws an exception if the query is invalid. - * - * The query's result is ignored, so this should only be used for queries - * for setting up the database, e.g. table creation. - * - * @param sql Text-representation of the SQL query. - */ - exec(sql: string): void; - - /** - * Compiles the provided SQL into a `SqliteStatement` object. Throws an - * exception if the query is invalid. - * - * @param sql Text-representation of the SQL query. - */ - prepare(sql: string): SqliteStatement; - - /** - * Dumps the database to a gzip-compressed blob encoded as Base64. - * - * This is useful for inlining a cache in your agent's code, loaded by - * calling `SqliteDatabase.openInline()`. - */ - dump(): string; -} - -interface SqliteOpenOptions { - flags?: SqliteOpenFlag[] | undefined; -} - -type SqliteOpenFlag = - | "readonly" - | "readwrite" - | "create" - ; - -/** - * Pre-compiled SQL statement. - */ -declare class SqliteStatement { - /** - * Binds the integer `value` to `index`. - * - * @param index 1-based index. - * @param value Integer value to bind. - */ - bindInteger(index: number, value: number): void; - - /** - * Binds the floating point `value` to `index`. - * - * @param index 1-based index. - * @param value Floating point value to bind. - */ - bindFloat(index: number, value: number): void; - - /** - * Binds the text `value` to `index`. - * @param index 1-based index. - * @param value Text value to bind. - */ - bindText(index: number, value: string): void; - - /** - * Binds the blob `bytes` to `index`. - * - * @param index 1-based index. - * @param bytes Blob value to bind. - */ - bindBlob(index: number, bytes: ArrayBuffer | number[] | string): void; - - /** - * Binds a `null` value to `index`. - * - * @param index 1-based index. - */ - bindNull(index: number): void; - - /** - * Either starts a new query and gets the first result, or moves to the - * next one. - * - * Returns an array containing the values in the order specified by the - * query, or `null` when the last result is reached. You should call - * `reset()` at that point if you intend to use this object again. - */ - step(): any[] | null; - - /** - * Resets internal state to allow subsequent queries. - */ - reset(): void; -} - -/** - * Intercepts execution through inline hooking. - */ -declare namespace Interceptor { - /** - * Intercepts calls to function/instruction at `target`. It is important - * to specify a `InstructionProbeCallback` if `target` is not the first - * instruction of a function. - * - * @param target Address of function/instruction to intercept. - * @param callbacksOrProbe Callbacks or instruction-level probe callback. - * @param data User data exposed to `NativeInvocationListenerCallbacks` - * through the `GumInvocationContext *`. - */ - function attach(target: NativePointerValue, callbacksOrProbe: InvocationListenerCallbacks | InstructionProbeCallback, - data?: NativePointerValue): InvocationListener; - - /** - * Detaches all previously attached listeners. - */ - function detachAll(): void; - - /** - * Replaces function at `target` with implementation at `replacement`. - * - * May be implemented using e.g. `NativeCallback` or `CModule`. - * - * @param target Address of function to replace. - * @param replacement Replacement implementation. - * @param data User data exposed to native replacement through the - * `GumInvocationContext *`, obtained using - * `gum_interceptor_get_current_invocation()`. - */ - function replace(target: NativePointerValue, replacement: NativePointerValue, - data?: NativePointerValue): void; - - /** - * Reverts the previously replaced function at `target`. - */ - function revert(target: NativePointerValue): void; - - /** - * Ensure any pending changes have been committed to memory. - */ - function flush(): void; -} - -declare class InvocationListener { - /** - * Detaches listener previously attached through `Interceptor#attach()`. - */ - detach(): void; -} - -/** - * Callbacks to invoke synchronously before and after a function call. - */ -type InvocationListenerCallbacks = ScriptInvocationListenerCallbacks | NativeInvocationListenerCallbacks; - -interface ScriptInvocationListenerCallbacks { - /** - * Called synchronously when a thread is about to enter the target function. - */ - onEnter?: ((this: InvocationContext, args: InvocationArguments) => void) | undefined; - - /** - * Called synchronously when a thread is about to leave the target function. - */ - onLeave?: ((this: InvocationContext, retval: InvocationReturnValue) => void) | undefined; -} - -interface NativeInvocationListenerCallbacks { - /** - * Called synchronously when a thread is about to enter the target function. - * - * Typically implemented using `CModule`. - * - * Signature: `void onEnter (GumInvocationContext * ic)` - */ - onEnter?: NativePointer | undefined; - - /** - * Called synchronously when a thread is about to leave the target function. - * - * Typically implemented using `CModule`. - * - * Signature: `void onLeave (GumInvocationContext * ic)` - */ - onLeave?: NativePointer | undefined; -} - -/** - * Callback to invoke when an instruction is about to be executed. - */ -type InstructionProbeCallback = (this: InvocationContext, args: InvocationArguments) => void; - -/** - * Virtual array providing access to the argument list. Agnostic to the number of arguments and their types. - */ -type InvocationArguments = NativePointer[]; - -/** - * Value that is about to be returned. - */ -declare class InvocationReturnValue extends NativePointer { - /** - * Replaces the return value that would otherwise be returned. - */ - replace(value: NativePointerValue): void; -} - -type InvocationContext = PortableInvocationContext | WindowsInvocationContext | UnixInvocationContext; - -interface PortableInvocationContext { - /** - * Return address. - */ - returnAddress: NativePointer; - - /** - * CPU registers. You may also update register values by assigning to these keys. - */ - context: CpuContext; - - /** - * OS thread ID. - */ - threadId: ThreadId; - - /** - * Call depth of relative to other invocations. - */ - depth: number; - - /** - * User-defined invocation data. Useful if you want to read an argument in `onEnter` and act on it in `onLeave`. - */ - [x: string]: any; -} - -interface WindowsInvocationContext extends PortableInvocationContext { - /** - * Current OS error value (you may replace it). - */ - lastError: number; -} - -interface UnixInvocationContext extends PortableInvocationContext { - /** - * Current errno value (you may replace it). - */ - errno: number; -} - -/** - * Follows execution on a per thread basis. - */ -declare namespace Stalker { - /** - * Marks a memory range as excluded. This means Stalker will not follow - * execution when encountering a call to an instruction in such a range. - * You will thus be able to observe/modify the arguments going in, and - * the return value coming back, but won't see the instructions that - * happened between. - * - * Useful to improve performance and reduce noise. - * - * @param range Range to exclude. - */ - function exclude(range: MemoryRange): void; - - /** - * Starts following the execution of a given thread. - * - * @param threadId Thread ID to start following the execution of, or the - * current thread if omitted. - * @param options Options to customize the instrumentation. - */ - function follow(threadId?: ThreadId, options?: StalkerOptions): void; - - /** - * Stops following the execution of a given thread. - * - * @param threadId Thread ID to stop following the execution of, or the - * current thread if omitted. - */ - function unfollow(threadId?: ThreadId): void; - - /** - * Parses a binary blob comprised of `Gum.Event` values. - * - * @param events Binary blob containing zero or more `Gum.Event` values. - * @param options Options for customizing the output. - */ - function parse(events: ArrayBuffer, options?: StalkerParseOptions): StalkerEventFull[] | StalkerEventBare[]; - - /** - * Flushes out any buffered events. Useful when you don't want to wait - * until the next `queueDrainInterval` tick. - */ - function flush(): void; - - /** - * Frees accumulated memory at a safe point after `unfollow()`. This is - * needed to avoid race-conditions where the thread just unfollowed is - * executing its last instructions. - */ - function garbageCollect(): void; - - /** - * Invalidates the current thread's translated code for a given basic block. - * Useful when providing a transform callback and wanting to dynamically - * adapt the instrumentation for a given basic block. This is much more - * efficient than unfollowing and re-following the thread, which would - * discard all cached translations and require all encountered basic blocks - * to be compiled from scratch. - * - * @param address Start address of basic block to invalidate. - */ - function invalidate(address: NativePointerValue): void; - - /** - * Invalidates a specific thread's translated code for a given basic block. - * Useful when providing a transform callback and wanting to dynamically - * adapt the instrumentation for a given basic block. This is much more - * efficient than unfollowing and re-following the thread, which would - * discard all cached translations and require all encountered basic blocks - * to be compiled from scratch. - * - * @param threadId Thread that should have some of its code invalidated. - * @param address Start address of basic block to invalidate. - */ - function invalidate(threadId: ThreadId, address: NativePointerValue): void; - - /** - * Calls `callback` synchronously when a call is made to `address`. - * Returns an id that can be passed to `removeCallProbe()` later. - * - * @param address Address of function to monitor stalked calls to. - * @param callback Function to be called synchronously when a stalked - * thread is about to call the function at `address`. - * @param data User data to be passed to `StalkerNativeCallProbeCallback`. - */ - function addCallProbe(address: NativePointerValue, callback: StalkerCallProbeCallback, - data?: NativePointerValue): StalkerCallProbeId; - - /** - * Removes a call probe added by `addCallProbe()`. - * - * @param callbackId ID of probe to remove. - */ - function removeCallProbe(callbackId: StalkerCallProbeId): void; - - /** - * How many times a piece of code needs to be executed before it is assumed - * it can be trusted to not mutate. Specify -1 for no trust (slow), 0 to - * trust code from the get-go, and N to trust code after it has been - * executed N times. - * - * Defaults to 1. - */ - let trustThreshold: number; - - /** - * Capacity of the event queue in number of events. - * - * Defaults to 16384 events. - */ - let queueCapacity: number; - - /** - * Time in milliseconds between each time the event queue is drained. - * - * Defaults to 250 ms, which means that the event queue is drained four - * times per second. You may also set this property to zero to disable - * periodic draining and instead call `Stalker.flush()` when you would - * like the queue to be drained. - */ - let queueDrainInterval: number; -} - -/** - * Options to customize Stalker's instrumentation. - * - * Note that the callbacks provided have a significant impact on performance. - * If you only need periodic call summaries but do not care about the raw - * events, or the other way around, make sure you omit the callback that you - * don't need; i.e. avoid putting your logic in `onCallSummary` and leaving - * `onReceive` in there as an empty callback. - */ -interface StalkerOptions { - /** - * Which events, if any, should be generated and periodically delivered to - * `onReceive()` and/or `onCallSummary()`. - */ - events?: { - /** - * Whether to generate events for CALL/BLR instructions. - */ - call?: boolean | undefined; - - /** - * Whether to generate events for RET instructions. - */ - ret?: boolean | undefined; - - /** - * Whether to generate events for all instructions. - * - * Not recommended as it's potentially a lot of data. - */ - exec?: boolean | undefined; - - /** - * Whether to generate an event whenever a basic block is executed. - * - * Useful to record a coarse execution trace. - */ - block?: boolean | undefined; - - /** - * Whether to generate an event whenever a basic block is compiled. - * - * Useful for coverage. - */ - compile?: boolean | undefined; - } | undefined; - - /** - * Callback that periodically receives batches of events. - * - * @param events Binary blob comprised of one or more `Gum.Event` structs. - * See `gumevent.h` for details about the format. - * Use `Stalker.parse()` to examine the data. - */ - onReceive?: ((events: ArrayBuffer) => void) | undefined; - - /** - * Callback that periodically receives a summary of `call` events that - * happened in each time window. - * - * You would typically implement this instead of `onReceive()` for - * efficiency, i.e. when you only want to know which targets were called - * and how many times, but don't care about the order that the calls - * happened in. - * - * @param summary Key-value mapping of call target to number of calls, in - * the current time window. - */ - onCallSummary?: ((summary: StalkerCallSummary) => void) | undefined; - - /** - * C callback that processes events as they occur, allowing synchronous - * processing of events in native code – typically implemented using - * CModule. - * - * This is useful when wanting to implement custom filtering and/or queuing - * logic to improve performance, or sacrifice performance in exchange for - * reliable event delivery. - * - * Note that this precludes usage of `onReceive()` and `onCallSummary()`. - */ - onEvent?: StalkerNativeEventCallback | undefined; - - /** - * Callback that transforms each basic block compiled whenever Stalker - * wants to recompile a basic block of the code that's about to be executed - * by the stalked thread. - */ - transform?: StalkerTransformCallback | undefined; - - /** - * User data to be passed to `StalkerNativeEventCallback` and `StalkerNativeTransformCallback`. - */ - data?: NativePointerValue | undefined; -} - -interface StalkerParseOptions { - /** - * Whether to include the type of each event. Defaults to `true`. - */ - annotate?: boolean | undefined; - - /** - * Whether to format pointer values as strings instead of `NativePointer` - * values, i.e. less overhead if you're just going to `send()` the result - * and not actually parse the data agent-side. - */ - stringify?: boolean | undefined; -} - -interface StalkerCallSummary { - [target: string]: number; -} - -type StalkerCallProbeCallback = StalkerScriptCallProbeCallback | StalkerNativeCallProbeCallback; - -/** - * Called synchronously when a call is made to the given address. - */ -type StalkerScriptCallProbeCallback = (args: InvocationArguments) => void; - -/** - * Called synchronously when a call is made to the given address. - * - * Signature: `void onCall (GumCallSite * site, gpointer user_data)` - */ -type StalkerNativeCallProbeCallback = NativePointer; - -type StalkerCallProbeId = number; - -type StalkerEventType = - | "call" - | "ret" - | "exec" - | "block" - | "compile" - ; - -type StalkerEventFull = StalkerCallEventFull | StalkerRetEventFull | StalkerExecEventFull | - StalkerBlockEventFull | StalkerCompileEventFull; -type StalkerEventBare = StalkerCallEventBare | StalkerRetEventBare | StalkerExecEventBare | - StalkerBlockEventBare | StalkerCompileEventBare; - -type StalkerCallEventFull = [ "call", NativePointer | string, NativePointer | string, number ]; -type StalkerCallEventBare = [ NativePointer | string, NativePointer | string, number ]; - -type StalkerRetEventFull = [ "ret", NativePointer | string, NativePointer | string, number ]; -type StalkerRetEventBare = [ NativePointer | string, NativePointer | string, number ]; - -type StalkerExecEventFull = [ "exec", NativePointer | string ]; -type StalkerExecEventBare = [ NativePointer | string ]; - -type StalkerBlockEventFull = [ "block", NativePointer | string, NativePointer | string ]; -type StalkerBlockEventBare = [ NativePointer | string, NativePointer | string ]; - -type StalkerCompileEventFull = [ "compile", NativePointer | string, NativePointer | string ]; -type StalkerCompileEventBare = [ NativePointer | string, NativePointer | string ]; - -/** - * Signature: `void process (const GumEvent * event, GumCpuContext * cpu_context, gpointer user_data)` - */ -type StalkerNativeEventCallback = NativePointer; - -type StalkerTransformCallback = - | StalkerX86TransformCallback - | StalkerArm32TransformCallback - | StalkerArm64TransformCallback - | StalkerNativeTransformCallback - ; - -type StalkerX86TransformCallback = (iterator: StalkerX86Iterator) => void; -type StalkerArm32TransformCallback = (iterator: StalkerArmIterator | StalkerThumbIterator) => void; -type StalkerArm64TransformCallback = (iterator: StalkerArm64Iterator) => void; - -/** - * Signature: `void transform (GumStalkerIterator * iterator, GumStalkerOutput * output, gpointer user_data)` - */ -type StalkerNativeTransformCallback = NativePointer; - -interface StalkerX86Iterator extends X86Writer { - next(): X86Instruction | null; - keep(): void; - putCallout(callout: StalkerCallout, data?: NativePointerValue): void; -} - -interface StalkerArmIterator extends ArmWriter { - next(): ArmInstruction | null; - keep(): void; - putCallout(callout: StalkerCallout, data?: NativePointerValue): void; -} - -interface StalkerThumbIterator extends ThumbWriter { - next(): ArmInstruction | null; - keep(): void; - putCallout(callout: StalkerCallout, data?: NativePointerValue): void; -} - -interface StalkerArm64Iterator extends Arm64Writer { - next(): Arm64Instruction | null; - keep(): void; - putCallout(callout: StalkerCallout, data?: NativePointerValue): void; -} - -type StalkerCallout = StalkerScriptCallout | StalkerNativeCallout; - -type StalkerScriptCallout = (context: CpuContext) => void; - -/** - * Signature: `void onAesEnc (GumCpuContext * cpu_context, gpointer user_data)` - */ -type StalkerNativeCallout = NativePointer; - -/** - * Provides efficient API resolving using globs, allowing you to quickly - * find functions by name, with globs permitted. - */ -declare class ApiResolver { - /** - * Creates a new resolver of the given `type`. - * - * Precisely which resolvers are available depends on the current - * platform and runtimes loaded in the current process. - * - * The resolver will load the minimum amount of data required on creation, - * and lazy-load the rest depending on the queries it receives. It is thus - * recommended to use the same instance for a batch of queries, but - * recreate it for future batches to avoid looking at stale data. - * - * @param type The type of resolver to create. - */ - constructor(type: ApiResolverType); - - /** - * Performs the resolver-specific query. - * - * @param query Resolver-specific query, optionally suffixed with `/i` to - * perform case-insensitive matching. - */ - enumerateMatches(query: string): ApiResolverMatch[]; -} - -interface ApiResolverMatch { - /** - * Canonical name of the function that was found. - */ - name: string; - - /** - * Memory address that the given function is loaded at. - */ - address: NativePointer; -} - -type ApiResolverType = - /** - * Resolves exported and imported functions of shared libraries - * currently loaded. - * - * Always available. - * - * Example query: `"exports:*!open*"` - * Which may resolve to: `"/usr/lib/libSystem.B.dylib!opendir$INODE64"` - * Suffix with `/i` to perform case-insensitive matching. - */ - | "module" - - /** - * Resolves Objective-C methods of classes currently loaded. - * - * Available on macOS and iOS in processes that have the Objective-C - * runtime loaded. Use `ObjC.available` to check at runtime, or wrap - * your `new ApiResolver(ApiResolverType.ObjC)` call in a try-catch. - * - * Example query: `"-[NSURL* *HTTP*]"` - * Which may resolve to: `"-[NSURLRequest valueForHTTPHeaderField:]"` - * Suffix with `/i` to perform case-insensitive matching. - */ - | "objc" - ; - -declare class DebugSymbol { - /** - * Address that this symbol is for. - */ - address: NativePointer; - - /** - * Name of the symbol, or `null` if unknown. - */ - name: string | null; - - /** - * Module name owning this symbol, or `null` if unknown. - */ - moduleName: string | null; - - /** - * File name owning this symbol, or `null` if unknown. - */ - fileName: string | null; - - /** - * Line number in `fileName`, or `null` if unknown. - */ - lineNumber: number | null; - - /** - * Looks up debug information for `address`. - * - * @param address Address to look up details for. - */ - static fromAddress(address: NativePointerValue): DebugSymbol; - - /** - * Looks up debug information for `name`. - * - * @param name Name to look up details for. - */ - static fromName(name: string): DebugSymbol; - - /** - * Resolves a function name and returns its address. Returns the first if - * more than one function is found. Throws an exception if the name cannot - * be resolved. - * - * @param name Function name to resolve the address of. - */ - static getFunctionByName(name: string): NativePointer; - - /** - * Resolves a function name and returns its addresses. - * - * @param name Function name to resolve the addresses of. - */ - static findFunctionsNamed(name: string): NativePointer[]; - - /** - * Resolves function names matching `glob` and returns their addresses. - * - * @param glob Glob matching functions to resolve the addresses of. - */ - static findFunctionsMatching(glob: string): NativePointer[]; - - /** - * Loads debug symbols for a specific module. - * - * @param path Path of module to load symbols for. - */ - static load(path: string): void; - - /** - * Converts to a human-readable string. - */ - toString(): string; -} - -/** - * Compiles C source code to machine code, straight to memory. May also be - * constructed from a precompiled shared library. - * - * Useful for implementing hot callbacks, e.g. for `Interceptor` and `Stalker`, - * but also useful when needing to start new threads in order to call functions - * in a tight loop, e.g. for fuzzing purposes. - * - * Global functions are automatically exported as `NativePointer` properties - * named exactly like in the C source code. This means you can pass them to - * `Interceptor` and `Stalker`, or call them using `NativeFunction`. - * - * In addition to accessing a curated subset of Gum, GLib, and standard C APIs, - * the code being mapped in can also communicate with JavaScript through the - * symbols exposed to it. These can be plugged in at creation, e.g. to share - * memory allocated using `Memory.alloc()`, or `NativeCallback` values for - * receiving callbacks from the C module. - * - * To perform initialization and cleanup, you may define functions with the - * following names and signatures: - * - * `void init (void)` - * `void finalize (void)` - * - * Note that all data is read-only, so writable globals should be declared - * `extern`, allocated using e.g. `Memory.alloc()`, and passed in as symbols - * through the constructor's second argument. - */ -declare class CModule { - /** - * Creates a new C module from the provided `code`. - * - * @param code C source code to compile, or a precompiled shared library. - * @param symbols Symbols to expose to the C module. Declare them as `extern`. - * This may for example be one or more memory blocks allocated using - * `Memory.alloc()`, and/or `NativeCallback` values for receiving - * callbacks from the C module. - * @param options Options for customizing the construction. - */ - constructor(code: string | ArrayBuffer, symbols?: CSymbols, options?: CModuleOptions); - - /** - * Eagerly unmaps the module from memory. Useful for short-lived modules - * when waiting for a future garbage collection isn't desirable. - */ - dispose(): void; - - readonly [name: string]: any; - - static builtins: CModuleBuiltins; -} - -interface CModuleOptions { - toolchain?: CModuleToolchain | undefined; -} - -/** - * Toolchain to use when constructing a CModule from C source code. - * - * `internal`: Use TinyCC, which is statically linked into the runtime. - * Never touches the filesystem and works even in sandboxed processes. - * The generated code is however not optimized, as TinyCC optimizes for - * small compiler footprint and short compilation times. - * `external`: Use toolchain provided by the target system, assuming it is - * accessible to the process we're executing inside. - * `any`: Same as `internal` if `Process.arch` is supported by TinyCC, and - * `external` otherwise. - */ -type CModuleToolchain = "any" | "internal" | "external"; - -interface CSymbols { - [name: string]: NativePointerValue; -} - -/** - * Builtins present when constructing a CModule from C source code. - * - * This is typically used by a scaffolding tool such as `frida-create` in order - * to set up a build environment that matches what CModule uses. - */ -interface CModuleBuiltins { - defines: CModuleDefines; - headers: CModuleHeaders; -} - -/** - * Preprocessor defines present when constructing a CModule from C source code. - * - * The mapping to GCC-style command-line arguments depends on the type of the value: - * `string`: `-Dname=value` - * `true`: `-Dname` - */ -interface CModuleDefines { - readonly [name: string]: string | true; -} - -/** - * C headers present when constructing a CModule from C source code. - * - * The `name` is a relative filesystem path, and the value is the contents of - * the header. - */ -interface CModuleHeaders { - readonly [name: string]: string; -} - -declare class Instruction { - /** - * Parses the instruction at the `target` address in memory. - * - * Note that on 32-bit ARM this address must have its least significant bit - * set to 0 for ARM functions, and 1 for Thumb functions. Frida takes care - * of this detail for you if you get the address from a Frida API, for - * example `Module.getExportByName()`. - * - * @param target Memory location containing instruction to parse. - */ - static parse(target: NativePointerValue): Instruction | X86Instruction | ArmInstruction | Arm64Instruction | MipsInstruction; - - /** - * Address (EIP) of this instruction. - */ - address: NativePointer; - - /** - * Pointer to the next instruction, so you can `parse()` it. - */ - next: NativePointer; - - /** - * Size of this instruction. - */ - size: number; - - /** - * Instruction mnemonic. - */ - mnemonic: string; - - /** - * String representation of instruction operands. - */ - opStr: string; - - /** - * Group names that this instruction belongs to. - */ - groups: string[]; - - /** - * Converts to a human-readable string. - */ - toString(): string; -} - -declare class X86Instruction extends Instruction { - /** - * Array of objects describing each operand. - */ - operands: X86Operand[]; - - /** - * Registers accessed by this instruction, either implicitly or explicitly. - */ - regsAccessed: RegsAccessed; - - /** - * Registers implicitly read by this instruction. - */ - regsRead: X86Register[]; - - /** - * Registers implicitly written to by this instruction. - */ - regsWritten: X86Register[]; -} - -declare class ArmInstruction extends Instruction { - /** - * Array of objects describing each operand. - */ - operands: ArmOperand[]; - - /** - * Registers accessed by this instruction, either implicitly or explicitly. - */ - regsAccessed: RegsAccessed; - - /** - * Registers implicitly read by this instruction. - */ - regsRead: ArmRegister[]; - - /** - * Registers implicitly written to by this instruction. - */ - regsWritten: ArmRegister[]; -} - -declare class Arm64Instruction extends Instruction { - /** - * Array of objects describing each operand. - */ - operands: Arm64Operand[]; - - /** - * Registers accessed by this instruction, either implicitly or explicitly. - */ - regsAccessed: RegsAccessed; - - /** - * Registers implicitly read by this instruction. - */ - regsRead: Arm64Register[]; - - /** - * Registers implicitly written to by this instruction. - */ - regsWritten: Arm64Register[]; -} - -declare class MipsInstruction extends Instruction { - /** - * Array of objects describing each operand. - */ - operands: MipsOperand[]; - - /** - * Registers accessed by this instruction, either implicitly or explicitly. - */ - regsAccessed: RegsAccessed; - - /** - * Registers implicitly read by this instruction. - */ - regsRead: MipsRegister[]; - - /** - * Registers implicitly written to by this instruction. - */ - regsWritten: MipsRegister[]; -} - -interface RegsAccessed { - read: T[]; - written: T[]; -} - -type OperandAccess = "" | "r" | "w" | "rw"; - -type X86Operand = X86RegOperand | X86ImmOperand | X86MemOperand; - -type X86OperandType = "reg" | "imm" | "mem"; - -interface X86BaseOperand { - size: number; - access: OperandAccess; -} - -interface X86RegOperand extends X86BaseOperand { - type: "reg"; - value: X86Register; -} - -interface X86ImmOperand extends X86BaseOperand { - type: "imm"; - value: number | Int64; -} - -interface X86MemOperand extends X86BaseOperand { - type: "mem"; - value: { - segment?: X86Register | undefined; - base?: X86Register | undefined; - index?: X86Register | undefined; - scale: number; - disp: number; - }; -} - -type ArmOperand = ArmRegOperand | ArmImmOperand | ArmMemOperand | - ArmFpOperand | ArmCimmOperand | ArmPimmOperand | ArmSetendOperand | - ArmSysregOperand; - -type ArmOperandType = - | "reg" - | "imm" - | "mem" - | "fp" - | "cimm" - | "pimm" - | "setend" - | "sysreg" - ; - -interface ArmBaseOperand { - shift?: { - type: ArmShifter; - value: number; - } | undefined; - vectorIndex?: number | undefined; - subtracted: boolean; - access: OperandAccess; -} - -interface ArmRegOperand extends ArmBaseOperand { - type: "reg"; - value: ArmRegister; -} - -interface ArmImmOperand extends ArmBaseOperand { - type: "imm"; - value: number; -} - -interface ArmMemOperand extends ArmBaseOperand { - type: "mem"; - value: { - base?: ArmRegister | undefined; - index?: ArmRegister | undefined; - scale: number; - disp: number; - }; -} - -interface ArmFpOperand extends ArmBaseOperand { - type: "fp"; - value: number; -} - -interface ArmCimmOperand extends ArmBaseOperand { - type: "cimm"; - value: number; -} - -interface ArmPimmOperand extends ArmBaseOperand { - type: "pimm"; - value: number; -} - -interface ArmSetendOperand extends ArmBaseOperand { - type: "setend"; - value: Endian; -} - -interface ArmSysregOperand extends ArmBaseOperand { - type: "sysreg"; - value: ArmRegister; -} - -type Arm64Operand = Arm64RegOperand | Arm64ImmOperand | Arm64MemOperand | - Arm64FpOperand | Arm64CimmOperand | Arm64RegMrsOperand | Arm64RegMsrOperand | - Arm64PstateOperand | Arm64SysOperand | Arm64PrefetchOperand | Arm64BarrierOperand; - -type Arm64OperandType = - | "reg" - | "imm" - | "mem" - | "fp" - | "cimm" - | "reg-mrs" - | "reg-msr" - | "pstate" - | "sys" - | "prefetch" - | "barrier" - ; - -interface Arm64BaseOperand { - shift?: { - type: Arm64Shifter; - value: number; - } | undefined; - ext?: Arm64Extender | undefined; - vas?: Arm64Vas | undefined; - vectorIndex?: number | undefined; - access: OperandAccess; -} - -interface Arm64RegOperand extends Arm64BaseOperand { - type: "reg"; - value: Arm64Register; -} - -interface Arm64ImmOperand extends Arm64BaseOperand { - type: "imm"; - value: Int64; -} - -interface Arm64MemOperand extends Arm64BaseOperand { - type: "mem"; - value: { - base?: Arm64Register | undefined; - index?: Arm64Register | undefined; - disp: number; - }; -} - -interface Arm64FpOperand extends Arm64BaseOperand { - type: "fp"; - value: number; -} - -interface Arm64CimmOperand extends Arm64BaseOperand { - type: "cimm"; - value: Int64; -} - -interface Arm64RegMrsOperand extends Arm64BaseOperand { - type: "reg-mrs"; - value: Arm64Register; -} - -interface Arm64RegMsrOperand extends Arm64BaseOperand { - type: "reg-msr"; - value: Arm64Register; -} - -interface Arm64PstateOperand extends Arm64BaseOperand { - type: "pstate"; - value: number; -} - -interface Arm64SysOperand extends Arm64BaseOperand { - type: "sys"; - value: number; -} - -interface Arm64PrefetchOperand extends Arm64BaseOperand { - type: "prefetch"; - value: number; -} - -interface Arm64BarrierOperand extends Arm64BaseOperand { - type: "barrier"; - value: number; -} - -type Arm64Shifter = - | "lsl" - | "msl" - | "lsr" - | "asr" - | "ror" - ; - -type Arm64Extender = - | "uxtb" - | "uxth" - | "uxtw" - | "uxtx" - | "sxtb" - | "sxth" - | "sxtw" - | "sxtx" - ; - -type Arm64Vas = - | "8b" - | "16b" - | "4h" - | "8h" - | "2s" - | "4s" - | "1d" - | "2d" - | "1q" - ; - -type MipsOperand = MipsRegOperand | MipsImmOperand | MipsMemOperand; - -type MipsOperandType = "reg" | "imm" | "mem"; - -interface MipsRegOperand { - type: "reg"; - value: MipsRegister; -} - -interface MipsImmOperand { - type: "imm"; - value: number; -} - -interface MipsMemOperand { - type: "mem"; - value: { - base?: MipsRegister | undefined; - disp: number; - }; -} - -type Endian = "be" | "le"; - -declare namespace Kernel { - /** - * Whether the Kernel API is available. - */ - const available: boolean; - - /** - * Base address of the kernel. Can be overridden with any non-zero UInt64. - */ - let base: UInt64; - - /** - * Size of kernel page in bytes. - */ - const pageSize: number; - - /** - * Enumerates kernel modules loaded right now. - */ - function enumerateModules(): KernelModuleDetails[]; - - /** - * Enumerates all kernel memory ranges matching `specifier`. - * - * @param specifier The kind of ranges to include. - */ - function enumerateRanges(specifier: PageProtection | EnumerateRangesSpecifier): KernelRangeDetails[]; - - /** - * Enumerates all ranges of a kernel module. - * - * @param name Name of the module, or `null` for the module of the kernel itself. - * @param protection Include ranges with at least this protection. - */ - function enumerateModuleRanges(name: string | null, protection: PageProtection): KernelModuleRangeDetails[]; - - /** - * Allocates kernel memory. - * - * @param size Size of the allocation in bytes (will be rounded up to a multiple of the kernel's page size). - */ - function alloc(size: number | UInt64): UInt64; - - /** - * Changes the page protection on a region of kernel memory. - * - * @param address Starting address. - * @param size Number of bytes. Must be a multiple of Process#pageSize. - * @param protection Desired page protection. - */ - function protect(address: UInt64, size: number | UInt64, protection: PageProtection): boolean; - - /** - * Scans kernel memory for occurences of `pattern` in the memory range given by `address` and `size`. - * - * @param address Starting address to scan from. - * @param size Number of bytes to scan. - * @param pattern Match pattern, see `MatchPattern` for details. - * @param callbacks Object with callbacks. - */ - function scan(address: UInt64, size: number | UInt64, pattern: string | MatchPattern, - callbacks: KernelMemoryScanCallbacks): Promise; - - /** - * Synchronous version of `scan()`. - * - * @param address Starting address to scan from. - * @param size Number of bytes to scan. - * @param pattern Match pattern, see `Memory.scan()` for details. - */ - function scanSync(address: UInt64, size: number | UInt64, pattern: string | MatchPattern): KernelMemoryScanMatch[]; - - function readS8(address: UInt64): number; - function readU8(address: UInt64): number; - function readS16(address: UInt64): number; - function readU16(address: UInt64): number; - function readS32(address: UInt64): number; - function readU32(address: UInt64): number; - function readS64(address: UInt64): Int64; - function readU64(address: UInt64): UInt64; - function readShort(address: UInt64): number; - function readUShort(address: UInt64): number; - function readInt(address: UInt64): number; - function readUInt(address: UInt64): number; - function readLong(address: UInt64): number | Int64; - function readULong(address: UInt64): number | UInt64; - function readFloat(address: UInt64): number; - function readDouble(address: UInt64): number; - function readByteArray(address: UInt64, length: number): ArrayBuffer | null; - function readCString(address: UInt64, size: number): string | null; - function readUtf8String(address: UInt64, size: number): string | null; - function readUtf16String(address: UInt64, length: number): string | null; - - function writeS8(address: UInt64, value: number | Int64): void; - function writeU8(address: UInt64, value: number | UInt64): void; - function writeS16(address: UInt64, value: number | Int64): void; - function writeU16(address: UInt64, value: number | UInt64): void; - function writeS32(address: UInt64, value: number | Int64): void; - function writeU32(address: UInt64, value: number | UInt64): void; - function writeS64(address: UInt64, value: number | Int64): void; - function writeU64(address: UInt64, value: number | UInt64): void; - function writeShort(address: UInt64, value: number | Int64): void; - function writeUShort(address: UInt64, value: number | UInt64): void; - function writeInt(address: UInt64, value: number | Int64): void; - function writeUInt(address: UInt64, value: number | UInt64): void; - function writeLong(address: UInt64, value: number | Int64): void; - function writeULong(address: UInt64, value: number | UInt64): void; - function writeFloat(address: UInt64, value: number): void; - function writeDouble(address: UInt64, value: number): void; - function writeByteArray(address: UInt64, value: ArrayBuffer | number[]): void; - function writeUtf8String(address: UInt64, value: string): void; - function writeUtf16String(address: UInt64, value: string): void; -} - -declare namespace ObjC { - // tslint:disable:no-unnecessary-qualifier - - /** - * Whether the current process has an Objective-C runtime loaded. Do not invoke any other ObjC properties or - * methods unless this is the case. - */ - const available: boolean; - - /** - * Direct access to a big portion of the Objective-C runtime API. - */ - const api: { - [name: string]: any; - }; - - /** - * Dynamically generated bindings for each of the currently registered classes. - * - * You can interact with objects by using dot notation and replacing colons with underscores, i.e.: - * - * ``` - * [NSString stringWithString:@"Hello World"]; - * ``` - * - * becomes: - * - * ``` - * const NSString = ObjC.classes.NSString; - * NSString.stringWithString_("Hello World"); - * ``` - * - * Note the underscore after the method name. - */ - const classes: { - [name: string]: ObjC.Object - }; - - /** - * Dynamically generated bindings for each of the currently registered protocols. - */ - const protocols: { - [name: string]: Protocol - }; - - /** - * GCD queue of the main thread. - */ - const mainQueue: NativePointer; - - /** - * Schedule the JavaScript function `work` on the GCD queue specified by `queue`. An NSAutoreleasePool is created - * just before calling `work`, and cleaned up on return. - * - * E.g. on macOS: - * ``` - * const { NSSound } = ObjC.classes; - * ObjC.schedule(ObjC.mainQueue, () => { - * const sound = NSSound.alloc().initWithContentsOfFile_byReference_("/Users/oleavr/.Trash/test.mp3", true).autorelease(); - * sound.play(); - * }); - * ``` - * - * @param queue GCD queue to schedule `work` on. - * @param work Function to call on the specified `queue`. - */ - function schedule(queue: NativePointerValue, work: () => void): void; - - /** - * Dynamically generated wrapper for any Objective-C instance, class, or meta-class. - */ - class Object implements ObjectWrapper, ObjectMethods { - constructor(handle: NativePointer, protocol?: Protocol); - - handle: NativePointer; - - /** - * Whether this is an instance, class, or meta-class. - */ - $kind: ObjectKind; - - /** - * Instance used for chaining up to super-class method implementations. - */ - $super: ObjC.Object; - - /** - * Super-class of this object's class. - */ - $superClass: ObjC.Object; - - /** - * Class that this object is an instance of. - */ - $class: ObjC.Object; - - /** - * Class name of this object. - */ - $className: string; - - /** - * Name of module where this object is implemented. - */ - $moduleName: string; - - /** - * Protocols that this object conforms to. - */ - $protocols: { - [name: string]: Protocol; - }; - - /** - * Native method names exposed by this object’s class and parent classes. - */ - $methods: string[]; - - /** - * Native method names exposed by this object’s class, not including parent classes. - */ - $ownMethods: string[]; - - /** - * Instance variables on this object. Supports both access and assignment. - */ - $ivars: { - [name: string]: any; - }; - - /** - * Determines whether two instances refer to the same underlying object. - * - * @param other Other object instance or address to compare to. - */ - equals(other: ObjC.Object | NativePointer): boolean; - - [name: string]: any; - } - - interface ObjectMethods { - [name: string]: ObjectMethod; - } - - interface ObjectMethod extends ObjectWrapper, AnyFunction { - handle: NativePointer; - - /** - * Objective-C selector. Use `ObjC.selectorAsString()` to convert it to a string. - */ - selector: NativePointer; - - /** - * Current implementation. - * - * You may replace it by assigning to this property. See `ObjC.implement()` for details. - */ - implementation: NativePointer; - - /** - * Return type name. - */ - returnType: string; - - /** - * Argument type names. - */ - argumentTypes: string[]; - - /** - * Signature. - */ - types: string; - - /** - * Makes a new method wrapper with custom NativeFunction options. - * - * Useful for e.g. setting `traps: "all"` to perform execution tracing - * in conjunction with Stalker. - */ - clone: (options: NativeFunctionOptions) => ObjectMethod; - } - - /** - * What kind of object an ObjC.Object represents. - */ - type ObjectKind = "instance" | "class" | "meta-class"; - - /** - * Dynamically generated language binding for any Objective-C protocol. - */ - class Protocol implements ObjectWrapper { - constructor(handle: NativePointer); - - handle: NativePointer; - - /** - * Name visible to the Objective-C runtime. - */ - name: string; - - /** - * Protocols that this protocol conforms to. - */ - protocols: { - [name: string]: Protocol - }; - - /** - * Properties declared by this protocol. - */ - properties: { - [name: string]: ProtocolPropertyAttributes; - }; - - /** - * Methods declared by this protocol. - */ - methods: { - [name: string]: ProtocolMethodDescription; - }; - } - - interface ProtocolPropertyAttributes { - [name: string]: string; - } - - interface ProtocolMethodDescription { - /** - * Whether this method is required or optional. - */ - required: boolean; - - /** - * Method signature. - */ - types: string; - } - - /** - * Dynamically generated language binding for any Objective-C block. - * - * Also supports implementing a block from scratch by passing in an - * implementation. - */ - class Block implements ObjectWrapper { - constructor(target: NativePointer | MethodSpec, options?: NativeFunctionOptions); - - handle: NativePointer; - - /** - * Signature, if available. - */ - types?: string | undefined; - - /** - * Current implementation. You may replace it by assigning to this property. - */ - implementation: AnyFunction; - - /** - * Declares the signature of an externally defined block. This is needed - * when working with blocks without signature metadata, i.e. when - * `block.types === undefined`. - * - * @param signature Signature to use. - */ - declare(signature: BlockSignature): void; - } - - type BlockImplementation = (this: Block, ...args: any[]) => any; - - type BlockSignature = SimpleBlockSignature | DetailedBlockSignature; - - interface SimpleBlockSignature { - /** - * Return type. - */ - retType: string; - - /** - * Argument types. - */ - argTypes: string[]; - } - - interface DetailedBlockSignature { - /** - * Signature. - */ - types: string; - } - - /** - * Creates a JavaScript implementation compatible with the signature of `method`, where `fn` is used as the - * implementation. Returns a `NativeCallback` that you may assign to an ObjC method’s `implementation` property. - * - * @param method Method to implement. - * @param fn Implementation. - */ - function implement(method: ObjectMethod, fn: AnyFunction): NativeCallback; - - /** - * Creates a new class designed to act as a proxy for a target object. - * - * @param spec Proxy specification. - */ - function registerProxy(spec: ProxySpec): ProxyConstructor; - - /** - * Creates a new Objective-C class. - * - * @param spec Class specification. - */ - function registerClass(spec: ClassSpec): ObjC.Object; - - /** - * Creates a new Objective-C protocol. - * - * @param spec Protocol specification. - */ - function registerProtocol(spec: ProtocolSpec): Protocol; - - /** - * Binds some JavaScript data to an Objective-C instance. - * - * @param obj Objective-C instance to bind data to. - * @param data Data to bind. - */ - function bind(obj: ObjC.Object | NativePointer, data: InstanceData): void; - - /** - * Unbinds previously associated JavaScript data from an Objective-C instance. - * - * @param obj Objective-C instance to unbind data from. - */ - function unbind(obj: ObjC.Object | NativePointer): void; - - /** - * Looks up previously bound data from an Objective-C object. - * - * @param obj Objective-C instance to look up data for. - */ - function getBoundData(obj: ObjC.Object | NativePointer): any; - - /** - * Enumerates loaded classes. - * - * @param callbacks Object with callbacks. - */ - function enumerateLoadedClasses(callbacks: EnumerateLoadedClassesCallbacks): void; - - /** - * Enumerates loaded classes. - * - * @param options Options customizing the enumeration. - * @param callbacks Object with callbacks. - */ - function enumerateLoadedClasses(options: EnumerateLoadedClassesOptions, callbacks: EnumerateLoadedClassesCallbacks): void; - - /** - * Synchronous version of `enumerateLoadedClasses()`. - * - * @param options Options customizing the enumeration. - */ - function enumerateLoadedClassesSync(options?: EnumerateLoadedClassesOptions): EnumerateLoadedClassesResult; - - interface EnumerateLoadedClassesOptions { - /** - * Limit enumeration to modules in the given module map. - */ - ownedBy?: ModuleMap | undefined; - } - - interface EnumerateLoadedClassesCallbacks { - onMatch: (name: string, owner: string) => void; - onComplete: () => void; - } - - interface EnumerateLoadedClassesResult { - /** - * Class names grouped by name of owner module. - */ - [owner: string]: string[]; - } - - function choose(specifier: ChooseSpecifier, callbacks: EnumerateCallbacks): void; - - /** - * Synchronous version of `choose()`. - * - * @param specifier What kind of objects to look for. - */ - function chooseSync(specifier: ChooseSpecifier): ObjC.Object[]; - - /** - * Converts the JavaScript string `name` to a selector. - * - * @param name Name to turn into a selector. - */ - function selector(name: string): NativePointer; - - /** - * Converts the selector `sel` to a JavaScript string. - * - * @param sel Selector to turn into a string. - */ - function selectorAsString(sel: NativePointerValue): string; - - interface ProxySpec { - /** - * Name of the proxy class. - * - * Omit this if you don’t care about the globally visible name and would like the runtime to auto-generate one - * for you. - */ - name?: string | undefined; - - /** - * Protocols this proxy class conforms to. - */ - protocols?: Protocol[] | undefined; - - /** - * Methods to implement. - */ - methods?: { - [name: string]: UserMethodImplementation | MethodSpec>; - } | undefined; - - /** - * Callbacks for getting notified about events. - */ - events?: ProxyEventCallbacks | undefined; - } - - interface ProxyEventCallbacks { - /** - * Gets notified right after the object has been deallocated. - * - * This is where you might clean up any associated state. - */ - dealloc?(this: UserMethodInvocation): void; - - /** - * Gets notified about the method name that we’re about to forward - * a call to. - * - * This might be where you’d start out with a temporary callback - * that just logs the names to help you decide which methods to - * override. - * - * @param name Name of method that is about to get called. - */ - forward?(this: UserMethodInvocation, name: string): void; - } - - /** - * Constructor for instantiating a proxy object. - * - * @param target Target object to proxy to. - * @param data Object with arbitrary data. - */ - interface ProxyConstructor { - new (target: ObjC.Object | NativePointer, data?: InstanceData): ProxyInstance; - } - - interface ProxyInstance { - handle: NativePointer; - } - - interface ProxyData extends InstanceData { - /** - * This proxy's target object. - */ - target: ObjC.Object; - - /** - * Used by the implementation. - */ - events: {}; - } - - interface ClassSpec { - /** - * Name of the class. - * - * Omit this if you don’t care about the globally visible name and would like the runtime to auto-generate one - * for you. - */ - name?: string | undefined; - - /** - * Super-class, or `null` to create a new root class. Omit to inherit from `NSObject`. - */ - super?: ObjC.Object | null | undefined; - - /** - * Protocols this class conforms to. - */ - protocols?: Protocol[] | undefined; - - /** - * Methods to implement. - */ - methods?: { - [name: string]: UserMethodImplementation | MethodSpec>; - } | undefined; - } - - type MethodSpec = SimpleMethodSpec | DetailedMethodSpec; - - interface SimpleMethodSpec { - /** - * Return type. - */ - retType: string; - - /** - * Argument types. - */ - argTypes: string[]; - - /** - * Implementation. - */ - implementation: I; - } - - interface DetailedMethodSpec { - /** - * Signature. - */ - types: string; - - /** - * Implementation. - */ - implementation: I; - } - - type UserMethodImplementation = (this: UserMethodInvocation, ...args: any[]) => any; - - interface UserMethodInvocation { - self: T; - super: S; - data: D; - } - - /** - * User-defined data that can be accessed from method implementations. - */ - interface InstanceData { - [name: string]: any; - } - - interface ProtocolSpec { - /** - * Name of the protocol. - * - * Omit this if you don’t care about the globally visible name and would like the runtime to auto-generate one - * for you. - */ - name?: string | undefined; - - /** - * Protocols this protocol conforms to. - */ - protocols?: Protocol[] | undefined; - - methods?: { - [name: string]: ProtocolMethodSpec; - } | undefined; - } - - type ProtocolMethodSpec = SimpleProtocolMethodSpec | DetailedProtocolMethodSpec; - - interface SimpleProtocolMethodSpec { - /** - * Return type. - */ - retType: string; - - /** - * Argument types. - */ - argTypes: string[]; - - /** - * Whether this method is required or optional. Default is required. - */ - optional?: boolean | undefined; - } - - interface DetailedProtocolMethodSpec { - /** - * Method signature. - */ - types: string; - - /** - * Whether this method is required or optional. Default is required. - */ - optional?: boolean | undefined; - } - - type ChooseSpecifier = SimpleChooseSpecifier | DetailedChooseSpecifier; - - type SimpleChooseSpecifier = ObjC.Object; - - interface DetailedChooseSpecifier { - /** - * Which class to look for instances of. E.g.: `ObjC.classes.UIButton`. - */ - class: ObjC.Object; - - /** - * Whether you’re also interested in subclasses matching the given class selector. - * - * The default is to also include subclasses. - */ - subclasses?: boolean | undefined; - } - - // tslint:enable:no-unnecessary-qualifier -} - -declare namespace Java { - /** - * Whether the current process has a Java runtime loaded. Do not invoke any other Java properties or - * methods unless this is the case. - */ - const available: boolean; - - /** - * Which version of Android we're running on. - */ - const androidVersion: string; - - /** - * Calls `func` with the `obj` lock held. - * - * @param obj Instance whose lock to hold. - * @param fn Function to call with lock held. - */ - function synchronized(obj: Wrapper, fn: () => void): void; - - /** - * Enumerates loaded classes. - * - * @param callbacks Object with callbacks. - */ - function enumerateLoadedClasses(callbacks: EnumerateLoadedClassesCallbacks): void; - - /** - * Synchronous version of `enumerateLoadedClasses()`. - */ - function enumerateLoadedClassesSync(): string[]; - - /** - * Enumerates class loaders. - * - * You may pass such a loader to `Java.ClassFactory.get()` to be able to - * `.use()` classes on the specified class loader. - * - * @param callbacks Object with callbacks. - */ - function enumerateClassLoaders(callbacks: EnumerateClassLoadersCallbacks): void; - - /** - * Synchronous version of `enumerateClassLoaders()`. - */ - function enumerateClassLoadersSync(): Wrapper[]; - - /** - * Enumerates methods matching `query`. - * - * @param query Query specified as `class!method`, with globs permitted. May - * also be suffixed with `/` and one or more modifiers: - * - `i`: Case-insensitive matching. - * - `s`: Include method signatures, so e.g. `"putInt"` becomes - * `"putInt(java.lang.String, int): void"`. - * - `u`: User-defined classes only, ignoring system classes. - */ - function enumerateMethods(query: string): EnumerateMethodsMatchGroup[]; - - /** - * Runs `fn` on the main thread of the VM. - * - * @param fn Function to run on the main thread of the VM. - */ - function scheduleOnMainThread(fn: () => void): void; - - /** - * Ensures that the current thread is attached to the VM and calls `fn`. - * (This isn't necessary in callbacks from Java.) - * - * Will defer calling `fn` if the app's class loader is not available yet. - * Use `Java.performNow()` if access to the app's classes is not needed. - * - * @param fn Function to run while attached to the VM. - */ - function perform(fn: () => void): void; - - /** - * Ensures that the current thread is attached to the VM and calls `fn`. - * (This isn't necessary in callbacks from Java.) - * - * @param fn Function to run while attached to the VM. - */ - function performNow(fn: () => void): void; - - /** - * Dynamically generates a JavaScript wrapper for `className` that you can - * instantiate objects from by calling `$new()` on to invoke a constructor. - * Call `$dispose()` on an instance to clean it up explicitly, or wait for - * the JavaScript object to get garbage-collected, or script to get - * unloaded. Static and non-static methods are available, and you can even - * replace method implementations. - * - * Uses the app's class loader, but you may access classes on other loaders - * by calling `Java.ClassFactory.get()`. - * - * @param className Canonical class name to get a wrapper for. - */ - function use = {}>(className: string): Wrapper; - - /** - * Opens the .dex file at `filePath`. - * - * @param filePath Path to .dex to open. - */ - function openClassFile(filePath: string): DexFile; - - /** - * Enumerates live instances of the `className` class by scanning the Java - * VM's heap. - * - * @param className Name of class to enumerate instances of. - * @param callbacks Object with callbacks. - */ - function choose(className: string, callbacks: ChooseCallbacks): void; - - /** - * Duplicates a JavaScript wrapper for later use outside replacement method. - * - * @param obj An existing wrapper retrieved from `this` in replacement method. - */ - function retain = {}>(obj: Wrapper): Wrapper; - - /** - * Creates a JavaScript wrapper given the existing instance at `handle` of - * given class `klass` as returned from `Java.use()`. - * - * @param handle An existing wrapper or a JNI handle. - * @param klass Class wrapper for type to cast to. - */ - function cast = {}, To extends Members = {}>( - handle: Wrapper | NativePointerValue, - klass: Wrapper - ): Wrapper; - - /** - * Creates a Java array with elements of the specified `type`, from a - * JavaScript array `elements`. The resulting Java array behaves like - * a JS array, but can be passed by reference to Java APIs in order to - * allow them to modify its contents. - * - * @param type Type name of elements. - * @param elements Array of JavaScript values to use for constructing the - * Java array. - */ - function array(type: string, elements: any[]): any[]; - - /** - * Generates a backtrace for the current thread. - * - * Note that this API is unstable and subject to change. - * - * @param options Options to customize the stack-walking. - */ - function backtrace(options?: BacktraceOptions): Frame[]; - - /** - * Determines whether the caller is running on the main thread. - */ - function isMainThread(): boolean; - - /** - * Creates a new Java class. - * - * @param spec Object describing the class to be created. - */ - function registerClass(spec: ClassSpec): Wrapper; - - /** - * Forces the VM to execute everything with its interpreter. Necessary to - * prevent optimizations from bypassing method hooks in some cases, and - * allows ART's Instrumentation APIs to be used for tracing the runtime. - */ - function deoptimizeEverything(): void; - - /** - * Similar to deoptimizeEverything but only deoptimizes boot image code. - * Use with `dalvik.vm.dex2oat-flags --inline-max-code-units=0` for best - * results. - */ - function deoptimizeBootImage(): void; - - const vm: VM; - - /** - * The default class factory used to implement e.g. `Java.use()`. - * Uses the application's main class loader. - */ - const classFactory: ClassFactory; - - interface EnumerateLoadedClassesCallbacks { - /** - * Called with the name of each currently loaded class, and a JNI - * reference for its Java Class object. - * - * Pass the `name` to `Java.use()` to get a JavaScript wrapper. - * You may also `Java.cast()` the `handle` to `java.lang.Class`. - */ - onMatch: (name: string, handle: NativePointer) => void; - - /** - * Called when all loaded classes have been enumerated. - */ - onComplete: () => void; - } - - interface EnumerateClassLoadersCallbacks { - /** - * Called with a `java.lang.ClassLoader` wrapper for each class loader - * found in the VM. - */ - onMatch: (loader: Wrapper) => void; - - /** - * Called when all class loaders have been enumerated. - */ - onComplete: () => void; - } - - /** - * Matching methods grouped by class loader. - */ - interface EnumerateMethodsMatchGroup { - /** - * Class loader, or `null` for the bootstrap class loader. - * - * Typically passed to `ClassFactory.get()` to interact with classes of - * interest. - */ - loader: Wrapper | null; - - /** - * One or more matching classes that have one or more methods matching - * the given query. - */ - classes: [EnumerateMethodsMatchClass, ...EnumerateMethodsMatchClass[]]; - } - - /** - * Class matching query which has one or more matching methods. - */ - interface EnumerateMethodsMatchClass { - /** - * Class name that matched the given query. - */ - name: string; - - /** - * One or more matching method names, each followed by signature when - * the `s` modifier is used. - */ - methods: [string, ...string[]]; - } - - interface ChooseCallbacks = {}> { - /** - * Called with each live instance found with a ready-to-use `instance` - * just as if you would have called `Java.cast()` with a raw handle to - * this particular instance. - * - * May return `EnumerateAction.Stop` to stop the enumeration early. - */ - onMatch: (instance: Wrapper) => void | EnumerateAction; - - /** - * Called when all instances have been enumerated. - */ - onComplete: () => void; - } - - /** - * Options that may be passed to `Java.backtrace()`. - */ - interface BacktraceOptions { - /** - * Limit how many frames up the stack to walk. Defaults to 16. - */ - limit?: number; - } - - /** - * Stack frame returned by `Java.backtrace()`. - */ - interface Frame { - /** - * Method being called. - */ - method: { - /** - * The jmethodID of the method. On ART, this is an `ArtMethod *`. - */ - handle: NativePointer; - - /** - * Method name, e.g. `"loopOnce"`. - */ - name: string; - - /** - * Return type, e.g. `"boolean"`. - */ - returnType: string; - - /** - * Argument types, e.g. `["android.os.Looper", "long", "int"]`. - */ - argumentTypes: string[]; - }; - - /** - * Class name that method belongs to, e.g. `"android.os.Looper"`. - */ - className: string; - - /** - * Source file name, e.g. `"Looper.java"`. - */ - fileName: string; - - /** - * Source line number, e.g. `201`. - */ - lineNumber: number; - } - - type Members = Record; - - /** - * Dynamically generated wrapper for any Java class, instance, or interface. - */ - type Wrapper = {}> = { - /** - * Automatically inject holder's type to all fields and methods - */ - [K in keyof T]: T[K] extends Field ? Field : MethodDispatcher - } & { - /** - * Allocates and initializes a new instance of the given class. - * - * Use this to create a new instance. - */ - $new: MethodDispatcher; - - /** - * Allocates a new instance without initializing it. - * - * Call `$init()` to initialize it. - */ - $alloc: MethodDispatcher; - - /** - * Initializes an instance that was allocated but not yet initialized. - * This wraps the constructor(s). - * - * Replace the `implementation` property to hook a given constructor. - */ - $init: MethodDispatcher; - - /** - * Eagerly deletes the underlying JNI global reference without having to - * wait for the object to become unreachable and the JavaScript - * runtime's garbage collector to kick in (or script to be unloaded). - * - * Useful when a lot of short-lived objects are created in a loop and - * there's a risk of running out of global handles. - */ - $dispose(): void; - - /** - * Retrieves a `java.lang.Class` wrapper for the current class. - */ - class: Wrapper; - - /** - * Canonical name of class being wrapped. - */ - $className: string; - - /** - * Method and field names exposed by this object’s class, not including - * parent classes. - */ - $ownMembers: string[]; - - /** - * Instance used for chaining up to super-class method implementations. - */ - $super: Wrapper; - - /** - * Methods and fields. - */ - [name: string]: any; - }; - - interface MethodDispatcher = {}> extends Method { - /** - * Available overloads. - */ - overloads: Array>; - - /** - * Obtains a specific overload. - * - * @param args Signature of the overload to obtain. - * For example: `"java.lang.String", "int"`. - */ - overload(...args: string[]): Method; - } - - interface Method = {}> { - (...params: any[]): any; - - /** - * Name of this method. - */ - methodName: string; - - /** - * Class that this method belongs to. - */ - holder: Wrapper; - - /** - * What kind of method this is, i.e. constructor vs static vs instance. - */ - type: MethodType; - - /** - * Pointer to the VM's underlying method object. - */ - handle: NativePointer; - - /** - * Implementation. Assign a new implementation to this property to - * replace the original implementation. Assign `null` at a future point - * to revert back to the original implementation. - */ - implementation: MethodImplementation | null; - - /** - * Method return type. - */ - returnType: Type; - - /** - * Method argument types. - */ - argumentTypes: Type[]; - - /** - * Queries whether the method may be invoked with a given argument list. - */ - canInvokeWith: (...args: any[]) => boolean; - - /** - * Makes a new method wrapper with custom NativeFunction options. - * - * Useful for e.g. setting `traps: "all"` to perform execution tracing - * in conjunction with Stalker. - */ - clone: (options: NativeFunctionOptions) => Method; - } - - type MethodImplementation = {}> = (this: Wrapper, ...params: any[]) => any; - - interface Field = {}> { - /** - * Current value of this field. Assign to update the field's value. - */ - value: Value; - - /** - * Class that this field belongs to. - */ - holder: Wrapper; - - /** - * What kind of field this is, i.e. static vs instance. - */ - fieldType: FieldType; - - /** - * Type of value. - */ - fieldReturnType: Type; - } - - // tslint:disable-next-line:no-const-enum - const enum MethodType { - Constructor = 1, - Static = 2, - Instance = 3, - } - - // tslint:disable-next-line:no-const-enum - const enum FieldType { - Static = 1, - Instance = 2, - } - - interface Type { - /** - * VM type name. For example `I` for `int`. - */ - name: string; - - /** - * Frida type name. For example `pointer` for a handle. - */ - type: string; - - /** - * Size in words. - */ - size: number; - - /** - * Size in bytes. - */ - byteSize: number; - - /** - * Class name, if applicable. - */ - className?: string | undefined; - - /** - * Checks whether a given JavaScript `value` is compatible. - */ - isCompatible: (value: any) => boolean; - - /** - * Converts `value` from a JNI value to a JavaScript value. - */ - fromJni?: ((value: any) => any) | undefined; - - /** - * Converts `value` from a JavaScript value to a JNI value. - */ - toJni?: ((value: any) => any) | undefined; - - /** - * Reads a value from memory. - */ - read?: ((address: NativePointerValue) => any) | undefined; - - /** - * Writes a value to memory. - */ - write?: ((address: NativePointerValue, value: any) => void) | undefined; - } - - interface DexFile { - /** - * Loads the contained classes into the VM. - */ - load(): void; - - /** - * Determines available class names. - */ - getClassNames(): string[]; - } - - interface ClassSpec { - /** - * Name of the class. - */ - name: string; - - /** - * Super-class. Omit to inherit from `java.lang.Object`. - */ - superClass?: Wrapper | undefined; - - /** - * Interfaces implemented by this class. - */ - implements?: Wrapper[] | undefined; - - /** - * Name and type of each field to expose. - */ - fields?: { - [name: string]: string; - } | undefined; - - /** - * Methods to implement. Use the special name `$init` to define one or more constructors. - */ - methods?: { - [name: string]: MethodImplementation | MethodSpec | MethodSpec[]; - } | undefined; - } - - interface MethodSpec { - /** - * Return type. Defaults to `void` if omitted. - */ - returnType?: string | undefined; - - /** - * Argument types. Defaults to `[]` if omitted. - */ - argumentTypes?: string[] | undefined; - - /** - * Implementation. - */ - implementation: MethodImplementation; - } - - interface VM { - /** - * Ensures that the current thread is attached to the VM and calls `fn`. - * (This isn't necessary in callbacks from Java.) - * - * @param fn Function to run while attached to the VM. - */ - perform(fn: () => void): void; - - /** - * Gets a wrapper for the current thread's `JNIEnv`. - * - * Throws an exception if the current thread is not attached to the VM. - */ - getEnv(): Env; - - /** - * Tries to get a wrapper for the current thread's `JNIEnv`. - * - * Returns `null` if the current thread is not attached to the VM. - */ - tryGetEnv(): Env | null; - } - - type Env = any; - - class ClassFactory { - /** - * Gets the class factory instance for a given class loader, or the - * default factory when passing `null`. - * - * The default class factory used behind the scenes only interacts - * with the application's main class loader. Other class loaders - * can be discovered through APIs such as `Java.enumerateMethods()` and - * `Java.enumerateClassLoaders()`, and subsequently interacted with - * through this API. - */ - static get(classLoader: Wrapper | null): ClassFactory; - - /** - * Class loader currently being used. For the default class factory this - * is updated by the first call to `Java.perform()`. - */ - readonly loader: Wrapper | null; - - /** - * Path to cache directory currently being used. For the default class - * factory this is updated by the first call to `Java.perform()`. - */ - cacheDir: string; - - /** - * Naming convention to use for temporary files. - * - * Defaults to `{ prefix: "frida", suffix: "dat" }`. - */ - tempFileNaming: TempFileNaming; - - /** - * Dynamically generates a JavaScript wrapper for `className` that you can - * instantiate objects from by calling `$new()` on to invoke a constructor. - * Call `$dispose()` on an instance to clean it up explicitly, or wait for - * the JavaScript object to get garbage-collected, or script to get - * unloaded. Static and non-static methods are available, and you can even - * replace method implementations. - * - * @param className Canonical class name to get a wrapper for. - */ - use = {}>(className: string): Wrapper; - - /** - * Opens the .dex file at `filePath`. - * - * @param filePath Path to .dex to open. - */ - openClassFile(filePath: string): DexFile; - - /** - * Enumerates live instances of the `className` class by scanning the Java - * VM's heap. - * - * @param className Name of class to enumerate instances of. - * @param callbacks Object with callbacks. - */ - choose(className: string, callbacks: ChooseCallbacks): void; - - /** - * Duplicates a JavaScript wrapper for later use outside replacement method. - * - * @param obj An existing wrapper retrieved from `this` in replacement method. - */ - retain = {}>(obj: Wrapper): Wrapper; - - /** - * Creates a JavaScript wrapper given the existing instance at `handle` of - * given class `klass` as returned from `Java.use()`. - * - * @param handle An existing wrapper or a JNI handle. - * @param klass Class wrapper for type to cast to. - */ - cast = {}, To extends Members = {}>( - handle: Wrapper | NativePointerValue, - klass: Wrapper - ): Wrapper; - - /** - * Creates a Java array with elements of the specified `type`, from a - * JavaScript array `elements`. The resulting Java array behaves like - * a JS array, but can be passed by reference to Java APIs in order to - * allow them to modify its contents. - * - * @param type Type name of elements. - * @param elements Array of JavaScript values to use for constructing the - * Java array. - */ - array(type: string, elements: any[]): any[]; - - /** - * Creates a new Java class. - * - * @param spec Object describing the class to be created. - */ - registerClass(spec: ClassSpec): Wrapper; - } - - interface TempFileNaming { - /** - * File name prefix to use. - * - * For example: `frida`. - */ - prefix: string; - - /** - * File name suffix to use. - * - * For example: `dat`. - */ - suffix: string; - } -} - -/** - * Generates machine code for x86. - */ -declare class X86Writer { - /** - * Creates a new code writer for generating x86 machine code - * written directly to memory at `codeAddress`. - * - * @param codeAddress Memory address to write generated code to. - * @param options Options for customizing code generation. - */ - constructor(codeAddress: NativePointerValue, options?: X86WriterOptions); - - /** - * Recycles instance. - */ - reset(codeAddress: NativePointerValue, options?: X86WriterOptions): void; - - /** - * Eagerly cleans up memory. - */ - dispose(): void; - - /** - * Resolves label references and writes pending data to memory. You - * should always call this once you've finished generating code. It - * is usually also desirable to do this between pieces of unrelated - * code, e.g. when generating multiple functions in one go. - */ - flush(): void; - - /** - * Memory location of the first byte of output. - */ - base: NativePointer; - - /** - * Memory location of the next byte of output. - */ - code: NativePointer; - - /** - * Program counter at the next byte of output. - */ - pc: NativePointer; - - /** - * Current offset in bytes. - */ - offset: number; - - /** - * Puts a label at the current position, where `id` is an identifier - * that may be referenced in past and future `put*Label()` calls. - */ - putLabel(id: string): void; - - /** - * Puts code needed for calling a C function with the specified `args`. - */ - putCallAddressWithArguments(func: NativePointerValue, args: X86CallArgument[]): void; - - /** - * Like `putCallWithArguments()`, but also - * ensures that the argument list is aligned on a 16 byte boundary. - */ - putCallAddressWithAlignedArguments(func: NativePointerValue, args: X86CallArgument[]): void; - - /** - * Puts code needed for calling a C function with the specified `args`. - */ - putCallRegWithArguments(reg: X86Register, args: X86CallArgument[]): void; - - /** - * Like `putCallWithArguments()`, but also - * ensures that the argument list is aligned on a 16 byte boundary. - */ - putCallRegWithAlignedArguments(reg: X86Register, args: X86CallArgument[]): void; - - /** - * Puts code needed for calling a C function with the specified `args`. - */ - putCallRegOffsetPtrWithArguments(reg: X86Register, offset: number | Int64 | UInt64, args: X86CallArgument[]): void; - - /** - * Puts a CALL instruction. - */ - putCallAddress(address: NativePointerValue): void; - - /** - * Puts a CALL instruction. - */ - putCallReg(reg: X86Register): void; - - /** - * Puts a CALL instruction. - */ - putCallRegOffsetPtr(reg: X86Register, offset: number | Int64 | UInt64): void; - - /** - * Puts a CALL instruction. - */ - putCallIndirect(addr: NativePointerValue): void; - - /** - * Puts a CALL instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putCallIndirectLabel(labelId: string): void; - - /** - * Puts a CALL instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putCallNearLabel(labelId: string): void; - - /** - * Puts a LEAVE instruction. - */ - putLeave(): void; - - /** - * Puts a RET instruction. - */ - putRet(): void; - - /** - * Puts a RET instruction. - */ - putRetImm(immValue: number): void; - - /** - * Puts a JMP instruction. - */ - putJmpAddress(address: NativePointerValue): void; - - /** - * Puts a JMP instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putJmpShortLabel(labelId: string): void; - - /** - * Puts a JMP instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putJmpNearLabel(labelId: string): void; - - /** - * Puts a JMP instruction. - */ - putJmpReg(reg: X86Register): void; - - /** - * Puts a JMP instruction. - */ - putJmpRegPtr(reg: X86Register): void; - - /** - * Puts a JMP instruction. - */ - putJmpRegOffsetPtr(reg: X86Register, offset: number | Int64 | UInt64): void; - - /** - * Puts a JMP instruction. - */ - putJmpNearPtr(address: NativePointerValue): void; - - /** - * Puts a JCC instruction. - */ - putJccShort(instructionId: X86InstructionId, target: NativePointerValue, hint: X86BranchHint): void; - - /** - * Puts a JCC instruction. - */ - putJccNear(instructionId: X86InstructionId, target: NativePointerValue, hint: X86BranchHint): void; - - /** - * Puts a JCC instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putJccShortLabel(instructionId: X86InstructionId, labelId: string, hint: X86BranchHint): void; - - /** - * Puts a JCC instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putJccNearLabel(instructionId: X86InstructionId, labelId: string, hint: X86BranchHint): void; - - /** - * Puts an ADD instruction. - */ - putAddRegImm(reg: X86Register, immValue: number | Int64 | UInt64): void; - - /** - * Puts an ADD instruction. - */ - putAddRegReg(dstReg: X86Register, srcReg: X86Register): void; - - /** - * Puts an ADD instruction. - */ - putAddRegNearPtr(dstReg: X86Register, srcAddress: NativePointerValue): void; - - /** - * Puts a SUB instruction. - */ - putSubRegImm(reg: X86Register, immValue: number | Int64 | UInt64): void; - - /** - * Puts a SUB instruction. - */ - putSubRegReg(dstReg: X86Register, srcReg: X86Register): void; - - /** - * Puts a SUB instruction. - */ - putSubRegNearPtr(dstReg: X86Register, srcAddress: NativePointerValue): void; - - /** - * Puts an INC instruction. - */ - putIncReg(reg: X86Register): void; - - /** - * Puts a DEC instruction. - */ - putDecReg(reg: X86Register): void; - - /** - * Puts an INC instruction. - */ - putIncRegPtr(target: X86PointerTarget, reg: X86Register): void; - - /** - * Puts a DEC instruction. - */ - putDecRegPtr(target: X86PointerTarget, reg: X86Register): void; - - /** - * Puts a LOCK XADD instruction. - */ - putLockXaddRegPtrReg(dstReg: X86Register, srcReg: X86Register): void; - - /** - * Puts a LOCK CMPXCHG instruction. - */ - putLockCmpxchgRegPtrReg(dstReg: X86Register, srcReg: X86Register): void; - - /** - * Puts a LOCK INC IMM32 instruction. - */ - putLockIncImm32Ptr(target: NativePointerValue): void; - - /** - * Puts a LOCK DEC IMM32 instruction. - */ - putLockDecImm32Ptr(target: NativePointerValue): void; - - /** - * Puts an AND instruction. - */ - putAndRegReg(dstReg: X86Register, srcReg: X86Register): void; - - /** - * Puts an AND instruction. - */ - putAndRegU32(reg: X86Register, immValue: number): void; - - /** - * Puts a SHL instruction. - */ - putShlRegU8(reg: X86Register, immValue: number): void; - - /** - * Puts a SHR instruction. - */ - putShrRegU8(reg: X86Register, immValue: number): void; - - /** - * Puts an XOR instruction. - */ - putXorRegReg(dstReg: X86Register, srcReg: X86Register): void; - - /** - * Puts a MOV instruction. - */ - putMovRegReg(dstReg: X86Register, srcReg: X86Register): void; - - /** - * Puts a MOV instruction. - */ - putMovRegU32(dstReg: X86Register, immValue: number): void; - - /** - * Puts a MOV instruction. - */ - putMovRegU64(dstReg: X86Register, immValue: number | UInt64): void; - - /** - * Puts a MOV instruction. - */ - putMovRegAddress(dstReg: X86Register, address: NativePointerValue): void; - - /** - * Puts a MOV instruction. - */ - putMovRegPtrU32(dstReg: X86Register, immValue: number): void; - - /** - * Puts a MOV instruction. - */ - putMovRegOffsetPtrU32(dstReg: X86Register, dstOffset: number | Int64 | UInt64, immValue: number): void; - - /** - * Puts a MOV instruction. - */ - putMovRegPtrReg(dstReg: X86Register, srcReg: X86Register): void; - - /** - * Puts a MOV instruction. - */ - putMovRegOffsetPtrReg(dstReg: X86Register, dstOffset: number | Int64 | UInt64, srcReg: X86Register): void; - - /** - * Puts a MOV instruction. - */ - putMovRegRegPtr(dstReg: X86Register, srcReg: X86Register): void; - - /** - * Puts a MOV instruction. - */ - putMovRegRegOffsetPtr(dstReg: X86Register, srcReg: X86Register, srcOffset: number | Int64 | UInt64): void; - - /** - * Puts a MOV instruction. - */ - putMovRegBaseIndexScaleOffsetPtr(dstReg: X86Register, baseReg: X86Register, indexReg: X86Register, scale: number, offset: number | Int64 | UInt64): void; - - /** - * Puts a MOV instruction. - */ - putMovRegNearPtr(dstReg: X86Register, srcAddress: NativePointerValue): void; - - /** - * Puts a MOV instruction. - */ - putMovNearPtrReg(dstAddress: NativePointerValue, srcReg: X86Register): void; - - /** - * Puts a MOV FS instruction. - */ - putMovFsU32PtrReg(fsOffset: number, srcReg: X86Register): void; - - /** - * Puts a MOV FS instruction. - */ - putMovRegFsU32Ptr(dstReg: X86Register, fsOffset: number): void; - - /** - * Puts a MOV GS instruction. - */ - putMovGsU32PtrReg(fsOffset: number, srcReg: X86Register): void; - - /** - * Puts a MOV GS instruction. - */ - putMovRegGsU32Ptr(dstReg: X86Register, fsOffset: number): void; - - /** - * Puts a MOVQ XMM0 ESP instruction. - */ - putMovqXmm0EspOffsetPtr(offset: number): void; - - /** - * Puts a MOVQ EAX XMM0 instruction. - */ - putMovqEaxOffsetPtrXmm0(offset: number): void; - - /** - * Puts a MOVDQU XMM0 ESP instruction. - */ - putMovdquXmm0EspOffsetPtr(offset: number): void; - - /** - * Puts a MOVDQU EAX XMM0 instruction. - */ - putMovdquEaxOffsetPtrXmm0(offset: number): void; - - /** - * Puts a LEA instruction. - */ - putLeaRegRegOffset(dstReg: X86Register, srcReg: X86Register, srcOffset: number | Int64 | UInt64): void; - - /** - * Puts an XCHG instruction. - */ - putXchgRegRegPtr(leftReg: X86Register, rightReg: X86Register): void; - - /** - * Puts a PUSH instruction. - */ - putPushU32(immValue: number): void; - - /** - * Puts a PUSH instruction. - */ - putPushNearPtr(address: NativePointerValue): void; - - /** - * Puts a PUSH instruction. - */ - putPushReg(reg: X86Register): void; - - /** - * Puts a POP instruction. - */ - putPopReg(reg: X86Register): void; - - /** - * Puts a PUSH instruction. - */ - putPushImmPtr(immPtr: NativePointerValue): void; - - /** - * Puts a PUSHAX instruction. - */ - putPushax(): void; - - /** - * Puts a POPAX instruction. - */ - putPopax(): void; - - /** - * Puts a PUSHFX instruction. - */ - putPushfx(): void; - - /** - * Puts a POPFX instruction. - */ - putPopfx(): void; - - /** - * Puts a TEST instruction. - */ - putTestRegReg(regA: X86Register, regB: X86Register): void; - - /** - * Puts a TEST instruction. - */ - putTestRegU32(reg: X86Register, immValue: number): void; - - /** - * Puts a CMP instruction. - */ - putCmpRegI32(reg: X86Register, immValue: number): void; - - /** - * Puts a CMP instruction. - */ - putCmpRegOffsetPtrReg(regA: X86Register, offset: number | Int64 | UInt64, regB: X86Register): void; - - /** - * Puts a CMP instruction. - */ - putCmpImmPtrImmU32(immPtr: NativePointerValue, immValue: number): void; - - /** - * Puts a CMP instruction. - */ - putCmpRegReg(regA: X86Register, regB: X86Register): void; - - /** - * Puts a CLC instruction. - */ - putClc(): void; - - /** - * Puts a STC instruction. - */ - putStc(): void; - - /** - * Puts a CLD instruction. - */ - putCld(): void; - - /** - * Puts a STD instruction. - */ - putStd(): void; - - /** - * Puts a CPUID instruction. - */ - putCpuid(): void; - - /** - * Puts an LFENCE instruction. - */ - putLfence(): void; - - /** - * Puts an RDTSC instruction. - */ - putRdtsc(): void; - - /** - * Puts a PAUSE instruction. - */ - putPause(): void; - - /** - * Puts a NOP instruction. - */ - putNop(): void; - - /** - * Puts an OS/architecture-specific breakpoint instruction. - */ - putBreakpoint(): void; - - /** - * Puts `n` guard instruction. - */ - putPadding(n: number): void; - - /** - * Puts `n` NOP instructions. - */ - putNopPadding(n: number): void; - - /** - * Puts a uint8. - */ - putU8(value: number): void; - - /** - * Puts an int8. - */ - putS8(value: number): void; - - /** - * Puts raw data. - */ - putBytes(data: ArrayBuffer | number[] | string): void; -} - -interface X86WriterOptions { - /** - * Specifies the initial program counter, which is useful when - * generating code to a scratch buffer. This is essential when using - * `Memory.patchCode()` on iOS, which may provide you with a - * temporary location that later gets mapped into memory at the - * intended memory location. - */ - pc?: NativePointer | undefined; -} - -type X86CallArgument = X86Register | number | UInt64 | Int64 | NativePointerValue; - -/** - * Relocates machine code for x86. - */ -declare class X86Relocator { - /** - * Creates a new code relocator for copying x86 instructions - * from one memory location to another, taking care to adjust - * position-dependent instructions accordingly. - * - * @param inputCode Source address to copy instructions from. - * @param output X86Writer pointed at the desired target memory - * address. - */ - constructor(inputCode: NativePointerValue, output: X86Writer); - - /** - * Recycles instance. - */ - reset(inputCode: NativePointerValue, output: X86Writer): void; - - /** - * Eagerly cleans up memory. - */ - dispose(): void; - - /** - * Latest `Instruction` read so far. Starts out `null` and changes - * on every call to `readOne()`. - */ - input: Instruction | null; - - /** - * Indicates whether end-of-block has been reached, i.e. we've - * reached a branch of any kind, like CALL, JMP, BL, RET. - */ - eob: boolean; - - /** - * Indicates whether end-of-input has been reached, e.g. we've - * reached JMP/B/RET, an instruction after which there may or may - * not be valid code. - */ - eoi: boolean; - - /** - * Reads the next instruction into the relocator's internal buffer - * and returns the number of bytes read so far, including previous - * calls. - * - * You may keep calling this method to keep buffering, or immediately - * call either `writeOne()` or `skipOne()`. Or, you can buffer up - * until the desired point and then call `writeAll()`. - * - * Returns zero when end-of-input is reached, which means the `eoi` - * property is now `true`. - */ - readOne(): number; - - /** - * Peeks at the next `Instruction` to be written or skipped. - */ - peekNextWriteInsn(): Instruction | null; - - /** - * Peeks at the address of the next instruction to be written or skipped. - */ - peekNextWriteSource(): NativePointer; - - /** - * Skips the instruction that would have been written next. - */ - skipOne(): void; - - /** - * Skips the instruction that would have been written next, - * but without a label for internal use. This breaks relocation of branches to - * locations inside the relocated range, and is an optimization for use-cases - * where all branches are rewritten (e.g. Frida's Stalker). - */ - skipOneNoLabel(): void; - - /** - * Writes the next buffered instruction. - */ - writeOne(): boolean; - - /** - * Writes the next buffered instruction, but without a - * label for internal use. This breaks relocation of branches to locations - * inside the relocated range, and is an optimization for use-cases where all - * branches are rewritten (e.g. Frida's Stalker). - */ - writeOneNoLabel(): boolean; - - /** - * Writes all buffered instructions. - */ - writeAll(): void; -} - -type X86Register = - | "xax" - | "xcx" - | "xdx" - | "xbx" - | "xsp" - | "xbp" - | "xsi" - | "xdi" - | "eax" - | "ecx" - | "edx" - | "ebx" - | "esp" - | "ebp" - | "esi" - | "edi" - | "rax" - | "rcx" - | "rdx" - | "rbx" - | "rsp" - | "rbp" - | "rsi" - | "rdi" - | "r8" - | "r9" - | "r10" - | "r11" - | "r12" - | "r13" - | "r14" - | "r15" - | "r8d" - | "r9d" - | "r10d" - | "r11d" - | "r12d" - | "r13d" - | "r14d" - | "r15d" - | "xip" - | "eip" - | "rip" - ; - -type X86InstructionId = - | "jo" - | "jno" - | "jb" - | "jae" - | "je" - | "jne" - | "jbe" - | "ja" - | "js" - | "jns" - | "jp" - | "jnp" - | "jl" - | "jge" - | "jle" - | "jg" - | "jcxz" - | "jecxz" - | "jrcxz" - ; - -type X86BranchHint = "no-hint" | "likely" | "unlikely"; - -type X86PointerTarget = "byte" | "dword" | "qword"; - -/** - * Generates machine code for arm. - */ -declare class ArmWriter { - /** - * Creates a new code writer for generating ARM machine code - * written directly to memory at `codeAddress`. - * - * @param codeAddress Memory address to write generated code to. - * @param options Options for customizing code generation. - */ - constructor(codeAddress: NativePointerValue, options?: ArmWriterOptions); - - /** - * Recycles instance. - */ - reset(codeAddress: NativePointerValue, options?: ArmWriterOptions): void; - - /** - * Eagerly cleans up memory. - */ - dispose(): void; - - /** - * Resolves label references and writes pending data to memory. You - * should always call this once you've finished generating code. It - * is usually also desirable to do this between pieces of unrelated - * code, e.g. when generating multiple functions in one go. - */ - flush(): void; - - /** - * Memory location of the first byte of output. - */ - base: NativePointer; - - /** - * Memory location of the next byte of output. - */ - code: NativePointer; - - /** - * Program counter at the next byte of output. - */ - pc: NativePointer; - - /** - * Current offset in bytes. - */ - offset: number; - - /** - * Skips `nBytes`. - */ - skip(nBytes: number): void; - - /** - * Puts a label at the current position, where `id` is an identifier - * that may be referenced in past and future `put*Label()` calls. - */ - putLabel(id: string): void; - - /** - * Puts code needed for calling a C function with the specified `args`. - */ - putCallAddressWithArguments(func: NativePointerValue, args: ArmCallArgument[]): void; - - /** - * Puts code needed for branching/jumping to the given address. - */ - putBranchAddress(address: NativePointerValue): void; - - /** - * Determines whether a direct branch is possible between the two - * given memory locations. - */ - canBranchDirectlyBetween(from: NativePointerValue, to: NativePointerValue): boolean; - - /** - * Puts a B instruction. - */ - putBImm(target: NativePointerValue): void; - - /** - * Puts a B COND instruction. - */ - putBCondImm(cc: ArmConditionCode, target: NativePointerValue): void; - - /** - * Puts a B instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBLabel(labelId: string): void; - - /** - * Puts a B COND instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBCondLabel(cc: ArmConditionCode, labelId: string): void; - - /** - * Puts a BL instruction. - */ - putBlImm(target: NativePointerValue): void; - - /** - * Puts a BLX instruction. - */ - putBlxImm(target: NativePointerValue): void; - - /** - * Puts a BL instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBlLabel(labelId: string): void; - - /** - * Puts a BX instruction. - */ - putBxReg(reg: ArmRegister): void; - - /** - * Puts a BLX instruction. - */ - putBlxReg(reg: ArmRegister): void; - - /** - * Puts a RET instruction. - */ - putRet(): void; - - /** - * Puts an LDR instruction. - */ - putLdrRegAddress(reg: ArmRegister, address: NativePointerValue): void; - - /** - * Puts an LDR instruction. - */ - putLdrRegU32(reg: ArmRegister, val: number): void; - - /** - * Puts an LDR instruction. - */ - putLdrRegRegOffset(dstReg: ArmRegister, srcReg: ArmRegister, srcOffset: number | Int64 | UInt64): void; - - /** - * Puts an LDR COND instruction. - */ - putLdrCondRegRegOffset(cc: ArmConditionCode, dstReg: ArmRegister, srcReg: ArmRegister, srcOffset: number | Int64 | UInt64): void; - - /** - * Puts an LDMIA MASK instruction. - */ - putLdmiaRegMask(reg: ArmRegister, mask: number): void; - - /** - * Puts a STR instruction. - */ - putStrRegRegOffset(srcReg: ArmRegister, dstReg: ArmRegister, dstOffset: number | Int64 | UInt64): void; - - /** - * Puts a STR COND instruction. - */ - putStrCondRegRegOffset(cc: ArmConditionCode, srcReg: ArmRegister, dstReg: ArmRegister, dstOffset: number | Int64 | UInt64): void; - - /** - * Puts a MOV instruction. - */ - putMovRegReg(dstReg: ArmRegister, srcReg: ArmRegister): void; - - /** - * Puts a MOV SHIFT instruction. - */ - putMovRegRegShift(dstReg: ArmRegister, srcReg: ArmRegister, shift: ArmShifter, shiftValue: number): void; - - /** - * Puts a MOV CPSR instruction. - */ - putMovRegCpsr(reg: ArmRegister): void; - - /** - * Puts a MOV CPSR instruction. - */ - putMovCpsrReg(reg: ArmRegister): void; - - /** - * Puts an ADD U16 instruction. - */ - putAddRegU16(dstReg: ArmRegister, val: number): void; - - /** - * Puts an ADD instruction. - */ - putAddRegU32(dstReg: ArmRegister, val: number): void; - - /** - * Puts an ADD instruction. - */ - putAddRegRegImm(dstReg: ArmRegister, srcReg: ArmRegister, immVal: number): void; - - /** - * Puts an ADD instruction. - */ - putAddRegRegReg(dstReg: ArmRegister, srcReg1: ArmRegister, srcReg2: ArmRegister): void; - - /** - * Puts an ADD SHIFT instruction. - */ - putAddRegRegRegShift(dstReg: ArmRegister, srcReg1: ArmRegister, srcReg2: ArmRegister, shift: ArmShifter, shiftValue: number): void; - - /** - * Puts a SUB U16 instruction. - */ - putSubRegU16(dstReg: ArmRegister, val: number): void; - - /** - * Puts a SUB instruction. - */ - putSubRegU32(dstReg: ArmRegister, val: number): void; - - /** - * Puts a SUB instruction. - */ - putSubRegRegImm(dstReg: ArmRegister, srcReg: ArmRegister, immVal: number): void; - - /** - * Puts a SUB instruction. - */ - putSubRegRegReg(dstReg: ArmRegister, srcReg1: ArmRegister, srcReg2: ArmRegister): void; - - /** - * Puts an ANDS instruction. - */ - putAndsRegRegImm(dstReg: ArmRegister, srcReg: ArmRegister, immVal: number): void; - - /** - * Puts a CMP instruction. - */ - putCmpRegImm(dstReg: ArmRegister, immVal: number): void; - - /** - * Puts a NOP instruction. - */ - putNop(): void; - - /** - * Puts an OS/architecture-specific breakpoint instruction. - */ - putBreakpoint(): void; - - /** - * Puts a BRK instruction. - */ - putBrkImm(imm: number): void; - - /** - * Puts a raw instruction. - */ - putInstruction(insn: number): void; - - /** - * Puts raw data. - */ - putBytes(data: ArrayBuffer | number[] | string): void; -} - -interface ArmWriterOptions { - /** - * Specifies the initial program counter, which is useful when - * generating code to a scratch buffer. This is essential when using - * `Memory.patchCode()` on iOS, which may provide you with a - * temporary location that later gets mapped into memory at the - * intended memory location. - */ - pc?: NativePointer | undefined; -} - -type ArmCallArgument = ArmRegister | number | UInt64 | Int64 | NativePointerValue; - -/** - * Relocates machine code for arm. - */ -declare class ArmRelocator { - /** - * Creates a new code relocator for copying ARM instructions - * from one memory location to another, taking care to adjust - * position-dependent instructions accordingly. - * - * @param inputCode Source address to copy instructions from. - * @param output ArmWriter pointed at the desired target memory - * address. - */ - constructor(inputCode: NativePointerValue, output: ArmWriter); - - /** - * Recycles instance. - */ - reset(inputCode: NativePointerValue, output: ArmWriter): void; - - /** - * Eagerly cleans up memory. - */ - dispose(): void; - - /** - * Latest `Instruction` read so far. Starts out `null` and changes - * on every call to `readOne()`. - */ - input: Instruction | null; - - /** - * Indicates whether end-of-block has been reached, i.e. we've - * reached a branch of any kind, like CALL, JMP, BL, RET. - */ - eob: boolean; - - /** - * Indicates whether end-of-input has been reached, e.g. we've - * reached JMP/B/RET, an instruction after which there may or may - * not be valid code. - */ - eoi: boolean; - - /** - * Reads the next instruction into the relocator's internal buffer - * and returns the number of bytes read so far, including previous - * calls. - * - * You may keep calling this method to keep buffering, or immediately - * call either `writeOne()` or `skipOne()`. Or, you can buffer up - * until the desired point and then call `writeAll()`. - * - * Returns zero when end-of-input is reached, which means the `eoi` - * property is now `true`. - */ - readOne(): number; - - /** - * Peeks at the next `Instruction` to be written or skipped. - */ - peekNextWriteInsn(): Instruction | null; - - /** - * Peeks at the address of the next instruction to be written or skipped. - */ - peekNextWriteSource(): NativePointer; - - /** - * Skips the instruction that would have been written next. - */ - skipOne(): void; - - /** - * Writes the next buffered instruction. - */ - writeOne(): boolean; - - /** - * Writes all buffered instructions. - */ - writeAll(): void; -} - -/** - * Generates machine code for arm. - */ -declare class ThumbWriter { - /** - * Creates a new code writer for generating ARM machine code - * written directly to memory at `codeAddress`. - * - * @param codeAddress Memory address to write generated code to. - * @param options Options for customizing code generation. - */ - constructor(codeAddress: NativePointerValue, options?: ThumbWriterOptions); - - /** - * Recycles instance. - */ - reset(codeAddress: NativePointerValue, options?: ThumbWriterOptions): void; - - /** - * Eagerly cleans up memory. - */ - dispose(): void; - - /** - * Resolves label references and writes pending data to memory. You - * should always call this once you've finished generating code. It - * is usually also desirable to do this between pieces of unrelated - * code, e.g. when generating multiple functions in one go. - */ - flush(): void; - - /** - * Memory location of the first byte of output. - */ - base: NativePointer; - - /** - * Memory location of the next byte of output. - */ - code: NativePointer; - - /** - * Program counter at the next byte of output. - */ - pc: NativePointer; - - /** - * Current offset in bytes. - */ - offset: number; - - /** - * Skips `nBytes`. - */ - skip(nBytes: number): void; - - /** - * Puts a label at the current position, where `id` is an identifier - * that may be referenced in past and future `put*Label()` calls. - */ - putLabel(id: string): void; - - /** - * Commits the first pending reference to the given label, returning - * `true` on success. Returns `false` if the given label hasn't been - * defined yet, or there are no more pending references to it. - */ - commitLabel(id: string): boolean; - - /** - * Puts code needed for calling a C function with the specified `args`. - */ - putCallAddressWithArguments(func: NativePointerValue, args: ArmCallArgument[]): void; - - /** - * Puts code needed for calling a C function with the specified `args`. - */ - putCallRegWithArguments(reg: ArmRegister, args: ArmCallArgument[]): void; - - /** - * Puts a B instruction. - */ - putBImm(target: NativePointerValue): void; - - /** - * Puts a B instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBLabel(labelId: string): void; - - /** - * Puts a B WIDE instruction. - */ - putBLabelWide(labelId: string): void; - - /** - * Puts a BX instruction. - */ - putBxReg(reg: ArmRegister): void; - - /** - * Puts a BL instruction. - */ - putBlImm(target: NativePointerValue): void; - - /** - * Puts a BL instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBlLabel(labelId: string): void; - - /** - * Puts a BLX instruction. - */ - putBlxImm(target: NativePointerValue): void; - - /** - * Puts a BLX instruction. - */ - putBlxReg(reg: ArmRegister): void; - - /** - * Puts a CMP instruction. - */ - putCmpRegImm(reg: ArmRegister, immValue: number): void; - - /** - * Puts a BEQ instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBeqLabel(labelId: string): void; - - /** - * Puts a BNE instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBneLabel(labelId: string): void; - - /** - * Puts a B COND instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBCondLabel(cc: ArmConditionCode, labelId: string): void; - - /** - * Puts a B COND WIDE instruction. - */ - putBCondLabelWide(cc: ArmConditionCode, labelId: string): void; - - /** - * Puts a CBZ instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putCbzRegLabel(reg: ArmRegister, labelId: string): void; - - /** - * Puts a CBNZ instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putCbnzRegLabel(reg: ArmRegister, labelId: string): void; - - /** - * Puts a PUSH instruction with the specified registers. - */ - putPushRegs(regs: ArmRegister[]): void; - - /** - * Puts a POP instruction with the specified registers. - */ - putPopRegs(regs: ArmRegister[]): void; - - /** - * Puts an LDR instruction. - */ - putLdrRegAddress(reg: ArmRegister, address: NativePointerValue): void; - - /** - * Puts an LDR instruction. - */ - putLdrRegU32(reg: ArmRegister, val: number): void; - - /** - * Puts an LDR instruction. - */ - putLdrRegReg(dstReg: ArmRegister, srcReg: ArmRegister): void; - - /** - * Puts an LDR instruction. - */ - putLdrRegRegOffset(dstReg: ArmRegister, srcReg: ArmRegister, srcOffset: number | Int64 | UInt64): void; - - /** - * Puts an LDRB instruction. - */ - putLdrbRegReg(dstReg: ArmRegister, srcReg: ArmRegister): void; - - /** - * Puts a VLDR instruction. - */ - putVldrRegRegOffset(dstReg: ArmRegister, srcReg: ArmRegister, srcOffset: number | Int64 | UInt64): void; - - /** - * Puts an LDMIA MASK instruction. - */ - putLdmiaRegMask(reg: ArmRegister, mask: number): void; - - /** - * Puts a STR instruction. - */ - putStrRegReg(srcReg: ArmRegister, dstReg: ArmRegister): void; - - /** - * Puts a STR instruction. - */ - putStrRegRegOffset(srcReg: ArmRegister, dstReg: ArmRegister, dstOffset: number | Int64 | UInt64): void; - - /** - * Puts a MOV instruction. - */ - putMovRegReg(dstReg: ArmRegister, srcReg: ArmRegister): void; - - /** - * Puts a MOV instruction. - */ - putMovRegU8(dstReg: ArmRegister, immValue: number): void; - - /** - * Puts a MOV CPSR instruction. - */ - putMovRegCpsr(reg: ArmRegister): void; - - /** - * Puts a MOV CPSR instruction. - */ - putMovCpsrReg(reg: ArmRegister): void; - - /** - * Puts an ADD instruction. - */ - putAddRegImm(dstReg: ArmRegister, immValue: number | Int64 | UInt64): void; - - /** - * Puts an ADD instruction. - */ - putAddRegReg(dstReg: ArmRegister, srcReg: ArmRegister): void; - - /** - * Puts an ADD instruction. - */ - putAddRegRegReg(dstReg: ArmRegister, leftReg: ArmRegister, rightReg: ArmRegister): void; - - /** - * Puts an ADD instruction. - */ - putAddRegRegImm(dstReg: ArmRegister, leftReg: ArmRegister, rightValue: number | Int64 | UInt64): void; - - /** - * Puts a SUB instruction. - */ - putSubRegImm(dstReg: ArmRegister, immValue: number | Int64 | UInt64): void; - - /** - * Puts a SUB instruction. - */ - putSubRegReg(dstReg: ArmRegister, srcReg: ArmRegister): void; - - /** - * Puts a SUB instruction. - */ - putSubRegRegReg(dstReg: ArmRegister, leftReg: ArmRegister, rightReg: ArmRegister): void; - - /** - * Puts a SUB instruction. - */ - putSubRegRegImm(dstReg: ArmRegister, leftReg: ArmRegister, rightValue: number | Int64 | UInt64): void; - - /** - * Puts an AND instruction. - */ - putAndRegRegImm(dstReg: ArmRegister, leftReg: ArmRegister, rightValue: number | Int64 | UInt64): void; - - /** - * Puts a LSLS instruction. - */ - putLslsRegRegImm(dstReg: ArmRegister, leftReg: ArmRegister, rightValue: number): void; - - /** - * Puts a LSRS instruction. - */ - putLsrsRegRegImm(dstReg: ArmRegister, leftReg: ArmRegister, rightValue: number): void; - - /** - * Puts a MRS instruction. - */ - putMrsRegReg(dstReg: ArmRegister, srcReg: ArmSystemRegister): void; - - /** - * Puts a MSR instruction. - */ - putMsrRegReg(dstReg: ArmSystemRegister, srcReg: ArmRegister): void; - - /** - * Puts a NOP instruction. - */ - putNop(): void; - - /** - * Puts a BKPT instruction. - */ - putBkptImm(imm: number): void; - - /** - * Puts an OS/architecture-specific breakpoint instruction. - */ - putBreakpoint(): void; - - /** - * Puts a raw instruction. - */ - putInstruction(insn: number): void; - - /** - * Puts a raw Thumb-2 instruction. - */ - putInstructionWide(upper: number, lower: number): void; - - /** - * Puts raw data. - */ - putBytes(data: ArrayBuffer | number[] | string): void; -} - -interface ThumbWriterOptions { - /** - * Specifies the initial program counter, which is useful when - * generating code to a scratch buffer. This is essential when using - * `Memory.patchCode()` on iOS, which may provide you with a - * temporary location that later gets mapped into memory at the - * intended memory location. - */ - pc?: NativePointer | undefined; -} - -/** - * Relocates machine code for arm. - */ -declare class ThumbRelocator { - /** - * Creates a new code relocator for copying ARM instructions - * from one memory location to another, taking care to adjust - * position-dependent instructions accordingly. - * - * @param inputCode Source address to copy instructions from. - * @param output ThumbWriter pointed at the desired target memory - * address. - */ - constructor(inputCode: NativePointerValue, output: ThumbWriter); - - /** - * Recycles instance. - */ - reset(inputCode: NativePointerValue, output: ThumbWriter): void; - - /** - * Eagerly cleans up memory. - */ - dispose(): void; - - /** - * Latest `Instruction` read so far. Starts out `null` and changes - * on every call to `readOne()`. - */ - input: Instruction | null; - - /** - * Indicates whether end-of-block has been reached, i.e. we've - * reached a branch of any kind, like CALL, JMP, BL, RET. - */ - eob: boolean; - - /** - * Indicates whether end-of-input has been reached, e.g. we've - * reached JMP/B/RET, an instruction after which there may or may - * not be valid code. - */ - eoi: boolean; - - /** - * Reads the next instruction into the relocator's internal buffer - * and returns the number of bytes read so far, including previous - * calls. - * - * You may keep calling this method to keep buffering, or immediately - * call either `writeOne()` or `skipOne()`. Or, you can buffer up - * until the desired point and then call `writeAll()`. - * - * Returns zero when end-of-input is reached, which means the `eoi` - * property is now `true`. - */ - readOne(): number; - - /** - * Peeks at the next `Instruction` to be written or skipped. - */ - peekNextWriteInsn(): Instruction | null; - - /** - * Peeks at the address of the next instruction to be written or skipped. - */ - peekNextWriteSource(): NativePointer; - - /** - * Skips the instruction that would have been written next. - */ - skipOne(): void; - - /** - * Writes the next buffered instruction. - */ - writeOne(): boolean; - - /** - * Copies out the next buffered instruction without advancing the - * output cursor, allowing the same instruction to be written out - * multiple times. - */ - copyOne(): boolean; - - /** - * Writes all buffered instructions. - */ - writeAll(): void; -} - -type ArmRegister = - | "r0" - | "r1" - | "r2" - | "r3" - | "r4" - | "r5" - | "r6" - | "r7" - | "r8" - | "r9" - | "r10" - | "r11" - | "r12" - | "r13" - | "r14" - | "r15" - | "sp" - | "lr" - | "sb" - | "sl" - | "fp" - | "ip" - | "pc" - ; - -type ArmSystemRegister = "apsr-nzcvq"; - -type ArmConditionCode = - | "eq" - | "ne" - | "hs" - | "lo" - | "mi" - | "pl" - | "vs" - | "vc" - | "hi" - | "ls" - | "ge" - | "lt" - | "gt" - | "le" - | "al" - ; - -type ArmShifter = - | "asr" - | "lsl" - | "lsr" - | "ror" - | "rrx" - | "asr-reg" - | "lsl-reg" - | "lsr-reg" - | "ror-reg" - | "rrx-reg" - ; - -/** - * Generates machine code for arm64. - */ -declare class Arm64Writer { - /** - * Creates a new code writer for generating AArch64 machine code - * written directly to memory at `codeAddress`. - * - * @param codeAddress Memory address to write generated code to. - * @param options Options for customizing code generation. - */ - constructor(codeAddress: NativePointerValue, options?: Arm64WriterOptions); - - /** - * Recycles instance. - */ - reset(codeAddress: NativePointerValue, options?: Arm64WriterOptions): void; - - /** - * Eagerly cleans up memory. - */ - dispose(): void; - - /** - * Resolves label references and writes pending data to memory. You - * should always call this once you've finished generating code. It - * is usually also desirable to do this between pieces of unrelated - * code, e.g. when generating multiple functions in one go. - */ - flush(): void; - - /** - * Memory location of the first byte of output. - */ - base: NativePointer; - - /** - * Memory location of the next byte of output. - */ - code: NativePointer; - - /** - * Program counter at the next byte of output. - */ - pc: NativePointer; - - /** - * Current offset in bytes. - */ - offset: number; - - /** - * Skips `nBytes`. - */ - skip(nBytes: number): void; - - /** - * Puts a label at the current position, where `id` is an identifier - * that may be referenced in past and future `put*Label()` calls. - */ - putLabel(id: string): void; - - /** - * Puts code needed for calling a C function with the specified `args`. - */ - putCallAddressWithArguments(func: NativePointerValue, args: Arm64CallArgument[]): void; - - /** - * Puts code needed for calling a C function with the specified `args`. - */ - putCallRegWithArguments(reg: Arm64Register, args: Arm64CallArgument[]): void; - - /** - * Puts code needed for branching/jumping to the given address. - */ - putBranchAddress(address: NativePointerValue): void; - - /** - * Determines whether a direct branch is possible between the two - * given memory locations. - */ - canBranchDirectlyBetween(from: NativePointerValue, to: NativePointerValue): boolean; - - /** - * Puts a B instruction. - */ - putBImm(address: NativePointerValue): void; - - /** - * Puts a B instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBLabel(labelId: string): void; - - /** - * Puts a B COND instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBCondLabel(cc: Arm64ConditionCode, labelId: string): void; - - /** - * Puts a BL instruction. - */ - putBlImm(address: NativePointerValue): void; - - /** - * Puts a BL instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBlLabel(labelId: string): void; - - /** - * Puts a BR instruction. - */ - putBrReg(reg: Arm64Register): void; - - /** - * Puts a BR instruction expecting a raw pointer without - * any authentication bits. - */ - putBrRegNoAuth(reg: Arm64Register): void; - - /** - * Puts a BLR instruction. - */ - putBlrReg(reg: Arm64Register): void; - - /** - * Puts a BLR instruction expecting a raw pointer without - * any authentication bits. - */ - putBlrRegNoAuth(reg: Arm64Register): void; - - /** - * Puts a RET instruction. - */ - putRet(): void; - - /** - * Puts a CBZ instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putCbzRegLabel(reg: Arm64Register, labelId: string): void; - - /** - * Puts a CBNZ instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putCbnzRegLabel(reg: Arm64Register, labelId: string): void; - - /** - * Puts a TBZ instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putTbzRegImmLabel(reg: Arm64Register, bit: number, labelId: string): void; - - /** - * Puts a TBNZ instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putTbnzRegImmLabel(reg: Arm64Register, bit: number, labelId: string): void; - - /** - * Puts a PUSH instruction. - */ - putPushRegReg(regA: Arm64Register, regB: Arm64Register): void; - - /** - * Puts a POP instruction. - */ - putPopRegReg(regA: Arm64Register, regB: Arm64Register): void; - - /** - * Puts code needed for pushing all X registers on the stack. - */ - putPushAllXRegisters(): void; - - /** - * Puts code needed for popping all X registers off the stack. - */ - putPopAllXRegisters(): void; - - /** - * Puts code needed for pushing all Q registers on the stack. - */ - putPushAllQRegisters(): void; - - /** - * Puts code needed for popping all Q registers off the stack. - */ - putPopAllQRegisters(): void; - - /** - * Puts an LDR instruction. - */ - putLdrRegAddress(reg: Arm64Register, address: NativePointerValue): void; - - /** - * Puts an LDR instruction. - */ - putLdrRegU64(reg: Arm64Register, val: number | UInt64): void; - - /** - * Puts an LDR instruction with a dangling data reference, - * returning an opaque ref value that should be passed to `putLdrRegValue()` - * at the desired location. - */ - putLdrRegRef(reg: Arm64Register): number; - - /** - * Puts the value and updates the LDR instruction - * from a previous `putLdrRegRef()`. - */ - putLdrRegValue(ref: number, value: NativePointerValue): void; - - /** - * Puts an LDR instruction. - */ - putLdrRegRegOffset(dstReg: Arm64Register, srcReg: Arm64Register, srcOffset: number | Int64 | UInt64): void; - - /** - * Puts an LDRSW instruction. - */ - putLdrswRegRegOffset(dstReg: Arm64Register, srcReg: Arm64Register, srcOffset: number | Int64 | UInt64): void; - - /** - * Puts an ADRP instruction. - */ - putAdrpRegAddress(reg: Arm64Register, address: NativePointerValue): void; - - /** - * Puts a STR instruction. - */ - putStrRegRegOffset(srcReg: Arm64Register, dstReg: Arm64Register, dstOffset: number | Int64 | UInt64): void; - - /** - * Puts an LDP instruction. - */ - putLdpRegRegRegOffset(regA: Arm64Register, regB: Arm64Register, regSrc: Arm64Register, srcOffset: number | Int64 | UInt64, mode: Arm64IndexMode): void; - - /** - * Puts a STP instruction. - */ - putStpRegRegRegOffset(regA: Arm64Register, regB: Arm64Register, regDst: Arm64Register, dstOffset: number | Int64 | UInt64, mode: Arm64IndexMode): void; - - /** - * Puts a MOV instruction. - */ - putMovRegReg(dstReg: Arm64Register, srcReg: Arm64Register): void; - - /** - * Puts an UXTW instruction. - */ - putUxtwRegReg(dstReg: Arm64Register, srcReg: Arm64Register): void; - - /** - * Puts an ADD instruction. - */ - putAddRegRegImm(dstReg: Arm64Register, leftReg: Arm64Register, rightValue: number | Int64 | UInt64): void; - - /** - * Puts an ADD instruction. - */ - putAddRegRegReg(dstReg: Arm64Register, leftReg: Arm64Register, rightReg: Arm64Register): void; - - /** - * Puts a SUB instruction. - */ - putSubRegRegImm(dstReg: Arm64Register, leftReg: Arm64Register, rightValue: number | Int64 | UInt64): void; - - /** - * Puts a SUB instruction. - */ - putSubRegRegReg(dstReg: Arm64Register, leftReg: Arm64Register, rightReg: Arm64Register): void; - - /** - * Puts an AND instruction. - */ - putAndRegRegImm(dstReg: Arm64Register, leftReg: Arm64Register, rightValue: number | Int64 | UInt64): void; - - /** - * Puts a TST instruction. - */ - putTstRegImm(reg: Arm64Register, immValue: number | UInt64): void; - - /** - * Puts a CMP instruction. - */ - putCmpRegReg(regA: Arm64Register, regB: Arm64Register): void; - - /** - * Puts an XPACI instruction. - */ - putXpaciReg(reg: Arm64Register): void; - - /** - * Puts a NOP instruction. - */ - putNop(): void; - - /** - * Puts a BRK instruction. - */ - putBrkImm(imm: number): void; - - /** - * Puts a raw instruction. - */ - putInstruction(insn: number): void; - - /** - * Puts raw data. - */ - putBytes(data: ArrayBuffer | number[] | string): void; - - /** - * Signs the given pointer value. - */ - sign(value: NativePointerValue): NativePointer; -} - -interface Arm64WriterOptions { - /** - * Specifies the initial program counter, which is useful when - * generating code to a scratch buffer. This is essential when using - * `Memory.patchCode()` on iOS, which may provide you with a - * temporary location that later gets mapped into memory at the - * intended memory location. - */ - pc?: NativePointer | undefined; -} - -type Arm64CallArgument = Arm64Register | number | UInt64 | Int64 | NativePointerValue; - -/** - * Relocates machine code for arm64. - */ -declare class Arm64Relocator { - /** - * Creates a new code relocator for copying AArch64 instructions - * from one memory location to another, taking care to adjust - * position-dependent instructions accordingly. - * - * @param inputCode Source address to copy instructions from. - * @param output Arm64Writer pointed at the desired target memory - * address. - */ - constructor(inputCode: NativePointerValue, output: Arm64Writer); - - /** - * Recycles instance. - */ - reset(inputCode: NativePointerValue, output: Arm64Writer): void; - - /** - * Eagerly cleans up memory. - */ - dispose(): void; - - /** - * Latest `Instruction` read so far. Starts out `null` and changes - * on every call to `readOne()`. - */ - input: Instruction | null; - - /** - * Indicates whether end-of-block has been reached, i.e. we've - * reached a branch of any kind, like CALL, JMP, BL, RET. - */ - eob: boolean; - - /** - * Indicates whether end-of-input has been reached, e.g. we've - * reached JMP/B/RET, an instruction after which there may or may - * not be valid code. - */ - eoi: boolean; - - /** - * Reads the next instruction into the relocator's internal buffer - * and returns the number of bytes read so far, including previous - * calls. - * - * You may keep calling this method to keep buffering, or immediately - * call either `writeOne()` or `skipOne()`. Or, you can buffer up - * until the desired point and then call `writeAll()`. - * - * Returns zero when end-of-input is reached, which means the `eoi` - * property is now `true`. - */ - readOne(): number; - - /** - * Peeks at the next `Instruction` to be written or skipped. - */ - peekNextWriteInsn(): Instruction | null; - - /** - * Peeks at the address of the next instruction to be written or skipped. - */ - peekNextWriteSource(): NativePointer; - - /** - * Skips the instruction that would have been written next. - */ - skipOne(): void; - - /** - * Writes the next buffered instruction. - */ - writeOne(): boolean; - - /** - * Writes all buffered instructions. - */ - writeAll(): void; -} - -type Arm64Register = - | "x0" - | "x1" - | "x2" - | "x3" - | "x4" - | "x5" - | "x6" - | "x7" - | "x8" - | "x9" - | "x10" - | "x11" - | "x12" - | "x13" - | "x14" - | "x15" - | "x16" - | "x17" - | "x18" - | "x19" - | "x20" - | "x21" - | "x22" - | "x23" - | "x24" - | "x25" - | "x26" - | "x27" - | "x28" - | "x29" - | "x30" - | "w0" - | "w1" - | "w2" - | "w3" - | "w4" - | "w5" - | "w6" - | "w7" - | "w8" - | "w9" - | "w10" - | "w11" - | "w12" - | "w13" - | "w14" - | "w15" - | "w16" - | "w17" - | "w18" - | "w19" - | "w20" - | "w21" - | "w22" - | "w23" - | "w24" - | "w25" - | "w26" - | "w27" - | "w28" - | "w29" - | "w30" - | "sp" - | "lr" - | "fp" - | "wsp" - | "wzr" - | "xzr" - | "nzcv" - | "ip0" - | "ip1" - | "s0" - | "s1" - | "s2" - | "s3" - | "s4" - | "s5" - | "s6" - | "s7" - | "s8" - | "s9" - | "s10" - | "s11" - | "s12" - | "s13" - | "s14" - | "s15" - | "s16" - | "s17" - | "s18" - | "s19" - | "s20" - | "s21" - | "s22" - | "s23" - | "s24" - | "s25" - | "s26" - | "s27" - | "s28" - | "s29" - | "s30" - | "s31" - | "d0" - | "d1" - | "d2" - | "d3" - | "d4" - | "d5" - | "d6" - | "d7" - | "d8" - | "d9" - | "d10" - | "d11" - | "d12" - | "d13" - | "d14" - | "d15" - | "d16" - | "d17" - | "d18" - | "d19" - | "d20" - | "d21" - | "d22" - | "d23" - | "d24" - | "d25" - | "d26" - | "d27" - | "d28" - | "d29" - | "d30" - | "d31" - | "q0" - | "q1" - | "q2" - | "q3" - | "q4" - | "q5" - | "q6" - | "q7" - | "q8" - | "q9" - | "q10" - | "q11" - | "q12" - | "q13" - | "q14" - | "q15" - | "q16" - | "q17" - | "q18" - | "q19" - | "q20" - | "q21" - | "q22" - | "q23" - | "q24" - | "q25" - | "q26" - | "q27" - | "q28" - | "q29" - | "q30" - | "q31" - ; - -type Arm64ConditionCode = - | "eq" - | "ne" - | "hs" - | "lo" - | "mi" - | "pl" - | "vs" - | "vc" - | "hi" - | "ls" - | "ge" - | "lt" - | "gt" - | "le" - | "al" - | "nv" - ; - -type Arm64IndexMode = "post-adjust" | "signed-offset" | "pre-adjust"; - -/** - * Generates machine code for mips. - */ -declare class MipsWriter { - /** - * Creates a new code writer for generating MIPS machine code - * written directly to memory at `codeAddress`. - * - * @param codeAddress Memory address to write generated code to. - * @param options Options for customizing code generation. - */ - constructor(codeAddress: NativePointerValue, options?: MipsWriterOptions); - - /** - * Recycles instance. - */ - reset(codeAddress: NativePointerValue, options?: MipsWriterOptions): void; - - /** - * Eagerly cleans up memory. - */ - dispose(): void; - - /** - * Resolves label references and writes pending data to memory. You - * should always call this once you've finished generating code. It - * is usually also desirable to do this between pieces of unrelated - * code, e.g. when generating multiple functions in one go. - */ - flush(): void; - - /** - * Memory location of the first byte of output. - */ - base: NativePointer; - - /** - * Memory location of the next byte of output. - */ - code: NativePointer; - - /** - * Program counter at the next byte of output. - */ - pc: NativePointer; - - /** - * Current offset in bytes. - */ - offset: number; - - /** - * Skips `nBytes`. - */ - skip(nBytes: number): void; - - /** - * Puts a label at the current position, where `id` is an identifier - * that may be referenced in past and future `put*Label()` calls. - */ - putLabel(id: string): void; - - /** - * Puts code needed for calling a C function with the specified `args`. - */ - putCallAddressWithArguments(func: NativePointerValue, args: MipsCallArgument[]): void; - - /** - * Puts code needed for calling a C function with the specified `args`. - */ - putCallRegWithArguments(reg: MipsRegister, args: MipsCallArgument[]): void; - - /** - * Puts a J instruction. - */ - putJAddress(address: NativePointerValue): void; - - /** - * Puts a J WITHOUT NOP instruction. - */ - putJAddressWithoutNop(address: NativePointerValue): void; - - /** - * Puts a J instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putJLabel(labelId: string): void; - - /** - * Puts a JR instruction. - */ - putJrReg(reg: MipsRegister): void; - - /** - * Puts a JAL instruction. - */ - putJalAddress(address: number): void; - - /** - * Puts a JALR instruction. - */ - putJalrReg(reg: MipsRegister): void; - - /** - * Puts a B instruction. - */ - putBOffset(offset: number): void; - - /** - * Puts a BEQ instruction referencing `labelId`, defined by a past - * or future `putLabel()`. - */ - putBeqRegRegLabel(rightReg: MipsRegister, leftReg: MipsRegister, labelId: string): void; - - /** - * Puts a RET instruction. - */ - putRet(): void; - - /** - * Puts a LA instruction. - */ - putLaRegAddress(reg: MipsRegister, address: NativePointerValue): void; - - /** - * Puts a LUI instruction. - */ - putLuiRegImm(reg: MipsRegister, imm: number): void; - - /** - * Puts a DSLL instruction. - */ - putDsllRegReg(dstReg: MipsRegister, srcReg: MipsRegister, amount: number): void; - - /** - * Puts an ORI instruction. - */ - putOriRegRegImm(rt: MipsRegister, rs: MipsRegister, imm: number): void; - - /** - * Puts an LD instruction. - */ - putLdRegRegOffset(dstReg: MipsRegister, srcReg: MipsRegister, srcOffset: number | Int64 | UInt64): void; - - /** - * Puts a LW instruction. - */ - putLwRegRegOffset(dstReg: MipsRegister, srcReg: MipsRegister, srcOffset: number | Int64 | UInt64): void; - - /** - * Puts a SW instruction. - */ - putSwRegRegOffset(srcReg: MipsRegister, dstReg: MipsRegister, dstOffset: number | Int64 | UInt64): void; - - /** - * Puts a MOVE instruction. - */ - putMoveRegReg(dstReg: MipsRegister, srcReg: MipsRegister): void; - - /** - * Puts an ADDU instruction. - */ - putAdduRegRegReg(dstReg: MipsRegister, leftReg: MipsRegister, rightReg: MipsRegister): void; - - /** - * Puts an ADDI instruction. - */ - putAddiRegRegImm(dstReg: MipsRegister, leftReg: MipsRegister, imm: number): void; - - /** - * Puts an ADDI instruction. - */ - putAddiRegImm(dstReg: MipsRegister, imm: number): void; - - /** - * Puts a SUB instruction. - */ - putSubRegRegImm(dstReg: MipsRegister, leftReg: MipsRegister, imm: number): void; - - /** - * Puts a PUSH instruction. - */ - putPushReg(reg: MipsRegister): void; - - /** - * Puts a POP instruction. - */ - putPopReg(reg: MipsRegister): void; - - /** - * Puts a MFHI instruction. - */ - putMfhiReg(reg: MipsRegister): void; - - /** - * Puts a MFLO instruction. - */ - putMfloReg(reg: MipsRegister): void; - - /** - * Puts a MTHI instruction. - */ - putMthiReg(reg: MipsRegister): void; - - /** - * Puts a MTLO instruction. - */ - putMtloReg(reg: MipsRegister): void; - - /** - * Puts a NOP instruction. - */ - putNop(): void; - - /** - * Puts a BREAK instruction. - */ - putBreak(): void; - - /** - * Puts a minimal sized trampoline for vectoring to the given address. - */ - putPrologueTrampoline(reg: MipsRegister, address: NativePointerValue): void; - - /** - * Puts a raw instruction. - */ - putInstruction(insn: number): void; - - /** - * Puts raw data. - */ - putBytes(data: ArrayBuffer | number[] | string): void; -} - -interface MipsWriterOptions { - /** - * Specifies the initial program counter, which is useful when - * generating code to a scratch buffer. This is essential when using - * `Memory.patchCode()` on iOS, which may provide you with a - * temporary location that later gets mapped into memory at the - * intended memory location. - */ - pc?: NativePointer | undefined; -} - -type MipsCallArgument = MipsRegister | number | UInt64 | Int64 | NativePointerValue; - -/** - * Relocates machine code for mips. - */ -declare class MipsRelocator { - /** - * Creates a new code relocator for copying MIPS instructions - * from one memory location to another, taking care to adjust - * position-dependent instructions accordingly. - * - * @param inputCode Source address to copy instructions from. - * @param output MipsWriter pointed at the desired target memory - * address. - */ - constructor(inputCode: NativePointerValue, output: MipsWriter); - - /** - * Recycles instance. - */ - reset(inputCode: NativePointerValue, output: MipsWriter): void; - - /** - * Eagerly cleans up memory. - */ - dispose(): void; - - /** - * Latest `Instruction` read so far. Starts out `null` and changes - * on every call to `readOne()`. - */ - input: Instruction | null; - - /** - * Indicates whether end-of-block has been reached, i.e. we've - * reached a branch of any kind, like CALL, JMP, BL, RET. - */ - eob: boolean; - - /** - * Indicates whether end-of-input has been reached, e.g. we've - * reached JMP/B/RET, an instruction after which there may or may - * not be valid code. - */ - eoi: boolean; - - /** - * Reads the next instruction into the relocator's internal buffer - * and returns the number of bytes read so far, including previous - * calls. - * - * You may keep calling this method to keep buffering, or immediately - * call either `writeOne()` or `skipOne()`. Or, you can buffer up - * until the desired point and then call `writeAll()`. - * - * Returns zero when end-of-input is reached, which means the `eoi` - * property is now `true`. - */ - readOne(): number; - - /** - * Peeks at the next `Instruction` to be written or skipped. - */ - peekNextWriteInsn(): Instruction | null; - - /** - * Peeks at the address of the next instruction to be written or skipped. - */ - peekNextWriteSource(): NativePointer; - - /** - * Skips the instruction that would have been written next. - */ - skipOne(): void; - - /** - * Writes the next buffered instruction. - */ - writeOne(): boolean; - - /** - * Writes all buffered instructions. - */ - writeAll(): void; -} - -type MipsRegister = - | "v0" - | "v1" - | "a0" - | "a1" - | "a2" - | "a3" - | "t0" - | "t1" - | "t2" - | "t3" - | "t4" - | "t5" - | "t6" - | "t7" - | "s0" - | "s1" - | "s2" - | "s3" - | "s4" - | "s5" - | "s6" - | "s7" - | "t8" - | "t9" - | "k0" - | "k1" - | "gp" - | "sp" - | "fp" - | "s8" - | "ra" - | "hi" - | "lo" - | "zero" - | "at" - | "0" - | "1" - | "2" - | "3" - | "4" - | "5" - | "6" - | "7" - | "8" - | "9" - | "10" - | "11" - | "12" - | "13" - | "14" - | "15" - | "16" - | "17" - | "18" - | "19" - | "20" - | "21" - | "22" - | "23" - | "24" - | "25" - | "26" - | "27" - | "28" - | "29" - | "30" - | "31" - ; diff --git a/WechatBot/node_modules/@types/frida-gum/package.json b/WechatBot/node_modules/@types/frida-gum/package.json deleted file mode 100644 index 760857947..000000000 --- a/WechatBot/node_modules/@types/frida-gum/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "@types/frida-gum", - "version": "17.3.1", - "description": "TypeScript definitions for frida-gum", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/frida-gum", - "license": "MIT", - "contributors": [ - { - "name": "Ole André Vadla Ravnås", - "url": "https://github.com/oleavr", - "githubUsername": "oleavr" - }, - { - "name": "Francesco Tamagni", - "url": "https://github.com/mrmacete", - "githubUsername": "mrmacete" - } - ], - "main": "", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/frida-gum" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "6fff93a0466bd3321a0b89256fd5d5f886692f68f53fce01a683d514fb9d0507", - "typeScriptVersion": "4.1" -} \ No newline at end of file diff --git a/WechatBot/node_modules/@types/node/LICENSE b/WechatBot/node_modules/@types/node/LICENSE deleted file mode 100644 index 9e841e7a2..000000000 --- a/WechatBot/node_modules/@types/node/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ - MIT License - - Copyright (c) Microsoft Corporation. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to deal - in the Software without restriction, including without limitation the rights - to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all - copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - SOFTWARE diff --git a/WechatBot/node_modules/@types/node/README.md b/WechatBot/node_modules/@types/node/README.md deleted file mode 100644 index 48a83fc49..000000000 --- a/WechatBot/node_modules/@types/node/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# Installation -> `npm install --save @types/node` - -# Summary -This package contains type definitions for Node.js (https://nodejs.org/). - -# Details -Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. - -### Additional Details - * Last updated: Thu, 09 Sep 2021 20:01:20 GMT - * Dependencies: none - * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require` - -# Credits -These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13). diff --git a/WechatBot/node_modules/@types/node/assert.d.ts b/WechatBot/node_modules/@types/node/assert.d.ts deleted file mode 100644 index 19f1e7deb..000000000 --- a/WechatBot/node_modules/@types/node/assert.d.ts +++ /dev/null @@ -1,912 +0,0 @@ -/** - * The `assert` module provides a set of assertion functions for verifying - * invariants. - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/assert.js) - */ -declare module 'assert' { - /** - * An alias of {@link ok}. - * @since v0.5.9 - * @param value The input that is checked for being truthy. - */ - function assert(value: unknown, message?: string | Error): asserts value; - namespace assert { - /** - * Indicates the failure of an assertion. All errors thrown by the `assert` module - * will be instances of the `AssertionError` class. - */ - class AssertionError extends Error { - actual: unknown; - expected: unknown; - operator: string; - generatedMessage: boolean; - code: 'ERR_ASSERTION'; - constructor(options?: { - /** If provided, the error message is set to this value. */ - message?: string | undefined; - /** The `actual` property on the error instance. */ - actual?: unknown | undefined; - /** The `expected` property on the error instance. */ - expected?: unknown | undefined; - /** The `operator` property on the error instance. */ - operator?: string | undefined; - /** If provided, the generated stack trace omits frames before this function. */ - // tslint:disable-next-line:ban-types - stackStartFn?: Function | undefined; - }); - } - /** - * This feature is currently experimental and behavior might still change. - * @since v14.2.0, v12.19.0 - * @experimental - */ - class CallTracker { - /** - * The wrapper function is expected to be called exactly `exact` times. If the - * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an - * error. - * - * ```js - * import assert from 'assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func); - * ``` - * @since v14.2.0, v12.19.0 - * @param [fn='A no-op function'] - * @param [exact=1] - * @return that wraps `fn`. - */ - calls(exact?: number): () => void; - calls any>(fn?: Func, exact?: number): Func; - /** - * The arrays contains information about the expected and actual number of calls of - * the functions that have not been called the expected number of times. - * - * ```js - * import assert from 'assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * function foo() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func, 2); - * - * // Returns an array containing information on callsfunc() - * tracker.report(); - * // [ - * // { - * // message: 'Expected the func function to be executed 2 time(s) but was - * // executed 0 time(s).', - * // actual: 0, - * // expected: 2, - * // operator: 'func', - * // stack: stack trace - * // } - * // ] - * ``` - * @since v14.2.0, v12.19.0 - * @return of objects containing information about the wrapper functions returned by `calls`. - */ - report(): CallTrackerReportInformation[]; - /** - * Iterates through the list of functions passed to `tracker.calls()` and will throw an error for functions that - * have not been called the expected number of times. - * - * ```js - * import assert from 'assert'; - * - * // Creates call tracker. - * const tracker = new assert.CallTracker(); - * - * function func() {} - * - * // Returns a function that wraps func() that must be called exact times - * // before tracker.verify(). - * const callsfunc = tracker.calls(func, 2); - * - * callsfunc(); - * - * // Will throw an error since callsfunc() was only called once. - * tracker.verify(); - * ``` - * @since v14.2.0, v12.19.0 - */ - verify(): void; - } - interface CallTrackerReportInformation { - message: string; - /** The actual number of times the function was called. */ - actual: number; - /** The number of times the function was expected to be called. */ - expected: number; - /** The name of the function that is wrapped. */ - operator: string; - /** A stack trace of the function. */ - stack: object; - } - type AssertPredicate = RegExp | (new () => object) | ((thrown: unknown) => boolean) | object | Error; - /** - * Throws an `AssertionError` with the provided error message or a default - * error message. If the `message` parameter is an instance of an `Error` then - * it will be thrown instead of the `AssertionError`. - * - * ```js - * import assert from 'assert/strict'; - * - * assert.fail(); - * // AssertionError [ERR_ASSERTION]: Failed - * - * assert.fail('boom'); - * // AssertionError [ERR_ASSERTION]: boom - * - * assert.fail(new TypeError('need array')); - * // TypeError: need array - * ``` - * - * Using `assert.fail()` with more than two arguments is possible but deprecated. - * See below for further details. - * @since v0.1.21 - * @param [message='Failed'] - */ - function fail(message?: string | Error): never; - /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */ - function fail( - actual: unknown, - expected: unknown, - message?: string | Error, - operator?: string, - // tslint:disable-next-line:ban-types - stackStartFn?: Function - ): never; - /** - * Tests if `value` is truthy. It is equivalent to`assert.equal(!!value, true, message)`. - * - * If `value` is not truthy, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is `undefined`, a default - * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`. - * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``. - * - * Be aware that in the `repl` the error message will be different to the one - * thrown in a file! See below for further details. - * - * ```js - * import assert from 'assert/strict'; - * - * assert.ok(true); - * // OK - * assert.ok(1); - * // OK - * - * assert.ok(); - * // AssertionError: No value argument passed to `assert.ok()` - * - * assert.ok(false, 'it\'s false'); - * // AssertionError: it's false - * - * // In the repl: - * assert.ok(typeof 123 === 'string'); - * // AssertionError: false == true - * - * // In a file (e.g. test.js): - * assert.ok(typeof 123 === 'string'); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(typeof 123 === 'string') - * - * assert.ok(false); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(false) - * - * assert.ok(0); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert.ok(0) - * ``` - * - * ```js - * import assert from 'assert/strict'; - * - * // Using `assert()` works the same: - * assert(0); - * // AssertionError: The expression evaluated to a falsy value: - * // - * // assert(0) - * ``` - * @since v0.1.21 - */ - function ok(value: unknown, message?: string | Error): asserts value; - /** - * **Strict assertion mode** - * - * An alias of {@link strictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link strictEqual} instead. - * - * Tests shallow, coercive equality between the `actual` and `expected` parameters - * using the [Abstract Equality Comparison](https://tc39.github.io/ecma262/#sec-abstract-equality-comparison) ( `==` ). `NaN` is special handled - * and treated as being identical in case both sides are `NaN`. - * - * ```js - * import assert from 'assert'; - * - * assert.equal(1, 1); - * // OK, 1 == 1 - * assert.equal(1, '1'); - * // OK, 1 == '1' - * assert.equal(NaN, NaN); - * // OK - * - * assert.equal(1, 2); - * // AssertionError: 1 == 2 - * assert.equal({ a: { b: 1 } }, { a: { b: 1 } }); - * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } } - * ``` - * - * If the values are not equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default - * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`. - * @since v0.1.21 - */ - function equal(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link notStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead. - * - * Tests shallow, coercive inequality with the [Abstract Equality Comparison](https://tc39.github.io/ecma262/#sec-abstract-equality-comparison)(`!=` ). `NaN` is special handled and treated as - * being identical in case both - * sides are `NaN`. - * - * ```js - * import assert from 'assert'; - * - * assert.notEqual(1, 2); - * // OK - * - * assert.notEqual(1, 1); - * // AssertionError: 1 != 1 - * - * assert.notEqual(1, '1'); - * // AssertionError: 1 != '1' - * ``` - * - * If the values are equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default error - * message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`. - * @since v0.1.21 - */ - function notEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link deepStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead. - * - * Tests for deep equality between the `actual` and `expected` parameters. Consider - * using {@link deepStrictEqual} instead. {@link deepEqual} can have - * surprising results. - * - * _Deep equality_ means that the enumerable "own" properties of child objects - * are also recursively evaluated by the following rules. - * @since v0.1.21 - */ - function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * **Strict assertion mode** - * - * An alias of {@link notDeepStrictEqual}. - * - * **Legacy assertion mode** - * - * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead. - * - * Tests for any deep inequality. Opposite of {@link deepEqual}. - * - * ```js - * import assert from 'assert'; - * - * const obj1 = { - * a: { - * b: 1 - * } - * }; - * const obj2 = { - * a: { - * b: 2 - * } - * }; - * const obj3 = { - * a: { - * b: 1 - * } - * }; - * const obj4 = Object.create(obj1); - * - * assert.notDeepEqual(obj1, obj1); - * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } - * - * assert.notDeepEqual(obj1, obj2); - * // OK - * - * assert.notDeepEqual(obj1, obj3); - * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } - * - * assert.notDeepEqual(obj1, obj4); - * // OK - * ``` - * - * If the values are deeply equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a default - * error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Tests strict equality between the `actual` and `expected` parameters as - * determined by the [SameValue Comparison](https://tc39.github.io/ecma262/#sec-samevalue). - * - * ```js - * import assert from 'assert/strict'; - * - * assert.strictEqual(1, 2); - * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: - * // - * // 1 !== 2 - * - * assert.strictEqual(1, 1); - * // OK - * - * assert.strictEqual('Hello foobar', 'Hello World!'); - * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: - * // + actual - expected - * // - * // + 'Hello foobar' - * // - 'Hello World!' - * // ^ - * - * const apples = 1; - * const oranges = 2; - * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`); - * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2 - * - * assert.strictEqual(1, '1', new TypeError('Inputs are not identical')); - * // TypeError: Inputs are not identical - * ``` - * - * If the values are not strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a - * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function strictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; - /** - * Tests strict inequality between the `actual` and `expected` parameters as - * determined by the [SameValue Comparison](https://tc39.github.io/ecma262/#sec-samevalue). - * - * ```js - * import assert from 'assert/strict'; - * - * assert.notStrictEqual(1, 2); - * // OK - * - * assert.notStrictEqual(1, 1); - * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to: - * // - * // 1 - * - * assert.notStrictEqual(1, '1'); - * // OK - * ``` - * - * If the values are strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a - * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v0.1.21 - */ - function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Tests for deep equality between the `actual` and `expected` parameters. - * "Deep" equality means that the enumerable "own" properties of child objects - * are recursively evaluated also by the following rules. - * @since v1.2.0 - */ - function deepStrictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; - /** - * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}. - * - * ```js - * import assert from 'assert/strict'; - * - * assert.notDeepStrictEqual({ a: 1 }, { a: '1' }); - * // OK - * ``` - * - * If the values are deeply and strictly equal, an `AssertionError` is thrown - * with a `message` property set equal to the value of the `message` parameter. If - * the `message` parameter is undefined, a default error message is assigned. If - * the `message` parameter is an instance of an `Error` then it will be thrown - * instead of the `AssertionError`. - * @since v1.2.0 - */ - function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; - /** - * Expects the function `fn` to throw an error. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, - * a validation object where each property will be tested for strict deep equality, - * or an instance of error where each property will be tested for strict deep - * equality including the non-enumerable `message` and `name` properties. When - * using an object, it is also possible to use a regular expression, when - * validating against a string property. See below for examples. - * - * If specified, `message` will be appended to the message provided by the`AssertionError` if the `fn` call fails to throw or in case the error validation - * fails. - * - * Custom validation object/error instance: - * - * ```js - * import assert from 'assert/strict'; - * - * const err = new TypeError('Wrong value'); - * err.code = 404; - * err.foo = 'bar'; - * err.info = { - * nested: true, - * baz: 'text' - * }; - * err.reg = /abc/i; - * - * assert.throws( - * () => { - * throw err; - * }, - * { - * name: 'TypeError', - * message: 'Wrong value', - * info: { - * nested: true, - * baz: 'text' - * } - * // Only properties on the validation object will be tested for. - * // Using nested objects requires all properties to be present. Otherwise - * // the validation is going to fail. - * } - * ); - * - * // Using regular expressions to validate error properties: - * throws( - * () => { - * throw err; - * }, - * { - * // The `name` and `message` properties are strings and using regular - * // expressions on those will match against the string. If they fail, an - * // error is thrown. - * name: /^TypeError$/, - * message: /Wrong/, - * foo: 'bar', - * info: { - * nested: true, - * // It is not possible to use regular expressions for nested properties! - * baz: 'text' - * }, - * // The `reg` property contains a regular expression and only if the - * // validation object contains an identical regular expression, it is going - * // to pass. - * reg: /abc/i - * } - * ); - * - * // Fails due to the different `message` and `name` properties: - * throws( - * () => { - * const otherErr = new Error('Not found'); - * // Copy all enumerable properties from `err` to `otherErr`. - * for (const [key, value] of Object.entries(err)) { - * otherErr[key] = value; - * } - * throw otherErr; - * }, - * // The error's `message` and `name` properties will also be checked when using - * // an error as validation object. - * err - * ); - * ``` - * - * Validate instanceof using constructor: - * - * ```js - * import assert from 'assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * Error - * ); - * ``` - * - * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions): - * - * Using a regular expression runs `.toString` on the error object, and will - * therefore also include the error name. - * - * ```js - * import assert from 'assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * /^Error: Wrong value$/ - * ); - * ``` - * - * Custom error validation: - * - * The function must return `true` to indicate all internal validations passed. - * It will otherwise fail with an `AssertionError`. - * - * ```js - * import assert from 'assert/strict'; - * - * assert.throws( - * () => { - * throw new Error('Wrong value'); - * }, - * (err) => { - * assert(err instanceof Error); - * assert(/value/.test(err)); - * // Avoid returning anything from validation functions besides `true`. - * // Otherwise, it's not clear what part of the validation failed. Instead, - * // throw an error about the specific validation that failed (as done in this - * // example) and add as much helpful debugging information to that error as - * // possible. - * return true; - * }, - * 'unexpected error' - * ); - * ``` - * - * `error` cannot be a string. If a string is provided as the second - * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Using the same - * message as the thrown error message is going to result in an`ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using - * a string as the second argument gets considered: - * - * ```js - * import assert from 'assert/strict'; - * - * function throwingFirst() { - * throw new Error('First'); - * } - * - * function throwingSecond() { - * throw new Error('Second'); - * } - * - * function notThrowing() {} - * - * // The second argument is a string and the input function threw an Error. - * // The first case will not throw as it does not match for the error message - * // thrown by the input function! - * assert.throws(throwingFirst, 'Second'); - * // In the next example the message has no benefit over the message from the - * // error and since it is not clear if the user intended to actually match - * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error. - * assert.throws(throwingSecond, 'Second'); - * // TypeError [ERR_AMBIGUOUS_ARGUMENT] - * - * // The string is only used (as message) in case the function does not throw: - * assert.throws(notThrowing, 'Second'); - * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second - * - * // If it was intended to match for the error message do this instead: - * // It does not throw because the error messages match. - * assert.throws(throwingSecond, /Second$/); - * - * // If the error message does not match, an AssertionError is thrown. - * assert.throws(throwingFirst, /Second$/); - * // AssertionError [ERR_ASSERTION] - * ``` - * - * Due to the confusing error-prone notation, avoid a string as the second - * argument. - * @since v0.1.21 - */ - function throws(block: () => unknown, message?: string | Error): void; - function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void; - /** - * Asserts that the function `fn` does not throw an error. - * - * Using `assert.doesNotThrow()` is actually not useful because there - * is no benefit in catching an error and then rethrowing it. Instead, consider - * adding a comment next to the specific code path that should not throw and keep - * error messages as expressive as possible. - * - * When `assert.doesNotThrow()` is called, it will immediately call the `fn`function. - * - * If an error is thrown and it is the same type as that specified by the `error`parameter, then an `AssertionError` is thrown. If the error is of a - * different type, or if the `error` parameter is undefined, the error is - * propagated back to the caller. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) or a validation - * function. See {@link throws} for more details. - * - * The following, for instance, will throw the `TypeError` because there is no - * matching error type in the assertion: - * - * ```js - * import assert from 'assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * SyntaxError - * ); - * ``` - * - * However, the following will result in an `AssertionError` with the message - * 'Got unwanted exception...': - * - * ```js - * import assert from 'assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * TypeError - * ); - * ``` - * - * If an `AssertionError` is thrown and a value is provided for the `message`parameter, the value of `message` will be appended to the `AssertionError` message: - * - * ```js - * import assert from 'assert/strict'; - * - * assert.doesNotThrow( - * () => { - * throw new TypeError('Wrong value'); - * }, - * /Wrong value/, - * 'Whoops' - * ); - * // Throws: AssertionError: Got unwanted exception: Whoops - * ``` - * @since v0.1.21 - */ - function doesNotThrow(block: () => unknown, message?: string | Error): void; - function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void; - /** - * Throws `value` if `value` is not `undefined` or `null`. This is useful when - * testing the `error` argument in callbacks. The stack trace contains all frames - * from the error passed to `ifError()` including the potential new frames for`ifError()` itself. - * - * ```js - * import assert from 'assert/strict'; - * - * assert.ifError(null); - * // OK - * assert.ifError(0); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0 - * assert.ifError('error'); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error' - * assert.ifError(new Error()); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error - * - * // Create some random error frames. - * let err; - * (function errorFrame() { - * err = new Error('test error'); - * })(); - * - * (function ifErrorFrame() { - * assert.ifError(err); - * })(); - * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error - * // at ifErrorFrame - * // at errorFrame - * ``` - * @since v0.1.97 - */ - function ifError(value: unknown): asserts value is null | undefined; - /** - * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately - * calls the function and awaits the returned promise to complete. It will then - * check that the promise is rejected. - * - * If `asyncFn` is a function and it throws an error synchronously,`assert.rejects()` will return a rejected `Promise` with that error. If the - * function does not return a promise, `assert.rejects()` will return a rejected`Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases the error - * handler is skipped. - * - * Besides the async nature to await the completion behaves identically to {@link throws}. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, - * an object where each property will be tested for, or an instance of error where - * each property will be tested for including the non-enumerable `message` and`name` properties. - * - * If specified, `message` will be the message provided by the `AssertionError` if the `asyncFn` fails to reject. - * - * ```js - * import assert from 'assert/strict'; - * - * await assert.rejects( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * { - * name: 'TypeError', - * message: 'Wrong value' - * } - * ); - * ``` - * - * ```js - * import assert from 'assert/strict'; - * - * await assert.rejects( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * (err) => { - * assert.strictEqual(err.name, 'TypeError'); - * assert.strictEqual(err.message, 'Wrong value'); - * return true; - * } - * ); - * ``` - * - * ```js - * import assert from 'assert/strict'; - * - * assert.rejects( - * Promise.reject(new Error('Wrong value')), - * Error - * ).then(() => { - * // ... - * }); - * ``` - * - * `error` cannot be a string. If a string is provided as the second - * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Please read the - * example in {@link throws} carefully if using a string as the second - * argument gets considered. - * @since v10.0.0 - */ - function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise; - function rejects(block: (() => Promise) | Promise, error: AssertPredicate, message?: string | Error): Promise; - /** - * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately - * calls the function and awaits the returned promise to complete. It will then - * check that the promise is not rejected. - * - * If `asyncFn` is a function and it throws an error synchronously,`assert.doesNotReject()` will return a rejected `Promise` with that error. If - * the function does not return a promise, `assert.doesNotReject()` will return a - * rejected `Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases - * the error handler is skipped. - * - * Using `assert.doesNotReject()` is actually not useful because there is little - * benefit in catching a rejection and then rejecting it again. Instead, consider - * adding a comment next to the specific code path that should not reject and keep - * error messages as expressive as possible. - * - * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), - * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) or a validation - * function. See {@link throws} for more details. - * - * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}. - * - * ```js - * import assert from 'assert/strict'; - * - * await assert.doesNotReject( - * async () => { - * throw new TypeError('Wrong value'); - * }, - * SyntaxError - * ); - * ``` - * - * ```js - * import assert from 'assert/strict'; - * - * assert.doesNotReject(Promise.reject(new TypeError('Wrong value'))) - * .then(() => { - * // ... - * }); - * ``` - * @since v10.0.0 - */ - function doesNotReject(block: (() => Promise) | Promise, message?: string | Error): Promise; - function doesNotReject(block: (() => Promise) | Promise, error: AssertPredicate, message?: string | Error): Promise; - /** - * Expects the `string` input to match the regular expression. - * - * ```js - * import assert from 'assert/strict'; - * - * assert.match('I will fail', /pass/); - * // AssertionError [ERR_ASSERTION]: The input did not match the regular ... - * - * assert.match(123, /pass/); - * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. - * - * assert.match('I will pass', /pass/); - * // OK - * ``` - * - * If the values do not match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal - * to the value of the `message` parameter. If the `message` parameter is - * undefined, a default error message is assigned. If the `message` parameter is an - * instance of an `Error` then it will be thrown instead of the `AssertionError`. - * @since v13.6.0, v12.16.0 - */ - function match(value: string, regExp: RegExp, message?: string | Error): void; - /** - * Expects the `string` input not to match the regular expression. - * - * ```js - * import assert from 'assert/strict'; - * - * assert.doesNotMatch('I will fail', /fail/); - * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ... - * - * assert.doesNotMatch(123, /pass/); - * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. - * - * assert.doesNotMatch('I will pass', /different/); - * // OK - * ``` - * - * If the values do match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal - * to the value of the `message` parameter. If the `message` parameter is - * undefined, a default error message is assigned. If the `message` parameter is an - * instance of an `Error` then it will be thrown instead of the `AssertionError`. - * @since v13.6.0, v12.16.0 - */ - function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void; - const strict: Omit & { - (value: unknown, message?: string | Error): asserts value; - equal: typeof strictEqual; - notEqual: typeof notStrictEqual; - deepEqual: typeof deepStrictEqual; - notDeepEqual: typeof notDeepStrictEqual; - // Mapped types and assertion functions are incompatible? - // TS2775: Assertions require every name in the call target - // to be declared with an explicit type annotation. - ok: typeof ok; - strictEqual: typeof strictEqual; - deepStrictEqual: typeof deepStrictEqual; - ifError: typeof ifError; - strict: typeof strict; - }; - } - export = assert; -} -declare module 'node:assert' { - import assert = require('assert'); - export = assert; -} diff --git a/WechatBot/node_modules/@types/node/assert/strict.d.ts b/WechatBot/node_modules/@types/node/assert/strict.d.ts deleted file mode 100644 index b4319b974..000000000 --- a/WechatBot/node_modules/@types/node/assert/strict.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -declare module 'assert/strict' { - import { strict } from 'node:assert'; - export = strict; -} -declare module 'node:assert/strict' { - import { strict } from 'node:assert'; - export = strict; -} diff --git a/WechatBot/node_modules/@types/node/async_hooks.d.ts b/WechatBot/node_modules/@types/node/async_hooks.d.ts deleted file mode 100644 index 157bea9f3..000000000 --- a/WechatBot/node_modules/@types/node/async_hooks.d.ts +++ /dev/null @@ -1,497 +0,0 @@ -/** - * The `async_hooks` module provides an API to track asynchronous resources. It - * can be accessed using: - * - * ```js - * import async_hooks from 'async_hooks'; - * ``` - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/async_hooks.js) - */ -declare module 'async_hooks' { - /** - * ```js - * import { executionAsyncId } from 'async_hooks'; - * - * console.log(executionAsyncId()); // 1 - bootstrap - * fs.open(path, 'r', (err, fd) => { - * console.log(executionAsyncId()); // 6 - open() - * }); - * ``` - * - * The ID returned from `executionAsyncId()` is related to execution timing, not - * causality (which is covered by `triggerAsyncId()`): - * - * ```js - * const server = net.createServer((conn) => { - * // Returns the ID of the server, not of the new connection, because the - * // callback runs in the execution scope of the server's MakeCallback(). - * async_hooks.executionAsyncId(); - * - * }).listen(port, () => { - * // Returns the ID of a TickObject (process.nextTick()) because all - * // callbacks passed to .listen() are wrapped in a nextTick(). - * async_hooks.executionAsyncId(); - * }); - * ``` - * - * Promise contexts may not get precise `executionAsyncIds` by default. - * See the section on `promise execution tracking`. - * @since v8.1.0 - * @return The `asyncId` of the current execution context. Useful to track when something calls. - */ - function executionAsyncId(): number; - /** - * Resource objects returned by `executionAsyncResource()` are most often internal - * Node.js handle objects with undocumented APIs. Using any functions or properties - * on the object is likely to crash your application and should be avoided. - * - * Using `executionAsyncResource()` in the top-level execution context will - * return an empty object as there is no handle or request object to use, - * but having an object representing the top-level can be helpful. - * - * ```js - * import { open } from 'fs'; - * import { executionAsyncId, executionAsyncResource } from 'async_hooks'; - * - * console.log(executionAsyncId(), executionAsyncResource()); // 1 {} - * open(new URL(import.meta.url), 'r', (err, fd) => { - * console.log(executionAsyncId(), executionAsyncResource()); // 7 FSReqWrap - * }); - * ``` - * - * This can be used to implement continuation local storage without the - * use of a tracking `Map` to store the metadata: - * - * ```js - * import { createServer } from 'http'; - * import { - * executionAsyncId, - * executionAsyncResource, - * createHook - * } from 'async_hooks'; - * const sym = Symbol('state'); // Private symbol to avoid pollution - * - * createHook({ - * init(asyncId, type, triggerAsyncId, resource) { - * const cr = executionAsyncResource(); - * if (cr) { - * resource[sym] = cr[sym]; - * } - * } - * }).enable(); - * - * const server = createServer((req, res) => { - * executionAsyncResource()[sym] = { state: req.url }; - * setTimeout(function() { - * res.end(JSON.stringify(executionAsyncResource()[sym])); - * }, 100); - * }).listen(3000); - * ``` - * @since v13.9.0, v12.17.0 - * @return The resource representing the current execution. Useful to store data within the resource. - */ - function executionAsyncResource(): object; - /** - * ```js - * const server = net.createServer((conn) => { - * // The resource that caused (or triggered) this callback to be called - * // was that of the new connection. Thus the return value of triggerAsyncId() - * // is the asyncId of "conn". - * async_hooks.triggerAsyncId(); - * - * }).listen(port, () => { - * // Even though all callbacks passed to .listen() are wrapped in a nextTick() - * // the callback itself exists because the call to the server's .listen() - * // was made. So the return value would be the ID of the server. - * async_hooks.triggerAsyncId(); - * }); - * ``` - * - * Promise contexts may not get valid `triggerAsyncId`s by default. See - * the section on `promise execution tracking`. - * @return The ID of the resource responsible for calling the callback that is currently being executed. - */ - function triggerAsyncId(): number; - interface HookCallbacks { - /** - * Called when a class is constructed that has the possibility to emit an asynchronous event. - * @param asyncId a unique ID for the async resource - * @param type the type of the async resource - * @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created - * @param resource reference to the resource representing the async operation, needs to be released during destroy - */ - init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void; - /** - * When an asynchronous operation is initiated or completes a callback is called to notify the user. - * The before callback is called just before said callback is executed. - * @param asyncId the unique identifier assigned to the resource about to execute the callback. - */ - before?(asyncId: number): void; - /** - * Called immediately after the callback specified in before is completed. - * @param asyncId the unique identifier assigned to the resource which has executed the callback. - */ - after?(asyncId: number): void; - /** - * Called when a promise has resolve() called. This may not be in the same execution id - * as the promise itself. - * @param asyncId the unique id for the promise that was resolve()d. - */ - promiseResolve?(asyncId: number): void; - /** - * Called after the resource corresponding to asyncId is destroyed - * @param asyncId a unique ID for the async resource - */ - destroy?(asyncId: number): void; - } - interface AsyncHook { - /** - * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop. - */ - enable(): this; - /** - * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled. - */ - disable(): this; - } - /** - * Registers functions to be called for different lifetime events of each async - * operation. - * - * The callbacks `init()`/`before()`/`after()`/`destroy()` are called for the - * respective asynchronous event during a resource's lifetime. - * - * All callbacks are optional. For example, if only resource cleanup needs to - * be tracked, then only the `destroy` callback needs to be passed. The - * specifics of all functions that can be passed to `callbacks` is in the `Hook Callbacks` section. - * - * ```js - * import { createHook } from 'async_hooks'; - * - * const asyncHook = createHook({ - * init(asyncId, type, triggerAsyncId, resource) { }, - * destroy(asyncId) { } - * }); - * ``` - * - * The callbacks will be inherited via the prototype chain: - * - * ```js - * class MyAsyncCallbacks { - * init(asyncId, type, triggerAsyncId, resource) { } - * destroy(asyncId) {} - * } - * - * class MyAddedCallbacks extends MyAsyncCallbacks { - * before(asyncId) { } - * after(asyncId) { } - * } - * - * const asyncHook = async_hooks.createHook(new MyAddedCallbacks()); - * ``` - * - * Because promises are asynchronous resources whose lifecycle is tracked - * via the async hooks mechanism, the `init()`, `before()`, `after()`, and`destroy()` callbacks _must not_ be async functions that return promises. - * @since v8.1.0 - * @param callbacks The `Hook Callbacks` to register - * @return Instance used for disabling and enabling hooks - */ - function createHook(callbacks: HookCallbacks): AsyncHook; - interface AsyncResourceOptions { - /** - * The ID of the execution context that created this async event. - * @default executionAsyncId() - */ - triggerAsyncId?: number | undefined; - /** - * Disables automatic `emitDestroy` when the object is garbage collected. - * This usually does not need to be set (even if `emitDestroy` is called - * manually), unless the resource's `asyncId` is retrieved and the - * sensitive API's `emitDestroy` is called with it. - * @default false - */ - requireManualDestroy?: boolean | undefined; - } - /** - * The class `AsyncResource` is designed to be extended by the embedder's async - * resources. Using this, users can easily trigger the lifetime events of their - * own resources. - * - * The `init` hook will trigger when an `AsyncResource` is instantiated. - * - * The following is an overview of the `AsyncResource` API. - * - * ```js - * import { AsyncResource, executionAsyncId } from 'async_hooks'; - * - * // AsyncResource() is meant to be extended. Instantiating a - * // new AsyncResource() also triggers init. If triggerAsyncId is omitted then - * // async_hook.executionAsyncId() is used. - * const asyncResource = new AsyncResource( - * type, { triggerAsyncId: executionAsyncId(), requireManualDestroy: false } - * ); - * - * // Run a function in the execution context of the resource. This will - * // * establish the context of the resource - * // * trigger the AsyncHooks before callbacks - * // * call the provided function `fn` with the supplied arguments - * // * trigger the AsyncHooks after callbacks - * // * restore the original execution context - * asyncResource.runInAsyncScope(fn, thisArg, ...args); - * - * // Call AsyncHooks destroy callbacks. - * asyncResource.emitDestroy(); - * - * // Return the unique ID assigned to the AsyncResource instance. - * asyncResource.asyncId(); - * - * // Return the trigger ID for the AsyncResource instance. - * asyncResource.triggerAsyncId(); - * ``` - */ - class AsyncResource { - /** - * AsyncResource() is meant to be extended. Instantiating a - * new AsyncResource() also triggers init. If triggerAsyncId is omitted then - * async_hook.executionAsyncId() is used. - * @param type The type of async event. - * @param triggerAsyncId The ID of the execution context that created - * this async event (default: `executionAsyncId()`), or an - * AsyncResourceOptions object (since 9.3) - */ - constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions); - /** - * Binds the given function to the current execution context. - * - * The returned function will have an `asyncResource` property referencing - * the `AsyncResource` to which the function is bound. - * @since v14.8.0, v12.19.0 - * @param fn The function to bind to the current execution context. - * @param type An optional name to associate with the underlying `AsyncResource`. - */ - static bind any, ThisArg>( - fn: Func, - type?: string, - thisArg?: ThisArg - ): Func & { - asyncResource: AsyncResource; - }; - /** - * Binds the given function to execute to this `AsyncResource`'s scope. - * - * The returned function will have an `asyncResource` property referencing - * the `AsyncResource` to which the function is bound. - * @since v14.8.0, v12.19.0 - * @param fn The function to bind to the current `AsyncResource`. - */ - bind any>( - fn: Func - ): Func & { - asyncResource: AsyncResource; - }; - /** - * Call the provided function with the provided arguments in the execution context - * of the async resource. This will establish the context, trigger the AsyncHooks - * before callbacks, call the function, trigger the AsyncHooks after callbacks, and - * then restore the original execution context. - * @since v9.6.0 - * @param fn The function to call in the execution context of this async resource. - * @param thisArg The receiver to be used for the function call. - * @param args Optional arguments to pass to the function. - */ - runInAsyncScope(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result; - /** - * Call all `destroy` hooks. This should only ever be called once. An error will - * be thrown if it is called more than once. This **must** be manually called. If - * the resource is left to be collected by the GC then the `destroy` hooks will - * never be called. - * @return A reference to `asyncResource`. - */ - emitDestroy(): this; - /** - * @return The unique `asyncId` assigned to the resource. - */ - asyncId(): number; - /** - * - * @return The same `triggerAsyncId` that is passed to the `AsyncResource` constructor. - */ - triggerAsyncId(): number; - } - /** - * This class creates stores that stay coherent through asynchronous operations. - * - * While you can create your own implementation on top of the `async_hooks` module,`AsyncLocalStorage` should be preferred as it is a performant and memory safe - * implementation that involves significant optimizations that are non-obvious to - * implement. - * - * The following example uses `AsyncLocalStorage` to build a simple logger - * that assigns IDs to incoming HTTP requests and includes them in messages - * logged within each request. - * - * ```js - * import http from 'http'; - * import { AsyncLocalStorage } from 'async_hooks'; - * - * const asyncLocalStorage = new AsyncLocalStorage(); - * - * function logWithId(msg) { - * const id = asyncLocalStorage.getStore(); - * console.log(`${id !== undefined ? id : '-'}:`, msg); - * } - * - * let idSeq = 0; - * http.createServer((req, res) => { - * asyncLocalStorage.run(idSeq++, () => { - * logWithId('start'); - * // Imagine any chain of async operations here - * setImmediate(() => { - * logWithId('finish'); - * res.end(); - * }); - * }); - * }).listen(8080); - * - * http.get('http://localhost:8080'); - * http.get('http://localhost:8080'); - * // Prints: - * // 0: start - * // 1: start - * // 0: finish - * // 1: finish - * ``` - * - * Each instance of `AsyncLocalStorage` maintains an independent storage context. - * Multiple instances can safely exist simultaneously without risk of interfering - * with each other data. - * @since v13.10.0, v12.17.0 - */ - class AsyncLocalStorage { - /** - * Disables the instance of `AsyncLocalStorage`. All subsequent calls - * to `asyncLocalStorage.getStore()` will return `undefined` until`asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again. - * - * When calling `asyncLocalStorage.disable()`, all current contexts linked to the - * instance will be exited. - * - * Calling `asyncLocalStorage.disable()` is required before the`asyncLocalStorage` can be garbage collected. This does not apply to stores - * provided by the `asyncLocalStorage`, as those objects are garbage collected - * along with the corresponding async resources. - * - * Use this method when the `asyncLocalStorage` is not in use anymore - * in the current process. - * @since v13.10.0, v12.17.0 - * @experimental - */ - disable(): void; - /** - * Returns the current store. - * If called outside of an asynchronous context initialized by - * calling `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()`, it - * returns `undefined`. - * @since v13.10.0, v12.17.0 - */ - getStore(): T | undefined; - /** - * Runs a function synchronously within a context and returns its - * return value. The store is not accessible outside of the callback function or - * the asynchronous operations created within the callback. - * - * The optional `args` are passed to the callback function. - * - * If the callback function throws an error, the error is thrown by `run()` too. - * The stacktrace is not impacted by this call and the context is exited. - * - * Example: - * - * ```js - * const store = { id: 2 }; - * try { - * asyncLocalStorage.run(store, () => { - * asyncLocalStorage.getStore(); // Returns the store object - * throw new Error(); - * }); - * } catch (e) { - * asyncLocalStorage.getStore(); // Returns undefined - * // The error will be caught here - * } - * ``` - * @since v13.10.0, v12.17.0 - */ - run(store: T, callback: (...args: TArgs) => R, ...args: TArgs): R; - /** - * Runs a function synchronously outside of a context and returns its - * return value. The store is not accessible within the callback function or - * the asynchronous operations created within the callback. Any `getStore()`call done within the callback function will always return `undefined`. - * - * The optional `args` are passed to the callback function. - * - * If the callback function throws an error, the error is thrown by `exit()` too. - * The stacktrace is not impacted by this call and the context is re-entered. - * - * Example: - * - * ```js - * // Within a call to run - * try { - * asyncLocalStorage.getStore(); // Returns the store object or value - * asyncLocalStorage.exit(() => { - * asyncLocalStorage.getStore(); // Returns undefined - * throw new Error(); - * }); - * } catch (e) { - * asyncLocalStorage.getStore(); // Returns the same object or value - * // The error will be caught here - * } - * ``` - * @since v13.10.0, v12.17.0 - * @experimental - */ - exit(callback: (...args: TArgs) => R, ...args: TArgs): R; - /** - * Transitions into the context for the remainder of the current - * synchronous execution and then persists the store through any following - * asynchronous calls. - * - * Example: - * - * ```js - * const store = { id: 1 }; - * // Replaces previous store with the given store object - * asyncLocalStorage.enterWith(store); - * asyncLocalStorage.getStore(); // Returns the store object - * someAsyncOperation(() => { - * asyncLocalStorage.getStore(); // Returns the same object - * }); - * ``` - * - * This transition will continue for the _entire_ synchronous execution. - * This means that if, for example, the context is entered within an event - * handler subsequent event handlers will also run within that context unless - * specifically bound to another context with an `AsyncResource`. That is why`run()` should be preferred over `enterWith()` unless there are strong reasons - * to use the latter method. - * - * ```js - * const store = { id: 1 }; - * - * emitter.on('my-event', () => { - * asyncLocalStorage.enterWith(store); - * }); - * emitter.on('my-event', () => { - * asyncLocalStorage.getStore(); // Returns the same object - * }); - * - * asyncLocalStorage.getStore(); // Returns undefined - * emitter.emit('my-event'); - * asyncLocalStorage.getStore(); // Returns the same object - * ``` - * @since v13.11.0, v12.17.0 - * @experimental - */ - enterWith(store: T): void; - } -} -declare module 'node:async_hooks' { - export * from 'async_hooks'; -} diff --git a/WechatBot/node_modules/@types/node/buffer.d.ts b/WechatBot/node_modules/@types/node/buffer.d.ts deleted file mode 100644 index 9bf8ff9ba..000000000 --- a/WechatBot/node_modules/@types/node/buffer.d.ts +++ /dev/null @@ -1,2142 +0,0 @@ -/** - * `Buffer` objects are used to represent a fixed-length sequence of bytes. Many - * Node.js APIs support `Buffer`s. - * - * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and - * extends it with methods that cover additional use cases. Node.js APIs accept - * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array)s wherever `Buffer`s are supported as well. - * - * While the `Buffer` class is available within the global scope, it is still - * recommended to explicitly reference it via an import or require statement. - * - * ```js - * import { Buffer } from 'buffer'; - * - * // Creates a zero-filled Buffer of length 10. - * const buf1 = Buffer.alloc(10); - * - * // Creates a Buffer of length 10, - * // filled with bytes which all have the value `1`. - * const buf2 = Buffer.alloc(10, 1); - * - * // Creates an uninitialized buffer of length 10. - * // This is faster than calling Buffer.alloc() but the returned - * // Buffer instance might contain old data that needs to be - * // overwritten using fill(), write(), or other functions that fill the Buffer's - * // contents. - * const buf3 = Buffer.allocUnsafe(10); - * - * // Creates a Buffer containing the bytes [1, 2, 3]. - * const buf4 = Buffer.from([1, 2, 3]); - * - * // Creates a Buffer containing the bytes [1, 1, 1, 1] – the entries - * // are all truncated using `(value & 255)` to fit into the range 0–255. - * const buf5 = Buffer.from([257, 257.5, -255, '1']); - * - * // Creates a Buffer containing the UTF-8-encoded bytes for the string 'tést': - * // [0x74, 0xc3, 0xa9, 0x73, 0x74] (in hexadecimal notation) - * // [116, 195, 169, 115, 116] (in decimal notation) - * const buf6 = Buffer.from('tést'); - * - * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74]. - * const buf7 = Buffer.from('tést', 'latin1'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/buffer.js) - */ -declare module 'buffer' { - import { BinaryLike } from 'node:crypto'; - export const INSPECT_MAX_BYTES: number; - export const kMaxLength: number; - export const kStringMaxLength: number; - export const constants: { - MAX_LENGTH: number; - MAX_STRING_LENGTH: number; - }; - export type TranscodeEncoding = 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'latin1' | 'binary'; - /** - * Re-encodes the given `Buffer` or `Uint8Array` instance from one character - * encoding to another. Returns a new `Buffer` instance. - * - * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if - * conversion from `fromEnc` to `toEnc` is not permitted. - * - * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`,`'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. - * - * The transcoding process will use substitution characters if a given byte - * sequence cannot be adequately represented in the target encoding. For instance: - * - * ```js - * import { Buffer, transcode } from 'buffer'; - * - * const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii'); - * console.log(newBuf.toString('ascii')); - * // Prints: '?' - * ``` - * - * Because the Euro (`€`) sign is not representable in US-ASCII, it is replaced - * with `?` in the transcoded `Buffer`. - * @since v7.1.0 - * @param source A `Buffer` or `Uint8Array` instance. - * @param fromEnc The current encoding. - * @param toEnc To target encoding. - */ - export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer; - export const SlowBuffer: { - /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */ - new (size: number): Buffer; - prototype: Buffer; - }; - /** - * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using - * a prior call to `URL.createObjectURL()`. - * @since v16.7.0 - * @experimental - * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. - */ - export function resolveObjectURL(id: string): Blob | undefined; - export { Buffer }; - /** - * @experimental - */ - export interface BlobOptions { - /** - * @default 'utf8' - */ - encoding?: BufferEncoding | undefined; - /** - * The Blob content-type. The intent is for `type` to convey - * the MIME media type of the data, however no validation of the type format - * is performed. - */ - type?: string | undefined; - } - /** - * A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across - * multiple worker threads. - * @since v15.7.0 - * @experimental - */ - export class Blob { - /** - * The total size of the `Blob` in bytes. - * @since v15.7.0 - */ - readonly size: number; - /** - * The content-type of the `Blob`. - * @since v15.7.0 - */ - readonly type: string; - /** - * Creates a new `Blob` object containing a concatenation of the given sources. - * - * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into - * the 'Blob' and can therefore be safely modified after the 'Blob' is created. - * - * String sources are also copied into the `Blob`. - */ - constructor(sources: Array, options?: BlobOptions); - /** - * Returns a promise that fulfills with an [<ArrayBuffer>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of - * the `Blob` data. - * @since v15.7.0 - */ - arrayBuffer(): Promise; - /** - * Creates and returns a new `Blob` containing a subset of this `Blob` objects - * data. The original `Blob` is not altered. - * @since v15.7.0 - * @param start The starting index. - * @param end The ending index. - * @param type The content-type for the new `Blob` - */ - slice(start?: number, end?: number, type?: string): Blob; - /** - * Returns a promise that fulfills with the contents of the `Blob` decoded as a - * UTF-8 string. - * @since v15.7.0 - */ - text(): Promise; - /** - * Returns a new `ReadableStream` that allows the content of the `Blob` to be read. - * @since v16.7.0 - */ - stream(): unknown; // pending web streams types - } - export import atob = globalThis.atob; - export import btoa = globalThis.btoa; - global { - // Buffer class - type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'; - type WithImplicitCoercion = - | T - | { - valueOf(): T; - }; - /** - * Raw data is stored in instances of the Buffer class. - * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized. - * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex' - */ - interface BufferConstructor { - /** - * Allocates a new buffer containing the given {str}. - * - * @param str String to store in buffer. - * @param encoding encoding to use, optional. Default is 'utf8' - * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead. - */ - new (str: string, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new buffer of {size} octets. - * - * @param size count of octets to allocate. - * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`). - */ - new (size: number): Buffer; - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. - */ - new (array: Uint8Array): Buffer; - /** - * Produces a Buffer backed by the same allocated memory as - * the given {ArrayBuffer}/{SharedArrayBuffer}. - * - * - * @param arrayBuffer The ArrayBuffer with which to share memory. - * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead. - */ - new (arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer; - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. - */ - new (array: ReadonlyArray): Buffer; - /** - * Copies the passed {buffer} data onto a new {Buffer} instance. - * - * @param buffer The buffer to copy. - * @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead. - */ - new (buffer: Buffer): Buffer; - /** - * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`. - * Array entries outside that range will be truncated to fit into it. - * - * ```js - * import { Buffer } from 'buffer'; - * - * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'. - * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); - * ``` - * - * A `TypeError` will be thrown if `array` is not an `Array` or another type - * appropriate for `Buffer.from()` variants. - * - * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal`Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v5.10.0 - */ - from(arrayBuffer: WithImplicitCoercion, byteOffset?: number, length?: number): Buffer; - /** - * Creates a new Buffer using the passed {data} - * @param data data to create a new Buffer - */ - from(data: Uint8Array | ReadonlyArray): Buffer; - from(data: WithImplicitCoercion | string>): Buffer; - /** - * Creates a new Buffer containing the given JavaScript string {str}. - * If provided, the {encoding} parameter identifies the character encoding. - * If not provided, {encoding} defaults to 'utf8'. - */ - from( - str: - | WithImplicitCoercion - | { - [Symbol.toPrimitive](hint: 'string'): string; - }, - encoding?: BufferEncoding - ): Buffer; - /** - * Creates a new Buffer using the passed {data} - * @param values to create a new Buffer - */ - of(...items: number[]): Buffer; - /** - * Returns `true` if `obj` is a `Buffer`, `false` otherwise. - * - * ```js - * import { Buffer } from 'buffer'; - * - * Buffer.isBuffer(Buffer.alloc(10)); // true - * Buffer.isBuffer(Buffer.from('foo')); // true - * Buffer.isBuffer('a string'); // false - * Buffer.isBuffer([]); // false - * Buffer.isBuffer(new Uint8Array(1024)); // false - * ``` - * @since v0.1.101 - */ - isBuffer(obj: any): obj is Buffer; - /** - * Returns `true` if `encoding` is the name of a supported character encoding, - * or `false` otherwise. - * - * ```js - * import { Buffer } from 'buffer'; - * - * console.log(Buffer.isEncoding('utf8')); - * // Prints: true - * - * console.log(Buffer.isEncoding('hex')); - * // Prints: true - * - * console.log(Buffer.isEncoding('utf/8')); - * // Prints: false - * - * console.log(Buffer.isEncoding('')); - * // Prints: false - * ``` - * @since v0.9.1 - * @param encoding A character encoding name to check. - */ - isEncoding(encoding: string): encoding is BufferEncoding; - /** - * Returns the byte length of a string when encoded using `encoding`. - * This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account - * for the encoding that is used to convert the string into bytes. - * - * For `'base64'`, `'base64url'`, and `'hex'`, this function assumes valid input. - * For strings that contain non-base64/hex-encoded data (e.g. whitespace), the - * return value might be greater than the length of a `Buffer` created from the - * string. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const str = '\u00bd + \u00bc = \u00be'; - * - * console.log(`${str}: ${str.length} characters, ` + - * `${Buffer.byteLength(str, 'utf8')} bytes`); - * // Prints: ½ + ¼ = ¾: 9 characters, 12 bytes - * ``` - * - * When `string` is a - * `Buffer`/[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)/[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/- - * Reference/Global_Objects/TypedArray)/[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)/[`SharedArrayBuffer`](https://develop- - * er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer), the byte length as reported by `.byteLength`is returned. - * @since v0.1.90 - * @param string A value to calculate the length of. - * @param [encoding='utf8'] If `string` is a string, this is its encoding. - * @return The number of bytes contained within `string`. - */ - byteLength(string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer, encoding?: BufferEncoding): number; - /** - * Returns a new `Buffer` which is the result of concatenating all the `Buffer`instances in the `list` together. - * - * If the list has no items, or if the `totalLength` is 0, then a new zero-length`Buffer` is returned. - * - * If `totalLength` is not provided, it is calculated from the `Buffer` instances - * in `list` by adding their lengths. - * - * If `totalLength` is provided, it is coerced to an unsigned integer. If the - * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is - * truncated to `totalLength`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * // Create a single `Buffer` from a list of three `Buffer` instances. - * - * const buf1 = Buffer.alloc(10); - * const buf2 = Buffer.alloc(14); - * const buf3 = Buffer.alloc(18); - * const totalLength = buf1.length + buf2.length + buf3.length; - * - * console.log(totalLength); - * // Prints: 42 - * - * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength); - * - * console.log(bufA); - * // Prints: - * console.log(bufA.length); - * // Prints: 42 - * ``` - * - * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does. - * @since v0.7.11 - * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. - * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. - */ - concat(list: ReadonlyArray, totalLength?: number): Buffer; - /** - * Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of`Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf1 = Buffer.from('1234'); - * const buf2 = Buffer.from('0123'); - * const arr = [buf1, buf2]; - * - * console.log(arr.sort(Buffer.compare)); - * // Prints: [ , ] - * // (This result is equal to: [buf2, buf1].) - * ``` - * @since v0.11.13 - * @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details. - */ - compare(buf1: Uint8Array, buf2: Uint8Array): number; - /** - * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.alloc(5); - * - * console.log(buf); - * // Prints: - * ``` - * - * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown. - * - * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.alloc(5, 'a'); - * - * console.log(buf); - * // Prints: - * ``` - * - * If both `fill` and `encoding` are specified, the allocated `Buffer` will be - * initialized by calling `buf.fill(fill, encoding)`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); - * - * console.log(buf); - * // Prints: - * ``` - * - * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance - * contents will never contain sensitive data from previous allocations, including - * data that might not have been allocated for `Buffer`s. - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - * @param [fill=0] A value to pre-fill the new `Buffer` with. - * @param [encoding='utf8'] If `fill` is a string, this is its encoding. - */ - alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(10); - * - * console.log(buf); - * // Prints (contents may vary): - * - * buf.fill(0); - * - * console.log(buf); - * // Prints: - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * - * The `Buffer` module pre-allocates an internal `Buffer` instance of - * size `Buffer.poolSize` that is used as a pool for the fast allocation of new`Buffer` instances created using `Buffer.allocUnsafe()`,`Buffer.from(array)`, `Buffer.concat()`, and the - * deprecated`new Buffer(size)` constructor only when `size` is less than or equal - * to `Buffer.poolSize >> 1` (floor of `Buffer.poolSize` divided by two). - * - * Use of this pre-allocated internal memory pool is a key difference between - * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. - * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less - * than or equal to half `Buffer.poolSize`. The - * difference is subtle but can be important when an application requires the - * additional performance that `Buffer.allocUnsafe()` provides. - * @since v5.10.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafe(size: number): Buffer; - /** - * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown. A zero-length `Buffer` is created - * if `size` is 0. - * - * The underlying memory for `Buffer` instances created in this way is _not_ - * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `buf.fill(0)` to initialize - * such `Buffer` instances with zeroes. - * - * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances, - * allocations under 4 KB are sliced from a single pre-allocated `Buffer`. This - * allows applications to avoid the garbage collection overhead of creating many - * individually allocated `Buffer` instances. This approach improves both - * performance and memory usage by eliminating the need to track and clean up as - * many individual `ArrayBuffer` objects. - * - * However, in the case where a developer may need to retain a small chunk of - * memory from a pool for an indeterminate amount of time, it may be appropriate - * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and - * then copying out the relevant bits. - * - * ```js - * import { Buffer } from 'buffer'; - * - * // Need to keep around a few small chunks of memory. - * const store = []; - * - * socket.on('readable', () => { - * let data; - * while (null !== (data = readable.read())) { - * // Allocate for retained data. - * const sb = Buffer.allocUnsafeSlow(10); - * - * // Copy the data into the new allocation. - * data.copy(sb, 0, 0, 10); - * - * store.push(sb); - * } - * }); - * ``` - * - * A `TypeError` will be thrown if `size` is not a number. - * @since v5.12.0 - * @param size The desired length of the new `Buffer`. - */ - allocUnsafeSlow(size: number): Buffer; - /** - * This is the size (in bytes) of pre-allocated internal `Buffer` instances used - * for pooling. This value may be modified. - * @since v0.11.3 - */ - poolSize: number; - } - interface Buffer extends Uint8Array { - /** - * Writes `string` to `buf` at `offset` according to the character encoding in`encoding`. The `length` parameter is the number of bytes to write. If `buf` did - * not contain enough space to fit the entire string, only part of `string` will be - * written. However, partially encoded characters will not be written. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.alloc(256); - * - * const len = buf.write('\u00bd + \u00bc = \u00be', 0); - * - * console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`); - * // Prints: 12 bytes: ½ + ¼ = ¾ - * - * const buffer = Buffer.alloc(10); - * - * const length = buffer.write('abcd', 8); - * - * console.log(`${length} bytes: ${buffer.toString('utf8', 8, 10)}`); - * // Prints: 2 bytes : ab - * ``` - * @since v0.1.90 - * @param string String to write to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write `string`. - * @param [length=buf.length - offset] Maximum number of bytes to write (written bytes will not exceed `buf.length - offset`). - * @param [encoding='utf8'] The character encoding of `string`. - * @return Number of bytes written. - */ - write(string: string, encoding?: BufferEncoding): number; - write(string: string, offset: number, encoding?: BufferEncoding): number; - write(string: string, offset: number, length: number, encoding?: BufferEncoding): number; - /** - * Decodes `buf` to a string according to the specified character encoding in`encoding`. `start` and `end` may be passed to decode only a subset of `buf`. - * - * If `encoding` is `'utf8'` and a byte sequence in the input is not valid UTF-8, - * then each invalid byte is replaced with the replacement character `U+FFFD`. - * - * The maximum length of a string instance (in UTF-16 code units) is available - * as {@link constants.MAX_STRING_LENGTH}. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf1 = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * console.log(buf1.toString('utf8')); - * // Prints: abcdefghijklmnopqrstuvwxyz - * console.log(buf1.toString('utf8', 0, 5)); - * // Prints: abcde - * - * const buf2 = Buffer.from('tést'); - * - * console.log(buf2.toString('hex')); - * // Prints: 74c3a97374 - * console.log(buf2.toString('utf8', 0, 3)); - * // Prints: té - * console.log(buf2.toString(undefined, 0, 3)); - * // Prints: té - * ``` - * @since v0.1.90 - * @param [encoding='utf8'] The character encoding to use. - * @param [start=0] The byte offset to start decoding at. - * @param [end=buf.length] The byte offset to stop decoding at (not inclusive). - */ - toString(encoding?: BufferEncoding, start?: number, end?: number): string; - /** - * Returns a JSON representation of `buf`. [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) implicitly calls - * this function when stringifying a `Buffer` instance. - * - * `Buffer.from()` accepts objects in the format returned from this method. - * In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]); - * const json = JSON.stringify(buf); - * - * console.log(json); - * // Prints: {"type":"Buffer","data":[1,2,3,4,5]} - * - * const copy = JSON.parse(json, (key, value) => { - * return value && value.type === 'Buffer' ? - * Buffer.from(value) : - * value; - * }); - * - * console.log(copy); - * // Prints: - * ``` - * @since v0.9.2 - */ - toJSON(): { - type: 'Buffer'; - data: number[]; - }; - /** - * Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf1 = Buffer.from('ABC'); - * const buf2 = Buffer.from('414243', 'hex'); - * const buf3 = Buffer.from('ABCD'); - * - * console.log(buf1.equals(buf2)); - * // Prints: true - * console.log(buf1.equals(buf3)); - * // Prints: false - * ``` - * @since v0.11.13 - * @param otherBuffer A `Buffer` or {@link Uint8Array} with which to compare `buf`. - */ - equals(otherBuffer: Uint8Array): boolean; - /** - * Compares `buf` with `target` and returns a number indicating whether `buf`comes before, after, or is the same as `target` in sort order. - * Comparison is based on the actual sequence of bytes in each `Buffer`. - * - * * `0` is returned if `target` is the same as `buf` - * * `1` is returned if `target` should come _before_`buf` when sorted. - * * `-1` is returned if `target` should come _after_`buf` when sorted. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf1 = Buffer.from('ABC'); - * const buf2 = Buffer.from('BCD'); - * const buf3 = Buffer.from('ABCD'); - * - * console.log(buf1.compare(buf1)); - * // Prints: 0 - * console.log(buf1.compare(buf2)); - * // Prints: -1 - * console.log(buf1.compare(buf3)); - * // Prints: -1 - * console.log(buf2.compare(buf1)); - * // Prints: 1 - * console.log(buf2.compare(buf3)); - * // Prints: 1 - * console.log([buf1, buf2, buf3].sort(Buffer.compare)); - * // Prints: [ , , ] - * // (This result is equal to: [buf1, buf3, buf2].) - * ``` - * - * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd`arguments can be used to limit the comparison to specific ranges within `target`and `buf` respectively. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]); - * const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]); - * - * console.log(buf1.compare(buf2, 5, 9, 0, 4)); - * // Prints: 0 - * console.log(buf1.compare(buf2, 0, 6, 4)); - * // Prints: -1 - * console.log(buf1.compare(buf2, 5, 6, 5)); - * // Prints: 1 - * ``` - * - * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`,`targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`. - * @since v0.11.13 - * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`. - * @param [targetStart=0] The offset within `target` at which to begin comparison. - * @param [targetEnd=target.length] The offset within `target` at which to end comparison (not inclusive). - * @param [sourceStart=0] The offset within `buf` at which to begin comparison. - * @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive). - */ - compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number; - /** - * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`. - * - * [`TypedArray.prototype.set()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) performs the same operation, and is available - * for all TypedArrays, including Node.js `Buffer`s, although it takes - * different function arguments. - * - * ```js - * import { Buffer } from 'buffer'; - * - * // Create two `Buffer` instances. - * const buf1 = Buffer.allocUnsafe(26); - * const buf2 = Buffer.allocUnsafe(26).fill('!'); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * // Copy `buf1` bytes 16 through 19 into `buf2` starting at byte 8 of `buf2`. - * buf1.copy(buf2, 8, 16, 20); - * // This is equivalent to: - * // buf2.set(buf1.subarray(16, 20), 8); - * - * console.log(buf2.toString('ascii', 0, 25)); - * // Prints: !!!!!!!!qrst!!!!!!!!!!!!! - * ``` - * - * ```js - * import { Buffer } from 'buffer'; - * - * // Create a `Buffer` and copy data from one region to an overlapping region - * // within the same `Buffer`. - * - * const buf = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf[i] = i + 97; - * } - * - * buf.copy(buf, 0, 4, 10); - * - * console.log(buf.toString()); - * // Prints: efghijghijklmnopqrstuvwxyz - * ``` - * @since v0.1.90 - * @param target A `Buffer` or {@link Uint8Array} to copy into. - * @param [targetStart=0] The offset within `target` at which to begin writing. - * @param [sourceStart=0] The offset within `buf` from which to begin copying. - * @param [sourceEnd=buf.length] The offset within `buf` at which to stop copying (not inclusive). - * @return The number of bytes copied. - */ - copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * This is the same behavior as `buf.subarray()`. - * - * This method is not compatible with the `Uint8Array.prototype.slice()`, - * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from('buffer'); - * - * const copiedBuf = Uint8Array.prototype.slice.call(buf); - * copiedBuf[0]++; - * console.log(copiedBuf.toString()); - * // Prints: cuffer - * - * console.log(buf.toString()); - * // Prints: buffer - * ``` - * @since v0.3.0 - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - slice(start?: number, end?: number): Buffer; - /** - * Returns a new `Buffer` that references the same memory as the original, but - * offset and cropped by the `start` and `end` indices. - * - * Specifying `end` greater than `buf.length` will return the same result as - * that of `end` equal to `buf.length`. - * - * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray). - * - * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap. - * - * ```js - * import { Buffer } from 'buffer'; - * - * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte - * // from the original `Buffer`. - * - * const buf1 = Buffer.allocUnsafe(26); - * - * for (let i = 0; i < 26; i++) { - * // 97 is the decimal ASCII value for 'a'. - * buf1[i] = i + 97; - * } - * - * const buf2 = buf1.subarray(0, 3); - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: abc - * - * buf1[0] = 33; - * - * console.log(buf2.toString('ascii', 0, buf2.length)); - * // Prints: !bc - * ``` - * - * Specifying negative indexes causes the slice to be generated relative to the - * end of `buf` rather than the beginning. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from('buffer'); - * - * console.log(buf.subarray(-6, -1).toString()); - * // Prints: buffe - * // (Equivalent to buf.subarray(0, 5).) - * - * console.log(buf.subarray(-6, -2).toString()); - * // Prints: buff - * // (Equivalent to buf.subarray(0, 4).) - * - * console.log(buf.subarray(-5, -2).toString()); - * // Prints: uff - * // (Equivalent to buf.subarray(1, 4).) - * ``` - * @since v3.0.0 - * @param [start=0] Where the new `Buffer` will start. - * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). - */ - subarray(start?: number, end?: number): Buffer; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigInt64BE(0x0102030405060708n, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigInt64BE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigInt64LE(0x0102030405060708n, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigInt64LE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. - * - * This function is also available under the `writeBigUint64BE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigUInt64BE(0xdecafafecacefaden, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigUInt64BE(value: bigint, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeBigUInt64LE(0xdecafafecacefaden, 0); - * - * console.log(buf); - * // Prints: - * ``` - * - * This function is also available under the `writeBigUint64LE` alias. - * @since v12.0.0, v10.20.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeBigUInt64LE(value: bigint, offset?: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than an unsigned integer. - * - * This function is also available under the `writeUintLE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeUIntLE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeUIntLE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than an unsigned integer. - * - * This function is also available under the `writeUintBE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeUIntBE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeUIntBE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined - * when `value` is anything other than a signed integer. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeIntLE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeIntLE(value: number, offset: number, byteLength: number): number; - /** - * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined when`value` is anything other than a - * signed integer. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(6); - * - * buf.writeIntBE(0x1234567890ab, 0, 6); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. - * @return `offset` plus the number of bytes written. - */ - writeIntBE(value: number, offset: number, byteLength: number): number; - /** - * Reads an unsigned, big-endian 64-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readBigUint64BE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); - * - * console.log(buf.readBigUInt64BE(0)); - * // Prints: 4294967295n - * ``` - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigUInt64BE(offset?: number): bigint; - /** - * Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readBigUint64LE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); - * - * console.log(buf.readBigUInt64LE(0)); - * // Prints: 18446744069414584320n - * ``` - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigUInt64LE(offset?: number): bigint; - /** - * Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed - * values. - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigInt64BE(offset?: number): bigint; - /** - * Reads a signed, little-endian 64-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed - * values. - * @since v12.0.0, v10.20.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. - */ - readBigInt64LE(offset?: number): bigint; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned, little-endian integer supporting - * up to 48 bits of accuracy. - * - * This function is also available under the `readUintLE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readUIntLE(0, 6).toString(16)); - * // Prints: ab9078563412 - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readUIntLE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned big-endian integer supporting - * up to 48 bits of accuracy. - * - * This function is also available under the `readUintBE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readUIntBE(0, 6).toString(16)); - * // Prints: 1234567890ab - * console.log(buf.readUIntBE(1, 6).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readUIntBE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a little-endian, two's complement signed value - * supporting up to 48 bits of accuracy. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readIntLE(0, 6).toString(16)); - * // Prints: -546f87a9cbee - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readIntLE(offset: number, byteLength: number): number; - /** - * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a big-endian, two's complement signed value - * supporting up to 48 bits of accuracy. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); - * - * console.log(buf.readIntBE(0, 6).toString(16)); - * // Prints: 1234567890ab - * console.log(buf.readIntBE(1, 6).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * console.log(buf.readIntBE(1, 0).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. - * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. - */ - readIntBE(offset: number, byteLength: number): number; - /** - * Reads an unsigned 8-bit integer from `buf` at the specified `offset`. - * - * This function is also available under the `readUint8` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([1, -2]); - * - * console.log(buf.readUInt8(0)); - * // Prints: 1 - * console.log(buf.readUInt8(1)); - * // Prints: 254 - * console.log(buf.readUInt8(2)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. - */ - readUInt8(offset?: number): number; - /** - * Reads an unsigned, little-endian 16-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint16LE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56]); - * - * console.log(buf.readUInt16LE(0).toString(16)); - * // Prints: 3412 - * console.log(buf.readUInt16LE(1).toString(16)); - * // Prints: 5634 - * console.log(buf.readUInt16LE(2).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readUInt16LE(offset?: number): number; - /** - * Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint16BE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56]); - * - * console.log(buf.readUInt16BE(0).toString(16)); - * // Prints: 1234 - * console.log(buf.readUInt16BE(1).toString(16)); - * // Prints: 3456 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readUInt16BE(offset?: number): number; - /** - * Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint32LE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); - * - * console.log(buf.readUInt32LE(0).toString(16)); - * // Prints: 78563412 - * console.log(buf.readUInt32LE(1).toString(16)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readUInt32LE(offset?: number): number; - /** - * Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`. - * - * This function is also available under the `readUint32BE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); - * - * console.log(buf.readUInt32BE(0).toString(16)); - * // Prints: 12345678 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readUInt32BE(offset?: number): number; - /** - * Reads a signed 8-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([-1, 5]); - * - * console.log(buf.readInt8(0)); - * // Prints: -1 - * console.log(buf.readInt8(1)); - * // Prints: 5 - * console.log(buf.readInt8(2)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.0 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. - */ - readInt8(offset?: number): number; - /** - * Reads a signed, little-endian 16-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0, 5]); - * - * console.log(buf.readInt16LE(0)); - * // Prints: 1280 - * console.log(buf.readInt16LE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readInt16LE(offset?: number): number; - /** - * Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0, 5]); - * - * console.log(buf.readInt16BE(0)); - * // Prints: 5 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. - */ - readInt16BE(offset?: number): number; - /** - * Reads a signed, little-endian 32-bit integer from `buf` at the specified`offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0, 0, 0, 5]); - * - * console.log(buf.readInt32LE(0)); - * // Prints: 83886080 - * console.log(buf.readInt32LE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readInt32LE(offset?: number): number; - /** - * Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`. - * - * Integers read from a `Buffer` are interpreted as two's complement signed values. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([0, 0, 0, 5]); - * - * console.log(buf.readInt32BE(0)); - * // Prints: 5 - * ``` - * @since v0.5.5 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readInt32BE(offset?: number): number; - /** - * Reads a 32-bit, little-endian float from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4]); - * - * console.log(buf.readFloatLE(0)); - * // Prints: 1.539989614439558e-36 - * console.log(buf.readFloatLE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readFloatLE(offset?: number): number; - /** - * Reads a 32-bit, big-endian float from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4]); - * - * console.log(buf.readFloatBE(0)); - * // Prints: 2.387939260590663e-38 - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. - */ - readFloatBE(offset?: number): number; - /** - * Reads a 64-bit, little-endian double from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); - * - * console.log(buf.readDoubleLE(0)); - * // Prints: 5.447603722011605e-270 - * console.log(buf.readDoubleLE(1)); - * // Throws ERR_OUT_OF_RANGE. - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. - */ - readDoubleLE(offset?: number): number; - /** - * Reads a 64-bit, big-endian double from `buf` at the specified `offset`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); - * - * console.log(buf.readDoubleBE(0)); - * // Prints: 8.20788039913184e-304 - * ``` - * @since v0.11.15 - * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. - */ - readDoubleBE(offset?: number): number; - reverse(): this; - /** - * Interprets `buf` as an array of unsigned 16-bit integers and swaps the - * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap16(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap16(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * - * One convenient use of `buf.swap16()` is to perform a fast in-place conversion - * between UTF-16 little-endian and UTF-16 big-endian: - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from('This is little-endian UTF-16', 'utf16le'); - * buf.swap16(); // Convert to big-endian UTF-16 text. - * ``` - * @since v5.10.0 - * @return A reference to `buf`. - */ - swap16(): Buffer; - /** - * Interprets `buf` as an array of unsigned 32-bit integers and swaps the - * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap32(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap32(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * @since v5.10.0 - * @return A reference to `buf`. - */ - swap32(): Buffer; - /** - * Interprets `buf` as an array of 64-bit numbers and swaps byte order _in-place_. - * Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); - * - * console.log(buf1); - * // Prints: - * - * buf1.swap64(); - * - * console.log(buf1); - * // Prints: - * - * const buf2 = Buffer.from([0x1, 0x2, 0x3]); - * - * buf2.swap64(); - * // Throws ERR_INVALID_BUFFER_SIZE. - * ``` - * @since v6.3.0 - * @return A reference to `buf`. - */ - swap64(): Buffer; - /** - * Writes `value` to `buf` at the specified `offset`. `value` must be a - * valid unsigned 8-bit integer. Behavior is undefined when `value` is anything - * other than an unsigned 8-bit integer. - * - * This function is also available under the `writeUint8` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt8(0x3, 0); - * buf.writeUInt8(0x4, 1); - * buf.writeUInt8(0x23, 2); - * buf.writeUInt8(0x42, 3); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. - * @return `offset` plus the number of bytes written. - */ - writeUInt8(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is - * anything other than an unsigned 16-bit integer. - * - * This function is also available under the `writeUint16LE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt16LE(0xdead, 0); - * buf.writeUInt16LE(0xbeef, 2); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeUInt16LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an - * unsigned 16-bit integer. - * - * This function is also available under the `writeUint16BE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt16BE(0xdead, 0); - * buf.writeUInt16BE(0xbeef, 2); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeUInt16BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is - * anything other than an unsigned 32-bit integer. - * - * This function is also available under the `writeUint32LE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt32LE(0xfeedface, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeUInt32LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an - * unsigned 32-bit integer. - * - * This function is also available under the `writeUint32BE` alias. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeUInt32BE(0xfeedface, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeUInt32BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset`. `value` must be a valid - * signed 8-bit integer. Behavior is undefined when `value` is anything other than - * a signed 8-bit integer. - * - * `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt8(2, 0); - * buf.writeInt8(-2, 1); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.0 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. - * @return `offset` plus the number of bytes written. - */ - writeInt8(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid signed 16-bit integer. Behavior is undefined when `value` is - * anything other than a signed 16-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt16LE(0x0304, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeInt16LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid signed 16-bit integer. Behavior is undefined when `value` is - * anything other than a signed 16-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(2); - * - * buf.writeInt16BE(0x0102, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. - * @return `offset` plus the number of bytes written. - */ - writeInt16BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid signed 32-bit integer. Behavior is undefined when `value` is - * anything other than a signed 32-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeInt32LE(0x05060708, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeInt32LE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid signed 32-bit integer. Behavior is undefined when `value` is - * anything other than a signed 32-bit integer. - * - * The `value` is interpreted and written as a two's complement signed integer. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeInt32BE(0x01020304, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.5.5 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeInt32BE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. Behavior is - * undefined when `value` is anything other than a JavaScript number. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeFloatLE(0xcafebabe, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeFloatLE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. Behavior is - * undefined when `value` is anything other than a JavaScript number. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(4); - * - * buf.writeFloatBE(0xcafebabe, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. - * @return `offset` plus the number of bytes written. - */ - writeFloatBE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a JavaScript number. Behavior is undefined when `value` is anything - * other than a JavaScript number. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeDoubleLE(123.456, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeDoubleLE(value: number, offset?: number): number; - /** - * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a JavaScript number. Behavior is undefined when `value` is anything - * other than a JavaScript number. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(8); - * - * buf.writeDoubleBE(123.456, 0); - * - * console.log(buf); - * // Prints: - * ``` - * @since v0.11.15 - * @param value Number to be written to `buf`. - * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. - * @return `offset` plus the number of bytes written. - */ - writeDoubleBE(value: number, offset?: number): number; - /** - * Fills `buf` with the specified `value`. If the `offset` and `end` are not given, - * the entire `buf` will be filled: - * - * ```js - * import { Buffer } from 'buffer'; - * - * // Fill a `Buffer` with the ASCII character 'h'. - * - * const b = Buffer.allocUnsafe(50).fill('h'); - * - * console.log(b.toString()); - * // Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh - * ``` - * - * `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or - * integer. If the resulting integer is greater than `255` (decimal), `buf` will be - * filled with `value & 255`. - * - * If the final write of a `fill()` operation falls on a multi-byte character, - * then only the bytes of that character that fit into `buf` are written: - * - * ```js - * import { Buffer } from 'buffer'; - * - * // Fill a `Buffer` with character that takes up two bytes in UTF-8. - * - * console.log(Buffer.allocUnsafe(5).fill('\u0222')); - * // Prints: - * ``` - * - * If `value` contains invalid characters, it is truncated; if no valid - * fill data remains, an exception is thrown: - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.allocUnsafe(5); - * - * console.log(buf.fill('a')); - * // Prints: - * console.log(buf.fill('aazz', 'hex')); - * // Prints: - * console.log(buf.fill('zz', 'hex')); - * // Throws an exception. - * ``` - * @since v0.5.0 - * @param value The value with which to fill `buf`. - * @param [offset=0] Number of bytes to skip before starting to fill `buf`. - * @param [end=buf.length] Where to stop filling `buf` (not inclusive). - * @param [encoding='utf8'] The encoding for `value` if `value` is a string. - * @return A reference to `buf`. - */ - fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this; - /** - * If `value` is: - * - * * a string, `value` is interpreted according to the character encoding in`encoding`. - * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety. - * To compare a partial `Buffer`, use `buf.slice()`. - * * a number, `value` will be interpreted as an unsigned 8-bit integer - * value between `0` and `255`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from('this is a buffer'); - * - * console.log(buf.indexOf('this')); - * // Prints: 0 - * console.log(buf.indexOf('is')); - * // Prints: 2 - * console.log(buf.indexOf(Buffer.from('a buffer'))); - * // Prints: 8 - * console.log(buf.indexOf(97)); - * // Prints: 8 (97 is the decimal ASCII value for 'a') - * console.log(buf.indexOf(Buffer.from('a buffer example'))); - * // Prints: -1 - * console.log(buf.indexOf(Buffer.from('a buffer example').slice(0, 8))); - * // Prints: 8 - * - * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); - * - * console.log(utf16Buffer.indexOf('\u03a3', 0, 'utf16le')); - * // Prints: 4 - * console.log(utf16Buffer.indexOf('\u03a3', -4, 'utf16le')); - * // Prints: 6 - * ``` - * - * If `value` is not a string, number, or `Buffer`, this method will throw a`TypeError`. If `value` is a number, it will be coerced to a valid byte value, - * an integer between 0 and 255. - * - * If `byteOffset` is not a number, it will be coerced to a number. If the result - * of coercion is `NaN` or `0`, then the entire buffer will be searched. This - * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf). - * - * ```js - * import { Buffer } from 'buffer'; - * - * const b = Buffer.from('abcdef'); - * - * // Passing a value that's a number, but not a valid byte. - * // Prints: 2, equivalent to searching for 99 or 'c'. - * console.log(b.indexOf(99.9)); - * console.log(b.indexOf(256 + 99)); - * - * // Passing a byteOffset that coerces to NaN or 0. - * // Prints: 1, searching the whole buffer. - * console.log(b.indexOf('b', undefined)); - * console.log(b.indexOf('b', {})); - * console.log(b.indexOf('b', null)); - * console.log(b.indexOf('b', [])); - * ``` - * - * If `value` is an empty string or empty `Buffer` and `byteOffset` is less - * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned. - * @since v1.5.0 - * @param value What to search for. - * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. - * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. - */ - indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; - /** - * Identical to `buf.indexOf()`, except the last occurrence of `value` is found - * rather than the first occurrence. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from('this buffer is a buffer'); - * - * console.log(buf.lastIndexOf('this')); - * // Prints: 0 - * console.log(buf.lastIndexOf('buffer')); - * // Prints: 17 - * console.log(buf.lastIndexOf(Buffer.from('buffer'))); - * // Prints: 17 - * console.log(buf.lastIndexOf(97)); - * // Prints: 15 (97 is the decimal ASCII value for 'a') - * console.log(buf.lastIndexOf(Buffer.from('yolo'))); - * // Prints: -1 - * console.log(buf.lastIndexOf('buffer', 5)); - * // Prints: 5 - * console.log(buf.lastIndexOf('buffer', 4)); - * // Prints: -1 - * - * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); - * - * console.log(utf16Buffer.lastIndexOf('\u03a3', undefined, 'utf16le')); - * // Prints: 6 - * console.log(utf16Buffer.lastIndexOf('\u03a3', -5, 'utf16le')); - * // Prints: 4 - * ``` - * - * If `value` is not a string, number, or `Buffer`, this method will throw a`TypeError`. If `value` is a number, it will be coerced to a valid byte value, - * an integer between 0 and 255. - * - * If `byteOffset` is not a number, it will be coerced to a number. Any arguments - * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer. - * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf). - * - * ```js - * import { Buffer } from 'buffer'; - * - * const b = Buffer.from('abcdef'); - * - * // Passing a value that's a number, but not a valid byte. - * // Prints: 2, equivalent to searching for 99 or 'c'. - * console.log(b.lastIndexOf(99.9)); - * console.log(b.lastIndexOf(256 + 99)); - * - * // Passing a byteOffset that coerces to NaN. - * // Prints: 1, searching the whole buffer. - * console.log(b.lastIndexOf('b', undefined)); - * console.log(b.lastIndexOf('b', {})); - * - * // Passing a byteOffset that coerces to 0. - * // Prints: -1, equivalent to passing 0. - * console.log(b.lastIndexOf('b', null)); - * console.log(b.lastIndexOf('b', [])); - * ``` - * - * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned. - * @since v6.0.0 - * @param value What to search for. - * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. - * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. - */ - lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; - /** - * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `[index, byte]` pairs from the contents - * of `buf`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * // Log the entire contents of a `Buffer`. - * - * const buf = Buffer.from('buffer'); - * - * for (const pair of buf.entries()) { - * console.log(pair); - * } - * // Prints: - * // [0, 98] - * // [1, 117] - * // [2, 102] - * // [3, 102] - * // [4, 101] - * // [5, 114] - * ``` - * @since v1.1.0 - */ - entries(): IterableIterator<[number, number]>; - /** - * Equivalent to `buf.indexOf() !== -1`. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from('this is a buffer'); - * - * console.log(buf.includes('this')); - * // Prints: true - * console.log(buf.includes('is')); - * // Prints: true - * console.log(buf.includes(Buffer.from('a buffer'))); - * // Prints: true - * console.log(buf.includes(97)); - * // Prints: true (97 is the decimal ASCII value for 'a') - * console.log(buf.includes(Buffer.from('a buffer example'))); - * // Prints: false - * console.log(buf.includes(Buffer.from('a buffer example').slice(0, 8))); - * // Prints: true - * console.log(buf.includes('this', 4)); - * // Prints: false - * ``` - * @since v5.3.0 - * @param value What to search for. - * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. - * @param [encoding='utf8'] If `value` is a string, this is its encoding. - * @return `true` if `value` was found in `buf`, `false` otherwise. - */ - includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean; - /** - * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `buf` keys (indices). - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from('buffer'); - * - * for (const key of buf.keys()) { - * console.log(key); - * } - * // Prints: - * // 0 - * // 1 - * // 2 - * // 3 - * // 4 - * // 5 - * ``` - * @since v1.1.0 - */ - keys(): IterableIterator; - /** - * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) for `buf` values (bytes). This function is - * called automatically when a `Buffer` is used in a `for..of` statement. - * - * ```js - * import { Buffer } from 'buffer'; - * - * const buf = Buffer.from('buffer'); - * - * for (const value of buf.values()) { - * console.log(value); - * } - * // Prints: - * // 98 - * // 117 - * // 102 - * // 102 - * // 101 - * // 114 - * - * for (const value of buf) { - * console.log(value); - * } - * // Prints: - * // 98 - * // 117 - * // 102 - * // 102 - * // 101 - * // 114 - * ``` - * @since v1.1.0 - */ - values(): IterableIterator; - } - var Buffer: BufferConstructor; - /** - * Decodes a string of Base64-encoded data into bytes, and encodes those bytes - * into a string using Latin-1 (ISO-8859-1). - * - * The `data` may be any JavaScript-value that can be coerced into a string. - * - * **This function is only provided for compatibility with legacy web platform APIs** - * **and should never be used in new code, because they use strings to represent** - * **binary data and predate the introduction of typed arrays in JavaScript.** - * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.** - * @since v15.13.0 - * @deprecated Use `Buffer.from(data, 'base64')` instead. - * @param data The Base64-encoded input string. - */ - function atob(data: string): string; - /** - * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes - * into a string using Base64. - * - * The `data` may be any JavaScript-value that can be coerced into a string. - * - * **This function is only provided for compatibility with legacy web platform APIs** - * **and should never be used in new code, because they use strings to represent** - * **binary data and predate the introduction of typed arrays in JavaScript.** - * **For code running using Node.js APIs, converting between base64-encoded strings** - * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.** - * @since v15.13.0 - * @deprecated Use `buf.toString('base64')` instead. - * @param data An ASCII (Latin1) string. - */ - function btoa(data: string): string; - } -} -declare module 'node:buffer' { - export * from 'buffer'; -} diff --git a/WechatBot/node_modules/@types/node/child_process.d.ts b/WechatBot/node_modules/@types/node/child_process.d.ts deleted file mode 100644 index 66540c395..000000000 --- a/WechatBot/node_modules/@types/node/child_process.d.ts +++ /dev/null @@ -1,1355 +0,0 @@ -/** - * The `child_process` module provides the ability to spawn subprocesses in - * a manner that is similar, but not identical, to [`popen(3)`](http://man7.org/linux/man-pages/man3/popen.3.html). This capability - * is primarily provided by the {@link spawn} function: - * - * ```js - * const { spawn } = require('child_process'); - * const ls = spawn('ls', ['-lh', '/usr']); - * - * ls.stdout.on('data', (data) => { - * console.log(`stdout: ${data}`); - * }); - * - * ls.stderr.on('data', (data) => { - * console.error(`stderr: ${data}`); - * }); - * - * ls.on('close', (code) => { - * console.log(`child process exited with code ${code}`); - * }); - * ``` - * - * By default, pipes for `stdin`, `stdout`, and `stderr` are established between - * the parent Node.js process and the spawned subprocess. These pipes have - * limited (and platform-specific) capacity. If the subprocess writes to - * stdout in excess of that limit without the output being captured, the - * subprocess blocks waiting for the pipe buffer to accept more data. This is - * identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }`option if the output will not be consumed. - * - * The command lookup is performed using the `options.env.PATH` environment - * variable if it is in the `options` object. Otherwise, `process.env.PATH` is - * used. - * - * On Windows, environment variables are case-insensitive. Node.js - * lexicographically sorts the `env` keys and uses the first one that - * case-insensitively matches. Only first (in lexicographic order) entry will be - * passed to the subprocess. This might lead to issues on Windows when passing - * objects to the `env` option that have multiple variants of the same key, such as`PATH` and `Path`. - * - * The {@link spawn} method spawns the child process asynchronously, - * without blocking the Node.js event loop. The {@link spawnSync} function provides equivalent functionality in a synchronous manner that blocks - * the event loop until the spawned process either exits or is terminated. - * - * For convenience, the `child_process` module provides a handful of synchronous - * and asynchronous alternatives to {@link spawn} and {@link spawnSync}. Each of these alternatives are implemented on - * top of {@link spawn} or {@link spawnSync}. - * - * * {@link exec}: spawns a shell and runs a command within that - * shell, passing the `stdout` and `stderr` to a callback function when - * complete. - * * {@link execFile}: similar to {@link exec} except - * that it spawns the command directly without first spawning a shell by - * default. - * * {@link fork}: spawns a new Node.js process and invokes a - * specified module with an IPC communication channel established that allows - * sending messages between parent and child. - * * {@link execSync}: a synchronous version of {@link exec} that will block the Node.js event loop. - * * {@link execFileSync}: a synchronous version of {@link execFile} that will block the Node.js event loop. - * - * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however, - * the synchronous methods can have significant impact on performance due to - * stalling the event loop while spawned processes complete. - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/child_process.js) - */ -declare module 'child_process' { - import { ObjectEncodingOptions } from 'node:fs'; - import { EventEmitter, Abortable } from 'node:events'; - import * as net from 'node:net'; - import { Writable, Readable, Stream, Pipe } from 'node:stream'; - import { URL } from 'node:url'; - type Serializable = string | object | number | boolean | bigint; - type SendHandle = net.Socket | net.Server; - class ChildProcess extends EventEmitter { - /** - * A `Writable Stream` that represents the child process's `stdin`. - * - * If a child process waits to read all of its input, the child will not continue - * until this stream has been closed via `end()`. - * - * If the child was spawned with `stdio[0]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will - * refer to the same value. - * - * The `subprocess.stdin` property can be `undefined` if the child process could - * not be successfully spawned. - * @since v0.1.90 - */ - stdin: Writable | null; - /** - * A `Readable Stream` that represents the child process's `stdout`. - * - * If the child was spawned with `stdio[1]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stdout` is an alias for `subprocess.stdio[1]`. Both properties will - * refer to the same value. - * - * ```js - * const { spawn } = require('child_process'); - * - * const subprocess = spawn('ls'); - * - * subprocess.stdout.on('data', (data) => { - * console.log(`Received chunk ${data}`); - * }); - * ``` - * - * The `subprocess.stdout` property can be `null` if the child process could - * not be successfully spawned. - * @since v0.1.90 - */ - stdout: Readable | null; - /** - * A `Readable Stream` that represents the child process's `stderr`. - * - * If the child was spawned with `stdio[2]` set to anything other than `'pipe'`, - * then this will be `null`. - * - * `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will - * refer to the same value. - * - * The `subprocess.stderr` property can be `null` if the child process could - * not be successfully spawned. - * @since v0.1.90 - */ - stderr: Readable | null; - /** - * The `subprocess.channel` property is a reference to the child's IPC channel. If - * no IPC channel currently exists, this property is `undefined`. - * @since v7.1.0 - */ - readonly channel?: Pipe | null | undefined; - /** - * A sparse array of pipes to the child process, corresponding with positions in - * the `stdio` option passed to {@link spawn} that have been set - * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and`subprocess.stdio[2]` are also available as `subprocess.stdin`,`subprocess.stdout`, and `subprocess.stderr`, - * respectively. - * - * In the following example, only the child's fd `1` (stdout) is configured as a - * pipe, so only the parent's `subprocess.stdio[1]` is a stream, all other values - * in the array are `null`. - * - * ```js - * const assert = require('assert'); - * const fs = require('fs'); - * const child_process = require('child_process'); - * - * const subprocess = child_process.spawn('ls', { - * stdio: [ - * 0, // Use parent's stdin for child. - * 'pipe', // Pipe child's stdout to parent. - * fs.openSync('err.out', 'w'), // Direct child's stderr to a file. - * ] - * }); - * - * assert.strictEqual(subprocess.stdio[0], null); - * assert.strictEqual(subprocess.stdio[0], subprocess.stdin); - * - * assert(subprocess.stdout); - * assert.strictEqual(subprocess.stdio[1], subprocess.stdout); - * - * assert.strictEqual(subprocess.stdio[2], null); - * assert.strictEqual(subprocess.stdio[2], subprocess.stderr); - * ``` - * - * The `subprocess.stdio` property can be `undefined` if the child process could - * not be successfully spawned. - * @since v0.7.10 - */ - readonly stdio: [ - Writable | null, - // stdin - Readable | null, - // stdout - Readable | null, - // stderr - Readable | Writable | null | undefined, - // extra - Readable | Writable | null | undefined // extra - ]; - /** - * The `subprocess.killed` property indicates whether the child process - * successfully received a signal from `subprocess.kill()`. The `killed` property - * does not indicate that the child process has been terminated. - * @since v0.5.10 - */ - readonly killed: boolean; - /** - * Returns the process identifier (PID) of the child process. If the child process - * fails to spawn due to errors, then the value is `undefined` and `error` is - * emitted. - * - * ```js - * const { spawn } = require('child_process'); - * const grep = spawn('grep', ['ssh']); - * - * console.log(`Spawned child pid: ${grep.pid}`); - * grep.stdin.end(); - * ``` - * @since v0.1.90 - */ - readonly pid?: number | undefined; - /** - * The `subprocess.connected` property indicates whether it is still possible to - * send and receive messages from a child process. When `subprocess.connected` is`false`, it is no longer possible to send or receive messages. - * @since v0.7.2 - */ - readonly connected: boolean; - /** - * The `subprocess.exitCode` property indicates the exit code of the child process. - * If the child process is still running, the field will be `null`. - */ - readonly exitCode: number | null; - /** - * The `subprocess.signalCode` property indicates the signal received by - * the child process if any, else `null`. - */ - readonly signalCode: NodeJS.Signals | null; - /** - * The `subprocess.spawnargs` property represents the full list of command-line - * arguments the child process was launched with. - */ - readonly spawnargs: string[]; - /** - * The `subprocess.spawnfile` property indicates the executable file name of - * the child process that is launched. - * - * For {@link fork}, its value will be equal to `process.execPath`. - * For {@link spawn}, its value will be the name of - * the executable file. - * For {@link exec}, its value will be the name of the shell - * in which the child process is launched. - */ - readonly spawnfile: string; - /** - * The `subprocess.kill()` method sends a signal to the child process. If no - * argument is given, the process will be sent the `'SIGTERM'` signal. See[`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function - * returns `true` if[`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise. - * - * ```js - * const { spawn } = require('child_process'); - * const grep = spawn('grep', ['ssh']); - * - * grep.on('close', (code, signal) => { - * console.log( - * `child process terminated due to receipt of signal ${signal}`); - * }); - * - * // Send SIGHUP to process. - * grep.kill('SIGHUP'); - * ``` - * - * The `ChildProcess` object may emit an `'error'` event if the signal - * cannot be delivered. Sending a signal to a child process that has already exited - * is not an error but may have unforeseen consequences. Specifically, if the - * process identifier (PID) has been reassigned to another process, the signal will - * be delivered to that process instead which can have unexpected results. - * - * While the function is called `kill`, the signal delivered to the child process - * may not actually terminate the process. - * - * See [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for reference. - * - * On Windows, where POSIX signals do not exist, the `signal` argument will be - * ignored, and the process will be killed forcefully and abruptly (similar to`'SIGKILL'`). - * See `Signal Events` for more details. - * - * On Linux, child processes of child processes will not be terminated - * when attempting to kill their parent. This is likely to happen when running a - * new process in a shell or with the use of the `shell` option of `ChildProcess`: - * - * ```js - * 'use strict'; - * const { spawn } = require('child_process'); - * - * const subprocess = spawn( - * 'sh', - * [ - * '-c', - * `node -e "setInterval(() => { - * console.log(process.pid, 'is alive') - * }, 500);"`, - * ], { - * stdio: ['inherit', 'inherit', 'inherit'] - * } - * ); - * - * setTimeout(() => { - * subprocess.kill(); // Does not terminate the Node.js process in the shell. - * }, 2000); - * ``` - * @since v0.1.90 - */ - kill(signal?: NodeJS.Signals | number): boolean; - /** - * When an IPC channel has been established between the parent and child ( - * i.e. when using {@link fork}), the `subprocess.send()` method can - * be used to send messages to the child process. When the child process is a - * Node.js instance, these messages can be received via the `'message'` event. - * - * The message goes through serialization and parsing. The resulting - * message might not be the same as what is originally sent. - * - * For example, in the parent script: - * - * ```js - * const cp = require('child_process'); - * const n = cp.fork(`${__dirname}/sub.js`); - * - * n.on('message', (m) => { - * console.log('PARENT got message:', m); - * }); - * - * // Causes the child to print: CHILD got message: { hello: 'world' } - * n.send({ hello: 'world' }); - * ``` - * - * And then the child script, `'sub.js'` might look like this: - * - * ```js - * process.on('message', (m) => { - * console.log('CHILD got message:', m); - * }); - * - * // Causes the parent to print: PARENT got message: { foo: 'bar', baz: null } - * process.send({ foo: 'bar', baz: NaN }); - * ``` - * - * Child Node.js processes will have a `process.send()` method of their own - * that allows the child to send messages back to the parent. - * - * There is a special case when sending a `{cmd: 'NODE_foo'}` message. Messages - * containing a `NODE_` prefix in the `cmd` property are reserved for use within - * Node.js core and will not be emitted in the child's `'message'` event. Rather, such messages are emitted using the`'internalMessage'` event and are consumed internally by Node.js. - * Applications should avoid using such messages or listening for`'internalMessage'` events as it is subject to change without notice. - * - * The optional `sendHandle` argument that may be passed to `subprocess.send()` is - * for passing a TCP server or socket object to the child process. The child will - * receive the object as the second argument passed to the callback function - * registered on the `'message'` event. Any data that is received - * and buffered in the socket will not be sent to the child. - * - * The optional `callback` is a function that is invoked after the message is - * sent but before the child may have received it. The function is called with a - * single argument: `null` on success, or an `Error` object on failure. - * - * If no `callback` function is provided and the message cannot be sent, an`'error'` event will be emitted by the `ChildProcess` object. This can - * happen, for instance, when the child process has already exited. - * - * `subprocess.send()` will return `false` if the channel has closed or when the - * backlog of unsent messages exceeds a threshold that makes it unwise to send - * more. Otherwise, the method returns `true`. The `callback` function can be - * used to implement flow control. - * - * #### Example: sending a server object - * - * The `sendHandle` argument can be used, for instance, to pass the handle of - * a TCP server object to the child process as illustrated in the example below: - * - * ```js - * const subprocess = require('child_process').fork('subprocess.js'); - * - * // Open up the server object and send the handle. - * const server = require('net').createServer(); - * server.on('connection', (socket) => { - * socket.end('handled by parent'); - * }); - * server.listen(1337, () => { - * subprocess.send('server', server); - * }); - * ``` - * - * The child would then receive the server object as: - * - * ```js - * process.on('message', (m, server) => { - * if (m === 'server') { - * server.on('connection', (socket) => { - * socket.end('handled by child'); - * }); - * } - * }); - * ``` - * - * Once the server is now shared between the parent and child, some connections - * can be handled by the parent and some by the child. - * - * While the example above uses a server created using the `net` module, `dgram`module servers use exactly the same workflow with the exceptions of listening on - * a `'message'` event instead of `'connection'` and using `server.bind()` instead - * of `server.listen()`. This is, however, currently only supported on Unix - * platforms. - * - * #### Example: sending a socket object - * - * Similarly, the `sendHandler` argument can be used to pass the handle of a - * socket to the child process. The example below spawns two children that each - * handle connections with "normal" or "special" priority: - * - * ```js - * const { fork } = require('child_process'); - * const normal = fork('subprocess.js', ['normal']); - * const special = fork('subprocess.js', ['special']); - * - * // Open up the server and send sockets to child. Use pauseOnConnect to prevent - * // the sockets from being read before they are sent to the child process. - * const server = require('net').createServer({ pauseOnConnect: true }); - * server.on('connection', (socket) => { - * - * // If this is special priority... - * if (socket.remoteAddress === '74.125.127.100') { - * special.send('socket', socket); - * return; - * } - * // This is normal priority. - * normal.send('socket', socket); - * }); - * server.listen(1337); - * ``` - * - * The `subprocess.js` would receive the socket handle as the second argument - * passed to the event callback function: - * - * ```js - * process.on('message', (m, socket) => { - * if (m === 'socket') { - * if (socket) { - * // Check that the client socket exists. - * // It is possible for the socket to be closed between the time it is - * // sent and the time it is received in the child process. - * socket.end(`Request handled with ${process.argv[2]} priority`); - * } - * } - * }); - * ``` - * - * Do not use `.maxConnections` on a socket that has been passed to a subprocess. - * The parent cannot track when the socket is destroyed. - * - * Any `'message'` handlers in the subprocess should verify that `socket` exists, - * as the connection may have been closed during the time it takes to send the - * connection to the child. - * @since v0.5.9 - * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties: - */ - send(message: Serializable, callback?: (error: Error | null) => void): boolean; - send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean; - send(message: Serializable, sendHandle?: SendHandle, options?: MessageOptions, callback?: (error: Error | null) => void): boolean; - /** - * Closes the IPC channel between parent and child, allowing the child to exit - * gracefully once there are no other connections keeping it alive. After calling - * this method the `subprocess.connected` and `process.connected` properties in - * both the parent and child (respectively) will be set to `false`, and it will be - * no longer possible to pass messages between the processes. - * - * The `'disconnect'` event will be emitted when there are no messages in the - * process of being received. This will most often be triggered immediately after - * calling `subprocess.disconnect()`. - * - * When the child process is a Node.js instance (e.g. spawned using {@link fork}), the `process.disconnect()` method can be invoked - * within the child process to close the IPC channel as well. - * @since v0.7.2 - */ - disconnect(): void; - /** - * By default, the parent will wait for the detached child to exit. To prevent the - * parent from waiting for a given `subprocess` to exit, use the`subprocess.unref()` method. Doing so will cause the parent's event loop to not - * include the child in its reference count, allowing the parent to exit - * independently of the child, unless there is an established IPC channel between - * the child and the parent. - * - * ```js - * const { spawn } = require('child_process'); - * - * const subprocess = spawn(process.argv[0], ['child_program.js'], { - * detached: true, - * stdio: 'ignore' - * }); - * - * subprocess.unref(); - * ``` - * @since v0.7.10 - */ - unref(): void; - /** - * Calling `subprocess.ref()` after making a call to `subprocess.unref()` will - * restore the removed reference count for the child process, forcing the parent - * to wait for the child to exit before exiting itself. - * - * ```js - * const { spawn } = require('child_process'); - * - * const subprocess = spawn(process.argv[0], ['child_program.js'], { - * detached: true, - * stdio: 'ignore' - * }); - * - * subprocess.unref(); - * subprocess.ref(); - * ``` - * @since v0.7.10 - */ - ref(): void; - /** - * events.EventEmitter - * 1. close - * 2. disconnect - * 3. error - * 4. exit - * 5. message - * 6. spawn - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - addListener(event: 'disconnect', listener: () => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - addListener(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this; - addListener(event: 'spawn', listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'close', code: number | null, signal: NodeJS.Signals | null): boolean; - emit(event: 'disconnect'): boolean; - emit(event: 'error', err: Error): boolean; - emit(event: 'exit', code: number | null, signal: NodeJS.Signals | null): boolean; - emit(event: 'message', message: Serializable, sendHandle: SendHandle): boolean; - emit(event: 'spawn', listener: () => void): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - on(event: 'disconnect', listener: () => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - on(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this; - on(event: 'spawn', listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - once(event: 'disconnect', listener: () => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - once(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this; - once(event: 'spawn', listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependListener(event: 'disconnect', listener: () => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependListener(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this; - prependListener(event: 'spawn', listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependOnceListener(event: 'disconnect', listener: () => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; - prependOnceListener(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this; - prependOnceListener(event: 'spawn', listener: () => void): this; - } - // return this object when stdio option is undefined or not specified - interface ChildProcessWithoutNullStreams extends ChildProcess { - stdin: Writable; - stdout: Readable; - stderr: Readable; - readonly stdio: [ - Writable, - Readable, - Readable, - // stderr - Readable | Writable | null | undefined, - // extra, no modification - Readable | Writable | null | undefined // extra, no modification - ]; - } - // return this object when stdio option is a tuple of 3 - interface ChildProcessByStdio extends ChildProcess { - stdin: I; - stdout: O; - stderr: E; - readonly stdio: [ - I, - O, - E, - Readable | Writable | null | undefined, - // extra, no modification - Readable | Writable | null | undefined // extra, no modification - ]; - } - interface MessageOptions { - keepOpen?: boolean | undefined; - } - type IOType = 'overlapped' | 'pipe' | 'ignore' | 'inherit'; - type StdioOptions = IOType | Array; - type SerializationType = 'json' | 'advanced'; - interface MessagingOptions extends Abortable { - /** - * Specify the kind of serialization used for sending messages between processes. - * @default 'json' - */ - serialization?: SerializationType | undefined; - /** - * The signal value to be used when the spawned process will be killed by the abort signal. - * @default 'SIGTERM' - */ - killSignal?: NodeJS.Signals | number | undefined; - /** - * In milliseconds the maximum amount of time the process is allowed to run. - */ - timeout?: number | undefined; - } - interface ProcessEnvOptions { - uid?: number | undefined; - gid?: number | undefined; - cwd?: string | URL | undefined; - env?: NodeJS.ProcessEnv | undefined; - } - interface CommonOptions extends ProcessEnvOptions { - /** - * @default true - */ - windowsHide?: boolean | undefined; - /** - * @default 0 - */ - timeout?: number | undefined; - } - interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable { - argv0?: string | undefined; - stdio?: StdioOptions | undefined; - shell?: boolean | string | undefined; - windowsVerbatimArguments?: boolean | undefined; - } - interface SpawnOptions extends CommonSpawnOptions { - detached?: boolean | undefined; - } - interface SpawnOptionsWithoutStdio extends SpawnOptions { - stdio?: StdioPipeNamed | StdioPipe[] | undefined; - } - type StdioNull = 'inherit' | 'ignore' | Stream; - type StdioPipeNamed = 'pipe' | 'overlapped'; - type StdioPipe = undefined | null | StdioPipeNamed; - interface SpawnOptionsWithStdioTuple extends SpawnOptions { - stdio: [Stdin, Stdout, Stderr]; - } - /** - * The `child_process.spawn()` method spawns a new process using the given`command`, with command-line arguments in `args`. If omitted, `args` defaults - * to an empty array. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * - * A third argument may be used to specify additional options, with these defaults: - * - * ```js - * const defaults = { - * cwd: undefined, - * env: process.env - * }; - * ``` - * - * Use `cwd` to specify the working directory from which the process is spawned. - * If not given, the default is to inherit the current working directory. If given, - * but the path does not exist, the child process emits an `ENOENT` error - * and exits immediately. `ENOENT` is also emitted when the command - * does not exist. - * - * Use `env` to specify environment variables that will be visible to the new - * process, the default is `process.env`. - * - * `undefined` values in `env` will be ignored. - * - * Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the - * exit code: - * - * ```js - * const { spawn } = require('child_process'); - * const ls = spawn('ls', ['-lh', '/usr']); - * - * ls.stdout.on('data', (data) => { - * console.log(`stdout: ${data}`); - * }); - * - * ls.stderr.on('data', (data) => { - * console.error(`stderr: ${data}`); - * }); - * - * ls.on('close', (code) => { - * console.log(`child process exited with code ${code}`); - * }); - * ``` - * - * Example: A very elaborate way to run `ps ax | grep ssh` - * - * ```js - * const { spawn } = require('child_process'); - * const ps = spawn('ps', ['ax']); - * const grep = spawn('grep', ['ssh']); - * - * ps.stdout.on('data', (data) => { - * grep.stdin.write(data); - * }); - * - * ps.stderr.on('data', (data) => { - * console.error(`ps stderr: ${data}`); - * }); - * - * ps.on('close', (code) => { - * if (code !== 0) { - * console.log(`ps process exited with code ${code}`); - * } - * grep.stdin.end(); - * }); - * - * grep.stdout.on('data', (data) => { - * console.log(data.toString()); - * }); - * - * grep.stderr.on('data', (data) => { - * console.error(`grep stderr: ${data}`); - * }); - * - * grep.on('close', (code) => { - * if (code !== 0) { - * console.log(`grep process exited with code ${code}`); - * } - * }); - * ``` - * - * Example of checking for failed `spawn`: - * - * ```js - * const { spawn } = require('child_process'); - * const subprocess = spawn('bad_command'); - * - * subprocess.on('error', (err) => { - * console.error('Failed to start subprocess.'); - * }); - * ``` - * - * Certain platforms (macOS, Linux) will use the value of `argv[0]` for the process - * title while others (Windows, SunOS) will use `command`. - * - * Node.js currently overwrites `argv[0]` with `process.execPath` on startup, so`process.argv[0]` in a Node.js child process will not match the `argv0`parameter passed to `spawn` from the parent, - * retrieve it with the`process.argv0` property instead. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * const { spawn } = require('child_process'); - * const controller = new AbortController(); - * const { signal } = controller; - * const grep = spawn('grep', ['ssh'], { signal }); - * grep.on('error', (err) => { - * // This will be called with err being an AbortError if the controller aborts - * }); - * controller.abort(); // Stops the child process - * ``` - * @since v0.1.90 - * @param command The command to run. - * @param args List of string arguments. - */ - function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; - function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, options: SpawnOptions): ChildProcess; - // overloads of spawn with 'args' - function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; - function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; - function spawn(command: string, args: ReadonlyArray, options: SpawnOptions): ChildProcess; - interface ExecOptions extends CommonOptions { - shell?: string | undefined; - maxBuffer?: number | undefined; - killSignal?: NodeJS.Signals | number | undefined; - } - interface ExecOptionsWithStringEncoding extends ExecOptions { - encoding: BufferEncoding; - } - interface ExecOptionsWithBufferEncoding extends ExecOptions { - encoding: BufferEncoding | null; // specify `null`. - } - interface ExecException extends Error { - cmd?: string | undefined; - killed?: boolean | undefined; - code?: number | undefined; - signal?: NodeJS.Signals | undefined; - } - /** - * Spawns a shell then executes the `command` within that shell, buffering any - * generated output. The `command` string passed to the exec function is processed - * directly by the shell and special characters (vary based on[shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters)) - * need to be dealt with accordingly: - * - * ```js - * const { exec } = require('child_process'); - * - * exec('"/path/to/test file/test.sh" arg1 arg2'); - * // Double quotes are used so that the space in the path is not interpreted as - * // a delimiter of multiple arguments. - * - * exec('echo "The \\$HOME variable is $HOME"'); - * // The $HOME variable is escaped in the first instance, but not in the second. - * ``` - * - * **Never pass unsanitized user input to this function. Any input containing shell** - * **metacharacters may be used to trigger arbitrary command execution.** - * - * If a `callback` function is provided, it is called with the arguments`(error, stdout, stderr)`. On success, `error` will be `null`. On error,`error` will be an instance of `Error`. The - * `error.code` property will be - * the exit code of the process. By convention, any exit code other than `0`indicates an error. `error.signal` will be the signal that terminated the - * process. - * - * The `stdout` and `stderr` arguments passed to the callback will contain the - * stdout and stderr output of the child process. By default, Node.js will decode - * the output as UTF-8 and pass strings to the callback. The `encoding` option - * can be used to specify the character encoding used to decode the stdout and - * stderr output. If `encoding` is `'buffer'`, or an unrecognized character - * encoding, `Buffer` objects will be passed to the callback instead. - * - * ```js - * const { exec } = require('child_process'); - * exec('cat *.js missing_file | wc -l', (error, stdout, stderr) => { - * if (error) { - * console.error(`exec error: ${error}`); - * return; - * } - * console.log(`stdout: ${stdout}`); - * console.error(`stderr: ${stderr}`); - * }); - * ``` - * - * If `timeout` is greater than `0`, the parent will send the signal - * identified by the `killSignal` property (the default is `'SIGTERM'`) if the - * child runs longer than `timeout` milliseconds. - * - * Unlike the [`exec(3)`](http://man7.org/linux/man-pages/man3/exec.3.html) POSIX system call, `child_process.exec()` does not replace - * the existing process and uses a shell to execute the command. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned`ChildProcess` instance is attached to the `Promise` as a `child` property. In - * case of an error (including any error resulting in an exit code other than 0), a - * rejected promise is returned, with the same `error` object given in the - * callback, but with two additional properties `stdout` and `stderr`. - * - * ```js - * const util = require('util'); - * const exec = util.promisify(require('child_process').exec); - * - * async function lsExample() { - * const { stdout, stderr } = await exec('ls'); - * console.log('stdout:', stdout); - * console.error('stderr:', stderr); - * } - * lsExample(); - * ``` - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * const { exec } = require('child_process'); - * const controller = new AbortController(); - * const { signal } = controller; - * const child = exec('grep ssh', { signal }, (error) => { - * console.log(error); // an AbortError - * }); - * controller.abort(); - * ``` - * @since v0.1.90 - * @param command The command to run, with space-separated arguments. - * @param callback called with the output when process terminates. - */ - function exec(command: string, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; - // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. - function exec( - command: string, - options: { - encoding: 'buffer' | null; - } & ExecOptions, - callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void - ): ChildProcess; - // `options` with well known `encoding` means stdout/stderr are definitely `string`. - function exec( - command: string, - options: { - encoding: BufferEncoding; - } & ExecOptions, - callback?: (error: ExecException | null, stdout: string, stderr: string) => void - ): ChildProcess; - // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`. - // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`. - function exec( - command: string, - options: { - encoding: BufferEncoding; - } & ExecOptions, - callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void - ): ChildProcess; - // `options` without an `encoding` means stdout/stderr are definitely `string`. - function exec(command: string, options: ExecOptions, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; - // fallback if nothing else matches. Worst case is always `string | Buffer`. - function exec( - command: string, - options: (ObjectEncodingOptions & ExecOptions) | undefined | null, - callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void - ): ChildProcess; - interface PromiseWithChild extends Promise { - child: ChildProcess; - } - namespace exec { - function __promisify__(command: string): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - command: string, - options: { - encoding: 'buffer' | null; - } & ExecOptions - ): PromiseWithChild<{ - stdout: Buffer; - stderr: Buffer; - }>; - function __promisify__( - command: string, - options: { - encoding: BufferEncoding; - } & ExecOptions - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - command: string, - options: ExecOptions - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - command: string, - options?: (ObjectEncodingOptions & ExecOptions) | null - ): PromiseWithChild<{ - stdout: string | Buffer; - stderr: string | Buffer; - }>; - } - interface ExecFileOptions extends CommonOptions, Abortable { - maxBuffer?: number | undefined; - killSignal?: NodeJS.Signals | number | undefined; - windowsVerbatimArguments?: boolean | undefined; - shell?: boolean | string | undefined; - signal?: AbortSignal | undefined; - } - interface ExecFileOptionsWithStringEncoding extends ExecFileOptions { - encoding: BufferEncoding; - } - interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions { - encoding: 'buffer' | null; - } - interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions { - encoding: BufferEncoding; - } - type ExecFileException = ExecException & NodeJS.ErrnoException; - /** - * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified - * executable `file` is spawned directly as a new process making it slightly more - * efficient than {@link exec}. - * - * The same options as {@link exec} are supported. Since a shell is - * not spawned, behaviors such as I/O redirection and file globbing are not - * supported. - * - * ```js - * const { execFile } = require('child_process'); - * const child = execFile('node', ['--version'], (error, stdout, stderr) => { - * if (error) { - * throw error; - * } - * console.log(stdout); - * }); - * ``` - * - * The `stdout` and `stderr` arguments passed to the callback will contain the - * stdout and stderr output of the child process. By default, Node.js will decode - * the output as UTF-8 and pass strings to the callback. The `encoding` option - * can be used to specify the character encoding used to decode the stdout and - * stderr output. If `encoding` is `'buffer'`, or an unrecognized character - * encoding, `Buffer` objects will be passed to the callback instead. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned`ChildProcess` instance is attached to the `Promise` as a `child` property. In - * case of an error (including any error resulting in an exit code other than 0), a - * rejected promise is returned, with the same `error` object given in the - * callback, but with two additional properties `stdout` and `stderr`. - * - * ```js - * const util = require('util'); - * const execFile = util.promisify(require('child_process').execFile); - * async function getVersion() { - * const { stdout } = await execFile('node', ['--version']); - * console.log(stdout); - * } - * getVersion(); - * ``` - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * const { execFile } = require('child_process'); - * const controller = new AbortController(); - * const { signal } = controller; - * const child = execFile('node', ['--version'], { signal }, (error) => { - * console.log(error); // an AbortError - * }); - * controller.abort(); - * ``` - * @since v0.1.91 - * @param file The name or path of the executable file to run. - * @param args List of string arguments. - * @param callback Called with the output when process terminates. - */ - function execFile(file: string): ChildProcess; - function execFile(file: string, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess; - function execFile(file: string, args?: ReadonlyArray | null): ChildProcess; - function execFile(file: string, args: ReadonlyArray | undefined | null, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess; - // no `options` definitely means stdout/stderr are `string`. - function execFile(file: string, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess; - function execFile(file: string, args: ReadonlyArray | undefined | null, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess; - // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. - function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; - function execFile( - file: string, - args: ReadonlyArray | undefined | null, - options: ExecFileOptionsWithBufferEncoding, - callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void - ): ChildProcess; - // `options` with well known `encoding` means stdout/stderr are definitely `string`. - function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess; - function execFile( - file: string, - args: ReadonlyArray | undefined | null, - options: ExecFileOptionsWithStringEncoding, - callback: (error: ExecFileException | null, stdout: string, stderr: string) => void - ): ChildProcess; - // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`. - // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`. - function execFile(file: string, options: ExecFileOptionsWithOtherEncoding, callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess; - function execFile( - file: string, - args: ReadonlyArray | undefined | null, - options: ExecFileOptionsWithOtherEncoding, - callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void - ): ChildProcess; - // `options` without an `encoding` means stdout/stderr are definitely `string`. - function execFile(file: string, options: ExecFileOptions, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess; - function execFile( - file: string, - args: ReadonlyArray | undefined | null, - options: ExecFileOptions, - callback: (error: ExecFileException | null, stdout: string, stderr: string) => void - ): ChildProcess; - // fallback if nothing else matches. Worst case is always `string | Buffer`. - function execFile( - file: string, - options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, - callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null - ): ChildProcess; - function execFile( - file: string, - args: ReadonlyArray | undefined | null, - options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, - callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null - ): ChildProcess; - namespace execFile { - function __promisify__(file: string): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - args: ReadonlyArray | undefined | null - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - options: ExecFileOptionsWithBufferEncoding - ): PromiseWithChild<{ - stdout: Buffer; - stderr: Buffer; - }>; - function __promisify__( - file: string, - args: ReadonlyArray | undefined | null, - options: ExecFileOptionsWithBufferEncoding - ): PromiseWithChild<{ - stdout: Buffer; - stderr: Buffer; - }>; - function __promisify__( - file: string, - options: ExecFileOptionsWithStringEncoding - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - args: ReadonlyArray | undefined | null, - options: ExecFileOptionsWithStringEncoding - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - options: ExecFileOptionsWithOtherEncoding - ): PromiseWithChild<{ - stdout: string | Buffer; - stderr: string | Buffer; - }>; - function __promisify__( - file: string, - args: ReadonlyArray | undefined | null, - options: ExecFileOptionsWithOtherEncoding - ): PromiseWithChild<{ - stdout: string | Buffer; - stderr: string | Buffer; - }>; - function __promisify__( - file: string, - options: ExecFileOptions - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - args: ReadonlyArray | undefined | null, - options: ExecFileOptions - ): PromiseWithChild<{ - stdout: string; - stderr: string; - }>; - function __promisify__( - file: string, - options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null - ): PromiseWithChild<{ - stdout: string | Buffer; - stderr: string | Buffer; - }>; - function __promisify__( - file: string, - args: ReadonlyArray | undefined | null, - options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null - ): PromiseWithChild<{ - stdout: string | Buffer; - stderr: string | Buffer; - }>; - } - interface ForkOptions extends ProcessEnvOptions, MessagingOptions, Abortable { - execPath?: string | undefined; - execArgv?: string[] | undefined; - silent?: boolean | undefined; - stdio?: StdioOptions | undefined; - detached?: boolean | undefined; - windowsVerbatimArguments?: boolean | undefined; - } - /** - * The `child_process.fork()` method is a special case of {@link spawn} used specifically to spawn new Node.js processes. - * Like {@link spawn}, a `ChildProcess` object is returned. The - * returned `ChildProcess` will have an additional communication channel - * built-in that allows messages to be passed back and forth between the parent and - * child. See `subprocess.send()` for details. - * - * Keep in mind that spawned Node.js child processes are - * independent of the parent with exception of the IPC communication channel - * that is established between the two. Each process has its own memory, with - * their own V8 instances. Because of the additional resource allocations - * required, spawning a large number of child Node.js processes is not - * recommended. - * - * By default, `child_process.fork()` will spawn new Node.js instances using the `process.execPath` of the parent process. The `execPath` property in the`options` object allows for an alternative - * execution path to be used. - * - * Node.js processes launched with a custom `execPath` will communicate with the - * parent process using the file descriptor (fd) identified using the - * environment variable `NODE_CHANNEL_FD` on the child process. - * - * Unlike the [`fork(2)`](http://man7.org/linux/man-pages/man2/fork.2.html) POSIX system call, `child_process.fork()` does not clone the - * current process. - * - * The `shell` option available in {@link spawn} is not supported by`child_process.fork()` and will be ignored if set. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except - * the error passed to the callback will be an `AbortError`: - * - * ```js - * if (process.argv[2] === 'child') { - * setTimeout(() => { - * console.log(`Hello from ${process.argv[2]}!`); - * }, 1_000); - * } else { - * const { fork } = require('child_process'); - * const controller = new AbortController(); - * const { signal } = controller; - * const child = fork(__filename, ['child'], { signal }); - * child.on('error', (err) => { - * // This will be called with err being an AbortError if the controller aborts - * }); - * controller.abort(); // Stops the child process - * } - * ``` - * @since v0.5.0 - * @param modulePath The module to run in the child. - * @param args List of string arguments. - */ - function fork(modulePath: string, options?: ForkOptions): ChildProcess; - function fork(modulePath: string, args?: ReadonlyArray, options?: ForkOptions): ChildProcess; - interface SpawnSyncOptions extends CommonSpawnOptions { - input?: string | NodeJS.ArrayBufferView | undefined; - maxBuffer?: number | undefined; - encoding?: BufferEncoding | 'buffer' | null | undefined; - } - interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions { - encoding: BufferEncoding; - } - interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions { - encoding?: 'buffer' | null | undefined; - } - interface SpawnSyncReturns { - pid: number; - output: Array; - stdout: T; - stderr: T; - status: number | null; - signal: NodeJS.Signals | null; - error?: Error | undefined; - } - /** - * The `child_process.spawnSync()` method is generally identical to {@link spawn} with the exception that the function will not return - * until the child process has fully closed. When a timeout has been encountered - * and `killSignal` is sent, the method won't return until the process has - * completely exited. If the process intercepts and handles the `SIGTERM` signal - * and doesn't exit, the parent process will wait until the child process has - * exited. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * @since v0.11.12 - * @param command The command to run. - * @param args List of string arguments. - */ - function spawnSync(command: string): SpawnSyncReturns; - function spawnSync(command: string, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; - function spawnSync(command: string, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; - function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns; - function spawnSync(command: string, args?: ReadonlyArray, options?: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; - function spawnSync(command: string, args?: ReadonlyArray, options?: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; - function spawnSync(command: string, args?: ReadonlyArray, options?: SpawnSyncOptions): SpawnSyncReturns; - interface CommonExecOptions extends CommonOptions { - input?: string | NodeJS.ArrayBufferView | undefined; - stdio?: StdioOptions | undefined; - killSignal?: NodeJS.Signals | number | undefined; - maxBuffer?: number | undefined; - encoding?: BufferEncoding | 'buffer' | null | undefined; - } - interface ExecSyncOptions extends CommonExecOptions { - shell?: string | undefined; - } - interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions { - encoding: BufferEncoding; - } - interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions { - encoding?: 'buffer' | null | undefined; - } - /** - * The `child_process.execSync()` method is generally identical to {@link exec} with the exception that the method will not return - * until the child process has fully closed. When a timeout has been encountered - * and `killSignal` is sent, the method won't return until the process has - * completely exited. If the child process intercepts and handles the `SIGTERM`signal and doesn't exit, the parent process will wait until the child process - * has exited. - * - * If the process times out or has a non-zero exit code, this method will throw. - * The `Error` object will contain the entire result from {@link spawnSync}. - * - * **Never pass unsanitized user input to this function. Any input containing shell** - * **metacharacters may be used to trigger arbitrary command execution.** - * @since v0.11.12 - * @param command The command to run. - * @return The stdout from the command. - */ - function execSync(command: string): Buffer; - function execSync(command: string, options?: ExecSyncOptionsWithStringEncoding): string; - function execSync(command: string, options?: ExecSyncOptionsWithBufferEncoding): Buffer; - function execSync(command: string, options?: ExecSyncOptions): Buffer; - interface ExecFileSyncOptions extends CommonExecOptions { - shell?: boolean | string | undefined; - } - interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions { - encoding: BufferEncoding; - } - interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions { - encoding: BufferEncoding; // specify `null`. - } - /** - * The `child_process.execFileSync()` method is generally identical to {@link execFile} with the exception that the method will not - * return until the child process has fully closed. When a timeout has been - * encountered and `killSignal` is sent, the method won't return until the process - * has completely exited. - * - * If the child process intercepts and handles the `SIGTERM` signal and - * does not exit, the parent process will still wait until the child process has - * exited. - * - * If the process times out or has a non-zero exit code, this method will throw an `Error` that will include the full result of the underlying {@link spawnSync}. - * - * **If the `shell` option is enabled, do not pass unsanitized user input to this** - * **function. Any input containing shell metacharacters may be used to trigger** - * **arbitrary command execution.** - * @since v0.11.12 - * @param file The name or path of the executable file to run. - * @param args List of string arguments. - * @return The stdout from the command. - */ - function execFileSync(file: string): Buffer; - function execFileSync(file: string, options?: ExecFileSyncOptionsWithStringEncoding): string; - function execFileSync(file: string, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer; - function execFileSync(file: string, options?: ExecFileSyncOptions): Buffer; - function execFileSync(file: string, args?: ReadonlyArray, options?: ExecFileSyncOptionsWithStringEncoding): string; - function execFileSync(file: string, args?: ReadonlyArray, options?: ExecFileSyncOptionsWithBufferEncoding): Buffer; - function execFileSync(file: string, args?: ReadonlyArray, options?: ExecFileSyncOptions): Buffer; -} -declare module 'node:child_process' { - export * from 'child_process'; -} diff --git a/WechatBot/node_modules/@types/node/cluster.d.ts b/WechatBot/node_modules/@types/node/cluster.d.ts deleted file mode 100644 index 8c4203b66..000000000 --- a/WechatBot/node_modules/@types/node/cluster.d.ts +++ /dev/null @@ -1,414 +0,0 @@ -/** - * A single instance of Node.js runs in a single thread. To take advantage of - * multi-core systems, the user will sometimes want to launch a cluster of Node.js - * processes to handle the load. - * - * The cluster module allows easy creation of child processes that all share - * server ports. - * - * ```js - * import cluster from 'cluster'; - * import http from 'http'; - * import { cpus } from 'os'; - * import process from 'process'; - * - * const numCPUs = cpus().length; - * - * if (cluster.isPrimary) { - * console.log(`Primary ${process.pid} is running`); - * - * // Fork workers. - * for (let i = 0; i < numCPUs; i++) { - * cluster.fork(); - * } - * - * cluster.on('exit', (worker, code, signal) => { - * console.log(`worker ${worker.process.pid} died`); - * }); - * } else { - * // Workers can share any TCP connection - * // In this case it is an HTTP server - * http.createServer((req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * - * console.log(`Worker ${process.pid} started`); - * } - * ``` - * - * Running Node.js will now share port 8000 between the workers: - * - * ```console - * $ node server.js - * Primary 3596 is running - * Worker 4324 started - * Worker 4520 started - * Worker 6056 started - * Worker 5644 started - * ``` - * - * On Windows, it is not yet possible to set up a named pipe server in a worker. - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/cluster.js) - */ -declare module 'cluster' { - import * as child from 'node:child_process'; - import EventEmitter = require('node:events'); - import * as net from 'node:net'; - export interface ClusterSettings { - execArgv?: string[] | undefined; // default: process.execArgv - exec?: string | undefined; - args?: string[] | undefined; - silent?: boolean | undefined; - stdio?: any[] | undefined; - uid?: number | undefined; - gid?: number | undefined; - inspectPort?: number | (() => number) | undefined; - } - export interface Address { - address: string; - port: number; - addressType: number | 'udp4' | 'udp6'; // 4, 6, -1, "udp4", "udp6" - } - /** - * A `Worker` object contains all public information and method about a worker. - * In the primary it can be obtained using `cluster.workers`. In a worker - * it can be obtained using `cluster.worker`. - * @since v0.7.0 - */ - export class Worker extends EventEmitter { - /** - * Each new worker is given its own unique id, this id is stored in the`id`. - * - * While a worker is alive, this is the key that indexes it in`cluster.workers`. - * @since v0.8.0 - */ - id: number; - /** - * All workers are created using `child_process.fork()`, the returned object - * from this function is stored as `.process`. In a worker, the global `process`is stored. - * - * See: `Child Process module`. - * - * Workers will call `process.exit(0)` if the `'disconnect'` event occurs - * on `process` and `.exitedAfterDisconnect` is not `true`. This protects against - * accidental disconnection. - * @since v0.7.0 - */ - process: child.ChildProcess; - /** - * Send a message to a worker or primary, optionally with a handle. - * - * In the primary this sends a message to a specific worker. It is identical to `ChildProcess.send()`. - * - * In a worker this sends a message to the primary. It is identical to`process.send()`. - * - * This example will echo back all messages from the primary: - * - * ```js - * if (cluster.isPrimary) { - * const worker = cluster.fork(); - * worker.send('hi there'); - * - * } else if (cluster.isWorker) { - * process.on('message', (msg) => { - * process.send(msg); - * }); - * } - * ``` - * @since v0.7.0 - * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties: - */ - send(message: child.Serializable, callback?: (error: Error | null) => void): boolean; - send(message: child.Serializable, sendHandle: child.SendHandle, callback?: (error: Error | null) => void): boolean; - send(message: child.Serializable, sendHandle: child.SendHandle, options?: child.MessageOptions, callback?: (error: Error | null) => void): boolean; - /** - * This function will kill the worker. In the primary, it does this - * by disconnecting the `worker.process`, and once disconnected, killing - * with `signal`. In the worker, it does it by disconnecting the channel, - * and then exiting with code `0`. - * - * Because `kill()` attempts to gracefully disconnect the worker process, it is - * susceptible to waiting indefinitely for the disconnect to complete. For example, - * if the worker enters an infinite loop, a graceful disconnect will never occur. - * If the graceful disconnect behavior is not needed, use `worker.process.kill()`. - * - * Causes `.exitedAfterDisconnect` to be set. - * - * This method is aliased as `worker.destroy()` for backward compatibility. - * - * In a worker, `process.kill()` exists, but it is not this function; - * it is `kill()`. - * @since v0.9.12 - * @param [signal='SIGTERM'] Name of the kill signal to send to the worker process. - */ - kill(signal?: string): void; - destroy(signal?: string): void; - /** - * In a worker, this function will close all servers, wait for the `'close'` event - * on those servers, and then disconnect the IPC channel. - * - * In the primary, an internal message is sent to the worker causing it to call`.disconnect()` on itself. - * - * Causes `.exitedAfterDisconnect` to be set. - * - * After a server is closed, it will no longer accept new connections, - * but connections may be accepted by any other listening worker. Existing - * connections will be allowed to close as usual. When no more connections exist, - * see `server.close()`, the IPC channel to the worker will close allowing it - * to die gracefully. - * - * The above applies _only_ to server connections, client connections are not - * automatically closed by workers, and disconnect does not wait for them to close - * before exiting. - * - * In a worker, `process.disconnect` exists, but it is not this function; - * it is `disconnect()`. - * - * Because long living server connections may block workers from disconnecting, it - * may be useful to send a message, so application specific actions may be taken to - * close them. It also may be useful to implement a timeout, killing a worker if - * the `'disconnect'` event has not been emitted after some time. - * - * ```js - * if (cluster.isPrimary) { - * const worker = cluster.fork(); - * let timeout; - * - * worker.on('listening', (address) => { - * worker.send('shutdown'); - * worker.disconnect(); - * timeout = setTimeout(() => { - * worker.kill(); - * }, 2000); - * }); - * - * worker.on('disconnect', () => { - * clearTimeout(timeout); - * }); - * - * } else if (cluster.isWorker) { - * const net = require('net'); - * const server = net.createServer((socket) => { - * // Connections never end - * }); - * - * server.listen(8000); - * - * process.on('message', (msg) => { - * if (msg === 'shutdown') { - * // Initiate graceful close of any connections to server - * } - * }); - * } - * ``` - * @since v0.7.7 - * @return A reference to `worker`. - */ - disconnect(): void; - /** - * This function returns `true` if the worker is connected to its primary via its - * IPC channel, `false` otherwise. A worker is connected to its primary after it - * has been created. It is disconnected after the `'disconnect'` event is emitted. - * @since v0.11.14 - */ - isConnected(): boolean; - /** - * This function returns `true` if the worker's process has terminated (either - * because of exiting or being signaled). Otherwise, it returns `false`. - * - * ```js - * import cluster from 'cluster'; - * import http from 'http'; - * import { cpus } from 'os'; - * import process from 'process'; - * - * const numCPUs = cpus().length; - * - * if (cluster.isPrimary) { - * console.log(`Primary ${process.pid} is running`); - * - * // Fork workers. - * for (let i = 0; i < numCPUs; i++) { - * cluster.fork(); - * } - * - * cluster.on('fork', (worker) => { - * console.log('worker is dead:', worker.isDead()); - * }); - * - * cluster.on('exit', (worker, code, signal) => { - * console.log('worker is dead:', worker.isDead()); - * }); - * } else { - * // Workers can share any TCP connection. In this case, it is an HTTP server. - * http.createServer((req, res) => { - * res.writeHead(200); - * res.end(`Current process\n ${process.pid}`); - * process.kill(process.pid); - * }).listen(8000); - * } - * ``` - * @since v0.11.14 - */ - isDead(): boolean; - /** - * This property is `true` if the worker exited due to `.kill()` or`.disconnect()`. If the worker exited any other way, it is `false`. If the - * worker has not exited, it is `undefined`. - * - * The boolean `worker.exitedAfterDisconnect` allows distinguishing between - * voluntary and accidental exit, the primary may choose not to respawn a worker - * based on this value. - * - * ```js - * cluster.on('exit', (worker, code, signal) => { - * if (worker.exitedAfterDisconnect === true) { - * console.log('Oh, it was just voluntary – no need to worry'); - * } - * }); - * - * // kill worker - * worker.kill(); - * ``` - * @since v6.0.0 - */ - exitedAfterDisconnect: boolean; - /** - * events.EventEmitter - * 1. disconnect - * 2. error - * 3. exit - * 4. listening - * 5. message - * 6. online - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'disconnect', listener: () => void): this; - addListener(event: 'error', listener: (error: Error) => void): this; - addListener(event: 'exit', listener: (code: number, signal: string) => void): this; - addListener(event: 'listening', listener: (address: Address) => void): this; - addListener(event: 'message', listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - addListener(event: 'online', listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'disconnect'): boolean; - emit(event: 'error', error: Error): boolean; - emit(event: 'exit', code: number, signal: string): boolean; - emit(event: 'listening', address: Address): boolean; - emit(event: 'message', message: any, handle: net.Socket | net.Server): boolean; - emit(event: 'online'): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'disconnect', listener: () => void): this; - on(event: 'error', listener: (error: Error) => void): this; - on(event: 'exit', listener: (code: number, signal: string) => void): this; - on(event: 'listening', listener: (address: Address) => void): this; - on(event: 'message', listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - on(event: 'online', listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'disconnect', listener: () => void): this; - once(event: 'error', listener: (error: Error) => void): this; - once(event: 'exit', listener: (code: number, signal: string) => void): this; - once(event: 'listening', listener: (address: Address) => void): this; - once(event: 'message', listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - once(event: 'online', listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'disconnect', listener: () => void): this; - prependListener(event: 'error', listener: (error: Error) => void): this; - prependListener(event: 'exit', listener: (code: number, signal: string) => void): this; - prependListener(event: 'listening', listener: (address: Address) => void): this; - prependListener(event: 'message', listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - prependListener(event: 'online', listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'disconnect', listener: () => void): this; - prependOnceListener(event: 'error', listener: (error: Error) => void): this; - prependOnceListener(event: 'exit', listener: (code: number, signal: string) => void): this; - prependOnceListener(event: 'listening', listener: (address: Address) => void): this; - prependOnceListener(event: 'message', listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - prependOnceListener(event: 'online', listener: () => void): this; - } - export interface Cluster extends EventEmitter { - disconnect(callback?: () => void): void; - fork(env?: any): Worker; - /** @deprecated since v16.0.0 - use isPrimary. */ - readonly isMaster: boolean; - readonly isPrimary: boolean; - readonly isWorker: boolean; - schedulingPolicy: number; - readonly settings: ClusterSettings; - /** @deprecated since v16.0.0 - use setupPrimary. */ - setupMaster(settings?: ClusterSettings): void; - /** - * `setupPrimary` is used to change the default 'fork' behavior. Once called, the settings will be present in cluster.settings. - */ - setupPrimary(settings?: ClusterSettings): void; - readonly worker?: Worker | undefined; - readonly workers?: NodeJS.Dict | undefined; - readonly SCHED_NONE: number; - readonly SCHED_RR: number; - /** - * events.EventEmitter - * 1. disconnect - * 2. exit - * 3. fork - * 4. listening - * 5. message - * 6. online - * 7. setup - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'disconnect', listener: (worker: Worker) => void): this; - addListener(event: 'exit', listener: (worker: Worker, code: number, signal: string) => void): this; - addListener(event: 'fork', listener: (worker: Worker) => void): this; - addListener(event: 'listening', listener: (worker: Worker, address: Address) => void): this; - addListener(event: 'message', listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - addListener(event: 'online', listener: (worker: Worker) => void): this; - addListener(event: 'setup', listener: (settings: ClusterSettings) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'disconnect', worker: Worker): boolean; - emit(event: 'exit', worker: Worker, code: number, signal: string): boolean; - emit(event: 'fork', worker: Worker): boolean; - emit(event: 'listening', worker: Worker, address: Address): boolean; - emit(event: 'message', worker: Worker, message: any, handle: net.Socket | net.Server): boolean; - emit(event: 'online', worker: Worker): boolean; - emit(event: 'setup', settings: ClusterSettings): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'disconnect', listener: (worker: Worker) => void): this; - on(event: 'exit', listener: (worker: Worker, code: number, signal: string) => void): this; - on(event: 'fork', listener: (worker: Worker) => void): this; - on(event: 'listening', listener: (worker: Worker, address: Address) => void): this; - on(event: 'message', listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - on(event: 'online', listener: (worker: Worker) => void): this; - on(event: 'setup', listener: (settings: ClusterSettings) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'disconnect', listener: (worker: Worker) => void): this; - once(event: 'exit', listener: (worker: Worker, code: number, signal: string) => void): this; - once(event: 'fork', listener: (worker: Worker) => void): this; - once(event: 'listening', listener: (worker: Worker, address: Address) => void): this; - once(event: 'message', listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. - once(event: 'online', listener: (worker: Worker) => void): this; - once(event: 'setup', listener: (settings: ClusterSettings) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'disconnect', listener: (worker: Worker) => void): this; - prependListener(event: 'exit', listener: (worker: Worker, code: number, signal: string) => void): this; - prependListener(event: 'fork', listener: (worker: Worker) => void): this; - prependListener(event: 'listening', listener: (worker: Worker, address: Address) => void): this; - // the handle is a net.Socket or net.Server object, or undefined. - prependListener(event: 'message', listener: (worker: Worker, message: any, handle?: net.Socket | net.Server) => void): this; - prependListener(event: 'online', listener: (worker: Worker) => void): this; - prependListener(event: 'setup', listener: (settings: ClusterSettings) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'disconnect', listener: (worker: Worker) => void): this; - prependOnceListener(event: 'exit', listener: (worker: Worker, code: number, signal: string) => void): this; - prependOnceListener(event: 'fork', listener: (worker: Worker) => void): this; - prependOnceListener(event: 'listening', listener: (worker: Worker, address: Address) => void): this; - // the handle is a net.Socket or net.Server object, or undefined. - prependOnceListener(event: 'message', listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; - prependOnceListener(event: 'online', listener: (worker: Worker) => void): this; - prependOnceListener(event: 'setup', listener: (settings: ClusterSettings) => void): this; - } - const cluster: Cluster; - export default cluster; -} -declare module 'node:cluster' { - export * from 'cluster'; - export { default as default } from 'cluster'; -} diff --git a/WechatBot/node_modules/@types/node/console.d.ts b/WechatBot/node_modules/@types/node/console.d.ts deleted file mode 100644 index 60a5294f4..000000000 --- a/WechatBot/node_modules/@types/node/console.d.ts +++ /dev/null @@ -1,407 +0,0 @@ -/** - * The `console` module provides a simple debugging console that is similar to the - * JavaScript console mechanism provided by web browsers. - * - * The module exports two specific components: - * - * * A `Console` class with methods such as `console.log()`, `console.error()` and`console.warn()` that can be used to write to any Node.js stream. - * * A global `console` instance configured to write to `process.stdout` and `process.stderr`. The global `console` can be used without calling`require('console')`. - * - * _**Warning**_: The global console object's methods are neither consistently - * synchronous like the browser APIs they resemble, nor are they consistently - * asynchronous like all other Node.js streams. See the `note on process I/O` for - * more information. - * - * Example using the global `console`: - * - * ```js - * console.log('hello world'); - * // Prints: hello world, to stdout - * console.log('hello %s', 'world'); - * // Prints: hello world, to stdout - * console.error(new Error('Whoops, something bad happened')); - * // Prints error message and stack trace to stderr: - * // Error: Whoops, something bad happened - * // at [eval]:5:15 - * // at Script.runInThisContext (node:vm:132:18) - * // at Object.runInThisContext (node:vm:309:38) - * // at node:internal/process/execution:77:19 - * // at [eval]-wrapper:6:22 - * // at evalScript (node:internal/process/execution:76:60) - * // at node:internal/main/eval_string:23:3 - * - * const name = 'Will Robinson'; - * console.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to stderr - * ``` - * - * Example using the `Console` class: - * - * ```js - * const out = getStreamSomehow(); - * const err = getStreamSomehow(); - * const myConsole = new console.Console(out, err); - * - * myConsole.log('hello world'); - * // Prints: hello world, to out - * myConsole.log('hello %s', 'world'); - * // Prints: hello world, to out - * myConsole.error(new Error('Whoops, something bad happened')); - * // Prints: [Error: Whoops, something bad happened], to err - * - * const name = 'Will Robinson'; - * myConsole.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to err - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/console.js) - */ -declare module 'console' { - import console = require('node:console'); - export = console; -} -declare module 'node:console' { - import { InspectOptions } from 'node:util'; - global { - // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build - interface Console { - Console: console.ConsoleConstructor; - /** - * `console.assert()` writes a message if `value` is [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) or omitted. It only - * writes a message and does not otherwise affect execution. The output always - * starts with `"Assertion failed"`. If provided, `message` is formatted using `util.format()`. - * - * If `value` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy), nothing happens. - * - * ```js - * console.assert(true, 'does nothing'); - * - * console.assert(false, 'Whoops %s work', 'didn\'t'); - * // Assertion failed: Whoops didn't work - * - * console.assert(); - * // Assertion failed - * ``` - * @since v0.1.101 - * @param value The value tested for being truthy. - * @param message All arguments besides `value` are used as error message. - */ - assert(value: any, message?: string, ...optionalParams: any[]): void; - /** - * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the - * TTY. When `stdout` is not a TTY, this method does nothing. - * - * The specific operation of `console.clear()` can vary across operating systems - * and terminal types. For most Linux operating systems, `console.clear()`operates similarly to the `clear` shell command. On Windows, `console.clear()`will clear only the output in the - * current terminal viewport for the Node.js - * binary. - * @since v8.3.0 - */ - clear(): void; - /** - * Maintains an internal counter specific to `label` and outputs to `stdout` the - * number of times `console.count()` has been called with the given `label`. - * - * ```js - * > console.count() - * default: 1 - * undefined - * > console.count('default') - * default: 2 - * undefined - * > console.count('abc') - * abc: 1 - * undefined - * > console.count('xyz') - * xyz: 1 - * undefined - * > console.count('abc') - * abc: 2 - * undefined - * > console.count() - * default: 3 - * undefined - * > - * ``` - * @since v8.3.0 - * @param label The display label for the counter. - */ - count(label?: string): void; - /** - * Resets the internal counter specific to `label`. - * - * ```js - * > console.count('abc'); - * abc: 1 - * undefined - * > console.countReset('abc'); - * undefined - * > console.count('abc'); - * abc: 1 - * undefined - * > - * ``` - * @since v8.3.0 - * @param label The display label for the counter. - */ - countReset(label?: string): void; - /** - * The `console.debug()` function is an alias for {@link log}. - * @since v8.0.0 - */ - debug(message?: any, ...optionalParams: any[]): void; - /** - * Uses `util.inspect()` on `obj` and prints the resulting string to `stdout`. - * This function bypasses any custom `inspect()` function defined on `obj`. - * @since v0.1.101 - */ - dir(obj: any, options?: InspectOptions): void; - /** - * This method calls `console.log()` passing it the arguments received. - * This method does not produce any XML formatting. - * @since v8.0.0 - */ - dirxml(...data: any[]): void; - /** - * Prints to `stderr` with newline. Multiple arguments can be passed, with the - * first used as the primary message and all additional used as substitution - * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) (the arguments are all passed to `util.format()`). - * - * ```js - * const code = 5; - * console.error('error #%d', code); - * // Prints: error #5, to stderr - * console.error('error', code); - * // Prints: error 5, to stderr - * ``` - * - * If formatting elements (e.g. `%d`) are not found in the first string then `util.inspect()` is called on each argument and the resulting string - * values are concatenated. See `util.format()` for more information. - * @since v0.1.100 - */ - error(message?: any, ...optionalParams: any[]): void; - /** - * Increases indentation of subsequent lines by spaces for `groupIndentation`length. - * - * If one or more `label`s are provided, those are printed first without the - * additional indentation. - * @since v8.5.0 - */ - group(...label: any[]): void; - /** - * An alias for {@link group}. - * @since v8.5.0 - */ - groupCollapsed(...label: any[]): void; - /** - * Decreases indentation of subsequent lines by spaces for `groupIndentation`length. - * @since v8.5.0 - */ - groupEnd(): void; - /** - * The `console.info()` function is an alias for {@link log}. - * @since v0.1.100 - */ - info(message?: any, ...optionalParams: any[]): void; - /** - * Prints to `stdout` with newline. Multiple arguments can be passed, with the - * first used as the primary message and all additional used as substitution - * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) (the arguments are all passed to `util.format()`). - * - * ```js - * const count = 5; - * console.log('count: %d', count); - * // Prints: count: 5, to stdout - * console.log('count:', count); - * // Prints: count: 5, to stdout - * ``` - * - * See `util.format()` for more information. - * @since v0.1.100 - */ - log(message?: any, ...optionalParams: any[]): void; - /** - * Try to construct a table with the columns of the properties of `tabularData`(or use `properties`) and rows of `tabularData` and log it. Falls back to just - * logging the argument if it can’t be parsed as tabular. - * - * ```js - * // These can't be parsed as tabular data - * console.table(Symbol()); - * // Symbol() - * - * console.table(undefined); - * // undefined - * - * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]); - * // ┌─────────┬─────┬─────┐ - * // │ (index) │ a │ b │ - * // ├─────────┼─────┼─────┤ - * // │ 0 │ 1 │ 'Y' │ - * // │ 1 │ 'Z' │ 2 │ - * // └─────────┴─────┴─────┘ - * - * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']); - * // ┌─────────┬─────┐ - * // │ (index) │ a │ - * // ├─────────┼─────┤ - * // │ 0 │ 1 │ - * // │ 1 │ 'Z' │ - * // └─────────┴─────┘ - * ``` - * @since v10.0.0 - * @param properties Alternate properties for constructing the table. - */ - table(tabularData: any, properties?: ReadonlyArray): void; - /** - * Starts a timer that can be used to compute the duration of an operation. Timers - * are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in - * suitable time units to `stdout`. For example, if the elapsed - * time is 3869ms, `console.timeEnd()` displays "3.869s". - * @since v0.1.104 - */ - time(label?: string): void; - /** - * Stops a timer that was previously started by calling {@link time} and - * prints the result to `stdout`: - * - * ```js - * console.time('100-elements'); - * for (let i = 0; i < 100; i++) {} - * console.timeEnd('100-elements'); - * // prints 100-elements: 225.438ms - * ``` - * @since v0.1.104 - */ - timeEnd(label?: string): void; - /** - * For a timer that was previously started by calling {@link time}, prints - * the elapsed time and other `data` arguments to `stdout`: - * - * ```js - * console.time('process'); - * const value = expensiveProcess1(); // Returns 42 - * console.timeLog('process', value); - * // Prints "process: 365.227ms 42". - * doExpensiveProcess2(value); - * console.timeEnd('process'); - * ``` - * @since v10.7.0 - */ - timeLog(label?: string, ...data: any[]): void; - /** - * Prints to `stderr` the string `'Trace: '`, followed by the `util.format()` formatted message and stack trace to the current position in the code. - * - * ```js - * console.trace('Show me'); - * // Prints: (stack trace will vary based on where trace is called) - * // Trace: Show me - * // at repl:2:9 - * // at REPLServer.defaultEval (repl.js:248:27) - * // at bound (domain.js:287:14) - * // at REPLServer.runBound [as eval] (domain.js:300:12) - * // at REPLServer. (repl.js:412:12) - * // at emitOne (events.js:82:20) - * // at REPLServer.emit (events.js:169:7) - * // at REPLServer.Interface._onLine (readline.js:210:10) - * // at REPLServer.Interface._line (readline.js:549:8) - * // at REPLServer.Interface._ttyWrite (readline.js:826:14) - * ``` - * @since v0.1.104 - */ - trace(message?: any, ...optionalParams: any[]): void; - /** - * The `console.warn()` function is an alias for {@link error}. - * @since v0.1.100 - */ - warn(message?: any, ...optionalParams: any[]): void; - // --- Inspector mode only --- - /** - * This method does not display anything unless used in the inspector. - * Starts a JavaScript CPU profile with an optional label. - */ - profile(label?: string): void; - /** - * This method does not display anything unless used in the inspector. - * Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector. - */ - profileEnd(label?: string): void; - /** - * This method does not display anything unless used in the inspector. - * Adds an event with the label `label` to the Timeline panel of the inspector. - */ - timeStamp(label?: string): void; - } - /** - * The `console` module provides a simple debugging console that is similar to the - * JavaScript console mechanism provided by web browsers. - * - * The module exports two specific components: - * - * * A `Console` class with methods such as `console.log()`, `console.error()` and`console.warn()` that can be used to write to any Node.js stream. - * * A global `console` instance configured to write to `process.stdout` and `process.stderr`. The global `console` can be used without calling`require('console')`. - * - * _**Warning**_: The global console object's methods are neither consistently - * synchronous like the browser APIs they resemble, nor are they consistently - * asynchronous like all other Node.js streams. See the `note on process I/O` for - * more information. - * - * Example using the global `console`: - * - * ```js - * console.log('hello world'); - * // Prints: hello world, to stdout - * console.log('hello %s', 'world'); - * // Prints: hello world, to stdout - * console.error(new Error('Whoops, something bad happened')); - * // Prints error message and stack trace to stderr: - * // Error: Whoops, something bad happened - * // at [eval]:5:15 - * // at Script.runInThisContext (node:vm:132:18) - * // at Object.runInThisContext (node:vm:309:38) - * // at node:internal/process/execution:77:19 - * // at [eval]-wrapper:6:22 - * // at evalScript (node:internal/process/execution:76:60) - * // at node:internal/main/eval_string:23:3 - * - * const name = 'Will Robinson'; - * console.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to stderr - * ``` - * - * Example using the `Console` class: - * - * ```js - * const out = getStreamSomehow(); - * const err = getStreamSomehow(); - * const myConsole = new console.Console(out, err); - * - * myConsole.log('hello world'); - * // Prints: hello world, to out - * myConsole.log('hello %s', 'world'); - * // Prints: hello world, to out - * myConsole.error(new Error('Whoops, something bad happened')); - * // Prints: [Error: Whoops, something bad happened], to err - * - * const name = 'Will Robinson'; - * myConsole.warn(`Danger ${name}! Danger!`); - * // Prints: Danger Will Robinson! Danger!, to err - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/console.js) - */ - namespace console { - interface ConsoleConstructorOptions { - stdout: NodeJS.WritableStream; - stderr?: NodeJS.WritableStream | undefined; - ignoreErrors?: boolean | undefined; - colorMode?: boolean | 'auto' | undefined; - inspectOptions?: InspectOptions | undefined; - } - interface ConsoleConstructor { - prototype: Console; - new (stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): Console; - new (options: ConsoleConstructorOptions): Console; - } - } - var console: Console; - } - export = globalThis.console; -} diff --git a/WechatBot/node_modules/@types/node/constants.d.ts b/WechatBot/node_modules/@types/node/constants.d.ts deleted file mode 100644 index 208020dcb..000000000 --- a/WechatBot/node_modules/@types/node/constants.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ -declare module 'constants' { - import { constants as osConstants, SignalConstants } from 'node:os'; - import { constants as cryptoConstants } from 'node:crypto'; - import { constants as fsConstants } from 'node:fs'; - - const exp: typeof osConstants.errno & - typeof osConstants.priority & - SignalConstants & - typeof cryptoConstants & - typeof fsConstants; - export = exp; -} - -declare module 'node:constants' { - import constants = require('constants'); - export = constants; -} diff --git a/WechatBot/node_modules/@types/node/crypto.d.ts b/WechatBot/node_modules/@types/node/crypto.d.ts deleted file mode 100644 index 8b7c1a30a..000000000 --- a/WechatBot/node_modules/@types/node/crypto.d.ts +++ /dev/null @@ -1,3243 +0,0 @@ -/** - * The `crypto` module provides cryptographic functionality that includes a set of - * wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions. - * - * ```js - * const { createHmac } = await import('crypto'); - * - * const secret = 'abcdefg'; - * const hash = createHmac('sha256', secret) - * .update('I love cupcakes') - * .digest('hex'); - * console.log(hash); - * // Prints: - * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/crypto.js) - */ -declare module 'crypto' { - import * as stream from 'node:stream'; - import { PeerCertificate } from 'node:tls'; - interface Certificate { - /** - * @deprecated - * @param spkac - * @returns The challenge component of the `spkac` data structure, - * which includes a public key and a challenge. - */ - exportChallenge(spkac: BinaryLike): Buffer; - /** - * @deprecated - * @param spkac - * @param encoding The encoding of the spkac string. - * @returns The public key component of the `spkac` data structure, - * which includes a public key and a challenge. - */ - exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer; - /** - * @deprecated - * @param spkac - * @returns `true` if the given `spkac` data structure is valid, - * `false` otherwise. - */ - verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; - } - const Certificate: Certificate & { - /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */ - new (): Certificate; - /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */ - (): Certificate; - /** - * @param spkac - * @returns The challenge component of the `spkac` data structure, - * which includes a public key and a challenge. - */ - exportChallenge(spkac: BinaryLike): Buffer; - /** - * @param spkac - * @param encoding The encoding of the spkac string. - * @returns The public key component of the `spkac` data structure, - * which includes a public key and a challenge. - */ - exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer; - /** - * @param spkac - * @returns `true` if the given `spkac` data structure is valid, - * `false` otherwise. - */ - verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; - }; - namespace constants { - // https://nodejs.org/dist/latest-v10.x/docs/api/crypto.html#crypto_crypto_constants - const OPENSSL_VERSION_NUMBER: number; - /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */ - const SSL_OP_ALL: number; - /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ - const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number; - /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ - const SSL_OP_CIPHER_SERVER_PREFERENCE: number; - /** Instructs OpenSSL to use Cisco's "speshul" version of DTLS_BAD_VER. */ - const SSL_OP_CISCO_ANYCONNECT: number; - /** Instructs OpenSSL to turn on cookie exchange. */ - const SSL_OP_COOKIE_EXCHANGE: number; - /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */ - const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number; - /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */ - const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number; - /** Instructs OpenSSL to always use the tmp_rsa key when performing RSA operations. */ - const SSL_OP_EPHEMERAL_RSA: number; - /** Allows initial connection to servers that do not support RI. */ - const SSL_OP_LEGACY_SERVER_CONNECT: number; - const SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number; - const SSL_OP_MICROSOFT_SESS_ID_BUG: number; - /** Instructs OpenSSL to disable the workaround for a man-in-the-middle protocol-version vulnerability in the SSL 2.0 server implementation. */ - const SSL_OP_MSIE_SSLV2_RSA_PADDING: number; - const SSL_OP_NETSCAPE_CA_DN_BUG: number; - const SSL_OP_NETSCAPE_CHALLENGE_BUG: number; - const SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number; - const SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number; - /** Instructs OpenSSL to disable support for SSL/TLS compression. */ - const SSL_OP_NO_COMPRESSION: number; - const SSL_OP_NO_QUERY_MTU: number; - /** Instructs OpenSSL to always start a new session when performing renegotiation. */ - const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number; - const SSL_OP_NO_SSLv2: number; - const SSL_OP_NO_SSLv3: number; - const SSL_OP_NO_TICKET: number; - const SSL_OP_NO_TLSv1: number; - const SSL_OP_NO_TLSv1_1: number; - const SSL_OP_NO_TLSv1_2: number; - const SSL_OP_PKCS1_CHECK_1: number; - const SSL_OP_PKCS1_CHECK_2: number; - /** Instructs OpenSSL to always create a new key when using temporary/ephemeral DH parameters. */ - const SSL_OP_SINGLE_DH_USE: number; - /** Instructs OpenSSL to always create a new key when using temporary/ephemeral ECDH parameters. */ - const SSL_OP_SINGLE_ECDH_USE: number; - const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number; - const SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number; - const SSL_OP_TLS_BLOCK_PADDING_BUG: number; - const SSL_OP_TLS_D5_BUG: number; - /** Instructs OpenSSL to disable version rollback attack detection. */ - const SSL_OP_TLS_ROLLBACK_BUG: number; - const ENGINE_METHOD_RSA: number; - const ENGINE_METHOD_DSA: number; - const ENGINE_METHOD_DH: number; - const ENGINE_METHOD_RAND: number; - const ENGINE_METHOD_EC: number; - const ENGINE_METHOD_CIPHERS: number; - const ENGINE_METHOD_DIGESTS: number; - const ENGINE_METHOD_PKEY_METHS: number; - const ENGINE_METHOD_PKEY_ASN1_METHS: number; - const ENGINE_METHOD_ALL: number; - const ENGINE_METHOD_NONE: number; - const DH_CHECK_P_NOT_SAFE_PRIME: number; - const DH_CHECK_P_NOT_PRIME: number; - const DH_UNABLE_TO_CHECK_GENERATOR: number; - const DH_NOT_SUITABLE_GENERATOR: number; - const ALPN_ENABLED: number; - const RSA_PKCS1_PADDING: number; - const RSA_SSLV23_PADDING: number; - const RSA_NO_PADDING: number; - const RSA_PKCS1_OAEP_PADDING: number; - const RSA_X931_PADDING: number; - const RSA_PKCS1_PSS_PADDING: number; - /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */ - const RSA_PSS_SALTLEN_DIGEST: number; - /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */ - const RSA_PSS_SALTLEN_MAX_SIGN: number; - /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */ - const RSA_PSS_SALTLEN_AUTO: number; - const POINT_CONVERSION_COMPRESSED: number; - const POINT_CONVERSION_UNCOMPRESSED: number; - const POINT_CONVERSION_HYBRID: number; - /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */ - const defaultCoreCipherList: string; - /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */ - const defaultCipherList: string; - } - interface HashOptions extends stream.TransformOptions { - /** - * For XOF hash functions such as `shake256`, the - * outputLength option can be used to specify the desired output length in bytes. - */ - outputLength?: number | undefined; - } - /** @deprecated since v10.0.0 */ - const fips: boolean; - /** - * Creates and returns a `Hash` object that can be used to generate hash digests - * using the given `algorithm`. Optional `options` argument controls stream - * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option - * can be used to specify the desired output length in bytes. - * - * The `algorithm` is dependent on the available algorithms supported by the - * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. - * On recent releases of OpenSSL, `openssl list -digest-algorithms`(`openssl list-message-digest-algorithms` for older versions of OpenSSL) will - * display the available digest algorithms. - * - * Example: generating the sha256 sum of a file - * - * ```js - * import { - * createReadStream - * } from 'fs'; - * import { argv } from 'process'; - * const { - * createHash - * } = await import('crypto'); - * - * const filename = argv[2]; - * - * const hash = createHash('sha256'); - * - * const input = createReadStream(filename); - * input.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = input.read(); - * if (data) - * hash.update(data); - * else { - * console.log(`${hash.digest('hex')} ${filename}`); - * } - * }); - * ``` - * @since v0.1.92 - * @param options `stream.transform` options - */ - function createHash(algorithm: string, options?: HashOptions): Hash; - /** - * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`. - * Optional `options` argument controls stream behavior. - * - * The `algorithm` is dependent on the available algorithms supported by the - * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. - * On recent releases of OpenSSL, `openssl list -digest-algorithms`(`openssl list-message-digest-algorithms` for older versions of OpenSSL) will - * display the available digest algorithms. - * - * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is - * a `KeyObject`, its type must be `secret`. - * - * Example: generating the sha256 HMAC of a file - * - * ```js - * import { - * createReadStream - * } from 'fs'; - * import { argv } from 'process'; - * const { - * createHmac - * } = await import('crypto'); - * - * const filename = argv[2]; - * - * const hmac = createHmac('sha256', 'a secret'); - * - * const input = createReadStream(filename); - * input.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = input.read(); - * if (data) - * hmac.update(data); - * else { - * console.log(`${hmac.digest('hex')} ${filename}`); - * } - * }); - * ``` - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac; - // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings - type BinaryToTextEncoding = 'base64' | 'hex'; - type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1'; - type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2'; - type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding; - type ECDHKeyFormat = 'compressed' | 'uncompressed' | 'hybrid'; - /** - * The `Hash` class is a utility for creating hash digests of data. It can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where data is written - * to produce a computed hash digest on the readable side, or - * * Using the `hash.update()` and `hash.digest()` methods to produce the - * computed hash. - * - * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword. - * - * Example: Using `Hash` objects as streams: - * - * ```js - * const { - * createHash - * } = await import('crypto'); - * - * const hash = createHash('sha256'); - * - * hash.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = hash.read(); - * if (data) { - * console.log(data.toString('hex')); - * // Prints: - * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 - * } - * }); - * - * hash.write('some data to hash'); - * hash.end(); - * ``` - * - * Example: Using `Hash` and piped streams: - * - * ```js - * import { createReadStream } from 'fs'; - * import { stdout } from 'process'; - * const { createHash } = await import('crypto'); - * - * const hash = createHash('sha256'); - * - * const input = createReadStream('test.js'); - * input.pipe(hash).setEncoding('hex').pipe(stdout); - * ``` - * - * Example: Using the `hash.update()` and `hash.digest()` methods: - * - * ```js - * const { - * createHash - * } = await import('crypto'); - * - * const hash = createHash('sha256'); - * - * hash.update('some data to hash'); - * console.log(hash.digest('hex')); - * // Prints: - * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 - * ``` - * @since v0.1.92 - */ - class Hash extends stream.Transform { - private constructor(); - /** - * Creates a new `Hash` object that contains a deep copy of the internal state - * of the current `Hash` object. - * - * The optional `options` argument controls stream behavior. For XOF hash - * functions such as `'shake256'`, the `outputLength` option can be used to - * specify the desired output length in bytes. - * - * An error is thrown when an attempt is made to copy the `Hash` object after - * its `hash.digest()` method has been called. - * - * ```js - * // Calculate a rolling hash. - * const { - * createHash - * } = await import('crypto'); - * - * const hash = createHash('sha256'); - * - * hash.update('one'); - * console.log(hash.copy().digest('hex')); - * - * hash.update('two'); - * console.log(hash.copy().digest('hex')); - * - * hash.update('three'); - * console.log(hash.copy().digest('hex')); - * - * // Etc. - * ``` - * @since v13.1.0 - * @param options `stream.transform` options - */ - copy(options?: stream.TransformOptions): Hash; - /** - * Updates the hash content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Hash; - update(data: string, inputEncoding: Encoding): Hash; - /** - * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method). - * If `encoding` is provided a string will be returned; otherwise - * a `Buffer` is returned. - * - * The `Hash` object can not be used again after `hash.digest()` method has been - * called. Multiple calls will cause an error to be thrown. - * @since v0.1.92 - * @param encoding The `encoding` of the return value. - */ - digest(): Buffer; - digest(encoding: BinaryToTextEncoding): string; - } - /** - * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can - * be used in one of two ways: - * - * * As a `stream` that is both readable and writable, where data is written - * to produce a computed HMAC digest on the readable side, or - * * Using the `hmac.update()` and `hmac.digest()` methods to produce the - * computed HMAC digest. - * - * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword. - * - * Example: Using `Hmac` objects as streams: - * - * ```js - * const { - * createHmac - * } = await import('crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * hmac.on('readable', () => { - * // Only one element is going to be produced by the - * // hash stream. - * const data = hmac.read(); - * if (data) { - * console.log(data.toString('hex')); - * // Prints: - * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e - * } - * }); - * - * hmac.write('some data to hash'); - * hmac.end(); - * ``` - * - * Example: Using `Hmac` and piped streams: - * - * ```js - * import { createReadStream } from 'fs'; - * import { stdout } from 'process'; - * const { - * createHmac - * } = await import('crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * const input = createReadStream('test.js'); - * input.pipe(hmac).pipe(stdout); - * ``` - * - * Example: Using the `hmac.update()` and `hmac.digest()` methods: - * - * ```js - * const { - * createHmac - * } = await import('crypto'); - * - * const hmac = createHmac('sha256', 'a secret'); - * - * hmac.update('some data to hash'); - * console.log(hmac.digest('hex')); - * // Prints: - * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e - * ``` - * @since v0.1.94 - */ - class Hmac extends stream.Transform { - private constructor(); - /** - * Updates the `Hmac` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Hmac; - update(data: string, inputEncoding: Encoding): Hmac; - /** - * Calculates the HMAC digest of all of the data passed using `hmac.update()`. - * If `encoding` is - * provided a string is returned; otherwise a `Buffer` is returned; - * - * The `Hmac` object can not be used again after `hmac.digest()` has been - * called. Multiple calls to `hmac.digest()` will result in an error being thrown. - * @since v0.1.94 - * @param encoding The `encoding` of the return value. - */ - digest(): Buffer; - digest(encoding: BinaryToTextEncoding): string; - } - type KeyObjectType = 'secret' | 'public' | 'private'; - interface KeyExportOptions { - type: 'pkcs1' | 'spki' | 'pkcs8' | 'sec1'; - format: T; - cipher?: string | undefined; - passphrase?: string | Buffer | undefined; - } - interface JwkKeyExportOptions { - format: 'jwk'; - } - interface JsonWebKey { - crv?: string | undefined; - d?: string | undefined; - dp?: string | undefined; - dq?: string | undefined; - e?: string | undefined; - k?: string | undefined; - kty?: string | undefined; - n?: string | undefined; - p?: string | undefined; - q?: string | undefined; - qi?: string | undefined; - x?: string | undefined; - y?: string | undefined; - [key: string]: unknown; - } - interface AsymmetricKeyDetails { - /** - * Key size in bits (RSA, DSA). - */ - modulusLength?: number | undefined; - /** - * Public exponent (RSA). - */ - publicExponent?: bigint | undefined; - /** - * Name of the message digest (RSA-PSS). - */ - hashAlgorithm?: string | undefined; - /** - * Name of the message digest used by MGF1 (RSA-PSS). - */ - mgf1HashAlgorithm?: string | undefined; - /** - * Minimal salt length in bytes (RSA-PSS). - */ - saltLength?: number | undefined; - /** - * Size of q in bits (DSA). - */ - divisorLength?: number | undefined; - /** - * Name of the curve (EC). - */ - namedCurve?: string | undefined; - } - interface JwkKeyExportOptions { - format: 'jwk'; - } - /** - * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key, - * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject` - * objects are not to be created directly using the `new`keyword. - * - * Most applications should consider using the new `KeyObject` API instead of - * passing keys as strings or `Buffer`s due to improved security features. - * - * `KeyObject` instances can be passed to other threads via `postMessage()`. - * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to - * be listed in the `transferList` argument. - * @since v11.6.0 - */ - class KeyObject { - private constructor(); - /** - * @since v15.0.0 - */ - static from(key: webcrypto.CryptoKey): KeyObject; - /** - * For asymmetric keys, this property represents the type of the key. Supported key - * types are: - * - * * `'rsa'` (OID 1.2.840.113549.1.1.1) - * * `'rsa-pss'` (OID 1.2.840.113549.1.1.10) - * * `'dsa'` (OID 1.2.840.10040.4.1) - * * `'ec'` (OID 1.2.840.10045.2.1) - * * `'x25519'` (OID 1.3.101.110) - * * `'x448'` (OID 1.3.101.111) - * * `'ed25519'` (OID 1.3.101.112) - * * `'ed448'` (OID 1.3.101.113) - * * `'dh'` (OID 1.2.840.113549.1.3.1) - * - * This property is `undefined` for unrecognized `KeyObject` types and symmetric - * keys. - * @since v11.6.0 - */ - asymmetricKeyType?: KeyType | undefined; - /** - * For asymmetric keys, this property represents the size of the embedded key in - * bytes. This property is `undefined` for symmetric keys. - */ - asymmetricKeySize?: number | undefined; - /** - * This property exists only on asymmetric keys. Depending on the type of the key, - * this object contains information about the key. None of the information obtained - * through this property can be used to uniquely identify a key or to compromise - * the security of the key. - * - * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence, - * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be - * set. - * - * Other key details might be exposed via this API using additional attributes. - * @since v15.7.0 - */ - asymmetricKeyDetails?: AsymmetricKeyDetails | undefined; - /** - * For symmetric keys, the following encoding options can be used: - * - * For public keys, the following encoding options can be used: - * - * For private keys, the following encoding options can be used: - * - * The result type depends on the selected encoding format, when PEM the - * result is a string, when DER it will be a buffer containing the data - * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object. - * - * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are - * ignored. - * - * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of - * the `cipher` and `format` options. The PKCS#8 `type` can be used with any`format` to encrypt any key algorithm (RSA, EC, or DH) by specifying a`cipher`. PKCS#1 and SEC1 can only be - * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for - * encrypted private keys. Since PKCS#8 defines its own - * encryption mechanism, PEM-level encryption is not supported when encrypting - * a PKCS#8 key. See [RFC 5208](https://www.rfc-editor.org/rfc/rfc5208.txt) for PKCS#8 encryption and [RFC 1421](https://www.rfc-editor.org/rfc/rfc1421.txt) for - * PKCS#1 and SEC1 encryption. - * @since v11.6.0 - */ - export(options: KeyExportOptions<'pem'>): string | Buffer; - export(options?: KeyExportOptions<'der'>): Buffer; - export(options?: JwkKeyExportOptions): JsonWebKey; - /** - * For secret keys, this property represents the size of the key in bytes. This - * property is `undefined` for asymmetric keys. - * @since v11.6.0 - */ - symmetricKeySize?: number | undefined; - /** - * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys - * or `'private'` for private (asymmetric) keys. - * @since v11.6.0 - */ - type: KeyObjectType; - } - type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305'; - type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm'; - type BinaryLike = string | NodeJS.ArrayBufferView; - type CipherKey = BinaryLike | KeyObject; - interface CipherCCMOptions extends stream.TransformOptions { - authTagLength: number; - } - interface CipherGCMOptions extends stream.TransformOptions { - authTagLength?: number | undefined; - } - /** - * Creates and returns a `Cipher` object that uses the given `algorithm` and`password`. - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication - * tag that will be returned by `getAuthTag()` and defaults to 16 bytes. - * - * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On - * recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will - * display the available cipher algorithms. - * - * The `password` is used to derive the cipher key and initialization vector (IV). - * The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`. - * - * The implementation of `crypto.createCipher()` derives keys using the OpenSSL - * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) with the digest algorithm set to MD5, one - * iteration, and no salt. The lack of salt allows dictionary attacks as the same - * password always creates the same key. The low iteration count and - * non-cryptographically secure hash algorithm allow passwords to be tested very - * rapidly. - * - * In line with OpenSSL's recommendation to use a more modern algorithm instead of[`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that - * developers derive a key and IV on - * their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode - * (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when - * they are used in order to avoid the risk of IV reuse that causes - * vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details. - * @since v0.1.94 - * @deprecated Since v10.0.0 - Use {@link createCipheriv} instead. - * @param options `stream.transform` options - */ - function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM; - /** @deprecated since v10.0.0 use `createCipheriv()` */ - function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM; - /** @deprecated since v10.0.0 use `createCipheriv()` */ - function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher; - /** - * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and - * initialization vector (`iv`). - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication - * tag that will be returned by `getAuthTag()` and defaults to 16 bytes. - * - * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On - * recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will - * display the available cipher algorithms. - * - * The `key` is the raw key used by the `algorithm` and `iv` is an[initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded - * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be - * a `KeyObject` of type `secret`. If the cipher does not need - * an initialization vector, `iv` may be `null`. - * - * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * Initialization vectors should be unpredictable and unique; ideally, they will be - * cryptographically random. They do not have to be secret: IVs are typically just - * added to ciphertext messages unencrypted. It may sound contradictory that - * something has to be unpredictable and unique, but does not have to be secret; - * remember that an attacker must not be able to predict ahead of time what a - * given IV will be. - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike | null, options: CipherCCMOptions): CipherCCM; - function createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike | null, options?: CipherGCMOptions): CipherGCM; - function createCipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Cipher; - /** - * Instances of the `Cipher` class are used to encrypt data. The class can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where plain unencrypted - * data is written to produce encrypted data on the readable side, or - * * Using the `cipher.update()` and `cipher.final()` methods to produce - * the encrypted data. - * - * The {@link createCipher} or {@link createCipheriv} methods are - * used to create `Cipher` instances. `Cipher` objects are not to be created - * directly using the `new` keyword. - * - * Example: Using `Cipher` objects as streams: - * - * ```js - * const { - * scrypt, - * randomFill, - * createCipheriv - * } = await import('crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * // Once we have the key and iv, we can create and use the cipher... - * const cipher = createCipheriv(algorithm, key, iv); - * - * let encrypted = ''; - * cipher.setEncoding('hex'); - * - * cipher.on('data', (chunk) => encrypted += chunk); - * cipher.on('end', () => console.log(encrypted)); - * - * cipher.write('some clear text data'); - * cipher.end(); - * }); - * }); - * ``` - * - * Example: Using `Cipher` and piped streams: - * - * ```js - * import { - * createReadStream, - * createWriteStream, - * } from 'fs'; - * - * import { - * pipeline - * } from 'stream'; - * - * const { - * scrypt, - * randomFill, - * createCipheriv - * } = await import('crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * const cipher = createCipheriv(algorithm, key, iv); - * - * const input = createReadStream('test.js'); - * const output = createWriteStream('test.enc'); - * - * pipeline(input, cipher, output, (err) => { - * if (err) throw err; - * }); - * }); - * }); - * ``` - * - * Example: Using the `cipher.update()` and `cipher.final()` methods: - * - * ```js - * const { - * scrypt, - * randomFill, - * createCipheriv - * } = await import('crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * - * // First, we'll generate the key. The key length is dependent on the algorithm. - * // In this case for aes192, it is 24 bytes (192 bits). - * scrypt(password, 'salt', 24, (err, key) => { - * if (err) throw err; - * // Then, we'll generate a random initialization vector - * randomFill(new Uint8Array(16), (err, iv) => { - * if (err) throw err; - * - * const cipher = createCipheriv(algorithm, key, iv); - * - * let encrypted = cipher.update('some clear text data', 'utf8', 'hex'); - * encrypted += cipher.final('hex'); - * console.log(encrypted); - * }); - * }); - * ``` - * @since v0.1.94 - */ - class Cipher extends stream.Transform { - private constructor(); - /** - * Updates the cipher with `data`. If the `inputEncoding` argument is given, - * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or`DataView`. If `data` is a `Buffer`, - * `TypedArray`, or `DataView`, then`inputEncoding` is ignored. - * - * The `outputEncoding` specifies the output format of the enciphered - * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned. - * - * The `cipher.update()` method can be called multiple times with new data until `cipher.final()` is called. Calling `cipher.update()` after `cipher.final()` will result in an error being - * thrown. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the data. - * @param outputEncoding The `encoding` of the return value. - */ - update(data: BinaryLike): Buffer; - update(data: string, inputEncoding: Encoding): Buffer; - update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; - update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; - /** - * Once the `cipher.final()` method has been called, the `Cipher` object can no - * longer be used to encrypt data. Attempts to call `cipher.final()` more than - * once will result in an error being thrown. - * @since v0.1.94 - * @param outputEncoding The `encoding` of the return value. - * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. - */ - final(): Buffer; - final(outputEncoding: BufferEncoding): string; - /** - * When using block encryption algorithms, the `Cipher` class will automatically - * add padding to the input data to the appropriate block size. To disable the - * default padding call `cipher.setAutoPadding(false)`. - * - * When `autoPadding` is `false`, the length of the entire input data must be a - * multiple of the cipher's block size or `cipher.final()` will throw an error. - * Disabling automatic padding is useful for non-standard padding, for instance - * using `0x0` instead of PKCS padding. - * - * The `cipher.setAutoPadding()` method must be called before `cipher.final()`. - * @since v0.7.1 - * @param [autoPadding=true] - * @return for method chaining. - */ - setAutoPadding(autoPadding?: boolean): this; - } - interface CipherCCM extends Cipher { - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - } - ): this; - getAuthTag(): Buffer; - } - interface CipherGCM extends Cipher { - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - } - ): this; - getAuthTag(): Buffer; - } - /** - * Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key). - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. - * - * The implementation of `crypto.createDecipher()` derives keys using the OpenSSL - * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) with the digest algorithm set to MD5, one - * iteration, and no salt. The lack of salt allows dictionary attacks as the same - * password always creates the same key. The low iteration count and - * non-cryptographically secure hash algorithm allow passwords to be tested very - * rapidly. - * - * In line with OpenSSL's recommendation to use a more modern algorithm instead of[`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that - * developers derive a key and IV on - * their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object. - * @since v0.1.94 - * @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead. - * @param options `stream.transform` options - */ - function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM; - /** @deprecated since v10.0.0 use `createDecipheriv()` */ - function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM; - /** @deprecated since v10.0.0 use `createDecipheriv()` */ - function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; - /** - * Creates and returns a `Decipher` object that uses the given `algorithm`, `key`and initialization vector (`iv`). - * - * The `options` argument controls stream behavior and is optional except when a - * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the - * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to restrict accepted authentication tags - * to those with the specified length. - * - * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On - * recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will - * display the available cipher algorithms. - * - * The `key` is the raw key used by the `algorithm` and `iv` is an[initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded - * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be - * a `KeyObject` of type `secret`. If the cipher does not need - * an initialization vector, `iv` may be `null`. - * - * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * Initialization vectors should be unpredictable and unique; ideally, they will be - * cryptographically random. They do not have to be secret: IVs are typically just - * added to ciphertext messages unencrypted. It may sound contradictory that - * something has to be unpredictable and unique, but does not have to be secret; - * remember that an attacker must not be able to predict ahead of time what a given - * IV will be. - * @since v0.1.94 - * @param options `stream.transform` options - */ - function createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike | null, options: CipherCCMOptions): DecipherCCM; - function createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike | null, options?: CipherGCMOptions): DecipherGCM; - function createDecipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher; - /** - * Instances of the `Decipher` class are used to decrypt data. The class can be - * used in one of two ways: - * - * * As a `stream` that is both readable and writable, where plain encrypted - * data is written to produce unencrypted data on the readable side, or - * * Using the `decipher.update()` and `decipher.final()` methods to - * produce the unencrypted data. - * - * The {@link createDecipher} or {@link createDecipheriv} methods are - * used to create `Decipher` instances. `Decipher` objects are not to be created - * directly using the `new` keyword. - * - * Example: Using `Decipher` objects as streams: - * - * ```js - * import { Buffer } from 'buffer'; - * const { - * scryptSync, - * createDecipheriv - * } = await import('crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Key length is dependent on the algorithm. In this case for aes192, it is - * // 24 bytes (192 bits). - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * let decrypted = ''; - * decipher.on('readable', () => { - * while (null !== (chunk = decipher.read())) { - * decrypted += chunk.toString('utf8'); - * } - * }); - * decipher.on('end', () => { - * console.log(decrypted); - * // Prints: some clear text data - * }); - * - * // Encrypted with same algorithm, key and iv. - * const encrypted = - * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; - * decipher.write(encrypted, 'hex'); - * decipher.end(); - * ``` - * - * Example: Using `Decipher` and piped streams: - * - * ```js - * import { - * createReadStream, - * createWriteStream, - * } from 'fs'; - * import { Buffer } from 'buffer'; - * const { - * scryptSync, - * createDecipheriv - * } = await import('crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * const input = createReadStream('test.enc'); - * const output = createWriteStream('test.js'); - * - * input.pipe(decipher).pipe(output); - * ``` - * - * Example: Using the `decipher.update()` and `decipher.final()` methods: - * - * ```js - * import { Buffer } from 'buffer'; - * const { - * scryptSync, - * createDecipheriv - * } = await import('crypto'); - * - * const algorithm = 'aes-192-cbc'; - * const password = 'Password used to generate key'; - * // Use the async `crypto.scrypt()` instead. - * const key = scryptSync(password, 'salt', 24); - * // The IV is usually passed along with the ciphertext. - * const iv = Buffer.alloc(16, 0); // Initialization vector. - * - * const decipher = createDecipheriv(algorithm, key, iv); - * - * // Encrypted using same algorithm, key and iv. - * const encrypted = - * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; - * let decrypted = decipher.update(encrypted, 'hex', 'utf8'); - * decrypted += decipher.final('utf8'); - * console.log(decrypted); - * // Prints: some clear text data - * ``` - * @since v0.1.94 - */ - class Decipher extends stream.Transform { - private constructor(); - /** - * Updates the decipher with `data`. If the `inputEncoding` argument is given, - * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is - * ignored. - * - * The `outputEncoding` specifies the output format of the enciphered - * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned. - * - * The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error - * being thrown. - * @since v0.1.94 - * @param inputEncoding The `encoding` of the `data` string. - * @param outputEncoding The `encoding` of the return value. - */ - update(data: NodeJS.ArrayBufferView): Buffer; - update(data: string, inputEncoding: Encoding): Buffer; - update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; - update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; - /** - * Once the `decipher.final()` method has been called, the `Decipher` object can - * no longer be used to decrypt data. Attempts to call `decipher.final()` more - * than once will result in an error being thrown. - * @since v0.1.94 - * @param outputEncoding The `encoding` of the return value. - * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. - */ - final(): Buffer; - final(outputEncoding: BufferEncoding): string; - /** - * When data has been encrypted without standard block padding, calling`decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and - * removing padding. - * - * Turning auto padding off will only work if the input data's length is a - * multiple of the ciphers block size. - * - * The `decipher.setAutoPadding()` method must be called before `decipher.final()`. - * @since v0.7.1 - * @param [autoPadding=true] - * @return for method chaining. - */ - setAutoPadding(auto_padding?: boolean): this; - } - interface DecipherCCM extends Decipher { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options: { - plaintextLength: number; - } - ): this; - } - interface DecipherGCM extends Decipher { - setAuthTag(buffer: NodeJS.ArrayBufferView): this; - setAAD( - buffer: NodeJS.ArrayBufferView, - options?: { - plaintextLength: number; - } - ): this; - } - interface PrivateKeyInput { - key: string | Buffer; - format?: KeyFormat | undefined; - type?: 'pkcs1' | 'pkcs8' | 'sec1' | undefined; - passphrase?: string | Buffer | undefined; - } - interface PublicKeyInput { - key: string | Buffer; - format?: KeyFormat | undefined; - type?: 'pkcs1' | 'spki' | undefined; - } - /** - * Asynchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`. - * - * ```js - * const { - * generateKey - * } = await import('crypto'); - * - * generateKey('hmac', { length: 64 }, (err, key) => { - * if (err) throw err; - * console.log(key.export().toString('hex')); // 46e..........620 - * }); - * ``` - * @since v15.0.0 - * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`. - */ - function generateKey( - type: 'hmac' | 'aes', - options: { - length: number; - }, - callback: (err: Error | null, key: KeyObject) => void - ): void; - interface JsonWebKeyInput { - key: JsonWebKey; - format: 'jwk'; - } - /** - * Creates and returns a new key object containing a private key. If `key` is a - * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key`must be an object with the properties described above. - * - * If the private key is encrypted, a `passphrase` must be specified. The length - * of the passphrase is limited to 1024 bytes. - * @since v11.6.0 - */ - function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject; - /** - * Creates and returns a new key object containing a public key. If `key` is a - * string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject`with type `'private'`, the public key is derived from the given private key; - * otherwise, `key` must be an object with the properties described above. - * - * If the format is `'pem'`, the `'key'` may also be an X.509 certificate. - * - * Because public keys can be derived from private keys, a private key may be - * passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the - * returned `KeyObject` will be `'public'` and that the private key cannot be - * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type`'private'` is given, a new `KeyObject` with type `'public'` will be returned - * and it will be impossible to extract the private key from the returned object. - * @since v11.6.0 - */ - function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject; - /** - * Creates and returns a new key object containing a secret key for symmetric - * encryption or `Hmac`. - * @since v11.6.0 - * @param encoding The string encoding when `key` is a string. - */ - function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject; - function createSecretKey(key: string, encoding: BufferEncoding): KeyObject; - /** - * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms. - * Optional `options` argument controls the `stream.Writable` behavior. - * - * In some cases, a `Sign` instance can be created using the name of a signature - * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use - * the corresponding digest algorithm. This does not work for all signature - * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest - * algorithm names. - * @since v0.1.92 - * @param options `stream.Writable` options - */ - function createSign(algorithm: string, options?: stream.WritableOptions): Sign; - type DSAEncoding = 'der' | 'ieee-p1363'; - interface SigningOptions { - /** - * @See crypto.constants.RSA_PKCS1_PADDING - */ - padding?: number | undefined; - saltLength?: number | undefined; - dsaEncoding?: DSAEncoding | undefined; - } - interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {} - interface SignKeyObjectInput extends SigningOptions { - key: KeyObject; - } - interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {} - interface VerifyKeyObjectInput extends SigningOptions { - key: KeyObject; - } - type KeyLike = string | Buffer | KeyObject; - /** - * The `Sign` class is a utility for generating signatures. It can be used in one - * of two ways: - * - * * As a writable `stream`, where data to be signed is written and the `sign.sign()` method is used to generate and return the signature, or - * * Using the `sign.update()` and `sign.sign()` methods to produce the - * signature. - * - * The {@link createSign} method is used to create `Sign` instances. The - * argument is the string name of the hash function to use. `Sign` objects are not - * to be created directly using the `new` keyword. - * - * Example: Using `Sign` and `Verify` objects as streams: - * - * ```js - * const { - * generateKeyPairSync, - * createSign, - * createVerify - * } = await import('crypto'); - * - * const { privateKey, publicKey } = generateKeyPairSync('ec', { - * namedCurve: 'sect239k1' - * }); - * - * const sign = createSign('SHA256'); - * sign.write('some data to sign'); - * sign.end(); - * const signature = sign.sign(privateKey, 'hex'); - * - * const verify = createVerify('SHA256'); - * verify.write('some data to sign'); - * verify.end(); - * console.log(verify.verify(publicKey, signature, 'hex')); - * // Prints: true - * ``` - * - * Example: Using the `sign.update()` and `verify.update()` methods: - * - * ```js - * const { - * generateKeyPairSync, - * createSign, - * createVerify - * } = await import('crypto'); - * - * const { privateKey, publicKey } = generateKeyPairSync('rsa', { - * modulusLength: 2048, - * }); - * - * const sign = createSign('SHA256'); - * sign.update('some data to sign'); - * sign.end(); - * const signature = sign.sign(privateKey); - * - * const verify = createVerify('SHA256'); - * verify.update('some data to sign'); - * verify.end(); - * console.log(verify.verify(publicKey, signature)); - * // Prints: true - * ``` - * @since v0.1.92 - */ - class Sign extends stream.Writable { - private constructor(); - /** - * Updates the `Sign` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `encoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): this; - update(data: string, inputEncoding: Encoding): this; - /** - * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the following additional properties can be passed: - * - * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned. - * - * The `Sign` object can not be again used after `sign.sign()` method has been - * called. Multiple calls to `sign.sign()` will result in an error being thrown. - * @since v0.1.92 - */ - sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer; - sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, outputFormat: BinaryToTextEncoding): string; - } - /** - * Creates and returns a `Verify` object that uses the given algorithm. - * Use {@link getHashes} to obtain an array of names of the available - * signing algorithms. Optional `options` argument controls the`stream.Writable` behavior. - * - * In some cases, a `Verify` instance can be created using the name of a signature - * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use - * the corresponding digest algorithm. This does not work for all signature - * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest - * algorithm names. - * @since v0.1.92 - * @param options `stream.Writable` options - */ - function createVerify(algorithm: string, options?: stream.WritableOptions): Verify; - /** - * The `Verify` class is a utility for verifying signatures. It can be used in one - * of two ways: - * - * * As a writable `stream` where written data is used to validate against the - * supplied signature, or - * * Using the `verify.update()` and `verify.verify()` methods to verify - * the signature. - * - * The {@link createVerify} method is used to create `Verify` instances.`Verify` objects are not to be created directly using the `new` keyword. - * - * See `Sign` for examples. - * @since v0.1.92 - */ - class Verify extends stream.Writable { - private constructor(); - /** - * Updates the `Verify` content with the given `data`, the encoding of which - * is given in `inputEncoding`. - * If `inputEncoding` is not provided, and the `data` is a string, an - * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. - * - * This can be called many times with new data as it is streamed. - * @since v0.1.92 - * @param inputEncoding The `encoding` of the `data` string. - */ - update(data: BinaryLike): Verify; - update(data: string, inputEncoding: Encoding): Verify; - /** - * Verifies the provided data using the given `object` and `signature`. - * - * If `object` is not a `KeyObject`, this function behaves as if`object` had been passed to {@link createPublicKey}. If it is an - * object, the following additional properties can be passed: - * - * The `signature` argument is the previously calculated signature for the data, in - * the `signatureEncoding`. - * If a `signatureEncoding` is specified, the `signature` is expected to be a - * string; otherwise `signature` is expected to be a `Buffer`,`TypedArray`, or `DataView`. - * - * The `verify` object can not be used again after `verify.verify()` has been - * called. Multiple calls to `verify.verify()` will result in an error being - * thrown. - * - * Because public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v0.1.92 - */ - verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean; - verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean; - } - /** - * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an - * optional specific `generator`. - * - * The `generator` argument can be a number, string, or `Buffer`. If`generator` is not specified, the value `2` is used. - * - * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise - * a `Buffer`, `TypedArray`, or `DataView` is expected. - * - * If `generatorEncoding` is specified, `generator` is expected to be a string; - * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected. - * @since v0.11.12 - * @param primeEncoding The `encoding` of the `prime` string. - * @param [generator=2] - * @param generatorEncoding The `encoding` of the `generator` string. - */ - function createDiffieHellman(primeLength: number, generator?: number | NodeJS.ArrayBufferView): DiffieHellman; - function createDiffieHellman(prime: NodeJS.ArrayBufferView): DiffieHellman; - function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding): DiffieHellman; - function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: number | NodeJS.ArrayBufferView): DiffieHellman; - function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: string, generatorEncoding: BinaryToTextEncoding): DiffieHellman; - /** - * The `DiffieHellman` class is a utility for creating Diffie-Hellman key - * exchanges. - * - * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function. - * - * ```js - * import assert from 'assert'; - * - * const { - * createDiffieHellman - * } = await import('crypto'); - * - * // Generate Alice's keys... - * const alice = createDiffieHellman(2048); - * const aliceKey = alice.generateKeys(); - * - * // Generate Bob's keys... - * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator()); - * const bobKey = bob.generateKeys(); - * - * // Exchange and generate the secret... - * const aliceSecret = alice.computeSecret(bobKey); - * const bobSecret = bob.computeSecret(aliceKey); - * - * // OK - * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); - * ``` - * @since v0.5.0 - */ - class DiffieHellman { - private constructor(); - /** - * Generates private and public Diffie-Hellman key values, and returns - * the public key in the specified `encoding`. This key should be - * transferred to the other party. - * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - generateKeys(): Buffer; - generateKeys(encoding: BinaryToTextEncoding): string; - /** - * Computes the shared secret using `otherPublicKey` as the other - * party's public key and returns the computed shared secret. The supplied - * key is interpreted using the specified `inputEncoding`, and secret is - * encoded using specified `outputEncoding`. - * If the `inputEncoding` is not - * provided, `otherPublicKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`. - * - * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned. - * @since v0.5.0 - * @param inputEncoding The `encoding` of an `otherPublicKey` string. - * @param outputEncoding The `encoding` of the return value. - */ - computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer; - computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer; - computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string; - computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman prime in the specified `encoding`. - * If `encoding` is provided a string is - * returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPrime(): Buffer; - getPrime(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman generator in the specified `encoding`. - * If `encoding` is provided a string is - * returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getGenerator(): Buffer; - getGenerator(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman public key in the specified `encoding`. - * If `encoding` is provided a - * string is returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPublicKey(): Buffer; - getPublicKey(encoding: BinaryToTextEncoding): string; - /** - * Returns the Diffie-Hellman private key in the specified `encoding`. - * If `encoding` is provided a - * string is returned; otherwise a `Buffer` is returned. - * @since v0.5.0 - * @param encoding The `encoding` of the return value. - */ - getPrivateKey(): Buffer; - getPrivateKey(encoding: BinaryToTextEncoding): string; - /** - * Sets the Diffie-Hellman public key. If the `encoding` argument is provided,`publicKey` is expected - * to be a string. If no `encoding` is provided, `publicKey` is expected - * to be a `Buffer`, `TypedArray`, or `DataView`. - * @since v0.5.0 - * @param encoding The `encoding` of the `publicKey` string. - */ - setPublicKey(publicKey: NodeJS.ArrayBufferView): void; - setPublicKey(publicKey: string, encoding: BufferEncoding): void; - /** - * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected - * to be a string. If no `encoding` is provided, `privateKey` is expected - * to be a `Buffer`, `TypedArray`, or `DataView`. - * @since v0.5.0 - * @param encoding The `encoding` of the `privateKey` string. - */ - setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; - setPrivateKey(privateKey: string, encoding: BufferEncoding): void; - /** - * A bit field containing any warnings and/or errors resulting from a check - * performed during initialization of the `DiffieHellman` object. - * - * The following values are valid for this property (as defined in `constants`module): - * - * * `DH_CHECK_P_NOT_SAFE_PRIME` - * * `DH_CHECK_P_NOT_PRIME` - * * `DH_UNABLE_TO_CHECK_GENERATOR` - * * `DH_NOT_SUITABLE_GENERATOR` - * @since v0.11.12 - */ - verifyError: number; - } - /** - * Creates a predefined `DiffieHellmanGroup` key exchange object. The - * supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in[RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`,`'modp16'`, `'modp17'`, - * `'modp18'` (defined in [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt)). The - * returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing - * the keys (with `diffieHellman.setPublicKey()`, for example). The - * advantage of using this method is that the parties do not have to - * generate nor exchange a group modulus beforehand, saving both processor - * and communication time. - * - * Example (obtaining a shared secret): - * - * ```js - * const { - * getDiffieHellman - * } = await import('crypto'); - * const alice = getDiffieHellman('modp14'); - * const bob = getDiffieHellman('modp14'); - * - * alice.generateKeys(); - * bob.generateKeys(); - * - * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex'); - * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex'); - * - * // aliceSecret and bobSecret should be the same - * console.log(aliceSecret === bobSecret); - * ``` - * @since v0.7.5 - */ - function getDiffieHellman(groupName: string): DiffieHellman; - /** - * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2) - * implementation. A selected HMAC digest algorithm specified by `digest` is - * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`. - * - * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an error occurs while deriving the key, `err` will be set; - * otherwise `err` will be `null`. By default, the successfully generated`derivedKey` will be passed to the callback as a `Buffer`. An error will be - * thrown if any of the input arguments specify invalid values or types. - * - * If `digest` is `null`, `'sha1'` will be used. This behavior is deprecated, - * please specify a `digest` explicitly. - * - * The `iterations` argument must be a number set as high as possible. The - * higher the number of iterations, the more secure the derived key will be, - * but will take a longer amount of time to complete. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * ```js - * const { - * pbkdf2 - * } = await import('crypto'); - * - * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' - * }); - * ``` - * - * The `crypto.DEFAULT_ENCODING` property can be used to change the way the`derivedKey` is passed to the callback. This property, however, has been - * deprecated and use should be avoided. - * - * ```js - * import crypto from 'crypto'; - * crypto.DEFAULT_ENCODING = 'hex'; - * crypto.pbkdf2('secret', 'salt', 100000, 512, 'sha512', (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey); // '3745e48...aa39b34' - * }); - * ``` - * - * An array of supported digest functions can be retrieved using {@link getHashes}. - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * @since v0.5.5 - */ - function pbkdf2(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string, callback: (err: Error | null, derivedKey: Buffer) => void): void; - /** - * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2) - * implementation. A selected HMAC digest algorithm specified by `digest` is - * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`. - * - * If an error occurs an `Error` will be thrown, otherwise the derived key will be - * returned as a `Buffer`. - * - * If `digest` is `null`, `'sha1'` will be used. This behavior is deprecated, - * please specify a `digest` explicitly. - * - * The `iterations` argument must be a number set as high as possible. The - * higher the number of iterations, the more secure the derived key will be, - * but will take a longer amount of time to complete. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * ```js - * const { - * pbkdf2Sync - * } = await import('crypto'); - * - * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512'); - * console.log(key.toString('hex')); // '3745e48...08d59ae' - * ``` - * - * The `crypto.DEFAULT_ENCODING` property may be used to change the way the`derivedKey` is returned. This property, however, is deprecated and use - * should be avoided. - * - * ```js - * import crypto from 'crypto'; - * crypto.DEFAULT_ENCODING = 'hex'; - * const key = crypto.pbkdf2Sync('secret', 'salt', 100000, 512, 'sha512'); - * console.log(key); // '3745e48...aa39b34' - * ``` - * - * An array of supported digest functions can be retrieved using {@link getHashes}. - * @since v0.9.3 - */ - function pbkdf2Sync(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string): Buffer; - /** - * Generates cryptographically strong pseudorandom data. The `size` argument - * is a number indicating the number of bytes to generate. - * - * If a `callback` function is provided, the bytes are generated asynchronously - * and the `callback` function is invoked with two arguments: `err` and `buf`. - * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The`buf` argument is a `Buffer` containing the generated bytes. - * - * ```js - * // Asynchronous - * const { - * randomBytes - * } = await import('crypto'); - * - * randomBytes(256, (err, buf) => { - * if (err) throw err; - * console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`); - * }); - * ``` - * - * If the `callback` function is not provided, the random bytes are generated - * synchronously and returned as a `Buffer`. An error will be thrown if - * there is a problem generating the bytes. - * - * ```js - * // Synchronous - * const { - * randomBytes - * } = await import('crypto'); - * - * const buf = randomBytes(256); - * console.log( - * `${buf.length} bytes of random data: ${buf.toString('hex')}`); - * ``` - * - * The `crypto.randomBytes()` method will not complete until there is - * sufficient entropy available. - * This should normally never take longer than a few milliseconds. The only time - * when generating the random bytes may conceivably block for a longer period of - * time is right after boot, when the whole system is still low on entropy. - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * - * The asynchronous version of `crypto.randomBytes()` is carried out in a single - * threadpool request. To minimize threadpool task length variation, partition - * large `randomBytes` requests when doing so as part of fulfilling a client - * request. - * @since v0.5.8 - * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`. - * @return if the `callback` function is not provided. - */ - function randomBytes(size: number): Buffer; - function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void; - function pseudoRandomBytes(size: number): Buffer; - function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void; - /** - * Return a random integer `n` such that `min <= n < max`. This - * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias). - * - * The range (`max - min`) must be less than 248. `min` and `max` must - * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger). - * - * If the `callback` function is not provided, the random integer is - * generated synchronously. - * - * ```js - * // Asynchronous - * const { - * randomInt - * } = await import('crypto'); - * - * randomInt(3, (err, n) => { - * if (err) throw err; - * console.log(`Random number chosen from (0, 1, 2): ${n}`); - * }); - * ``` - * - * ```js - * // Synchronous - * const { - * randomInt - * } = await import('crypto'); - * - * const n = randomInt(3); - * console.log(`Random number chosen from (0, 1, 2): ${n}`); - * ``` - * - * ```js - * // With `min` argument - * const { - * randomInt - * } = await import('crypto'); - * - * const n = randomInt(1, 7); - * console.log(`The dice rolled: ${n}`); - * ``` - * @since v14.10.0, v12.19.0 - * @param [min=0] Start of random range (inclusive). - * @param max End of random range (exclusive). - * @param callback `function(err, n) {}`. - */ - function randomInt(max: number): number; - function randomInt(min: number, max: number): number; - function randomInt(max: number, callback: (err: Error | null, value: number) => void): void; - function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void; - /** - * Synchronous version of {@link randomFill}. - * - * ```js - * import { Buffer } from 'buffer'; - * const { randomFillSync } = await import('crypto'); - * - * const buf = Buffer.alloc(10); - * console.log(randomFillSync(buf).toString('hex')); - * - * randomFillSync(buf, 5); - * console.log(buf.toString('hex')); - * - * // The above is equivalent to the following: - * randomFillSync(buf, 5, 5); - * console.log(buf.toString('hex')); - * ``` - * - * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`. - * - * ```js - * import { Buffer } from 'buffer'; - * const { randomFillSync } = await import('crypto'); - * - * const a = new Uint32Array(10); - * console.log(Buffer.from(randomFillSync(a).buffer, - * a.byteOffset, a.byteLength).toString('hex')); - * - * const b = new DataView(new ArrayBuffer(10)); - * console.log(Buffer.from(randomFillSync(b).buffer, - * b.byteOffset, b.byteLength).toString('hex')); - * - * const c = new ArrayBuffer(10); - * console.log(Buffer.from(randomFillSync(c)).toString('hex')); - * ``` - * @since v7.10.0, v6.13.0 - * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. - * @param [offset=0] - * @param [size=buffer.length - offset] - * @return The object passed as `buffer` argument. - */ - function randomFillSync(buffer: T, offset?: number, size?: number): T; - /** - * This function is similar to {@link randomBytes} but requires the first - * argument to be a `Buffer` that will be filled. It also - * requires that a callback is passed in. - * - * If the `callback` function is not provided, an error will be thrown. - * - * ```js - * import { Buffer } from 'buffer'; - * const { randomFill } = await import('crypto'); - * - * const buf = Buffer.alloc(10); - * randomFill(buf, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * - * randomFill(buf, 5, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * - * // The above is equivalent to the following: - * randomFill(buf, 5, 5, (err, buf) => { - * if (err) throw err; - * console.log(buf.toString('hex')); - * }); - * ``` - * - * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as`buffer`. - * - * While this includes instances of `Float32Array` and `Float64Array`, this - * function should not be used to generate random floating-point numbers. The - * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array - * contains finite numbers only, they are not drawn from a uniform random - * distribution and have no meaningful lower or upper bounds. - * - * ```js - * import { Buffer } from 'buffer'; - * const { randomFill } = await import('crypto'); - * - * const a = new Uint32Array(10); - * randomFill(a, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) - * .toString('hex')); - * }); - * - * const b = new DataView(new ArrayBuffer(10)); - * randomFill(b, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) - * .toString('hex')); - * }); - * - * const c = new ArrayBuffer(10); - * randomFill(c, (err, buf) => { - * if (err) throw err; - * console.log(Buffer.from(buf).toString('hex')); - * }); - * ``` - * - * This API uses libuv's threadpool, which can have surprising and - * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. - * - * The asynchronous version of `crypto.randomFill()` is carried out in a single - * threadpool request. To minimize threadpool task length variation, partition - * large `randomFill` requests when doing so as part of fulfilling a client - * request. - * @since v7.10.0, v6.13.0 - * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. - * @param [offset=0] - * @param [size=buffer.length - offset] - * @param callback `function(err, buf) {}`. - */ - function randomFill(buffer: T, callback: (err: Error | null, buf: T) => void): void; - function randomFill(buffer: T, offset: number, callback: (err: Error | null, buf: T) => void): void; - function randomFill(buffer: T, offset: number, size: number, callback: (err: Error | null, buf: T) => void): void; - interface ScryptOptions { - cost?: number | undefined; - blockSize?: number | undefined; - parallelization?: number | undefined; - N?: number | undefined; - r?: number | undefined; - p?: number | undefined; - maxmem?: number | undefined; - } - /** - * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based - * key derivation function that is designed to be expensive computationally and - * memory-wise in order to make brute-force attacks unrewarding. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * The `callback` function is called with two arguments: `err` and `derivedKey`.`err` is an exception object when key derivation fails, otherwise `err` is`null`. `derivedKey` is passed to the - * callback as a `Buffer`. - * - * An exception is thrown when any of the input arguments specify invalid values - * or types. - * - * ```js - * const { - * scrypt - * } = await import('crypto'); - * - * // Using the factory defaults. - * scrypt('password', 'salt', 64, (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' - * }); - * // Using a custom N parameter. Must be a power of two. - * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => { - * if (err) throw err; - * console.log(derivedKey.toString('hex')); // '3745e48...aa39b34' - * }); - * ``` - * @since v10.5.0 - */ - function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: Buffer) => void): void; - function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, options: ScryptOptions, callback: (err: Error | null, derivedKey: Buffer) => void): void; - /** - * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based - * key derivation function that is designed to be expensive computationally and - * memory-wise in order to make brute-force attacks unrewarding. - * - * The `salt` should be as unique as possible. It is recommended that a salt is - * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. - * - * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. - * - * An exception is thrown when key derivation fails, otherwise the derived key is - * returned as a `Buffer`. - * - * An exception is thrown when any of the input arguments specify invalid values - * or types. - * - * ```js - * const { - * scryptSync - * } = await import('crypto'); - * // Using the factory defaults. - * - * const key1 = scryptSync('password', 'salt', 64); - * console.log(key1.toString('hex')); // '3745e48...08d59ae' - * // Using a custom N parameter. Must be a power of two. - * const key2 = scryptSync('password', 'salt', 64, { N: 1024 }); - * console.log(key2.toString('hex')); // '3745e48...aa39b34' - * ``` - * @since v10.5.0 - */ - function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer; - interface RsaPublicKey { - key: KeyLike; - padding?: number | undefined; - } - interface RsaPrivateKey { - key: KeyLike; - passphrase?: string | undefined; - /** - * @default 'sha1' - */ - oaepHash?: string | undefined; - oaepLabel?: NodeJS.TypedArray | undefined; - padding?: number | undefined; - } - /** - * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using - * the corresponding private key, for example using {@link privateDecrypt}. - * - * If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`. - * - * Because RSA public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v0.11.14 - */ - function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; - /** - * Decrypts `buffer` with `key`.`buffer` was previously encrypted using - * the corresponding private key, for example using {@link privateEncrypt}. - * - * If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`. - * - * Because RSA public keys can be derived from private keys, a private key may - * be passed instead of a public key. - * @since v1.1.0 - */ - function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; - /** - * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using - * the corresponding public key, for example using {@link publicEncrypt}. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`. - * @since v0.11.14 - */ - function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; - /** - * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using - * the corresponding public key, for example using {@link publicDecrypt}. - * - * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an - * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`. - * @since v1.1.0 - */ - function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; - /** - * ```js - * const { - * getCiphers - * } = await import('crypto'); - * - * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...] - * ``` - * @since v0.9.3 - * @return An array with the names of the supported cipher algorithms. - */ - function getCiphers(): string[]; - /** - * ```js - * const { - * getCurves - * } = await import('crypto'); - * - * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...] - * ``` - * @since v2.3.0 - * @return An array with the names of the supported elliptic curves. - */ - function getCurves(): string[]; - /** - * @since v10.0.0 - * @return `1` if and only if a FIPS compliant crypto provider is currently in use, `0` otherwise. A future semver-major release may change the return type of this API to a {boolean}. - */ - function getFips(): 1 | 0; - /** - * ```js - * const { - * getHashes - * } = await import('crypto'); - * - * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...] - * ``` - * @since v0.9.3 - * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms. - */ - function getHashes(): string[]; - /** - * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH) - * key exchanges. - * - * Instances of the `ECDH` class can be created using the {@link createECDH} function. - * - * ```js - * import assert from 'assert'; - * - * const { - * createECDH - * } = await import('crypto'); - * - * // Generate Alice's keys... - * const alice = createECDH('secp521r1'); - * const aliceKey = alice.generateKeys(); - * - * // Generate Bob's keys... - * const bob = createECDH('secp521r1'); - * const bobKey = bob.generateKeys(); - * - * // Exchange and generate the secret... - * const aliceSecret = alice.computeSecret(bobKey); - * const bobSecret = bob.computeSecret(aliceKey); - * - * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); - * // OK - * ``` - * @since v0.11.14 - */ - class ECDH { - private constructor(); - /** - * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the - * format specified by `format`. The `format` argument specifies point encoding - * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is - * interpreted using the specified `inputEncoding`, and the returned key is encoded - * using the specified `outputEncoding`. - * - * Use {@link getCurves} to obtain a list of available curve names. - * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display - * the name and description of each available elliptic curve. - * - * If `format` is not specified the point will be returned in `'uncompressed'`format. - * - * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`,`TypedArray`, or `DataView`. - * - * Example (uncompressing a key): - * - * ```js - * const { - * createECDH, - * ECDH - * } = await import('crypto'); - * - * const ecdh = createECDH('secp256k1'); - * ecdh.generateKeys(); - * - * const compressedKey = ecdh.getPublicKey('hex', 'compressed'); - * - * const uncompressedKey = ECDH.convertKey(compressedKey, - * 'secp256k1', - * 'hex', - * 'hex', - * 'uncompressed'); - * - * // The converted key and the uncompressed public key should be the same - * console.log(uncompressedKey === ecdh.getPublicKey('hex')); - * ``` - * @since v10.0.0 - * @param inputEncoding The `encoding` of the `key` string. - * @param outputEncoding The `encoding` of the return value. - * @param [format='uncompressed'] - */ - static convertKey( - key: BinaryLike, - curve: string, - inputEncoding?: BinaryToTextEncoding, - outputEncoding?: 'latin1' | 'hex' | 'base64', - format?: 'uncompressed' | 'compressed' | 'hybrid' - ): Buffer | string; - /** - * Generates private and public EC Diffie-Hellman key values, and returns - * the public key in the specified `format` and `encoding`. This key should be - * transferred to the other party. - * - * The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format. - * - * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @param [format='uncompressed'] - */ - generateKeys(): Buffer; - generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; - /** - * Computes the shared secret using `otherPublicKey` as the other - * party's public key and returns the computed shared secret. The supplied - * key is interpreted using specified `inputEncoding`, and the returned secret - * is encoded using the specified `outputEncoding`. - * If the `inputEncoding` is not - * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or`DataView`. - * - * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned. - * - * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey`lies outside of the elliptic curve. Since `otherPublicKey` is - * usually supplied from a remote user over an insecure network, - * be sure to handle this exception accordingly. - * @since v0.11.14 - * @param inputEncoding The `encoding` of the `otherPublicKey` string. - * @param outputEncoding The `encoding` of the return value. - */ - computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer; - computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer; - computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string; - computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string; - /** - * If `encoding` is specified, a string is returned; otherwise a `Buffer` is - * returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @return The EC Diffie-Hellman in the specified `encoding`. - */ - getPrivateKey(): Buffer; - getPrivateKey(encoding: BinaryToTextEncoding): string; - /** - * The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format. - * - * If `encoding` is specified, a string is returned; otherwise a `Buffer` is - * returned. - * @since v0.11.14 - * @param encoding The `encoding` of the return value. - * @param [format='uncompressed'] - * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`. - */ - getPublicKey(): Buffer; - getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; - /** - * Sets the EC Diffie-Hellman private key. - * If `encoding` is provided, `privateKey` is expected - * to be a string; otherwise `privateKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`. - * - * If `privateKey` is not valid for the curve specified when the `ECDH` object was - * created, an error is thrown. Upon setting the private key, the associated - * public point (key) is also generated and set in the `ECDH` object. - * @since v0.11.14 - * @param encoding The `encoding` of the `privateKey` string. - */ - setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; - setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void; - } - /** - * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a - * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent - * OpenSSL releases, `openssl ecparam -list_curves` will also display the name - * and description of each available elliptic curve. - * @since v0.11.14 - */ - function createECDH(curveName: string): ECDH; - /** - * This function is based on a constant-time algorithm. - * Returns true if `a` is equal to `b`, without leaking timing information that - * would allow an attacker to guess one of the values. This is suitable for - * comparing HMAC digests or secret values like authentication cookies or[capability urls](https://www.w3.org/TR/capability-urls/). - * - * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they - * must have the same byte length. - * - * If at least one of `a` and `b` is a `TypedArray` with more than one byte per - * entry, such as `Uint16Array`, the result will be computed using the platform - * byte order. - * - * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code - * is timing-safe. Care should be taken to ensure that the surrounding code does - * not introduce timing vulnerabilities. - * @since v6.6.0 - */ - function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean; - /** @deprecated since v10.0.0 */ - const DEFAULT_ENCODING: BufferEncoding; - type KeyType = 'rsa' | 'rsa-pss' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448'; - type KeyFormat = 'pem' | 'der'; - interface BasePrivateKeyEncodingOptions { - format: T; - cipher?: string | undefined; - passphrase?: string | undefined; - } - interface KeyPairKeyObjectResult { - publicKey: KeyObject; - privateKey: KeyObject; - } - interface ED25519KeyPairKeyObjectOptions {} - interface ED448KeyPairKeyObjectOptions {} - interface X25519KeyPairKeyObjectOptions {} - interface X448KeyPairKeyObjectOptions {} - interface ECKeyPairKeyObjectOptions { - /** - * Name of the curve to use. - */ - namedCurve: string; - } - interface RSAKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * @default 0x10001 - */ - publicExponent?: number | undefined; - } - interface RSAPSSKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * @default 0x10001 - */ - publicExponent?: number | undefined; - } - interface DSAKeyPairKeyObjectOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Size of q in bits - */ - divisorLength: number; - } - interface RSAKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * @default 0x10001 - */ - publicExponent?: number | undefined; - publicKeyEncoding: { - type: 'pkcs1' | 'spki'; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: 'pkcs1' | 'pkcs8'; - }; - } - interface RSAPSSKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * @default 0x10001 - */ - publicExponent?: number | undefined; - publicKeyEncoding: { - type: 'spki'; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: 'pkcs8'; - }; - } - interface DSAKeyPairOptions { - /** - * Key size in bits - */ - modulusLength: number; - /** - * Size of q in bits - */ - divisorLength: number; - publicKeyEncoding: { - type: 'spki'; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: 'pkcs8'; - }; - } - interface ECKeyPairOptions { - /** - * Name of the curve to use. - */ - namedCurve: string; - publicKeyEncoding: { - type: 'pkcs1' | 'spki'; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: 'sec1' | 'pkcs8'; - }; - } - interface ED25519KeyPairOptions { - publicKeyEncoding: { - type: 'spki'; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: 'pkcs8'; - }; - } - interface ED448KeyPairOptions { - publicKeyEncoding: { - type: 'spki'; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: 'pkcs8'; - }; - } - interface X25519KeyPairOptions { - publicKeyEncoding: { - type: 'spki'; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: 'pkcs8'; - }; - } - interface X448KeyPairOptions { - publicKeyEncoding: { - type: 'spki'; - format: PubF; - }; - privateKeyEncoding: BasePrivateKeyEncodingOptions & { - type: 'pkcs8'; - }; - } - interface KeyPairSyncResult { - publicKey: T1; - privateKey: T2; - } - /** - * Generates a new asymmetric key pair of the given `type`. RSA, DSA, EC, Ed25519, - * Ed448, X25519, X448, and DH are currently supported. - * - * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function - * behaves as if `keyObject.export()` had been called on its result. Otherwise, - * the respective part of the key is returned as a `KeyObject`. - * - * When encoding public keys, it is recommended to use `'spki'`. When encoding - * private keys, it is recommended to use `'pkcs8'` with a strong passphrase, - * and to keep the passphrase confidential. - * - * ```js - * const { - * generateKeyPairSync - * } = await import('crypto'); - * - * const { - * publicKey, - * privateKey, - * } = generateKeyPairSync('rsa', { - * modulusLength: 4096, - * publicKeyEncoding: { - * type: 'spki', - * format: 'pem' - * }, - * privateKeyEncoding: { - * type: 'pkcs8', - * format: 'pem', - * cipher: 'aes-256-cbc', - * passphrase: 'top secret' - * } - * }); - * ``` - * - * The return value `{ publicKey, privateKey }` represents the generated key pair. - * When PEM encoding was selected, the respective key will be a string, otherwise - * it will be a buffer containing the data encoded as DER. - * @since v10.12.0 - * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`. - */ - function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'rsa', options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'dsa', options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ec', options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'der'>): KeyPairSyncResult; - function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; - /** - * Generates a new asymmetric key pair of the given `type`. RSA, DSA, EC, Ed25519, - * Ed448, X25519, X448, and DH are currently supported. - * - * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function - * behaves as if `keyObject.export()` had been called on its result. Otherwise, - * the respective part of the key is returned as a `KeyObject`. - * - * It is recommended to encode public keys as `'spki'` and private keys as`'pkcs8'` with encryption for long-term storage: - * - * ```js - * const { - * generateKeyPair - * } = await import('crypto'); - * - * generateKeyPair('rsa', { - * modulusLength: 4096, - * publicKeyEncoding: { - * type: 'spki', - * format: 'pem' - * }, - * privateKeyEncoding: { - * type: 'pkcs8', - * format: 'pem', - * cipher: 'aes-256-cbc', - * passphrase: 'top secret' - * } - * }, (err, publicKey, privateKey) => { - * // Handle errors and use the generated key pair. - * }); - * ``` - * - * On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a `Promise` for an `Object` with `publicKey` and `privateKey` properties. - * @since v10.12.0 - * @param type Must be `'rsa'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`. - */ - function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; - function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; - function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'rsa', options: RSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; - function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; - function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; - function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; - function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; - function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; - function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'dsa', options: DSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; - function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; - function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; - function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'ec', options: ECKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; - function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; - function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; - function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'ed25519', options: ED25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; - function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; - function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; - function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'ed448', options: ED448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; - function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; - function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; - function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'x25519', options: X25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; - function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; - function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; - function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; - function generateKeyPair(type: 'x448', options: X448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; - namespace generateKeyPair { - function __promisify__( - type: 'rsa', - options: RSAKeyPairOptions<'pem', 'pem'> - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: 'rsa', - options: RSAKeyPairOptions<'pem', 'der'> - ): Promise<{ - publicKey: string; - privateKey: Buffer; - }>; - function __promisify__( - type: 'rsa', - options: RSAKeyPairOptions<'der', 'pem'> - ): Promise<{ - publicKey: Buffer; - privateKey: string; - }>; - function __promisify__( - type: 'rsa', - options: RSAKeyPairOptions<'der', 'der'> - ): Promise<{ - publicKey: Buffer; - privateKey: Buffer; - }>; - function __promisify__(type: 'rsa', options: RSAKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: 'rsa-pss', - options: RSAPSSKeyPairOptions<'pem', 'pem'> - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: 'rsa-pss', - options: RSAPSSKeyPairOptions<'pem', 'der'> - ): Promise<{ - publicKey: string; - privateKey: Buffer; - }>; - function __promisify__( - type: 'rsa-pss', - options: RSAPSSKeyPairOptions<'der', 'pem'> - ): Promise<{ - publicKey: Buffer; - privateKey: string; - }>; - function __promisify__( - type: 'rsa-pss', - options: RSAPSSKeyPairOptions<'der', 'der'> - ): Promise<{ - publicKey: Buffer; - privateKey: Buffer; - }>; - function __promisify__(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: 'dsa', - options: DSAKeyPairOptions<'pem', 'pem'> - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: 'dsa', - options: DSAKeyPairOptions<'pem', 'der'> - ): Promise<{ - publicKey: string; - privateKey: Buffer; - }>; - function __promisify__( - type: 'dsa', - options: DSAKeyPairOptions<'der', 'pem'> - ): Promise<{ - publicKey: Buffer; - privateKey: string; - }>; - function __promisify__( - type: 'dsa', - options: DSAKeyPairOptions<'der', 'der'> - ): Promise<{ - publicKey: Buffer; - privateKey: Buffer; - }>; - function __promisify__(type: 'dsa', options: DSAKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: 'ec', - options: ECKeyPairOptions<'pem', 'pem'> - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: 'ec', - options: ECKeyPairOptions<'pem', 'der'> - ): Promise<{ - publicKey: string; - privateKey: Buffer; - }>; - function __promisify__( - type: 'ec', - options: ECKeyPairOptions<'der', 'pem'> - ): Promise<{ - publicKey: Buffer; - privateKey: string; - }>; - function __promisify__( - type: 'ec', - options: ECKeyPairOptions<'der', 'der'> - ): Promise<{ - publicKey: Buffer; - privateKey: Buffer; - }>; - function __promisify__(type: 'ec', options: ECKeyPairKeyObjectOptions): Promise; - function __promisify__( - type: 'ed25519', - options: ED25519KeyPairOptions<'pem', 'pem'> - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: 'ed25519', - options: ED25519KeyPairOptions<'pem', 'der'> - ): Promise<{ - publicKey: string; - privateKey: Buffer; - }>; - function __promisify__( - type: 'ed25519', - options: ED25519KeyPairOptions<'der', 'pem'> - ): Promise<{ - publicKey: Buffer; - privateKey: string; - }>; - function __promisify__( - type: 'ed25519', - options: ED25519KeyPairOptions<'der', 'der'> - ): Promise<{ - publicKey: Buffer; - privateKey: Buffer; - }>; - function __promisify__(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): Promise; - function __promisify__( - type: 'ed448', - options: ED448KeyPairOptions<'pem', 'pem'> - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: 'ed448', - options: ED448KeyPairOptions<'pem', 'der'> - ): Promise<{ - publicKey: string; - privateKey: Buffer; - }>; - function __promisify__( - type: 'ed448', - options: ED448KeyPairOptions<'der', 'pem'> - ): Promise<{ - publicKey: Buffer; - privateKey: string; - }>; - function __promisify__( - type: 'ed448', - options: ED448KeyPairOptions<'der', 'der'> - ): Promise<{ - publicKey: Buffer; - privateKey: Buffer; - }>; - function __promisify__(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): Promise; - function __promisify__( - type: 'x25519', - options: X25519KeyPairOptions<'pem', 'pem'> - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: 'x25519', - options: X25519KeyPairOptions<'pem', 'der'> - ): Promise<{ - publicKey: string; - privateKey: Buffer; - }>; - function __promisify__( - type: 'x25519', - options: X25519KeyPairOptions<'der', 'pem'> - ): Promise<{ - publicKey: Buffer; - privateKey: string; - }>; - function __promisify__( - type: 'x25519', - options: X25519KeyPairOptions<'der', 'der'> - ): Promise<{ - publicKey: Buffer; - privateKey: Buffer; - }>; - function __promisify__(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): Promise; - function __promisify__( - type: 'x448', - options: X448KeyPairOptions<'pem', 'pem'> - ): Promise<{ - publicKey: string; - privateKey: string; - }>; - function __promisify__( - type: 'x448', - options: X448KeyPairOptions<'pem', 'der'> - ): Promise<{ - publicKey: string; - privateKey: Buffer; - }>; - function __promisify__( - type: 'x448', - options: X448KeyPairOptions<'der', 'pem'> - ): Promise<{ - publicKey: Buffer; - privateKey: string; - }>; - function __promisify__( - type: 'x448', - options: X448KeyPairOptions<'der', 'der'> - ): Promise<{ - publicKey: Buffer; - privateKey: Buffer; - }>; - function __promisify__(type: 'x448', options?: X448KeyPairKeyObjectOptions): Promise; - } - /** - * Calculates and returns the signature for `data` using the given private key and - * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is - * dependent upon the key type (especially Ed25519 and Ed448). - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been - * passed to {@link createPrivateKey}. If it is an object, the following - * additional properties can be passed: - * - * If the `callback` function is provided this function uses libuv's threadpool. - * @since v12.0.0 - */ - function sign(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer; - function sign( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, - callback: (error: Error | null, data: Buffer) => void - ): void; - /** - * Verifies the given signature for `data` using the given key and algorithm. If`algorithm` is `null` or `undefined`, then the algorithm is dependent upon the - * key type (especially Ed25519 and Ed448). - * - * If `key` is not a `KeyObject`, this function behaves as if `key` had been - * passed to {@link createPublicKey}. If it is an object, the following - * additional properties can be passed: - * - * The `signature` argument is the previously calculated signature for the `data`. - * - * Because public keys can be derived from private keys, a private key or a public - * key may be passed for `key`. - * - * If the `callback` function is provided this function uses libuv's threadpool. - * @since v12.0.0 - */ - function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean; - function verify( - algorithm: string | null | undefined, - data: NodeJS.ArrayBufferView, - key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, - signature: NodeJS.ArrayBufferView, - callback: (error: Error | null, result: boolean) => void - ): void; - /** - * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`. - * Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`(for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES). - * @since v13.9.0, v12.17.0 - */ - function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer; - type CipherMode = 'cbc' | 'ccm' | 'cfb' | 'ctr' | 'ecb' | 'gcm' | 'ocb' | 'ofb' | 'stream' | 'wrap' | 'xts'; - interface CipherInfoOptions { - /** - * A test key length. - */ - keyLength?: number | undefined; - /** - * A test IV length. - */ - ivLength?: number | undefined; - } - interface CipherInfo { - /** - * The name of the cipher. - */ - name: string; - /** - * The nid of the cipher. - */ - nid: number; - /** - * The block size of the cipher in bytes. - * This property is omitted when mode is 'stream'. - */ - blockSize?: number | undefined; - /** - * The expected or default initialization vector length in bytes. - * This property is omitted if the cipher does not use an initialization vector. - */ - ivLength?: number | undefined; - /** - * The expected or default key length in bytes. - */ - keyLength: number; - /** - * The cipher mode. - */ - mode: CipherMode; - } - /** - * Returns information about a given cipher. - * - * Some ciphers accept variable length keys and initialization vectors. By default, - * the `crypto.getCipherInfo()` method will return the default values for these - * ciphers. To test if a given key length or iv length is acceptable for given - * cipher, use the `keyLength` and `ivLength` options. If the given values are - * unacceptable, `undefined` will be returned. - * @since v15.0.0 - * @param nameOrNid The name or nid of the cipher to query. - */ - function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined; - /** - * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`,`salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. - * - * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set; - * otherwise `err` will be `null`. The successfully generated `derivedKey` will - * be passed to the callback as an [<ArrayBuffer>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any - * of the input arguments specify invalid values or types. - * - * ```js - * import { Buffer } from 'buffer'; - * const { - * hkdf - * } = await import('crypto'); - * - * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => { - * if (err) throw err; - * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' - * }); - * ``` - * @since v15.0.0 - * @param digest The digest algorithm to use. - * @param ikm The input keying material. It must be at least one byte in length. - * @param salt The salt value. Must be provided but can be zero-length. - * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. - * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` - * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). - */ - function hkdf(digest: string, irm: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: ArrayBuffer) => void): void; - /** - * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The - * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of`keylen` bytes. - * - * The successfully generated `derivedKey` will be returned as an [<ArrayBuffer>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). - * - * An error will be thrown if any of the input arguments specify invalid values or - * types, or if the derived key cannot be generated. - * - * ```js - * import { Buffer } from 'buffer'; - * const { - * hkdfSync - * } = await import('crypto'); - * - * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64); - * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' - * ``` - * @since v15.0.0 - * @param digest The digest algorithm to use. - * @param ikm The input keying material. It must be at least one byte in length. - * @param salt The salt value. Must be provided but can be zero-length. - * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. - * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` - * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). - */ - function hkdfSync(digest: string, ikm: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number): ArrayBuffer; - interface SecureHeapUsage { - /** - * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag. - */ - total: number; - /** - * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag. - */ - min: number; - /** - * The total number of bytes currently allocated from the secure heap. - */ - used: number; - /** - * The calculated ratio of `used` to `total` allocated bytes. - */ - utilization: number; - } - /** - * @since v15.6.0 - */ - function secureHeapUsed(): SecureHeapUsage; - interface RandomUUIDOptions { - /** - * By default, to improve performance, - * Node.js will pre-emptively generate and persistently cache enough - * random data to generate up to 128 random UUIDs. To generate a UUID - * without using the cache, set `disableEntropyCache` to `true`. - * - * @default `false` - */ - disableEntropyCache?: boolean | undefined; - } - /** - * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a - * cryptographic pseudorandom number generator. - * @since v15.6.0 - */ - function randomUUID(options?: RandomUUIDOptions): string; - interface X509CheckOptions { - /** - * @default 'always' - */ - subject: 'always' | 'never'; - /** - * @default true - */ - wildcards: boolean; - /** - * @default true - */ - partialWildcards: boolean; - /** - * @default false - */ - multiLabelWildcards: boolean; - /** - * @default false - */ - singleLabelSubdomains: boolean; - } - /** - * Encapsulates an X509 certificate and provides read-only access to - * its information. - * - * ```js - * const { X509Certificate } = await import('crypto'); - * - * const x509 = new X509Certificate('{... pem encoded cert ...}'); - * - * console.log(x509.subject); - * ``` - * @since v15.6.0 - */ - class X509Certificate { - /** - * Will be \`true\` if this is a Certificate Authority (ca) certificate. - * @since v15.6.0 - */ - readonly ca: boolean; - /** - * The SHA-1 fingerprint of this certificate. - * @since v15.6.0 - */ - readonly fingerprint: string; - /** - * The SHA-256 fingerprint of this certificate. - * @since v15.6.0 - */ - readonly fingerprint256: string; - /** - * The complete subject of this certificate. - * @since v15.6.0 - */ - readonly subject: string; - /** - * The subject alternative name specified for this certificate. - * @since v15.6.0 - */ - readonly subjectAltName: string; - /** - * The information access content of this certificate. - * @since v15.6.0 - */ - readonly infoAccess: string; - /** - * An array detailing the key usages for this certificate. - * @since v15.6.0 - */ - readonly keyUsage: string[]; - /** - * The issuer identification included in this certificate. - * @since v15.6.0 - */ - readonly issuer: string; - /** - * The issuer certificate or `undefined` if the issuer certificate is not - * available. - * @since v15.9.0 - */ - readonly issuerCertificate?: X509Certificate | undefined; - /** - * The public key `KeyObject` for this certificate. - * @since v15.6.0 - */ - readonly publicKey: KeyObject; - /** - * A `Buffer` containing the DER encoding of this certificate. - * @since v15.6.0 - */ - readonly raw: Buffer; - /** - * The serial number of this certificate. - * @since v15.6.0 - */ - readonly serialNumber: string; - /** - * The date/time from which this certificate is considered valid. - * @since v15.6.0 - */ - readonly validFrom: string; - /** - * The date/time until which this certificate is considered valid. - * @since v15.6.0 - */ - readonly validTo: string; - constructor(buffer: BinaryLike); - /** - * Checks whether the certificate matches the given email address. - * @since v15.6.0 - * @return Returns `email` if the certificate matches, `undefined` if it does not. - */ - checkEmail(email: string, options?: X509CheckOptions): string | undefined; - /** - * Checks whether the certificate matches the given host name. - * @since v15.6.0 - * @return Returns `name` if the certificate matches, `undefined` if it does not. - */ - checkHost(name: string, options?: X509CheckOptions): string | undefined; - /** - * Checks whether the certificate matches the given IP address (IPv4 or IPv6). - * @since v15.6.0 - * @return Returns `ip` if the certificate matches, `undefined` if it does not. - */ - checkIP(ip: string, options?: X509CheckOptions): string | undefined; - /** - * Checks whether this certificate was issued by the given `otherCert`. - * @since v15.6.0 - */ - checkIssued(otherCert: X509Certificate): boolean; - /** - * Checks whether the public key for this certificate is consistent with - * the given private key. - * @since v15.6.0 - * @param privateKey A private key. - */ - checkPrivateKey(privateKey: KeyObject): boolean; - /** - * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded - * certificate. - * @since v15.6.0 - */ - toJSON(): string; - /** - * Returns information about this certificate using the legacy `certificate object` encoding. - * @since v15.6.0 - */ - toLegacyObject(): PeerCertificate; - /** - * Returns the PEM-encoded certificate. - * @since v15.6.0 - */ - toString(): string; - /** - * Verifies that this certificate was signed by the given public key. - * Does not perform any other validation checks on the certificate. - * @since v15.6.0 - * @param publicKey A public key. - */ - verify(publicKey: KeyObject): boolean; - } - type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint; - interface GeneratePrimeOptions { - add?: LargeNumberLike | undefined; - rem?: LargeNumberLike | undefined; - /** - * @default false - */ - safe?: boolean | undefined; - bigint?: boolean | undefined; - } - interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions { - bigint: true; - } - interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions { - bigint?: false | undefined; - } - /** - * Generates a pseudorandom prime of `size` bits. - * - * If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime. - * - * The `options.add` and `options.rem` parameters can be used to enforce additional - * requirements, e.g., for Diffie-Hellman: - * - * * If `options.add` and `options.rem` are both set, the prime will satisfy the - * condition that `prime % add = rem`. - * * If only `options.add` is set and `options.safe` is not `true`, the prime will - * satisfy the condition that `prime % add = 1`. - * * If only `options.add` is set and `options.safe` is set to `true`, the prime - * will instead satisfy the condition that `prime % add = 3`. This is necessary - * because `prime % add = 1` for `options.add > 2` would contradict the condition - * enforced by `options.safe`. - * * `options.rem` is ignored if `options.add` is not given. - * - * Both `options.add` and `options.rem` must be encoded as big-endian sequences - * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`. - * - * By default, the prime is encoded as a big-endian sequence of octets - * in an [<ArrayBuffer>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a - * [<bigint>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt)is provided. - * @since v15.8.0 - * @param size The size (in bits) of the prime to generate. - */ - function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void; - function generatePrime(size: number, options: GeneratePrimeOptionsBigInt, callback: (err: Error | null, prime: bigint) => void): void; - function generatePrime(size: number, options: GeneratePrimeOptionsArrayBuffer, callback: (err: Error | null, prime: ArrayBuffer) => void): void; - function generatePrime(size: number, options: GeneratePrimeOptions, callback: (err: Error | null, prime: ArrayBuffer | bigint) => void): void; - /** - * Generates a pseudorandom prime of `size` bits. - * - * If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime. - * - * The `options.add` and `options.rem` parameters can be used to enforce additional - * requirements, e.g., for Diffie-Hellman: - * - * * If `options.add` and `options.rem` are both set, the prime will satisfy the - * condition that `prime % add = rem`. - * * If only `options.add` is set and `options.safe` is not `true`, the prime will - * satisfy the condition that `prime % add = 1`. - * * If only `options.add` is set and `options.safe` is set to `true`, the prime - * will instead satisfy the condition that `prime % add = 3`. This is necessary - * because `prime % add = 1` for `options.add > 2` would contradict the condition - * enforced by `options.safe`. - * * `options.rem` is ignored if `options.add` is not given. - * - * Both `options.add` and `options.rem` must be encoded as big-endian sequences - * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`. - * - * By default, the prime is encoded as a big-endian sequence of octets - * in an [<ArrayBuffer>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a - * [<bigint>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt)is provided. - * @since v15.8.0 - * @param size The size (in bits) of the prime to generate. - */ - function generatePrimeSync(size: number): ArrayBuffer; - function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint; - function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer; - function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint; - interface CheckPrimeOptions { - /** - * The number of Miller-Rabin probabilistic primality iterations to perform. - * When the value is 0 (zero), a number of checks is used that yields a false positive rate of at most 2-64 for random input. - * Care must be used when selecting a number of checks. - * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details. - * - * @default 0 - */ - checks?: number | undefined; - } - /** - * Checks the primality of the `candidate`. - * @since v15.8.0 - * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. - */ - function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void; - function checkPrime(value: LargeNumberLike, options: CheckPrimeOptions, callback: (err: Error | null, result: boolean) => void): void; - /** - * Checks the primality of the `candidate`. - * @since v15.8.0 - * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. - * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`. - */ - function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean; - namespace webcrypto { - class CryptoKey {} // placeholder - } -} -declare module 'node:crypto' { - export * from 'crypto'; -} diff --git a/WechatBot/node_modules/@types/node/dgram.d.ts b/WechatBot/node_modules/@types/node/dgram.d.ts deleted file mode 100644 index 72751d6a8..000000000 --- a/WechatBot/node_modules/@types/node/dgram.d.ts +++ /dev/null @@ -1,545 +0,0 @@ -/** - * The `dgram` module provides an implementation of UDP datagram sockets. - * - * ```js - * import dgram from 'dgram'; - * - * const server = dgram.createSocket('udp4'); - * - * server.on('error', (err) => { - * console.log(`server error:\n${err.stack}`); - * server.close(); - * }); - * - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * - * server.on('listening', () => { - * const address = server.address(); - * console.log(`server listening ${address.address}:${address.port}`); - * }); - * - * server.bind(41234); - * // Prints: server listening 0.0.0.0:41234 - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/dgram.js) - */ -declare module 'dgram' { - import { AddressInfo } from 'node:net'; - import * as dns from 'node:dns'; - import { EventEmitter, Abortable } from 'node:events'; - interface RemoteInfo { - address: string; - family: 'IPv4' | 'IPv6'; - port: number; - size: number; - } - interface BindOptions { - port?: number | undefined; - address?: string | undefined; - exclusive?: boolean | undefined; - fd?: number | undefined; - } - type SocketType = 'udp4' | 'udp6'; - interface SocketOptions extends Abortable { - type: SocketType; - reuseAddr?: boolean | undefined; - /** - * @default false - */ - ipv6Only?: boolean | undefined; - recvBufferSize?: number | undefined; - sendBufferSize?: number | undefined; - lookup?: ((hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void) | undefined; - } - /** - * Creates a `dgram.Socket` object. Once the socket is created, calling `socket.bind()` will instruct the socket to begin listening for datagram - * messages. When `address` and `port` are not passed to `socket.bind()` the - * method will bind the socket to the "all interfaces" address on a random port - * (it does the right thing for both `udp4` and `udp6` sockets). The bound address - * and port can be retrieved using `socket.address().address` and `socket.address().port`. - * - * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.close()` on the socket: - * - * ```js - * const controller = new AbortController(); - * const { signal } = controller; - * const server = dgram.createSocket({ type: 'udp4', signal }); - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * // Later, when you want to close the server. - * controller.abort(); - * ``` - * @since v0.11.13 - * @param options Available options are: - * @param callback Attached as a listener for `'message'` events. Optional. - */ - function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; - function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; - /** - * Encapsulates the datagram functionality. - * - * New instances of `dgram.Socket` are created using {@link createSocket}. - * The `new` keyword is not to be used to create `dgram.Socket` instances. - * @since v0.1.99 - */ - class Socket extends EventEmitter { - /** - * Tells the kernel to join a multicast group at the given `multicastAddress` and`multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the`multicastInterface` argument is not - * specified, the operating system will choose - * one interface and will add membership to it. To add membership to every - * available interface, call `addMembership` multiple times, once per interface. - * - * When called on an unbound socket, this method will implicitly bind to a random - * port, listening on all interfaces. - * - * When sharing a UDP socket across multiple `cluster` workers, the`socket.addMembership()` function must be called only once or an`EADDRINUSE` error will occur: - * - * ```js - * import cluster from 'cluster'; - * import dgram from 'dgram'; - * - * if (cluster.isPrimary) { - * cluster.fork(); // Works ok. - * cluster.fork(); // Fails with EADDRINUSE. - * } else { - * const s = dgram.createSocket('udp4'); - * s.bind(1234, () => { - * s.addMembership('224.0.0.114'); - * }); - * } - * ``` - * @since v0.6.9 - */ - addMembership(multicastAddress: string, multicastInterface?: string): void; - /** - * Returns an object containing the address information for a socket. - * For UDP sockets, this object will contain `address`, `family` and `port`properties. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.1.99 - */ - address(): AddressInfo; - /** - * For UDP sockets, causes the `dgram.Socket` to listen for datagram - * messages on a named `port` and optional `address`. If `port` is not - * specified or is `0`, the operating system will attempt to bind to a - * random port. If `address` is not specified, the operating system will - * attempt to listen on all addresses. Once binding is complete, a`'listening'` event is emitted and the optional `callback` function is - * called. - * - * Specifying both a `'listening'` event listener and passing a`callback` to the `socket.bind()` method is not harmful but not very - * useful. - * - * A bound datagram socket keeps the Node.js process running to receive - * datagram messages. - * - * If binding fails, an `'error'` event is generated. In rare case (e.g. - * attempting to bind with a closed socket), an `Error` may be thrown. - * - * Example of a UDP server listening on port 41234: - * - * ```js - * import dgram from 'dgram'; - * - * const server = dgram.createSocket('udp4'); - * - * server.on('error', (err) => { - * console.log(`server error:\n${err.stack}`); - * server.close(); - * }); - * - * server.on('message', (msg, rinfo) => { - * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); - * }); - * - * server.on('listening', () => { - * const address = server.address(); - * console.log(`server listening ${address.address}:${address.port}`); - * }); - * - * server.bind(41234); - * // Prints: server listening 0.0.0.0:41234 - * ``` - * @since v0.1.99 - * @param callback with no parameters. Called when binding is complete. - */ - bind(port?: number, address?: string, callback?: () => void): void; - bind(port?: number, callback?: () => void): void; - bind(callback?: () => void): void; - bind(options: BindOptions, callback?: () => void): void; - /** - * Close the underlying socket and stop listening for data on it. If a callback is - * provided, it is added as a listener for the `'close'` event. - * @since v0.1.99 - * @param callback Called when the socket has been closed. - */ - close(callback?: () => void): void; - /** - * Associates the `dgram.Socket` to a remote address and port. Every - * message sent by this handle is automatically sent to that destination. Also, - * the socket will only receive messages from that remote peer. - * Trying to call `connect()` on an already connected socket will result - * in an `ERR_SOCKET_DGRAM_IS_CONNECTED` exception. If `address` is not - * provided, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) - * will be used by default. Once the connection is complete, a `'connect'` event - * is emitted and the optional `callback` function is called. In case of failure, - * the `callback` is called or, failing this, an `'error'` event is emitted. - * @since v12.0.0 - * @param callback Called when the connection is completed or on error. - */ - connect(port: number, address?: string, callback?: () => void): void; - connect(port: number, callback: () => void): void; - /** - * A synchronous function that disassociates a connected `dgram.Socket` from - * its remote address. Trying to call `disconnect()` on an unbound or already - * disconnected socket will result in an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception. - * @since v12.0.0 - */ - disconnect(): void; - /** - * Instructs the kernel to leave a multicast group at `multicastAddress` using the`IP_DROP_MEMBERSHIP` socket option. This method is automatically called by the - * kernel when the socket is closed or the process terminates, so most apps will - * never have reason to call this. - * - * If `multicastInterface` is not specified, the operating system will attempt to - * drop membership on all valid interfaces. - * @since v0.6.9 - */ - dropMembership(multicastAddress: string, multicastInterface?: string): void; - /** - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - * @return the `SO_RCVBUF` socket receive buffer size in bytes. - */ - getRecvBufferSize(): number; - /** - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - * @return the `SO_SNDBUF` socket send buffer size in bytes. - */ - getSendBufferSize(): number; - /** - * By default, binding a socket will cause it to block the Node.js process from - * exiting as long as the socket is open. The `socket.unref()` method can be used - * to exclude the socket from the reference counting that keeps the Node.js - * process active. The `socket.ref()` method adds the socket back to the reference - * counting and restores the default behavior. - * - * Calling `socket.ref()` multiples times will have no additional effect. - * - * The `socket.ref()` method returns a reference to the socket so calls can be - * chained. - * @since v0.9.1 - */ - ref(): this; - /** - * Returns an object containing the `address`, `family`, and `port` of the remote - * endpoint. This method throws an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception - * if the socket is not connected. - * @since v12.0.0 - */ - remoteAddress(): AddressInfo; - /** - * Broadcasts a datagram on the socket. - * For connectionless sockets, the destination `port` and `address` must be - * specified. Connected sockets, on the other hand, will use their associated - * remote endpoint, so the `port` and `address` arguments must not be set. - * - * The `msg` argument contains the message to be sent. - * Depending on its type, different behavior can apply. If `msg` is a `Buffer`, - * any `TypedArray` or a `DataView`, - * the `offset` and `length` specify the offset within the `Buffer` where the - * message begins and the number of bytes in the message, respectively. - * If `msg` is a `String`, then it is automatically converted to a `Buffer`with `'utf8'` encoding. With messages that - * contain multi-byte characters, `offset` and `length` will be calculated with - * respect to `byte length` and not the character position. - * If `msg` is an array, `offset` and `length` must not be specified. - * - * The `address` argument is a string. If the value of `address` is a host name, - * DNS will be used to resolve the address of the host. If `address` is not - * provided or otherwise falsy, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default. - * - * If the socket has not been previously bound with a call to `bind`, the socket - * is assigned a random port number and is bound to the "all interfaces" address - * (`'0.0.0.0'` for `udp4` sockets, `'::0'` for `udp6` sockets.) - * - * An optional `callback` function may be specified to as a way of reporting - * DNS errors or for determining when it is safe to reuse the `buf` object. - * DNS lookups delay the time to send for at least one tick of the - * Node.js event loop. - * - * The only way to know for sure that the datagram has been sent is by using a`callback`. If an error occurs and a `callback` is given, the error will be - * passed as the first argument to the `callback`. If a `callback` is not given, - * the error is emitted as an `'error'` event on the `socket` object. - * - * Offset and length are optional but both _must_ be set if either are used. - * They are supported only when the first argument is a `Buffer`, a `TypedArray`, - * or a `DataView`. - * - * This method throws `ERR_SOCKET_BAD_PORT` if called on an unbound socket. - * - * Example of sending a UDP packet to a port on `localhost`; - * - * ```js - * import dgram from 'dgram'; - * import { Buffer } from 'buffer'; - * - * const message = Buffer.from('Some bytes'); - * const client = dgram.createSocket('udp4'); - * client.send(message, 41234, 'localhost', (err) => { - * client.close(); - * }); - * ``` - * - * Example of sending a UDP packet composed of multiple buffers to a port on`127.0.0.1`; - * - * ```js - * import dgram from 'dgram'; - * import { Buffer } from 'buffer'; - * - * const buf1 = Buffer.from('Some '); - * const buf2 = Buffer.from('bytes'); - * const client = dgram.createSocket('udp4'); - * client.send([buf1, buf2], 41234, (err) => { - * client.close(); - * }); - * ``` - * - * Sending multiple buffers might be faster or slower depending on the - * application and operating system. Run benchmarks to - * determine the optimal strategy on a case-by-case basis. Generally speaking, - * however, sending multiple buffers is faster. - * - * Example of sending a UDP packet using a socket connected to a port on`localhost`: - * - * ```js - * import dgram from 'dgram'; - * import { Buffer } from 'buffer'; - * - * const message = Buffer.from('Some bytes'); - * const client = dgram.createSocket('udp4'); - * client.connect(41234, 'localhost', (err) => { - * client.send(message, (err) => { - * client.close(); - * }); - * }); - * ``` - * @since v0.1.99 - * @param msg Message to be sent. - * @param offset Offset in the buffer where the message starts. - * @param length Number of bytes in the message. - * @param port Destination port. - * @param address Destination host name or IP address. - * @param callback Called when the message has been sent. - */ - send(msg: string | Uint8Array | ReadonlyArray, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void; - send(msg: string | Uint8Array | ReadonlyArray, port?: number, callback?: (error: Error | null, bytes: number) => void): void; - send(msg: string | Uint8Array | ReadonlyArray, callback?: (error: Error | null, bytes: number) => void): void; - send(msg: string | Uint8Array, offset: number, length: number, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void; - send(msg: string | Uint8Array, offset: number, length: number, port?: number, callback?: (error: Error | null, bytes: number) => void): void; - send(msg: string | Uint8Array, offset: number, length: number, callback?: (error: Error | null, bytes: number) => void): void; - /** - * Sets or clears the `SO_BROADCAST` socket option. When set to `true`, UDP - * packets may be sent to a local interface's broadcast address. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.6.9 - */ - setBroadcast(flag: boolean): void; - /** - * _All references to scope in this section are referring to[IPv6 Zone Indices](https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses), which are defined by [RFC - * 4007](https://tools.ietf.org/html/rfc4007). In string form, an IP_ - * _with a scope index is written as `'IP%scope'` where scope is an interface name_ - * _or interface number._ - * - * Sets the default outgoing multicast interface of the socket to a chosen - * interface or back to system interface selection. The `multicastInterface` must - * be a valid string representation of an IP from the socket's family. - * - * For IPv4 sockets, this should be the IP configured for the desired physical - * interface. All packets sent to multicast on the socket will be sent on the - * interface determined by the most recent successful use of this call. - * - * For IPv6 sockets, `multicastInterface` should include a scope to indicate the - * interface as in the examples that follow. In IPv6, individual `send` calls can - * also use explicit scope in addresses, so only packets sent to a multicast - * address without specifying an explicit scope are affected by the most recent - * successful use of this call. - * - * This method throws `EBADF` if called on an unbound socket. - * - * #### Example: IPv6 outgoing multicast interface - * - * On most systems, where scope format uses the interface name: - * - * ```js - * const socket = dgram.createSocket('udp6'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('::%eth1'); - * }); - * ``` - * - * On Windows, where scope format uses an interface number: - * - * ```js - * const socket = dgram.createSocket('udp6'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('::%2'); - * }); - * ``` - * - * #### Example: IPv4 outgoing multicast interface - * - * All systems use an IP of the host on the desired physical interface: - * - * ```js - * const socket = dgram.createSocket('udp4'); - * - * socket.bind(1234, () => { - * socket.setMulticastInterface('10.0.0.2'); - * }); - * ``` - * @since v8.6.0 - */ - setMulticastInterface(multicastInterface: string): void; - /** - * Sets or clears the `IP_MULTICAST_LOOP` socket option. When set to `true`, - * multicast packets will also be received on the local interface. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.3.8 - */ - setMulticastLoopback(flag: boolean): void; - /** - * Sets the `IP_MULTICAST_TTL` socket option. While TTL generally stands for - * "Time to Live", in this context it specifies the number of IP hops that a - * packet is allowed to travel through, specifically for multicast traffic. Each - * router or gateway that forwards a packet decrements the TTL. If the TTL is - * decremented to 0 by a router, it will not be forwarded. - * - * The `ttl` argument may be between 0 and 255\. The default on most systems is `1`. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.3.8 - */ - setMulticastTTL(ttl: number): void; - /** - * Sets the `SO_RCVBUF` socket option. Sets the maximum socket receive buffer - * in bytes. - * - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - */ - setRecvBufferSize(size: number): void; - /** - * Sets the `SO_SNDBUF` socket option. Sets the maximum socket send buffer - * in bytes. - * - * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. - * @since v8.7.0 - */ - setSendBufferSize(size: number): void; - /** - * Sets the `IP_TTL` socket option. While TTL generally stands for "Time to Live", - * in this context it specifies the number of IP hops that a packet is allowed to - * travel through. Each router or gateway that forwards a packet decrements the - * TTL. If the TTL is decremented to 0 by a router, it will not be forwarded. - * Changing TTL values is typically done for network probes or when multicasting. - * - * The `ttl` argument may be between between 1 and 255\. The default on most systems - * is 64. - * - * This method throws `EBADF` if called on an unbound socket. - * @since v0.1.101 - */ - setTTL(ttl: number): void; - /** - * By default, binding a socket will cause it to block the Node.js process from - * exiting as long as the socket is open. The `socket.unref()` method can be used - * to exclude the socket from the reference counting that keeps the Node.js - * process active, allowing the process to exit even if the socket is still - * listening. - * - * Calling `socket.unref()` multiple times will have no addition effect. - * - * The `socket.unref()` method returns a reference to the socket so calls can be - * chained. - * @since v0.9.1 - */ - unref(): this; - /** - * Tells the kernel to join a source-specific multicast channel at the given`sourceAddress` and `groupAddress`, using the `multicastInterface` with the`IP_ADD_SOURCE_MEMBERSHIP` socket - * option. If the `multicastInterface` argument - * is not specified, the operating system will choose one interface and will add - * membership to it. To add membership to every available interface, call`socket.addSourceSpecificMembership()` multiple times, once per interface. - * - * When called on an unbound socket, this method will implicitly bind to a random - * port, listening on all interfaces. - * @since v13.1.0, v12.16.0 - */ - addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; - /** - * Instructs the kernel to leave a source-specific multicast channel at the given`sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP`socket option. This method is - * automatically called by the kernel when the - * socket is closed or the process terminates, so most apps will never have - * reason to call this. - * - * If `multicastInterface` is not specified, the operating system will attempt to - * drop membership on all valid interfaces. - * @since v13.1.0, v12.16.0 - */ - dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; - /** - * events.EventEmitter - * 1. close - * 2. connect - * 3. error - * 4. listening - * 5. message - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'close', listener: () => void): this; - addListener(event: 'connect', listener: () => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'listening', listener: () => void): this; - addListener(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'close'): boolean; - emit(event: 'connect'): boolean; - emit(event: 'error', err: Error): boolean; - emit(event: 'listening'): boolean; - emit(event: 'message', msg: Buffer, rinfo: RemoteInfo): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'connect', listener: () => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'listening', listener: () => void): this; - on(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'connect', listener: () => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'listening', listener: () => void): this; - once(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'connect', listener: () => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'listening', listener: () => void): this; - prependListener(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'connect', listener: () => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'listening', listener: () => void): this; - prependOnceListener(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; - } -} -declare module 'node:dgram' { - export * from 'dgram'; -} diff --git a/WechatBot/node_modules/@types/node/diagnostics_channel.d.ts b/WechatBot/node_modules/@types/node/diagnostics_channel.d.ts deleted file mode 100644 index c27846ba8..000000000 --- a/WechatBot/node_modules/@types/node/diagnostics_channel.d.ts +++ /dev/null @@ -1,128 +0,0 @@ -/** - * The `diagnostics_channel` module provides an API to create named channels - * to report arbitrary message data for diagnostics purposes. - * - * It can be accessed using: - * - * ```js - * import diagnostics_channel from 'diagnostics_channel'; - * ``` - * - * It is intended that a module writer wanting to report diagnostics messages - * will create one or many top-level channels to report messages through. - * Channels may also be acquired at runtime but it is not encouraged - * due to the additional overhead of doing so. Channels may be exported for - * convenience, but as long as the name is known it can be acquired anywhere. - * - * If you intend for your module to produce diagnostics data for others to - * consume it is recommended that you include documentation of what named - * channels are used along with the shape of the message data. Channel names - * should generally include the module name to avoid collisions with data from - * other modules. - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/diagnostics_channel.js) - */ -declare module 'diagnostics_channel' { - /** - * Check if there are active subscribers to the named channel. This is helpful if - * the message you want to send might be expensive to prepare. - * - * This API is optional but helpful when trying to publish messages from very - * performance-sensitive code. - * - * ```js - * import diagnostics_channel from 'diagnostics_channel'; - * - * if (diagnostics_channel.hasSubscribers('my-channel')) { - * // There are subscribers, prepare and publish message - * } - * ``` - * @param name The channel name - * @return If there are active subscribers - */ - function hasSubscribers(name: string): boolean; - /** - * This is the primary entry-point for anyone wanting to interact with a named - * channel. It produces a channel object which is optimized to reduce overhead at - * publish time as much as possible. - * - * ```js - * import diagnostics_channel from 'diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * ``` - * @param name The channel name - * @return The named channel object - */ - function channel(name: string): Channel; - type ChannelListener = (name: string, message: unknown) => void; - /** - * The class `Channel` represents an individual named channel within the data - * pipeline. It is use to track subscribers and to publish messages when there - * are subscribers present. It exists as a separate object to avoid channel - * lookups at publish time, enabling very fast publish speeds and allowing - * for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly - * with `new Channel(name)` is not supported. - */ - class Channel { - readonly name: string; - /** - * Check if there are active subscribers to this channel. This is helpful if - * the message you want to send might be expensive to prepare. - * - * This API is optional but helpful when trying to publish messages from very - * performance-sensitive code. - * - * ```js - * import diagnostics_channel from 'diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * if (channel.hasSubscribers) { - * // There are subscribers, prepare and publish message - * } - * ``` - */ - readonly hasSubscribers: boolean; - private constructor(name: string); - /** - * Register a message handler to subscribe to this channel. This message handler - * will be run synchronously whenever a message is published to the channel. Any - * errors thrown in the message handler will trigger an `'uncaughtException'`. - * - * ```js - * import diagnostics_channel from 'diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * channel.subscribe((message, name) => { - * // Received data - * }); - * ``` - * @param onMessage The handler to receive channel messages - */ - subscribe(onMessage: ChannelListener): void; - /** - * Remove a message handler previously registered to this channel with `channel.subscribe(onMessage)`. - * - * ```js - * import diagnostics_channel from 'diagnostics_channel'; - * - * const channel = diagnostics_channel.channel('my-channel'); - * - * function onMessage(message, name) { - * // Received data - * } - * - * channel.subscribe(onMessage); - * - * channel.unsubscribe(onMessage); - * ``` - * @param onMessage The previous subscribed handler to remove - */ - unsubscribe(onMessage: ChannelListener): void; - } -} -declare module 'node:diagnostics_channel' { - export * from 'diagnostics_channel'; -} diff --git a/WechatBot/node_modules/@types/node/dns.d.ts b/WechatBot/node_modules/@types/node/dns.d.ts deleted file mode 100644 index c34f4c173..000000000 --- a/WechatBot/node_modules/@types/node/dns.d.ts +++ /dev/null @@ -1,643 +0,0 @@ -/** - * The `dns` module enables name resolution. For example, use it to look up IP - * addresses of host names. - * - * Although named for the [Domain Name System (DNS)](https://en.wikipedia.org/wiki/Domain_Name_System), it does not always use the - * DNS protocol for lookups. {@link lookup} uses the operating system - * facilities to perform name resolution. It may not need to perform any network - * communication. To perform name resolution the way other applications on the same - * system do, use {@link lookup}. - * - * ```js - * const dns = require('dns'); - * - * dns.lookup('example.org', (err, address, family) => { - * console.log('address: %j family: IPv%s', address, family); - * }); - * // address: "93.184.216.34" family: IPv4 - * ``` - * - * All other functions in the `dns` module connect to an actual DNS server to - * perform name resolution. They will always use the network to perform DNS - * queries. These functions do not use the same set of configuration files used by {@link lookup} (e.g. `/etc/hosts`). Use these functions to always perform - * DNS queries, bypassing other name-resolution facilities. - * - * ```js - * const dns = require('dns'); - * - * dns.resolve4('archive.org', (err, addresses) => { - * if (err) throw err; - * - * console.log(`addresses: ${JSON.stringify(addresses)}`); - * - * addresses.forEach((a) => { - * dns.reverse(a, (err, hostnames) => { - * if (err) { - * throw err; - * } - * console.log(`reverse for ${a}: ${JSON.stringify(hostnames)}`); - * }); - * }); - * }); - * ``` - * - * See the `Implementation considerations section` for more information. - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/dns.js) - */ -declare module 'dns' { - import * as dnsPromises from 'node:dns/promises'; - // Supported getaddrinfo flags. - export const ADDRCONFIG: number; - export const V4MAPPED: number; - /** - * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as - * well as IPv4 mapped IPv6 addresses. - */ - export const ALL: number; - export interface LookupOptions { - family?: number | undefined; - hints?: number | undefined; - all?: boolean | undefined; - verbatim?: boolean | undefined; - } - export interface LookupOneOptions extends LookupOptions { - all?: false | undefined; - } - export interface LookupAllOptions extends LookupOptions { - all: true; - } - export interface LookupAddress { - address: string; - family: number; - } - /** - * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or - * AAAA (IPv6) record. All `option` properties are optional. If `options` is an - * integer, then it must be `4` or `6` – if `options` is not provided, then IPv4 - * and IPv6 addresses are both returned if found. - * - * With the `all` option set to `true`, the arguments for `callback` change to`(err, addresses)`, with `addresses` being an array of objects with the - * properties `address` and `family`. - * - * On error, `err` is an `Error` object, where `err.code` is the error code. - * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when - * the host name does not exist but also when the lookup fails in other ways - * such as no available file descriptors. - * - * `dns.lookup()` does not necessarily have anything to do with the DNS protocol. - * The implementation uses an operating system facility that can associate names - * with addresses, and vice versa. This implementation can have subtle but - * important consequences on the behavior of any Node.js program. Please take some - * time to consult the `Implementation considerations section` before using`dns.lookup()`. - * - * Example usage: - * - * ```js - * const dns = require('dns'); - * const options = { - * family: 6, - * hints: dns.ADDRCONFIG | dns.V4MAPPED, - * }; - * dns.lookup('example.com', options, (err, address, family) => - * console.log('address: %j family: IPv%s', address, family)); - * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 - * - * // When options.all is true, the result will be an Array. - * options.all = true; - * dns.lookup('example.com', options, (err, addresses) => - * console.log('addresses: %j', addresses)); - * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] - * ``` - * - * If this method is invoked as its `util.promisify()` ed version, and `all`is not set to `true`, it returns a `Promise` for an `Object` with `address` and`family` properties. - * @since v0.1.90 - */ - export function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; - export function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; - export function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void; - export function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void; - export function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; - export namespace lookup { - function __promisify__(hostname: string, options: LookupAllOptions): Promise; - function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise; - function __promisify__(hostname: string, options: LookupOptions): Promise; - } - /** - * Resolves the given `address` and `port` into a host name and service using - * the operating system's underlying `getnameinfo` implementation. - * - * If `address` is not a valid IP address, a `TypeError` will be thrown. - * The `port` will be coerced to a number. If it is not a legal port, a `TypeError`will be thrown. - * - * On an error, `err` is an `Error` object, where `err.code` is the error code. - * - * ```js - * const dns = require('dns'); - * dns.lookupService('127.0.0.1', 22, (err, hostname, service) => { - * console.log(hostname, service); - * // Prints: localhost ssh - * }); - * ``` - * - * If this method is invoked as its `util.promisify()` ed version, it returns a`Promise` for an `Object` with `hostname` and `service` properties. - * @since v0.11.14 - */ - export function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void): void; - export namespace lookupService { - function __promisify__( - address: string, - port: number - ): Promise<{ - hostname: string; - service: string; - }>; - } - export interface ResolveOptions { - ttl: boolean; - } - export interface ResolveWithTtlOptions extends ResolveOptions { - ttl: true; - } - export interface RecordWithTtl { - address: string; - ttl: number; - } - /** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */ - export type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord; - export interface AnyARecord extends RecordWithTtl { - type: 'A'; - } - export interface AnyAaaaRecord extends RecordWithTtl { - type: 'AAAA'; - } - export interface CaaRecord { - critial: number; - issue?: string | undefined; - issuewild?: string | undefined; - iodef?: string | undefined; - contactemail?: string | undefined; - contactphone?: string | undefined; - } - export interface MxRecord { - priority: number; - exchange: string; - } - export interface AnyMxRecord extends MxRecord { - type: 'MX'; - } - export interface NaptrRecord { - flags: string; - service: string; - regexp: string; - replacement: string; - order: number; - preference: number; - } - export interface AnyNaptrRecord extends NaptrRecord { - type: 'NAPTR'; - } - export interface SoaRecord { - nsname: string; - hostmaster: string; - serial: number; - refresh: number; - retry: number; - expire: number; - minttl: number; - } - export interface AnySoaRecord extends SoaRecord { - type: 'SOA'; - } - export interface SrvRecord { - priority: number; - weight: number; - port: number; - name: string; - } - export interface AnySrvRecord extends SrvRecord { - type: 'SRV'; - } - export interface AnyTxtRecord { - type: 'TXT'; - entries: string[]; - } - export interface AnyNsRecord { - type: 'NS'; - value: string; - } - export interface AnyPtrRecord { - type: 'PTR'; - value: string; - } - export interface AnyCnameRecord { - type: 'CNAME'; - value: string; - } - export type AnyRecord = AnyARecord | AnyAaaaRecord | AnyCnameRecord | AnyMxRecord | AnyNaptrRecord | AnyNsRecord | AnyPtrRecord | AnySoaRecord | AnySrvRecord | AnyTxtRecord; - /** - * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array - * of the resource records. The `callback` function has arguments`(err, records)`. When successful, `records` will be an array of resource - * records. The type and structure of individual results varies based on `rrtype`: - * - * - * - * On error, `err` is an `Error` object, where `err.code` is one of the `DNS error codes`. - * @since v0.1.27 - * @param hostname Host name to resolve. - * @param [rrtype='A'] Resource record type. - */ - export function resolve(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; - export function resolve(hostname: string, rrtype: 'A', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; - export function resolve(hostname: string, rrtype: 'AAAA', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; - export function resolve(hostname: string, rrtype: 'ANY', callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void; - export function resolve(hostname: string, rrtype: 'CNAME', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; - export function resolve(hostname: string, rrtype: 'MX', callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void; - export function resolve(hostname: string, rrtype: 'NAPTR', callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void; - export function resolve(hostname: string, rrtype: 'NS', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; - export function resolve(hostname: string, rrtype: 'PTR', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; - export function resolve(hostname: string, rrtype: 'SOA', callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void): void; - export function resolve(hostname: string, rrtype: 'SRV', callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void; - export function resolve(hostname: string, rrtype: 'TXT', callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void; - export function resolve( - hostname: string, - rrtype: string, - callback: (err: NodeJS.ErrnoException | null, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]) => void - ): void; - export namespace resolve { - function __promisify__(hostname: string, rrtype?: 'A' | 'AAAA' | 'CNAME' | 'NS' | 'PTR'): Promise; - function __promisify__(hostname: string, rrtype: 'ANY'): Promise; - function __promisify__(hostname: string, rrtype: 'MX'): Promise; - function __promisify__(hostname: string, rrtype: 'NAPTR'): Promise; - function __promisify__(hostname: string, rrtype: 'SOA'): Promise; - function __promisify__(hostname: string, rrtype: 'SRV'): Promise; - function __promisify__(hostname: string, rrtype: 'TXT'): Promise; - function __promisify__(hostname: string, rrtype: string): Promise; - } - /** - * Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the`hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of IPv4 addresses (e.g.`['74.125.79.104', '74.125.79.105', '74.125.79.106']`). - * @since v0.1.16 - * @param hostname Host name to resolve. - */ - export function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; - export function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void; - export function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void; - export namespace resolve4 { - function __promisify__(hostname: string): Promise; - function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; - function __promisify__(hostname: string, options?: ResolveOptions): Promise; - } - /** - * Uses the DNS protocol to resolve a IPv6 addresses (`AAAA` records) for the`hostname`. The `addresses` argument passed to the `callback` function - * will contain an array of IPv6 addresses. - * @since v0.1.16 - * @param hostname Host name to resolve. - */ - export function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; - export function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void; - export function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void; - export namespace resolve6 { - function __promisify__(hostname: string): Promise; - function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; - function __promisify__(hostname: string, options?: ResolveOptions): Promise; - } - /** - * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The`addresses` argument passed to the `callback` function - * will contain an array of canonical name records available for the `hostname`(e.g. `['bar.example.com']`). - * @since v0.3.2 - */ - export function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; - export namespace resolveCname { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve `CAA` records for the `hostname`. The`addresses` argument passed to the `callback` function - * will contain an array of certification authority authorization records - * available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`). - * @since v15.0.0 - */ - export function resolveCaa(hostname: string, callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void): void; - export namespace resolveCaa { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the`hostname`. The `addresses` argument passed to the `callback` function will - * contain an array of objects containing both a `priority` and `exchange`property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`). - * @since v0.1.27 - */ - export function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void; - export namespace resolveMx { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve regular expression based records (`NAPTR`records) for the `hostname`. The `addresses` argument passed to the `callback`function will contain an array of - * objects with the following properties: - * - * * `flags` - * * `service` - * * `regexp` - * * `replacement` - * * `order` - * * `preference` - * - * ```js - * { - * flags: 's', - * service: 'SIP+D2U', - * regexp: '', - * replacement: '_sip._udp.example.com', - * order: 30, - * preference: 100 - * } - * ``` - * @since v0.9.12 - */ - export function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void; - export namespace resolveNaptr { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve name server records (`NS` records) for the`hostname`. The `addresses` argument passed to the `callback` function will - * contain an array of name server records available for `hostname`(e.g. `['ns1.example.com', 'ns2.example.com']`). - * @since v0.1.90 - */ - export function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; - export namespace resolveNs { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve pointer records (`PTR` records) for the`hostname`. The `addresses` argument passed to the `callback` function will - * be an array of strings containing the reply records. - * @since v6.0.0 - */ - export function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; - export namespace resolvePtr { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for - * the `hostname`. The `address` argument passed to the `callback` function will - * be an object with the following properties: - * - * * `nsname` - * * `hostmaster` - * * `serial` - * * `refresh` - * * `retry` - * * `expire` - * * `minttl` - * - * ```js - * { - * nsname: 'ns.example.com', - * hostmaster: 'root.example.com', - * serial: 2013101809, - * refresh: 10000, - * retry: 2400, - * expire: 604800, - * minttl: 3600 - * } - * ``` - * @since v0.11.10 - */ - export function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void): void; - export namespace resolveSoa { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve service records (`SRV` records) for the`hostname`. The `addresses` argument passed to the `callback` function will - * be an array of objects with the following properties: - * - * * `priority` - * * `weight` - * * `port` - * * `name` - * - * ```js - * { - * priority: 10, - * weight: 5, - * port: 21223, - * name: 'service.example.com' - * } - * ``` - * @since v0.1.27 - */ - export function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void; - export namespace resolveSrv { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve text queries (`TXT` records) for the`hostname`. The `records` argument passed to the `callback` function is a - * two-dimensional array of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of - * one record. Depending on the use case, these could be either joined together or - * treated separately. - * @since v0.1.27 - */ - export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void; - export namespace resolveTxt { - function __promisify__(hostname: string): Promise; - } - /** - * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). - * The `ret` argument passed to the `callback` function will be an array containing - * various types of records. Each object has a property `type` that indicates the - * type of the current record. And depending on the `type`, additional properties - * will be present on the object: - * - * - * - * Here is an example of the `ret` object passed to the callback: - * - * ```js - * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, - * { type: 'CNAME', value: 'example.com' }, - * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, - * { type: 'NS', value: 'ns1.example.com' }, - * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, - * { type: 'SOA', - * nsname: 'ns1.example.com', - * hostmaster: 'admin.example.com', - * serial: 156696742, - * refresh: 900, - * retry: 900, - * expire: 1800, - * minttl: 60 } ] - * ``` - * - * DNS server operators may choose not to respond to `ANY`queries. It may be better to call individual methods like {@link resolve4},{@link resolveMx}, and so on. For more details, see [RFC - * 8482](https://tools.ietf.org/html/rfc8482). - */ - export function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void; - export namespace resolveAny { - function __promisify__(hostname: string): Promise; - } - /** - * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an - * array of host names. - * - * On error, `err` is an `Error` object, where `err.code` is - * one of the `DNS error codes`. - * @since v0.1.16 - */ - export function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void; - /** - * Sets the IP address and port of servers to be used when performing DNS - * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted - * addresses. If the port is the IANA default DNS port (53) it can be omitted. - * - * ```js - * dns.setServers([ - * '4.4.4.4', - * '[2001:4860:4860::8888]', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ]); - * ``` - * - * An error will be thrown if an invalid address is provided. - * - * The `dns.setServers()` method must not be called while a DNS query is in - * progress. - * - * The {@link setServers} method affects only {@link resolve},`dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}). - * - * This method works much like[resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). - * That is, if attempting to resolve with the first server provided results in a`NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with - * subsequent servers provided. Fallback DNS servers will only be used if the - * earlier ones time out or result in some other error. - * @since v0.11.3 - * @param servers array of `RFC 5952` formatted addresses - */ - export function setServers(servers: ReadonlyArray): void; - /** - * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), - * that are currently configured for DNS resolution. A string will include a port - * section if a custom port is used. - * - * ```js - * [ - * '4.4.4.4', - * '2001:4860:4860::8888', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ] - * ``` - * @since v0.11.3 - */ - export function getServers(): string[]; - // Error codes - export const NODATA: string; - export const FORMERR: string; - export const SERVFAIL: string; - export const NOTFOUND: string; - export const NOTIMP: string; - export const REFUSED: string; - export const BADQUERY: string; - export const BADNAME: string; - export const BADFAMILY: string; - export const BADRESP: string; - export const CONNREFUSED: string; - export const TIMEOUT: string; - export const EOF: string; - export const FILE: string; - export const NOMEM: string; - export const DESTRUCTION: string; - export const BADSTR: string; - export const BADFLAGS: string; - export const NONAME: string; - export const BADHINTS: string; - export const NOTINITIALIZED: string; - export const LOADIPHLPAPI: string; - export const ADDRGETNETWORKPARAMS: string; - export const CANCELLED: string; - export interface ResolverOptions { - timeout?: number | undefined; - /** - * @default 4 - */ - tries?: number; - } - /** - * An independent resolver for DNS requests. - * - * Creating a new resolver uses the default server settings. Setting - * the servers used for a resolver using `resolver.setServers()` does not affect - * other resolvers: - * - * ```js - * const { Resolver } = require('dns'); - * const resolver = new Resolver(); - * resolver.setServers(['4.4.4.4']); - * - * // This request will use the server at 4.4.4.4, independent of global settings. - * resolver.resolve4('example.org', (err, addresses) => { - * // ... - * }); - * ``` - * - * The following methods from the `dns` module are available: - * - * * `resolver.getServers()` - * * `resolver.resolve()` - * * `resolver.resolve4()` - * * `resolver.resolve6()` - * * `resolver.resolveAny()` - * * `resolver.resolveCaa()` - * * `resolver.resolveCname()` - * * `resolver.resolveMx()` - * * `resolver.resolveNaptr()` - * * `resolver.resolveNs()` - * * `resolver.resolvePtr()` - * * `resolver.resolveSoa()` - * * `resolver.resolveSrv()` - * * `resolver.resolveTxt()` - * * `resolver.reverse()` - * * `resolver.setServers()` - * @since v8.3.0 - */ - export class Resolver { - constructor(options?: ResolverOptions); - /** - * Cancel all outstanding DNS queries made by this resolver. The corresponding - * callbacks will be called with an error with code `ECANCELLED`. - * @since v8.3.0 - */ - cancel(): void; - getServers: typeof getServers; - resolve: typeof resolve; - resolve4: typeof resolve4; - resolve6: typeof resolve6; - resolveAny: typeof resolveAny; - resolveCname: typeof resolveCname; - resolveMx: typeof resolveMx; - resolveNaptr: typeof resolveNaptr; - resolveNs: typeof resolveNs; - resolvePtr: typeof resolvePtr; - resolveSoa: typeof resolveSoa; - resolveSrv: typeof resolveSrv; - resolveTxt: typeof resolveTxt; - reverse: typeof reverse; - /** - * The resolver instance will send its requests from the specified IP address. - * This allows programs to specify outbound interfaces when used on multi-homed - * systems. - * - * If a v4 or v6 address is not specified, it is set to the default, and the - * operating system will choose a local address automatically. - * - * The resolver will use the v4 local address when making requests to IPv4 DNS - * servers, and the v6 local address when making requests to IPv6 DNS servers. - * The `rrtype` of resolution requests has no impact on the local address used. - * @since v15.1.0 - * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address. - * @param [ipv6='::0'] A string representation of an IPv6 address. - */ - setLocalAddress(ipv4?: string, ipv6?: string): void; - setServers: typeof setServers; - } - export { dnsPromises as promises }; -} -declare module 'node:dns' { - export * from 'dns'; -} diff --git a/WechatBot/node_modules/@types/node/dns/promises.d.ts b/WechatBot/node_modules/@types/node/dns/promises.d.ts deleted file mode 100644 index 9ce3fd2e5..000000000 --- a/WechatBot/node_modules/@types/node/dns/promises.d.ts +++ /dev/null @@ -1,357 +0,0 @@ -/** - * The `dns.promises` API provides an alternative set of asynchronous DNS methods - * that return `Promise` objects rather than using callbacks. The API is accessible - * via `require('dns').promises` or `require('dns/promises')`. - * @since v10.6.0 - */ -declare module 'dns/promises' { - import { - LookupAddress, - LookupOneOptions, - LookupAllOptions, - LookupOptions, - AnyRecord, - CaaRecord, - MxRecord, - NaptrRecord, - SoaRecord, - SrvRecord, - ResolveWithTtlOptions, - RecordWithTtl, - ResolveOptions, - ResolverOptions, - } from 'node:dns'; - /** - * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), - * that are currently configured for DNS resolution. A string will include a port - * section if a custom port is used. - * - * ```js - * [ - * '4.4.4.4', - * '2001:4860:4860::8888', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ] - * ``` - * @since v10.6.0 - */ - function getServers(): string[]; - /** - * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or - * AAAA (IPv6) record. All `option` properties are optional. If `options` is an - * integer, then it must be `4` or `6` – if `options` is not provided, then IPv4 - * and IPv6 addresses are both returned if found. - * - * With the `all` option set to `true`, the `Promise` is resolved with `addresses`being an array of objects with the properties `address` and `family`. - * - * On error, the `Promise` is rejected with an `Error` object, where `err.code`is the error code. - * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when - * the host name does not exist but also when the lookup fails in other ways - * such as no available file descriptors. - * - * `dnsPromises.lookup()` does not necessarily have anything to do with the DNS - * protocol. The implementation uses an operating system facility that can - * associate names with addresses, and vice versa. This implementation can have - * subtle but important consequences on the behavior of any Node.js program. Please - * take some time to consult the `Implementation considerations section` before - * using `dnsPromises.lookup()`. - * - * Example usage: - * - * ```js - * const dns = require('dns'); - * const dnsPromises = dns.promises; - * const options = { - * family: 6, - * hints: dns.ADDRCONFIG | dns.V4MAPPED, - * }; - * - * dnsPromises.lookup('example.com', options).then((result) => { - * console.log('address: %j family: IPv%s', result.address, result.family); - * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 - * }); - * - * // When options.all is true, the result will be an Array. - * options.all = true; - * dnsPromises.lookup('example.com', options).then((result) => { - * console.log('addresses: %j', result); - * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] - * }); - * ``` - * @since v10.6.0 - */ - function lookup(hostname: string, family: number): Promise; - function lookup(hostname: string, options: LookupOneOptions): Promise; - function lookup(hostname: string, options: LookupAllOptions): Promise; - function lookup(hostname: string, options: LookupOptions): Promise; - function lookup(hostname: string): Promise; - /** - * Resolves the given `address` and `port` into a host name and service using - * the operating system's underlying `getnameinfo` implementation. - * - * If `address` is not a valid IP address, a `TypeError` will be thrown. - * The `port` will be coerced to a number. If it is not a legal port, a `TypeError`will be thrown. - * - * On error, the `Promise` is rejected with an `Error` object, where `err.code`is the error code. - * - * ```js - * const dnsPromises = require('dns').promises; - * dnsPromises.lookupService('127.0.0.1', 22).then((result) => { - * console.log(result.hostname, result.service); - * // Prints: localhost ssh - * }); - * ``` - * @since v10.6.0 - */ - function lookupService( - address: string, - port: number - ): Promise<{ - hostname: string; - service: string; - }>; - /** - * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array - * of the resource records. When successful, the `Promise` is resolved with an - * array of resource records. The type and structure of individual results vary - * based on `rrtype`: - * - * - * - * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the `DNS error codes`. - * @since v10.6.0 - * @param hostname Host name to resolve. - * @param [rrtype='A'] Resource record type. - */ - function resolve(hostname: string): Promise; - function resolve(hostname: string, rrtype: 'A'): Promise; - function resolve(hostname: string, rrtype: 'AAAA'): Promise; - function resolve(hostname: string, rrtype: 'ANY'): Promise; - function resolve(hostname: string, rrtype: 'CAA'): Promise; - function resolve(hostname: string, rrtype: 'CNAME'): Promise; - function resolve(hostname: string, rrtype: 'MX'): Promise; - function resolve(hostname: string, rrtype: 'NAPTR'): Promise; - function resolve(hostname: string, rrtype: 'NS'): Promise; - function resolve(hostname: string, rrtype: 'PTR'): Promise; - function resolve(hostname: string, rrtype: 'SOA'): Promise; - function resolve(hostname: string, rrtype: 'SRV'): Promise; - function resolve(hostname: string, rrtype: 'TXT'): Promise; - function resolve(hostname: string, rrtype: string): Promise; - /** - * Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the`hostname`. On success, the `Promise` is resolved with an array of IPv4 - * addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`). - * @since v10.6.0 - * @param hostname Host name to resolve. - */ - function resolve4(hostname: string): Promise; - function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise; - function resolve4(hostname: string, options: ResolveOptions): Promise; - /** - * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the`hostname`. On success, the `Promise` is resolved with an array of IPv6 - * addresses. - * @since v10.6.0 - * @param hostname Host name to resolve. - */ - function resolve6(hostname: string): Promise; - function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise; - function resolve6(hostname: string, options: ResolveOptions): Promise; - /** - * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). - * On success, the `Promise` is resolved with an array containing various types of - * records. Each object has a property `type` that indicates the type of the - * current record. And depending on the `type`, additional properties will be - * present on the object: - * - * - * - * Here is an example of the result object: - * - * ```js - * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, - * { type: 'CNAME', value: 'example.com' }, - * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, - * { type: 'NS', value: 'ns1.example.com' }, - * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, - * { type: 'SOA', - * nsname: 'ns1.example.com', - * hostmaster: 'admin.example.com', - * serial: 156696742, - * refresh: 900, - * retry: 900, - * expire: 1800, - * minttl: 60 } ] - * ``` - * @since v10.6.0 - */ - function resolveAny(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success, - * the `Promise` is resolved with an array of objects containing available - * certification authority authorization records available for the `hostname`(e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`). - * @since v15.0.0 - */ - function resolveCaa(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success, - * the `Promise` is resolved with an array of canonical name records available for - * the `hostname` (e.g. `['bar.example.com']`). - * @since v10.6.0 - */ - function resolveCname(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the`hostname`. On success, the `Promise` is resolved with an array of objects - * containing both a `priority` and `exchange` property (e.g.`[{priority: 10, exchange: 'mx.example.com'}, ...]`). - * @since v10.6.0 - */ - function resolveMx(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve regular expression based records (`NAPTR`records) for the `hostname`. On success, the `Promise` is resolved with an array - * of objects with the following properties: - * - * * `flags` - * * `service` - * * `regexp` - * * `replacement` - * * `order` - * * `preference` - * - * ```js - * { - * flags: 's', - * service: 'SIP+D2U', - * regexp: '', - * replacement: '_sip._udp.example.com', - * order: 30, - * preference: 100 - * } - * ``` - * @since v10.6.0 - */ - function resolveNaptr(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve name server records (`NS` records) for the`hostname`. On success, the `Promise` is resolved with an array of name server - * records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`). - * @since v10.6.0 - */ - function resolveNs(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve pointer records (`PTR` records) for the`hostname`. On success, the `Promise` is resolved with an array of strings - * containing the reply records. - * @since v10.6.0 - */ - function resolvePtr(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for - * the `hostname`. On success, the `Promise` is resolved with an object with the - * following properties: - * - * * `nsname` - * * `hostmaster` - * * `serial` - * * `refresh` - * * `retry` - * * `expire` - * * `minttl` - * - * ```js - * { - * nsname: 'ns.example.com', - * hostmaster: 'root.example.com', - * serial: 2013101809, - * refresh: 10000, - * retry: 2400, - * expire: 604800, - * minttl: 3600 - * } - * ``` - * @since v10.6.0 - */ - function resolveSoa(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve service records (`SRV` records) for the`hostname`. On success, the `Promise` is resolved with an array of objects with - * the following properties: - * - * * `priority` - * * `weight` - * * `port` - * * `name` - * - * ```js - * { - * priority: 10, - * weight: 5, - * port: 21223, - * name: 'service.example.com' - * } - * ``` - * @since v10.6.0 - */ - function resolveSrv(hostname: string): Promise; - /** - * Uses the DNS protocol to resolve text queries (`TXT` records) for the`hostname`. On success, the `Promise` is resolved with a two-dimensional array - * of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of - * one record. Depending on the use case, these could be either joined together or - * treated separately. - * @since v10.6.0 - */ - function resolveTxt(hostname: string): Promise; - /** - * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an - * array of host names. - * - * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the `DNS error codes`. - * @since v10.6.0 - */ - function reverse(ip: string): Promise; - /** - * Sets the IP address and port of servers to be used when performing DNS - * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted - * addresses. If the port is the IANA default DNS port (53) it can be omitted. - * - * ```js - * dnsPromises.setServers([ - * '4.4.4.4', - * '[2001:4860:4860::8888]', - * '4.4.4.4:1053', - * '[2001:4860:4860::8888]:1053', - * ]); - * ``` - * - * An error will be thrown if an invalid address is provided. - * - * The `dnsPromises.setServers()` method must not be called while a DNS query is in - * progress. - * - * This method works much like[resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). - * That is, if attempting to resolve with the first server provided results in a`NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with - * subsequent servers provided. Fallback DNS servers will only be used if the - * earlier ones time out or result in some other error. - * @since v10.6.0 - * @param servers array of `RFC 5952` formatted addresses - */ - function setServers(servers: ReadonlyArray): void; - class Resolver { - constructor(options?: ResolverOptions); - cancel(): void; - getServers: typeof getServers; - resolve: typeof resolve; - resolve4: typeof resolve4; - resolve6: typeof resolve6; - resolveAny: typeof resolveAny; - resolveCname: typeof resolveCname; - resolveMx: typeof resolveMx; - resolveNaptr: typeof resolveNaptr; - resolveNs: typeof resolveNs; - resolvePtr: typeof resolvePtr; - resolveSoa: typeof resolveSoa; - resolveSrv: typeof resolveSrv; - resolveTxt: typeof resolveTxt; - reverse: typeof reverse; - setLocalAddress(ipv4?: string, ipv6?: string): void; - setServers: typeof setServers; - } -} -declare module 'node:dns/promises' { - export * from 'dns/promises'; -} diff --git a/WechatBot/node_modules/@types/node/domain.d.ts b/WechatBot/node_modules/@types/node/domain.d.ts deleted file mode 100644 index 7b3018e5b..000000000 --- a/WechatBot/node_modules/@types/node/domain.d.ts +++ /dev/null @@ -1,169 +0,0 @@ -/** - * **This module is pending deprecation.** Once a replacement API has been - * finalized, this module will be fully deprecated. Most developers should**not** have cause to use this module. Users who absolutely must have - * the functionality that domains provide may rely on it for the time being - * but should expect to have to migrate to a different solution - * in the future. - * - * Domains provide a way to handle multiple different IO operations as a - * single group. If any of the event emitters or callbacks registered to a - * domain emit an `'error'` event, or throw an error, then the domain object - * will be notified, rather than losing the context of the error in the`process.on('uncaughtException')` handler, or causing the program to - * exit immediately with an error code. - * @deprecated Since v1.4.2 - Deprecated - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/domain.js) - */ -declare module 'domain' { - import EventEmitter = require('node:events'); - /** - * The `Domain` class encapsulates the functionality of routing errors and - * uncaught exceptions to the active `Domain` object. - * - * To handle the errors that it catches, listen to its `'error'` event. - */ - class Domain extends EventEmitter { - /** - * An array of timers and event emitters that have been explicitly added - * to the domain. - */ - members: Array; - /** - * The `enter()` method is plumbing used by the `run()`, `bind()`, and`intercept()` methods to set the active domain. It sets `domain.active` and`process.domain` to the domain, and implicitly - * pushes the domain onto the domain - * stack managed by the domain module (see {@link exit} for details on the - * domain stack). The call to `enter()` delimits the beginning of a chain of - * asynchronous calls and I/O operations bound to a domain. - * - * Calling `enter()` changes only the active domain, and does not alter the domain - * itself. `enter()` and `exit()` can be called an arbitrary number of times on a - * single domain. - */ - enter(): void; - /** - * The `exit()` method exits the current domain, popping it off the domain stack. - * Any time execution is going to switch to the context of a different chain of - * asynchronous calls, it's important to ensure that the current domain is exited. - * The call to `exit()` delimits either the end of or an interruption to the chain - * of asynchronous calls and I/O operations bound to a domain. - * - * If there are multiple, nested domains bound to the current execution context,`exit()` will exit any domains nested within this domain. - * - * Calling `exit()` changes only the active domain, and does not alter the domain - * itself. `enter()` and `exit()` can be called an arbitrary number of times on a - * single domain. - */ - exit(): void; - /** - * Run the supplied function in the context of the domain, implicitly - * binding all event emitters, timers, and lowlevel requests that are - * created in that context. Optionally, arguments can be passed to - * the function. - * - * This is the most basic way to use a domain. - * - * ```js - * const domain = require('domain'); - * const fs = require('fs'); - * const d = domain.create(); - * d.on('error', (er) => { - * console.error('Caught error!', er); - * }); - * d.run(() => { - * process.nextTick(() => { - * setTimeout(() => { // Simulating some various async stuff - * fs.open('non-existent file', 'r', (er, fd) => { - * if (er) throw er; - * // proceed... - * }); - * }, 100); - * }); - * }); - * ``` - * - * In this example, the `d.on('error')` handler will be triggered, rather - * than crashing the program. - */ - run(fn: (...args: any[]) => T, ...args: any[]): T; - /** - * Explicitly adds an emitter to the domain. If any event handlers called by - * the emitter throw an error, or if the emitter emits an `'error'` event, it - * will be routed to the domain's `'error'` event, just like with implicit - * binding. - * - * This also works with timers that are returned from `setInterval()` and `setTimeout()`. If their callback function throws, it will be caught by - * the domain `'error'` handler. - * - * If the Timer or `EventEmitter` was already bound to a domain, it is removed - * from that one, and bound to this one instead. - * @param emitter emitter or timer to be added to the domain - */ - add(emitter: EventEmitter | NodeJS.Timer): void; - /** - * The opposite of {@link add}. Removes domain handling from the - * specified emitter. - * @param emitter emitter or timer to be removed from the domain - */ - remove(emitter: EventEmitter | NodeJS.Timer): void; - /** - * The returned function will be a wrapper around the supplied callback - * function. When the returned function is called, any errors that are - * thrown will be routed to the domain's `'error'` event. - * - * ```js - * const d = domain.create(); - * - * function readSomeFile(filename, cb) { - * fs.readFile(filename, 'utf8', d.bind((er, data) => { - * // If this throws, it will also be passed to the domain. - * return cb(er, data ? JSON.parse(data) : null); - * })); - * } - * - * d.on('error', (er) => { - * // An error occurred somewhere. If we throw it now, it will crash the program - * // with the normal line number and stack message. - * }); - * ``` - * @param callback The callback function - * @return The bound function - */ - bind(callback: T): T; - /** - * This method is almost identical to {@link bind}. However, in - * addition to catching thrown errors, it will also intercept `Error` objects sent as the first argument to the function. - * - * In this way, the common `if (err) return callback(err);` pattern can be replaced - * with a single error handler in a single place. - * - * ```js - * const d = domain.create(); - * - * function readSomeFile(filename, cb) { - * fs.readFile(filename, 'utf8', d.intercept((data) => { - * // Note, the first argument is never passed to the - * // callback since it is assumed to be the 'Error' argument - * // and thus intercepted by the domain. - * - * // If this throws, it will also be passed to the domain - * // so the error-handling logic can be moved to the 'error' - * // event on the domain instead of being repeated throughout - * // the program. - * return cb(null, JSON.parse(data)); - * })); - * } - * - * d.on('error', (er) => { - * // An error occurred somewhere. If we throw it now, it will crash the program - * // with the normal line number and stack message. - * }); - * ``` - * @param callback The callback function - * @return The intercepted function - */ - intercept(callback: T): T; - } - function create(): Domain; -} -declare module 'node:domain' { - export * from 'domain'; -} diff --git a/WechatBot/node_modules/@types/node/events.d.ts b/WechatBot/node_modules/@types/node/events.d.ts deleted file mode 100644 index 97c705517..000000000 --- a/WechatBot/node_modules/@types/node/events.d.ts +++ /dev/null @@ -1,623 +0,0 @@ -/** - * Much of the Node.js core API is built around an idiomatic asynchronous - * event-driven architecture in which certain kinds of objects (called "emitters") - * emit named events that cause `Function` objects ("listeners") to be called. - * - * For instance: a `net.Server` object emits an event each time a peer - * connects to it; a `fs.ReadStream` emits an event when the file is opened; - * a `stream` emits an event whenever data is available to be read. - * - * All objects that emit events are instances of the `EventEmitter` class. These - * objects expose an `eventEmitter.on()` function that allows one or more - * functions to be attached to named events emitted by the object. Typically, - * event names are camel-cased strings but any valid JavaScript property key - * can be used. - * - * When the `EventEmitter` object emits an event, all of the functions attached - * to that specific event are called _synchronously_. Any values returned by the - * called listeners are _ignored_ and discarded. - * - * The following example shows a simple `EventEmitter` instance with a single - * listener. The `eventEmitter.on()` method is used to register listeners, while - * the `eventEmitter.emit()` method is used to trigger the event. - * - * ```js - * const EventEmitter = require('events'); - * - * class MyEmitter extends EventEmitter {} - * - * const myEmitter = new MyEmitter(); - * myEmitter.on('event', () => { - * console.log('an event occurred!'); - * }); - * myEmitter.emit('event'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/events.js) - */ -declare module 'events' { - interface EventEmitterOptions { - /** - * Enables automatic capturing of promise rejection. - */ - captureRejections?: boolean | undefined; - } - interface NodeEventTarget { - once(eventName: string | symbol, listener: (...args: any[]) => void): this; - } - interface DOMEventTarget { - addEventListener( - eventName: string, - listener: (...args: any[]) => void, - opts?: { - once: boolean; - } - ): any; - } - interface StaticEventEmitterOptions { - signal?: AbortSignal | undefined; - } - interface EventEmitter extends NodeJS.EventEmitter {} - /** - * The `EventEmitter` class is defined and exposed by the `events` module: - * - * ```js - * const EventEmitter = require('events'); - * ``` - * - * All `EventEmitter`s emit the event `'newListener'` when new listeners are - * added and `'removeListener'` when existing listeners are removed. - * - * It supports the following option: - * @since v0.1.26 - */ - class EventEmitter { - constructor(options?: EventEmitterOptions); - /** - * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given - * event or that is rejected if the `EventEmitter` emits `'error'` while waiting. - * The `Promise` will resolve with an array of all the arguments emitted to the - * given event. - * - * This method is intentionally generic and works with the web platform[EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event - * semantics and does not listen to the `'error'` event. - * - * ```js - * const { once, EventEmitter } = require('events'); - * - * async function run() { - * const ee = new EventEmitter(); - * - * process.nextTick(() => { - * ee.emit('myevent', 42); - * }); - * - * const [value] = await once(ee, 'myevent'); - * console.log(value); - * - * const err = new Error('kaboom'); - * process.nextTick(() => { - * ee.emit('error', err); - * }); - * - * try { - * await once(ee, 'myevent'); - * } catch (err) { - * console.log('error happened', err); - * } - * } - * - * run(); - * ``` - * - * The special handling of the `'error'` event is only used when `events.once()`is used to wait for another event. If `events.once()` is used to wait for the - * '`error'` event itself, then it is treated as any other kind of event without - * special handling: - * - * ```js - * const { EventEmitter, once } = require('events'); - * - * const ee = new EventEmitter(); - * - * once(ee, 'error') - * .then(([err]) => console.log('ok', err.message)) - * .catch((err) => console.log('error', err.message)); - * - * ee.emit('error', new Error('boom')); - * - * // Prints: ok boom - * ``` - * - * An `AbortSignal` can be used to cancel waiting for the event: - * - * ```js - * const { EventEmitter, once } = require('events'); - * - * const ee = new EventEmitter(); - * const ac = new AbortController(); - * - * async function foo(emitter, event, signal) { - * try { - * await once(emitter, event, { signal }); - * console.log('event emitted!'); - * } catch (error) { - * if (error.name === 'AbortError') { - * console.error('Waiting for the event was canceled!'); - * } else { - * console.error('There was an error', error.message); - * } - * } - * } - * - * foo(ee, 'foo', ac.signal); - * ac.abort(); // Abort waiting for the event - * ee.emit('foo'); // Prints: Waiting for the event was canceled! - * ``` - * @since v11.13.0, v10.16.0 - */ - static once(emitter: NodeEventTarget, eventName: string | symbol, options?: StaticEventEmitterOptions): Promise; - static once(emitter: DOMEventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise; - /** - * ```js - * const { on, EventEmitter } = require('events'); - * - * (async () => { - * const ee = new EventEmitter(); - * - * // Emit later on - * process.nextTick(() => { - * ee.emit('foo', 'bar'); - * ee.emit('foo', 42); - * }); - * - * for await (const event of on(ee, 'foo')) { - * // The execution of this inner block is synchronous and it - * // processes one event at a time (even with await). Do not use - * // if concurrent execution is required. - * console.log(event); // prints ['bar'] [42] - * } - * // Unreachable here - * })(); - * ``` - * - * Returns an `AsyncIterator` that iterates `eventName` events. It will throw - * if the `EventEmitter` emits `'error'`. It removes all listeners when - * exiting the loop. The `value` returned by each iteration is an array - * composed of the emitted event arguments. - * - * An `AbortSignal` can be used to cancel waiting on events: - * - * ```js - * const { on, EventEmitter } = require('events'); - * const ac = new AbortController(); - * - * (async () => { - * const ee = new EventEmitter(); - * - * // Emit later on - * process.nextTick(() => { - * ee.emit('foo', 'bar'); - * ee.emit('foo', 42); - * }); - * - * for await (const event of on(ee, 'foo', { signal: ac.signal })) { - * // The execution of this inner block is synchronous and it - * // processes one event at a time (even with await). Do not use - * // if concurrent execution is required. - * console.log(event); // prints ['bar'] [42] - * } - * // Unreachable here - * })(); - * - * process.nextTick(() => ac.abort()); - * ``` - * @since v13.6.0, v12.16.0 - * @param eventName The name of the event being listened for - * @return that iterates `eventName` events emitted by the `emitter` - */ - static on(emitter: NodeJS.EventEmitter, eventName: string, options?: StaticEventEmitterOptions): AsyncIterableIterator; - /** - * A class method that returns the number of listeners for the given `eventName`registered on the given `emitter`. - * - * ```js - * const { EventEmitter, listenerCount } = require('events'); - * const myEmitter = new EventEmitter(); - * myEmitter.on('event', () => {}); - * myEmitter.on('event', () => {}); - * console.log(listenerCount(myEmitter, 'event')); - * // Prints: 2 - * ``` - * @since v0.9.12 - * @deprecated Since v3.2.0 - Use `listenerCount` instead. - * @param emitter The emitter to query - * @param eventName The event name - */ - static listenerCount(emitter: NodeJS.EventEmitter, eventName: string | symbol): number; - /** - * Returns a copy of the array of listeners for the event named `eventName`. - * - * For `EventEmitter`s this behaves exactly the same as calling `.listeners` on - * the emitter. - * - * For `EventTarget`s this is the only way to get the event listeners for the - * event target. This is useful for debugging and diagnostic purposes. - * - * ```js - * const { getEventListeners, EventEmitter } = require('events'); - * - * { - * const ee = new EventEmitter(); - * const listener = () => console.log('Events are fun'); - * ee.on('foo', listener); - * getEventListeners(ee, 'foo'); // [listener] - * } - * { - * const et = new EventTarget(); - * const listener = () => console.log('Events are fun'); - * et.addEventListener('foo', listener); - * getEventListeners(et, 'foo'); // [listener] - * } - * ``` - * @since v15.2.0 - */ - static getEventListeners(emitter: DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[]; - /** - * This symbol shall be used to install a listener for only monitoring `'error'` - * events. Listeners installed using this symbol are called before the regular - * `'error'` listeners are called. - * - * Installing a listener using this symbol does not change the behavior once an - * `'error'` event is emitted, therefore the process will still crash if no - * regular `'error'` listener is installed. - */ - static readonly errorMonitor: unique symbol; - static readonly captureRejectionSymbol: unique symbol; - /** - * Sets or gets the default captureRejection value for all emitters. - */ - // TODO: These should be described using static getter/setter pairs: - static captureRejections: boolean; - static defaultMaxListeners: number; - } - import internal = require('node:events'); - namespace EventEmitter { - // Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4 - export { internal as EventEmitter }; - export interface Abortable { - /** - * When provided the corresponding `AbortController` can be used to cancel an asynchronous action. - */ - signal?: AbortSignal | undefined; - } - } - global { - namespace NodeJS { - interface EventEmitter { - /** - * Alias for `emitter.on(eventName, listener)`. - * @since v0.1.26 - */ - addListener(eventName: string | symbol, listener: (...args: any[]) => void): this; - /** - * Adds the `listener` function to the end of the listeners array for the - * event named `eventName`. No checks are made to see if the `listener` has - * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple - * times. - * - * ```js - * server.on('connection', (stream) => { - * console.log('someone connected!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * - * By default, event listeners are invoked in the order they are added. The`emitter.prependListener()` method can be used as an alternative to add the - * event listener to the beginning of the listeners array. - * - * ```js - * const myEE = new EventEmitter(); - * myEE.on('foo', () => console.log('a')); - * myEE.prependListener('foo', () => console.log('b')); - * myEE.emit('foo'); - * // Prints: - * // b - * // a - * ``` - * @since v0.1.101 - * @param eventName The name of the event. - * @param listener The callback function - */ - on(eventName: string | symbol, listener: (...args: any[]) => void): this; - /** - * Adds a **one-time**`listener` function for the event named `eventName`. The - * next time `eventName` is triggered, this listener is removed and then invoked. - * - * ```js - * server.once('connection', (stream) => { - * console.log('Ah, we have our first user!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * - * By default, event listeners are invoked in the order they are added. The`emitter.prependOnceListener()` method can be used as an alternative to add the - * event listener to the beginning of the listeners array. - * - * ```js - * const myEE = new EventEmitter(); - * myEE.once('foo', () => console.log('a')); - * myEE.prependOnceListener('foo', () => console.log('b')); - * myEE.emit('foo'); - * // Prints: - * // b - * // a - * ``` - * @since v0.3.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - once(eventName: string | symbol, listener: (...args: any[]) => void): this; - /** - * Removes the specified `listener` from the listener array for the event named`eventName`. - * - * ```js - * const callback = (stream) => { - * console.log('someone connected!'); - * }; - * server.on('connection', callback); - * // ... - * server.removeListener('connection', callback); - * ``` - * - * `removeListener()` will remove, at most, one instance of a listener from the - * listener array. If any single listener has been added multiple times to the - * listener array for the specified `eventName`, then `removeListener()` must be - * called multiple times to remove each instance. - * - * Once an event is emitted, all listeners attached to it at the - * time of emitting are called in order. This implies that any`removeListener()` or `removeAllListeners()` calls _after_ emitting and_before_ the last listener finishes execution will - * not remove them from`emit()` in progress. Subsequent events behave as expected. - * - * ```js - * const myEmitter = new MyEmitter(); - * - * const callbackA = () => { - * console.log('A'); - * myEmitter.removeListener('event', callbackB); - * }; - * - * const callbackB = () => { - * console.log('B'); - * }; - * - * myEmitter.on('event', callbackA); - * - * myEmitter.on('event', callbackB); - * - * // callbackA removes listener callbackB but it will still be called. - * // Internal listener array at time of emit [callbackA, callbackB] - * myEmitter.emit('event'); - * // Prints: - * // A - * // B - * - * // callbackB is now removed. - * // Internal listener array [callbackA] - * myEmitter.emit('event'); - * // Prints: - * // A - * ``` - * - * Because listeners are managed using an internal array, calling this will - * change the position indices of any listener registered _after_ the listener - * being removed. This will not impact the order in which listeners are called, - * but it means that any copies of the listener array as returned by - * the `emitter.listeners()` method will need to be recreated. - * - * When a single function has been added as a handler multiple times for a single - * event (as in the example below), `removeListener()` will remove the most - * recently added instance. In the example the `once('ping')`listener is removed: - * - * ```js - * const ee = new EventEmitter(); - * - * function pong() { - * console.log('pong'); - * } - * - * ee.on('ping', pong); - * ee.once('ping', pong); - * ee.removeListener('ping', pong); - * - * ee.emit('ping'); - * ee.emit('ping'); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.1.26 - */ - removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this; - /** - * Alias for `emitter.removeListener()`. - * @since v10.0.0 - */ - off(eventName: string | symbol, listener: (...args: any[]) => void): this; - /** - * Removes all listeners, or those of the specified `eventName`. - * - * It is bad practice to remove listeners added elsewhere in the code, - * particularly when the `EventEmitter` instance was created by some other - * component or module (e.g. sockets or file streams). - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.1.26 - */ - removeAllListeners(event?: string | symbol): this; - /** - * By default `EventEmitter`s will print a warning if more than `10` listeners are - * added for a particular event. This is a useful default that helps finding - * memory leaks. The `emitter.setMaxListeners()` method allows the limit to be - * modified for this specific `EventEmitter` instance. The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners. - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v0.3.5 - */ - setMaxListeners(n: number): this; - /** - * Returns the current max listener value for the `EventEmitter` which is either - * set by `emitter.setMaxListeners(n)` or defaults to {@link defaultMaxListeners}. - * @since v1.0.0 - */ - getMaxListeners(): number; - /** - * Returns a copy of the array of listeners for the event named `eventName`. - * - * ```js - * server.on('connection', (stream) => { - * console.log('someone connected!'); - * }); - * console.log(util.inspect(server.listeners('connection'))); - * // Prints: [ [Function] ] - * ``` - * @since v0.1.26 - */ - listeners(eventName: string | symbol): Function[]; - /** - * Returns a copy of the array of listeners for the event named `eventName`, - * including any wrappers (such as those created by `.once()`). - * - * ```js - * const emitter = new EventEmitter(); - * emitter.once('log', () => console.log('log once')); - * - * // Returns a new Array with a function `onceWrapper` which has a property - * // `listener` which contains the original listener bound above - * const listeners = emitter.rawListeners('log'); - * const logFnWrapper = listeners[0]; - * - * // Logs "log once" to the console and does not unbind the `once` event - * logFnWrapper.listener(); - * - * // Logs "log once" to the console and removes the listener - * logFnWrapper(); - * - * emitter.on('log', () => console.log('log persistently')); - * // Will return a new Array with a single function bound by `.on()` above - * const newListeners = emitter.rawListeners('log'); - * - * // Logs "log persistently" twice - * newListeners[0](); - * emitter.emit('log'); - * ``` - * @since v9.4.0 - */ - rawListeners(eventName: string | symbol): Function[]; - /** - * Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments - * to each. - * - * Returns `true` if the event had listeners, `false` otherwise. - * - * ```js - * const EventEmitter = require('events'); - * const myEmitter = new EventEmitter(); - * - * // First listener - * myEmitter.on('event', function firstListener() { - * console.log('Helloooo! first listener'); - * }); - * // Second listener - * myEmitter.on('event', function secondListener(arg1, arg2) { - * console.log(`event with parameters ${arg1}, ${arg2} in second listener`); - * }); - * // Third listener - * myEmitter.on('event', function thirdListener(...args) { - * const parameters = args.join(', '); - * console.log(`event with parameters ${parameters} in third listener`); - * }); - * - * console.log(myEmitter.listeners('event')); - * - * myEmitter.emit('event', 1, 2, 3, 4, 5); - * - * // Prints: - * // [ - * // [Function: firstListener], - * // [Function: secondListener], - * // [Function: thirdListener] - * // ] - * // Helloooo! first listener - * // event with parameters 1, 2 in second listener - * // event with parameters 1, 2, 3, 4, 5 in third listener - * ``` - * @since v0.1.26 - */ - emit(eventName: string | symbol, ...args: any[]): boolean; - /** - * Returns the number of listeners listening to the event named `eventName`. - * @since v3.2.0 - * @param eventName The name of the event being listened for - */ - listenerCount(eventName: string | symbol): number; - /** - * Adds the `listener` function to the _beginning_ of the listeners array for the - * event named `eventName`. No checks are made to see if the `listener` has - * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple - * times. - * - * ```js - * server.prependListener('connection', (stream) => { - * console.log('someone connected!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v6.0.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this; - /** - * Adds a **one-time**`listener` function for the event named `eventName` to the_beginning_ of the listeners array. The next time `eventName` is triggered, this - * listener is removed, and then invoked. - * - * ```js - * server.prependOnceListener('connection', (stream) => { - * console.log('Ah, we have our first user!'); - * }); - * ``` - * - * Returns a reference to the `EventEmitter`, so that calls can be chained. - * @since v6.0.0 - * @param eventName The name of the event. - * @param listener The callback function - */ - prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this; - /** - * Returns an array listing the events for which the emitter has registered - * listeners. The values in the array are strings or `Symbol`s. - * - * ```js - * const EventEmitter = require('events'); - * const myEE = new EventEmitter(); - * myEE.on('foo', () => {}); - * myEE.on('bar', () => {}); - * - * const sym = Symbol('symbol'); - * myEE.on(sym, () => {}); - * - * console.log(myEE.eventNames()); - * // Prints: [ 'foo', 'bar', Symbol(symbol) ] - * ``` - * @since v6.0.0 - */ - eventNames(): Array; - } - } - } - export = EventEmitter; -} -declare module 'node:events' { - import events = require('events'); - export = events; -} diff --git a/WechatBot/node_modules/@types/node/fs.d.ts b/WechatBot/node_modules/@types/node/fs.d.ts deleted file mode 100644 index d50eadec2..000000000 --- a/WechatBot/node_modules/@types/node/fs.d.ts +++ /dev/null @@ -1,3723 +0,0 @@ -/** - * The `fs` module enables interacting with the file system in a - * way modeled on standard POSIX functions. - * - * To use the promise-based APIs: - * - * ```js - * import * as fs from 'fs/promises'; - * ``` - * - * To use the callback and sync APIs: - * - * ```js - * import * as fs from 'fs'; - * ``` - * - * All file system operations have synchronous, callback, and promise-based - * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM). - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/fs.js) - */ -declare module 'fs' { - import * as stream from 'node:stream'; - import { Abortable, EventEmitter } from 'node:events'; - import { URL } from 'node:url'; - import * as promises from 'node:fs/promises'; - export { promises }; - /** - * Valid types for path values in "fs". - */ - export type PathLike = string | Buffer | URL; - export type PathOrFileDescriptor = PathLike | number; - export type TimeLike = string | number | Date; - export type NoParamCallback = (err: NodeJS.ErrnoException | null) => void; - export type BufferEncodingOption = - | 'buffer' - | { - encoding: 'buffer'; - }; - export interface ObjectEncodingOptions { - encoding?: BufferEncoding | null | undefined; - } - export type EncodingOption = ObjectEncodingOptions | BufferEncoding | undefined | null; - export type OpenMode = number | string; - export type Mode = number | string; - export interface StatsBase { - isFile(): boolean; - isDirectory(): boolean; - isBlockDevice(): boolean; - isCharacterDevice(): boolean; - isSymbolicLink(): boolean; - isFIFO(): boolean; - isSocket(): boolean; - dev: T; - ino: T; - mode: T; - nlink: T; - uid: T; - gid: T; - rdev: T; - size: T; - blksize: T; - blocks: T; - atimeMs: T; - mtimeMs: T; - ctimeMs: T; - birthtimeMs: T; - atime: Date; - mtime: Date; - ctime: Date; - birthtime: Date; - } - export interface Stats extends StatsBase {} - /** - * A `fs.Stats` object provides information about a file. - * - * Objects returned from {@link stat}, {@link lstat} and {@link fstat} and - * their synchronous counterparts are of this type. - * If `bigint` in the `options` passed to those methods is true, the numeric values - * will be `bigint` instead of `number`, and the object will contain additional - * nanosecond-precision properties suffixed with `Ns`. - * - * ```console - * Stats { - * dev: 2114, - * ino: 48064969, - * mode: 33188, - * nlink: 1, - * uid: 85, - * gid: 100, - * rdev: 0, - * size: 527, - * blksize: 4096, - * blocks: 8, - * atimeMs: 1318289051000.1, - * mtimeMs: 1318289051000.1, - * ctimeMs: 1318289051000.1, - * birthtimeMs: 1318289051000.1, - * atime: Mon, 10 Oct 2011 23:24:11 GMT, - * mtime: Mon, 10 Oct 2011 23:24:11 GMT, - * ctime: Mon, 10 Oct 2011 23:24:11 GMT, - * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } - * ``` - * - * `bigint` version: - * - * ```console - * BigIntStats { - * dev: 2114n, - * ino: 48064969n, - * mode: 33188n, - * nlink: 1n, - * uid: 85n, - * gid: 100n, - * rdev: 0n, - * size: 527n, - * blksize: 4096n, - * blocks: 8n, - * atimeMs: 1318289051000n, - * mtimeMs: 1318289051000n, - * ctimeMs: 1318289051000n, - * birthtimeMs: 1318289051000n, - * atimeNs: 1318289051000000000n, - * mtimeNs: 1318289051000000000n, - * ctimeNs: 1318289051000000000n, - * birthtimeNs: 1318289051000000000n, - * atime: Mon, 10 Oct 2011 23:24:11 GMT, - * mtime: Mon, 10 Oct 2011 23:24:11 GMT, - * ctime: Mon, 10 Oct 2011 23:24:11 GMT, - * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } - * ``` - * @since v0.1.21 - */ - export class Stats {} - /** - * A representation of a directory entry, which can be a file or a subdirectory - * within the directory, as returned by reading from an `fs.Dir`. The - * directory entry is a combination of the file name and file type pairs. - * - * Additionally, when {@link readdir} or {@link readdirSync} is called with - * the `withFileTypes` option set to `true`, the resulting array is filled with `fs.Dirent` objects, rather than strings or `Buffer` s. - * @since v10.10.0 - */ - export class Dirent { - /** - * Returns `true` if the `fs.Dirent` object describes a regular file. - * @since v10.10.0 - */ - isFile(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a file system - * directory. - * @since v10.10.0 - */ - isDirectory(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a block device. - * @since v10.10.0 - */ - isBlockDevice(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a character device. - * @since v10.10.0 - */ - isCharacterDevice(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a symbolic link. - * @since v10.10.0 - */ - isSymbolicLink(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a first-in-first-out - * (FIFO) pipe. - * @since v10.10.0 - */ - isFIFO(): boolean; - /** - * Returns `true` if the `fs.Dirent` object describes a socket. - * @since v10.10.0 - */ - isSocket(): boolean; - /** - * The file name that this `fs.Dirent` object refers to. The type of this - * value is determined by the `options.encoding` passed to {@link readdir} or {@link readdirSync}. - * @since v10.10.0 - */ - name: string; - } - /** - * A class representing a directory stream. - * - * Created by {@link opendir}, {@link opendirSync}, or `fsPromises.opendir()`. - * - * ```js - * import { opendir } from 'fs/promises'; - * - * try { - * const dir = await opendir('./'); - * for await (const dirent of dir) - * console.log(dirent.name); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * When using the async iterator, the `fs.Dir` object will be automatically - * closed after the iterator exits. - * @since v12.12.0 - */ - export class Dir implements AsyncIterable { - /** - * The read-only path of this directory as was provided to {@link opendir},{@link opendirSync}, or `fsPromises.opendir()`. - * @since v12.12.0 - */ - readonly path: string; - /** - * Asynchronously iterates over the directory via `readdir(3)` until all entries have been read. - */ - [Symbol.asyncIterator](): AsyncIterableIterator; - /** - * Asynchronously close the directory's underlying resource handle. - * Subsequent reads will result in errors. - * - * A promise is returned that will be resolved after the resource has been - * closed. - * @since v12.12.0 - */ - close(): Promise; - close(cb: NoParamCallback): void; - /** - * Synchronously close the directory's underlying resource handle. - * Subsequent reads will result in errors. - * @since v12.12.0 - */ - closeSync(): void; - /** - * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`. - * - * A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read. - * - * Directory entries returned by this function are in no particular order as - * provided by the operating system's underlying directory mechanisms. - * Entries added or removed while iterating over the directory might not be - * included in the iteration results. - * @since v12.12.0 - * @return containing {fs.Dirent|null} - */ - read(): Promise; - read(cb: (err: NodeJS.ErrnoException | null, dirEnt: Dirent | null) => void): void; - /** - * Synchronously read the next directory entry as an `fs.Dirent`. See the - * POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more detail. - * - * If there are no more directory entries to read, `null` will be returned. - * - * Directory entries returned by this function are in no particular order as - * provided by the operating system's underlying directory mechanisms. - * Entries added or removed while iterating over the directory might not be - * included in the iteration results. - * @since v12.12.0 - */ - readSync(): Dirent | null; - } - export interface FSWatcher extends EventEmitter { - /** - * Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the `fs.FSWatcher` object is no longer usable. - * @since v0.5.8 - */ - close(): void; - /** - * events.EventEmitter - * 1. change - * 2. error - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this; - addListener(event: 'error', listener: (error: Error) => void): this; - addListener(event: 'close', listener: () => void): this; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this; - on(event: 'error', listener: (error: Error) => void): this; - on(event: 'close', listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this; - once(event: 'error', listener: (error: Error) => void): this; - once(event: 'close', listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this; - prependListener(event: 'error', listener: (error: Error) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this; - prependOnceListener(event: 'error', listener: (error: Error) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - } - /** - * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function. - * @since v0.1.93 - */ - export class ReadStream extends stream.Readable { - close(): void; - /** - * The number of bytes that have been read so far. - * @since v6.4.0 - */ - bytesRead: number; - /** - * The path to the file the stream is reading from as specified in the first - * argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a - * `Buffer`. - * @since v0.1.93 - */ - path: string | Buffer; - /** - * This property is `true` if the underlying file has not been opened yet, - * i.e. before the `'ready'` event is emitted. - * @since v11.2.0, v10.16.0 - */ - pending: boolean; - /** - * events.EventEmitter - * 1. open - * 2. close - * 3. ready - */ - addListener(event: 'close', listener: () => void): this; - addListener(event: 'data', listener: (chunk: Buffer | string) => void): this; - addListener(event: 'end', listener: () => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'open', listener: (fd: number) => void): this; - addListener(event: 'pause', listener: () => void): this; - addListener(event: 'readable', listener: () => void): this; - addListener(event: 'ready', listener: () => void): this; - addListener(event: 'resume', listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'data', listener: (chunk: Buffer | string) => void): this; - on(event: 'end', listener: () => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'open', listener: (fd: number) => void): this; - on(event: 'pause', listener: () => void): this; - on(event: 'readable', listener: () => void): this; - on(event: 'ready', listener: () => void): this; - on(event: 'resume', listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'data', listener: (chunk: Buffer | string) => void): this; - once(event: 'end', listener: () => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'open', listener: (fd: number) => void): this; - once(event: 'pause', listener: () => void): this; - once(event: 'readable', listener: () => void): this; - once(event: 'ready', listener: () => void): this; - once(event: 'resume', listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'data', listener: (chunk: Buffer | string) => void): this; - prependListener(event: 'end', listener: () => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'open', listener: (fd: number) => void): this; - prependListener(event: 'pause', listener: () => void): this; - prependListener(event: 'readable', listener: () => void): this; - prependListener(event: 'ready', listener: () => void): this; - prependListener(event: 'resume', listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'data', listener: (chunk: Buffer | string) => void): this; - prependOnceListener(event: 'end', listener: () => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'open', listener: (fd: number) => void): this; - prependOnceListener(event: 'pause', listener: () => void): this; - prependOnceListener(event: 'readable', listener: () => void): this; - prependOnceListener(event: 'ready', listener: () => void): this; - prependOnceListener(event: 'resume', listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * * Extends `stream.Writable` - * - * Instances of `fs.WriteStream` are created and returned using the {@link createWriteStream} function. - * @since v0.1.93 - */ - export class WriteStream extends stream.Writable { - /** - * Closes `writeStream`. Optionally accepts a - * callback that will be executed once the `writeStream`is closed. - * @since v0.9.4 - */ - close(): void; - /** - * The number of bytes written so far. Does not include data that is still queued - * for writing. - * @since v0.4.7 - */ - bytesWritten: number; - /** - * The path to the file the stream is writing to as specified in the first - * argument to {@link createWriteStream}. If `path` is passed as a string, then`writeStream.path` will be a string. If `path` is passed as a `Buffer`, then`writeStream.path` will be a - * `Buffer`. - * @since v0.1.93 - */ - path: string | Buffer; - /** - * This property is `true` if the underlying file has not been opened yet, - * i.e. before the `'ready'` event is emitted. - * @since v11.2.0 - */ - pending: boolean; - /** - * events.EventEmitter - * 1. open - * 2. close - * 3. ready - */ - addListener(event: 'close', listener: () => void): this; - addListener(event: 'drain', listener: () => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'finish', listener: () => void): this; - addListener(event: 'open', listener: (fd: number) => void): this; - addListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - addListener(event: 'ready', listener: () => void): this; - addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'drain', listener: () => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'finish', listener: () => void): this; - on(event: 'open', listener: (fd: number) => void): this; - on(event: 'pipe', listener: (src: stream.Readable) => void): this; - on(event: 'ready', listener: () => void): this; - on(event: 'unpipe', listener: (src: stream.Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'drain', listener: () => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'finish', listener: () => void): this; - once(event: 'open', listener: (fd: number) => void): this; - once(event: 'pipe', listener: (src: stream.Readable) => void): this; - once(event: 'ready', listener: () => void): this; - once(event: 'unpipe', listener: (src: stream.Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'drain', listener: () => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'finish', listener: () => void): this; - prependListener(event: 'open', listener: (fd: number) => void): this; - prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - prependListener(event: 'ready', listener: () => void): this; - prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'drain', listener: () => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'finish', listener: () => void): this; - prependOnceListener(event: 'open', listener: (fd: number) => void): this; - prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - prependOnceListener(event: 'ready', listener: () => void): this; - prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * Asynchronously rename file at `oldPath` to the pathname provided - * as `newPath`. In the case that `newPath` already exists, it will - * be overwritten. If there is a directory at `newPath`, an error will - * be raised instead. No arguments other than a possible exception are - * given to the completion callback. - * - * See also: [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html). - * - * ```js - * import { rename } from 'fs'; - * - * rename('oldFile.txt', 'newFile.txt', (err) => { - * if (err) throw err; - * console.log('Rename complete!'); - * }); - * ``` - * @since v0.0.2 - */ - export function rename(oldPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; - export namespace rename { - /** - * Asynchronous rename(2) - Change the name or location of a file or directory. - * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(oldPath: PathLike, newPath: PathLike): Promise; - } - /** - * Renames the file from `oldPath` to `newPath`. Returns `undefined`. - * - * See the POSIX [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html) documentation for more details. - * @since v0.1.21 - */ - export function renameSync(oldPath: PathLike, newPath: PathLike): void; - /** - * Truncates the file. No arguments other than a possible exception are - * given to the completion callback. A file descriptor can also be passed as the - * first argument. In this case, `fs.ftruncate()` is called. - * - * ```js - * import { truncate } from 'fs'; - * // Assuming that 'path/file.txt' is a regular file. - * truncate('path/file.txt', (err) => { - * if (err) throw err; - * console.log('path/file.txt was truncated'); - * }); - * ``` - * - * Passing a file descriptor is deprecated and may result in an error being thrown - * in the future. - * - * See the POSIX [`truncate(2)`](http://man7.org/linux/man-pages/man2/truncate.2.html) documentation for more details. - * @since v0.8.6 - * @param [len=0] - */ - export function truncate(path: PathLike, len: number | undefined | null, callback: NoParamCallback): void; - /** - * Asynchronous truncate(2) - Truncate a file to a specified length. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function truncate(path: PathLike, callback: NoParamCallback): void; - export namespace truncate { - /** - * Asynchronous truncate(2) - Truncate a file to a specified length. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param len If not specified, defaults to `0`. - */ - function __promisify__(path: PathLike, len?: number | null): Promise; - } - /** - * Truncates the file. Returns `undefined`. A file descriptor can also be - * passed as the first argument. In this case, `fs.ftruncateSync()` is called. - * - * Passing a file descriptor is deprecated and may result in an error being thrown - * in the future. - * @since v0.8.6 - * @param [len=0] - */ - export function truncateSync(path: PathLike, len?: number | null): void; - /** - * Truncates the file descriptor. No arguments other than a possible exception are - * given to the completion callback. - * - * See the POSIX [`ftruncate(2)`](http://man7.org/linux/man-pages/man2/ftruncate.2.html) documentation for more detail. - * - * If the file referred to by the file descriptor was larger than `len` bytes, only - * the first `len` bytes will be retained in the file. - * - * For example, the following program retains only the first four bytes of the - * file: - * - * ```js - * import { open, close, ftruncate } from 'fs'; - * - * function closeFd(fd) { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * - * open('temp.txt', 'r+', (err, fd) => { - * if (err) throw err; - * - * try { - * ftruncate(fd, 4, (err) => { - * closeFd(fd); - * if (err) throw err; - * }); - * } catch (err) { - * closeFd(fd); - * if (err) throw err; - * } - * }); - * ``` - * - * If the file previously was shorter than `len` bytes, it is extended, and the - * extended part is filled with null bytes (`'\0'`): - * - * If `len` is negative then `0` will be used. - * @since v0.8.6 - * @param [len=0] - */ - export function ftruncate(fd: number, len: number | undefined | null, callback: NoParamCallback): void; - /** - * Asynchronous ftruncate(2) - Truncate a file to a specified length. - * @param fd A file descriptor. - */ - export function ftruncate(fd: number, callback: NoParamCallback): void; - export namespace ftruncate { - /** - * Asynchronous ftruncate(2) - Truncate a file to a specified length. - * @param fd A file descriptor. - * @param len If not specified, defaults to `0`. - */ - function __promisify__(fd: number, len?: number | null): Promise; - } - /** - * Truncates the file descriptor. Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link ftruncate}. - * @since v0.8.6 - * @param [len=0] - */ - export function ftruncateSync(fd: number, len?: number | null): void; - /** - * Asynchronously changes owner and group of a file. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. - * @since v0.1.97 - */ - export function chown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; - export namespace chown { - /** - * Asynchronous chown(2) - Change ownership of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, uid: number, gid: number): Promise; - } - /** - * Synchronously changes owner and group of a file. Returns `undefined`. - * This is the synchronous version of {@link chown}. - * - * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. - * @since v0.1.97 - */ - export function chownSync(path: PathLike, uid: number, gid: number): void; - /** - * Sets the owner of the file. No arguments other than a possible exception are - * given to the completion callback. - * - * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchown(fd: number, uid: number, gid: number, callback: NoParamCallback): void; - export namespace fchown { - /** - * Asynchronous fchown(2) - Change ownership of a file. - * @param fd A file descriptor. - */ - function __promisify__(fd: number, uid: number, gid: number): Promise; - } - /** - * Sets the owner of the file. Returns `undefined`. - * - * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. - * @since v0.4.7 - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - */ - export function fchownSync(fd: number, uid: number, gid: number): void; - /** - * Set the owner of the symbolic link. No arguments other than a possible - * exception are given to the completion callback. - * - * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more detail. - */ - export function lchown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; - export namespace lchown { - /** - * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, uid: number, gid: number): Promise; - } - /** - * Set the owner for the path. Returns `undefined`. - * - * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more details. - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - */ - export function lchownSync(path: PathLike, uid: number, gid: number): void; - /** - * Changes the access and modification times of a file in the same way as {@link utimes}, with the difference that if the path refers to a symbolic - * link, then the link is not dereferenced: instead, the timestamps of the - * symbolic link itself are changed. - * - * No arguments other than a possible exception are given to the completion - * callback. - * @since v14.5.0, v12.19.0 - */ - export function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace lutimes { - /** - * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, - * with the difference that if the path refers to a symbolic link, then the link is not - * dereferenced: instead, the timestamps of the symbolic link itself are changed. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Change the file system timestamps of the symbolic link referenced by `path`. - * Returns `undefined`, or throws an exception when parameters are incorrect or - * the operation fails. This is the synchronous version of {@link lutimes}. - * @since v14.5.0, v12.19.0 - */ - export function lutimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; - /** - * Asynchronously changes the permissions of a file. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. - * - * ```js - * import { chmod } from 'fs'; - * - * chmod('my_file.txt', 0o775, (err) => { - * if (err) throw err; - * console.log('The permissions for file "my_file.txt" have been changed!'); - * }); - * ``` - * @since v0.1.30 - */ - export function chmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; - export namespace chmod { - /** - * Asynchronous chmod(2) - Change permissions of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(path: PathLike, mode: Mode): Promise; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link chmod}. - * - * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. - * @since v0.6.7 - */ - export function chmodSync(path: PathLike, mode: Mode): void; - /** - * Sets the permissions on the file. No arguments other than a possible exception - * are given to the completion callback. - * - * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchmod(fd: number, mode: Mode, callback: NoParamCallback): void; - export namespace fchmod { - /** - * Asynchronous fchmod(2) - Change permissions of a file. - * @param fd A file descriptor. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(fd: number, mode: Mode): Promise; - } - /** - * Sets the permissions on the file. Returns `undefined`. - * - * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. - * @since v0.4.7 - */ - export function fchmodSync(fd: number, mode: Mode): void; - /** - * Changes the permissions on a symbolic link. No arguments other than a possible - * exception are given to the completion callback. - * - * This method is only implemented on macOS. - * - * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. - * @deprecated Since v0.4.7 - */ - export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; - export namespace lchmod { - /** - * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. - */ - function __promisify__(path: PathLike, mode: Mode): Promise; - } - /** - * Changes the permissions on a symbolic link. Returns `undefined`. - * - * This method is only implemented on macOS. - * - * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. - * @deprecated Since v0.4.7 - */ - export function lchmodSync(path: PathLike, mode: Mode): void; - /** - * Asynchronous [`stat(2)`](http://man7.org/linux/man-pages/man2/stat.2.html). The callback gets two arguments `(err, stats)` where`stats` is an `fs.Stats` object. - * - * In case of an error, the `err.code` will be one of `Common System Errors`. - * - * Using `fs.stat()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()` or `fs.writeFile()` is not recommended. - * Instead, user code should open/read/write the file directly and handle the - * error raised if the file is not available. - * - * To check if a file exists without manipulating it afterwards, {@link access} is recommended. - * - * For example, given the following directory structure: - * - * ```text - * - txtDir - * -- file.txt - * - app.js - * ``` - * - * The next program will check for the stats of the given paths: - * - * ```js - * import { stat } from 'fs'; - * - * const pathsToCheck = ['./txtDir', './txtDir/file.txt']; - * - * for (let i = 0; i < pathsToCheck.length; i++) { - * stat(pathsToCheck[i], (err, stats) => { - * console.log(stats.isDirectory()); - * console.log(stats); - * }); - * } - * ``` - * - * The resulting output will resemble: - * - * ```console - * true - * Stats { - * dev: 16777220, - * mode: 16877, - * nlink: 3, - * uid: 501, - * gid: 20, - * rdev: 0, - * blksize: 4096, - * ino: 14214262, - * size: 96, - * blocks: 0, - * atimeMs: 1561174653071.963, - * mtimeMs: 1561174614583.3518, - * ctimeMs: 1561174626623.5366, - * birthtimeMs: 1561174126937.2893, - * atime: 2019-06-22T03:37:33.072Z, - * mtime: 2019-06-22T03:36:54.583Z, - * ctime: 2019-06-22T03:37:06.624Z, - * birthtime: 2019-06-22T03:28:46.937Z - * } - * false - * Stats { - * dev: 16777220, - * mode: 33188, - * nlink: 1, - * uid: 501, - * gid: 20, - * rdev: 0, - * blksize: 4096, - * ino: 14214074, - * size: 8, - * blocks: 8, - * atimeMs: 1561174616618.8555, - * mtimeMs: 1561174614584, - * ctimeMs: 1561174614583.8145, - * birthtimeMs: 1561174007710.7478, - * atime: 2019-06-22T03:36:56.619Z, - * mtime: 2019-06-22T03:36:54.584Z, - * ctime: 2019-06-22T03:36:54.584Z, - * birthtime: 2019-06-22T03:26:47.711Z - * } - * ``` - * @since v0.0.2 - */ - export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function stat( - path: PathLike, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void - ): void; - export function stat( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void - ): void; - export function stat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void; - export namespace stat { - /** - * Asynchronous stat(2) - Get file status. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__( - path: PathLike, - options?: StatOptions & { - bigint?: false | undefined; - } - ): Promise; - function __promisify__( - path: PathLike, - options: StatOptions & { - bigint: true; - } - ): Promise; - function __promisify__(path: PathLike, options?: StatOptions): Promise; - } - export interface StatSyncFn extends Function { - (path: TDescriptor, options?: undefined): Stats; - ( - path: TDescriptor, - options?: StatOptions & { - bigint?: false | undefined; - throwIfNoEntry: false; - } - ): Stats | undefined; - ( - path: TDescriptor, - options: StatOptions & { - bigint: true; - throwIfNoEntry: false; - } - ): BigIntStats | undefined; - ( - path: TDescriptor, - options?: StatOptions & { - bigint?: false | undefined; - } - ): Stats; - ( - path: TDescriptor, - options: StatOptions & { - bigint: true; - } - ): BigIntStats; - ( - path: TDescriptor, - options: StatOptions & { - bigint: boolean; - throwIfNoEntry?: false | undefined; - } - ): Stats | BigIntStats; - (path: TDescriptor, options?: StatOptions): Stats | BigIntStats | undefined; - } - /** - * Synchronous stat(2) - Get file status. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export const statSync: StatSyncFn; - /** - * Invokes the callback with the `fs.Stats` for the file descriptor. - * - * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail. - * @since v0.1.95 - */ - export function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function fstat( - fd: number, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void - ): void; - export function fstat( - fd: number, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void - ): void; - export function fstat(fd: number, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void; - export namespace fstat { - /** - * Asynchronous fstat(2) - Get file status. - * @param fd A file descriptor. - */ - function __promisify__( - fd: number, - options?: StatOptions & { - bigint?: false | undefined; - } - ): Promise; - function __promisify__( - fd: number, - options: StatOptions & { - bigint: true; - } - ): Promise; - function __promisify__(fd: number, options?: StatOptions): Promise; - } - /** - * Synchronous fstat(2) - Get file status. - * @param fd A file descriptor. - */ - export const fstatSync: StatSyncFn; - /** - * Retrieves the `fs.Stats` for the symbolic link referred to by the path. - * The callback gets two arguments `(err, stats)` where `stats` is a `fs.Stats` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic - * link, then the link itself is stat-ed, not the file that it refers to. - * - * See the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) documentation for more details. - * @since v0.1.30 - */ - export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; - export function lstat( - path: PathLike, - options: - | (StatOptions & { - bigint?: false | undefined; - }) - | undefined, - callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void - ): void; - export function lstat( - path: PathLike, - options: StatOptions & { - bigint: true; - }, - callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void - ): void; - export function lstat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void; - export namespace lstat { - /** - * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__( - path: PathLike, - options?: StatOptions & { - bigint?: false | undefined; - } - ): Promise; - function __promisify__( - path: PathLike, - options: StatOptions & { - bigint: true; - } - ): Promise; - function __promisify__(path: PathLike, options?: StatOptions): Promise; - } - /** - * Synchronous lstat(2) - Get file status. Does not dereference symbolic links. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export const lstatSync: StatSyncFn; - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX[`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. No arguments other than a - * possible - * exception are given to the completion callback. - * @since v0.1.31 - */ - export function link(existingPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; - export namespace link { - /** - * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file. - * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(existingPath: PathLike, newPath: PathLike): Promise; - } - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX[`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. Returns `undefined`. - * @since v0.1.31 - */ - export function linkSync(existingPath: PathLike, newPath: PathLike): void; - /** - * Creates the link called `path` pointing to `target`. No arguments other than a - * possible exception are given to the completion callback. - * - * See the POSIX [`symlink(2)`](http://man7.org/linux/man-pages/man2/symlink.2.html) documentation for more details. - * - * The `type` argument is only available on Windows and ignored on other platforms. - * It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is - * not set, Node.js will autodetect `target` type and use `'file'` or `'dir'`. If - * the `target` does not exist, `'file'` will be used. Windows junction points - * require the destination path to be absolute. When using `'junction'`, the`target` argument will automatically be normalized to absolute path. - * - * Relative targets are relative to the link’s parent directory. - * - * ```js - * import { symlink } from 'fs'; - * - * symlink('./mew', './example/mewtwo', callback); - * ``` - * - * The above example creates a symbolic link `mewtwo` in the `example` which points - * to `mew` in the same directory: - * - * ```bash - * $ tree example/ - * example/ - * ├── mew - * └── mewtwo -> ./mew - * ``` - * @since v0.1.31 - */ - export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: NoParamCallback): void; - /** - * Asynchronous symlink(2) - Create a new symbolic link to an existing file. - * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. - * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. - */ - export function symlink(target: PathLike, path: PathLike, callback: NoParamCallback): void; - export namespace symlink { - /** - * Asynchronous symlink(2) - Create a new symbolic link to an existing file. - * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. - * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. - * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms). - * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path. - */ - function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise; - type Type = 'dir' | 'file' | 'junction'; - } - /** - * Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link symlink}. - * @since v0.1.31 - */ - export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void; - /** - * Reads the contents of the symbolic link referred to by `path`. The callback gets - * two arguments `(err, linkString)`. - * - * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path passed to the callback. If the `encoding` is set to `'buffer'`, - * the link path returned will be passed as a `Buffer` object. - * @since v0.1.31 - */ - export function readlink(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, linkString: string) => void): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlink(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlink(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void): void; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function readlink(path: PathLike, callback: (err: NodeJS.ErrnoException | null, linkString: string) => void): void; - export namespace readlink { - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - } - /** - * Returns the symbolic link's string value. - * - * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path returned. If the `encoding` is set to `'buffer'`, - * the link path returned will be passed as a `Buffer` object. - * @since v0.1.31 - */ - export function readlinkSync(path: PathLike, options?: EncodingOption): string; - /** - * Synchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlinkSync(path: PathLike, options: BufferEncodingOption): Buffer; - /** - * Synchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readlinkSync(path: PathLike, options?: EncodingOption): string | Buffer; - /** - * Asynchronously computes the canonical pathname by resolving `.`, `..` and - * symbolic links. - * - * A canonical pathname is not necessarily unique. Hard links and bind mounts can - * expose a file system entity through many pathnames. - * - * This function behaves like [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html), with some exceptions: - * - * 1. No case conversion is performed on case-insensitive file systems. - * 2. The maximum number of symbolic links is platform-independent and generally - * (much) higher than what the native [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html) implementation supports. - * - * The `callback` gets two arguments `(err, resolvedPath)`. May use `process.cwd`to resolve relative paths. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path passed to the callback. If the `encoding` is set to `'buffer'`, - * the path returned will be passed as a `Buffer` object. - * - * If `path` resolves to a socket or a pipe, the function will return a system - * dependent name for that object. - * @since v0.1.31 - */ - export function realpath(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpath(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpath(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void): void; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function realpath(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; - export namespace realpath { - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(path: PathLike, options?: EncodingOption): Promise; - /** - * Asynchronous [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html). - * - * The `callback` gets two arguments `(err, resolvedPath)`. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path passed to the callback. If the `encoding` is set to `'buffer'`, - * the path returned will be passed as a `Buffer` object. - * - * On Linux, when Node.js is linked against musl libc, the procfs file system must - * be mounted on `/proc` in order for this function to work. Glibc does not have - * this restriction. - * @since v9.2.0 - */ - function native(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; - function native(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void): void; - function native(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void): void; - function native(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; - } - /** - * Returns the resolved pathname. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link realpath}. - * @since v0.1.31 - */ - export function realpathSync(path: PathLike, options?: EncodingOption): string; - /** - * Synchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpathSync(path: PathLike, options: BufferEncodingOption): Buffer; - /** - * Synchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function realpathSync(path: PathLike, options?: EncodingOption): string | Buffer; - export namespace realpathSync { - function native(path: PathLike, options?: EncodingOption): string; - function native(path: PathLike, options: BufferEncodingOption): Buffer; - function native(path: PathLike, options?: EncodingOption): string | Buffer; - } - /** - * Asynchronously removes a file or symbolic link. No arguments other than a - * possible exception are given to the completion callback. - * - * ```js - * import { unlink } from 'fs'; - * // Assuming that 'path/file.txt' is a regular file. - * unlink('path/file.txt', (err) => { - * if (err) throw err; - * console.log('path/file.txt was deleted'); - * }); - * ``` - * - * `fs.unlink()` will not work on a directory, empty or otherwise. To remove a - * directory, use {@link rmdir}. - * - * See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more details. - * @since v0.0.2 - */ - export function unlink(path: PathLike, callback: NoParamCallback): void; - export namespace unlink { - /** - * Asynchronous unlink(2) - delete a name and possibly the file it refers to. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike): Promise; - } - /** - * Synchronous [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html). Returns `undefined`. - * @since v0.1.21 - */ - export function unlinkSync(path: PathLike): void; - export interface RmDirOptions { - /** - * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or - * `EPERM` error is encountered, Node.js will retry the operation with a linear - * backoff wait of `retryDelay` ms longer on each try. This option represents the - * number of retries. This option is ignored if the `recursive` option is not - * `true`. - * @default 0 - */ - maxRetries?: number | undefined; - /** - * @deprecated since v14.14.0 In future versions of Node.js and will trigger a warning - * `fs.rmdir(path, { recursive: true })` will throw if `path` does not exist or is a file. - * Use `fs.rm(path, { recursive: true, force: true })` instead. - * - * If `true`, perform a recursive directory removal. In - * recursive mode soperations are retried on failure. - * @default false - */ - recursive?: boolean | undefined; - /** - * The amount of time in milliseconds to wait between retries. - * This option is ignored if the `recursive` option is not `true`. - * @default 100 - */ - retryDelay?: number | undefined; - } - /** - * Asynchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). No arguments other than a possible exception are given - * to the completion callback. - * - * Using `fs.rmdir()` on a file (not a directory) results in an `ENOENT` error on - * Windows and an `ENOTDIR` error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use {@link rm} with options `{ recursive: true, force: true }`. - * @since v0.0.2 - */ - export function rmdir(path: PathLike, callback: NoParamCallback): void; - export function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void; - export namespace rmdir { - /** - * Asynchronous rmdir(2) - delete a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - function __promisify__(path: PathLike, options?: RmDirOptions): Promise; - } - /** - * Synchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). Returns `undefined`. - * - * Using `fs.rmdirSync()` on a file (not a directory) results in an `ENOENT` error - * on Windows and an `ENOTDIR` error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use {@link rmSync} with options `{ recursive: true, force: true }`. - * @since v0.1.21 - */ - export function rmdirSync(path: PathLike, options?: RmDirOptions): void; - export interface RmOptions { - /** - * When `true`, exceptions will be ignored if `path` does not exist. - * @default false - */ - force?: boolean | undefined; - /** - * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or - * `EPERM` error is encountered, Node.js will retry the operation with a linear - * backoff wait of `retryDelay` ms longer on each try. This option represents the - * number of retries. This option is ignored if the `recursive` option is not - * `true`. - * @default 0 - */ - maxRetries?: number | undefined; - /** - * If `true`, perform a recursive directory removal. In - * recursive mode, operations are retried on failure. - * @default false - */ - recursive?: boolean | undefined; - /** - * The amount of time in milliseconds to wait between retries. - * This option is ignored if the `recursive` option is not `true`. - * @default 100 - */ - retryDelay?: number | undefined; - } - /** - * Asynchronously removes files and directories (modeled on the standard POSIX `rm`utility). No arguments other than a possible exception are given to the - * completion callback. - * @since v14.14.0 - */ - export function rm(path: PathLike, callback: NoParamCallback): void; - export function rm(path: PathLike, options: RmOptions, callback: NoParamCallback): void; - export namespace rm { - /** - * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). - */ - function __promisify__(path: PathLike, options?: RmOptions): Promise; - } - /** - * Synchronously removes files and directories (modeled on the standard POSIX `rm`utility). Returns `undefined`. - * @since v14.14.0 - */ - export function rmSync(path: PathLike, options?: RmOptions): void; - export interface MakeDirectoryOptions { - /** - * Indicates whether parent folders should be created. - * If a folder was created, the path to the first created folder will be returned. - * @default false - */ - recursive?: boolean | undefined; - /** - * A file mode. If a string is passed, it is parsed as an octal integer. If not specified - * @default 0o777 - */ - mode?: Mode | undefined; - } - /** - * Asynchronously creates a directory. - * - * The callback is given a possible exception and, if `recursive` is `true`, the - * first directory path created, `(err, [path])`.`path` can still be `undefined` when `recursive` is `true`, if no directory was - * created. - * - * The optional `options` argument can be an integer specifying `mode` (permission - * and sticky bits), or an object with a `mode` property and a `recursive`property indicating whether parent directories should be created. Calling`fs.mkdir()` when `path` is a directory that - * exists results in an error only - * when `recursive` is false. - * - * ```js - * import { mkdir } from 'fs'; - * - * // Creates /tmp/a/apple, regardless of whether `/tmp` and /tmp/a exist. - * mkdir('/tmp/a/apple', { recursive: true }, (err) => { - * if (err) throw err; - * }); - * ``` - * - * On Windows, using `fs.mkdir()` on the root directory even with recursion will - * result in an error: - * - * ```js - * import { mkdir } from 'fs'; - * - * mkdir('/', { recursive: true }, (err) => { - * // => [Error: EPERM: operation not permitted, mkdir 'C:\'] - * }); - * ``` - * - * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. - * @since v0.1.8 - */ - export function mkdir( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - }, - callback: (err: NodeJS.ErrnoException | null, path?: string) => void - ): void; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdir( - path: PathLike, - options: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null - | undefined, - callback: NoParamCallback - ): void; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdir(path: PathLike, options: Mode | MakeDirectoryOptions | null | undefined, callback: (err: NodeJS.ErrnoException | null, path?: string) => void): void; - /** - * Asynchronous mkdir(2) - create a directory with a mode of `0o777`. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function mkdir(path: PathLike, callback: NoParamCallback): void; - export namespace mkdir { - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - } - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function __promisify__(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise; - } - /** - * Synchronously creates a directory. Returns `undefined`, or if `recursive` is`true`, the first directory path created. - * This is the synchronous version of {@link mkdir}. - * - * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. - * @since v0.1.21 - */ - export function mkdirSync( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - } - ): string | undefined; - /** - * Synchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdirSync( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null - ): void; - /** - * Synchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - export function mkdirSync(path: PathLike, options?: Mode | MakeDirectoryOptions | null): string | undefined; - /** - * Creates a unique temporary directory. - * - * Generates six random characters to be appended behind a required`prefix` to create a unique temporary directory. Due to platform - * inconsistencies, avoid trailing `X` characters in `prefix`. Some platforms, - * notably the BSDs, can return more than six random characters, and replace - * trailing `X` characters in `prefix` with random characters. - * - * The created directory path is passed as a string to the callback's second - * parameter. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * - * ```js - * import { mkdtemp } from 'fs'; - * - * mkdtemp(path.join(os.tmpdir(), 'foo-'), (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Prints: /tmp/foo-itXde2 or C:\Users\...\AppData\Local\Temp\foo-itXde2 - * }); - * ``` - * - * The `fs.mkdtemp()` method will append the six randomly selected characters - * directly to the `prefix` string. For instance, given a directory `/tmp`, if the - * intention is to create a temporary directory _within_`/tmp`, the `prefix`must end with a trailing platform-specific path separator - * (`require('path').sep`). - * - * ```js - * import { tmpdir } from 'os'; - * import { mkdtemp } from 'fs'; - * - * // The parent directory for the new temporary directory - * const tmpDir = tmpdir(); - * - * // This method is *INCORRECT*: - * mkdtemp(tmpDir, (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Will print something similar to `/tmpabc123`. - * // A new temporary directory is created at the file system root - * // rather than *within* the /tmp directory. - * }); - * - * // This method is *CORRECT*: - * import { sep } from 'path'; - * mkdtemp(`${tmpDir}${sep}`, (err, directory) => { - * if (err) throw err; - * console.log(directory); - * // Will print something similar to `/tmp/abc123`. - * // A new temporary directory is created within - * // the /tmp directory. - * }); - * ``` - * @since v5.10.0 - */ - export function mkdtemp(prefix: string, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtemp( - prefix: string, - options: - | 'buffer' - | { - encoding: 'buffer'; - }, - callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void - ): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtemp(prefix: string, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void): void; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - */ - export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void; - export namespace mkdtemp { - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options?: EncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options: BufferEncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__(prefix: string, options?: EncodingOption): Promise; - } - /** - * Returns the created directory path. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link mkdtemp}. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * @since v5.10.0 - */ - export function mkdtempSync(prefix: string, options?: EncodingOption): string; - /** - * Synchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtempSync(prefix: string, options: BufferEncodingOption): Buffer; - /** - * Synchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function mkdtempSync(prefix: string, options?: EncodingOption): string | Buffer; - /** - * Reads the contents of a directory. The callback gets two arguments `(err, files)`where `files` is an array of the names of the files in the directory excluding`'.'` and `'..'`. - * - * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames passed to the callback. If the `encoding` is set to `'buffer'`, - * the filenames returned will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the `files` array will contain `fs.Dirent` objects. - * @since v0.1.8 - */ - export function readdir( - path: PathLike, - options: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - } - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, files: string[]) => void - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdir( - path: PathLike, - options: - | { - encoding: 'buffer'; - withFileTypes?: false | undefined; - } - | 'buffer', - callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdir( - path: PathLike, - options: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - }) - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void - ): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function readdir(path: PathLike, callback: (err: NodeJS.ErrnoException | null, files: string[]) => void): void; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - export function readdir( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - }, - callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void - ): void; - export namespace readdir { - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options?: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - } - | BufferEncoding - | null - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options: - | 'buffer' - | { - encoding: 'buffer'; - withFileTypes?: false | undefined; - } - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function __promisify__( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - }) - | BufferEncoding - | null - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent - */ - function __promisify__( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - } - ): Promise; - } - /** - * Reads the contents of the directory. - * - * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames returned. If the `encoding` is set to `'buffer'`, - * the filenames returned will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the result will contain `fs.Dirent` objects. - * @since v0.1.21 - */ - export function readdirSync( - path: PathLike, - options?: - | { - encoding: BufferEncoding | null; - withFileTypes?: false | undefined; - } - | BufferEncoding - | null - ): string[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdirSync( - path: PathLike, - options: - | { - encoding: 'buffer'; - withFileTypes?: false | undefined; - } - | 'buffer' - ): Buffer[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - export function readdirSync( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - }) - | BufferEncoding - | null - ): string[] | Buffer[]; - /** - * Synchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - export function readdirSync( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - } - ): Dirent[]; - /** - * Closes the file descriptor. No arguments other than a possible exception are - * given to the completion callback. - * - * Calling `fs.close()` on any file descriptor (`fd`) that is currently in use - * through any other `fs` operation may lead to undefined behavior. - * - * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. - * @since v0.0.2 - */ - export function close(fd: number, callback?: NoParamCallback): void; - export namespace close { - /** - * Asynchronous close(2) - close a file descriptor. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Closes the file descriptor. Returns `undefined`. - * - * Calling `fs.closeSync()` on any file descriptor (`fd`) that is currently in use - * through any other `fs` operation may lead to undefined behavior. - * - * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. - * @since v0.1.21 - */ - export function closeSync(fd: number): void; - /** - * Asynchronous file open. See the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more details. - * - * `mode` sets the file mode (permission and sticky bits), but only if the file was - * created. On Windows, only the write permission can be manipulated; see {@link chmod}. - * - * The callback gets two arguments `(err, fd)`. - * - * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented - * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains - * a colon, Node.js will open a file system stream, as described by[this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). - * - * Functions based on `fs.open()` exhibit this behavior as well:`fs.writeFile()`, `fs.readFile()`, etc. - * @since v0.0.2 - * @param [flags='r'] See `support of file system `flags``. - * @param [mode=0o666] - */ - export function open(path: PathLike, flags: OpenMode, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; - /** - * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - */ - export function open(path: PathLike, flags: OpenMode, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; - export namespace open { - /** - * Asynchronous open(2) - open and possibly create a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`. - */ - function __promisify__(path: PathLike, flags: OpenMode, mode?: Mode | null): Promise; - } - /** - * Returns an integer representing the file descriptor. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link open}. - * @since v0.1.21 - * @param [flags='r'] - * @param [mode=0o666] - */ - export function openSync(path: PathLike, flags: OpenMode, mode?: Mode | null): number; - /** - * Change the file system timestamps of the object referenced by `path`. - * - * The `atime` and `mtime` arguments follow these rules: - * - * * Values can be either numbers representing Unix epoch time in seconds,`Date`s, or a numeric string like `'123456789.0'`. - * * If the value can not be converted to a number, or is `NaN`, `Infinity` or`-Infinity`, an `Error` will be thrown. - * @since v0.4.2 - */ - export function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace utimes { - /** - * Asynchronously change file timestamps of the file referenced by the supplied path. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Returns `undefined`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link utimes}. - * @since v0.4.2 - */ - export function utimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; - /** - * Change the file system timestamps of the object referenced by the supplied file - * descriptor. See {@link utimes}. - * @since v0.4.2 - */ - export function futimes(fd: number, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; - export namespace futimes { - /** - * Asynchronously change file timestamps of the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param atime The last access time. If a string is provided, it will be coerced to number. - * @param mtime The last modified time. If a string is provided, it will be coerced to number. - */ - function __promisify__(fd: number, atime: TimeLike, mtime: TimeLike): Promise; - } - /** - * Synchronous version of {@link futimes}. Returns `undefined`. - * @since v0.4.2 - */ - export function futimesSync(fd: number, atime: TimeLike, mtime: TimeLike): void; - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. No arguments other - * than a possible exception are given to the completion callback. - * @since v0.1.96 - */ - export function fsync(fd: number, callback: NoParamCallback): void; - export namespace fsync { - /** - * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. Returns `undefined`. - * @since v0.1.96 - */ - export function fsyncSync(fd: number): void; - /** - * Write `buffer` to the file specified by `fd`. If `buffer` is a normal object, it - * must have an own `toString` function property. - * - * `offset` determines the part of the buffer to be written, and `length` is - * an integer specifying the number of bytes to write. - * - * `position` refers to the offset from the beginning of the file where this data - * should be written. If `typeof position !== 'number'`, the data will be written - * at the current position. See [`pwrite(2)`](http://man7.org/linux/man-pages/man2/pwrite.2.html). - * - * The callback will be given three arguments `(err, bytesWritten, buffer)` where`bytesWritten` specifies how many _bytes_ were written from `buffer`. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesWritten` and `buffer` properties. - * - * It is unsafe to use `fs.write()` multiple times on the same file without waiting - * for the callback. For this scenario, {@link createWriteStream} is - * recommended. - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v0.0.2 - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - length: number | undefined | null, - position: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - length: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - */ - export function write( - fd: number, - buffer: TBuffer, - offset: number | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void - ): void; - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - */ - export function write(fd: number, buffer: TBuffer, callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - export function write( - fd: number, - string: string, - position: number | undefined | null, - encoding: BufferEncoding | undefined | null, - callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void - ): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - export function write(fd: number, string: string, position: number | undefined | null, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - */ - export function write(fd: number, string: string, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void; - export namespace write { - /** - * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. - * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - */ - function __promisify__( - fd: number, - buffer?: TBuffer, - offset?: number, - length?: number, - position?: number | null - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - /** - * Asynchronously writes `string` to the file referenced by the supplied file descriptor. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - function __promisify__( - fd: number, - string: string, - position?: number | null, - encoding?: BufferEncoding | null - ): Promise<{ - bytesWritten: number; - buffer: string; - }>; - } - /** - * If `buffer` is a plain object, it must have an own (not inherited) `toString`function property. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link write}. - * @since v0.1.21 - * @return The number of bytes written. - */ - export function writeSync(fd: number, buffer: NodeJS.ArrayBufferView, offset?: number | null, length?: number | null, position?: number | null): number; - /** - * Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written. - * @param fd A file descriptor. - * @param string A string to write. - * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. - * @param encoding The expected string encoding. - */ - export function writeSync(fd: number, string: string, position?: number | null, encoding?: BufferEncoding | null): number; - export type ReadPosition = number | bigint; - /** - * Read data from the file specified by `fd`. - * - * The callback is given the three arguments, `(err, bytesRead, buffer)`. - * - * If the file is not modified concurrently, the end-of-file is reached when the - * number of bytes read is zero. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesRead` and `buffer` properties. - * @since v0.0.2 - * @param [buffer=Buffer.alloc(16384)] The buffer that the data will be written to. - * @param [offset=0] The position in `buffer` to write the data to. - * @param [length=buffer.byteLength] The number of bytes to read. - * @param position Specifies where to begin reading from in the file. If `position` is `null` or `-1 `, data will be read from the current file position, and the file position will be updated. If - * `position` is an integer, the file position will be unchanged. - */ - export function read( - fd: number, - buffer: TBuffer, - offset: number, - length: number, - position: ReadPosition | null, - callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void - ): void; - export namespace read { - /** - * @param fd A file descriptor. - * @param buffer The buffer that the data will be written to. - * @param offset The offset in the buffer at which to start writing. - * @param length The number of bytes to read. - * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. - */ - function __promisify__( - fd: number, - buffer: TBuffer, - offset: number, - length: number, - position: number | null - ): Promise<{ - bytesRead: number; - buffer: TBuffer; - }>; - } - export interface ReadSyncOptions { - /** - * @default 0 - */ - offset?: number | undefined; - /** - * @default `length of buffer` - */ - length?: number | undefined; - /** - * @default null - */ - position?: ReadPosition | null | undefined; - } - /** - * Returns the number of `bytesRead`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link read}. - * @since v0.1.21 - */ - export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, offset: number, length: number, position: ReadPosition | null): number; - /** - * Similar to the above `fs.readSync` function, this version takes an optional `options` object. - * If no `options` object is specified, it will default with the above values. - */ - export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, opts?: ReadSyncOptions): number; - /** - * Asynchronously reads the entire contents of a file. - * - * ```js - * import { readFile } from 'fs'; - * - * readFile('/etc/passwd', (err, data) => { - * if (err) throw err; - * console.log(data); - * }); - * ``` - * - * The callback is passed two arguments `(err, data)`, where `data` is the - * contents of the file. - * - * If no encoding is specified, then the raw buffer is returned. - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { readFile } from 'fs'; - * - * readFile('/etc/passwd', 'utf8', callback); - * ``` - * - * When the path is a directory, the behavior of `fs.readFile()` and {@link readFileSync} is platform-specific. On macOS, Linux, and Windows, an - * error will be returned. On FreeBSD, a representation of the directory's contents - * will be returned. - * - * ```js - * import { readFile } from 'fs'; - * - * // macOS, Linux, and Windows - * readFile('', (err, data) => { - * // => [Error: EISDIR: illegal operation on a directory, read ] - * }); - * - * // FreeBSD - * readFile('', (err, data) => { - * // => null, - * }); - * ``` - * - * It is possible to abort an ongoing request using an `AbortSignal`. If a - * request is aborted the callback is called with an `AbortError`: - * - * ```js - * import { readFile } from 'fs'; - * - * const controller = new AbortController(); - * const signal = controller.signal; - * readFile(fileInfo[0].name, { signal }, (err, buf) => { - * // ... - * }); - * // When you want to abort the request - * controller.abort(); - * ``` - * - * The `fs.readFile()` function buffers the entire file. To minimize memory costs, - * when possible prefer streaming via `fs.createReadStream()`. - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.readFile` performs. - * @since v0.1.29 - * @param path filename or file descriptor - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | ({ - encoding?: null | undefined; - flag?: string | undefined; - } & Abortable) - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | ({ - encoding: BufferEncoding; - flag?: string | undefined; - } & Abortable) - | BufferEncoding, - callback: (err: NodeJS.ErrnoException | null, data: string) => void - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFile( - path: PathOrFileDescriptor, - options: - | (ObjectEncodingOptions & { - flag?: string | undefined; - } & Abortable) - | BufferEncoding - | undefined - | null, - callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void - ): void; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - */ - export function readFile(path: PathOrFileDescriptor, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void; - export namespace readFile { - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options?: { - encoding?: null | undefined; - flag?: string | undefined; - } | null - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options: - | { - encoding: BufferEncoding; - flag?: string | undefined; - } - | BufferEncoding - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function __promisify__( - path: PathOrFileDescriptor, - options?: - | (ObjectEncodingOptions & { - flag?: string | undefined; - }) - | BufferEncoding - | null - ): Promise; - } - /** - * Returns the contents of the `path`. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link readFile}. - * - * If the `encoding` option is specified then this function returns a - * string. Otherwise it returns a buffer. - * - * Similar to {@link readFile}, when the path is a directory, the behavior of`fs.readFileSync()` is platform-specific. - * - * ```js - * import { readFileSync } from 'fs'; - * - * // macOS, Linux, and Windows - * readFileSync(''); - * // => [Error: EISDIR: illegal operation on a directory, read ] - * - * // FreeBSD - * readFileSync(''); // => - * ``` - * @since v0.1.8 - * @param path filename or file descriptor - */ - export function readFileSync( - path: PathOrFileDescriptor, - options?: { - encoding?: null | undefined; - flag?: string | undefined; - } | null - ): Buffer; - /** - * Synchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFileSync( - path: PathOrFileDescriptor, - options: - | { - encoding: BufferEncoding; - flag?: string | undefined; - } - | BufferEncoding - ): string; - /** - * Synchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - export function readFileSync( - path: PathOrFileDescriptor, - options?: - | (ObjectEncodingOptions & { - flag?: string | undefined; - }) - | BufferEncoding - | null - ): string | Buffer; - export type WriteFileOptions = - | (ObjectEncodingOptions & - Abortable & { - mode?: Mode | undefined; - flag?: string | undefined; - }) - | BufferEncoding - | null; - /** - * When `file` is a filename, asynchronously writes data to the file, replacing the - * file if it already exists. `data` can be a string or a buffer. - * - * When `file` is a file descriptor, the behavior is similar to calling`fs.write()` directly (which is recommended). See the notes below on using - * a file descriptor. - * - * The `encoding` option is ignored if `data` is a buffer. - * - * If `data` is a plain object, it must have an own (not inherited) `toString`function property. - * - * ```js - * import { writeFile } from 'fs'; - * import { Buffer } from 'buffer'; - * - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * writeFile('message.txt', data, (err) => { - * if (err) throw err; - * console.log('The file has been saved!'); - * }); - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { writeFile } from 'fs'; - * - * writeFile('message.txt', 'Hello Node.js', 'utf8', callback); - * ``` - * - * It is unsafe to use `fs.writeFile()` multiple times on the same file without - * waiting for the callback. For this scenario, {@link createWriteStream} is - * recommended. - * - * Similarly to `fs.readFile` \- `fs.writeFile` is a convenience method that - * performs multiple `write` calls internally to write the buffer passed to it. - * For performance sensitive code consider using {@link createWriteStream}. - * - * It is possible to use an `AbortSignal` to cancel an `fs.writeFile()`. - * Cancelation is "best effort", and some amount of data is likely still - * to be written. - * - * ```js - * import { writeFile } from 'fs'; - * import { Buffer } from 'buffer'; - * - * const controller = new AbortController(); - * const { signal } = controller; - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * writeFile('message.txt', data, { signal }, (err) => { - * // When a request is aborted - the callback is called with an AbortError - * }); - * // When the request should be aborted - * controller.abort(); - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.writeFile` performs. - * @since v0.1.29 - * @param file filename or file descriptor - */ - export function writeFile(file: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options: WriteFileOptions, callback: NoParamCallback): void; - /** - * Asynchronously writes data to a file, replacing the file if it already exists. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - */ - export function writeFile(path: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, callback: NoParamCallback): void; - export namespace writeFile { - /** - * Asynchronously writes data to a file, replacing the file if it already exists. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `mode` is not supplied, the default of `0o666` is used. - * If `mode` is a string, it is parsed as an octal integer. - * If `flag` is not supplied, the default of `'w'` is used. - */ - function __promisify__(path: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): Promise; - } - /** - * Returns `undefined`. - * - * If `data` is a plain object, it must have an own (not inherited) `toString`function property. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link writeFile}. - * @since v0.1.29 - * @param file filename or file descriptor - */ - export function writeFileSync(file: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): void; - /** - * Asynchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * ```js - * import { appendFile } from 'fs'; - * - * appendFile('message.txt', 'data to append', (err) => { - * if (err) throw err; - * console.log('The "data to append" was appended to file!'); - * }); - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { appendFile } from 'fs'; - * - * appendFile('message.txt', 'data to append', 'utf8', callback); - * ``` - * - * The `path` may be specified as a numeric file descriptor that has been opened - * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will - * not be closed automatically. - * - * ```js - * import { open, close, appendFile } from 'fs'; - * - * function closeFd(fd) { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * - * open('message.txt', 'a', (err, fd) => { - * if (err) throw err; - * - * try { - * appendFile(fd, 'data to append', 'utf8', (err) => { - * closeFd(fd); - * if (err) throw err; - * }); - * } catch (err) { - * closeFd(fd); - * throw err; - * } - * }); - * ``` - * @since v0.6.7 - * @param path filename or file descriptor - */ - export function appendFile(path: PathOrFileDescriptor, data: string | Uint8Array, options: WriteFileOptions, callback: NoParamCallback): void; - /** - * Asynchronously append data to a file, creating the file if it does not exist. - * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - */ - export function appendFile(file: PathOrFileDescriptor, data: string | Uint8Array, callback: NoParamCallback): void; - export namespace appendFile { - /** - * Asynchronously append data to a file, creating the file if it does not exist. - * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - * If a file descriptor is provided, the underlying file will _not_ be closed automatically. - * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. - * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `mode` is not supplied, the default of `0o666` is used. - * If `mode` is a string, it is parsed as an octal integer. - * If `flag` is not supplied, the default of `'a'` is used. - */ - function __promisify__(file: PathOrFileDescriptor, data: string | Uint8Array, options?: WriteFileOptions): Promise; - } - /** - * Synchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * ```js - * import { appendFileSync } from 'fs'; - * - * try { - * appendFileSync('message.txt', 'data to append'); - * console.log('The "data to append" was appended to file!'); - * } catch (err) { - * // Handle the error - * } - * ``` - * - * If `options` is a string, then it specifies the encoding: - * - * ```js - * import { appendFileSync } from 'fs'; - * - * appendFileSync('message.txt', 'data to append', 'utf8'); - * ``` - * - * The `path` may be specified as a numeric file descriptor that has been opened - * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will - * not be closed automatically. - * - * ```js - * import { openSync, closeSync, appendFileSync } from 'fs'; - * - * let fd; - * - * try { - * fd = openSync('message.txt', 'a'); - * appendFileSync(fd, 'data to append', 'utf8'); - * } catch (err) { - * // Handle the error - * } finally { - * if (fd !== undefined) - * closeSync(fd); - * } - * ``` - * @since v0.6.7 - * @param path filename or file descriptor - */ - export function appendFileSync(path: PathOrFileDescriptor, data: string | Uint8Array, options?: WriteFileOptions): void; - /** - * Watch for changes on `filename`. The callback `listener` will be called each - * time the file is accessed. - * - * The `options` argument may be omitted. If provided, it should be an object. The`options` object may contain a boolean named `persistent` that indicates - * whether the process should continue to run as long as files are being watched. - * The `options` object may specify an `interval` property indicating how often the - * target should be polled in milliseconds. - * - * The `listener` gets two arguments the current stat object and the previous - * stat object: - * - * ```js - * import { watchFile } from 'fs'; - * - * watchFile('message.text', (curr, prev) => { - * console.log(`the current mtime is: ${curr.mtime}`); - * console.log(`the previous mtime was: ${prev.mtime}`); - * }); - * ``` - * - * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, - * the numeric values in these objects are specified as `BigInt`s. - * - * To be notified when the file was modified, not just accessed, it is necessary - * to compare `curr.mtime` and `prev.mtime`. - * - * When an `fs.watchFile` operation results in an `ENOENT` error, it - * will invoke the listener once, with all the fields zeroed (or, for dates, the - * Unix Epoch). If the file is created later on, the listener will be called - * again, with the latest stat objects. This is a change in functionality since - * v0.10. - * - * Using {@link watch} is more efficient than `fs.watchFile` and`fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and`fs.unwatchFile` when possible. - * - * When a file being watched by `fs.watchFile()` disappears and reappears, - * then the contents of `previous` in the second callback event (the file's - * reappearance) will be the same as the contents of `previous` in the first - * callback event (its disappearance). - * - * This happens when: - * - * * the file is deleted, followed by a restore - * * the file is renamed and then renamed a second time back to its original name - * @since v0.1.31 - */ - export function watchFile( - filename: PathLike, - options: - | { - persistent?: boolean | undefined; - interval?: number | undefined; - } - | undefined, - listener: (curr: Stats, prev: Stats) => void - ): void; - /** - * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - */ - export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void): void; - /** - * Stop watching for changes on `filename`. If `listener` is specified, only that - * particular listener is removed. Otherwise, _all_ listeners are removed, - * effectively stopping watching of `filename`. - * - * Calling `fs.unwatchFile()` with a filename that is not being watched is a - * no-op, not an error. - * - * Using {@link watch} is more efficient than `fs.watchFile()` and`fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()`and `fs.unwatchFile()` when possible. - * @since v0.1.31 - * @param listener Optional, a listener previously attached using `fs.watchFile()` - */ - export function unwatchFile(filename: PathLike, listener?: (curr: Stats, prev: Stats) => void): void; - export interface WatchOptions extends Abortable { - encoding?: BufferEncoding | 'buffer' | undefined; - persistent?: boolean | undefined; - recursive?: boolean | undefined; - } - export type WatchEventType = 'rename' | 'change'; - export type WatchListener = (event: WatchEventType, filename: T) => void; - /** - * Watch for changes on `filename`, where `filename` is either a file or a - * directory. - * - * The second argument is optional. If `options` is provided as a string, it - * specifies the `encoding`. Otherwise `options` should be passed as an object. - * - * The listener callback gets two arguments `(eventType, filename)`. `eventType`is either `'rename'` or `'change'`, and `filename` is the name of the file - * which triggered the event. - * - * On most platforms, `'rename'` is emitted whenever a filename appears or - * disappears in the directory. - * - * The listener callback is attached to the `'change'` event fired by `fs.FSWatcher`, but it is not the same thing as the `'change'` value of`eventType`. - * - * If a `signal` is passed, aborting the corresponding AbortController will close - * the returned `fs.FSWatcher`. - * @since v0.5.10 - * @param listener - */ - export function watch( - filename: PathLike, - options: - | (WatchOptions & { - encoding: 'buffer'; - }) - | 'buffer', - listener?: WatchListener - ): FSWatcher; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - export function watch(filename: PathLike, options?: WatchOptions | BufferEncoding | null, listener?: WatchListener): FSWatcher; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - export function watch(filename: PathLike, options: WatchOptions | string, listener?: WatchListener): FSWatcher; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - */ - export function watch(filename: PathLike, listener?: WatchListener): FSWatcher; - /** - * Test whether or not the given path exists by checking with the file system. - * Then call the `callback` argument with either true or false: - * - * ```js - * import { exists } from 'fs'; - * - * exists('/etc/passwd', (e) => { - * console.log(e ? 'it exists' : 'no passwd!'); - * }); - * ``` - * - * **The parameters for this callback are not consistent with other Node.js** - * **callbacks.** Normally, the first parameter to a Node.js callback is an `err`parameter, optionally followed by other parameters. The `fs.exists()` callback - * has only one boolean parameter. This is one reason `fs.access()` is recommended - * instead of `fs.exists()`. - * - * Using `fs.exists()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()` or `fs.writeFile()` is not recommended. Doing - * so introduces a race condition, since other processes may change the file's - * state between the two calls. Instead, user code should open/read/write the - * file directly and handle the error raised if the file does not exist. - * - * **write (NOT RECOMMENDED)** - * - * ```js - * import { exists, open, close } from 'fs'; - * - * exists('myfile', (e) => { - * if (e) { - * console.error('myfile already exists'); - * } else { - * open('myfile', 'wx', (err, fd) => { - * if (err) throw err; - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * } - * }); - * ``` - * - * **write (RECOMMENDED)** - * - * ```js - * import { open, close } from 'fs'; - * open('myfile', 'wx', (err, fd) => { - * if (err) { - * if (err.code === 'EEXIST') { - * console.error('myfile already exists'); - * return; - * } - * - * throw err; - * } - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * **read (NOT RECOMMENDED)** - * - * ```js - * import { open, close, exists } from 'fs'; - * - * exists('myfile', (e) => { - * if (e) { - * open('myfile', 'r', (err, fd) => { - * if (err) throw err; - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * } else { - * console.error('myfile does not exist'); - * } - * }); - * ``` - * - * **read (RECOMMENDED)** - * - * ```js - * import { open, close } from 'fs'; - * - * open('myfile', 'r', (err, fd) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * The "not recommended" examples above check for existence and then use the - * file; the "recommended" examples are better because they use the file directly - * and handle the error, if any. - * - * In general, check for the existence of a file only if the file won’t be - * used directly, for example when its existence is a signal from another - * process. - * @since v0.0.2 - * @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead. - */ - export function exists(path: PathLike, callback: (exists: boolean) => void): void; - export namespace exists { - /** - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(path: PathLike): Promise; - } - /** - * Returns `true` if the path exists, `false` otherwise. - * - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link exists}. - * - * `fs.exists()` is deprecated, but `fs.existsSync()` is not. The `callback`parameter to `fs.exists()` accepts parameters that are inconsistent with other - * Node.js callbacks. `fs.existsSync()` does not use a callback. - * - * ```js - * import { existsSync } from 'fs'; - * - * if (existsSync('/etc/passwd')) - * console.log('The path exists.'); - * ``` - * @since v0.1.21 - */ - export function existsSync(path: PathLike): boolean; - export namespace constants { - // File Access Constants - /** Constant for fs.access(). File is visible to the calling process. */ - const F_OK: number; - /** Constant for fs.access(). File can be read by the calling process. */ - const R_OK: number; - /** Constant for fs.access(). File can be written by the calling process. */ - const W_OK: number; - /** Constant for fs.access(). File can be executed by the calling process. */ - const X_OK: number; - // File Copy Constants - /** Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists. */ - const COPYFILE_EXCL: number; - /** - * Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink. - * If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used. - */ - const COPYFILE_FICLONE: number; - /** - * Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink. - * If the underlying platform does not support copy-on-write, then the operation will fail with an error. - */ - const COPYFILE_FICLONE_FORCE: number; - // File Open Constants - /** Constant for fs.open(). Flag indicating to open a file for read-only access. */ - const O_RDONLY: number; - /** Constant for fs.open(). Flag indicating to open a file for write-only access. */ - const O_WRONLY: number; - /** Constant for fs.open(). Flag indicating to open a file for read-write access. */ - const O_RDWR: number; - /** Constant for fs.open(). Flag indicating to create the file if it does not already exist. */ - const O_CREAT: number; - /** Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists. */ - const O_EXCL: number; - /** - * Constant for fs.open(). Flag indicating that if path identifies a terminal device, - * opening the path shall not cause that terminal to become the controlling terminal for the process - * (if the process does not already have one). - */ - const O_NOCTTY: number; - /** Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero. */ - const O_TRUNC: number; - /** Constant for fs.open(). Flag indicating that data will be appended to the end of the file. */ - const O_APPEND: number; - /** Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory. */ - const O_DIRECTORY: number; - /** - * constant for fs.open(). - * Flag indicating reading accesses to the file system will no longer result in - * an update to the atime information associated with the file. - * This flag is available on Linux operating systems only. - */ - const O_NOATIME: number; - /** Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link. */ - const O_NOFOLLOW: number; - /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */ - const O_SYNC: number; - /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity. */ - const O_DSYNC: number; - /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */ - const O_SYMLINK: number; - /** Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O. */ - const O_DIRECT: number; - /** Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible. */ - const O_NONBLOCK: number; - // File Type Constants - /** Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code. */ - const S_IFMT: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file. */ - const S_IFREG: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a directory. */ - const S_IFDIR: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file. */ - const S_IFCHR: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file. */ - const S_IFBLK: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe. */ - const S_IFIFO: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link. */ - const S_IFLNK: number; - /** Constant for fs.Stats mode property for determining a file's type. File type constant for a socket. */ - const S_IFSOCK: number; - // File Mode Constants - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner. */ - const S_IRWXU: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner. */ - const S_IRUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner. */ - const S_IWUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner. */ - const S_IXUSR: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group. */ - const S_IRWXG: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group. */ - const S_IRGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group. */ - const S_IWGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group. */ - const S_IXGRP: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others. */ - const S_IRWXO: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others. */ - const S_IROTH: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others. */ - const S_IWOTH: number; - /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */ - const S_IXOTH: number; - /** - * When set, a memory file mapping is used to access the file. This flag - * is available on Windows operating systems only. On other operating systems, - * this flag is ignored. - */ - const UV_FS_O_FILEMAP: number; - } - /** - * Tests a user's permissions for the file or directory specified by `path`. - * The `mode` argument is an optional integer that specifies the accessibility - * checks to be performed. Check `File access constants` for possible values - * of `mode`. It is possible to create a mask consisting of the bitwise OR of - * two or more values (e.g. `fs.constants.W_OK | fs.constants.R_OK`). - * - * The final argument, `callback`, is a callback function that is invoked with - * a possible error argument. If any of the accessibility checks fail, the error - * argument will be an `Error` object. The following examples check if`package.json` exists, and if it is readable or writable. - * - * ```js - * import { access, constants } from 'fs'; - * - * const file = 'package.json'; - * - * // Check if the file exists in the current directory. - * access(file, constants.F_OK, (err) => { - * console.log(`${file} ${err ? 'does not exist' : 'exists'}`); - * }); - * - * // Check if the file is readable. - * access(file, constants.R_OK, (err) => { - * console.log(`${file} ${err ? 'is not readable' : 'is readable'}`); - * }); - * - * // Check if the file is writable. - * access(file, constants.W_OK, (err) => { - * console.log(`${file} ${err ? 'is not writable' : 'is writable'}`); - * }); - * - * // Check if the file exists in the current directory, and if it is writable. - * access(file, constants.F_OK | constants.W_OK, (err) => { - * if (err) { - * console.error( - * `${file} ${err.code === 'ENOENT' ? 'does not exist' : 'is read-only'}`); - * } else { - * console.log(`${file} exists, and it is writable`); - * } - * }); - * ``` - * - * Do not use `fs.access()` to check for the accessibility of a file before calling`fs.open()`, `fs.readFile()` or `fs.writeFile()`. Doing - * so introduces a race condition, since other processes may change the file's - * state between the two calls. Instead, user code should open/read/write the - * file directly and handle the error raised if the file is not accessible. - * - * **write (NOT RECOMMENDED)** - * - * ```js - * import { access, open, close } from 'fs'; - * - * access('myfile', (err) => { - * if (!err) { - * console.error('myfile already exists'); - * return; - * } - * - * open('myfile', 'wx', (err, fd) => { - * if (err) throw err; - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * }); - * ``` - * - * **write (RECOMMENDED)** - * - * ```js - * import { open, close } from 'fs'; - * - * open('myfile', 'wx', (err, fd) => { - * if (err) { - * if (err.code === 'EEXIST') { - * console.error('myfile already exists'); - * return; - * } - * - * throw err; - * } - * - * try { - * writeMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * **read (NOT RECOMMENDED)** - * - * ```js - * import { access, open, close } from 'fs'; - * access('myfile', (err) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * open('myfile', 'r', (err, fd) => { - * if (err) throw err; - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * }); - * ``` - * - * **read (RECOMMENDED)** - * - * ```js - * import { open, close } from 'fs'; - * - * open('myfile', 'r', (err, fd) => { - * if (err) { - * if (err.code === 'ENOENT') { - * console.error('myfile does not exist'); - * return; - * } - * - * throw err; - * } - * - * try { - * readMyData(fd); - * } finally { - * close(fd, (err) => { - * if (err) throw err; - * }); - * } - * }); - * ``` - * - * The "not recommended" examples above check for accessibility and then use the - * file; the "recommended" examples are better because they use the file directly - * and handle the error, if any. - * - * In general, check for the accessibility of a file only if the file will not be - * used directly, for example when its accessibility is a signal from another - * process. - * - * On Windows, access-control policies (ACLs) on a directory may limit access to - * a file or directory. The `fs.access()` function, however, does not check the - * ACL and therefore may report that a path is accessible even if the ACL restricts - * the user from reading or writing to it. - * @since v0.11.15 - * @param [mode=fs.constants.F_OK] - */ - export function access(path: PathLike, mode: number | undefined, callback: NoParamCallback): void; - /** - * Asynchronously tests a user's permissions for the file specified by path. - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - */ - export function access(path: PathLike, callback: NoParamCallback): void; - export namespace access { - /** - * Asynchronously tests a user's permissions for the file specified by path. - * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * URL support is _experimental_. - */ - function __promisify__(path: PathLike, mode?: number): Promise; - } - /** - * Synchronously tests a user's permissions for the file or directory specified - * by `path`. The `mode` argument is an optional integer that specifies the - * accessibility checks to be performed. Check `File access constants` for - * possible values of `mode`. It is possible to create a mask consisting of - * the bitwise OR of two or more values - * (e.g. `fs.constants.W_OK | fs.constants.R_OK`). - * - * If any of the accessibility checks fail, an `Error` will be thrown. Otherwise, - * the method will return `undefined`. - * - * ```js - * import { accessSync, constants } from 'fs'; - * - * try { - * accessSync('etc/passwd', constants.R_OK | constants.W_OK); - * console.log('can read/write'); - * } catch (err) { - * console.error('no access!'); - * } - * ``` - * @since v0.11.15 - * @param [mode=fs.constants.F_OK] - */ - export function accessSync(path: PathLike, mode?: number): void; - interface StreamOptions { - flags?: string | undefined; - encoding?: BufferEncoding | undefined; - fd?: number | promises.FileHandle | undefined; - mode?: number | undefined; - autoClose?: boolean | undefined; - /** - * @default false - */ - emitClose?: boolean | undefined; - start?: number | undefined; - highWaterMark?: number | undefined; - } - interface ReadStreamOptions extends StreamOptions { - end?: number | undefined; - } - /** - * Unlike the 16 kb default `highWaterMark` for a readable stream, the stream - * returned by this method has a default `highWaterMark` of 64 kb. - * - * `options` can include `start` and `end` values to read a range of bytes from - * the file instead of the entire file. Both `start` and `end` are inclusive and - * start counting at 0, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `fd` is specified and `start` is - * omitted or `undefined`, `fs.createReadStream()` reads sequentially from the - * current file position. The `encoding` can be any one of those accepted by `Buffer`. - * - * If `fd` is specified, `ReadStream` will ignore the `path` argument and will use - * the specified file descriptor. This means that no `'open'` event will be - * emitted. `fd` should be blocking; non-blocking `fd`s should be passed to `net.Socket`. - * - * If `fd` points to a character device that only supports blocking reads - * (such as keyboard or sound card), read operations do not finish until data is - * available. This can prevent the process from exiting and the stream from - * closing naturally. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed, like most `Readable` streams. Set the `emitClose` option to`false` to change this behavior. - * - * By providing the `fs` option, it is possible to override the corresponding `fs`implementations for `open`, `read`, and `close`. When providing the `fs` option, - * overrides for `open`, `read`, and `close` are required. - * - * ```js - * import { createReadStream } from 'fs'; - * - * // Create a stream from some character device. - * const stream = createReadStream('/dev/input/event0'); - * setTimeout(() => { - * stream.close(); // This may not close the stream. - * // Artificially marking end-of-stream, as if the underlying resource had - * // indicated end-of-file by itself, allows the stream to close. - * // This does not cancel pending read operations, and if there is such an - * // operation, the process may still not be able to exit successfully - * // until it finishes. - * stream.push(null); - * stream.read(0); - * }, 100); - * ``` - * - * If `autoClose` is false, then the file descriptor won't be closed, even if - * there's an error. It is the application's responsibility to close it and make - * sure there's no file descriptor leak. If `autoClose` is set to true (default - * behavior), on `'error'` or `'end'` the file descriptor will be closed - * automatically. - * - * `mode` sets the file mode (permission and sticky bits), but only if the - * file was created. - * - * An example to read the last 10 bytes of a file which is 100 bytes long: - * - * ```js - * import { createReadStream } from 'fs'; - * - * createReadStream('sample.txt', { start: 90, end: 99 }); - * ``` - * - * If `options` is a string, then it specifies the encoding. - * @since v0.1.31 - * @return See `Readable Stream`. - */ - export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream; - /** - * `options` may also include a `start` option to allow writing data at some - * position past the beginning of the file, allowed values are in the - * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than replacing - * it may require the `flags` option to be set to `r+` rather than the default `w`. - * The `encoding` can be any one of those accepted by `Buffer`. - * - * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false, - * then the file descriptor won't be closed, even if there's an error. - * It is the application's responsibility to close it and make sure there's no - * file descriptor leak. - * - * By default, the stream will emit a `'close'` event after it has been - * destroyed, like most `Writable` streams. Set the `emitClose` option to`false` to change this behavior. - * - * By providing the `fs` option it is possible to override the corresponding `fs`implementations for `open`, `write`, `writev` and `close`. Overriding `write()`without `writev()` can reduce - * performance as some optimizations (`_writev()`) - * will be disabled. When providing the `fs` option, overrides for `open`,`close`, and at least one of `write` and `writev` are required. - * - * Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the`path` argument and will use the specified file descriptor. This means that no`'open'` event will be - * emitted. `fd` should be blocking; non-blocking `fd`s - * should be passed to `net.Socket`. - * - * If `options` is a string, then it specifies the encoding. - * @since v0.1.31 - * @return See `Writable Stream`. - */ - export function createWriteStream(path: PathLike, options?: BufferEncoding | StreamOptions): WriteStream; - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX[`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other - * than a possible - * exception are given to the completion callback. - * @since v0.1.96 - */ - export function fdatasync(fd: number, callback: NoParamCallback): void; - export namespace fdatasync { - /** - * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device. - * @param fd A file descriptor. - */ - function __promisify__(fd: number): Promise; - } - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX[`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. Returns `undefined`. - * @since v0.1.96 - */ - export function fdatasyncSync(fd: number): void; - /** - * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. No arguments other than a possible exception are given to the - * callback function. Node.js makes no guarantees about the atomicity of the copy - * operation. If an error occurs after the destination file has been opened for - * writing, Node.js will attempt to remove the destination. - * - * `mode` is an optional integer that specifies the behavior - * of the copy operation. It is possible to create a mask consisting of the bitwise - * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). - * - * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already - * exists. - * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a - * copy-on-write reflink. If the platform does not support copy-on-write, then a - * fallback copy mechanism is used. - * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to - * create a copy-on-write reflink. If the platform does not support - * copy-on-write, then the operation will fail. - * - * ```js - * import { copyFile, constants } from 'fs'; - * - * function callback(err) { - * if (err) throw err; - * console.log('source.txt was copied to destination.txt'); - * } - * - * // destination.txt will be created or overwritten by default. - * copyFile('source.txt', 'destination.txt', callback); - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback); - * ``` - * @since v8.5.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] modifiers for copy operation. - */ - export function copyFile(src: PathLike, dest: PathLike, callback: NoParamCallback): void; - export function copyFile(src: PathLike, dest: PathLike, mode: number, callback: NoParamCallback): void; - export namespace copyFile { - function __promisify__(src: PathLike, dst: PathLike, mode?: number): Promise; - } - /** - * Synchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. Returns `undefined`. Node.js makes no guarantees about the - * atomicity of the copy operation. If an error occurs after the destination file - * has been opened for writing, Node.js will attempt to remove the destination. - * - * `mode` is an optional integer that specifies the behavior - * of the copy operation. It is possible to create a mask consisting of the bitwise - * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). - * - * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already - * exists. - * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a - * copy-on-write reflink. If the platform does not support copy-on-write, then a - * fallback copy mechanism is used. - * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to - * create a copy-on-write reflink. If the platform does not support - * copy-on-write, then the operation will fail. - * - * ```js - * import { copyFileSync, constants } from 'fs'; - * - * // destination.txt will be created or overwritten by default. - * copyFileSync('source.txt', 'destination.txt'); - * console.log('source.txt was copied to destination.txt'); - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL); - * ``` - * @since v8.5.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] modifiers for copy operation. - */ - export function copyFileSync(src: PathLike, dest: PathLike, mode?: number): void; - /** - * Write an array of `ArrayBufferView`s to the file specified by `fd` using`writev()`. - * - * `position` is the offset from the beginning of the file where this data - * should be written. If `typeof position !== 'number'`, the data will be written - * at the current position. - * - * The callback will be given three arguments: `err`, `bytesWritten`, and`buffers`. `bytesWritten` is how many bytes were written from `buffers`. - * - * If this method is `util.promisify()` ed, it returns a promise for an`Object` with `bytesWritten` and `buffers` properties. - * - * It is unsafe to use `fs.writev()` multiple times on the same file without - * waiting for the callback. For this scenario, use {@link createWriteStream}. - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v12.9.0 - */ - export function writev(fd: number, buffers: ReadonlyArray, cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void): void; - export function writev( - fd: number, - buffers: ReadonlyArray, - position: number, - cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void - ): void; - export interface WriteVResult { - bytesWritten: number; - buffers: NodeJS.ArrayBufferView[]; - } - export namespace writev { - function __promisify__(fd: number, buffers: ReadonlyArray, position?: number): Promise; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link writev}. - * @since v12.9.0 - * @return The number of bytes written. - */ - export function writevSync(fd: number, buffers: ReadonlyArray, position?: number): number; - /** - * Read from a file specified by `fd` and write to an array of `ArrayBufferView`s - * using `readv()`. - * - * `position` is the offset from the beginning of the file from where data - * should be read. If `typeof position !== 'number'`, the data will be read - * from the current position. - * - * The callback will be given three arguments: `err`, `bytesRead`, and`buffers`. `bytesRead` is how many bytes were read from the file. - * - * If this method is invoked as its `util.promisify()` ed version, it returns - * a promise for an `Object` with `bytesRead` and `buffers` properties. - * @since v13.13.0, v12.17.0 - */ - export function readv(fd: number, buffers: ReadonlyArray, cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void): void; - export function readv( - fd: number, - buffers: ReadonlyArray, - position: number, - cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void - ): void; - export interface ReadVResult { - bytesRead: number; - buffers: NodeJS.ArrayBufferView[]; - } - export namespace readv { - function __promisify__(fd: number, buffers: ReadonlyArray, position?: number): Promise; - } - /** - * For detailed information, see the documentation of the asynchronous version of - * this API: {@link readv}. - * @since v13.13.0, v12.17.0 - * @return The number of bytes read. - */ - export function readvSync(fd: number, buffers: ReadonlyArray, position?: number): number; - export interface OpenDirOptions { - encoding?: BufferEncoding | undefined; - /** - * Number of directory entries that are buffered - * internally when reading from the directory. Higher values lead to better - * performance but higher memory usage. - * @default 32 - */ - bufferSize?: number | undefined; - } - /** - * Synchronously open a directory. See [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html). - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * @since v12.12.0 - */ - export function opendirSync(path: string, options?: OpenDirOptions): Dir; - /** - * Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for - * more details. - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * @since v12.12.0 - */ - export function opendir(path: string, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void; - export function opendir(path: string, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void; - export namespace opendir { - function __promisify__(path: string, options?: OpenDirOptions): Promise; - } - export interface BigIntStats extends StatsBase { - atimeNs: bigint; - mtimeNs: bigint; - ctimeNs: bigint; - birthtimeNs: bigint; - } - export interface BigIntOptions { - bigint: true; - } - export interface StatOptions { - bigint?: boolean | undefined; - throwIfNoEntry?: boolean | undefined; - } - export interface CopyOptions { - /** - * Dereference symlinks - * @default false - */ - dereference?: boolean; - /** - * When `force` is `false`, and the destination - * exists, throw an error. - * @default false - */ - errorOnExist?: boolean; - /** - * Function to filter copied files/directories. Return - * `true` to copy the item, `false` to ignore it. - */ - filter?(source: string, destination: string): boolean; - /** - * Overwrite existing file or directory. _The copy - * operation will ignore errors if you set this to false and the destination - * exists. Use the `errorOnExist` option to change this behavior. - * @default true - */ - force?: boolean; - /** - * When `true` timestamps from `src` will - * be preserved. - * @default false - */ - preserveTimestamps?: boolean; - /** - * Copy directories recursively. - * @default false - */ - recursive?: boolean; - } - /** - * Asynchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - */ - export function cp(source: string, destination: string, callback: (err: NodeJS.ErrnoException | null) => void): void; - export function cp(source: string, destination: string, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void; - /** - * Synchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - */ - export function cpSync(source: string, destination: string, opts?: CopyOptions): void; -} -declare module 'node:fs' { - export * from 'fs'; -} diff --git a/WechatBot/node_modules/@types/node/fs/promises.d.ts b/WechatBot/node_modules/@types/node/fs/promises.d.ts deleted file mode 100644 index ea65b7dc0..000000000 --- a/WechatBot/node_modules/@types/node/fs/promises.d.ts +++ /dev/null @@ -1,997 +0,0 @@ -/** - * The `fs/promises` API provides asynchronous file system methods that return - * promises. - * - * The promise APIs use the underlying Node.js threadpool to perform file - * system operations off the event loop thread. These operations are not - * synchronized or threadsafe. Care must be taken when performing multiple - * concurrent modifications on the same file or data corruption may occur. - * @since v10.0.0 - */ -declare module 'fs/promises' { - import { Abortable } from 'node:events'; - import { Stream } from 'node:stream'; - import { - Stats, - BigIntStats, - StatOptions, - WriteVResult, - ReadVResult, - PathLike, - RmDirOptions, - RmOptions, - MakeDirectoryOptions, - Dirent, - OpenDirOptions, - Dir, - ObjectEncodingOptions, - BufferEncodingOption, - OpenMode, - Mode, - WatchOptions, - WatchEventType, - CopyOptions, - } from 'node:fs'; - interface FileChangeInfo { - eventType: WatchEventType; - filename: T; - } - interface FlagAndOpenMode { - mode?: Mode | undefined; - flag?: OpenMode | undefined; - } - interface FileReadResult { - bytesRead: number; - buffer: T; - } - interface FileReadOptions { - /** - * @default `Buffer.alloc(0xffff)` - */ - buffer?: T; - /** - * @default 0 - */ - offset?: number | null; - /** - * @default `buffer.byteLength` - */ - length?: number | null; - position?: number | null; - } - // TODO: Add `EventEmitter` close - interface FileHandle { - /** - * The numeric file descriptor managed by the {FileHandle} object. - * @since v10.0.0 - */ - readonly fd: number; - /** - * Alias of `filehandle.writeFile()`. - * - * When operating on file handles, the mode cannot be changed from what it was set - * to with `fsPromises.open()`. Therefore, this is equivalent to `filehandle.writeFile()`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - appendFile(data: string | Uint8Array, options?: (ObjectEncodingOptions & FlagAndOpenMode) | BufferEncoding | null): Promise; - /** - * Changes the ownership of the file. A wrapper for [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html). - * @since v10.0.0 - * @param uid The file's new owner's user id. - * @param gid The file's new group's group id. - * @return Fulfills with `undefined` upon success. - */ - chown(uid: number, gid: number): Promise; - /** - * Modifies the permissions on the file. See [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html). - * @since v10.0.0 - * @param mode the file mode bit mask. - * @return Fulfills with `undefined` upon success. - */ - chmod(mode: Mode): Promise; - /** - * Forces all currently queued I/O operations associated with the file to the - * operating system's synchronized I/O completion state. Refer to the POSIX[`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. - * - * Unlike `filehandle.sync` this method does not flush modified metadata. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - datasync(): Promise; - /** - * Request that all data for the open file descriptor is flushed to the storage - * device. The specific implementation is operating system and device specific. - * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. - * @since v10.0.0 - * @return Fufills with `undefined` upon success. - */ - sync(): Promise; - /** - * Reads data from the file and stores that in the given buffer. - * - * If the file is not modified concurrently, the end-of-file is reached when the - * number of bytes read is zero. - * @since v10.0.0 - * @param buffer A buffer that will be filled with the file data read. - * @param [offset=0] The location in the buffer at which to start filling. - * @param [length=buffer.byteLength] The number of bytes to read. - * @param position The location where to begin reading data from the file. If `null`, data will be read from the current file position, and the position will be updated. If `position` is an - * integer, the current file position will remain unchanged. - * @return Fulfills upon success with an object with two properties: - */ - read(buffer: T, offset?: number | null, length?: number | null, position?: number | null): Promise>; - read(options?: FileReadOptions): Promise>; - /** - * Asynchronously reads the entire contents of a file. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `FileHandle` has to support reading. - * - * If one or more `filehandle.read()` calls are made on a file handle and then a`filehandle.readFile()` call is made, the data will be read from the current - * position till the end of the file. It doesn't always read from the beginning - * of the file. - * @since v10.0.0 - * @return Fulfills upon a successful read with the contents of the file. If no encoding is specified (using `options.encoding`), the data is returned as a {Buffer} object. Otherwise, the - * data will be a string. - */ - readFile( - options?: { - encoding?: null | undefined; - flag?: OpenMode | undefined; - } | null - ): Promise; - /** - * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. - * The `FileHandle` must have been opened for reading. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - readFile( - options: - | { - encoding: BufferEncoding; - flag?: OpenMode | undefined; - } - | BufferEncoding - ): Promise; - /** - * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. - * The `FileHandle` must have been opened for reading. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - readFile( - options?: - | (ObjectEncodingOptions & { - flag?: OpenMode | undefined; - }) - | BufferEncoding - | null - ): Promise; - /** - * @since v10.0.0 - * @return Fulfills with an {fs.Stats} for the file. - */ - stat( - opts?: StatOptions & { - bigint?: false | undefined; - } - ): Promise; - stat( - opts: StatOptions & { - bigint: true; - } - ): Promise; - stat(opts?: StatOptions): Promise; - /** - * Truncates the file. - * - * If the file was larger than `len` bytes, only the first `len` bytes will be - * retained in the file. - * - * The following example retains only the first four bytes of the file: - * - * ```js - * import { open } from 'fs/promises'; - * - * let filehandle = null; - * try { - * filehandle = await open('temp.txt', 'r+'); - * await filehandle.truncate(4); - * } finally { - * await filehandle?.close(); - * } - * ``` - * - * If the file previously was shorter than `len` bytes, it is extended, and the - * extended part is filled with null bytes (`'\0'`): - * - * If `len` is negative then `0` will be used. - * @since v10.0.0 - * @param [len=0] - * @return Fulfills with `undefined` upon success. - */ - truncate(len?: number): Promise; - /** - * Change the file system timestamps of the object referenced by the `FileHandle` then resolves the promise with no arguments upon success. - * @since v10.0.0 - */ - utimes(atime: string | number | Date, mtime: string | number | Date): Promise; - /** - * Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a buffer, or an object with an own `toString` function - * property. The promise is resolved with no arguments upon success. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `FileHandle` has to support writing. - * - * It is unsafe to use `filehandle.writeFile()` multiple times on the same file - * without waiting for the promise to be resolved (or rejected). - * - * If one or more `filehandle.write()` calls are made on a file handle and then a`filehandle.writeFile()` call is made, the data will be written from the - * current position till the end of the file. It doesn't always write from the - * beginning of the file. - * @since v10.0.0 - */ - writeFile(data: string | Uint8Array, options?: (ObjectEncodingOptions & FlagAndOpenMode & Abortable) | BufferEncoding | null): Promise; - /** - * Write `buffer` to the file. - * - * If `buffer` is a plain object, it must have an own (not inherited) `toString`function property. - * - * The promise is resolved with an object containing two properties: - * - * It is unsafe to use `filehandle.write()` multiple times on the same file - * without waiting for the promise to be resolved (or rejected). For this - * scenario, use `fs.createWriteStream()`. - * - * On Linux, positional writes do not work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v10.0.0 - * @param [offset=0] The start position from within `buffer` where the data to write begins. - * @param [length=buffer.byteLength] The number of bytes from `buffer` to write. - * @param position The offset from the beginning of the file where the data from `buffer` should be written. If `position` is not a `number`, the data will be written at the current position. - * See the POSIX pwrite(2) documentation for more detail. - */ - write( - buffer: TBuffer, - offset?: number | null, - length?: number | null, - position?: number | null - ): Promise<{ - bytesWritten: number; - buffer: TBuffer; - }>; - write( - data: string, - position?: number | null, - encoding?: BufferEncoding | null - ): Promise<{ - bytesWritten: number; - buffer: string; - }>; - /** - * Write an array of [<ArrayBufferView>](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView)s to the file. - * - * The promise is resolved with an object containing a two properties: - * - * It is unsafe to call `writev()` multiple times on the same file without waiting - * for the promise to be resolved (or rejected). - * - * On Linux, positional writes don't work when the file is opened in append mode. - * The kernel ignores the position argument and always appends the data to - * the end of the file. - * @since v12.9.0 - * @param position The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current - * position. - */ - writev(buffers: ReadonlyArray, position?: number): Promise; - /** - * Read from a file and write to an array of [<ArrayBufferView>](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView)s - * @since v13.13.0, v12.17.0 - * @param position The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position. - * @return Fulfills upon success an object containing two properties: - */ - readv(buffers: ReadonlyArray, position?: number): Promise; - /** - * Closes the file handle after waiting for any pending operation on the handle to - * complete. - * - * ```js - * import { open } from 'fs/promises'; - * - * let filehandle; - * try { - * filehandle = await open('thefile.txt', 'r'); - * } finally { - * await filehandle?.close(); - * } - * ``` - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - close(): Promise; - } - /** - * Tests a user's permissions for the file or directory specified by `path`. - * The `mode` argument is an optional integer that specifies the accessibility - * checks to be performed. Check `File access constants` for possible values - * of `mode`. It is possible to create a mask consisting of the bitwise OR of - * two or more values (e.g. `fs.constants.W_OK | fs.constants.R_OK`). - * - * If the accessibility check is successful, the promise is resolved with no - * value. If any of the accessibility checks fail, the promise is rejected - * with an [<Error>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object. The following example checks if the file`/etc/passwd` can be read and - * written by the current process. - * - * ```js - * import { access } from 'fs/promises'; - * import { constants } from 'fs'; - * - * try { - * await access('/etc/passwd', constants.R_OK | constants.W_OK); - * console.log('can access'); - * } catch { - * console.error('cannot access'); - * } - * ``` - * - * Using `fsPromises.access()` to check for the accessibility of a file before - * calling `fsPromises.open()` is not recommended. Doing so introduces a race - * condition, since other processes may change the file's state between the two - * calls. Instead, user code should open/read/write the file directly and handle - * the error raised if the file is not accessible. - * @since v10.0.0 - * @param [mode=fs.constants.F_OK] - * @return Fulfills with `undefined` upon success. - */ - function access(path: PathLike, mode?: number): Promise; - /** - * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it - * already exists. - * - * No guarantees are made about the atomicity of the copy operation. If an - * error occurs after the destination file has been opened for writing, an attempt - * will be made to remove the destination. - * - * ```js - * import { constants } from 'fs'; - * import { copyFile } from 'fs/promises'; - * - * try { - * await copyFile('source.txt', 'destination.txt'); - * console.log('source.txt was copied to destination.txt'); - * } catch { - * console.log('The file could not be copied'); - * } - * - * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. - * try { - * await copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL); - * console.log('source.txt was copied to destination.txt'); - * } catch { - * console.log('The file could not be copied'); - * } - * ``` - * @since v10.0.0 - * @param src source filename to copy - * @param dest destination filename of the copy operation - * @param [mode=0] Optional modifiers that specify the behavior of the copy operation. It is possible to create a mask consisting of the bitwise OR of two or more values (e.g. - * `fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`) - * @return Fulfills with `undefined` upon success. - */ - function copyFile(src: PathLike, dest: PathLike, mode?: number): Promise; - /** - * Opens a `FileHandle`. - * - * Refer to the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more detail. - * - * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented - * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains - * a colon, Node.js will open a file system stream, as described by[this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). - * @since v10.0.0 - * @param [flags='r'] See `support of file system `flags``. - * @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created. - * @return Fulfills with a {FileHandle} object. - */ - function open(path: PathLike, flags: string | number, mode?: Mode): Promise; - /** - * Renames `oldPath` to `newPath`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function rename(oldPath: PathLike, newPath: PathLike): Promise; - /** - * Truncates (shortens or extends the length) of the content at `path` to `len`bytes. - * @since v10.0.0 - * @param [len=0] - * @return Fulfills with `undefined` upon success. - */ - function truncate(path: PathLike, len?: number): Promise; - /** - * Removes the directory identified by `path`. - * - * Using `fsPromises.rmdir()` on a file (not a directory) results in the - * promise being rejected with an `ENOENT` error on Windows and an `ENOTDIR`error on POSIX. - * - * To get a behavior similar to the `rm -rf` Unix command, use `fsPromises.rm()` with options `{ recursive: true, force: true }`. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function rmdir(path: PathLike, options?: RmDirOptions): Promise; - /** - * Removes files and directories (modeled on the standard POSIX `rm` utility). - * @since v14.14.0 - * @return Fulfills with `undefined` upon success. - */ - function rm(path: PathLike, options?: RmOptions): Promise; - /** - * Asynchronously creates a directory. - * - * The optional `options` argument can be an integer specifying `mode` (permission - * and sticky bits), or an object with a `mode` property and a `recursive`property indicating whether parent directories should be created. Calling`fsPromises.mkdir()` when `path` is a directory - * that exists results in a - * rejection only when `recursive` is false. - * @since v10.0.0 - * @return Upon success, fulfills with `undefined` if `recursive` is `false`, or the first directory path created if `recursive` is `true`. - */ - function mkdir( - path: PathLike, - options: MakeDirectoryOptions & { - recursive: true; - } - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function mkdir( - path: PathLike, - options?: - | Mode - | (MakeDirectoryOptions & { - recursive?: false | undefined; - }) - | null - ): Promise; - /** - * Asynchronous mkdir(2) - create a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders - * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. - */ - function mkdir(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise; - /** - * Reads the contents of a directory. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the filenames. If the `encoding` is set to `'buffer'`, the filenames returned - * will be passed as `Buffer` objects. - * - * If `options.withFileTypes` is set to `true`, the resolved array will contain `fs.Dirent` objects. - * - * ```js - * import { readdir } from 'fs/promises'; - * - * try { - * const files = await readdir(path); - * for (const file of files) - * console.log(file); - * } catch (err) { - * console.error(err); - * } - * ``` - * @since v10.0.0 - * @return Fulfills with an array of the names of the files in the directory excluding `'.'` and `'..'`. - */ - function readdir( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - }) - | BufferEncoding - | null - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readdir( - path: PathLike, - options: - | { - encoding: 'buffer'; - withFileTypes?: false | undefined; - } - | 'buffer' - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readdir( - path: PathLike, - options?: - | (ObjectEncodingOptions & { - withFileTypes?: false | undefined; - }) - | BufferEncoding - | null - ): Promise; - /** - * Asynchronous readdir(3) - read a directory. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. - */ - function readdir( - path: PathLike, - options: ObjectEncodingOptions & { - withFileTypes: true; - } - ): Promise; - /** - * Reads the contents of the symbolic link referred to by `path`. See the POSIX[`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is - * resolved with the`linkString` upon success. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the link path returned. If the `encoding` is set to `'buffer'`, the link path - * returned will be passed as a `Buffer` object. - * @since v10.0.0 - * @return Fulfills with the `linkString` upon success. - */ - function readlink(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readlink(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous readlink(2) - read value of a symbolic link. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function readlink(path: PathLike, options?: ObjectEncodingOptions | string | null): Promise; - /** - * Creates a symbolic link. - * - * The `type` argument is only used on Windows platforms and can be one of `'dir'`,`'file'`, or `'junction'`. Windows junction points require the destination path - * to be absolute. When using `'junction'`, the `target` argument will - * automatically be normalized to absolute path. - * @since v10.0.0 - * @param [type='file'] - * @return Fulfills with `undefined` upon success. - */ - function symlink(target: PathLike, path: PathLike, type?: string | null): Promise; - /** - * Equivalent to `fsPromises.stat()` unless `path` refers to a symbolic link, - * in which case the link itself is stat-ed, not the file that it refers to. - * Refer to the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) document for more detail. - * @since v10.0.0 - * @return Fulfills with the {fs.Stats} object for the given symbolic link `path`. - */ - function lstat( - path: PathLike, - opts?: StatOptions & { - bigint?: false | undefined; - } - ): Promise; - function lstat( - path: PathLike, - opts: StatOptions & { - bigint: true; - } - ): Promise; - function lstat(path: PathLike, opts?: StatOptions): Promise; - /** - * @since v10.0.0 - * @return Fulfills with the {fs.Stats} object for the given `path`. - */ - function stat( - path: PathLike, - opts?: StatOptions & { - bigint?: false | undefined; - } - ): Promise; - function stat( - path: PathLike, - opts: StatOptions & { - bigint: true; - } - ): Promise; - function stat(path: PathLike, opts?: StatOptions): Promise; - /** - * Creates a new link from the `existingPath` to the `newPath`. See the POSIX[`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function link(existingPath: PathLike, newPath: PathLike): Promise; - /** - * If `path` refers to a symbolic link, then the link is removed without affecting - * the file or directory to which that link refers. If the `path` refers to a file - * path that is not a symbolic link, the file is deleted. See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html)documentation for more detail. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function unlink(path: PathLike): Promise; - /** - * Changes the permissions of a file. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function chmod(path: PathLike, mode: Mode): Promise; - /** - * Changes the permissions on a symbolic link. - * - * This method is only implemented on macOS. - * @deprecated Since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function lchmod(path: PathLike, mode: Mode): Promise; - /** - * Changes the ownership on a symbolic link. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function lchown(path: PathLike, uid: number, gid: number): Promise; - /** - * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, with the difference that if the path refers to a - * symbolic link, then the link is not dereferenced: instead, the timestamps of - * the symbolic link itself are changed. - * @since v14.5.0, v12.19.0 - * @return Fulfills with `undefined` upon success. - */ - function lutimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise; - /** - * Changes the ownership of a file. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function chown(path: PathLike, uid: number, gid: number): Promise; - /** - * Change the file system timestamps of the object referenced by `path`. - * - * The `atime` and `mtime` arguments follow these rules: - * - * * Values can be either numbers representing Unix epoch time, `Date`s, or a - * numeric string like `'123456789.0'`. - * * If the value can not be converted to a number, or is `NaN`, `Infinity` or`-Infinity`, an `Error` will be thrown. - * @since v10.0.0 - * @return Fulfills with `undefined` upon success. - */ - function utimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise; - /** - * Determines the actual location of `path` using the same semantics as the`fs.realpath.native()` function. - * - * Only paths that can be converted to UTF8 strings are supported. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use for - * the path. If the `encoding` is set to `'buffer'`, the path returned will be - * passed as a `Buffer` object. - * - * On Linux, when Node.js is linked against musl libc, the procfs file system must - * be mounted on `/proc` in order for this function to work. Glibc does not have - * this restriction. - * @since v10.0.0 - * @return Fulfills with the resolved path upon success. - */ - function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function realpath(path: PathLike, options: BufferEncodingOption): Promise; - /** - * Asynchronous realpath(3) - return the canonicalized absolute pathname. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Creates a unique temporary directory. A unique directory name is generated by - * appending six random characters to the end of the provided `prefix`. Due to - * platform inconsistencies, avoid trailing `X` characters in `prefix`. Some - * platforms, notably the BSDs, can return more than six random characters, and - * replace trailing `X` characters in `prefix` with random characters. - * - * The optional `options` argument can be a string specifying an encoding, or an - * object with an `encoding` property specifying the character encoding to use. - * - * ```js - * import { mkdtemp } from 'fs/promises'; - * - * try { - * await mkdtemp(path.join(os.tmpdir(), 'foo-')); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * The `fsPromises.mkdtemp()` method will append the six randomly selected - * characters directly to the `prefix` string. For instance, given a directory`/tmp`, if the intention is to create a temporary directory _within_`/tmp`, the`prefix` must end with a trailing - * platform-specific path separator - * (`require('path').sep`). - * @since v10.0.0 - * @return Fulfills with a string containing the filesystem path of the newly created temporary directory. - */ - function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function mkdtemp(prefix: string, options: BufferEncodingOption): Promise; - /** - * Asynchronously creates a unique temporary directory. - * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. - * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. - */ - function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; - /** - * Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a `Buffer`, or, an object with an own (not inherited)`toString` function property. - * - * The `encoding` option is ignored if `data` is a buffer. - * - * If `options` is a string, then it specifies the encoding. - * - * Any specified `FileHandle` has to support writing. - * - * It is unsafe to use `fsPromises.writeFile()` multiple times on the same file - * without waiting for the promise to be settled. - * - * Similarly to `fsPromises.readFile` \- `fsPromises.writeFile` is a convenience - * method that performs multiple `write` calls internally to write the buffer - * passed to it. For performance sensitive code consider using `fs.createWriteStream()`. - * - * It is possible to use an `AbortSignal` to cancel an `fsPromises.writeFile()`. - * Cancelation is "best effort", and some amount of data is likely still - * to be written. - * - * ```js - * import { writeFile } from 'fs/promises'; - * import { Buffer } from 'buffer'; - * - * try { - * const controller = new AbortController(); - * const { signal } = controller; - * const data = new Uint8Array(Buffer.from('Hello Node.js')); - * const promise = writeFile('message.txt', data, { signal }); - * - * // Abort the request before the promise settles. - * controller.abort(); - * - * await promise; - * } catch (err) { - * // When a request is aborted - err is an AbortError - * console.error(err); - * } - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.writeFile` performs. - * @since v10.0.0 - * @param file filename or `FileHandle` - * @return Fulfills with `undefined` upon success. - */ - function writeFile( - file: PathLike | FileHandle, - data: string | NodeJS.ArrayBufferView | Iterable | AsyncIterable | Stream, - options?: - | (ObjectEncodingOptions & { - mode?: Mode | undefined; - flag?: OpenMode | undefined; - } & Abortable) - | BufferEncoding - | null - ): Promise; - /** - * Asynchronously append data to a file, creating the file if it does not yet - * exist. `data` can be a string or a `Buffer`. - * - * If `options` is a string, then it specifies the `encoding`. - * - * The `path` may be specified as a `FileHandle` that has been opened - * for appending (using `fsPromises.open()`). - * @since v10.0.0 - * @param path filename or {FileHandle} - * @return Fulfills with `undefined` upon success. - */ - function appendFile(path: PathLike | FileHandle, data: string | Uint8Array, options?: (ObjectEncodingOptions & FlagAndOpenMode) | BufferEncoding | null): Promise; - /** - * Asynchronously reads the entire contents of a file. - * - * If no encoding is specified (using `options.encoding`), the data is returned - * as a `Buffer` object. Otherwise, the data will be a string. - * - * If `options` is a string, then it specifies the encoding. - * - * When the `path` is a directory, the behavior of `fsPromises.readFile()` is - * platform-specific. On macOS, Linux, and Windows, the promise will be rejected - * with an error. On FreeBSD, a representation of the directory's contents will be - * returned. - * - * It is possible to abort an ongoing `readFile` using an `AbortSignal`. If a - * request is aborted the promise returned is rejected with an `AbortError`: - * - * ```js - * import { readFile } from 'fs/promises'; - * - * try { - * const controller = new AbortController(); - * const { signal } = controller; - * const promise = readFile(fileName, { signal }); - * - * // Abort the request before the promise settles. - * controller.abort(); - * - * await promise; - * } catch (err) { - * // When a request is aborted - err is an AbortError - * console.error(err); - * } - * ``` - * - * Aborting an ongoing request does not abort individual operating - * system requests but rather the internal buffering `fs.readFile` performs. - * - * Any specified `FileHandle` has to support reading. - * @since v10.0.0 - * @param path filename or `FileHandle` - * @return Fulfills with the contents of the file. - */ - function readFile( - path: PathLike | FileHandle, - options?: - | ({ - encoding?: null | undefined; - flag?: OpenMode | undefined; - } & Abortable) - | null - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function readFile( - path: PathLike | FileHandle, - options: - | ({ - encoding: BufferEncoding; - flag?: OpenMode | undefined; - } & Abortable) - | BufferEncoding - ): Promise; - /** - * Asynchronously reads the entire contents of a file. - * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. - * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. - * @param options An object that may contain an optional flag. - * If a flag is not provided, it defaults to `'r'`. - */ - function readFile( - path: PathLike | FileHandle, - options?: - | (ObjectEncodingOptions & - Abortable & { - flag?: OpenMode | undefined; - }) - | BufferEncoding - | null - ): Promise; - /** - * Asynchronously open a directory for iterative scanning. See the POSIX[`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail. - * - * Creates an `fs.Dir`, which contains all further functions for reading from - * and cleaning up the directory. - * - * The `encoding` option sets the encoding for the `path` while opening the - * directory and subsequent read operations. - * - * Example using async iteration: - * - * ```js - * import { opendir } from 'fs/promises'; - * - * try { - * const dir = await opendir('./'); - * for await (const dirent of dir) - * console.log(dirent.name); - * } catch (err) { - * console.error(err); - * } - * ``` - * - * When using the async iterator, the `fs.Dir` object will be automatically - * closed after the iterator exits. - * @since v12.12.0 - * @return Fulfills with an {fs.Dir}. - */ - function opendir(path: string, options?: OpenDirOptions): Promise; - /** - * Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory. - * - * ```js - * const { watch } = require('fs/promises'); - * - * const ac = new AbortController(); - * const { signal } = ac; - * setTimeout(() => ac.abort(), 10000); - * - * (async () => { - * try { - * const watcher = watch(__filename, { signal }); - * for await (const event of watcher) - * console.log(event); - * } catch (err) { - * if (err.name === 'AbortError') - * return; - * throw err; - * } - * })(); - * ``` - * - * On most platforms, `'rename'` is emitted whenever a filename appears or - * disappears in the directory. - * - * All the `caveats` for `fs.watch()` also apply to `fsPromises.watch()`. - * @since v15.9.0 - * @return of objects with the properties: - */ - function watch( - filename: PathLike, - options: - | (WatchOptions & { - encoding: 'buffer'; - }) - | 'buffer' - ): AsyncIterable>; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - function watch(filename: PathLike, options?: WatchOptions | BufferEncoding): AsyncIterable>; - /** - * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. - * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. - * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. - * If `encoding` is not supplied, the default of `'utf8'` is used. - * If `persistent` is not supplied, the default of `true` is used. - * If `recursive` is not supplied, the default of `false` is used. - */ - function watch(filename: PathLike, options: WatchOptions | string): AsyncIterable> | AsyncIterable>; - /** - * Asynchronously copies the entire directory structure from `src` to `dest`, - * including subdirectories and files. - * - * When copying a directory to another directory, globs are not supported and - * behavior is similar to `cp dir1/ dir2/`. - * @since v16.7.0 - * @experimental - * @param src source path to copy. - * @param dest destination path to copy to. - * @return Fulfills with `undefined` upon success. - */ - function cp(source: string, destination: string, opts?: CopyOptions): Promise; -} -declare module 'node:fs/promises' { - export * from 'fs/promises'; -} diff --git a/WechatBot/node_modules/@types/node/globals.d.ts b/WechatBot/node_modules/@types/node/globals.d.ts deleted file mode 100644 index ae974db7e..000000000 --- a/WechatBot/node_modules/@types/node/globals.d.ts +++ /dev/null @@ -1,284 +0,0 @@ -// Declare "static" methods in Error -interface ErrorConstructor { - /** Create .stack property on a target object */ - captureStackTrace(targetObject: object, constructorOpt?: Function): void; - - /** - * Optional override for formatting stack traces - * - * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces - */ - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - - stackTraceLimit: number; -} - -/*-----------------------------------------------* - * * - * GLOBAL * - * * - ------------------------------------------------*/ - -// For backwards compability -interface NodeRequire extends NodeJS.Require { } -interface RequireResolve extends NodeJS.RequireResolve { } -interface NodeModule extends NodeJS.Module { } - -declare var process: NodeJS.Process; -declare var console: Console; - -declare var __filename: string; -declare var __dirname: string; - -declare var require: NodeRequire; -declare var module: NodeModule; - -// Same as module.exports -declare var exports: any; - -/** - * Only available if `--expose-gc` is passed to the process. - */ -declare var gc: undefined | (() => void); - -//#region borrowed -// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib -/** A controller object that allows you to abort one or more DOM requests as and when desired. */ -interface AbortController { - /** - * Returns the AbortSignal object associated with this object. - */ - - readonly signal: AbortSignal; - /** - * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. - */ - abort(): void; -} - -/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */ -interface AbortSignal { - /** - * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. - */ - readonly aborted: boolean; -} - -declare var AbortController: { - prototype: AbortController; - new(): AbortController; -}; - -declare var AbortSignal: { - prototype: AbortSignal; - new(): AbortSignal; - // TODO: Add abort() static -}; -//#endregion borrowed - -//#region ArrayLike.at() -interface RelativeIndexable { - /** - * Takes an integer value and returns the item at that index, - * allowing for positive and negative integers. - * Negative integers count back from the last item in the array. - */ - at(index: number): T | undefined; -} -interface String extends RelativeIndexable {} -interface Array extends RelativeIndexable {} -interface Int8Array extends RelativeIndexable {} -interface Uint8Array extends RelativeIndexable {} -interface Uint8ClampedArray extends RelativeIndexable {} -interface Int16Array extends RelativeIndexable {} -interface Uint16Array extends RelativeIndexable {} -interface Int32Array extends RelativeIndexable {} -interface Uint32Array extends RelativeIndexable {} -interface Float32Array extends RelativeIndexable {} -interface Float64Array extends RelativeIndexable {} -interface BigInt64Array extends RelativeIndexable {} -interface BigUint64Array extends RelativeIndexable {} -//#endregion ArrayLike.at() end - -/*----------------------------------------------* -* * -* GLOBAL INTERFACES * -* * -*-----------------------------------------------*/ -declare namespace NodeJS { - interface CallSite { - /** - * Value of "this" - */ - getThis(): unknown; - - /** - * Type of "this" as a string. - * This is the name of the function stored in the constructor field of - * "this", if available. Otherwise the object's [[Class]] internal - * property. - */ - getTypeName(): string | null; - - /** - * Current function - */ - getFunction(): Function | undefined; - - /** - * Name of the current function, typically its name property. - * If a name property is not available an attempt will be made to try - * to infer a name from the function's context. - */ - getFunctionName(): string | null; - - /** - * Name of the property [of "this" or one of its prototypes] that holds - * the current function - */ - getMethodName(): string | null; - - /** - * Name of the script [if this function was defined in a script] - */ - getFileName(): string | null; - - /** - * Current line number [if this function was defined in a script] - */ - getLineNumber(): number | null; - - /** - * Current column number [if this function was defined in a script] - */ - getColumnNumber(): number | null; - - /** - * A call site object representing the location where eval was called - * [if this function was created using a call to eval] - */ - getEvalOrigin(): string | undefined; - - /** - * Is this a toplevel invocation, that is, is "this" the global object? - */ - isToplevel(): boolean; - - /** - * Does this call take place in code defined by a call to eval? - */ - isEval(): boolean; - - /** - * Is this call in native V8 code? - */ - isNative(): boolean; - - /** - * Is this a constructor call? - */ - isConstructor(): boolean; - } - - interface ErrnoException extends Error { - errno?: number | undefined; - code?: string | undefined; - path?: string | undefined; - syscall?: string | undefined; - } - - interface ReadableStream extends EventEmitter { - readable: boolean; - read(size?: number): string | Buffer; - setEncoding(encoding: BufferEncoding): this; - pause(): this; - resume(): this; - isPaused(): boolean; - pipe(destination: T, options?: { end?: boolean | undefined; }): T; - unpipe(destination?: WritableStream): this; - unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void; - wrap(oldStream: ReadableStream): this; - [Symbol.asyncIterator](): AsyncIterableIterator; - } - - interface WritableStream extends EventEmitter { - writable: boolean; - write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; - write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; - end(cb?: () => void): void; - end(data: string | Uint8Array, cb?: () => void): void; - end(str: string, encoding?: BufferEncoding, cb?: () => void): void; - } - - interface ReadWriteStream extends ReadableStream, WritableStream { } - - interface RefCounted { - ref(): this; - unref(): this; - } - - type TypedArray = - | Uint8Array - | Uint8ClampedArray - | Uint16Array - | Uint32Array - | Int8Array - | Int16Array - | Int32Array - | BigUint64Array - | BigInt64Array - | Float32Array - | Float64Array; - type ArrayBufferView = TypedArray | DataView; - - interface Require { - (id: string): any; - resolve: RequireResolve; - cache: Dict; - /** - * @deprecated - */ - extensions: RequireExtensions; - main: Module | undefined; - } - - interface RequireResolve { - (id: string, options?: { paths?: string[] | undefined; }): string; - paths(request: string): string[] | null; - } - - interface RequireExtensions extends Dict<(m: Module, filename: string) => any> { - '.js': (m: Module, filename: string) => any; - '.json': (m: Module, filename: string) => any; - '.node': (m: Module, filename: string) => any; - } - interface Module { - /** - * `true` if the module is running during the Node.js preload - */ - isPreloading: boolean; - exports: any; - require: Require; - id: string; - filename: string; - loaded: boolean; - /** @deprecated since 14.6.0 Please use `require.main` and `module.children` instead. */ - parent: Module | null | undefined; - children: Module[]; - /** - * @since 11.14.0 - * - * The directory name of the module. This is usually the same as the path.dirname() of the module.id. - */ - path: string; - paths: string[]; - } - - interface Dict { - [key: string]: T | undefined; - } - - interface ReadOnlyDict { - readonly [key: string]: T | undefined; - } -} diff --git a/WechatBot/node_modules/@types/node/globals.global.d.ts b/WechatBot/node_modules/@types/node/globals.global.d.ts deleted file mode 100644 index ef1198c05..000000000 --- a/WechatBot/node_modules/@types/node/globals.global.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare var global: typeof globalThis; diff --git a/WechatBot/node_modules/@types/node/http.d.ts b/WechatBot/node_modules/@types/node/http.d.ts deleted file mode 100644 index 4f0125318..000000000 --- a/WechatBot/node_modules/@types/node/http.d.ts +++ /dev/null @@ -1,1358 +0,0 @@ -/** - * To use the HTTP server and client one must `require('http')`. - * - * The HTTP interfaces in Node.js are designed to support many features - * of the protocol which have been traditionally difficult to use. - * In particular, large, possibly chunk-encoded, messages. The interface is - * careful to never buffer entire requests or responses, so the - * user is able to stream data. - * - * HTTP message headers are represented by an object like this: - * - * ```js - * { 'content-length': '123', - * 'content-type': 'text/plain', - * 'connection': 'keep-alive', - * 'host': 'mysite.com', - * 'accept': '*' } - * ``` - * - * Keys are lowercased. Values are not modified. - * - * In order to support the full spectrum of possible HTTP applications, the Node.js - * HTTP API is very low-level. It deals with stream handling and message - * parsing only. It parses a message into headers and body but it does not - * parse the actual headers or the body. - * - * See `message.headers` for details on how duplicate headers are handled. - * - * The raw headers as they were received are retained in the `rawHeaders`property, which is an array of `[key, value, key2, value2, ...]`. For - * example, the previous message header object might have a `rawHeaders`list like the following: - * - * ```js - * [ 'ConTent-Length', '123456', - * 'content-LENGTH', '123', - * 'content-type', 'text/plain', - * 'CONNECTION', 'keep-alive', - * 'Host', 'mysite.com', - * 'accepT', '*' ] - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/http.js) - */ -declare module 'http' { - import * as stream from 'node:stream'; - import { URL } from 'node:url'; - import { Socket, Server as NetServer } from 'node:net'; - // incoming headers will never contain number - interface IncomingHttpHeaders extends NodeJS.Dict { - accept?: string | undefined; - 'accept-language'?: string | undefined; - 'accept-patch'?: string | undefined; - 'accept-ranges'?: string | undefined; - 'access-control-allow-credentials'?: string | undefined; - 'access-control-allow-headers'?: string | undefined; - 'access-control-allow-methods'?: string | undefined; - 'access-control-allow-origin'?: string | undefined; - 'access-control-expose-headers'?: string | undefined; - 'access-control-max-age'?: string | undefined; - 'access-control-request-headers'?: string | undefined; - 'access-control-request-method'?: string | undefined; - age?: string | undefined; - allow?: string | undefined; - 'alt-svc'?: string | undefined; - authorization?: string | undefined; - 'cache-control'?: string | undefined; - connection?: string | undefined; - 'content-disposition'?: string | undefined; - 'content-encoding'?: string | undefined; - 'content-language'?: string | undefined; - 'content-length'?: string | undefined; - 'content-location'?: string | undefined; - 'content-range'?: string | undefined; - 'content-type'?: string | undefined; - cookie?: string | undefined; - date?: string | undefined; - etag?: string | undefined; - expect?: string | undefined; - expires?: string | undefined; - forwarded?: string | undefined; - from?: string | undefined; - host?: string | undefined; - 'if-match'?: string | undefined; - 'if-modified-since'?: string | undefined; - 'if-none-match'?: string | undefined; - 'if-unmodified-since'?: string | undefined; - 'last-modified'?: string | undefined; - location?: string | undefined; - origin?: string | undefined; - pragma?: string | undefined; - 'proxy-authenticate'?: string | undefined; - 'proxy-authorization'?: string | undefined; - 'public-key-pins'?: string | undefined; - range?: string | undefined; - referer?: string | undefined; - 'retry-after'?: string | undefined; - 'sec-websocket-accept'?: string | undefined; - 'sec-websocket-extensions'?: string | undefined; - 'sec-websocket-key'?: string | undefined; - 'sec-websocket-protocol'?: string | undefined; - 'sec-websocket-version'?: string | undefined; - 'set-cookie'?: string[] | undefined; - 'strict-transport-security'?: string | undefined; - tk?: string | undefined; - trailer?: string | undefined; - 'transfer-encoding'?: string | undefined; - upgrade?: string | undefined; - 'user-agent'?: string | undefined; - vary?: string | undefined; - via?: string | undefined; - warning?: string | undefined; - 'www-authenticate'?: string | undefined; - } - // outgoing headers allows numbers (as they are converted internally to strings) - type OutgoingHttpHeader = number | string | string[]; - interface OutgoingHttpHeaders extends NodeJS.Dict {} - interface ClientRequestArgs { - abort?: AbortSignal | undefined; - protocol?: string | null | undefined; - host?: string | null | undefined; - hostname?: string | null | undefined; - family?: number | undefined; - port?: number | string | null | undefined; - defaultPort?: number | string | undefined; - localAddress?: string | undefined; - socketPath?: string | undefined; - /** - * @default 8192 - */ - maxHeaderSize?: number | undefined; - method?: string | undefined; - path?: string | null | undefined; - headers?: OutgoingHttpHeaders | undefined; - auth?: string | null | undefined; - agent?: Agent | boolean | undefined; - _defaultAgent?: Agent | undefined; - timeout?: number | undefined; - setHost?: boolean | undefined; - // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278 - createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined; - } - interface ServerOptions { - IncomingMessage?: typeof IncomingMessage | undefined; - ServerResponse?: typeof ServerResponse | undefined; - /** - * Optionally overrides the value of - * `--max-http-header-size` for requests received by this server, i.e. - * the maximum length of request headers in bytes. - * @default 8192 - */ - maxHeaderSize?: number | undefined; - /** - * Use an insecure HTTP parser that accepts invalid HTTP headers when true. - * Using the insecure parser should be avoided. - * See --insecure-http-parser for more information. - * @default false - */ - insecureHTTPParser?: boolean | undefined; - } - type RequestListener = (req: IncomingMessage, res: ServerResponse) => void; - /** - * @since v0.1.17 - */ - class Server extends NetServer { - constructor(requestListener?: RequestListener); - constructor(options: ServerOptions, requestListener?: RequestListener); - /** - * Sets the timeout value for sockets, and emits a `'timeout'` event on - * the Server object, passing the socket as an argument, if a timeout - * occurs. - * - * If there is a `'timeout'` event listener on the Server object, then it - * will be called with the timed-out socket as an argument. - * - * By default, the Server does not timeout sockets. However, if a callback - * is assigned to the Server's `'timeout'` event, timeouts must be handled - * explicitly. - * @since v0.9.12 - * @param [msecs=0 (no timeout)] - */ - setTimeout(msecs?: number, callback?: () => void): this; - setTimeout(callback: () => void): this; - /** - * Limits maximum incoming headers count. If set to 0, no limit will be applied. - * @since v0.7.0 - */ - maxHeadersCount: number | null; - /** - * The number of milliseconds of inactivity before a socket is presumed - * to have timed out. - * - * A value of `0` will disable the timeout behavior on incoming connections. - * - * The socket timeout logic is set up on connection, so changing this - * value only affects new connections to the server, not any existing connections. - * @since v0.9.12 - */ - timeout: number; - /** - * Limit the amount of time the parser will wait to receive the complete HTTP - * headers. - * - * In case of inactivity, the rules defined in `server.timeout` apply. However, - * that inactivity based timeout would still allow the connection to be kept open - * if the headers are being sent very slowly (by default, up to a byte per 2 - * minutes). In order to prevent this, whenever header data arrives an additional - * check is made that more than `server.headersTimeout` milliseconds has not - * passed since the connection was established. If the check fails, a `'timeout'`event is emitted on the server object, and (by default) the socket is destroyed. - * See `server.timeout` for more information on how timeout behavior can be - * customized. - * @since v11.3.0, v10.14.0 - */ - headersTimeout: number; - /** - * The number of milliseconds of inactivity a server needs to wait for additional - * incoming data, after it has finished writing the last response, before a socket - * will be destroyed. If the server receives new data before the keep-alive - * timeout has fired, it will reset the regular inactivity timeout, i.e.,`server.timeout`. - * - * A value of `0` will disable the keep-alive timeout behavior on incoming - * connections. - * A value of `0` makes the http server behave similarly to Node.js versions prior - * to 8.0.0, which did not have a keep-alive timeout. - * - * The socket timeout logic is set up on connection, so changing this value only - * affects new connections to the server, not any existing connections. - * @since v8.0.0 - */ - keepAliveTimeout: number; - /** - * Sets the timeout value in milliseconds for receiving the entire request from - * the client. - * - * If the timeout expires, the server responds with status 408 without - * forwarding the request to the request listener and then closes the connection. - * - * It must be set to a non-zero value (e.g. 120 seconds) to protect against - * potential Denial-of-Service attacks in case the server is deployed without a - * reverse proxy in front. - * @since v14.11.0 - */ - requestTimeout: number; - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'close', listener: () => void): this; - addListener(event: 'connection', listener: (socket: Socket) => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'listening', listener: () => void): this; - addListener(event: 'checkContinue', listener: RequestListener): this; - addListener(event: 'checkExpectation', listener: RequestListener): this; - addListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; - addListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; - addListener(event: 'request', listener: RequestListener): this; - addListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; - emit(event: string, ...args: any[]): boolean; - emit(event: 'close'): boolean; - emit(event: 'connection', socket: Socket): boolean; - emit(event: 'error', err: Error): boolean; - emit(event: 'listening'): boolean; - emit(event: 'checkContinue', req: IncomingMessage, res: ServerResponse): boolean; - emit(event: 'checkExpectation', req: IncomingMessage, res: ServerResponse): boolean; - emit(event: 'clientError', err: Error, socket: stream.Duplex): boolean; - emit(event: 'connect', req: IncomingMessage, socket: stream.Duplex, head: Buffer): boolean; - emit(event: 'request', req: IncomingMessage, res: ServerResponse): boolean; - emit(event: 'upgrade', req: IncomingMessage, socket: stream.Duplex, head: Buffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'connection', listener: (socket: Socket) => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'listening', listener: () => void): this; - on(event: 'checkContinue', listener: RequestListener): this; - on(event: 'checkExpectation', listener: RequestListener): this; - on(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; - on(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; - on(event: 'request', listener: RequestListener): this; - on(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'connection', listener: (socket: Socket) => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'listening', listener: () => void): this; - once(event: 'checkContinue', listener: RequestListener): this; - once(event: 'checkExpectation', listener: RequestListener): this; - once(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; - once(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; - once(event: 'request', listener: RequestListener): this; - once(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'connection', listener: (socket: Socket) => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'listening', listener: () => void): this; - prependListener(event: 'checkContinue', listener: RequestListener): this; - prependListener(event: 'checkExpectation', listener: RequestListener): this; - prependListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; - prependListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; - prependListener(event: 'request', listener: RequestListener): this; - prependListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'listening', listener: () => void): this; - prependOnceListener(event: 'checkContinue', listener: RequestListener): this; - prependOnceListener(event: 'checkExpectation', listener: RequestListener): this; - prependOnceListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; - prependOnceListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; - prependOnceListener(event: 'request', listener: RequestListener): this; - prependOnceListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; - } - /** - * This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract of outgoing message from - * the perspective of the participants of HTTP transaction. - * @since v0.1.17 - */ - class OutgoingMessage extends stream.Writable { - readonly req: IncomingMessage; - chunkedEncoding: boolean; - shouldKeepAlive: boolean; - useChunkedEncodingByDefault: boolean; - sendDate: boolean; - /** - * @deprecated Use `writableEnded` instead. - */ - finished: boolean; - /** - * Read-only. `true` if the headers were sent, otherwise `false`. - * @since v0.9.3 - */ - readonly headersSent: boolean; - /** - * Aliases of `outgoingMessage.socket` - * @since v0.3.0 - * @deprecated Since v15.12.0 - Use `socket` instead. - */ - readonly connection: Socket | null; - /** - * Reference to the underlying socket. Usually, users will not want to access - * this property. - * - * After calling `outgoingMessage.end()`, this property will be nulled. - * @since v0.3.0 - */ - readonly socket: Socket | null; - constructor(); - /** - * occurs, Same as binding to the `timeout` event. - * - * Once a socket is associated with the message and is connected,`socket.setTimeout()` will be called with `msecs` as the first parameter. - * @since v0.9.12 - * @param callback Optional function to be called when a timeout - */ - setTimeout(msecs: number, callback?: () => void): this; - /** - * Sets a single header value for the header object. - * @since v0.4.0 - * @param name Header name - * @param value Header value - */ - setHeader(name: string, value: number | string | ReadonlyArray): this; - /** - * Gets the value of HTTP header with the given name. If such a name doesn't - * exist in message, it will be `undefined`. - * @since v0.4.0 - * @param name Name of header - */ - getHeader(name: string): number | string | string[] | undefined; - /** - * Returns a shallow copy of the current outgoing headers. Since a shallow - * copy is used, array values may be mutated without additional calls to - * various header-related HTTP module methods. The keys of the returned - * object are the header names and the values are the respective header - * values. All header names are lowercase. - * - * The object returned by the `outgoingMessage.getHeaders()` method does - * not prototypically inherit from the JavaScript Object. This means that - * typical Object methods such as `obj.toString()`, `obj.hasOwnProperty()`, - * and others are not defined and will not work. - * - * ```js - * outgoingMessage.setHeader('Foo', 'bar'); - * outgoingMessage.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headers = outgoingMessage.getHeaders(); - * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } - * ``` - * @since v8.0.0 - */ - getHeaders(): OutgoingHttpHeaders; - /** - * Returns an array of names of headers of the outgoing outgoingMessage. All - * names are lowercase. - * @since v8.0.0 - */ - getHeaderNames(): string[]; - /** - * Returns `true` if the header identified by `name` is currently set in the - * outgoing headers. The header name is case-insensitive. - * - * ```js - * const hasContentType = outgoingMessage.hasHeader('content-type'); - * ``` - * @since v8.0.0 - */ - hasHeader(name: string): boolean; - /** - * Removes a header that is queued for implicit sending. - * - * ```js - * outgoingMessage.removeHeader('Content-Encoding'); - * ``` - * @since v0.4.0 - */ - removeHeader(name: string): void; - /** - * Adds HTTP trailers (headers but at the end of the message) to the message. - * - * Trailers are **only** be emitted if the message is chunked encoded. If not, - * the trailer will be silently discarded. - * - * HTTP requires the `Trailer` header to be sent to emit trailers, - * with a list of header fields in its value, e.g. - * - * ```js - * message.writeHead(200, { 'Content-Type': 'text/plain', - * 'Trailer': 'Content-MD5' }); - * message.write(fileData); - * message.addTrailers({ 'Content-MD5': '7895bf4b8828b55ceaf47747b4bca667' }); - * message.end(); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v0.3.0 - */ - addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void; - /** - * Compulsorily flushes the message headers - * - * For efficiency reason, Node.js normally buffers the message headers - * until `outgoingMessage.end()` is called or the first chunk of message data - * is written. It then tries to pack the headers and data into a single TCP - * packet. - * - * It is usually desired (it saves a TCP round-trip), but not when the first - * data is not sent until possibly much later. `outgoingMessage.flushHeaders()`bypasses the optimization and kickstarts the request. - * @since v1.6.0 - */ - flushHeaders(): void; - } - /** - * This object is created internally by an HTTP server, not by the user. It is - * passed as the second parameter to the `'request'` event. - * @since v0.1.17 - */ - class ServerResponse extends OutgoingMessage { - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status code that will be sent to the client when - * the headers get flushed. - * - * ```js - * response.statusCode = 404; - * ``` - * - * After response header was sent to the client, this property indicates the - * status code which was sent out. - * @since v0.4.0 - */ - statusCode: number; - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status message that will be sent to the client when - * the headers get flushed. If this is left as `undefined` then the standard - * message for the status code will be used. - * - * ```js - * response.statusMessage = 'Not found'; - * ``` - * - * After response header was sent to the client, this property indicates the - * status message which was sent out. - * @since v0.11.8 - */ - statusMessage: string; - constructor(req: IncomingMessage); - assignSocket(socket: Socket): void; - detachSocket(socket: Socket): void; - /** - * Sends a HTTP/1.1 100 Continue message to the client, indicating that - * the request body should be sent. See the `'checkContinue'` event on`Server`. - * @since v0.3.0 - */ - writeContinue(callback?: () => void): void; - /** - * Sends a response header to the request. The status code is a 3-digit HTTP - * status code, like `404`. The last argument, `headers`, are the response headers. - * Optionally one can give a human-readable `statusMessage` as the second - * argument. - * - * `headers` may be an `Array` where the keys and values are in the same list. - * It is _not_ a list of tuples. So, the even-numbered offsets are key values, - * and the odd-numbered offsets are the associated values. The array is in the same - * format as `request.rawHeaders`. - * - * Returns a reference to the `ServerResponse`, so that calls can be chained. - * - * ```js - * const body = 'hello world'; - * response - * .writeHead(200, { - * 'Content-Length': Buffer.byteLength(body), - * 'Content-Type': 'text/plain' - * }) - * .end(body); - * ``` - * - * This method must only be called once on a message and it must - * be called before `response.end()` is called. - * - * If `response.write()` or `response.end()` are called before calling - * this, the implicit/mutable headers will be calculated and call this function. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * If this method is called and `response.setHeader()` has not been called, - * it will directly write the supplied header values onto the network channel - * without caching internally, and the `response.getHeader()` on the header - * will not yield the expected result. If progressive population of headers is - * desired with potential future retrieval and modification, use `response.setHeader()` instead. - * - * ```js - * // Returns content-type = text/plain - * const server = http.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain' }); - * res.end('ok'); - * }); - * ``` - * - * `Content-Length` is given in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. Node.js - * does not check whether `Content-Length` and the length of the body which has - * been transmitted are equal or not. - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v0.1.30 - */ - writeHead(statusCode: number, statusMessage?: string, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this; - writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this; - /** - * Sends a HTTP/1.1 102 Processing message to the client, indicating that - * the request body should be sent. - * @since v10.0.0 - */ - writeProcessing(): void; - } - interface InformationEvent { - statusCode: number; - statusMessage: string; - httpVersion: string; - httpVersionMajor: number; - httpVersionMinor: number; - headers: IncomingHttpHeaders; - rawHeaders: string[]; - } - /** - * This object is created internally and returned from {@link request}. It - * represents an _in-progress_ request whose header has already been queued. The - * header is still mutable using the `setHeader(name, value)`,`getHeader(name)`, `removeHeader(name)` API. The actual header will - * be sent along with the first data chunk or when calling `request.end()`. - * - * To get the response, add a listener for `'response'` to the request object.`'response'` will be emitted from the request object when the response - * headers have been received. The `'response'` event is executed with one - * argument which is an instance of {@link IncomingMessage}. - * - * During the `'response'` event, one can add listeners to the - * response object; particularly to listen for the `'data'` event. - * - * If no `'response'` handler is added, then the response will be - * entirely discarded. However, if a `'response'` event handler is added, - * then the data from the response object **must** be consumed, either by - * calling `response.read()` whenever there is a `'readable'` event, or - * by adding a `'data'` handler, or by calling the `.resume()` method. - * Until the data is consumed, the `'end'` event will not fire. Also, until - * the data is read it will consume memory that can eventually lead to a - * 'process out of memory' error. - * - * For backward compatibility, `res` will only emit `'error'` if there is an`'error'` listener registered. - * - * Node.js does not check whether Content-Length and the length of the - * body which has been transmitted are equal or not. - * @since v0.1.17 - */ - class ClientRequest extends OutgoingMessage { - /** - * The `request.aborted` property will be `true` if the request has - * been aborted. - * @since v0.11.14 - */ - aborted: boolean; - /** - * The request host. - * @since v14.5.0, v12.19.0 - */ - host: string; - /** - * The request protocol. - * @since v14.5.0, v12.19.0 - */ - protocol: string; - constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void); - /** - * The request method. - * @since v0.1.97 - */ - method: string; - /** - * The request path. - * @since v0.4.0 - */ - path: string; - /** - * Marks the request as aborting. Calling this will cause remaining data - * in the response to be dropped and the socket to be destroyed. - * @since v0.3.8 - * @deprecated Since v14.1.0,v13.14.0 - Use `destroy` instead. - */ - abort(): void; - onSocket(socket: Socket): void; - /** - * Once a socket is assigned to this request and is connected `socket.setTimeout()` will be called. - * @since v0.5.9 - * @param timeout Milliseconds before a request times out. - * @param callback Optional function to be called when a timeout occurs. Same as binding to the `'timeout'` event. - */ - setTimeout(timeout: number, callback?: () => void): this; - /** - * Once a socket is assigned to this request and is connected `socket.setNoDelay()` will be called. - * @since v0.5.9 - */ - setNoDelay(noDelay?: boolean): void; - /** - * Once a socket is assigned to this request and is connected `socket.setKeepAlive()` will be called. - * @since v0.5.9 - */ - setSocketKeepAlive(enable?: boolean, initialDelay?: number): void; - /** - * Returns an array containing the unique names of the current outgoing raw - * headers. Header names are returned with their exact casing being set. - * - * ```js - * request.setHeader('Foo', 'bar'); - * request.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headerNames = request.getRawHeaderNames(); - * // headerNames === ['Foo', 'Set-Cookie'] - * ``` - * @since v15.13.0 - */ - getRawHeaderNames(): string[]; - addListener(event: 'abort', listener: () => void): this; - addListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; - addListener(event: 'continue', listener: () => void): this; - addListener(event: 'information', listener: (info: InformationEvent) => void): this; - addListener(event: 'response', listener: (response: IncomingMessage) => void): this; - addListener(event: 'socket', listener: (socket: Socket) => void): this; - addListener(event: 'timeout', listener: () => void): this; - addListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; - addListener(event: 'close', listener: () => void): this; - addListener(event: 'drain', listener: () => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'finish', listener: () => void): this; - addListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - on(event: 'abort', listener: () => void): this; - on(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; - on(event: 'continue', listener: () => void): this; - on(event: 'information', listener: (info: InformationEvent) => void): this; - on(event: 'response', listener: (response: IncomingMessage) => void): this; - on(event: 'socket', listener: (socket: Socket) => void): this; - on(event: 'timeout', listener: () => void): this; - on(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'drain', listener: () => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'finish', listener: () => void): this; - on(event: 'pipe', listener: (src: stream.Readable) => void): this; - on(event: 'unpipe', listener: (src: stream.Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'abort', listener: () => void): this; - once(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; - once(event: 'continue', listener: () => void): this; - once(event: 'information', listener: (info: InformationEvent) => void): this; - once(event: 'response', listener: (response: IncomingMessage) => void): this; - once(event: 'socket', listener: (socket: Socket) => void): this; - once(event: 'timeout', listener: () => void): this; - once(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'drain', listener: () => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'finish', listener: () => void): this; - once(event: 'pipe', listener: (src: stream.Readable) => void): this; - once(event: 'unpipe', listener: (src: stream.Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'abort', listener: () => void): this; - prependListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; - prependListener(event: 'continue', listener: () => void): this; - prependListener(event: 'information', listener: (info: InformationEvent) => void): this; - prependListener(event: 'response', listener: (response: IncomingMessage) => void): this; - prependListener(event: 'socket', listener: (socket: Socket) => void): this; - prependListener(event: 'timeout', listener: () => void): this; - prependListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'drain', listener: () => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'finish', listener: () => void): this; - prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'abort', listener: () => void): this; - prependOnceListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; - prependOnceListener(event: 'continue', listener: () => void): this; - prependOnceListener(event: 'information', listener: (info: InformationEvent) => void): this; - prependOnceListener(event: 'response', listener: (response: IncomingMessage) => void): this; - prependOnceListener(event: 'socket', listener: (socket: Socket) => void): this; - prependOnceListener(event: 'timeout', listener: () => void): this; - prependOnceListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'drain', listener: () => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'finish', listener: () => void): this; - prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * An `IncomingMessage` object is created by {@link Server} or {@link ClientRequest} and passed as the first argument to the `'request'` and `'response'` event respectively. It may be used to - * access response - * status, headers and data. - * - * Different from its `socket` value which is a subclass of `stream.Duplex`, the`IncomingMessage` itself extends `stream.Readable` and is created separately to - * parse and emit the incoming HTTP headers and payload, as the underlying socket - * may be reused multiple times in case of keep-alive. - * @since v0.1.17 - */ - class IncomingMessage extends stream.Readable { - constructor(socket: Socket); - /** - * The `message.aborted` property will be `true` if the request has - * been aborted. - * @since v10.1.0 - */ - aborted: boolean; - /** - * In case of server request, the HTTP version sent by the client. In the case of - * client response, the HTTP version of the connected-to server. - * Probably either `'1.1'` or `'1.0'`. - * - * Also `message.httpVersionMajor` is the first integer and`message.httpVersionMinor` is the second. - * @since v0.1.1 - */ - httpVersion: string; - httpVersionMajor: number; - httpVersionMinor: number; - /** - * The `message.complete` property will be `true` if a complete HTTP message has - * been received and successfully parsed. - * - * This property is particularly useful as a means of determining if a client or - * server fully transmitted a message before a connection was terminated: - * - * ```js - * const req = http.request({ - * host: '127.0.0.1', - * port: 8080, - * method: 'POST' - * }, (res) => { - * res.resume(); - * res.on('end', () => { - * if (!res.complete) - * console.error( - * 'The connection was terminated while the message was still being sent'); - * }); - * }); - * ``` - * @since v0.3.0 - */ - complete: boolean; - /** - * Alias for `message.socket`. - * @since v0.1.90 - * @deprecated Since v16.0.0 - Use `socket`. - */ - connection: Socket; - /** - * The `net.Socket` object associated with the connection. - * - * With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the - * client's authentication details. - * - * This property is guaranteed to be an instance of the `net.Socket` class, - * a subclass of `stream.Duplex`, unless the user specified a socket - * type other than `net.Socket`. - * @since v0.3.0 - */ - socket: Socket; - /** - * The request/response headers object. - * - * Key-value pairs of header names and values. Header names are lower-cased. - * - * ```js - * // Prints something like: - * // - * // { 'user-agent': 'curl/7.22.0', - * // host: '127.0.0.1:8000', - * // accept: '*' } - * console.log(request.headers); - * ``` - * - * Duplicates in raw headers are handled in the following ways, depending on the - * header name: - * - * * Duplicates of `age`, `authorization`, `content-length`, `content-type`,`etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`,`last-modified`, `location`, - * `max-forwards`, `proxy-authorization`, `referer`,`retry-after`, `server`, or `user-agent` are discarded. - * * `set-cookie` is always an array. Duplicates are added to the array. - * * For duplicate `cookie` headers, the values are joined together with '; '. - * * For all other headers, the values are joined together with ', '. - * @since v0.1.5 - */ - headers: IncomingHttpHeaders; - /** - * The raw request/response headers list exactly as they were received. - * - * The keys and values are in the same list. It is _not_ a - * list of tuples. So, the even-numbered offsets are key values, and the - * odd-numbered offsets are the associated values. - * - * Header names are not lowercased, and duplicates are not merged. - * - * ```js - * // Prints something like: - * // - * // [ 'user-agent', - * // 'this is invalid because there can be only one', - * // 'User-Agent', - * // 'curl/7.22.0', - * // 'Host', - * // '127.0.0.1:8000', - * // 'ACCEPT', - * // '*' ] - * console.log(request.rawHeaders); - * ``` - * @since v0.11.6 - */ - rawHeaders: string[]; - /** - * The request/response trailers object. Only populated at the `'end'` event. - * @since v0.3.0 - */ - trailers: NodeJS.Dict; - /** - * The raw request/response trailer keys and values exactly as they were - * received. Only populated at the `'end'` event. - * @since v0.11.6 - */ - rawTrailers: string[]; - /** - * Calls `message.socket.setTimeout(msecs, callback)`. - * @since v0.5.9 - */ - setTimeout(msecs: number, callback?: () => void): this; - /** - * **Only valid for request obtained from {@link Server}.** - * - * The request method as a string. Read only. Examples: `'GET'`, `'DELETE'`. - * @since v0.1.1 - */ - method?: string | undefined; - /** - * **Only valid for request obtained from {@link Server}.** - * - * Request URL string. This contains only the URL that is present in the actual - * HTTP request. Take the following request: - * - * ```http - * GET /status?name=ryan HTTP/1.1 - * Accept: text/plain - * ``` - * - * To parse the URL into its parts: - * - * ```js - * new URL(request.url, `http://${request.headers.host}`); - * ``` - * - * When `request.url` is `'/status?name=ryan'` and`request.headers.host` is `'localhost:3000'`: - * - * ```console - * $ node - * > new URL(request.url, `http://${request.headers.host}`) - * URL { - * href: 'http://localhost:3000/status?name=ryan', - * origin: 'http://localhost:3000', - * protocol: 'http:', - * username: '', - * password: '', - * host: 'localhost:3000', - * hostname: 'localhost', - * port: '3000', - * pathname: '/status', - * search: '?name=ryan', - * searchParams: URLSearchParams { 'name' => 'ryan' }, - * hash: '' - * } - * ``` - * @since v0.1.90 - */ - url?: string | undefined; - /** - * **Only valid for response obtained from {@link ClientRequest}.** - * - * The 3-digit HTTP response status code. E.G. `404`. - * @since v0.1.1 - */ - statusCode?: number | undefined; - /** - * **Only valid for response obtained from {@link ClientRequest}.** - * - * The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server Error`. - * @since v0.11.10 - */ - statusMessage?: string | undefined; - /** - * Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`is provided, an `'error'` event is emitted on the socket and `error` is passed - * as an argument to any listeners on the event. - * @since v0.3.0 - */ - destroy(error?: Error): void; - } - interface AgentOptions { - /** - * Keep sockets around in a pool to be used by other requests in the future. Default = false - */ - keepAlive?: boolean | undefined; - /** - * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000. - * Only relevant if keepAlive is set to true. - */ - keepAliveMsecs?: number | undefined; - /** - * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity - */ - maxSockets?: number | undefined; - /** - * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity. - */ - maxTotalSockets?: number | undefined; - /** - * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256. - */ - maxFreeSockets?: number | undefined; - /** - * Socket timeout in milliseconds. This will set the timeout after the socket is connected. - */ - timeout?: number | undefined; - /** - * Scheduling strategy to apply when picking the next free socket to use. - * @default `lifo` - */ - scheduling?: 'fifo' | 'lifo' | undefined; - } - /** - * An `Agent` is responsible for managing connection persistence - * and reuse for HTTP clients. It maintains a queue of pending requests - * for a given host and port, reusing a single socket connection for each - * until the queue is empty, at which time the socket is either destroyed - * or put into a pool where it is kept to be used again for requests to the - * same host and port. Whether it is destroyed or pooled depends on the`keepAlive` `option`. - * - * Pooled connections have TCP Keep-Alive enabled for them, but servers may - * still close idle connections, in which case they will be removed from the - * pool and a new connection will be made when a new HTTP request is made for - * that host and port. Servers may also refuse to allow multiple requests - * over the same connection, in which case the connection will have to be - * remade for every request and cannot be pooled. The `Agent` will still make - * the requests to that server, but each one will occur over a new connection. - * - * When a connection is closed by the client or the server, it is removed - * from the pool. Any unused sockets in the pool will be unrefed so as not - * to keep the Node.js process running when there are no outstanding requests. - * (see `socket.unref()`). - * - * It is good practice, to `destroy()` an `Agent` instance when it is no - * longer in use, because unused sockets consume OS resources. - * - * Sockets are removed from an agent when the socket emits either - * a `'close'` event or an `'agentRemove'` event. When intending to keep one - * HTTP request open for a long time without keeping it in the agent, something - * like the following may be done: - * - * ```js - * http.get(options, (res) => { - * // Do stuff - * }).on('socket', (socket) => { - * socket.emit('agentRemove'); - * }); - * ``` - * - * An agent may also be used for an individual request. By providing`{agent: false}` as an option to the `http.get()` or `http.request()`functions, a one-time use `Agent` with default options - * will be used - * for the client connection. - * - * `agent:false`: - * - * ```js - * http.get({ - * hostname: 'localhost', - * port: 80, - * path: '/', - * agent: false // Create a new agent just for this one request - * }, (res) => { - * // Do stuff with response - * }); - * ``` - * @since v0.3.4 - */ - class Agent { - /** - * By default set to 256\. For agents with `keepAlive` enabled, this - * sets the maximum number of sockets that will be left open in the free - * state. - * @since v0.11.7 - */ - maxFreeSockets: number; - /** - * By default set to `Infinity`. Determines how many concurrent sockets the agent - * can have open per origin. Origin is the returned value of `agent.getName()`. - * @since v0.3.6 - */ - maxSockets: number; - /** - * By default set to `Infinity`. Determines how many concurrent sockets the agent - * can have open. Unlike `maxSockets`, this parameter applies across all origins. - * @since v14.5.0, v12.19.0 - */ - maxTotalSockets: number; - /** - * An object which contains arrays of sockets currently awaiting use by - * the agent when `keepAlive` is enabled. Do not modify. - * - * Sockets in the `freeSockets` list will be automatically destroyed and - * removed from the array on `'timeout'`. - * @since v0.11.4 - */ - readonly freeSockets: NodeJS.ReadOnlyDict; - /** - * An object which contains arrays of sockets currently in use by the - * agent. Do not modify. - * @since v0.3.6 - */ - readonly sockets: NodeJS.ReadOnlyDict; - /** - * An object which contains queues of requests that have not yet been assigned to - * sockets. Do not modify. - * @since v0.5.9 - */ - readonly requests: NodeJS.ReadOnlyDict; - constructor(opts?: AgentOptions); - /** - * Destroy any sockets that are currently in use by the agent. - * - * It is usually not necessary to do this. However, if using an - * agent with `keepAlive` enabled, then it is best to explicitly shut down - * the agent when it is no longer needed. Otherwise, - * sockets might stay open for quite a long time before the server - * terminates them. - * @since v0.11.4 - */ - destroy(): void; - } - const METHODS: string[]; - const STATUS_CODES: { - [errorCode: number]: string | undefined; - [errorCode: string]: string | undefined; - }; - /** - * Returns a new instance of {@link Server}. - * - * The `requestListener` is a function which is automatically - * added to the `'request'` event. - * @since v0.1.13 - */ - function createServer(requestListener?: RequestListener): Server; - function createServer(options: ServerOptions, requestListener?: RequestListener): Server; - // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly, - // create interface RequestOptions would make the naming more clear to developers - interface RequestOptions extends ClientRequestArgs {} - /** - * Node.js maintains several connections per server to make HTTP requests. - * This function allows one to transparently issue requests. - * - * `url` can be a string or a `URL` object. If `url` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * If both `url` and `options` are specified, the objects are merged, with the`options` properties taking precedence. - * - * The optional `callback` parameter will be added as a one-time listener for - * the `'response'` event. - * - * `http.request()` returns an instance of the {@link ClientRequest} class. The `ClientRequest` instance is a writable stream. If one needs to - * upload a file with a POST request, then write to the `ClientRequest` object. - * - * ```js - * const http = require('http'); - * - * const postData = JSON.stringify({ - * 'msg': 'Hello World!' - * }); - * - * const options = { - * hostname: 'www.google.com', - * port: 80, - * path: '/upload', - * method: 'POST', - * headers: { - * 'Content-Type': 'application/json', - * 'Content-Length': Buffer.byteLength(postData) - * } - * }; - * - * const req = http.request(options, (res) => { - * console.log(`STATUS: ${res.statusCode}`); - * console.log(`HEADERS: ${JSON.stringify(res.headers)}`); - * res.setEncoding('utf8'); - * res.on('data', (chunk) => { - * console.log(`BODY: ${chunk}`); - * }); - * res.on('end', () => { - * console.log('No more data in response.'); - * }); - * }); - * - * req.on('error', (e) => { - * console.error(`problem with request: ${e.message}`); - * }); - * - * // Write data to request body - * req.write(postData); - * req.end(); - * ``` - * - * In the example `req.end()` was called. With `http.request()` one - * must always call `req.end()` to signify the end of the request - - * even if there is no data being written to the request body. - * - * If any error is encountered during the request (be that with DNS resolution, - * TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted - * on the returned request object. As with all `'error'` events, if no listeners - * are registered the error will be thrown. - * - * There are a few special headers that should be noted. - * - * * Sending a 'Connection: keep-alive' will notify Node.js that the connection to - * the server should be persisted until the next request. - * * Sending a 'Content-Length' header will disable the default chunked encoding. - * * Sending an 'Expect' header will immediately send the request headers. - * Usually, when sending 'Expect: 100-continue', both a timeout and a listener - * for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more - * information. - * * Sending an Authorization header will override using the `auth` option - * to compute basic authentication. - * - * Example using a `URL` as `options`: - * - * ```js - * const options = new URL('http://abc:xyz@example.com'); - * - * const req = http.request(options, (res) => { - * // ... - * }); - * ``` - * - * In a successful request, the following events will be emitted in the following - * order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * (`'data'` will not be emitted at all if the response body is empty, for - * instance, in most redirects) - * * `'end'` on the `res` object - * * `'close'` - * - * In the case of a connection error, the following events will be emitted: - * - * * `'socket'` - * * `'error'` - * * `'close'` - * - * In the case of a premature connection close before the response is received, - * the following events will be emitted in the following order: - * - * * `'socket'` - * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'` - * * `'close'` - * - * In the case of a premature connection close after the response is received, - * the following events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (connection closed here) - * * `'aborted'` on the `res` object - * * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`. - * * `'close'` - * * `'close'` on the `res` object - * - * If `req.destroy()` is called before a socket is assigned, the following - * events will be emitted in the following order: - * - * * (`req.destroy()` called here) - * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'` - * * `'close'` - * - * If `req.destroy()` is called before the connection succeeds, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * (`req.destroy()` called here) - * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'` - * * `'close'` - * - * If `req.destroy()` is called after the response is received, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (`req.destroy()` called here) - * * `'aborted'` on the `res` object - * * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`. - * * `'close'` - * * `'close'` on the `res` object - * - * If `req.abort()` is called before a socket is assigned, the following - * events will be emitted in the following order: - * - * * (`req.abort()` called here) - * * `'abort'` - * * `'close'` - * - * If `req.abort()` is called before the connection succeeds, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * (`req.abort()` called here) - * * `'abort'` - * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'` - * * `'close'` - * - * If `req.abort()` is called after the response is received, the following - * events will be emitted in the following order: - * - * * `'socket'` - * * `'response'` - * * `'data'` any number of times, on the `res` object - * * (`req.abort()` called here) - * * `'abort'` - * * `'aborted'` on the `res` object - * * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`. - * * `'close'` - * * `'close'` on the `res` object - * - * Setting the `timeout` option or using the `setTimeout()` function will - * not abort the request or do anything besides add a `'timeout'` event. - * - * Passing an `AbortSignal` and then calling `abort` on the corresponding`AbortController` will behave the same way as calling `.destroy()` on the - * request itself. - * @since v0.3.6 - */ - function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; - function request(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; - /** - * Since most requests are GET requests without bodies, Node.js provides this - * convenience method. The only difference between this method and {@link request} is that it sets the method to GET and calls `req.end()`automatically. The callback must take care to consume the - * response - * data for reasons stated in {@link ClientRequest} section. - * - * The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}. - * - * JSON fetching example: - * - * ```js - * http.get('http://localhost:8000/', (res) => { - * const { statusCode } = res; - * const contentType = res.headers['content-type']; - * - * let error; - * // Any 2xx status code signals a successful response but - * // here we're only checking for 200. - * if (statusCode !== 200) { - * error = new Error('Request Failed.\n' + - * `Status Code: ${statusCode}`); - * } else if (!/^application\/json/.test(contentType)) { - * error = new Error('Invalid content-type.\n' + - * `Expected application/json but received ${contentType}`); - * } - * if (error) { - * console.error(error.message); - * // Consume response data to free up memory - * res.resume(); - * return; - * } - * - * res.setEncoding('utf8'); - * let rawData = ''; - * res.on('data', (chunk) => { rawData += chunk; }); - * res.on('end', () => { - * try { - * const parsedData = JSON.parse(rawData); - * console.log(parsedData); - * } catch (e) { - * console.error(e.message); - * } - * }); - * }).on('error', (e) => { - * console.error(`Got error: ${e.message}`); - * }); - * - * // Create a local server to receive data from - * const server = http.createServer((req, res) => { - * res.writeHead(200, { 'Content-Type': 'application/json' }); - * res.end(JSON.stringify({ - * data: 'Hello World!' - * })); - * }); - * - * server.listen(8000); - * ``` - * @since v0.3.6 - * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`. Properties that are inherited from the prototype are ignored. - */ - function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; - function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; - let globalAgent: Agent; - /** - * Read-only property specifying the maximum allowed size of HTTP headers in bytes. - * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option. - */ - const maxHeaderSize: number; -} -declare module 'node:http' { - export * from 'http'; -} diff --git a/WechatBot/node_modules/@types/node/http2.d.ts b/WechatBot/node_modules/@types/node/http2.d.ts deleted file mode 100644 index bf0ae2d42..000000000 --- a/WechatBot/node_modules/@types/node/http2.d.ts +++ /dev/null @@ -1,2100 +0,0 @@ -/** - * The `http2` module provides an implementation of the [HTTP/2](https://tools.ietf.org/html/rfc7540) protocol. It - * can be accessed using: - * - * ```js - * const http2 = require('http2'); - * ``` - * @since v8.4.0 - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/http2.js) - */ -declare module 'http2' { - import EventEmitter = require('node:events'); - import * as fs from 'node:fs'; - import * as net from 'node:net'; - import * as stream from 'node:stream'; - import * as tls from 'node:tls'; - import * as url from 'node:url'; - import { IncomingHttpHeaders as Http1IncomingHttpHeaders, OutgoingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http'; - export { OutgoingHttpHeaders } from 'node:http'; - export interface IncomingHttpStatusHeader { - ':status'?: number | undefined; - } - export interface IncomingHttpHeaders extends Http1IncomingHttpHeaders { - ':path'?: string | undefined; - ':method'?: string | undefined; - ':authority'?: string | undefined; - ':scheme'?: string | undefined; - } - // Http2Stream - export interface StreamPriorityOptions { - exclusive?: boolean | undefined; - parent?: number | undefined; - weight?: number | undefined; - silent?: boolean | undefined; - } - export interface StreamState { - localWindowSize?: number | undefined; - state?: number | undefined; - localClose?: number | undefined; - remoteClose?: number | undefined; - sumDependencyWeight?: number | undefined; - weight?: number | undefined; - } - export interface ServerStreamResponseOptions { - endStream?: boolean | undefined; - waitForTrailers?: boolean | undefined; - } - export interface StatOptions { - offset: number; - length: number; - } - export interface ServerStreamFileResponseOptions { - statCheck?(stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions): void | boolean; - waitForTrailers?: boolean | undefined; - offset?: number | undefined; - length?: number | undefined; - } - export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions { - onError?(err: NodeJS.ErrnoException): void; - } - export interface Http2Stream extends stream.Duplex { - /** - * Set to `true` if the `Http2Stream` instance was aborted abnormally. When set, - * the `'aborted'` event will have been emitted. - * @since v8.4.0 - */ - readonly aborted: boolean; - /** - * This property shows the number of characters currently buffered to be written. - * See `net.Socket.bufferSize` for details. - * @since v11.2.0, v10.16.0 - */ - readonly bufferSize: number; - /** - * Set to `true` if the `Http2Stream` instance has been closed. - * @since v9.4.0 - */ - readonly closed: boolean; - /** - * Set to `true` if the `Http2Stream` instance has been destroyed and is no longer - * usable. - * @since v8.4.0 - */ - readonly destroyed: boolean; - /** - * Set the `true` if the `END_STREAM` flag was set in the request or response - * HEADERS frame received, indicating that no additional data should be received - * and the readable side of the `Http2Stream` will be closed. - * @since v10.11.0 - */ - readonly endAfterHeaders: boolean; - /** - * The numeric stream identifier of this `Http2Stream` instance. Set to `undefined`if the stream identifier has not yet been assigned. - * @since v8.4.0 - */ - readonly id?: number | undefined; - /** - * Set to `true` if the `Http2Stream` instance has not yet been assigned a - * numeric stream identifier. - * @since v9.4.0 - */ - readonly pending: boolean; - /** - * Set to the `RST_STREAM` `error code` reported when the `Http2Stream` is - * destroyed after either receiving an `RST_STREAM` frame from the connected peer, - * calling `http2stream.close()`, or `http2stream.destroy()`. Will be`undefined` if the `Http2Stream` has not been closed. - * @since v8.4.0 - */ - readonly rstCode: number; - /** - * An object containing the outbound headers sent for this `Http2Stream`. - * @since v9.5.0 - */ - readonly sentHeaders: OutgoingHttpHeaders; - /** - * An array of objects containing the outbound informational (additional) headers - * sent for this `Http2Stream`. - * @since v9.5.0 - */ - readonly sentInfoHeaders?: OutgoingHttpHeaders[] | undefined; - /** - * An object containing the outbound trailers sent for this `HttpStream`. - * @since v9.5.0 - */ - readonly sentTrailers?: OutgoingHttpHeaders | undefined; - /** - * A reference to the `Http2Session` instance that owns this `Http2Stream`. The - * value will be `undefined` after the `Http2Stream` instance is destroyed. - * @since v8.4.0 - */ - readonly session: Http2Session; - /** - * Provides miscellaneous information about the current state of the`Http2Stream`. - * - * A current state of this `Http2Stream`. - * @since v8.4.0 - */ - readonly state: StreamState; - /** - * Closes the `Http2Stream` instance by sending an `RST_STREAM` frame to the - * connected HTTP/2 peer. - * @since v8.4.0 - * @param [code=http2.constants.NGHTTP2_NO_ERROR] Unsigned 32-bit integer identifying the error code. - * @param callback An optional function registered to listen for the `'close'` event. - */ - close(code?: number, callback?: () => void): void; - /** - * Updates the priority for this `Http2Stream` instance. - * @since v8.4.0 - */ - priority(options: StreamPriorityOptions): void; - /** - * ```js - * const http2 = require('http2'); - * const client = http2.connect('http://example.org:8000'); - * const { NGHTTP2_CANCEL } = http2.constants; - * const req = client.request({ ':path': '/' }); - * - * // Cancel the stream if there's no activity after 5 seconds - * req.setTimeout(5000, () => req.close(NGHTTP2_CANCEL)); - * ``` - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * Sends a trailing `HEADERS` frame to the connected HTTP/2 peer. This method - * will cause the `Http2Stream` to be immediately closed and must only be - * called after the `'wantTrailers'` event has been emitted. When sending a - * request or sending a response, the `options.waitForTrailers` option must be set - * in order to keep the `Http2Stream` open after the final `DATA` frame so that - * trailers can be sent. - * - * ```js - * const http2 = require('http2'); - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond(undefined, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ xyz: 'abc' }); - * }); - * stream.end('Hello World'); - * }); - * ``` - * - * The HTTP/1 specification forbids trailers from containing HTTP/2 pseudo-header - * fields (e.g. `':method'`, `':path'`, etc). - * @since v10.0.0 - */ - sendTrailers(headers: OutgoingHttpHeaders): void; - addListener(event: 'aborted', listener: () => void): this; - addListener(event: 'close', listener: () => void): this; - addListener(event: 'data', listener: (chunk: Buffer | string) => void): this; - addListener(event: 'drain', listener: () => void): this; - addListener(event: 'end', listener: () => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'finish', listener: () => void): this; - addListener(event: 'frameError', listener: (frameType: number, errorCode: number) => void): this; - addListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - addListener(event: 'streamClosed', listener: (code: number) => void): this; - addListener(event: 'timeout', listener: () => void): this; - addListener(event: 'trailers', listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - addListener(event: 'wantTrailers', listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: 'aborted'): boolean; - emit(event: 'close'): boolean; - emit(event: 'data', chunk: Buffer | string): boolean; - emit(event: 'drain'): boolean; - emit(event: 'end'): boolean; - emit(event: 'error', err: Error): boolean; - emit(event: 'finish'): boolean; - emit(event: 'frameError', frameType: number, errorCode: number): boolean; - emit(event: 'pipe', src: stream.Readable): boolean; - emit(event: 'unpipe', src: stream.Readable): boolean; - emit(event: 'streamClosed', code: number): boolean; - emit(event: 'timeout'): boolean; - emit(event: 'trailers', trailers: IncomingHttpHeaders, flags: number): boolean; - emit(event: 'wantTrailers'): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: 'aborted', listener: () => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'data', listener: (chunk: Buffer | string) => void): this; - on(event: 'drain', listener: () => void): this; - on(event: 'end', listener: () => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'finish', listener: () => void): this; - on(event: 'frameError', listener: (frameType: number, errorCode: number) => void): this; - on(event: 'pipe', listener: (src: stream.Readable) => void): this; - on(event: 'unpipe', listener: (src: stream.Readable) => void): this; - on(event: 'streamClosed', listener: (code: number) => void): this; - on(event: 'timeout', listener: () => void): this; - on(event: 'trailers', listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - on(event: 'wantTrailers', listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'aborted', listener: () => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'data', listener: (chunk: Buffer | string) => void): this; - once(event: 'drain', listener: () => void): this; - once(event: 'end', listener: () => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'finish', listener: () => void): this; - once(event: 'frameError', listener: (frameType: number, errorCode: number) => void): this; - once(event: 'pipe', listener: (src: stream.Readable) => void): this; - once(event: 'unpipe', listener: (src: stream.Readable) => void): this; - once(event: 'streamClosed', listener: (code: number) => void): this; - once(event: 'timeout', listener: () => void): this; - once(event: 'trailers', listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - once(event: 'wantTrailers', listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'aborted', listener: () => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'data', listener: (chunk: Buffer | string) => void): this; - prependListener(event: 'drain', listener: () => void): this; - prependListener(event: 'end', listener: () => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'finish', listener: () => void): this; - prependListener(event: 'frameError', listener: (frameType: number, errorCode: number) => void): this; - prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - prependListener(event: 'streamClosed', listener: (code: number) => void): this; - prependListener(event: 'timeout', listener: () => void): this; - prependListener(event: 'trailers', listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - prependListener(event: 'wantTrailers', listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'aborted', listener: () => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'data', listener: (chunk: Buffer | string) => void): this; - prependOnceListener(event: 'drain', listener: () => void): this; - prependOnceListener(event: 'end', listener: () => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'finish', listener: () => void): this; - prependOnceListener(event: 'frameError', listener: (frameType: number, errorCode: number) => void): this; - prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - prependOnceListener(event: 'streamClosed', listener: (code: number) => void): this; - prependOnceListener(event: 'timeout', listener: () => void): this; - prependOnceListener(event: 'trailers', listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; - prependOnceListener(event: 'wantTrailers', listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ClientHttp2Stream extends Http2Stream { - addListener(event: 'continue', listener: () => {}): this; - addListener(event: 'headers', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - addListener(event: 'push', listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - addListener(event: 'response', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: 'continue'): boolean; - emit(event: 'headers', headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; - emit(event: 'push', headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: 'response', headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: 'continue', listener: () => {}): this; - on(event: 'headers', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - on(event: 'push', listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - on(event: 'response', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'continue', listener: () => {}): this; - once(event: 'headers', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - once(event: 'push', listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - once(event: 'response', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'continue', listener: () => {}): this; - prependListener(event: 'headers', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - prependListener(event: 'push', listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - prependListener(event: 'response', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'continue', listener: () => {}): this; - prependOnceListener(event: 'headers', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - prependOnceListener(event: 'push', listener: (headers: IncomingHttpHeaders, flags: number) => void): this; - prependOnceListener(event: 'response', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ServerHttp2Stream extends Http2Stream { - /** - * True if headers were sent, false otherwise (read-only). - * @since v8.4.0 - */ - readonly headersSent: boolean; - /** - * Read-only property mapped to the `SETTINGS_ENABLE_PUSH` flag of the remote - * client's most recent `SETTINGS` frame. Will be `true` if the remote peer - * accepts push streams, `false` otherwise. Settings are the same for every`Http2Stream` in the same `Http2Session`. - * @since v8.4.0 - */ - readonly pushAllowed: boolean; - /** - * Sends an additional informational `HEADERS` frame to the connected HTTP/2 peer. - * @since v8.4.0 - */ - additionalHeaders(headers: OutgoingHttpHeaders): void; - /** - * Initiates a push stream. The callback is invoked with the new `Http2Stream`instance created for the push stream passed as the second argument, or an`Error` passed as the first argument. - * - * ```js - * const http2 = require('http2'); - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }); - * stream.pushStream({ ':path': '/' }, (err, pushStream, headers) => { - * if (err) throw err; - * pushStream.respond({ ':status': 200 }); - * pushStream.end('some pushed data'); - * }); - * stream.end('some data'); - * }); - * ``` - * - * Setting the weight of a push stream is not allowed in the `HEADERS` frame. Pass - * a `weight` value to `http2stream.priority` with the `silent` option set to`true` to enable server-side bandwidth balancing between concurrent streams. - * - * Calling `http2stream.pushStream()` from within a pushed stream is not permitted - * and will throw an error. - * @since v8.4.0 - * @param callback Callback that is called once the push stream has been initiated. - */ - pushStream(headers: OutgoingHttpHeaders, callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void): void; - pushStream(headers: OutgoingHttpHeaders, options?: StreamPriorityOptions, callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void): void; - /** - * ```js - * const http2 = require('http2'); - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }); - * stream.end('some data'); - * }); - * ``` - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be - * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing - * header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. - * - * ```js - * const http2 = require('http2'); - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respond({ ':status': 200 }, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * stream.end('some data'); - * }); - * ``` - * @since v8.4.0 - */ - respond(headers?: OutgoingHttpHeaders, options?: ServerStreamResponseOptions): void; - /** - * Initiates a response whose data is read from the given file descriptor. No - * validation is performed on the given file descriptor. If an error occurs while - * attempting to read data using the file descriptor, the `Http2Stream` will be - * closed using an `RST_STREAM` frame using the standard `INTERNAL_ERROR` code. - * - * When used, the `Http2Stream` object's `Duplex` interface will be closed - * automatically. - * - * ```js - * const http2 = require('http2'); - * const fs = require('fs'); - * - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * const fd = fs.openSync('/some/file', 'r'); - * - * const stat = fs.fstatSync(fd); - * const headers = { - * 'content-length': stat.size, - * 'last-modified': stat.mtime.toUTCString(), - * 'content-type': 'text/plain; charset=utf-8' - * }; - * stream.respondWithFD(fd, headers); - * stream.on('close', () => fs.closeSync(fd)); - * }); - * ``` - * - * The optional `options.statCheck` function may be specified to give user code - * an opportunity to set additional content headers based on the `fs.Stat` details - * of the given fd. If the `statCheck` function is provided, the`http2stream.respondWithFD()` method will perform an `fs.fstat()` call to - * collect details on the provided file descriptor. - * - * The `offset` and `length` options may be used to limit the response to a - * specific range subset. This can be used, for instance, to support HTTP Range - * requests. - * - * The file descriptor or `FileHandle` is not closed when the stream is closed, - * so it will need to be closed manually once it is no longer needed. - * Using the same file descriptor concurrently for multiple streams - * is not supported and may result in data loss. Re-using a file descriptor - * after a stream has finished is supported. - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be - * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing - * header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code _must_ call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. - * - * ```js - * const http2 = require('http2'); - * const fs = require('fs'); - * - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * const fd = fs.openSync('/some/file', 'r'); - * - * const stat = fs.fstatSync(fd); - * const headers = { - * 'content-length': stat.size, - * 'last-modified': stat.mtime.toUTCString(), - * 'content-type': 'text/plain; charset=utf-8' - * }; - * stream.respondWithFD(fd, headers, { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * - * stream.on('close', () => fs.closeSync(fd)); - * }); - * ``` - * @since v8.4.0 - * @param fd A readable file descriptor. - */ - respondWithFD(fd: number | fs.promises.FileHandle, headers?: OutgoingHttpHeaders, options?: ServerStreamFileResponseOptions): void; - /** - * Sends a regular file as the response. The `path` must specify a regular file - * or an `'error'` event will be emitted on the `Http2Stream` object. - * - * When used, the `Http2Stream` object's `Duplex` interface will be closed - * automatically. - * - * The optional `options.statCheck` function may be specified to give user code - * an opportunity to set additional content headers based on the `fs.Stat` details - * of the given file: - * - * If an error occurs while attempting to read the file data, the `Http2Stream`will be closed using an `RST_STREAM` frame using the standard `INTERNAL_ERROR`code. If the `onError` callback is - * defined, then it will be called. Otherwise - * the stream will be destroyed. - * - * Example using a file path: - * - * ```js - * const http2 = require('http2'); - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * function statCheck(stat, headers) { - * headers['last-modified'] = stat.mtime.toUTCString(); - * } - * - * function onError(err) { - * // stream.respond() can throw if the stream has been destroyed by - * // the other side. - * try { - * if (err.code === 'ENOENT') { - * stream.respond({ ':status': 404 }); - * } else { - * stream.respond({ ':status': 500 }); - * } - * } catch (err) { - * // Perform actual error handling. - * console.log(err); - * } - * stream.end(); - * } - * - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { statCheck, onError }); - * }); - * ``` - * - * The `options.statCheck` function may also be used to cancel the send operation - * by returning `false`. For instance, a conditional request may check the stat - * results to determine if the file has been modified to return an appropriate`304` response: - * - * ```js - * const http2 = require('http2'); - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * function statCheck(stat, headers) { - * // Check the stat here... - * stream.respond({ ':status': 304 }); - * return false; // Cancel the send operation - * } - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { statCheck }); - * }); - * ``` - * - * The `content-length` header field will be automatically set. - * - * The `offset` and `length` options may be used to limit the response to a - * specific range subset. This can be used, for instance, to support HTTP Range - * requests. - * - * The `options.onError` function may also be used to handle all the errors - * that could happen before the delivery of the file is initiated. The - * default behavior is to destroy the stream. - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * will be emitted immediately after queuing the last chunk of payload data to be - * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing - * header fields to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. - * - * ```js - * const http2 = require('http2'); - * const server = http2.createServer(); - * server.on('stream', (stream) => { - * stream.respondWithFile('/some/file', - * { 'content-type': 'text/plain; charset=utf-8' }, - * { waitForTrailers: true }); - * stream.on('wantTrailers', () => { - * stream.sendTrailers({ ABC: 'some value to send' }); - * }); - * }); - * ``` - * @since v8.4.0 - */ - respondWithFile(path: string, headers?: OutgoingHttpHeaders, options?: ServerStreamFileResponseOptionsWithError): void; - } - // Http2Session - export interface Settings { - headerTableSize?: number | undefined; - enablePush?: boolean | undefined; - initialWindowSize?: number | undefined; - maxFrameSize?: number | undefined; - maxConcurrentStreams?: number | undefined; - maxHeaderListSize?: number | undefined; - enableConnectProtocol?: boolean | undefined; - } - export interface ClientSessionRequestOptions { - endStream?: boolean | undefined; - exclusive?: boolean | undefined; - parent?: number | undefined; - weight?: number | undefined; - waitForTrailers?: boolean | undefined; - } - export interface SessionState { - effectiveLocalWindowSize?: number | undefined; - effectiveRecvDataLength?: number | undefined; - nextStreamID?: number | undefined; - localWindowSize?: number | undefined; - lastProcStreamID?: number | undefined; - remoteWindowSize?: number | undefined; - outboundQueueSize?: number | undefined; - deflateDynamicTableSize?: number | undefined; - inflateDynamicTableSize?: number | undefined; - } - export interface Http2Session extends EventEmitter { - /** - * Value will be `undefined` if the `Http2Session` is not yet connected to a - * socket, `h2c` if the `Http2Session` is not connected to a `TLSSocket`, or - * will return the value of the connected `TLSSocket`'s own `alpnProtocol`property. - * @since v9.4.0 - */ - readonly alpnProtocol?: string | undefined; - /** - * Will be `true` if this `Http2Session` instance has been closed, otherwise`false`. - * @since v9.4.0 - */ - readonly closed: boolean; - /** - * Will be `true` if this `Http2Session` instance is still connecting, will be set - * to `false` before emitting `connect` event and/or calling the `http2.connect`callback. - * @since v10.0.0 - */ - readonly connecting: boolean; - /** - * Will be `true` if this `Http2Session` instance has been destroyed and must no - * longer be used, otherwise `false`. - * @since v8.4.0 - */ - readonly destroyed: boolean; - /** - * Value is `undefined` if the `Http2Session` session socket has not yet been - * connected, `true` if the `Http2Session` is connected with a `TLSSocket`, - * and `false` if the `Http2Session` is connected to any other kind of socket - * or stream. - * @since v9.4.0 - */ - readonly encrypted?: boolean | undefined; - /** - * A prototype-less object describing the current local settings of this`Http2Session`. The local settings are local to _this_`Http2Session` instance. - * @since v8.4.0 - */ - readonly localSettings: Settings; - /** - * If the `Http2Session` is connected to a `TLSSocket`, the `originSet` property - * will return an `Array` of origins for which the `Http2Session` may be - * considered authoritative. - * - * The `originSet` property is only available when using a secure TLS connection. - * @since v9.4.0 - */ - readonly originSet?: string[] | undefined; - /** - * Indicates whether the `Http2Session` is currently waiting for acknowledgment of - * a sent `SETTINGS` frame. Will be `true` after calling the`http2session.settings()` method. Will be `false` once all sent `SETTINGS`frames have been acknowledged. - * @since v8.4.0 - */ - readonly pendingSettingsAck: boolean; - /** - * A prototype-less object describing the current remote settings of this`Http2Session`. The remote settings are set by the _connected_ HTTP/2 peer. - * @since v8.4.0 - */ - readonly remoteSettings: Settings; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * limits available methods to ones safe to use with HTTP/2. - * - * `destroy`, `emit`, `end`, `pause`, `read`, `resume`, and `write` will throw - * an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for more information. - * - * `setTimeout` method will be called on this `Http2Session`. - * - * All other interactions will be routed directly to the socket. - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * Provides miscellaneous information about the current state of the`Http2Session`. - * - * An object describing the current status of this `Http2Session`. - * @since v8.4.0 - */ - readonly state: SessionState; - /** - * The `http2session.type` will be equal to`http2.constants.NGHTTP2_SESSION_SERVER` if this `Http2Session` instance is a - * server, and `http2.constants.NGHTTP2_SESSION_CLIENT` if the instance is a - * client. - * @since v8.4.0 - */ - readonly type: number; - /** - * Gracefully closes the `Http2Session`, allowing any existing streams to - * complete on their own and preventing new `Http2Stream` instances from being - * created. Once closed, `http2session.destroy()`_might_ be called if there - * are no open `Http2Stream` instances. - * - * If specified, the `callback` function is registered as a handler for the`'close'` event. - * @since v9.4.0 - */ - close(callback?: () => void): void; - /** - * Immediately terminates the `Http2Session` and the associated `net.Socket` or`tls.TLSSocket`. - * - * Once destroyed, the `Http2Session` will emit the `'close'` event. If `error`is not undefined, an `'error'` event will be emitted immediately before the`'close'` event. - * - * If there are any remaining open `Http2Streams` associated with the`Http2Session`, those will also be destroyed. - * @since v8.4.0 - * @param error An `Error` object if the `Http2Session` is being destroyed due to an error. - * @param code The HTTP/2 error code to send in the final `GOAWAY` frame. If unspecified, and `error` is not undefined, the default is `INTERNAL_ERROR`, otherwise defaults to `NO_ERROR`. - */ - destroy(error?: Error, code?: number): void; - /** - * Transmits a `GOAWAY` frame to the connected peer _without_ shutting down the`Http2Session`. - * @since v9.4.0 - * @param code An HTTP/2 error code - * @param lastStreamID The numeric ID of the last processed `Http2Stream` - * @param opaqueData A `TypedArray` or `DataView` instance containing additional data to be carried within the `GOAWAY` frame. - */ - goaway(code?: number, lastStreamID?: number, opaqueData?: NodeJS.ArrayBufferView): void; - /** - * Sends a `PING` frame to the connected HTTP/2 peer. A `callback` function must - * be provided. The method will return `true` if the `PING` was sent, `false`otherwise. - * - * The maximum number of outstanding (unacknowledged) pings is determined by the`maxOutstandingPings` configuration option. The default maximum is 10. - * - * If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView`containing 8 bytes of data that will be transmitted with the `PING` and - * returned with the ping acknowledgment. - * - * The callback will be invoked with three arguments: an error argument that will - * be `null` if the `PING` was successfully acknowledged, a `duration` argument - * that reports the number of milliseconds elapsed since the ping was sent and the - * acknowledgment was received, and a `Buffer` containing the 8-byte `PING`payload. - * - * ```js - * session.ping(Buffer.from('abcdefgh'), (err, duration, payload) => { - * if (!err) { - * console.log(`Ping acknowledged in ${duration} milliseconds`); - * console.log(`With payload '${payload.toString()}'`); - * } - * }); - * ``` - * - * If the `payload` argument is not specified, the default payload will be the - * 64-bit timestamp (little endian) marking the start of the `PING` duration. - * @since v8.9.3 - * @param payload Optional ping payload. - */ - ping(callback: (err: Error | null, duration: number, payload: Buffer) => void): boolean; - ping(payload: NodeJS.ArrayBufferView, callback: (err: Error | null, duration: number, payload: Buffer) => void): boolean; - /** - * Calls `ref()` on this `Http2Session`instance's underlying `net.Socket`. - * @since v9.4.0 - */ - ref(): void; - /** - * Sets the local endpoint's window size. - * The `windowSize` is the total window size to set, not - * the delta. - * - * ```js - * const http2 = require('http2'); - * - * const server = http2.createServer(); - * const expectedWindowSize = 2 ** 20; - * server.on('connect', (session) => { - * - * // Set local window size to be 2 ** 20 - * session.setLocalWindowSize(expectedWindowSize); - * }); - * ``` - * @since v15.3.0 - */ - setLocalWindowSize(windowSize: number): void; - /** - * Used to set a callback function that is called when there is no activity on - * the `Http2Session` after `msecs` milliseconds. The given `callback` is - * registered as a listener on the `'timeout'` event. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * Updates the current local settings for this `Http2Session` and sends a new`SETTINGS` frame to the connected HTTP/2 peer. - * - * Once called, the `http2session.pendingSettingsAck` property will be `true`while the session is waiting for the remote peer to acknowledge the new - * settings. - * - * The new settings will not become effective until the `SETTINGS` acknowledgment - * is received and the `'localSettings'` event is emitted. It is possible to send - * multiple `SETTINGS` frames while acknowledgment is still pending. - * @since v8.4.0 - * @param callback Callback that is called once the session is connected or right away if the session is already connected. - */ - settings(settings: Settings): void; - /** - * Calls `unref()` on this `Http2Session`instance's underlying `net.Socket`. - * @since v9.4.0 - */ - unref(): void; - addListener(event: 'close', listener: () => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'frameError', listener: (frameType: number, errorCode: number, streamID: number) => void): this; - addListener(event: 'goaway', listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; - addListener(event: 'localSettings', listener: (settings: Settings) => void): this; - addListener(event: 'ping', listener: () => void): this; - addListener(event: 'remoteSettings', listener: (settings: Settings) => void): this; - addListener(event: 'timeout', listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: 'close'): boolean; - emit(event: 'error', err: Error): boolean; - emit(event: 'frameError', frameType: number, errorCode: number, streamID: number): boolean; - emit(event: 'goaway', errorCode: number, lastStreamID: number, opaqueData: Buffer): boolean; - emit(event: 'localSettings', settings: Settings): boolean; - emit(event: 'ping'): boolean; - emit(event: 'remoteSettings', settings: Settings): boolean; - emit(event: 'timeout'): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: 'close', listener: () => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'frameError', listener: (frameType: number, errorCode: number, streamID: number) => void): this; - on(event: 'goaway', listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; - on(event: 'localSettings', listener: (settings: Settings) => void): this; - on(event: 'ping', listener: () => void): this; - on(event: 'remoteSettings', listener: (settings: Settings) => void): this; - on(event: 'timeout', listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'frameError', listener: (frameType: number, errorCode: number, streamID: number) => void): this; - once(event: 'goaway', listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; - once(event: 'localSettings', listener: (settings: Settings) => void): this; - once(event: 'ping', listener: () => void): this; - once(event: 'remoteSettings', listener: (settings: Settings) => void): this; - once(event: 'timeout', listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'frameError', listener: (frameType: number, errorCode: number, streamID: number) => void): this; - prependListener(event: 'goaway', listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; - prependListener(event: 'localSettings', listener: (settings: Settings) => void): this; - prependListener(event: 'ping', listener: () => void): this; - prependListener(event: 'remoteSettings', listener: (settings: Settings) => void): this; - prependListener(event: 'timeout', listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'frameError', listener: (frameType: number, errorCode: number, streamID: number) => void): this; - prependOnceListener(event: 'goaway', listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; - prependOnceListener(event: 'localSettings', listener: (settings: Settings) => void): this; - prependOnceListener(event: 'ping', listener: () => void): this; - prependOnceListener(event: 'remoteSettings', listener: (settings: Settings) => void): this; - prependOnceListener(event: 'timeout', listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface ClientHttp2Session extends Http2Session { - /** - * For HTTP/2 Client `Http2Session` instances only, the `http2session.request()`creates and returns an `Http2Stream` instance that can be used to send an - * HTTP/2 request to the connected server. - * - * This method is only available if `http2session.type` is equal to`http2.constants.NGHTTP2_SESSION_CLIENT`. - * - * ```js - * const http2 = require('http2'); - * const clientSession = http2.connect('https://localhost:1234'); - * const { - * HTTP2_HEADER_PATH, - * HTTP2_HEADER_STATUS - * } = http2.constants; - * - * const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' }); - * req.on('response', (headers) => { - * console.log(headers[HTTP2_HEADER_STATUS]); - * req.on('data', (chunk) => { // .. }); - * req.on('end', () => { // .. }); - * }); - * ``` - * - * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event - * is emitted immediately after queuing the last chunk of payload data to be sent. - * The `http2stream.sendTrailers()` method can then be called to send trailing - * headers to the peer. - * - * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically - * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. - * - * When `options.signal` is set with an `AbortSignal` and then `abort` on the - * corresponding `AbortController` is called, the request will emit an `'error'`event with an `AbortError` error. - * - * The `:method` and `:path` pseudo-headers are not specified within `headers`, - * they respectively default to: - * - * * `:method` \= `'GET'` - * * `:path` \= `/` - * @since v8.4.0 - */ - request(headers?: OutgoingHttpHeaders, options?: ClientSessionRequestOptions): ClientHttp2Stream; - addListener(event: 'altsvc', listener: (alt: string, origin: string, stream: number) => void): this; - addListener(event: 'origin', listener: (origins: string[]) => void): this; - addListener(event: 'connect', listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - addListener(event: 'stream', listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: 'altsvc', alt: string, origin: string, stream: number): boolean; - emit(event: 'origin', origins: ReadonlyArray): boolean; - emit(event: 'connect', session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; - emit(event: 'stream', stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: 'altsvc', listener: (alt: string, origin: string, stream: number) => void): this; - on(event: 'origin', listener: (origins: string[]) => void): this; - on(event: 'connect', listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - on(event: 'stream', listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'altsvc', listener: (alt: string, origin: string, stream: number) => void): this; - once(event: 'origin', listener: (origins: string[]) => void): this; - once(event: 'connect', listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - once(event: 'stream', listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'altsvc', listener: (alt: string, origin: string, stream: number) => void): this; - prependListener(event: 'origin', listener: (origins: string[]) => void): this; - prependListener(event: 'connect', listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - prependListener(event: 'stream', listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'altsvc', listener: (alt: string, origin: string, stream: number) => void): this; - prependOnceListener(event: 'origin', listener: (origins: string[]) => void): this; - prependOnceListener(event: 'connect', listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - prependOnceListener(event: 'stream', listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface AlternativeServiceOptions { - origin: number | string | url.URL; - } - export interface ServerHttp2Session extends Http2Session { - readonly server: Http2Server | Http2SecureServer; - /** - * Submits an `ALTSVC` frame (as defined by [RFC 7838](https://tools.ietf.org/html/rfc7838)) to the connected client. - * - * ```js - * const http2 = require('http2'); - * - * const server = http2.createServer(); - * server.on('session', (session) => { - * // Set altsvc for origin https://example.org:80 - * session.altsvc('h2=":8000"', 'https://example.org:80'); - * }); - * - * server.on('stream', (stream) => { - * // Set altsvc for a specific stream - * stream.session.altsvc('h2=":8000"', stream.id); - * }); - * ``` - * - * Sending an `ALTSVC` frame with a specific stream ID indicates that the alternate - * service is associated with the origin of the given `Http2Stream`. - * - * The `alt` and origin string _must_ contain only ASCII bytes and are - * strictly interpreted as a sequence of ASCII bytes. The special value `'clear'`may be passed to clear any previously set alternative service for a given - * domain. - * - * When a string is passed for the `originOrStream` argument, it will be parsed as - * a URL and the origin will be derived. For instance, the origin for the - * HTTP URL `'https://example.org/foo/bar'` is the ASCII string`'https://example.org'`. An error will be thrown if either the given string - * cannot be parsed as a URL or if a valid origin cannot be derived. - * - * A `URL` object, or any object with an `origin` property, may be passed as`originOrStream`, in which case the value of the `origin` property will be - * used. The value of the `origin` property _must_ be a properly serialized - * ASCII origin. - * @since v9.4.0 - * @param alt A description of the alternative service configuration as defined by `RFC 7838`. - * @param originOrStream Either a URL string specifying the origin (or an `Object` with an `origin` property) or the numeric identifier of an active `Http2Stream` as given by the - * `http2stream.id` property. - */ - altsvc(alt: string, originOrStream: number | string | url.URL | AlternativeServiceOptions): void; - /** - * Submits an `ORIGIN` frame (as defined by [RFC 8336](https://tools.ietf.org/html/rfc8336)) to the connected client - * to advertise the set of origins for which the server is capable of providing - * authoritative responses. - * - * ```js - * const http2 = require('http2'); - * const options = getSecureOptionsSomehow(); - * const server = http2.createSecureServer(options); - * server.on('stream', (stream) => { - * stream.respond(); - * stream.end('ok'); - * }); - * server.on('session', (session) => { - * session.origin('https://example.com', 'https://example.org'); - * }); - * ``` - * - * When a string is passed as an `origin`, it will be parsed as a URL and the - * origin will be derived. For instance, the origin for the HTTP URL`'https://example.org/foo/bar'` is the ASCII string`'https://example.org'`. An error will be thrown if either the given - * string - * cannot be parsed as a URL or if a valid origin cannot be derived. - * - * A `URL` object, or any object with an `origin` property, may be passed as - * an `origin`, in which case the value of the `origin` property will be - * used. The value of the `origin` property _must_ be a properly serialized - * ASCII origin. - * - * Alternatively, the `origins` option may be used when creating a new HTTP/2 - * server using the `http2.createSecureServer()` method: - * - * ```js - * const http2 = require('http2'); - * const options = getSecureOptionsSomehow(); - * options.origins = ['https://example.com', 'https://example.org']; - * const server = http2.createSecureServer(options); - * server.on('stream', (stream) => { - * stream.respond(); - * stream.end('ok'); - * }); - * ``` - * @since v10.12.0 - * @param origins One or more URL Strings passed as separate arguments. - */ - origin( - ...origins: Array< - | string - | url.URL - | { - origin: string; - } - > - ): void; - addListener(event: 'connect', listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - addListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: 'connect', session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; - emit(event: 'stream', stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: 'connect', listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - on(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'connect', listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - once(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'connect', listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - prependListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'connect', listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; - prependOnceListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - // Http2Server - export interface SessionOptions { - maxDeflateDynamicTableSize?: number | undefined; - maxSessionMemory?: number | undefined; - maxHeaderListPairs?: number | undefined; - maxOutstandingPings?: number | undefined; - maxSendHeaderBlockLength?: number | undefined; - paddingStrategy?: number | undefined; - peerMaxConcurrentStreams?: number | undefined; - settings?: Settings | undefined; - /** - * Specifies a timeout in milliseconds that - * a server should wait when an [`'unknownProtocol'`][] is emitted. If the - * socket has not been destroyed by that time the server will destroy it. - * @default 100000 - */ - unknownProtocolTimeout?: number | undefined; - selectPadding?(frameLen: number, maxFrameLen: number): number; - createConnection?(authority: url.URL, option: SessionOptions): stream.Duplex; - } - export interface ClientSessionOptions extends SessionOptions { - maxReservedRemoteStreams?: number | undefined; - createConnection?: ((authority: url.URL, option: SessionOptions) => stream.Duplex) | undefined; - protocol?: 'http:' | 'https:' | undefined; - } - export interface ServerSessionOptions extends SessionOptions { - Http1IncomingMessage?: typeof IncomingMessage | undefined; - Http1ServerResponse?: typeof ServerResponse | undefined; - Http2ServerRequest?: typeof Http2ServerRequest | undefined; - Http2ServerResponse?: typeof Http2ServerResponse | undefined; - } - export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions {} - export interface SecureServerSessionOptions extends ServerSessionOptions, tls.TlsOptions {} - export interface ServerOptions extends ServerSessionOptions {} - export interface SecureServerOptions extends SecureServerSessionOptions { - allowHTTP1?: boolean | undefined; - origins?: string[] | undefined; - } - interface HTTP2ServerCommon { - setTimeout(msec?: number, callback?: () => void): this; - /** - * Throws ERR_HTTP2_INVALID_SETTING_VALUE for invalid settings values. - * Throws ERR_INVALID_ARG_TYPE for invalid settings argument. - */ - updateSettings(settings: Settings): void; - } - export interface Http2Server extends net.Server, HTTP2ServerCommon { - addListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - addListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - addListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; - addListener(event: 'sessionError', listener: (err: Error) => void): this; - addListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - addListener(event: 'timeout', listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: 'checkContinue', request: Http2ServerRequest, response: Http2ServerResponse): boolean; - emit(event: 'request', request: Http2ServerRequest, response: Http2ServerResponse): boolean; - emit(event: 'session', session: ServerHttp2Session): boolean; - emit(event: 'sessionError', err: Error): boolean; - emit(event: 'stream', stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: 'timeout'): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - on(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - on(event: 'session', listener: (session: ServerHttp2Session) => void): this; - on(event: 'sessionError', listener: (err: Error) => void): this; - on(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - on(event: 'timeout', listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - once(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - once(event: 'session', listener: (session: ServerHttp2Session) => void): this; - once(event: 'sessionError', listener: (err: Error) => void): this; - once(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - once(event: 'timeout', listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - prependListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - prependListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; - prependListener(event: 'sessionError', listener: (err: Error) => void): this; - prependListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - prependListener(event: 'timeout', listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - prependOnceListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - prependOnceListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; - prependOnceListener(event: 'sessionError', listener: (err: Error) => void): this; - prependOnceListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - prependOnceListener(event: 'timeout', listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export interface Http2SecureServer extends tls.Server, HTTP2ServerCommon { - addListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - addListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - addListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; - addListener(event: 'sessionError', listener: (err: Error) => void): this; - addListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - addListener(event: 'timeout', listener: () => void): this; - addListener(event: 'unknownProtocol', listener: (socket: tls.TLSSocket) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: 'checkContinue', request: Http2ServerRequest, response: Http2ServerResponse): boolean; - emit(event: 'request', request: Http2ServerRequest, response: Http2ServerResponse): boolean; - emit(event: 'session', session: ServerHttp2Session): boolean; - emit(event: 'sessionError', err: Error): boolean; - emit(event: 'stream', stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; - emit(event: 'timeout'): boolean; - emit(event: 'unknownProtocol', socket: tls.TLSSocket): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - on(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - on(event: 'session', listener: (session: ServerHttp2Session) => void): this; - on(event: 'sessionError', listener: (err: Error) => void): this; - on(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - on(event: 'timeout', listener: () => void): this; - on(event: 'unknownProtocol', listener: (socket: tls.TLSSocket) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - once(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - once(event: 'session', listener: (session: ServerHttp2Session) => void): this; - once(event: 'sessionError', listener: (err: Error) => void): this; - once(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - once(event: 'timeout', listener: () => void): this; - once(event: 'unknownProtocol', listener: (socket: tls.TLSSocket) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - prependListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - prependListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; - prependListener(event: 'sessionError', listener: (err: Error) => void): this; - prependListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - prependListener(event: 'timeout', listener: () => void): this; - prependListener(event: 'unknownProtocol', listener: (socket: tls.TLSSocket) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - prependOnceListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; - prependOnceListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; - prependOnceListener(event: 'sessionError', listener: (err: Error) => void): this; - prependOnceListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; - prependOnceListener(event: 'timeout', listener: () => void): this; - prependOnceListener(event: 'unknownProtocol', listener: (socket: tls.TLSSocket) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * A `Http2ServerRequest` object is created by {@link Server} or {@link SecureServer} and passed as the first argument to the `'request'` event. It may be used to access a request status, - * headers, and - * data. - * @since v8.4.0 - */ - export class Http2ServerRequest extends stream.Readable { - constructor(stream: ServerHttp2Stream, headers: IncomingHttpHeaders, options: stream.ReadableOptions, rawHeaders: ReadonlyArray); - /** - * The `request.aborted` property will be `true` if the request has - * been aborted. - * @since v10.1.0 - */ - readonly aborted: boolean; - /** - * The request authority pseudo header field. Because HTTP/2 allows requests - * to set either `:authority` or `host`, this value is derived from`req.headers[':authority']` if present. Otherwise, it is derived from`req.headers['host']`. - * @since v8.4.0 - */ - readonly authority: string; - /** - * See `request.socket`. - * @since v8.4.0 - * @deprecated Since v13.0.0 - Use `socket`. - */ - readonly connection: net.Socket | tls.TLSSocket; - /** - * The `request.complete` property will be `true` if the request has - * been completed, aborted, or destroyed. - * @since v12.10.0 - */ - readonly complete: boolean; - /** - * The request/response headers object. - * - * Key-value pairs of header names and values. Header names are lower-cased. - * - * ```js - * // Prints something like: - * // - * // { 'user-agent': 'curl/7.22.0', - * // host: '127.0.0.1:8000', - * // accept: '*' } - * console.log(request.headers); - * ``` - * - * See `HTTP/2 Headers Object`. - * - * In HTTP/2, the request path, host name, protocol, and method are represented as - * special headers prefixed with the `:` character (e.g. `':path'`). These special - * headers will be included in the `request.headers` object. Care must be taken not - * to inadvertently modify these special headers or errors may occur. For instance, - * removing all headers from the request will cause errors to occur: - * - * ```js - * removeAllHeaders(request.headers); - * assert(request.url); // Fails because the :path header has been removed - * ``` - * @since v8.4.0 - */ - readonly headers: IncomingHttpHeaders; - /** - * In case of server request, the HTTP version sent by the client. In the case of - * client response, the HTTP version of the connected-to server. Returns`'2.0'`. - * - * Also `message.httpVersionMajor` is the first integer and`message.httpVersionMinor` is the second. - * @since v8.4.0 - */ - readonly httpVersion: string; - readonly httpVersionMinor: number; - readonly httpVersionMajor: number; - /** - * The request method as a string. Read-only. Examples: `'GET'`, `'DELETE'`. - * @since v8.4.0 - */ - readonly method: string; - /** - * The raw request/response headers list exactly as they were received. - * - * The keys and values are in the same list. It is _not_ a - * list of tuples. So, the even-numbered offsets are key values, and the - * odd-numbered offsets are the associated values. - * - * Header names are not lowercased, and duplicates are not merged. - * - * ```js - * // Prints something like: - * // - * // [ 'user-agent', - * // 'this is invalid because there can be only one', - * // 'User-Agent', - * // 'curl/7.22.0', - * // 'Host', - * // '127.0.0.1:8000', - * // 'ACCEPT', - * // '*' ] - * console.log(request.rawHeaders); - * ``` - * @since v8.4.0 - */ - readonly rawHeaders: string[]; - /** - * The raw request/response trailer keys and values exactly as they were - * received. Only populated at the `'end'` event. - * @since v8.4.0 - */ - readonly rawTrailers: string[]; - /** - * The request scheme pseudo header field indicating the scheme - * portion of the target URL. - * @since v8.4.0 - */ - readonly scheme: string; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * applies getters, setters, and methods based on HTTP/2 logic. - * - * `destroyed`, `readable`, and `writable` properties will be retrieved from and - * set on `request.stream`. - * - * `destroy`, `emit`, `end`, `on` and `once` methods will be called on`request.stream`. - * - * `setTimeout` method will be called on `request.stream.session`. - * - * `pause`, `read`, `resume`, and `write` will throw an error with code`ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for - * more information. - * - * All other interactions will be routed directly to the socket. With TLS support, - * use `request.socket.getPeerCertificate()` to obtain the client's - * authentication details. - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * The `Http2Stream` object backing the request. - * @since v8.4.0 - */ - readonly stream: ServerHttp2Stream; - /** - * The request/response trailers object. Only populated at the `'end'` event. - * @since v8.4.0 - */ - readonly trailers: IncomingHttpHeaders; - /** - * Request URL string. This contains only the URL that is present in the actual - * HTTP request. If the request is: - * - * ```http - * GET /status?name=ryan HTTP/1.1 - * Accept: text/plain - * ``` - * - * Then `request.url` will be: - * - * ```js - * '/status?name=ryan' - * ``` - * - * To parse the url into its parts, `new URL()` can be used: - * - * ```console - * $ node - * > new URL('/status?name=ryan', 'http://example.com') - * URL { - * href: 'http://example.com/status?name=ryan', - * origin: 'http://example.com', - * protocol: 'http:', - * username: '', - * password: '', - * host: 'example.com', - * hostname: 'example.com', - * port: '', - * pathname: '/status', - * search: '?name=ryan', - * searchParams: URLSearchParams { 'name' => 'ryan' }, - * hash: '' - * } - * ``` - * @since v8.4.0 - */ - readonly url: string; - /** - * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is - * provided, then it is added as a listener on the `'timeout'` event on - * the response object. - * - * If no `'timeout'` listener is added to the request, the response, or - * the server, then `Http2Stream` s are destroyed when they time out. If a - * handler is assigned to the request, the response, or the server's `'timeout'`events, timed out sockets must be handled explicitly. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - read(size?: number): Buffer | string | null; - addListener(event: 'aborted', listener: (hadError: boolean, code: number) => void): this; - addListener(event: 'close', listener: () => void): this; - addListener(event: 'data', listener: (chunk: Buffer | string) => void): this; - addListener(event: 'end', listener: () => void): this; - addListener(event: 'readable', listener: () => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: 'aborted', hadError: boolean, code: number): boolean; - emit(event: 'close'): boolean; - emit(event: 'data', chunk: Buffer | string): boolean; - emit(event: 'end'): boolean; - emit(event: 'readable'): boolean; - emit(event: 'error', err: Error): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: 'aborted', listener: (hadError: boolean, code: number) => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'data', listener: (chunk: Buffer | string) => void): this; - on(event: 'end', listener: () => void): this; - on(event: 'readable', listener: () => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'aborted', listener: (hadError: boolean, code: number) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'data', listener: (chunk: Buffer | string) => void): this; - once(event: 'end', listener: () => void): this; - once(event: 'readable', listener: () => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'aborted', listener: (hadError: boolean, code: number) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'data', listener: (chunk: Buffer | string) => void): this; - prependListener(event: 'end', listener: () => void): this; - prependListener(event: 'readable', listener: () => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'aborted', listener: (hadError: boolean, code: number) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'data', listener: (chunk: Buffer | string) => void): this; - prependOnceListener(event: 'end', listener: () => void): this; - prependOnceListener(event: 'readable', listener: () => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - /** - * This object is created internally by an HTTP server, not by the user. It is - * passed as the second parameter to the `'request'` event. - * @since v8.4.0 - */ - export class Http2ServerResponse extends stream.Writable { - constructor(stream: ServerHttp2Stream); - /** - * See `response.socket`. - * @since v8.4.0 - * @deprecated Since v13.0.0 - Use `socket`. - */ - readonly connection: net.Socket | tls.TLSSocket; - /** - * Boolean value that indicates whether the response has completed. Starts - * as `false`. After `response.end()` executes, the value will be `true`. - * @since v8.4.0 - * @deprecated Since v13.4.0,v12.16.0 - Use `writableEnded`. - */ - readonly finished: boolean; - /** - * True if headers were sent, false otherwise (read-only). - * @since v8.4.0 - */ - readonly headersSent: boolean; - /** - * A reference to the original HTTP2 request object. - * @since v15.7.0 - */ - readonly req: Http2ServerRequest; - /** - * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but - * applies getters, setters, and methods based on HTTP/2 logic. - * - * `destroyed`, `readable`, and `writable` properties will be retrieved from and - * set on `response.stream`. - * - * `destroy`, `emit`, `end`, `on` and `once` methods will be called on`response.stream`. - * - * `setTimeout` method will be called on `response.stream.session`. - * - * `pause`, `read`, `resume`, and `write` will throw an error with code`ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for - * more information. - * - * All other interactions will be routed directly to the socket. - * - * ```js - * const http2 = require('http2'); - * const server = http2.createServer((req, res) => { - * const ip = req.socket.remoteAddress; - * const port = req.socket.remotePort; - * res.end(`Your IP address is ${ip} and your source port is ${port}.`); - * }).listen(3000); - * ``` - * @since v8.4.0 - */ - readonly socket: net.Socket | tls.TLSSocket; - /** - * The `Http2Stream` object backing the response. - * @since v8.4.0 - */ - readonly stream: ServerHttp2Stream; - /** - * When true, the Date header will be automatically generated and sent in - * the response if it is not already present in the headers. Defaults to true. - * - * This should only be disabled for testing; HTTP requires the Date header - * in responses. - * @since v8.4.0 - */ - sendDate: boolean; - /** - * When using implicit headers (not calling `response.writeHead()` explicitly), - * this property controls the status code that will be sent to the client when - * the headers get flushed. - * - * ```js - * response.statusCode = 404; - * ``` - * - * After response header was sent to the client, this property indicates the - * status code which was sent out. - * @since v8.4.0 - */ - statusCode: number; - /** - * Status message is not supported by HTTP/2 (RFC 7540 8.1.2.4). It returns - * an empty string. - * @since v8.4.0 - */ - statusMessage: ''; - /** - * This method adds HTTP trailing headers (a header but at the end of the - * message) to the response. - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v8.4.0 - */ - addTrailers(trailers: OutgoingHttpHeaders): void; - /** - * This method signals to the server that all of the response headers and body - * have been sent; that server should consider this message complete. - * The method, `response.end()`, MUST be called on each response. - * - * If `data` is specified, it is equivalent to calling `response.write(data, encoding)` followed by `response.end(callback)`. - * - * If `callback` is specified, it will be called when the response stream - * is finished. - * @since v8.4.0 - */ - end(callback?: () => void): void; - end(data: string | Uint8Array, callback?: () => void): void; - end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): void; - /** - * Reads out a header that has already been queued but not sent to the client. - * The name is case-insensitive. - * - * ```js - * const contentType = response.getHeader('content-type'); - * ``` - * @since v8.4.0 - */ - getHeader(name: string): string; - /** - * Returns an array containing the unique names of the current outgoing headers. - * All header names are lowercase. - * - * ```js - * response.setHeader('Foo', 'bar'); - * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headerNames = response.getHeaderNames(); - * // headerNames === ['foo', 'set-cookie'] - * ``` - * @since v8.4.0 - */ - getHeaderNames(): string[]; - /** - * Returns a shallow copy of the current outgoing headers. Since a shallow copy - * is used, array values may be mutated without additional calls to various - * header-related http module methods. The keys of the returned object are the - * header names and the values are the respective header values. All header names - * are lowercase. - * - * The object returned by the `response.getHeaders()` method _does not_prototypically inherit from the JavaScript `Object`. This means that typical`Object` methods such as `obj.toString()`, - * `obj.hasOwnProperty()`, and others - * are not defined and _will not work_. - * - * ```js - * response.setHeader('Foo', 'bar'); - * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); - * - * const headers = response.getHeaders(); - * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } - * ``` - * @since v8.4.0 - */ - getHeaders(): OutgoingHttpHeaders; - /** - * Returns `true` if the header identified by `name` is currently set in the - * outgoing headers. The header name matching is case-insensitive. - * - * ```js - * const hasContentType = response.hasHeader('content-type'); - * ``` - * @since v8.4.0 - */ - hasHeader(name: string): boolean; - /** - * Removes a header that has been queued for implicit sending. - * - * ```js - * response.removeHeader('Content-Encoding'); - * ``` - * @since v8.4.0 - */ - removeHeader(name: string): void; - /** - * Sets a single header value for implicit headers. If this header already exists - * in the to-be-sent headers, its value will be replaced. Use an array of strings - * here to send multiple headers with the same name. - * - * ```js - * response.setHeader('Content-Type', 'text/html; charset=utf-8'); - * ``` - * - * or - * - * ```js - * response.setHeader('Set-Cookie', ['type=ninja', 'language=javascript']); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * ```js - * // Returns content-type = text/plain - * const server = http2.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html; charset=utf-8'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); - * res.end('ok'); - * }); - * ``` - * @since v8.4.0 - */ - setHeader(name: string, value: number | string | ReadonlyArray): void; - /** - * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is - * provided, then it is added as a listener on the `'timeout'` event on - * the response object. - * - * If no `'timeout'` listener is added to the request, the response, or - * the server, then `Http2Stream` s are destroyed when they time out. If a - * handler is assigned to the request, the response, or the server's `'timeout'`events, timed out sockets must be handled explicitly. - * @since v8.4.0 - */ - setTimeout(msecs: number, callback?: () => void): void; - /** - * If this method is called and `response.writeHead()` has not been called, - * it will switch to implicit header mode and flush the implicit headers. - * - * This sends a chunk of the response body. This method may - * be called multiple times to provide successive parts of the body. - * - * In the `http` module, the response body is omitted when the - * request is a HEAD request. Similarly, the `204` and `304` responses_must not_ include a message body. - * - * `chunk` can be a string or a buffer. If `chunk` is a string, - * the second parameter specifies how to encode it into a byte stream. - * By default the `encoding` is `'utf8'`. `callback` will be called when this chunk - * of data is flushed. - * - * This is the raw HTTP body and has nothing to do with higher-level multi-part - * body encodings that may be used. - * - * The first time `response.write()` is called, it will send the buffered - * header information and the first chunk of the body to the client. The second - * time `response.write()` is called, Node.js assumes data will be streamed, - * and sends the new data separately. That is, the response is buffered up to the - * first chunk of the body. - * - * Returns `true` if the entire data was flushed successfully to the kernel - * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is free again. - * @since v8.4.0 - */ - write(chunk: string | Uint8Array, callback?: (err: Error) => void): boolean; - write(chunk: string | Uint8Array, encoding: BufferEncoding, callback?: (err: Error) => void): boolean; - /** - * Sends a status `100 Continue` to the client, indicating that the request body - * should be sent. See the `'checkContinue'` event on `Http2Server` and`Http2SecureServer`. - * @since v8.4.0 - */ - writeContinue(): void; - /** - * Sends a response header to the request. The status code is a 3-digit HTTP - * status code, like `404`. The last argument, `headers`, are the response headers. - * - * Returns a reference to the `Http2ServerResponse`, so that calls can be chained. - * - * For compatibility with `HTTP/1`, a human-readable `statusMessage` may be - * passed as the second argument. However, because the `statusMessage` has no - * meaning within HTTP/2, the argument will have no effect and a process warning - * will be emitted. - * - * ```js - * const body = 'hello world'; - * response.writeHead(200, { - * 'Content-Length': Buffer.byteLength(body), - * 'Content-Type': 'text/plain; charset=utf-8', - * }); - * ``` - * - * `Content-Length` is given in bytes not characters. The`Buffer.byteLength()` API may be used to determine the number of bytes in a - * given encoding. On outbound messages, Node.js does not check if Content-Length - * and the length of the body being transmitted are equal or not. However, when - * receiving messages, Node.js will automatically reject messages when the`Content-Length` does not match the actual payload size. - * - * This method may be called at most one time on a message before `response.end()` is called. - * - * If `response.write()` or `response.end()` are called before calling - * this, the implicit/mutable headers will be calculated and call this function. - * - * When headers have been set with `response.setHeader()`, they will be merged - * with any headers passed to `response.writeHead()`, with the headers passed - * to `response.writeHead()` given precedence. - * - * ```js - * // Returns content-type = text/plain - * const server = http2.createServer((req, res) => { - * res.setHeader('Content-Type', 'text/html; charset=utf-8'); - * res.setHeader('X-Foo', 'bar'); - * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); - * res.end('ok'); - * }); - * ``` - * - * Attempting to set a header field name or value that contains invalid characters - * will result in a `TypeError` being thrown. - * @since v8.4.0 - */ - writeHead(statusCode: number, headers?: OutgoingHttpHeaders): this; - writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders): this; - /** - * Call `http2stream.pushStream()` with the given headers, and wrap the - * given `Http2Stream` on a newly created `Http2ServerResponse` as the callback - * parameter if successful. When `Http2ServerRequest` is closed, the callback is - * called with an error `ERR_HTTP2_INVALID_STREAM`. - * @since v8.4.0 - * @param headers An object describing the headers - * @param callback Called once `http2stream.pushStream()` is finished, or either when the attempt to create the pushed `Http2Stream` has failed or has been rejected, or the state of - * `Http2ServerRequest` is closed prior to calling the `http2stream.pushStream()` method - */ - createPushResponse(headers: OutgoingHttpHeaders, callback: (err: Error | null, res: Http2ServerResponse) => void): void; - addListener(event: 'close', listener: () => void): this; - addListener(event: 'drain', listener: () => void): this; - addListener(event: 'error', listener: (error: Error) => void): this; - addListener(event: 'finish', listener: () => void): this; - addListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: 'close'): boolean; - emit(event: 'drain'): boolean; - emit(event: 'error', error: Error): boolean; - emit(event: 'finish'): boolean; - emit(event: 'pipe', src: stream.Readable): boolean; - emit(event: 'unpipe', src: stream.Readable): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: 'close', listener: () => void): this; - on(event: 'drain', listener: () => void): this; - on(event: 'error', listener: (error: Error) => void): this; - on(event: 'finish', listener: () => void): this; - on(event: 'pipe', listener: (src: stream.Readable) => void): this; - on(event: 'unpipe', listener: (src: stream.Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'drain', listener: () => void): this; - once(event: 'error', listener: (error: Error) => void): this; - once(event: 'finish', listener: () => void): this; - once(event: 'pipe', listener: (src: stream.Readable) => void): this; - once(event: 'unpipe', listener: (src: stream.Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'drain', listener: () => void): this; - prependListener(event: 'error', listener: (error: Error) => void): this; - prependListener(event: 'finish', listener: () => void): this; - prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'drain', listener: () => void): this; - prependOnceListener(event: 'error', listener: (error: Error) => void): this; - prependOnceListener(event: 'finish', listener: () => void): this; - prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this; - prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - export namespace constants { - const NGHTTP2_SESSION_SERVER: number; - const NGHTTP2_SESSION_CLIENT: number; - const NGHTTP2_STREAM_STATE_IDLE: number; - const NGHTTP2_STREAM_STATE_OPEN: number; - const NGHTTP2_STREAM_STATE_RESERVED_LOCAL: number; - const NGHTTP2_STREAM_STATE_RESERVED_REMOTE: number; - const NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL: number; - const NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE: number; - const NGHTTP2_STREAM_STATE_CLOSED: number; - const NGHTTP2_NO_ERROR: number; - const NGHTTP2_PROTOCOL_ERROR: number; - const NGHTTP2_INTERNAL_ERROR: number; - const NGHTTP2_FLOW_CONTROL_ERROR: number; - const NGHTTP2_SETTINGS_TIMEOUT: number; - const NGHTTP2_STREAM_CLOSED: number; - const NGHTTP2_FRAME_SIZE_ERROR: number; - const NGHTTP2_REFUSED_STREAM: number; - const NGHTTP2_CANCEL: number; - const NGHTTP2_COMPRESSION_ERROR: number; - const NGHTTP2_CONNECT_ERROR: number; - const NGHTTP2_ENHANCE_YOUR_CALM: number; - const NGHTTP2_INADEQUATE_SECURITY: number; - const NGHTTP2_HTTP_1_1_REQUIRED: number; - const NGHTTP2_ERR_FRAME_SIZE_ERROR: number; - const NGHTTP2_FLAG_NONE: number; - const NGHTTP2_FLAG_END_STREAM: number; - const NGHTTP2_FLAG_END_HEADERS: number; - const NGHTTP2_FLAG_ACK: number; - const NGHTTP2_FLAG_PADDED: number; - const NGHTTP2_FLAG_PRIORITY: number; - const DEFAULT_SETTINGS_HEADER_TABLE_SIZE: number; - const DEFAULT_SETTINGS_ENABLE_PUSH: number; - const DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE: number; - const DEFAULT_SETTINGS_MAX_FRAME_SIZE: number; - const MAX_MAX_FRAME_SIZE: number; - const MIN_MAX_FRAME_SIZE: number; - const MAX_INITIAL_WINDOW_SIZE: number; - const NGHTTP2_DEFAULT_WEIGHT: number; - const NGHTTP2_SETTINGS_HEADER_TABLE_SIZE: number; - const NGHTTP2_SETTINGS_ENABLE_PUSH: number; - const NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS: number; - const NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE: number; - const NGHTTP2_SETTINGS_MAX_FRAME_SIZE: number; - const NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE: number; - const PADDING_STRATEGY_NONE: number; - const PADDING_STRATEGY_MAX: number; - const PADDING_STRATEGY_CALLBACK: number; - const HTTP2_HEADER_STATUS: string; - const HTTP2_HEADER_METHOD: string; - const HTTP2_HEADER_AUTHORITY: string; - const HTTP2_HEADER_SCHEME: string; - const HTTP2_HEADER_PATH: string; - const HTTP2_HEADER_ACCEPT_CHARSET: string; - const HTTP2_HEADER_ACCEPT_ENCODING: string; - const HTTP2_HEADER_ACCEPT_LANGUAGE: string; - const HTTP2_HEADER_ACCEPT_RANGES: string; - const HTTP2_HEADER_ACCEPT: string; - const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN: string; - const HTTP2_HEADER_AGE: string; - const HTTP2_HEADER_ALLOW: string; - const HTTP2_HEADER_AUTHORIZATION: string; - const HTTP2_HEADER_CACHE_CONTROL: string; - const HTTP2_HEADER_CONNECTION: string; - const HTTP2_HEADER_CONTENT_DISPOSITION: string; - const HTTP2_HEADER_CONTENT_ENCODING: string; - const HTTP2_HEADER_CONTENT_LANGUAGE: string; - const HTTP2_HEADER_CONTENT_LENGTH: string; - const HTTP2_HEADER_CONTENT_LOCATION: string; - const HTTP2_HEADER_CONTENT_MD5: string; - const HTTP2_HEADER_CONTENT_RANGE: string; - const HTTP2_HEADER_CONTENT_TYPE: string; - const HTTP2_HEADER_COOKIE: string; - const HTTP2_HEADER_DATE: string; - const HTTP2_HEADER_ETAG: string; - const HTTP2_HEADER_EXPECT: string; - const HTTP2_HEADER_EXPIRES: string; - const HTTP2_HEADER_FROM: string; - const HTTP2_HEADER_HOST: string; - const HTTP2_HEADER_IF_MATCH: string; - const HTTP2_HEADER_IF_MODIFIED_SINCE: string; - const HTTP2_HEADER_IF_NONE_MATCH: string; - const HTTP2_HEADER_IF_RANGE: string; - const HTTP2_HEADER_IF_UNMODIFIED_SINCE: string; - const HTTP2_HEADER_LAST_MODIFIED: string; - const HTTP2_HEADER_LINK: string; - const HTTP2_HEADER_LOCATION: string; - const HTTP2_HEADER_MAX_FORWARDS: string; - const HTTP2_HEADER_PREFER: string; - const HTTP2_HEADER_PROXY_AUTHENTICATE: string; - const HTTP2_HEADER_PROXY_AUTHORIZATION: string; - const HTTP2_HEADER_RANGE: string; - const HTTP2_HEADER_REFERER: string; - const HTTP2_HEADER_REFRESH: string; - const HTTP2_HEADER_RETRY_AFTER: string; - const HTTP2_HEADER_SERVER: string; - const HTTP2_HEADER_SET_COOKIE: string; - const HTTP2_HEADER_STRICT_TRANSPORT_SECURITY: string; - const HTTP2_HEADER_TRANSFER_ENCODING: string; - const HTTP2_HEADER_TE: string; - const HTTP2_HEADER_UPGRADE: string; - const HTTP2_HEADER_USER_AGENT: string; - const HTTP2_HEADER_VARY: string; - const HTTP2_HEADER_VIA: string; - const HTTP2_HEADER_WWW_AUTHENTICATE: string; - const HTTP2_HEADER_HTTP2_SETTINGS: string; - const HTTP2_HEADER_KEEP_ALIVE: string; - const HTTP2_HEADER_PROXY_CONNECTION: string; - const HTTP2_METHOD_ACL: string; - const HTTP2_METHOD_BASELINE_CONTROL: string; - const HTTP2_METHOD_BIND: string; - const HTTP2_METHOD_CHECKIN: string; - const HTTP2_METHOD_CHECKOUT: string; - const HTTP2_METHOD_CONNECT: string; - const HTTP2_METHOD_COPY: string; - const HTTP2_METHOD_DELETE: string; - const HTTP2_METHOD_GET: string; - const HTTP2_METHOD_HEAD: string; - const HTTP2_METHOD_LABEL: string; - const HTTP2_METHOD_LINK: string; - const HTTP2_METHOD_LOCK: string; - const HTTP2_METHOD_MERGE: string; - const HTTP2_METHOD_MKACTIVITY: string; - const HTTP2_METHOD_MKCALENDAR: string; - const HTTP2_METHOD_MKCOL: string; - const HTTP2_METHOD_MKREDIRECTREF: string; - const HTTP2_METHOD_MKWORKSPACE: string; - const HTTP2_METHOD_MOVE: string; - const HTTP2_METHOD_OPTIONS: string; - const HTTP2_METHOD_ORDERPATCH: string; - const HTTP2_METHOD_PATCH: string; - const HTTP2_METHOD_POST: string; - const HTTP2_METHOD_PRI: string; - const HTTP2_METHOD_PROPFIND: string; - const HTTP2_METHOD_PROPPATCH: string; - const HTTP2_METHOD_PUT: string; - const HTTP2_METHOD_REBIND: string; - const HTTP2_METHOD_REPORT: string; - const HTTP2_METHOD_SEARCH: string; - const HTTP2_METHOD_TRACE: string; - const HTTP2_METHOD_UNBIND: string; - const HTTP2_METHOD_UNCHECKOUT: string; - const HTTP2_METHOD_UNLINK: string; - const HTTP2_METHOD_UNLOCK: string; - const HTTP2_METHOD_UPDATE: string; - const HTTP2_METHOD_UPDATEREDIRECTREF: string; - const HTTP2_METHOD_VERSION_CONTROL: string; - const HTTP_STATUS_CONTINUE: number; - const HTTP_STATUS_SWITCHING_PROTOCOLS: number; - const HTTP_STATUS_PROCESSING: number; - const HTTP_STATUS_OK: number; - const HTTP_STATUS_CREATED: number; - const HTTP_STATUS_ACCEPTED: number; - const HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION: number; - const HTTP_STATUS_NO_CONTENT: number; - const HTTP_STATUS_RESET_CONTENT: number; - const HTTP_STATUS_PARTIAL_CONTENT: number; - const HTTP_STATUS_MULTI_STATUS: number; - const HTTP_STATUS_ALREADY_REPORTED: number; - const HTTP_STATUS_IM_USED: number; - const HTTP_STATUS_MULTIPLE_CHOICES: number; - const HTTP_STATUS_MOVED_PERMANENTLY: number; - const HTTP_STATUS_FOUND: number; - const HTTP_STATUS_SEE_OTHER: number; - const HTTP_STATUS_NOT_MODIFIED: number; - const HTTP_STATUS_USE_PROXY: number; - const HTTP_STATUS_TEMPORARY_REDIRECT: number; - const HTTP_STATUS_PERMANENT_REDIRECT: number; - const HTTP_STATUS_BAD_REQUEST: number; - const HTTP_STATUS_UNAUTHORIZED: number; - const HTTP_STATUS_PAYMENT_REQUIRED: number; - const HTTP_STATUS_FORBIDDEN: number; - const HTTP_STATUS_NOT_FOUND: number; - const HTTP_STATUS_METHOD_NOT_ALLOWED: number; - const HTTP_STATUS_NOT_ACCEPTABLE: number; - const HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED: number; - const HTTP_STATUS_REQUEST_TIMEOUT: number; - const HTTP_STATUS_CONFLICT: number; - const HTTP_STATUS_GONE: number; - const HTTP_STATUS_LENGTH_REQUIRED: number; - const HTTP_STATUS_PRECONDITION_FAILED: number; - const HTTP_STATUS_PAYLOAD_TOO_LARGE: number; - const HTTP_STATUS_URI_TOO_LONG: number; - const HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: number; - const HTTP_STATUS_RANGE_NOT_SATISFIABLE: number; - const HTTP_STATUS_EXPECTATION_FAILED: number; - const HTTP_STATUS_TEAPOT: number; - const HTTP_STATUS_MISDIRECTED_REQUEST: number; - const HTTP_STATUS_UNPROCESSABLE_ENTITY: number; - const HTTP_STATUS_LOCKED: number; - const HTTP_STATUS_FAILED_DEPENDENCY: number; - const HTTP_STATUS_UNORDERED_COLLECTION: number; - const HTTP_STATUS_UPGRADE_REQUIRED: number; - const HTTP_STATUS_PRECONDITION_REQUIRED: number; - const HTTP_STATUS_TOO_MANY_REQUESTS: number; - const HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE: number; - const HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS: number; - const HTTP_STATUS_INTERNAL_SERVER_ERROR: number; - const HTTP_STATUS_NOT_IMPLEMENTED: number; - const HTTP_STATUS_BAD_GATEWAY: number; - const HTTP_STATUS_SERVICE_UNAVAILABLE: number; - const HTTP_STATUS_GATEWAY_TIMEOUT: number; - const HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED: number; - const HTTP_STATUS_VARIANT_ALSO_NEGOTIATES: number; - const HTTP_STATUS_INSUFFICIENT_STORAGE: number; - const HTTP_STATUS_LOOP_DETECTED: number; - const HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED: number; - const HTTP_STATUS_NOT_EXTENDED: number; - const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED: number; - } - /** - * This symbol can be set as a property on the HTTP/2 headers object with - * an array value in order to provide a list of headers considered sensitive. - */ - export const sensitiveHeaders: symbol; - /** - * Returns an object containing the default settings for an `Http2Session`instance. This method returns a new object instance every time it is called - * so instances returned may be safely modified for use. - * @since v8.4.0 - */ - export function getDefaultSettings(): Settings; - /** - * Returns a `Buffer` instance containing serialized representation of the given - * HTTP/2 settings as specified in the [HTTP/2](https://tools.ietf.org/html/rfc7540) specification. This is intended - * for use with the `HTTP2-Settings` header field. - * - * ```js - * const http2 = require('http2'); - * - * const packed = http2.getPackedSettings({ enablePush: false }); - * - * console.log(packed.toString('base64')); - * // Prints: AAIAAAAA - * ``` - * @since v8.4.0 - */ - export function getPackedSettings(settings: Settings): Buffer; - /** - * Returns a `HTTP/2 Settings Object` containing the deserialized settings from - * the given `Buffer` as generated by `http2.getPackedSettings()`. - * @since v8.4.0 - * @param buf The packed settings. - */ - export function getUnpackedSettings(buf: Uint8Array): Settings; - /** - * Returns a `net.Server` instance that creates and manages `Http2Session`instances. - * - * Since there are no browsers known that support[unencrypted HTTP/2](https://http2.github.io/faq/#does-http2-require-encryption), the use of {@link createSecureServer} is necessary when - * communicating - * with browser clients. - * - * ```js - * const http2 = require('http2'); - * - * // Create an unencrypted HTTP/2 server. - * // Since there are no browsers known that support - * // unencrypted HTTP/2, the use of `http2.createSecureServer()` - * // is necessary when communicating with browser clients. - * const server = http2.createServer(); - * - * server.on('stream', (stream, headers) => { - * stream.respond({ - * 'content-type': 'text/html; charset=utf-8', - * ':status': 200 - * }); - * stream.end('

Hello World

'); - * }); - * - * server.listen(80); - * ``` - * @since v8.4.0 - * @param onRequestHandler See `Compatibility API` - */ - export function createServer(onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2Server; - export function createServer(options: ServerOptions, onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2Server; - /** - * Returns a `tls.Server` instance that creates and manages `Http2Session`instances. - * - * ```js - * const http2 = require('http2'); - * const fs = require('fs'); - * - * const options = { - * key: fs.readFileSync('server-key.pem'), - * cert: fs.readFileSync('server-cert.pem') - * }; - * - * // Create a secure HTTP/2 server - * const server = http2.createSecureServer(options); - * - * server.on('stream', (stream, headers) => { - * stream.respond({ - * 'content-type': 'text/html; charset=utf-8', - * ':status': 200 - * }); - * stream.end('

Hello World

'); - * }); - * - * server.listen(80); - * ``` - * @since v8.4.0 - * @param onRequestHandler See `Compatibility API` - */ - export function createSecureServer(onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2SecureServer; - export function createSecureServer(options: SecureServerOptions, onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2SecureServer; - /** - * Returns a `ClientHttp2Session` instance. - * - * ```js - * const http2 = require('http2'); - * const client = http2.connect('https://localhost:1234'); - * - * // Use the client - * - * client.close(); - * ``` - * @since v8.4.0 - * @param authority The remote HTTP/2 server to connect to. This must be in the form of a minimal, valid URL with the `http://` or `https://` prefix, host name, and IP port (if a non-default port - * is used). Userinfo (user ID and password), path, querystring, and fragment details in the URL will be ignored. - * @param listener Will be registered as a one-time listener of the {@link 'connect'} event. - */ - export function connect(authority: string | url.URL, listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): ClientHttp2Session; - export function connect( - authority: string | url.URL, - options?: ClientSessionOptions | SecureClientSessionOptions, - listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void - ): ClientHttp2Session; -} -declare module 'node:http2' { - export * from 'http2'; -} diff --git a/WechatBot/node_modules/@types/node/https.d.ts b/WechatBot/node_modules/@types/node/https.d.ts deleted file mode 100644 index 4b740178b..000000000 --- a/WechatBot/node_modules/@types/node/https.d.ts +++ /dev/null @@ -1,391 +0,0 @@ -/** - * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a - * separate module. - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/https.js) - */ -declare module 'https' { - import { Duplex } from 'node:stream'; - import * as tls from 'node:tls'; - import * as http from 'node:http'; - import { URL } from 'node:url'; - type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions; - type RequestOptions = http.RequestOptions & - tls.SecureContextOptions & { - rejectUnauthorized?: boolean | undefined; // Defaults to true - servername?: string | undefined; // SNI TLS Extension - }; - interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { - rejectUnauthorized?: boolean | undefined; - maxCachedSessions?: number | undefined; - } - /** - * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information. - * @since v0.4.5 - */ - class Agent extends http.Agent { - constructor(options?: AgentOptions); - options: AgentOptions; - } - interface Server extends http.Server {} - /** - * See `http.Server` for more information. - * @since v0.3.4 - */ - class Server extends tls.Server { - constructor(requestListener?: http.RequestListener); - constructor(options: ServerOptions, requestListener?: http.RequestListener); - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; - addListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; - addListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; - addListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; - addListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; - addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - addListener(event: 'close', listener: () => void): this; - addListener(event: 'connection', listener: (socket: Duplex) => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'listening', listener: () => void): this; - addListener(event: 'checkContinue', listener: http.RequestListener): this; - addListener(event: 'checkExpectation', listener: http.RequestListener): this; - addListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; - addListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; - addListener(event: 'request', listener: http.RequestListener): this; - addListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; - emit(event: string, ...args: any[]): boolean; - emit(event: 'keylog', line: Buffer, tlsSocket: tls.TLSSocket): boolean; - emit(event: 'newSession', sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): boolean; - emit(event: 'OCSPRequest', certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean; - emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean; - emit(event: 'secureConnection', tlsSocket: tls.TLSSocket): boolean; - emit(event: 'tlsClientError', err: Error, tlsSocket: tls.TLSSocket): boolean; - emit(event: 'close'): boolean; - emit(event: 'connection', socket: Duplex): boolean; - emit(event: 'error', err: Error): boolean; - emit(event: 'listening'): boolean; - emit(event: 'checkContinue', req: http.IncomingMessage, res: http.ServerResponse): boolean; - emit(event: 'checkExpectation', req: http.IncomingMessage, res: http.ServerResponse): boolean; - emit(event: 'clientError', err: Error, socket: Duplex): boolean; - emit(event: 'connect', req: http.IncomingMessage, socket: Duplex, head: Buffer): boolean; - emit(event: 'request', req: http.IncomingMessage, res: http.ServerResponse): boolean; - emit(event: 'upgrade', req: http.IncomingMessage, socket: Duplex, head: Buffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; - on(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; - on(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; - on(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; - on(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; - on(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'connection', listener: (socket: Duplex) => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'listening', listener: () => void): this; - on(event: 'checkContinue', listener: http.RequestListener): this; - on(event: 'checkExpectation', listener: http.RequestListener): this; - on(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; - on(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; - on(event: 'request', listener: http.RequestListener): this; - on(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; - once(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; - once(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; - once(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; - once(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; - once(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'connection', listener: (socket: Duplex) => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'listening', listener: () => void): this; - once(event: 'checkContinue', listener: http.RequestListener): this; - once(event: 'checkExpectation', listener: http.RequestListener): this; - once(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; - once(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; - once(event: 'request', listener: http.RequestListener): this; - once(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; - prependListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; - prependListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; - prependListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; - prependListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; - prependListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'connection', listener: (socket: Duplex) => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'listening', listener: () => void): this; - prependListener(event: 'checkContinue', listener: http.RequestListener): this; - prependListener(event: 'checkExpectation', listener: http.RequestListener): this; - prependListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; - prependListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; - prependListener(event: 'request', listener: http.RequestListener): this; - prependListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; - prependOnceListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; - prependOnceListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; - prependOnceListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'connection', listener: (socket: Duplex) => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'listening', listener: () => void): this; - prependOnceListener(event: 'checkContinue', listener: http.RequestListener): this; - prependOnceListener(event: 'checkExpectation', listener: http.RequestListener): this; - prependOnceListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; - prependOnceListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; - prependOnceListener(event: 'request', listener: http.RequestListener): this; - prependOnceListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; - } - /** - * ```js - * // curl -k https://localhost:8000/ - * const https = require('https'); - * const fs = require('fs'); - * - * const options = { - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem') - * }; - * - * https.createServer(options, (req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * ``` - * - * Or - * - * ```js - * const https = require('https'); - * const fs = require('fs'); - * - * const options = { - * pfx: fs.readFileSync('test/fixtures/test_cert.pfx'), - * passphrase: 'sample' - * }; - * - * https.createServer(options, (req, res) => { - * res.writeHead(200); - * res.end('hello world\n'); - * }).listen(8000); - * ``` - * @since v0.3.4 - * @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`. - * @param requestListener A listener to be added to the `'request'` event. - */ - function createServer(requestListener?: http.RequestListener): Server; - function createServer(options: ServerOptions, requestListener?: http.RequestListener): Server; - /** - * Makes a request to a secure web server. - * - * The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`,`honorCipherOrder`, `key`, `passphrase`, - * `pfx`, `rejectUnauthorized`,`secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`,`highWaterMark`. - * - * `options` can be an object, a string, or a `URL` object. If `options` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to - * upload a file with a POST request, then write to the `ClientRequest` object. - * - * ```js - * const https = require('https'); - * - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET' - * }; - * - * const req = https.request(options, (res) => { - * console.log('statusCode:', res.statusCode); - * console.log('headers:', res.headers); - * - * res.on('data', (d) => { - * process.stdout.write(d); - * }); - * }); - * - * req.on('error', (e) => { - * console.error(e); - * }); - * req.end(); - * ``` - * - * Example using options from `tls.connect()`: - * - * ```js - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET', - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem') - * }; - * options.agent = new https.Agent(options); - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Alternatively, opt out of connection pooling by not using an `Agent`. - * - * ```js - * const options = { - * hostname: 'encrypted.google.com', - * port: 443, - * path: '/', - * method: 'GET', - * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), - * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), - * agent: false - * }; - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Example using a `URL` as `options`: - * - * ```js - * const options = new URL('https://abc:xyz@example.com'); - * - * const req = https.request(options, (res) => { - * // ... - * }); - * ``` - * - * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`): - * - * ```js - * const tls = require('tls'); - * const https = require('https'); - * const crypto = require('crypto'); - * - * function sha256(s) { - * return crypto.createHash('sha256').update(s).digest('base64'); - * } - * const options = { - * hostname: 'github.com', - * port: 443, - * path: '/', - * method: 'GET', - * checkServerIdentity: function(host, cert) { - * // Make sure the certificate is issued to the host we are connected to - * const err = tls.checkServerIdentity(host, cert); - * if (err) { - * return err; - * } - * - * // Pin the public key, similar to HPKP pin-sha25 pinning - * const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU='; - * if (sha256(cert.pubkey) !== pubkey256) { - * const msg = 'Certificate verification error: ' + - * `The public key of '${cert.subject.CN}' ` + - * 'does not match our pinned fingerprint'; - * return new Error(msg); - * } - * - * // Pin the exact certificate, rather than the pub key - * const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' + - * 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16'; - * if (cert.fingerprint256 !== cert256) { - * const msg = 'Certificate verification error: ' + - * `The certificate of '${cert.subject.CN}' ` + - * 'does not match our pinned fingerprint'; - * return new Error(msg); - * } - * - * // This loop is informational only. - * // Print the certificate and public key fingerprints of all certs in the - * // chain. Its common to pin the public key of the issuer on the public - * // internet, while pinning the public key of the service in sensitive - * // environments. - * do { - * console.log('Subject Common Name:', cert.subject.CN); - * console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256); - * - * hash = crypto.createHash('sha256'); - * console.log(' Public key ping-sha256:', sha256(cert.pubkey)); - * - * lastprint256 = cert.fingerprint256; - * cert = cert.issuerCertificate; - * } while (cert.fingerprint256 !== lastprint256); - * - * }, - * }; - * - * options.agent = new https.Agent(options); - * const req = https.request(options, (res) => { - * console.log('All OK. Server matched our pinned cert or public key'); - * console.log('statusCode:', res.statusCode); - * // Print the HPKP values - * console.log('headers:', res.headers['public-key-pins']); - * - * res.on('data', (d) => {}); - * }); - * - * req.on('error', (e) => { - * console.error(e.message); - * }); - * req.end(); - * ``` - * - * Outputs for example: - * - * ```text - * Subject Common Name: github.com - * Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16 - * Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU= - * Subject Common Name: DigiCert SHA2 Extended Validation Server CA - * Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A - * Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho= - * Subject Common Name: DigiCert High Assurance EV Root CA - * Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF - * Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18= - * All OK. Server matched our pinned cert or public key - * statusCode: 200 - * headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho="; - * pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4="; - * pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains - * ``` - * @since v0.3.6 - * @param options Accepts all `options` from `request`, with some differences in default values: - */ - function request(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; - function request(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; - /** - * Like `http.get()` but for HTTPS. - * - * `options` can be an object, a string, or a `URL` object. If `options` is a - * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. - * - * ```js - * const https = require('https'); - * - * https.get('https://encrypted.google.com/', (res) => { - * console.log('statusCode:', res.statusCode); - * console.log('headers:', res.headers); - * - * res.on('data', (d) => { - * process.stdout.write(d); - * }); - * - * }).on('error', (e) => { - * console.error(e); - * }); - * ``` - * @since v0.3.6 - * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`. - */ - function get(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; - function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; - let globalAgent: Agent; -} -declare module 'node:https' { - export * from 'https'; -} diff --git a/WechatBot/node_modules/@types/node/index.d.ts b/WechatBot/node_modules/@types/node/index.d.ts deleted file mode 100644 index 9636fae7c..000000000 --- a/WechatBot/node_modules/@types/node/index.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -// Type definitions for non-npm package Node.js 16.9 -// Project: https://nodejs.org/ -// Definitions by: Microsoft TypeScript -// DefinitelyTyped -// Alberto Schiabel -// Alvis HT Tang -// Andrew Makarov -// Benjamin Toueg -// Chigozirim C. -// David Junger -// Deividas Bakanas -// Eugene Y. Q. Shen -// Hannes Magnusson -// Huw -// Kelvin Jin -// Klaus Meinhardt -// Lishude -// Mariusz Wiktorczyk -// Mohsen Azimi -// Nicolas Even -// Nikita Galkin -// Parambir Singh -// Sebastian Silbermann -// Simon Schick -// Thomas den Hollander -// Wilco Bakker -// wwwy3y3 -// Samuel Ainsworth -// Kyle Uehlein -// Thanik Bhongbhibhat -// Marcin Kopacz -// Trivikram Kamat -// Minh Son Nguyen -// Junxiao Shi -// Ilia Baryshnikov -// ExE Boss -// Surasak Chaisurin -// Piotr Błażejewicz -// Anna Henningsen -// Jason Kwok -// Victor Perin -// Yongsheng Zhang -// NodeJS Contributors -// Linus Unnebäck -// wafuwafu13 -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** - * License for programmatically and manually incorporated - * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc - * - * Copyright Node.js contributors. All rights reserved. - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - */ - -// NOTE: These definitions support NodeJS and TypeScript 3.7+. - -// Reference required types from the default lib: -/// -/// -/// -/// - -// Base definitions for all NodeJS modules that are not specific to any version of TypeScript: -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// -/// - -/// diff --git a/WechatBot/node_modules/@types/node/inspector.d.ts b/WechatBot/node_modules/@types/node/inspector.d.ts deleted file mode 100644 index 0317192ea..000000000 --- a/WechatBot/node_modules/@types/node/inspector.d.ts +++ /dev/null @@ -1,2738 +0,0 @@ -// tslint:disable-next-line:dt-header -// Type definitions for inspector - -// These definitions are auto-generated. -// Please see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/19330 -// for more information. - -// tslint:disable:max-line-length - -/** - * The `inspector` module provides an API for interacting with the V8 inspector. - * - * It can be accessed using: - * - * ```js - * const inspector = require('inspector'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/inspector.js) - */ -declare module 'inspector' { - import EventEmitter = require('node:events'); - interface InspectorNotification { - method: string; - params: T; - } - namespace Schema { - /** - * Description of the protocol domain. - */ - interface Domain { - /** - * Domain name. - */ - name: string; - /** - * Domain version. - */ - version: string; - } - interface GetDomainsReturnType { - /** - * List of supported domains. - */ - domains: Domain[]; - } - } - namespace Runtime { - /** - * Unique script identifier. - */ - type ScriptId = string; - /** - * Unique object identifier. - */ - type RemoteObjectId = string; - /** - * Primitive value which cannot be JSON-stringified. - */ - type UnserializableValue = string; - /** - * Mirror object referencing original JavaScript object. - */ - interface RemoteObject { - /** - * Object type. - */ - type: string; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - /** - * Object class (constructor) name. Specified for object type values only. - */ - className?: string | undefined; - /** - * Remote object value in case of primitive values or JSON values (if it was requested). - */ - value?: any; - /** - * Primitive value which can not be JSON-stringified does not have value, but gets this property. - */ - unserializableValue?: UnserializableValue | undefined; - /** - * String representation of the object. - */ - description?: string | undefined; - /** - * Unique object identifier (for non-primitive values). - */ - objectId?: RemoteObjectId | undefined; - /** - * Preview containing abbreviated property values. Specified for object type values only. - * @experimental - */ - preview?: ObjectPreview | undefined; - /** - * @experimental - */ - customPreview?: CustomPreview | undefined; - } - /** - * @experimental - */ - interface CustomPreview { - header: string; - hasBody: boolean; - formatterObjectId: RemoteObjectId; - bindRemoteObjectFunctionId: RemoteObjectId; - configObjectId?: RemoteObjectId | undefined; - } - /** - * Object containing abbreviated remote object value. - * @experimental - */ - interface ObjectPreview { - /** - * Object type. - */ - type: string; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - /** - * String representation of the object. - */ - description?: string | undefined; - /** - * True iff some of the properties or entries of the original object did not fit. - */ - overflow: boolean; - /** - * List of the properties. - */ - properties: PropertyPreview[]; - /** - * List of the entries. Specified for map and set subtype values only. - */ - entries?: EntryPreview[] | undefined; - } - /** - * @experimental - */ - interface PropertyPreview { - /** - * Property name. - */ - name: string; - /** - * Object type. Accessor means that the property itself is an accessor property. - */ - type: string; - /** - * User-friendly property value string. - */ - value?: string | undefined; - /** - * Nested value preview. - */ - valuePreview?: ObjectPreview | undefined; - /** - * Object subtype hint. Specified for object type values only. - */ - subtype?: string | undefined; - } - /** - * @experimental - */ - interface EntryPreview { - /** - * Preview of the key. Specified for map-like collection entries. - */ - key?: ObjectPreview | undefined; - /** - * Preview of the value. - */ - value: ObjectPreview; - } - /** - * Object property descriptor. - */ - interface PropertyDescriptor { - /** - * Property name or symbol description. - */ - name: string; - /** - * The value associated with the property. - */ - value?: RemoteObject | undefined; - /** - * True if the value associated with the property may be changed (data descriptors only). - */ - writable?: boolean | undefined; - /** - * A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only). - */ - get?: RemoteObject | undefined; - /** - * A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only). - */ - set?: RemoteObject | undefined; - /** - * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object. - */ - configurable: boolean; - /** - * True if this property shows up during enumeration of the properties on the corresponding object. - */ - enumerable: boolean; - /** - * True if the result was thrown during the evaluation. - */ - wasThrown?: boolean | undefined; - /** - * True if the property is owned for the object. - */ - isOwn?: boolean | undefined; - /** - * Property symbol object, if the property is of the symbol type. - */ - symbol?: RemoteObject | undefined; - } - /** - * Object internal property descriptor. This property isn't normally visible in JavaScript code. - */ - interface InternalPropertyDescriptor { - /** - * Conventional property name. - */ - name: string; - /** - * The value associated with the property. - */ - value?: RemoteObject | undefined; - } - /** - * Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified. - */ - interface CallArgument { - /** - * Primitive value or serializable javascript object. - */ - value?: any; - /** - * Primitive value which can not be JSON-stringified. - */ - unserializableValue?: UnserializableValue | undefined; - /** - * Remote object handle. - */ - objectId?: RemoteObjectId | undefined; - } - /** - * Id of an execution context. - */ - type ExecutionContextId = number; - /** - * Description of an isolated world. - */ - interface ExecutionContextDescription { - /** - * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed. - */ - id: ExecutionContextId; - /** - * Execution context origin. - */ - origin: string; - /** - * Human readable name describing given context. - */ - name: string; - /** - * Embedder-specific auxiliary data. - */ - auxData?: {} | undefined; - } - /** - * Detailed information about exception (or error) that was thrown during script compilation or execution. - */ - interface ExceptionDetails { - /** - * Exception id. - */ - exceptionId: number; - /** - * Exception text, which should be used together with exception object when available. - */ - text: string; - /** - * Line number of the exception location (0-based). - */ - lineNumber: number; - /** - * Column number of the exception location (0-based). - */ - columnNumber: number; - /** - * Script ID of the exception location. - */ - scriptId?: ScriptId | undefined; - /** - * URL of the exception location, to be used when the script was not reported. - */ - url?: string | undefined; - /** - * JavaScript stack trace if available. - */ - stackTrace?: StackTrace | undefined; - /** - * Exception object if available. - */ - exception?: RemoteObject | undefined; - /** - * Identifier of the context where exception happened. - */ - executionContextId?: ExecutionContextId | undefined; - } - /** - * Number of milliseconds since epoch. - */ - type Timestamp = number; - /** - * Stack entry for runtime errors and assertions. - */ - interface CallFrame { - /** - * JavaScript function name. - */ - functionName: string; - /** - * JavaScript script id. - */ - scriptId: ScriptId; - /** - * JavaScript script name or url. - */ - url: string; - /** - * JavaScript script line number (0-based). - */ - lineNumber: number; - /** - * JavaScript script column number (0-based). - */ - columnNumber: number; - } - /** - * Call frames for assertions or error messages. - */ - interface StackTrace { - /** - * String label of this stack trace. For async traces this may be a name of the function that initiated the async call. - */ - description?: string | undefined; - /** - * JavaScript function name. - */ - callFrames: CallFrame[]; - /** - * Asynchronous JavaScript stack trace that preceded this stack, if available. - */ - parent?: StackTrace | undefined; - /** - * Asynchronous JavaScript stack trace that preceded this stack, if available. - * @experimental - */ - parentId?: StackTraceId | undefined; - } - /** - * Unique identifier of current debugger. - * @experimental - */ - type UniqueDebuggerId = string; - /** - * If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages. - * @experimental - */ - interface StackTraceId { - id: string; - debuggerId?: UniqueDebuggerId | undefined; - } - interface EvaluateParameterType { - /** - * Expression to evaluate. - */ - expression: string; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - /** - * Determines whether Command Line API should be available during the evaluation. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - contextId?: ExecutionContextId | undefined; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should be treated as initiated by user in the UI. - */ - userGesture?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - } - interface AwaitPromiseParameterType { - /** - * Identifier of the promise. - */ - promiseObjectId: RemoteObjectId; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - */ - generatePreview?: boolean | undefined; - } - interface CallFunctionOnParameterType { - /** - * Declaration of the function to call. - */ - functionDeclaration: string; - /** - * Identifier of the object to call function on. Either objectId or executionContextId should be specified. - */ - objectId?: RemoteObjectId | undefined; - /** - * Call arguments. All call arguments must belong to the same JavaScript world as the target object. - */ - arguments?: CallArgument[] | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object which should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should be treated as initiated by user in the UI. - */ - userGesture?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - /** - * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified. - */ - executionContextId?: ExecutionContextId | undefined; - /** - * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object. - */ - objectGroup?: string | undefined; - } - interface GetPropertiesParameterType { - /** - * Identifier of the object to return properties for. - */ - objectId: RemoteObjectId; - /** - * If true, returns properties belonging only to the element itself, not to its prototype chain. - */ - ownProperties?: boolean | undefined; - /** - * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either. - * @experimental - */ - accessorPropertiesOnly?: boolean | undefined; - /** - * Whether preview should be generated for the results. - * @experimental - */ - generatePreview?: boolean | undefined; - } - interface ReleaseObjectParameterType { - /** - * Identifier of the object to release. - */ - objectId: RemoteObjectId; - } - interface ReleaseObjectGroupParameterType { - /** - * Symbolic object group name. - */ - objectGroup: string; - } - interface SetCustomObjectFormatterEnabledParameterType { - enabled: boolean; - } - interface CompileScriptParameterType { - /** - * Expression to compile. - */ - expression: string; - /** - * Source url to be set for the script. - */ - sourceURL: string; - /** - * Specifies whether the compiled script should be persisted. - */ - persistScript: boolean; - /** - * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - executionContextId?: ExecutionContextId | undefined; - } - interface RunScriptParameterType { - /** - * Id of the script to run. - */ - scriptId: ScriptId; - /** - * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. - */ - executionContextId?: ExecutionContextId | undefined; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Determines whether Command Line API should be available during the evaluation. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object which should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - */ - generatePreview?: boolean | undefined; - /** - * Whether execution should await for resulting value and return once awaited promise is resolved. - */ - awaitPromise?: boolean | undefined; - } - interface QueryObjectsParameterType { - /** - * Identifier of the prototype to return objects for. - */ - prototypeObjectId: RemoteObjectId; - } - interface GlobalLexicalScopeNamesParameterType { - /** - * Specifies in which execution context to lookup global scope variables. - */ - executionContextId?: ExecutionContextId | undefined; - } - interface EvaluateReturnType { - /** - * Evaluation result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface AwaitPromiseReturnType { - /** - * Promise result. Will contain rejected value if promise was rejected. - */ - result: RemoteObject; - /** - * Exception details if stack strace is available. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface CallFunctionOnReturnType { - /** - * Call result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface GetPropertiesReturnType { - /** - * Object properties. - */ - result: PropertyDescriptor[]; - /** - * Internal object properties (only of the element itself). - */ - internalProperties?: InternalPropertyDescriptor[] | undefined; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface CompileScriptReturnType { - /** - * Id of the script. - */ - scriptId?: ScriptId | undefined; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface RunScriptReturnType { - /** - * Run result. - */ - result: RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: ExceptionDetails | undefined; - } - interface QueryObjectsReturnType { - /** - * Array with objects. - */ - objects: RemoteObject; - } - interface GlobalLexicalScopeNamesReturnType { - names: string[]; - } - interface ExecutionContextCreatedEventDataType { - /** - * A newly created execution context. - */ - context: ExecutionContextDescription; - } - interface ExecutionContextDestroyedEventDataType { - /** - * Id of the destroyed context - */ - executionContextId: ExecutionContextId; - } - interface ExceptionThrownEventDataType { - /** - * Timestamp of the exception. - */ - timestamp: Timestamp; - exceptionDetails: ExceptionDetails; - } - interface ExceptionRevokedEventDataType { - /** - * Reason describing why exception was revoked. - */ - reason: string; - /** - * The id of revoked exception, as reported in exceptionThrown. - */ - exceptionId: number; - } - interface ConsoleAPICalledEventDataType { - /** - * Type of the call. - */ - type: string; - /** - * Call arguments. - */ - args: RemoteObject[]; - /** - * Identifier of the context where the call was made. - */ - executionContextId: ExecutionContextId; - /** - * Call timestamp. - */ - timestamp: Timestamp; - /** - * Stack trace captured when the call was made. - */ - stackTrace?: StackTrace | undefined; - /** - * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context. - * @experimental - */ - context?: string | undefined; - } - interface InspectRequestedEventDataType { - object: RemoteObject; - hints: {}; - } - } - namespace Debugger { - /** - * Breakpoint identifier. - */ - type BreakpointId = string; - /** - * Call frame identifier. - */ - type CallFrameId = string; - /** - * Location in the source code. - */ - interface Location { - /** - * Script identifier as reported in the Debugger.scriptParsed. - */ - scriptId: Runtime.ScriptId; - /** - * Line number in the script (0-based). - */ - lineNumber: number; - /** - * Column number in the script (0-based). - */ - columnNumber?: number | undefined; - } - /** - * Location in the source code. - * @experimental - */ - interface ScriptPosition { - lineNumber: number; - columnNumber: number; - } - /** - * JavaScript call frame. Array of call frames form the call stack. - */ - interface CallFrame { - /** - * Call frame identifier. This identifier is only valid while the virtual machine is paused. - */ - callFrameId: CallFrameId; - /** - * Name of the JavaScript function called on this call frame. - */ - functionName: string; - /** - * Location in the source code. - */ - functionLocation?: Location | undefined; - /** - * Location in the source code. - */ - location: Location; - /** - * JavaScript script name or url. - */ - url: string; - /** - * Scope chain for this call frame. - */ - scopeChain: Scope[]; - /** - * this object for this call frame. - */ - this: Runtime.RemoteObject; - /** - * The value being returned, if the function is at return point. - */ - returnValue?: Runtime.RemoteObject | undefined; - } - /** - * Scope description. - */ - interface Scope { - /** - * Scope type. - */ - type: string; - /** - * Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties. - */ - object: Runtime.RemoteObject; - name?: string | undefined; - /** - * Location in the source code where scope starts - */ - startLocation?: Location | undefined; - /** - * Location in the source code where scope ends - */ - endLocation?: Location | undefined; - } - /** - * Search match for resource. - */ - interface SearchMatch { - /** - * Line number in resource content. - */ - lineNumber: number; - /** - * Line with match content. - */ - lineContent: string; - } - interface BreakLocation { - /** - * Script identifier as reported in the Debugger.scriptParsed. - */ - scriptId: Runtime.ScriptId; - /** - * Line number in the script (0-based). - */ - lineNumber: number; - /** - * Column number in the script (0-based). - */ - columnNumber?: number | undefined; - type?: string | undefined; - } - interface SetBreakpointsActiveParameterType { - /** - * New value for breakpoints active state. - */ - active: boolean; - } - interface SetSkipAllPausesParameterType { - /** - * New value for skip pauses state. - */ - skip: boolean; - } - interface SetBreakpointByUrlParameterType { - /** - * Line number to set breakpoint at. - */ - lineNumber: number; - /** - * URL of the resources to set breakpoint on. - */ - url?: string | undefined; - /** - * Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified. - */ - urlRegex?: string | undefined; - /** - * Script hash of the resources to set breakpoint on. - */ - scriptHash?: string | undefined; - /** - * Offset in the line to set breakpoint at. - */ - columnNumber?: number | undefined; - /** - * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. - */ - condition?: string | undefined; - } - interface SetBreakpointParameterType { - /** - * Location to set breakpoint in. - */ - location: Location; - /** - * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. - */ - condition?: string | undefined; - } - interface RemoveBreakpointParameterType { - breakpointId: BreakpointId; - } - interface GetPossibleBreakpointsParameterType { - /** - * Start of range to search possible breakpoint locations in. - */ - start: Location; - /** - * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range. - */ - end?: Location | undefined; - /** - * Only consider locations which are in the same (non-nested) function as start. - */ - restrictToFunction?: boolean | undefined; - } - interface ContinueToLocationParameterType { - /** - * Location to continue to. - */ - location: Location; - targetCallFrames?: string | undefined; - } - interface PauseOnAsyncCallParameterType { - /** - * Debugger will pause when async call with given stack trace is started. - */ - parentStackTraceId: Runtime.StackTraceId; - } - interface StepIntoParameterType { - /** - * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause. - * @experimental - */ - breakOnAsyncCall?: boolean | undefined; - } - interface GetStackTraceParameterType { - stackTraceId: Runtime.StackTraceId; - } - interface SearchInContentParameterType { - /** - * Id of the script to search in. - */ - scriptId: Runtime.ScriptId; - /** - * String to search for. - */ - query: string; - /** - * If true, search is case sensitive. - */ - caseSensitive?: boolean | undefined; - /** - * If true, treats string parameter as regex. - */ - isRegex?: boolean | undefined; - } - interface SetScriptSourceParameterType { - /** - * Id of the script to edit. - */ - scriptId: Runtime.ScriptId; - /** - * New content of the script. - */ - scriptSource: string; - /** - * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code. - */ - dryRun?: boolean | undefined; - } - interface RestartFrameParameterType { - /** - * Call frame identifier to evaluate on. - */ - callFrameId: CallFrameId; - } - interface GetScriptSourceParameterType { - /** - * Id of the script to get source for. - */ - scriptId: Runtime.ScriptId; - } - interface SetPauseOnExceptionsParameterType { - /** - * Pause on exceptions mode. - */ - state: string; - } - interface EvaluateOnCallFrameParameterType { - /** - * Call frame identifier to evaluate on. - */ - callFrameId: CallFrameId; - /** - * Expression to evaluate. - */ - expression: string; - /** - * String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup). - */ - objectGroup?: string | undefined; - /** - * Specifies whether command line API should be available to the evaluated expression, defaults to false. - */ - includeCommandLineAPI?: boolean | undefined; - /** - * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. - */ - silent?: boolean | undefined; - /** - * Whether the result is expected to be a JSON object that should be sent by value. - */ - returnByValue?: boolean | undefined; - /** - * Whether preview should be generated for the result. - * @experimental - */ - generatePreview?: boolean | undefined; - /** - * Whether to throw an exception if side effect cannot be ruled out during evaluation. - */ - throwOnSideEffect?: boolean | undefined; - } - interface SetVariableValueParameterType { - /** - * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually. - */ - scopeNumber: number; - /** - * Variable name. - */ - variableName: string; - /** - * New variable value. - */ - newValue: Runtime.CallArgument; - /** - * Id of callframe that holds variable. - */ - callFrameId: CallFrameId; - } - interface SetReturnValueParameterType { - /** - * New return value. - */ - newValue: Runtime.CallArgument; - } - interface SetAsyncCallStackDepthParameterType { - /** - * Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default). - */ - maxDepth: number; - } - interface SetBlackboxPatternsParameterType { - /** - * Array of regexps that will be used to check script url for blackbox state. - */ - patterns: string[]; - } - interface SetBlackboxedRangesParameterType { - /** - * Id of the script. - */ - scriptId: Runtime.ScriptId; - positions: ScriptPosition[]; - } - interface EnableReturnType { - /** - * Unique identifier of the debugger. - * @experimental - */ - debuggerId: Runtime.UniqueDebuggerId; - } - interface SetBreakpointByUrlReturnType { - /** - * Id of the created breakpoint for further reference. - */ - breakpointId: BreakpointId; - /** - * List of the locations this breakpoint resolved into upon addition. - */ - locations: Location[]; - } - interface SetBreakpointReturnType { - /** - * Id of the created breakpoint for further reference. - */ - breakpointId: BreakpointId; - /** - * Location this breakpoint resolved into. - */ - actualLocation: Location; - } - interface GetPossibleBreakpointsReturnType { - /** - * List of the possible breakpoint locations. - */ - locations: BreakLocation[]; - } - interface GetStackTraceReturnType { - stackTrace: Runtime.StackTrace; - } - interface SearchInContentReturnType { - /** - * List of search matches. - */ - result: SearchMatch[]; - } - interface SetScriptSourceReturnType { - /** - * New stack trace in case editing has happened while VM was stopped. - */ - callFrames?: CallFrame[] | undefined; - /** - * Whether current call stack was modified after applying the changes. - */ - stackChanged?: boolean | undefined; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - /** - * Exception details if any. - */ - exceptionDetails?: Runtime.ExceptionDetails | undefined; - } - interface RestartFrameReturnType { - /** - * New stack trace. - */ - callFrames: CallFrame[]; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - } - interface GetScriptSourceReturnType { - /** - * Script source. - */ - scriptSource: string; - } - interface EvaluateOnCallFrameReturnType { - /** - * Object wrapper for the evaluation result. - */ - result: Runtime.RemoteObject; - /** - * Exception details. - */ - exceptionDetails?: Runtime.ExceptionDetails | undefined; - } - interface ScriptParsedEventDataType { - /** - * Identifier of the script parsed. - */ - scriptId: Runtime.ScriptId; - /** - * URL or name of the script parsed (if any). - */ - url: string; - /** - * Line offset of the script within the resource with given URL (for script tags). - */ - startLine: number; - /** - * Column offset of the script within the resource with given URL. - */ - startColumn: number; - /** - * Last line of the script. - */ - endLine: number; - /** - * Length of the last line of the script. - */ - endColumn: number; - /** - * Specifies script creation context. - */ - executionContextId: Runtime.ExecutionContextId; - /** - * Content hash of the script. - */ - hash: string; - /** - * Embedder-specific auxiliary data. - */ - executionContextAuxData?: {} | undefined; - /** - * True, if this script is generated as a result of the live edit operation. - * @experimental - */ - isLiveEdit?: boolean | undefined; - /** - * URL of source map associated with script (if any). - */ - sourceMapURL?: string | undefined; - /** - * True, if this script has sourceURL. - */ - hasSourceURL?: boolean | undefined; - /** - * True, if this script is ES6 module. - */ - isModule?: boolean | undefined; - /** - * This script length. - */ - length?: number | undefined; - /** - * JavaScript top stack frame of where the script parsed event was triggered if available. - * @experimental - */ - stackTrace?: Runtime.StackTrace | undefined; - } - interface ScriptFailedToParseEventDataType { - /** - * Identifier of the script parsed. - */ - scriptId: Runtime.ScriptId; - /** - * URL or name of the script parsed (if any). - */ - url: string; - /** - * Line offset of the script within the resource with given URL (for script tags). - */ - startLine: number; - /** - * Column offset of the script within the resource with given URL. - */ - startColumn: number; - /** - * Last line of the script. - */ - endLine: number; - /** - * Length of the last line of the script. - */ - endColumn: number; - /** - * Specifies script creation context. - */ - executionContextId: Runtime.ExecutionContextId; - /** - * Content hash of the script. - */ - hash: string; - /** - * Embedder-specific auxiliary data. - */ - executionContextAuxData?: {} | undefined; - /** - * URL of source map associated with script (if any). - */ - sourceMapURL?: string | undefined; - /** - * True, if this script has sourceURL. - */ - hasSourceURL?: boolean | undefined; - /** - * True, if this script is ES6 module. - */ - isModule?: boolean | undefined; - /** - * This script length. - */ - length?: number | undefined; - /** - * JavaScript top stack frame of where the script parsed event was triggered if available. - * @experimental - */ - stackTrace?: Runtime.StackTrace | undefined; - } - interface BreakpointResolvedEventDataType { - /** - * Breakpoint unique identifier. - */ - breakpointId: BreakpointId; - /** - * Actual breakpoint location. - */ - location: Location; - } - interface PausedEventDataType { - /** - * Call stack the virtual machine stopped on. - */ - callFrames: CallFrame[]; - /** - * Pause reason. - */ - reason: string; - /** - * Object containing break-specific auxiliary properties. - */ - data?: {} | undefined; - /** - * Hit breakpoints IDs - */ - hitBreakpoints?: string[] | undefined; - /** - * Async stack trace, if any. - */ - asyncStackTrace?: Runtime.StackTrace | undefined; - /** - * Async stack trace, if any. - * @experimental - */ - asyncStackTraceId?: Runtime.StackTraceId | undefined; - /** - * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after Debugger.stepInto call with breakOnAsynCall flag. - * @experimental - */ - asyncCallStackTraceId?: Runtime.StackTraceId | undefined; - } - } - namespace Console { - /** - * Console message. - */ - interface ConsoleMessage { - /** - * Message source. - */ - source: string; - /** - * Message severity. - */ - level: string; - /** - * Message text. - */ - text: string; - /** - * URL of the message origin. - */ - url?: string | undefined; - /** - * Line number in the resource that generated this message (1-based). - */ - line?: number | undefined; - /** - * Column number in the resource that generated this message (1-based). - */ - column?: number | undefined; - } - interface MessageAddedEventDataType { - /** - * Console message that has been added. - */ - message: ConsoleMessage; - } - } - namespace Profiler { - /** - * Profile node. Holds callsite information, execution statistics and child nodes. - */ - interface ProfileNode { - /** - * Unique id of the node. - */ - id: number; - /** - * Function location. - */ - callFrame: Runtime.CallFrame; - /** - * Number of samples where this node was on top of the call stack. - */ - hitCount?: number | undefined; - /** - * Child node ids. - */ - children?: number[] | undefined; - /** - * The reason of being not optimized. The function may be deoptimized or marked as don't optimize. - */ - deoptReason?: string | undefined; - /** - * An array of source position ticks. - */ - positionTicks?: PositionTickInfo[] | undefined; - } - /** - * Profile. - */ - interface Profile { - /** - * The list of profile nodes. First item is the root node. - */ - nodes: ProfileNode[]; - /** - * Profiling start timestamp in microseconds. - */ - startTime: number; - /** - * Profiling end timestamp in microseconds. - */ - endTime: number; - /** - * Ids of samples top nodes. - */ - samples?: number[] | undefined; - /** - * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime. - */ - timeDeltas?: number[] | undefined; - } - /** - * Specifies a number of samples attributed to a certain source position. - */ - interface PositionTickInfo { - /** - * Source line number (1-based). - */ - line: number; - /** - * Number of samples attributed to the source line. - */ - ticks: number; - } - /** - * Coverage data for a source range. - */ - interface CoverageRange { - /** - * JavaScript script source offset for the range start. - */ - startOffset: number; - /** - * JavaScript script source offset for the range end. - */ - endOffset: number; - /** - * Collected execution count of the source range. - */ - count: number; - } - /** - * Coverage data for a JavaScript function. - */ - interface FunctionCoverage { - /** - * JavaScript function name. - */ - functionName: string; - /** - * Source ranges inside the function with coverage data. - */ - ranges: CoverageRange[]; - /** - * Whether coverage data for this function has block granularity. - */ - isBlockCoverage: boolean; - } - /** - * Coverage data for a JavaScript script. - */ - interface ScriptCoverage { - /** - * JavaScript script id. - */ - scriptId: Runtime.ScriptId; - /** - * JavaScript script name or url. - */ - url: string; - /** - * Functions contained in the script that has coverage data. - */ - functions: FunctionCoverage[]; - } - /** - * Describes a type collected during runtime. - * @experimental - */ - interface TypeObject { - /** - * Name of a type collected with type profiling. - */ - name: string; - } - /** - * Source offset and types for a parameter or return value. - * @experimental - */ - interface TypeProfileEntry { - /** - * Source offset of the parameter or end of function for return values. - */ - offset: number; - /** - * The types for this parameter or return value. - */ - types: TypeObject[]; - } - /** - * Type profile data collected during runtime for a JavaScript script. - * @experimental - */ - interface ScriptTypeProfile { - /** - * JavaScript script id. - */ - scriptId: Runtime.ScriptId; - /** - * JavaScript script name or url. - */ - url: string; - /** - * Type profile entries for parameters and return values of the functions in the script. - */ - entries: TypeProfileEntry[]; - } - interface SetSamplingIntervalParameterType { - /** - * New sampling interval in microseconds. - */ - interval: number; - } - interface StartPreciseCoverageParameterType { - /** - * Collect accurate call counts beyond simple 'covered' or 'not covered'. - */ - callCount?: boolean | undefined; - /** - * Collect block-based coverage. - */ - detailed?: boolean | undefined; - } - interface StopReturnType { - /** - * Recorded profile. - */ - profile: Profile; - } - interface TakePreciseCoverageReturnType { - /** - * Coverage data for the current isolate. - */ - result: ScriptCoverage[]; - } - interface GetBestEffortCoverageReturnType { - /** - * Coverage data for the current isolate. - */ - result: ScriptCoverage[]; - } - interface TakeTypeProfileReturnType { - /** - * Type profile for all scripts since startTypeProfile() was turned on. - */ - result: ScriptTypeProfile[]; - } - interface ConsoleProfileStartedEventDataType { - id: string; - /** - * Location of console.profile(). - */ - location: Debugger.Location; - /** - * Profile title passed as an argument to console.profile(). - */ - title?: string | undefined; - } - interface ConsoleProfileFinishedEventDataType { - id: string; - /** - * Location of console.profileEnd(). - */ - location: Debugger.Location; - profile: Profile; - /** - * Profile title passed as an argument to console.profile(). - */ - title?: string | undefined; - } - } - namespace HeapProfiler { - /** - * Heap snapshot object id. - */ - type HeapSnapshotObjectId = string; - /** - * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. - */ - interface SamplingHeapProfileNode { - /** - * Function location. - */ - callFrame: Runtime.CallFrame; - /** - * Allocations size in bytes for the node excluding children. - */ - selfSize: number; - /** - * Child nodes. - */ - children: SamplingHeapProfileNode[]; - } - /** - * Profile. - */ - interface SamplingHeapProfile { - head: SamplingHeapProfileNode; - } - interface StartTrackingHeapObjectsParameterType { - trackAllocations?: boolean | undefined; - } - interface StopTrackingHeapObjectsParameterType { - /** - * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped. - */ - reportProgress?: boolean | undefined; - } - interface TakeHeapSnapshotParameterType { - /** - * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. - */ - reportProgress?: boolean | undefined; - } - interface GetObjectByHeapObjectIdParameterType { - objectId: HeapSnapshotObjectId; - /** - * Symbolic group name that can be used to release multiple objects. - */ - objectGroup?: string | undefined; - } - interface AddInspectedHeapObjectParameterType { - /** - * Heap snapshot object id to be accessible by means of $x command line API. - */ - heapObjectId: HeapSnapshotObjectId; - } - interface GetHeapObjectIdParameterType { - /** - * Identifier of the object to get heap object id for. - */ - objectId: Runtime.RemoteObjectId; - } - interface StartSamplingParameterType { - /** - * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes. - */ - samplingInterval?: number | undefined; - } - interface GetObjectByHeapObjectIdReturnType { - /** - * Evaluation result. - */ - result: Runtime.RemoteObject; - } - interface GetHeapObjectIdReturnType { - /** - * Id of the heap snapshot object corresponding to the passed remote object id. - */ - heapSnapshotObjectId: HeapSnapshotObjectId; - } - interface StopSamplingReturnType { - /** - * Recorded sampling heap profile. - */ - profile: SamplingHeapProfile; - } - interface GetSamplingProfileReturnType { - /** - * Return the sampling profile being collected. - */ - profile: SamplingHeapProfile; - } - interface AddHeapSnapshotChunkEventDataType { - chunk: string; - } - interface ReportHeapSnapshotProgressEventDataType { - done: number; - total: number; - finished?: boolean | undefined; - } - interface LastSeenObjectIdEventDataType { - lastSeenObjectId: number; - timestamp: number; - } - interface HeapStatsUpdateEventDataType { - /** - * An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment. - */ - statsUpdate: number[]; - } - } - namespace NodeTracing { - interface TraceConfig { - /** - * Controls how the trace buffer stores data. - */ - recordMode?: string; - /** - * Included category filters. - */ - includedCategories: string[]; - } - interface StartParameterType { - traceConfig: TraceConfig; - } - interface GetCategoriesReturnType { - /** - * A list of supported tracing categories. - */ - categories: string[]; - } - interface DataCollectedEventDataType { - value: Array<{}>; - } - } - namespace NodeWorker { - type WorkerID = string; - /** - * Unique identifier of attached debugging session. - */ - type SessionID = string; - interface WorkerInfo { - workerId: WorkerID; - type: string; - title: string; - url: string; - } - interface SendMessageToWorkerParameterType { - message: string; - /** - * Identifier of the session. - */ - sessionId: SessionID; - } - interface EnableParameterType { - /** - * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger` - * message to run them. - */ - waitForDebuggerOnStart: boolean; - } - interface DetachParameterType { - sessionId: SessionID; - } - interface AttachedToWorkerEventDataType { - /** - * Identifier assigned to the session used to send/receive messages. - */ - sessionId: SessionID; - workerInfo: WorkerInfo; - waitingForDebugger: boolean; - } - interface DetachedFromWorkerEventDataType { - /** - * Detached session identifier. - */ - sessionId: SessionID; - } - interface ReceivedMessageFromWorkerEventDataType { - /** - * Identifier of a session which sends a message. - */ - sessionId: SessionID; - message: string; - } - } - namespace NodeRuntime { - interface NotifyWhenWaitingForDisconnectParameterType { - enabled: boolean; - } - } - /** - * The `inspector.Session` is used for dispatching messages to the V8 inspector - * back-end and receiving message responses and notifications. - */ - class Session extends EventEmitter { - /** - * Create a new instance of the inspector.Session class. - * The inspector session needs to be connected through session.connect() before the messages can be dispatched to the inspector backend. - */ - constructor(); - /** - * Connects a session to the inspector back-end. - * @since v8.0.0 - */ - connect(): void; - /** - * Immediately close the session. All pending message callbacks will be called - * with an error. `session.connect()` will need to be called to be able to send - * messages again. Reconnected session will lose all inspector state, such as - * enabled agents or configured breakpoints. - * @since v8.0.0 - */ - disconnect(): void; - /** - * Posts a message to the inspector back-end. `callback` will be notified when - * a response is received. `callback` is a function that accepts two optional - * arguments: error and message-specific result. - * - * ```js - * session.post('Runtime.evaluate', { expression: '2 + 2' }, - * (error, { result }) => console.log(result)); - * // Output: { type: 'number', value: 4, description: '4' } - * ``` - * - * The latest version of the V8 inspector protocol is published on the[Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/). - * - * Node.js inspector supports all the Chrome DevTools Protocol domains declared - * by V8\. Chrome DevTools Protocol domain provides an interface for interacting - * with one of the runtime agents used to inspect the application state and listen - * to the run-time events. - * - * ## Example usage - * - * Apart from the debugger, various V8 Profilers are available through the DevTools - * protocol. - * @since v8.0.0 - */ - post(method: string, params?: {}, callback?: (err: Error | null, params?: {}) => void): void; - post(method: string, callback?: (err: Error | null, params?: {}) => void): void; - /** - * Returns supported domains. - */ - post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void; - /** - * Evaluates expression on global object. - */ - post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; - post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; - /** - * Add handler to promise with given promise object id. - */ - post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; - post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; - /** - * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. - */ - post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; - post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; - /** - * Returns properties of a given object. Object group of the result is inherited from the target object. - */ - post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; - post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; - /** - * Releases remote object with given id. - */ - post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void; - /** - * Releases all remote objects that belong to a given group. - */ - post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void; - /** - * Tells inspected instance to run if it was waiting for debugger to attach. - */ - post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void; - /** - * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. - */ - post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void; - /** - * Disables reporting of execution contexts creation. - */ - post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void; - /** - * Discards collected exceptions and console API calls. - */ - post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void; - /** - * @experimental - */ - post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void; - /** - * Compiles expression. - */ - post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; - post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; - /** - * Runs script with given id in a given context. - */ - post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; - post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; - post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; - post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; - /** - * Returns all let, const and class variables from global scope. - */ - post( - method: 'Runtime.globalLexicalScopeNames', - params?: Runtime.GlobalLexicalScopeNamesParameterType, - callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void - ): void; - post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void; - /** - * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. - */ - post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void; - /** - * Disables debugger for given page. - */ - post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void; - /** - * Activates / deactivates all breakpoints on the page. - */ - post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void; - /** - * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). - */ - post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void; - /** - * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. - */ - post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; - post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; - /** - * Sets JavaScript breakpoint at a given location. - */ - post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; - post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; - /** - * Removes JavaScript breakpoint. - */ - post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void; - /** - * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. - */ - post( - method: 'Debugger.getPossibleBreakpoints', - params?: Debugger.GetPossibleBreakpointsParameterType, - callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void - ): void; - post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void; - /** - * Continues execution until specific location is reached. - */ - post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void; - /** - * @experimental - */ - post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void; - /** - * Steps over the statement. - */ - post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void; - /** - * Steps into the function call. - */ - post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void; - /** - * Steps out of the function call. - */ - post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void; - /** - * Stops on the next JavaScript statement. - */ - post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void; - /** - * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. - * @experimental - */ - post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void; - /** - * Resumes JavaScript execution. - */ - post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void; - /** - * Returns stack trace with given stackTraceId. - * @experimental - */ - post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; - post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; - /** - * Searches for given string in script content. - */ - post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; - post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; - /** - * Edits JavaScript source live. - */ - post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; - post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; - /** - * Restarts particular call frame from the beginning. - */ - post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; - post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; - /** - * Returns source for the script with given id. - */ - post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; - post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; - /** - * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. - */ - post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void; - /** - * Evaluates expression on a given call frame. - */ - post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; - post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; - /** - * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. - */ - post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void; - /** - * Changes return value in top frame. Available only at return break position. - * @experimental - */ - post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void; - /** - * Enables or disables async call stacks tracking. - */ - post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void; - /** - * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. - * @experimental - */ - post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void; - /** - * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. - * @experimental - */ - post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void; - /** - * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. - */ - post(method: 'Console.enable', callback?: (err: Error | null) => void): void; - /** - * Disables console domain, prevents further console messages from being reported to the client. - */ - post(method: 'Console.disable', callback?: (err: Error | null) => void): void; - /** - * Does nothing. - */ - post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void; - /** - * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. - */ - post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.start', callback?: (err: Error | null) => void): void; - post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void; - /** - * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. - */ - post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void; - post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void; - /** - * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. - */ - post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void; - /** - * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. - */ - post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void; - /** - * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. - */ - post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void; - /** - * Enable type profile. - * @experimental - */ - post(method: 'Profiler.startTypeProfile', callback?: (err: Error | null) => void): void; - /** - * Disable type profile. Disabling releases type profile data collected so far. - * @experimental - */ - post(method: 'Profiler.stopTypeProfile', callback?: (err: Error | null) => void): void; - /** - * Collect type profile. - * @experimental - */ - post(method: 'Profiler.takeTypeProfile', callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void; - post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void; - post( - method: 'HeapProfiler.getObjectByHeapObjectId', - params?: HeapProfiler.GetObjectByHeapObjectIdParameterType, - callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void - ): void; - post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void; - /** - * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). - */ - post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; - post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; - post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void; - post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void; - post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void; - /** - * Gets supported tracing categories. - */ - post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void; - /** - * Start trace events collection. - */ - post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void; - /** - * Stop trace events collection. Remaining collected events will be sent as a sequence of - * dataCollected events followed by tracingComplete event. - */ - post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void; - /** - * Sends protocol message over session with given id. - */ - post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void; - /** - * Instructs the inspector to attach to running workers. Will also attach to new workers - * as they start - */ - post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void; - /** - * Detaches from all running workers and disables attaching to new workers as they are started. - */ - post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void; - /** - * Detached from the worker with given sessionId. - */ - post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void; - /** - * Enable the `NodeRuntime.waitingForDisconnect`. - */ - post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void; - post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void; - // Events - addListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - addListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this; - /** - * Issued when new execution context is created. - */ - addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - addListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - addListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'inspectorNotification', message: InspectorNotification<{}>): boolean; - emit(event: 'Runtime.executionContextCreated', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification): boolean; - emit(event: 'Runtime.executionContextsCleared'): boolean; - emit(event: 'Runtime.exceptionThrown', message: InspectorNotification): boolean; - emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification): boolean; - emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification): boolean; - emit(event: 'Runtime.inspectRequested', message: InspectorNotification): boolean; - emit(event: 'Debugger.scriptParsed', message: InspectorNotification): boolean; - emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification): boolean; - emit(event: 'Debugger.breakpointResolved', message: InspectorNotification): boolean; - emit(event: 'Debugger.paused', message: InspectorNotification): boolean; - emit(event: 'Debugger.resumed'): boolean; - emit(event: 'Console.messageAdded', message: InspectorNotification): boolean; - emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification): boolean; - emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.resetProfiles'): boolean; - emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification): boolean; - emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification): boolean; - emit(event: 'NodeTracing.dataCollected', message: InspectorNotification): boolean; - emit(event: 'NodeTracing.tracingComplete'): boolean; - emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification): boolean; - emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification): boolean; - emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification): boolean; - emit(event: 'NodeRuntime.waitingForDisconnect'): boolean; - on(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - on(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this; - /** - * Issued when new execution context is created. - */ - on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - on(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - on(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - on(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - on(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - on(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - on(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - once(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this; - /** - * Issued when new execution context is created. - */ - once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - once(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - once(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - once(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - once(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - once(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - once(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this; - /** - * Issued when new execution context is created. - */ - prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - /** - * Emitted when any notification from the V8 Inspector is received. - */ - prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this; - /** - * Issued when new execution context is created. - */ - prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; - /** - * Issued when execution context is destroyed. - */ - prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; - /** - * Issued when all executionContexts were cleared in browser - */ - prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; - /** - * Issued when exception was thrown and unhandled. - */ - prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; - /** - * Issued when unhandled exception was revoked. - */ - prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; - /** - * Issued when console API was called. - */ - prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; - /** - * Issued when object should be inspected (for example, as a result of inspect() command line API call). - */ - prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. - */ - prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; - /** - * Fired when virtual machine fails to parse the script. - */ - prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; - /** - * Fired when breakpoint is resolved to an actual script and location. - */ - prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. - */ - prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; - /** - * Fired when the virtual machine resumed execution. - */ - prependOnceListener(event: 'Debugger.resumed', listener: () => void): this; - /** - * Issued when new console message is added. - */ - prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; - /** - * Sent when new profile recording is started using console.profile() call. - */ - prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; - prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; - prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. - */ - prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; - /** - * If heap objects tracking has been started then backend may send update for one or more fragments - */ - prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; - /** - * Contains an bucket of collected trace events. - */ - prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; - /** - * Signals that tracing is stopped and there is no trace buffers pending flush, all data were - * delivered via dataCollected events. - */ - prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; - /** - * Issued when attached to a worker. - */ - prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; - /** - * Issued when detached from the worker. - */ - prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * Notifies about a new protocol message received from the session - * (session ID is provided in attachedToWorker notification). - */ - prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; - /** - * This event is fired instead of `Runtime.executionContextDestroyed` when - * enabled. - * It is fired when the Node process finished all code execution and is - * waiting for all frontends to disconnect. - */ - prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; - } - /** - * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has - * started. - * - * If wait is `true`, will block until a client has connected to the inspect port - * and flow control has been passed to the debugger client. - * - * See the `security warning` regarding the `host`parameter usage. - * @param [port='what was specified on the CLI'] Port to listen on for inspector connections. Optional. - * @param [host='what was specified on the CLI'] Host to listen on for inspector connections. Optional. - * @param [wait=false] Block until a client has connected. Optional. - */ - function open(port?: number, host?: string, wait?: boolean): void; - /** - * Deactivate the inspector. Blocks until there are no active connections. - */ - function close(): void; - /** - * Return the URL of the active inspector, or `undefined` if there is none. - * - * ```console - * $ node --inspect -p 'inspector.url()' - * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 - * For help see https://nodejs.org/en/docs/inspector - * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 - * - * $ node --inspect=localhost:3000 -p 'inspector.url()' - * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a - * For help see https://nodejs.org/en/docs/inspector - * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a - * - * $ node -p 'inspector.url()' - * undefined - * ``` - */ - function url(): string | undefined; - /** - * Blocks until a client (existing or connected later) has sent`Runtime.runIfWaitingForDebugger` command. - * - * An exception will be thrown if there is no active inspector. - * @since v12.7.0 - */ - function waitForDebugger(): void; -} -declare module 'node:inspector' { - import EventEmitter = require('inspector'); - export = EventEmitter; -} diff --git a/WechatBot/node_modules/@types/node/module.d.ts b/WechatBot/node_modules/@types/node/module.d.ts deleted file mode 100644 index d83aec94a..000000000 --- a/WechatBot/node_modules/@types/node/module.d.ts +++ /dev/null @@ -1,114 +0,0 @@ -/** - * @since v0.3.7 - */ -declare module 'module' { - import { URL } from 'node:url'; - namespace Module { - /** - * The `module.syncBuiltinESMExports()` method updates all the live bindings for - * builtin `ES Modules` to match the properties of the `CommonJS` exports. It - * does not add or remove exported names from the `ES Modules`. - * - * ```js - * const fs = require('fs'); - * const assert = require('assert'); - * const { syncBuiltinESMExports } = require('module'); - * - * fs.readFile = newAPI; - * - * delete fs.readFileSync; - * - * function newAPI() { - * // ... - * } - * - * fs.newAPI = newAPI; - * - * syncBuiltinESMExports(); - * - * import('fs').then((esmFS) => { - * // It syncs the existing readFile property with the new value - * assert.strictEqual(esmFS.readFile, newAPI); - * // readFileSync has been deleted from the required fs - * assert.strictEqual('readFileSync' in fs, false); - * // syncBuiltinESMExports() does not remove readFileSync from esmFS - * assert.strictEqual('readFileSync' in esmFS, true); - * // syncBuiltinESMExports() does not add names - * assert.strictEqual(esmFS.newAPI, undefined); - * }); - * ``` - * @since v12.12.0 - */ - function syncBuiltinESMExports(): void; - /** - * `path` is the resolved path for the file for which a corresponding source map - * should be fetched. - * @since v13.7.0, v12.17.0 - */ - function findSourceMap(path: string, error?: Error): SourceMap; - interface SourceMapPayload { - file: string; - version: number; - sources: string[]; - sourcesContent: string[]; - names: string[]; - mappings: string; - sourceRoot: string; - } - interface SourceMapping { - generatedLine: number; - generatedColumn: number; - originalSource: string; - originalLine: number; - originalColumn: number; - } - /** - * @since v13.7.0, v12.17.0 - */ - class SourceMap { - /** - * Getter for the payload used to construct the `SourceMap` instance. - */ - readonly payload: SourceMapPayload; - constructor(payload: SourceMapPayload); - /** - * Given a line number and column number in the generated source file, returns - * an object representing the position in the original file. The object returned - * consists of the following keys: - */ - findEntry(line: number, column: number): SourceMapping; - } - } - interface Module extends NodeModule {} - class Module { - static runMain(): void; - static wrap(code: string): string; - static createRequire(path: string | URL): NodeRequire; - static builtinModules: string[]; - static Module: typeof Module; - constructor(id: string, parent?: Module); - } - global { - interface ImportMeta { - url: string; - /** - * @experimental - * This feature is only available with the `--experimental-import-meta-resolve` - * command flag enabled. - * - * Provides a module-relative resolution function scoped to each module, returning - * the URL string. - * - * @param specified The module specifier to resolve relative to `parent`. - * @param parent The absolute parent module URL to resolve from. If none - * is specified, the value of `import.meta.url` is used as the default. - */ - resolve?(specified: string, parent?: string | URL): Promise; - } - } - export = Module; -} -declare module 'node:module' { - import module = require('module'); - export = module; -} diff --git a/WechatBot/node_modules/@types/node/net.d.ts b/WechatBot/node_modules/@types/node/net.d.ts deleted file mode 100644 index a704b5f3c..000000000 --- a/WechatBot/node_modules/@types/node/net.d.ts +++ /dev/null @@ -1,783 +0,0 @@ -/** - * > Stability: 2 - Stable - * - * The `net` module provides an asynchronous network API for creating stream-based - * TCP or `IPC` servers ({@link createServer}) and clients - * ({@link createConnection}). - * - * It can be accessed using: - * - * ```js - * const net = require('net'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/net.js) - */ -declare module 'net' { - import * as stream from 'node:stream'; - import { Abortable, EventEmitter } from 'node:events'; - import * as dns from 'node:dns'; - type LookupFunction = (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void; - interface AddressInfo { - address: string; - family: string; - port: number; - } - interface SocketConstructorOpts { - fd?: number | undefined; - allowHalfOpen?: boolean | undefined; - readable?: boolean | undefined; - writable?: boolean | undefined; - } - interface OnReadOpts { - buffer: Uint8Array | (() => Uint8Array); - /** - * This function is called for every chunk of incoming data. - * Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer. - * Return false from this function to implicitly pause() the socket. - */ - callback(bytesWritten: number, buf: Uint8Array): boolean; - } - interface ConnectOpts { - /** - * If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket. - * Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will - * still be emitted as normal and methods like pause() and resume() will also behave as expected. - */ - onread?: OnReadOpts | undefined; - } - interface TcpSocketConnectOpts extends ConnectOpts { - port: number; - host?: string | undefined; - localAddress?: string | undefined; - localPort?: number | undefined; - hints?: number | undefined; - family?: number | undefined; - lookup?: LookupFunction | undefined; - } - interface IpcSocketConnectOpts extends ConnectOpts { - path: string; - } - type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts; - /** - * This class is an abstraction of a TCP socket or a streaming `IPC` endpoint - * (uses named pipes on Windows, and Unix domain sockets otherwise). It is also - * an `EventEmitter`. - * - * A `net.Socket` can be created by the user and used directly to interact with - * a server. For example, it is returned by {@link createConnection}, - * so the user can use it to talk to the server. - * - * It can also be created by Node.js and passed to the user when a connection - * is received. For example, it is passed to the listeners of a `'connection'` event emitted on a {@link Server}, so the user can use - * it to interact with the client. - * @since v0.3.4 - */ - class Socket extends stream.Duplex { - constructor(options?: SocketConstructorOpts); - /** - * Sends data on the socket. The second parameter specifies the encoding in the - * case of a string. It defaults to UTF8 encoding. - * - * Returns `true` if the entire data was flushed successfully to the kernel - * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is again free. - * - * The optional `callback` parameter will be executed when the data is finally - * written out, which may not be immediately. - * - * See `Writable` stream `write()` method for more - * information. - * @since v0.1.90 - * @param [encoding='utf8'] Only used when data is `string`. - */ - write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean; - write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error) => void): boolean; - /** - * Initiate a connection on a given socket. - * - * Possible signatures: - * - * * `socket.connect(options[, connectListener])` - * * `socket.connect(path[, connectListener])` for `IPC` connections. - * * `socket.connect(port[, host][, connectListener])` for TCP connections. - * * Returns: `net.Socket` The socket itself. - * - * This function is asynchronous. When the connection is established, the `'connect'` event will be emitted. If there is a problem connecting, - * instead of a `'connect'` event, an `'error'` event will be emitted with - * the error passed to the `'error'` listener. - * The last parameter `connectListener`, if supplied, will be added as a listener - * for the `'connect'` event **once**. - * - * This function should only be used for reconnecting a socket after`'close'` has been emitted or otherwise it may lead to undefined - * behavior. - */ - connect(options: SocketConnectOpts, connectionListener?: () => void): this; - connect(port: number, host: string, connectionListener?: () => void): this; - connect(port: number, connectionListener?: () => void): this; - connect(path: string, connectionListener?: () => void): this; - /** - * Set the encoding for the socket as a `Readable Stream`. See `readable.setEncoding()` for more information. - * @since v0.1.90 - * @return The socket itself. - */ - setEncoding(encoding?: BufferEncoding): this; - /** - * Pauses the reading of data. That is, `'data'` events will not be emitted. - * Useful to throttle back an upload. - * @return The socket itself. - */ - pause(): this; - /** - * Resumes reading after a call to `socket.pause()`. - * @return The socket itself. - */ - resume(): this; - /** - * Sets the socket to timeout after `timeout` milliseconds of inactivity on - * the socket. By default `net.Socket` do not have a timeout. - * - * When an idle timeout is triggered the socket will receive a `'timeout'` event but the connection will not be severed. The user must manually call `socket.end()` or `socket.destroy()` to - * end the connection. - * - * ```js - * socket.setTimeout(3000); - * socket.on('timeout', () => { - * console.log('socket timeout'); - * socket.end(); - * }); - * ``` - * - * If `timeout` is 0, then the existing idle timeout is disabled. - * - * The optional `callback` parameter will be added as a one-time listener for the `'timeout'` event. - * @since v0.1.90 - * @return The socket itself. - */ - setTimeout(timeout: number, callback?: () => void): this; - /** - * Enable/disable the use of Nagle's algorithm. - * - * When a TCP connection is created, it will have Nagle's algorithm enabled. - * - * Nagle's algorithm delays data before it is sent via the network. It attempts - * to optimize throughput at the expense of latency. - * - * Passing `true` for `noDelay` or not passing an argument will disable Nagle's - * algorithm for the socket. Passing `false` for `noDelay` will enable Nagle's - * algorithm. - * @since v0.1.90 - * @param [noDelay=true] - * @return The socket itself. - */ - setNoDelay(noDelay?: boolean): this; - /** - * Enable/disable keep-alive functionality, and optionally set the initial - * delay before the first keepalive probe is sent on an idle socket. - * - * Set `initialDelay` (in milliseconds) to set the delay between the last - * data packet received and the first keepalive probe. Setting `0` for`initialDelay` will leave the value unchanged from the default - * (or previous) setting. - * - * Enabling the keep-alive functionality will set the following socket options: - * - * * `SO_KEEPALIVE=1` - * * `TCP_KEEPIDLE=initialDelay` - * * `TCP_KEEPCNT=10` - * * `TCP_KEEPINTVL=1` - * @since v0.1.92 - * @param [enable=false] - * @param [initialDelay=0] - * @return The socket itself. - */ - setKeepAlive(enable?: boolean, initialDelay?: number): this; - /** - * Returns the bound `address`, the address `family` name and `port` of the - * socket as reported by the operating system:`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }` - * @since v0.1.90 - */ - address(): AddressInfo | {}; - /** - * Calling `unref()` on a socket will allow the program to exit if this is the only - * active socket in the event system. If the socket is already `unref`ed calling`unref()` again will have no effect. - * @since v0.9.1 - * @return The socket itself. - */ - unref(): this; - /** - * Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will_not_ let the program exit if it's the only socket left (the default behavior). - * If the socket is `ref`ed calling `ref` again will have no effect. - * @since v0.9.1 - * @return The socket itself. - */ - ref(): this; - /** - * This property shows the number of characters buffered for writing. The buffer - * may contain strings whose length after encoding is not yet known. So this number - * is only an approximation of the number of bytes in the buffer. - * - * `net.Socket` has the property that `socket.write()` always works. This is to - * help users get up and running quickly. The computer cannot always keep up - * with the amount of data that is written to a socket. The network connection - * simply might be too slow. Node.js will internally queue up the data written to a - * socket and send it out over the wire when it is possible. - * - * The consequence of this internal buffering is that memory may grow. - * Users who experience large or growing `bufferSize` should attempt to - * "throttle" the data flows in their program with `socket.pause()` and `socket.resume()`. - * @since v0.3.8 - * @deprecated Since v14.6.0 - Use `writableLength` instead. - */ - readonly bufferSize: number; - /** - * The amount of received bytes. - * @since v0.5.3 - */ - readonly bytesRead: number; - /** - * The amount of bytes sent. - * @since v0.5.3 - */ - readonly bytesWritten: number; - /** - * If `true`,`socket.connect(options[, connectListener])` was - * called and has not yet finished. It will stay `true` until the socket becomes - * connected, then it is set to `false` and the `'connect'` event is emitted. Note - * that the `socket.connect(options[, connectListener])` callback is a listener for the `'connect'` event. - * @since v6.1.0 - */ - readonly connecting: boolean; - /** - * See `writable.destroyed` for further details. - */ - readonly destroyed: boolean; - /** - * The string representation of the local IP address the remote client is - * connecting on. For example, in a server listening on `'0.0.0.0'`, if a client - * connects on `'192.168.1.1'`, the value of `socket.localAddress` would be`'192.168.1.1'`. - * @since v0.9.6 - */ - readonly localAddress: string; - /** - * The numeric representation of the local port. For example, `80` or `21`. - * @since v0.9.6 - */ - readonly localPort: number; - /** - * The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if - * the socket is destroyed (for example, if the client disconnected). - * @since v0.5.10 - */ - readonly remoteAddress?: string | undefined; - /** - * The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. - * @since v0.11.14 - */ - readonly remoteFamily?: string | undefined; - /** - * The numeric representation of the remote port. For example, `80` or `21`. - * @since v0.5.10 - */ - readonly remotePort?: number | undefined; - /** - * Half-closes the socket. i.e., it sends a FIN packet. It is possible the - * server will still send some data. - * - * See `writable.end()` for further details. - * @since v0.1.90 - * @param [encoding='utf8'] Only used when data is `string`. - * @param callback Optional callback for when the socket is finished. - * @return The socket itself. - */ - end(callback?: () => void): void; - end(buffer: Uint8Array | string, callback?: () => void): void; - end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): void; - /** - * events.EventEmitter - * 1. close - * 2. connect - * 3. data - * 4. drain - * 5. end - * 6. error - * 7. lookup - * 8. timeout - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'close', listener: (hadError: boolean) => void): this; - addListener(event: 'connect', listener: () => void): this; - addListener(event: 'data', listener: (data: Buffer) => void): this; - addListener(event: 'drain', listener: () => void): this; - addListener(event: 'end', listener: () => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; - addListener(event: 'ready', listener: () => void): this; - addListener(event: 'timeout', listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'close', hadError: boolean): boolean; - emit(event: 'connect'): boolean; - emit(event: 'data', data: Buffer): boolean; - emit(event: 'drain'): boolean; - emit(event: 'end'): boolean; - emit(event: 'error', err: Error): boolean; - emit(event: 'lookup', err: Error, address: string, family: string | number, host: string): boolean; - emit(event: 'ready'): boolean; - emit(event: 'timeout'): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'close', listener: (hadError: boolean) => void): this; - on(event: 'connect', listener: () => void): this; - on(event: 'data', listener: (data: Buffer) => void): this; - on(event: 'drain', listener: () => void): this; - on(event: 'end', listener: () => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; - on(event: 'ready', listener: () => void): this; - on(event: 'timeout', listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'close', listener: (hadError: boolean) => void): this; - once(event: 'connect', listener: () => void): this; - once(event: 'data', listener: (data: Buffer) => void): this; - once(event: 'drain', listener: () => void): this; - once(event: 'end', listener: () => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; - once(event: 'ready', listener: () => void): this; - once(event: 'timeout', listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: (hadError: boolean) => void): this; - prependListener(event: 'connect', listener: () => void): this; - prependListener(event: 'data', listener: (data: Buffer) => void): this; - prependListener(event: 'drain', listener: () => void): this; - prependListener(event: 'end', listener: () => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; - prependListener(event: 'ready', listener: () => void): this; - prependListener(event: 'timeout', listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: (hadError: boolean) => void): this; - prependOnceListener(event: 'connect', listener: () => void): this; - prependOnceListener(event: 'data', listener: (data: Buffer) => void): this; - prependOnceListener(event: 'drain', listener: () => void): this; - prependOnceListener(event: 'end', listener: () => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; - prependOnceListener(event: 'ready', listener: () => void): this; - prependOnceListener(event: 'timeout', listener: () => void): this; - } - interface ListenOptions extends Abortable { - port?: number | undefined; - host?: string | undefined; - backlog?: number | undefined; - path?: string | undefined; - exclusive?: boolean | undefined; - readableAll?: boolean | undefined; - writableAll?: boolean | undefined; - /** - * @default false - */ - ipv6Only?: boolean | undefined; - } - interface ServerOpts { - /** - * Indicates whether half-opened TCP connections are allowed. - * @default false - */ - allowHalfOpen?: boolean | undefined; - /** - * Indicates whether the socket should be paused on incoming connections. - * @default false - */ - pauseOnConnect?: boolean | undefined; - } - /** - * This class is used to create a TCP or `IPC` server. - * @since v0.1.90 - */ - class Server extends EventEmitter { - constructor(connectionListener?: (socket: Socket) => void); - constructor(options?: ServerOpts, connectionListener?: (socket: Socket) => void); - /** - * Start a server listening for connections. A `net.Server` can be a TCP or - * an `IPC` server depending on what it listens to. - * - * Possible signatures: - * - * * `server.listen(handle[, backlog][, callback])` - * * `server.listen(options[, callback])` - * * `server.listen(path[, backlog][, callback])` for `IPC` servers - * * `server.listen([port[, host[, backlog]]][, callback])` for TCP servers - * - * This function is asynchronous. When the server starts listening, the `'listening'` event will be emitted. The last parameter `callback`will be added as a listener for the `'listening'` - * event. - * - * All `listen()` methods can take a `backlog` parameter to specify the maximum - * length of the queue of pending connections. The actual length will be determined - * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn`on Linux. The default value of this parameter is 511 (not 512). - * - * All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for - * details). - * - * The `server.listen()` method can be called again if and only if there was an - * error during the first `server.listen()` call or `server.close()` has been - * called. Otherwise, an `ERR_SERVER_ALREADY_LISTEN` error will be thrown. - * - * One of the most common errors raised when listening is `EADDRINUSE`. - * This happens when another server is already listening on the requested`port`/`path`/`handle`. One way to handle this would be to retry - * after a certain amount of time: - * - * ```js - * server.on('error', (e) => { - * if (e.code === 'EADDRINUSE') { - * console.log('Address in use, retrying...'); - * setTimeout(() => { - * server.close(); - * server.listen(PORT, HOST); - * }, 1000); - * } - * }); - * ``` - */ - listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this; - listen(port?: number, hostname?: string, listeningListener?: () => void): this; - listen(port?: number, backlog?: number, listeningListener?: () => void): this; - listen(port?: number, listeningListener?: () => void): this; - listen(path: string, backlog?: number, listeningListener?: () => void): this; - listen(path: string, listeningListener?: () => void): this; - listen(options: ListenOptions, listeningListener?: () => void): this; - listen(handle: any, backlog?: number, listeningListener?: () => void): this; - listen(handle: any, listeningListener?: () => void): this; - /** - * Stops the server from accepting new connections and keeps existing - * connections. This function is asynchronous, the server is finally closed - * when all connections are ended and the server emits a `'close'` event. - * The optional `callback` will be called once the `'close'` event occurs. Unlike - * that event, it will be called with an `Error` as its only argument if the server - * was not open when it was closed. - * @since v0.1.90 - * @param callback Called when the server is closed. - */ - close(callback?: (err?: Error) => void): this; - /** - * Returns the bound `address`, the address `family` name, and `port` of the server - * as reported by the operating system if listening on an IP socket - * (useful to find which port was assigned when getting an OS-assigned address):`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`. - * - * For a server listening on a pipe or Unix domain socket, the name is returned - * as a string. - * - * ```js - * const server = net.createServer((socket) => { - * socket.end('goodbye\n'); - * }).on('error', (err) => { - * // Handle errors here. - * throw err; - * }); - * - * // Grab an arbitrary unused port. - * server.listen(() => { - * console.log('opened server on', server.address()); - * }); - * ``` - * - * `server.address()` returns `null` before the `'listening'` event has been - * emitted or after calling `server.close()`. - * @since v0.1.90 - */ - address(): AddressInfo | string | null; - /** - * Asynchronously get the number of concurrent connections on the server. Works - * when sockets were sent to forks. - * - * Callback should take two arguments `err` and `count`. - * @since v0.9.7 - */ - getConnections(cb: (error: Error | null, count: number) => void): void; - /** - * Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will_not_ let the program exit if it's the only server left (the default behavior). - * If the server is `ref`ed calling `ref()` again will have no effect. - * @since v0.9.1 - */ - ref(): this; - /** - * Calling `unref()` on a server will allow the program to exit if this is the only - * active server in the event system. If the server is already `unref`ed calling`unref()` again will have no effect. - * @since v0.9.1 - */ - unref(): this; - /** - * Set this property to reject connections when the server's connection count gets - * high. - * - * It is not recommended to use this option once a socket has been sent to a child - * with `child_process.fork()`. - * @since v0.2.0 - */ - maxConnections: number; - connections: number; - /** - * Indicates whether or not the server is listening for connections. - * @since v5.7.0 - */ - listening: boolean; - /** - * events.EventEmitter - * 1. close - * 2. connection - * 3. error - * 4. listening - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'close', listener: () => void): this; - addListener(event: 'connection', listener: (socket: Socket) => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'listening', listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'close'): boolean; - emit(event: 'connection', socket: Socket): boolean; - emit(event: 'error', err: Error): boolean; - emit(event: 'listening'): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'connection', listener: (socket: Socket) => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'listening', listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'connection', listener: (socket: Socket) => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'listening', listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'connection', listener: (socket: Socket) => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'listening', listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'listening', listener: () => void): this; - } - type IPVersion = 'ipv4' | 'ipv6'; - /** - * The `BlockList` object can be used with some network APIs to specify rules for - * disabling inbound or outbound access to specific IP addresses, IP ranges, or - * IP subnets. - * @since v15.0.0 - */ - class BlockList { - /** - * Adds a rule to block the given IP address. - * @since v15.0.0 - * @param address An IPv4 or IPv6 address. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addAddress(address: string, type?: IPVersion): void; - addAddress(address: SocketAddress): void; - /** - * Adds a rule to block a range of IP addresses from `start` (inclusive) to`end` (inclusive). - * @since v15.0.0 - * @param start The starting IPv4 or IPv6 address in the range. - * @param end The ending IPv4 or IPv6 address in the range. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addRange(start: string, end: string, type?: IPVersion): void; - addRange(start: SocketAddress, end: SocketAddress): void; - /** - * Adds a rule to block a range of IP addresses specified as a subnet mask. - * @since v15.0.0 - * @param net The network IPv4 or IPv6 address. - * @param prefix The number of CIDR prefix bits. For IPv4, this must be a value between `0` and `32`. For IPv6, this must be between `0` and `128`. - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - addSubnet(net: SocketAddress, prefix: number): void; - addSubnet(net: string, prefix: number, type?: IPVersion): void; - /** - * Returns `true` if the given IP address matches any of the rules added to the`BlockList`. - * - * ```js - * const blockList = new net.BlockList(); - * blockList.addAddress('123.123.123.123'); - * blockList.addRange('10.0.0.1', '10.0.0.10'); - * blockList.addSubnet('8592:757c:efae:4e45::', 64, 'ipv6'); - * - * console.log(blockList.check('123.123.123.123')); // Prints: true - * console.log(blockList.check('10.0.0.3')); // Prints: true - * console.log(blockList.check('222.111.111.222')); // Prints: false - * - * // IPv6 notation for IPv4 addresses works: - * console.log(blockList.check('::ffff:7b7b:7b7b', 'ipv6')); // Prints: true - * console.log(blockList.check('::ffff:123.123.123.123', 'ipv6')); // Prints: true - * ``` - * @since v15.0.0 - * @param address The IP address to check - * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. - */ - check(address: SocketAddress): boolean; - check(address: string, type?: IPVersion): boolean; - } - interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { - timeout?: number | undefined; - } - interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts { - timeout?: number | undefined; - } - type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts; - /** - * Creates a new TCP or `IPC` server. - * - * If `allowHalfOpen` is set to `true`, when the other end of the socket - * signals the end of transmission, the server will only send back the end of - * transmission when `socket.end()` is explicitly called. For example, in the - * context of TCP, when a FIN packed is received, a FIN packed is sent - * back only when `socket.end()` is explicitly called. Until then the - * connection is half-closed (non-readable but still writable). See `'end'` event and [RFC 1122](https://tools.ietf.org/html/rfc1122) (section 4.2.2.13) for more information. - * - * If `pauseOnConnect` is set to `true`, then the socket associated with each - * incoming connection will be paused, and no data will be read from its handle. - * This allows connections to be passed between processes without any data being - * read by the original process. To begin reading data from a paused socket, call `socket.resume()`. - * - * The server can be a TCP server or an `IPC` server, depending on what it `listen()` to. - * - * Here is an example of an TCP echo server which listens for connections - * on port 8124: - * - * ```js - * const net = require('net'); - * const server = net.createServer((c) => { - * // 'connection' listener. - * console.log('client connected'); - * c.on('end', () => { - * console.log('client disconnected'); - * }); - * c.write('hello\r\n'); - * c.pipe(c); - * }); - * server.on('error', (err) => { - * throw err; - * }); - * server.listen(8124, () => { - * console.log('server bound'); - * }); - * ``` - * - * Test this by using `telnet`: - * - * ```console - * $ telnet localhost 8124 - * ``` - * - * To listen on the socket `/tmp/echo.sock`: - * - * ```js - * server.listen('/tmp/echo.sock', () => { - * console.log('server bound'); - * }); - * ``` - * - * Use `nc` to connect to a Unix domain socket server: - * - * ```console - * $ nc -U /tmp/echo.sock - * ``` - * @since v0.5.0 - * @param connectionListener Automatically set as a listener for the {@link 'connection'} event. - */ - function createServer(connectionListener?: (socket: Socket) => void): Server; - function createServer(options?: ServerOpts, connectionListener?: (socket: Socket) => void): Server; - /** - * Aliases to {@link createConnection}. - * - * Possible signatures: - * - * * {@link connect} - * * {@link connect} for `IPC` connections. - * * {@link connect} for TCP connections. - */ - function connect(options: NetConnectOpts, connectionListener?: () => void): Socket; - function connect(port: number, host?: string, connectionListener?: () => void): Socket; - function connect(path: string, connectionListener?: () => void): Socket; - /** - * A factory function, which creates a new {@link Socket}, - * immediately initiates connection with `socket.connect()`, - * then returns the `net.Socket` that starts the connection. - * - * When the connection is established, a `'connect'` event will be emitted - * on the returned socket. The last parameter `connectListener`, if supplied, - * will be added as a listener for the `'connect'` event **once**. - * - * Possible signatures: - * - * * {@link createConnection} - * * {@link createConnection} for `IPC` connections. - * * {@link createConnection} for TCP connections. - * - * The {@link connect} function is an alias to this function. - */ - function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket; - function createConnection(port: number, host?: string, connectionListener?: () => void): Socket; - function createConnection(path: string, connectionListener?: () => void): Socket; - /** - * Tests if input is an IP address. Returns `0` for invalid strings, - * returns `4` for IP version 4 addresses, and returns `6` for IP version 6 - * addresses. - * @since v0.3.0 - */ - function isIP(input: string): number; - /** - * Returns `true` if input is a version 4 IP address, otherwise returns `false`. - * @since v0.3.0 - */ - function isIPv4(input: string): boolean; - /** - * Returns `true` if input is a version 6 IP address, otherwise returns `false`. - * @since v0.3.0 - */ - function isIPv6(input: string): boolean; - interface SocketAddressInitOptions { - /** - * The network address as either an IPv4 or IPv6 string. - * @default 127.0.0.1 - */ - address?: string | undefined; - /** - * @default `'ipv4'` - */ - family?: IPVersion | undefined; - /** - * An IPv6 flow-label used only if `family` is `'ipv6'`. - * @default 0 - */ - flowlabel?: number | undefined; - /** - * An IP port. - * @default 0 - */ - port?: number | undefined; - } - /** - * @since v15.14.0 - */ - class SocketAddress { - constructor(options: SocketAddressInitOptions); - /** - * Either \`'ipv4'\` or \`'ipv6'\`. - * @since v15.14.0 - */ - readonly address: string; - /** - * Either \`'ipv4'\` or \`'ipv6'\`. - * @since v15.14.0 - */ - readonly family: IPVersion; - /** - * @since v15.14.0 - */ - readonly port: number; - /** - * @since v15.14.0 - */ - readonly flowlabel: number; - } -} -declare module 'node:net' { - export * from 'net'; -} diff --git a/WechatBot/node_modules/@types/node/os.d.ts b/WechatBot/node_modules/@types/node/os.d.ts deleted file mode 100644 index 000fa5e40..000000000 --- a/WechatBot/node_modules/@types/node/os.d.ts +++ /dev/null @@ -1,455 +0,0 @@ -/** - * The `os` module provides operating system-related utility methods and - * properties. It can be accessed using: - * - * ```js - * const os = require('os'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/os.js) - */ -declare module 'os' { - interface CpuInfo { - model: string; - speed: number; - times: { - user: number; - nice: number; - sys: number; - idle: number; - irq: number; - }; - } - interface NetworkInterfaceBase { - address: string; - netmask: string; - mac: string; - internal: boolean; - cidr: string | null; - } - interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase { - family: 'IPv4'; - } - interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase { - family: 'IPv6'; - scopeid: number; - } - interface UserInfo { - username: T; - uid: number; - gid: number; - shell: T; - homedir: T; - } - type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6; - /** - * Returns the host name of the operating system as a string. - * @since v0.3.3 - */ - function hostname(): string; - /** - * Returns an array containing the 1, 5, and 15 minute load averages. - * - * The load average is a measure of system activity calculated by the operating - * system and expressed as a fractional number. - * - * The load average is a Unix-specific concept. On Windows, the return value is - * always `[0, 0, 0]`. - * @since v0.3.3 - */ - function loadavg(): number[]; - /** - * Returns the system uptime in number of seconds. - * @since v0.3.3 - */ - function uptime(): number; - /** - * Returns the amount of free system memory in bytes as an integer. - * @since v0.3.3 - */ - function freemem(): number; - /** - * Returns the total amount of system memory in bytes as an integer. - * @since v0.3.3 - */ - function totalmem(): number; - /** - * Returns an array of objects containing information about each logical CPU core. - * - * The properties included on each object include: - * - * ```js - * [ - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 252020, - * nice: 0, - * sys: 30340, - * idle: 1070356870, - * irq: 0 - * } - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 306960, - * nice: 0, - * sys: 26980, - * idle: 1071569080, - * irq: 0 - * } - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 248450, - * nice: 0, - * sys: 21750, - * idle: 1070919370, - * irq: 0 - * } - * }, - * { - * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', - * speed: 2926, - * times: { - * user: 256880, - * nice: 0, - * sys: 19430, - * idle: 1070905480, - * irq: 20 - * } - * }, - * ] - * ``` - * - * `nice` values are POSIX-only. On Windows, the `nice` values of all processors - * are always 0. - * @since v0.3.3 - */ - function cpus(): CpuInfo[]; - /** - * Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it - * returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows. - * - * See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for additional information - * about the output of running [`uname(3)`](https://linux.die.net/man/3/uname) on various operating systems. - * @since v0.3.3 - */ - function type(): string; - /** - * Returns the operating system as a string. - * - * On POSIX systems, the operating system release is determined by calling[`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `GetVersionExW()` is used. - * See[https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. - * @since v0.3.3 - */ - function release(): string; - /** - * Returns an object containing network interfaces that have been assigned a - * network address. - * - * Each key on the returned object identifies a network interface. The associated - * value is an array of objects that each describe an assigned network address. - * - * The properties available on the assigned network address object include: - * - * ```js - * { - * lo: [ - * { - * address: '127.0.0.1', - * netmask: '255.0.0.0', - * family: 'IPv4', - * mac: '00:00:00:00:00:00', - * internal: true, - * cidr: '127.0.0.1/8' - * }, - * { - * address: '::1', - * netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', - * family: 'IPv6', - * mac: '00:00:00:00:00:00', - * scopeid: 0, - * internal: true, - * cidr: '::1/128' - * } - * ], - * eth0: [ - * { - * address: '192.168.1.108', - * netmask: '255.255.255.0', - * family: 'IPv4', - * mac: '01:02:03:0a:0b:0c', - * internal: false, - * cidr: '192.168.1.108/24' - * }, - * { - * address: 'fe80::a00:27ff:fe4e:66a1', - * netmask: 'ffff:ffff:ffff:ffff::', - * family: 'IPv6', - * mac: '01:02:03:0a:0b:0c', - * scopeid: 1, - * internal: false, - * cidr: 'fe80::a00:27ff:fe4e:66a1/64' - * } - * ] - * } - * ``` - * @since v0.6.0 - */ - function networkInterfaces(): NodeJS.Dict; - /** - * Returns the string path of the current user's home directory. - * - * On POSIX, it uses the `$HOME` environment variable if defined. Otherwise it - * uses the [effective UID](https://en.wikipedia.org/wiki/User_identifier#Effective_user_ID) to look up the user's home directory. - * - * On Windows, it uses the `USERPROFILE` environment variable if defined. - * Otherwise it uses the path to the profile directory of the current user. - * @since v2.3.0 - */ - function homedir(): string; - /** - * Returns information about the currently effective user. On POSIX platforms, - * this is typically a subset of the password file. The returned object includes - * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and`gid` fields are `-1`, and `shell` is `null`. - * - * The value of `homedir` returned by `os.userInfo()` is provided by the operating - * system. This differs from the result of `os.homedir()`, which queries - * environment variables for the home directory before falling back to the - * operating system response. - * - * Throws a `SystemError` if a user has no `username` or `homedir`. - * @since v6.0.0 - */ - function userInfo(options: { encoding: 'buffer' }): UserInfo; - function userInfo(options?: { encoding: BufferEncoding }): UserInfo; - type SignalConstants = { - [key in NodeJS.Signals]: number; - }; - namespace constants { - const UV_UDP_REUSEADDR: number; - namespace signals {} - const signals: SignalConstants; - namespace errno { - const E2BIG: number; - const EACCES: number; - const EADDRINUSE: number; - const EADDRNOTAVAIL: number; - const EAFNOSUPPORT: number; - const EAGAIN: number; - const EALREADY: number; - const EBADF: number; - const EBADMSG: number; - const EBUSY: number; - const ECANCELED: number; - const ECHILD: number; - const ECONNABORTED: number; - const ECONNREFUSED: number; - const ECONNRESET: number; - const EDEADLK: number; - const EDESTADDRREQ: number; - const EDOM: number; - const EDQUOT: number; - const EEXIST: number; - const EFAULT: number; - const EFBIG: number; - const EHOSTUNREACH: number; - const EIDRM: number; - const EILSEQ: number; - const EINPROGRESS: number; - const EINTR: number; - const EINVAL: number; - const EIO: number; - const EISCONN: number; - const EISDIR: number; - const ELOOP: number; - const EMFILE: number; - const EMLINK: number; - const EMSGSIZE: number; - const EMULTIHOP: number; - const ENAMETOOLONG: number; - const ENETDOWN: number; - const ENETRESET: number; - const ENETUNREACH: number; - const ENFILE: number; - const ENOBUFS: number; - const ENODATA: number; - const ENODEV: number; - const ENOENT: number; - const ENOEXEC: number; - const ENOLCK: number; - const ENOLINK: number; - const ENOMEM: number; - const ENOMSG: number; - const ENOPROTOOPT: number; - const ENOSPC: number; - const ENOSR: number; - const ENOSTR: number; - const ENOSYS: number; - const ENOTCONN: number; - const ENOTDIR: number; - const ENOTEMPTY: number; - const ENOTSOCK: number; - const ENOTSUP: number; - const ENOTTY: number; - const ENXIO: number; - const EOPNOTSUPP: number; - const EOVERFLOW: number; - const EPERM: number; - const EPIPE: number; - const EPROTO: number; - const EPROTONOSUPPORT: number; - const EPROTOTYPE: number; - const ERANGE: number; - const EROFS: number; - const ESPIPE: number; - const ESRCH: number; - const ESTALE: number; - const ETIME: number; - const ETIMEDOUT: number; - const ETXTBSY: number; - const EWOULDBLOCK: number; - const EXDEV: number; - const WSAEINTR: number; - const WSAEBADF: number; - const WSAEACCES: number; - const WSAEFAULT: number; - const WSAEINVAL: number; - const WSAEMFILE: number; - const WSAEWOULDBLOCK: number; - const WSAEINPROGRESS: number; - const WSAEALREADY: number; - const WSAENOTSOCK: number; - const WSAEDESTADDRREQ: number; - const WSAEMSGSIZE: number; - const WSAEPROTOTYPE: number; - const WSAENOPROTOOPT: number; - const WSAEPROTONOSUPPORT: number; - const WSAESOCKTNOSUPPORT: number; - const WSAEOPNOTSUPP: number; - const WSAEPFNOSUPPORT: number; - const WSAEAFNOSUPPORT: number; - const WSAEADDRINUSE: number; - const WSAEADDRNOTAVAIL: number; - const WSAENETDOWN: number; - const WSAENETUNREACH: number; - const WSAENETRESET: number; - const WSAECONNABORTED: number; - const WSAECONNRESET: number; - const WSAENOBUFS: number; - const WSAEISCONN: number; - const WSAENOTCONN: number; - const WSAESHUTDOWN: number; - const WSAETOOMANYREFS: number; - const WSAETIMEDOUT: number; - const WSAECONNREFUSED: number; - const WSAELOOP: number; - const WSAENAMETOOLONG: number; - const WSAEHOSTDOWN: number; - const WSAEHOSTUNREACH: number; - const WSAENOTEMPTY: number; - const WSAEPROCLIM: number; - const WSAEUSERS: number; - const WSAEDQUOT: number; - const WSAESTALE: number; - const WSAEREMOTE: number; - const WSASYSNOTREADY: number; - const WSAVERNOTSUPPORTED: number; - const WSANOTINITIALISED: number; - const WSAEDISCON: number; - const WSAENOMORE: number; - const WSAECANCELLED: number; - const WSAEINVALIDPROCTABLE: number; - const WSAEINVALIDPROVIDER: number; - const WSAEPROVIDERFAILEDINIT: number; - const WSASYSCALLFAILURE: number; - const WSASERVICE_NOT_FOUND: number; - const WSATYPE_NOT_FOUND: number; - const WSA_E_NO_MORE: number; - const WSA_E_CANCELLED: number; - const WSAEREFUSED: number; - } - namespace priority { - const PRIORITY_LOW: number; - const PRIORITY_BELOW_NORMAL: number; - const PRIORITY_NORMAL: number; - const PRIORITY_ABOVE_NORMAL: number; - const PRIORITY_HIGH: number; - const PRIORITY_HIGHEST: number; - } - } - const devNull: string; - const EOL: string; - /** - * Returns the operating system CPU architecture for which the Node.js binary was - * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`. - * - * The return value is equivalent to `process.arch`. - * @since v0.5.0 - */ - function arch(): string; - /** - * Returns a string identifying the kernel version. - * - * On POSIX systems, the operating system release is determined by calling[`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not - * available, `GetVersionExW()` will be used. See[https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. - * @since v13.11.0, v12.17.0 - */ - function version(): string; - /** - * Returns a string identifying the operating system platform. The value is set - * at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`. - * - * The return value is equivalent to `process.platform`. - * - * The value `'android'` may also be returned if Node.js is built on the Android - * operating system. [Android support is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). - * @since v0.5.0 - */ - function platform(): NodeJS.Platform; - /** - * Returns the operating system's default directory for temporary files as a - * string. - * @since v0.9.9 - */ - function tmpdir(): string; - /** - * Returns a string identifying the endianness of the CPU for which the Node.js - * binary was compiled. - * - * Possible values are `'BE'` for big endian and `'LE'` for little endian. - * @since v0.9.4 - */ - function endianness(): 'BE' | 'LE'; - /** - * Returns the scheduling priority for the process specified by `pid`. If `pid` is - * not provided or is `0`, the priority of the current process is returned. - * @since v10.10.0 - * @param [pid=0] The process ID to retrieve scheduling priority for. - */ - function getPriority(pid?: number): number; - /** - * Attempts to set the scheduling priority for the process specified by `pid`. If`pid` is not provided or is `0`, the process ID of the current process is used. - * - * The `priority` input must be an integer between `-20` (high priority) and `19`(low priority). Due to differences between Unix priority levels and Windows - * priority classes, `priority` is mapped to one of six priority constants in`os.constants.priority`. When retrieving a process priority level, this range - * mapping may cause the return value to be slightly different on Windows. To avoid - * confusion, set `priority` to one of the priority constants. - * - * On Windows, setting priority to `PRIORITY_HIGHEST` requires elevated user - * privileges. Otherwise the set priority will be silently reduced to`PRIORITY_HIGH`. - * @since v10.10.0 - * @param [pid=0] The process ID to set scheduling priority for. - * @param priority The scheduling priority to assign to the process. - */ - function setPriority(priority: number): void; - function setPriority(pid: number, priority: number): void; -} -declare module 'node:os' { - export * from 'os'; -} diff --git a/WechatBot/node_modules/@types/node/package.json b/WechatBot/node_modules/@types/node/package.json deleted file mode 100644 index 9319db347..000000000 --- a/WechatBot/node_modules/@types/node/package.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "name": "@types/node", - "version": "16.9.1", - "description": "TypeScript definitions for Node.js", - "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", - "license": "MIT", - "contributors": [ - { - "name": "Microsoft TypeScript", - "url": "https://github.com/Microsoft", - "githubUsername": "Microsoft" - }, - { - "name": "DefinitelyTyped", - "url": "https://github.com/DefinitelyTyped", - "githubUsername": "DefinitelyTyped" - }, - { - "name": "Alberto Schiabel", - "url": "https://github.com/jkomyno", - "githubUsername": "jkomyno" - }, - { - "name": "Alvis HT Tang", - "url": "https://github.com/alvis", - "githubUsername": "alvis" - }, - { - "name": "Andrew Makarov", - "url": "https://github.com/r3nya", - "githubUsername": "r3nya" - }, - { - "name": "Benjamin Toueg", - "url": "https://github.com/btoueg", - "githubUsername": "btoueg" - }, - { - "name": "Chigozirim C.", - "url": "https://github.com/smac89", - "githubUsername": "smac89" - }, - { - "name": "David Junger", - "url": "https://github.com/touffy", - "githubUsername": "touffy" - }, - { - "name": "Deividas Bakanas", - "url": "https://github.com/DeividasBakanas", - "githubUsername": "DeividasBakanas" - }, - { - "name": "Eugene Y. Q. Shen", - "url": "https://github.com/eyqs", - "githubUsername": "eyqs" - }, - { - "name": "Hannes Magnusson", - "url": "https://github.com/Hannes-Magnusson-CK", - "githubUsername": "Hannes-Magnusson-CK" - }, - { - "name": "Huw", - "url": "https://github.com/hoo29", - "githubUsername": "hoo29" - }, - { - "name": "Kelvin Jin", - "url": "https://github.com/kjin", - "githubUsername": "kjin" - }, - { - "name": "Klaus Meinhardt", - "url": "https://github.com/ajafff", - "githubUsername": "ajafff" - }, - { - "name": "Lishude", - "url": "https://github.com/islishude", - "githubUsername": "islishude" - }, - { - "name": "Mariusz Wiktorczyk", - "url": "https://github.com/mwiktorczyk", - "githubUsername": "mwiktorczyk" - }, - { - "name": "Mohsen Azimi", - "url": "https://github.com/mohsen1", - "githubUsername": "mohsen1" - }, - { - "name": "Nicolas Even", - "url": "https://github.com/n-e", - "githubUsername": "n-e" - }, - { - "name": "Nikita Galkin", - "url": "https://github.com/galkin", - "githubUsername": "galkin" - }, - { - "name": "Parambir Singh", - "url": "https://github.com/parambirs", - "githubUsername": "parambirs" - }, - { - "name": "Sebastian Silbermann", - "url": "https://github.com/eps1lon", - "githubUsername": "eps1lon" - }, - { - "name": "Simon Schick", - "url": "https://github.com/SimonSchick", - "githubUsername": "SimonSchick" - }, - { - "name": "Thomas den Hollander", - "url": "https://github.com/ThomasdenH", - "githubUsername": "ThomasdenH" - }, - { - "name": "Wilco Bakker", - "url": "https://github.com/WilcoBakker", - "githubUsername": "WilcoBakker" - }, - { - "name": "wwwy3y3", - "url": "https://github.com/wwwy3y3", - "githubUsername": "wwwy3y3" - }, - { - "name": "Samuel Ainsworth", - "url": "https://github.com/samuela", - "githubUsername": "samuela" - }, - { - "name": "Kyle Uehlein", - "url": "https://github.com/kuehlein", - "githubUsername": "kuehlein" - }, - { - "name": "Thanik Bhongbhibhat", - "url": "https://github.com/bhongy", - "githubUsername": "bhongy" - }, - { - "name": "Marcin Kopacz", - "url": "https://github.com/chyzwar", - "githubUsername": "chyzwar" - }, - { - "name": "Trivikram Kamat", - "url": "https://github.com/trivikr", - "githubUsername": "trivikr" - }, - { - "name": "Minh Son Nguyen", - "url": "https://github.com/nguymin4", - "githubUsername": "nguymin4" - }, - { - "name": "Junxiao Shi", - "url": "https://github.com/yoursunny", - "githubUsername": "yoursunny" - }, - { - "name": "Ilia Baryshnikov", - "url": "https://github.com/qwelias", - "githubUsername": "qwelias" - }, - { - "name": "ExE Boss", - "url": "https://github.com/ExE-Boss", - "githubUsername": "ExE-Boss" - }, - { - "name": "Surasak Chaisurin", - "url": "https://github.com/Ryan-Willpower", - "githubUsername": "Ryan-Willpower" - }, - { - "name": "Piotr Błażejewicz", - "url": "https://github.com/peterblazejewicz", - "githubUsername": "peterblazejewicz" - }, - { - "name": "Anna Henningsen", - "url": "https://github.com/addaleax", - "githubUsername": "addaleax" - }, - { - "name": "Jason Kwok", - "url": "https://github.com/JasonHK", - "githubUsername": "JasonHK" - }, - { - "name": "Victor Perin", - "url": "https://github.com/victorperin", - "githubUsername": "victorperin" - }, - { - "name": "Yongsheng Zhang", - "url": "https://github.com/ZYSzys", - "githubUsername": "ZYSzys" - }, - { - "name": "NodeJS Contributors", - "url": "https://github.com/NodeJS", - "githubUsername": "NodeJS" - }, - { - "name": "Linus Unnebäck", - "url": "https://github.com/LinusU", - "githubUsername": "LinusU" - }, - { - "name": "wafuwafu13", - "url": "https://github.com/wafuwafu13", - "githubUsername": "wafuwafu13" - } - ], - "main": "", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", - "directory": "types/node" - }, - "scripts": {}, - "dependencies": {}, - "typesPublisherContentHash": "2d4a0159d689896e5538afa996ef597df6922b3b716729c273148522b74b9f6c", - "typeScriptVersion": "3.7" -} \ No newline at end of file diff --git a/WechatBot/node_modules/@types/node/path.d.ts b/WechatBot/node_modules/@types/node/path.d.ts deleted file mode 100644 index 58712bef2..000000000 --- a/WechatBot/node_modules/@types/node/path.d.ts +++ /dev/null @@ -1,172 +0,0 @@ -declare module 'path/posix' { - import path = require('path'); - export = path; -} -declare module 'path/win32' { - import path = require('path'); - export = path; -} -/** - * The `path` module provides utilities for working with file and directory paths. - * It can be accessed using: - * - * ```js - * const path = require('path'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/path.js) - */ -declare module 'path' { - namespace path { - /** - * A parsed path object generated by path.parse() or consumed by path.format(). - */ - interface ParsedPath { - /** - * The root of the path such as '/' or 'c:\' - */ - root: string; - /** - * The full directory path such as '/home/user/dir' or 'c:\path\dir' - */ - dir: string; - /** - * The file name including extension (if any) such as 'index.html' - */ - base: string; - /** - * The file extension (if any) such as '.html' - */ - ext: string; - /** - * The file name without extension (if any) such as 'index' - */ - name: string; - } - interface FormatInputPathObject { - /** - * The root of the path such as '/' or 'c:\' - */ - root?: string | undefined; - /** - * The full directory path such as '/home/user/dir' or 'c:\path\dir' - */ - dir?: string | undefined; - /** - * The file name including extension (if any) such as 'index.html' - */ - base?: string | undefined; - /** - * The file extension (if any) such as '.html' - */ - ext?: string | undefined; - /** - * The file name without extension (if any) such as 'index' - */ - name?: string | undefined; - } - interface PlatformPath { - /** - * Normalize a string path, reducing '..' and '.' parts. - * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. - * - * @param p string path to normalize. - */ - normalize(p: string): string; - /** - * Join all arguments together and normalize the resulting path. - * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown. - * - * @param paths paths to join. - */ - join(...paths: string[]): string; - /** - * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. - * - * Starting from leftmost {from} parameter, resolves {to} to an absolute path. - * - * If {to} isn't already absolute, {from} arguments are prepended in right to left order, - * until an absolute path is found. If after using all {from} paths still no absolute path is found, - * the current working directory is used as well. The resulting path is normalized, - * and trailing slashes are removed unless the path gets resolved to the root directory. - * - * @param pathSegments string paths to join. Non-string arguments are ignored. - */ - resolve(...pathSegments: string[]): string; - /** - * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. - * - * @param path path to test. - */ - isAbsolute(p: string): boolean; - /** - * Solve the relative path from {from} to {to}. - * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve. - */ - relative(from: string, to: string): string; - /** - * Return the directory name of a path. Similar to the Unix dirname command. - * - * @param p the path to evaluate. - */ - dirname(p: string): string; - /** - * Return the last portion of a path. Similar to the Unix basename command. - * Often used to extract the file name from a fully qualified path. - * - * @param p the path to evaluate. - * @param ext optionally, an extension to remove from the result. - */ - basename(p: string, ext?: string): string; - /** - * Return the extension of the path, from the last '.' to end of string in the last portion of the path. - * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string - * - * @param p the path to evaluate. - */ - extname(p: string): string; - /** - * The platform-specific file separator. '\\' or '/'. - */ - readonly sep: string; - /** - * The platform-specific file delimiter. ';' or ':'. - */ - readonly delimiter: string; - /** - * Returns an object from a path string - the opposite of format(). - * - * @param pathString path to evaluate. - */ - parse(p: string): ParsedPath; - /** - * Returns a path string from an object - the opposite of parse(). - * - * @param pathString path to evaluate. - */ - format(pP: FormatInputPathObject): string; - /** - * On Windows systems only, returns an equivalent namespace-prefixed path for the given path. - * If path is not a string, path will be returned without modifications. - * This method is meaningful only on Windows system. - * On POSIX systems, the method is non-operational and always returns path without modifications. - */ - toNamespacedPath(path: string): string; - /** - * Posix specific pathing. - * Same as parent object on posix. - */ - readonly posix: PlatformPath; - /** - * Windows specific pathing. - * Same as parent object on windows - */ - readonly win32: PlatformPath; - } - } - const path: path.PlatformPath; - export = path; -} -declare module 'node:path' { - import path = require('path'); - export = path; -} diff --git a/WechatBot/node_modules/@types/node/perf_hooks.d.ts b/WechatBot/node_modules/@types/node/perf_hooks.d.ts deleted file mode 100644 index 02f330c7b..000000000 --- a/WechatBot/node_modules/@types/node/perf_hooks.d.ts +++ /dev/null @@ -1,555 +0,0 @@ -/** - * This module provides an implementation of a subset of the W3C[Web Performance APIs](https://w3c.github.io/perf-timing-primer/) as well as additional APIs for - * Node.js-specific performance measurements. - * - * Node.js supports the following [Web Performance APIs](https://w3c.github.io/perf-timing-primer/): - * - * * [High Resolution Time](https://www.w3.org/TR/hr-time-2) - * * [Performance Timeline](https://w3c.github.io/performance-timeline/) - * * [User Timing](https://www.w3.org/TR/user-timing/) - * - * ```js - * const { PerformanceObserver, performance } = require('perf_hooks'); - * - * const obs = new PerformanceObserver((items) => { - * console.log(items.getEntries()[0].duration); - * performance.clearMarks(); - * }); - * obs.observe({ type: 'measure' }); - * performance.measure('Start to Now'); - * - * performance.mark('A'); - * doSomeLongRunningProcess(() => { - * performance.measure('A to Now', 'A'); - * - * performance.mark('B'); - * performance.measure('A to B', 'A', 'B'); - * }); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/perf_hooks.js) - */ -declare module 'perf_hooks' { - import { AsyncResource } from 'node:async_hooks'; - type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http'; - interface NodeGCPerformanceDetail { - /** - * When `performanceEntry.entryType` is equal to 'gc', `the performance.kind` property identifies - * the type of garbage collection operation that occurred. - * See perf_hooks.constants for valid values. - */ - readonly kind?: number | undefined; - /** - * When `performanceEntry.entryType` is equal to 'gc', the `performance.flags` - * property contains additional information about garbage collection operation. - * See perf_hooks.constants for valid values. - */ - readonly flags?: number | undefined; - } - /** - * @since v8.5.0 - */ - class PerformanceEntry { - protected constructor(); - /** - * The total number of milliseconds elapsed for this entry. This value will not - * be meaningful for all Performance Entry types. - * @since v8.5.0 - */ - readonly duration: number; - /** - * The name of the performance entry. - * @since v8.5.0 - */ - readonly name: string; - /** - * The high resolution millisecond timestamp marking the starting time of the - * Performance Entry. - * @since v8.5.0 - */ - readonly startTime: number; - /** - * The type of the performance entry. It may be one of: - * - * * `'node'` (Node.js only) - * * `'mark'` (available on the Web) - * * `'measure'` (available on the Web) - * * `'gc'` (Node.js only) - * * `'function'` (Node.js only) - * * `'http2'` (Node.js only) - * * `'http'` (Node.js only) - * @since v8.5.0 - */ - readonly entryType: EntryType; - /** - * Additional detail specific to the `entryType`. - * @since v16.0.0 - */ - readonly details?: NodeGCPerformanceDetail | unknown | undefined; // TODO: Narrow this based on entry type. - } - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * Provides timing details for Node.js itself. The constructor of this class - * is not exposed to users. - * @since v8.5.0 - */ - class PerformanceNodeTiming extends PerformanceEntry { - /** - * The high resolution millisecond timestamp at which the Node.js process - * completed bootstrapping. If bootstrapping has not yet finished, the property - * has the value of -1. - * @since v8.5.0 - */ - readonly bootstrapComplete: number; - /** - * The high resolution millisecond timestamp at which the Node.js environment was - * initialized. - * @since v8.5.0 - */ - readonly environment: number; - /** - * The high resolution millisecond timestamp of the amount of time the event loop - * has been idle within the event loop's event provider (e.g. `epoll_wait`). This - * does not take CPU usage into consideration. If the event loop has not yet - * started (e.g., in the first tick of the main script), the property has the - * value of 0. - * @since v14.10.0, v12.19.0 - */ - readonly idleTime: number; - /** - * The high resolution millisecond timestamp at which the Node.js event loop - * exited. If the event loop has not yet exited, the property has the value of -1\. - * It can only have a value of not -1 in a handler of the `'exit'` event. - * @since v8.5.0 - */ - readonly loopExit: number; - /** - * The high resolution millisecond timestamp at which the Node.js event loop - * started. If the event loop has not yet started (e.g., in the first tick of the - * main script), the property has the value of -1. - * @since v8.5.0 - */ - readonly loopStart: number; - /** - * The high resolution millisecond timestamp at which the V8 platform was - * initialized. - * @since v8.5.0 - */ - readonly v8Start: number; - } - interface EventLoopUtilization { - idle: number; - active: number; - utilization: number; - } - /** - * @param util1 The result of a previous call to eventLoopUtilization() - * @param util2 The result of a previous call to eventLoopUtilization() prior to util1 - */ - type EventLoopUtilityFunction = (util1?: EventLoopUtilization, util2?: EventLoopUtilization) => EventLoopUtilization; - interface MarkOptions { - /** - * Additional optional detail to include with the mark. - */ - detail?: unknown | undefined; - /** - * An optional timestamp to be used as the mark time. - * @default `performance.now()`. - */ - startTime?: number | undefined; - } - interface MeasureOptions { - /** - * Additional optional detail to include with the mark. - */ - detail?: unknown | undefined; - /** - * Duration between start and end times. - */ - duration?: number | undefined; - /** - * Timestamp to be used as the end time, or a string identifying a previously recorded mark. - */ - end?: number | string | undefined; - /** - * Timestamp to be used as the start time, or a string identifying a previously recorded mark. - */ - start?: number | string | undefined; - } - interface TimerifyOptions { - /** - * A histogram object created using - * `perf_hooks.createHistogram()` that will record runtime durations in - * nanoseconds. - */ - histogram?: RecordableHistogram | undefined; - } - interface Performance { - /** - * If name is not provided, removes all PerformanceMark objects from the Performance Timeline. - * If name is provided, removes only the named mark. - * @param name - */ - clearMarks(name?: string): void; - /** - * Creates a new PerformanceMark entry in the Performance Timeline. - * A PerformanceMark is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'mark', - * and whose performanceEntry.duration is always 0. - * Performance marks are used to mark specific significant moments in the Performance Timeline. - * @param name - */ - mark(name?: string, options?: MarkOptions): void; - /** - * Creates a new PerformanceMeasure entry in the Performance Timeline. - * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure', - * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark. - * - * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify - * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist, - * then startMark is set to timeOrigin by default. - * - * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp - * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown. - * @param name - * @param startMark - * @param endMark - */ - measure(name: string, startMark?: string, endMark?: string): void; - measure(name: string, options: MeasureOptions): void; - /** - * An instance of the PerformanceNodeTiming class that provides performance metrics for specific Node.js operational milestones. - */ - readonly nodeTiming: PerformanceNodeTiming; - /** - * @return the current high resolution millisecond timestamp - */ - now(): number; - /** - * The timeOrigin specifies the high resolution millisecond timestamp from which all performance metric durations are measured. - */ - readonly timeOrigin: number; - /** - * Wraps a function within a new function that measures the running time of the wrapped function. - * A PerformanceObserver must be subscribed to the 'function' event type in order for the timing details to be accessed. - * @param fn - */ - timerify any>(fn: T, options?: TimerifyOptions): T; - /** - * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time. - * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait). - * No other CPU idle time is taken into consideration. - */ - eventLoopUtilization: EventLoopUtilityFunction; - } - interface PerformanceObserverEntryList { - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime`. - * - * ```js - * const { - * performance, - * PerformanceObserver - * } = require('perf_hooks'); - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntries()); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 81.465639, - * * duration: 0 - * * }, - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 81.860064, - * * duration: 0 - * * } - * * ] - * - * observer.disconnect(); - * }); - * obs.observe({ type: 'mark' }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntries(): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime` whose `performanceEntry.name` is - * equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`. - * - * ```js - * const { - * performance, - * PerformanceObserver - * } = require('perf_hooks'); - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntriesByName('meow')); - * - * * [ - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 98.545991, - * * duration: 0 - * * } - * * ] - * - * console.log(perfObserverList.getEntriesByName('nope')); // [] - * - * console.log(perfObserverList.getEntriesByName('test', 'mark')); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 63.518931, - * * duration: 0 - * * } - * * ] - * - * console.log(perfObserverList.getEntriesByName('test', 'measure')); // [] - * observer.disconnect(); - * }); - * obs.observe({ entryTypes: ['mark', 'measure'] }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntriesByName(name: string, type?: EntryType): PerformanceEntry[]; - /** - * Returns a list of `PerformanceEntry` objects in chronological order - * with respect to `performanceEntry.startTime` whose `performanceEntry.entryType`is equal to `type`. - * - * ```js - * const { - * performance, - * PerformanceObserver - * } = require('perf_hooks'); - * - * const obs = new PerformanceObserver((perfObserverList, observer) => { - * console.log(perfObserverList.getEntriesByType('mark')); - * - * * [ - * * PerformanceEntry { - * * name: 'test', - * * entryType: 'mark', - * * startTime: 55.897834, - * * duration: 0 - * * }, - * * PerformanceEntry { - * * name: 'meow', - * * entryType: 'mark', - * * startTime: 56.350146, - * * duration: 0 - * * } - * * ] - * - * observer.disconnect(); - * }); - * obs.observe({ type: 'mark' }); - * - * performance.mark('test'); - * performance.mark('meow'); - * ``` - * @since v8.5.0 - */ - getEntriesByType(type: EntryType): PerformanceEntry[]; - } - type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void; - class PerformanceObserver extends AsyncResource { - constructor(callback: PerformanceObserverCallback); - /** - * Disconnects the `PerformanceObserver` instance from all notifications. - * @since v8.5.0 - */ - disconnect(): void; - /** - * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes`or `options.type`: - * - * ```js - * const { - * performance, - * PerformanceObserver - * } = require('perf_hooks'); - * - * const obs = new PerformanceObserver((list, observer) => { - * // Called three times synchronously. `list` contains one item. - * }); - * obs.observe({ type: 'mark' }); - * - * for (let n = 0; n < 3; n++) - * performance.mark(`test${n}`); - * ``` - * @since v8.5.0 - */ - observe( - options: - | { - entryTypes: ReadonlyArray; - } - | { - type: EntryType; - } - ): void; - } - namespace constants { - const NODE_PERFORMANCE_GC_MAJOR: number; - const NODE_PERFORMANCE_GC_MINOR: number; - const NODE_PERFORMANCE_GC_INCREMENTAL: number; - const NODE_PERFORMANCE_GC_WEAKCB: number; - const NODE_PERFORMANCE_GC_FLAGS_NO: number; - const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number; - const NODE_PERFORMANCE_GC_FLAGS_FORCED: number; - const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number; - const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number; - const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number; - const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number; - } - const performance: Performance; - interface EventLoopMonitorOptions { - /** - * The sampling rate in milliseconds. - * Must be greater than zero. - * @default 10 - */ - resolution?: number | undefined; - } - interface Histogram { - /** - * Returns a `Map` object detailing the accumulated percentile distribution. - * @since v11.10.0 - */ - readonly percentiles: Map; - /** - * The number of times the event loop delay exceeded the maximum 1 hour event - * loop delay threshold. - * @since v11.10.0 - */ - readonly exceeds: number; - /** - * The minimum recorded event loop delay. - * @since v11.10.0 - */ - readonly min: number; - /** - * The maximum recorded event loop delay. - * @since v11.10.0 - */ - readonly max: number; - /** - * The mean of the recorded event loop delays. - * @since v11.10.0 - */ - readonly mean: number; - /** - * The standard deviation of the recorded event loop delays. - * @since v11.10.0 - */ - readonly stddev: number; - /** - * Resets the collected histogram data. - * @since v11.10.0 - */ - reset(): void; - /** - * Returns the value at the given percentile. - * @since v11.10.0 - * @param percentile A percentile value in the range (0, 100]. - */ - percentile(percentile: number): number; - } - interface IntervalHistogram extends Histogram { - /** - * Enables the update interval timer. Returns `true` if the timer was - * started, `false` if it was already started. - * @since v11.10.0 - */ - enable(): boolean; - /** - * Disables the update interval timer. Returns `true` if the timer was - * stopped, `false` if it was already stopped. - * @since v11.10.0 - */ - disable(): boolean; - } - interface RecordableHistogram extends Histogram { - /** - * @since v15.9.0 - * @param val The amount to record in the histogram. - */ - record(val: number | bigint): void; - /** - * Calculates the amount of time (in nanoseconds) that has passed since the - * previous call to `recordDelta()` and records that amount in the histogram. - * - * ## Examples - * @since v15.9.0 - */ - recordDelta(): void; - } - /** - * _This property is an extension by Node.js. It is not available in Web browsers._ - * - * Creates an `IntervalHistogram` object that samples and reports the event loop - * delay over time. The delays will be reported in nanoseconds. - * - * Using a timer to detect approximate event loop delay works because the - * execution of timers is tied specifically to the lifecycle of the libuv - * event loop. That is, a delay in the loop will cause a delay in the execution - * of the timer, and those delays are specifically what this API is intended to - * detect. - * - * ```js - * const { monitorEventLoopDelay } = require('perf_hooks'); - * const h = monitorEventLoopDelay({ resolution: 20 }); - * h.enable(); - * // Do something. - * h.disable(); - * console.log(h.min); - * console.log(h.max); - * console.log(h.mean); - * console.log(h.stddev); - * console.log(h.percentiles); - * console.log(h.percentile(50)); - * console.log(h.percentile(99)); - * ``` - * @since v11.10.0 - */ - function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram; - interface CreateHistogramOptions { - /** - * The minimum recordable value. Must be an integer value greater than 0. - * @default 1 - */ - min?: number | bigint | undefined; - /** - * The maximum recordable value. Must be an integer value greater than min. - * @default Number.MAX_SAFE_INTEGER - */ - max?: number | bigint | undefined; - /** - * The number of accuracy digits. Must be a number between 1 and 5. - * @default 3 - */ - figures?: number | undefined; - } - /** - * Returns a `RecordableHistogram`. - * @since v15.9.0 - */ - function createHistogram(options?: CreateHistogramOptions): RecordableHistogram; -} -declare module 'node:perf_hooks' { - export * from 'perf_hooks'; -} diff --git a/WechatBot/node_modules/@types/node/process.d.ts b/WechatBot/node_modules/@types/node/process.d.ts deleted file mode 100644 index 1f0d144a0..000000000 --- a/WechatBot/node_modules/@types/node/process.d.ts +++ /dev/null @@ -1,1477 +0,0 @@ -declare module 'process' { - import * as tty from 'node:tty'; - import { Worker } from 'node:worker_threads'; - global { - var process: NodeJS.Process; - namespace NodeJS { - // this namespace merge is here because these are specifically used - // as the type for process.stdin, process.stdout, and process.stderr. - // they can't live in tty.d.ts because we need to disambiguate the imported name. - interface ReadStream extends tty.ReadStream {} - interface WriteStream extends tty.WriteStream {} - interface MemoryUsageFn { - /** - * The `process.memoryUsage()` method iterate over each page to gather informations about memory - * usage which can be slow depending on the program memory allocations. - */ - (): MemoryUsage; - /** - * method returns an integer representing the Resident Set Size (RSS) in bytes. - */ - rss(): number; - } - interface MemoryUsage { - rss: number; - heapTotal: number; - heapUsed: number; - external: number; - arrayBuffers: number; - } - interface CpuUsage { - user: number; - system: number; - } - interface ProcessRelease { - name: string; - sourceUrl?: string | undefined; - headersUrl?: string | undefined; - libUrl?: string | undefined; - lts?: string | undefined; - } - interface ProcessVersions extends Dict { - http_parser: string; - node: string; - v8: string; - ares: string; - uv: string; - zlib: string; - modules: string; - openssl: string; - } - type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd'; - type Signals = - | 'SIGABRT' - | 'SIGALRM' - | 'SIGBUS' - | 'SIGCHLD' - | 'SIGCONT' - | 'SIGFPE' - | 'SIGHUP' - | 'SIGILL' - | 'SIGINT' - | 'SIGIO' - | 'SIGIOT' - | 'SIGKILL' - | 'SIGPIPE' - | 'SIGPOLL' - | 'SIGPROF' - | 'SIGPWR' - | 'SIGQUIT' - | 'SIGSEGV' - | 'SIGSTKFLT' - | 'SIGSTOP' - | 'SIGSYS' - | 'SIGTERM' - | 'SIGTRAP' - | 'SIGTSTP' - | 'SIGTTIN' - | 'SIGTTOU' - | 'SIGUNUSED' - | 'SIGURG' - | 'SIGUSR1' - | 'SIGUSR2' - | 'SIGVTALRM' - | 'SIGWINCH' - | 'SIGXCPU' - | 'SIGXFSZ' - | 'SIGBREAK' - | 'SIGLOST' - | 'SIGINFO'; - type UncaughtExceptionOrigin = 'uncaughtException' | 'unhandledRejection'; - type MultipleResolveType = 'resolve' | 'reject'; - type BeforeExitListener = (code: number) => void; - type DisconnectListener = () => void; - type ExitListener = (code: number) => void; - type RejectionHandledListener = (promise: Promise) => void; - type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void; - type UnhandledRejectionListener = (reason: {} | null | undefined, promise: Promise) => void; - type WarningListener = (warning: Error) => void; - type MessageListener = (message: unknown, sendHandle: unknown) => void; - type SignalsListener = (signal: Signals) => void; - type MultipleResolveListener = (type: MultipleResolveType, promise: Promise, value: unknown) => void; - type WorkerListener = (worker: Worker) => void; - interface Socket extends ReadWriteStream { - isTTY?: true | undefined; - } - // Alias for compatibility - interface ProcessEnv extends Dict { - /** - * Can be used to change the default timezone at runtime - */ - TZ?: string; - } - interface HRTime { - (time?: [number, number]): [number, number]; - bigint(): bigint; - } - interface ProcessReport { - /** - * Directory where the report is written. - * working directory of the Node.js process. - * @default '' indicating that reports are written to the current - */ - directory: string; - /** - * Filename where the report is written. - * The default value is the empty string. - * @default '' the output filename will be comprised of a timestamp, - * PID, and sequence number. - */ - filename: string; - /** - * Returns a JSON-formatted diagnostic report for the running process. - * The report's JavaScript stack trace is taken from err, if present. - */ - getReport(err?: Error): string; - /** - * If true, a diagnostic report is generated on fatal errors, - * such as out of memory errors or failed C++ assertions. - * @default false - */ - reportOnFatalError: boolean; - /** - * If true, a diagnostic report is generated when the process - * receives the signal specified by process.report.signal. - * @defaul false - */ - reportOnSignal: boolean; - /** - * If true, a diagnostic report is generated on uncaught exception. - * @default false - */ - reportOnUncaughtException: boolean; - /** - * The signal used to trigger the creation of a diagnostic report. - * @default 'SIGUSR2' - */ - signal: Signals; - /** - * Writes a diagnostic report to a file. If filename is not provided, the default filename - * includes the date, time, PID, and a sequence number. - * The report's JavaScript stack trace is taken from err, if present. - * - * @param fileName Name of the file where the report is written. - * This should be a relative path, that will be appended to the directory specified in - * `process.report.directory`, or the current working directory of the Node.js process, - * if unspecified. - * @param error A custom error used for reporting the JavaScript stack. - * @return Filename of the generated report. - */ - writeReport(fileName?: string): string; - writeReport(error?: Error): string; - writeReport(fileName?: string, err?: Error): string; - } - interface ResourceUsage { - fsRead: number; - fsWrite: number; - involuntaryContextSwitches: number; - ipcReceived: number; - ipcSent: number; - majorPageFault: number; - maxRSS: number; - minorPageFault: number; - sharedMemorySize: number; - signalsCount: number; - swappedOut: number; - systemCPUTime: number; - unsharedDataSize: number; - unsharedStackSize: number; - userCPUTime: number; - voluntaryContextSwitches: number; - } - interface EmitWarningOptions { - /** - * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. - * - * @default 'Warning' - */ - type?: string | undefined; - /** - * A unique identifier for the warning instance being emitted. - */ - code?: string | undefined; - /** - * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. - * - * @default process.emitWarning - */ - ctor?: Function | undefined; - /** - * Additional text to include with the error. - */ - detail?: string | undefined; - } - interface ProcessConfig { - readonly target_defaults: { - readonly cflags: any[]; - readonly default_configuration: string; - readonly defines: string[]; - readonly include_dirs: string[]; - readonly libraries: string[]; - }; - readonly variables: { - readonly clang: number; - readonly host_arch: string; - readonly node_install_npm: boolean; - readonly node_install_waf: boolean; - readonly node_prefix: string; - readonly node_shared_openssl: boolean; - readonly node_shared_v8: boolean; - readonly node_shared_zlib: boolean; - readonly node_use_dtrace: boolean; - readonly node_use_etw: boolean; - readonly node_use_openssl: boolean; - readonly target_arch: string; - readonly v8_no_strict_aliasing: number; - readonly v8_use_snapshot: boolean; - readonly visibility: string; - }; - } - interface Process extends EventEmitter { - /** - * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is - * a `Writable` stream. - * - * For example, to copy `process.stdin` to `process.stdout`: - * - * ```js - * import { stdin, stdout } from 'process'; - * - * stdin.pipe(stdout); - * ``` - * - * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information. - */ - stdout: WriteStream & { - fd: 1; - }; - /** - * The `process.stderr` property returns a stream connected to`stderr` (fd `2`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `2` refers to a file, in which case it is - * a `Writable` stream. - * - * `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information. - */ - stderr: WriteStream & { - fd: 2; - }; - /** - * The `process.stdin` property returns a stream connected to`stdin` (fd `0`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `0` refers to a file, in which case it is - * a `Readable` stream. - * - * For details of how to read from `stdin` see `readable.read()`. - * - * As a `Duplex` stream, `process.stdin` can also be used in "old" mode that - * is compatible with scripts written for Node.js prior to v0.10\. - * For more information see `Stream compatibility`. - * - * In "old" streams mode the `stdin` stream is paused by default, so one - * must call `process.stdin.resume()` to read from it. Note also that calling`process.stdin.resume()` itself would switch stream to "old" mode. - */ - stdin: ReadStream & { - fd: 0; - }; - openStdin(): Socket; - /** - * The `process.argv` property returns an array containing the command-line - * arguments passed when the Node.js process was launched. The first element will - * be {@link execPath}. See `process.argv0` if access to the original value - * of `argv[0]` is needed. The second element will be the path to the JavaScript - * file being executed. The remaining elements will be any additional command-line - * arguments. - * - * For example, assuming the following script for `process-args.js`: - * - * ```js - * import { argv } from 'process'; - * - * // print process.argv - * argv.forEach((val, index) => { - * console.log(`${index}: ${val}`); - * }); - * ``` - * - * Launching the Node.js process as: - * - * ```console - * $ node process-args.js one two=three four - * ``` - * - * Would generate the output: - * - * ```text - * 0: /usr/local/bin/node - * 1: /Users/mjr/work/node/process-args.js - * 2: one - * 3: two=three - * 4: four - * ``` - * @since v0.1.27 - */ - argv: string[]; - /** - * The `process.argv0` property stores a read-only copy of the original value of`argv[0]` passed when Node.js starts. - * - * ```console - * $ bash -c 'exec -a customArgv0 ./node' - * > process.argv[0] - * '/Volumes/code/external/node/out/Release/node' - * > process.argv0 - * 'customArgv0' - * ``` - * @since v6.4.0 - */ - argv0: string; - /** - * The `process.execArgv` property returns the set of Node.js-specific command-line - * options passed when the Node.js process was launched. These options do not - * appear in the array returned by the {@link argv} property, and do not - * include the Node.js executable, the name of the script, or any options following - * the script name. These options are useful in order to spawn child processes with - * the same execution environment as the parent. - * - * ```console - * $ node --harmony script.js --version - * ``` - * - * Results in `process.execArgv`: - * - * ```js - * ['--harmony'] - * ``` - * - * And `process.argv`: - * - * ```js - * ['/usr/local/bin/node', 'script.js', '--version'] - * ``` - * - * Refer to `Worker constructor` for the detailed behavior of worker - * threads with this property. - * @since v0.7.7 - */ - execArgv: string[]; - /** - * The `process.execPath` property returns the absolute pathname of the executable - * that started the Node.js process. Symbolic links, if any, are resolved. - * - * ```js - * '/usr/local/bin/node' - * ``` - * @since v0.1.100 - */ - execPath: string; - /** - * The `process.abort()` method causes the Node.js process to exit immediately and - * generate a core file. - * - * This feature is not available in `Worker` threads. - * @since v0.7.0 - */ - abort(): never; - /** - * The `process.chdir()` method changes the current working directory of the - * Node.js process or throws an exception if doing so fails (for instance, if - * the specified `directory` does not exist). - * - * ```js - * import { chdir, cwd } from 'process'; - * - * console.log(`Starting directory: ${cwd()}`); - * try { - * chdir('/tmp'); - * console.log(`New directory: ${cwd()}`); - * } catch (err) { - * console.error(`chdir: ${err}`); - * } - * ``` - * - * This feature is not available in `Worker` threads. - * @since v0.1.17 - */ - chdir(directory: string): void; - /** - * The `process.cwd()` method returns the current working directory of the Node.js - * process. - * - * ```js - * import { cwd } from 'process'; - * - * console.log(`Current directory: ${cwd()}`); - * ``` - * @since v0.1.8 - */ - cwd(): string; - /** - * The port used by the Node.js debugger when enabled. - * - * ```js - * import process from 'process'; - * - * process.debugPort = 5858; - * ``` - * @since v0.7.2 - */ - debugPort: number; - /** - * The `process.emitWarning()` method can be used to emit custom or application - * specific process warnings. These can be listened for by adding a handler to the `'warning'` event. - * - * ```js - * import { emitWarning } from 'process'; - * - * // Emit a warning with a code and additional detail. - * emitWarning('Something happened!', { - * code: 'MY_WARNING', - * detail: 'This is some additional information' - * }); - * // Emits: - * // (node:56338) [MY_WARNING] Warning: Something happened! - * // This is some additional information - * ``` - * - * In this example, an `Error` object is generated internally by`process.emitWarning()` and passed through to the `'warning'` handler. - * - * ```js - * import process from 'process'; - * - * process.on('warning', (warning) => { - * console.warn(warning.name); // 'Warning' - * console.warn(warning.message); // 'Something happened!' - * console.warn(warning.code); // 'MY_WARNING' - * console.warn(warning.stack); // Stack trace - * console.warn(warning.detail); // 'This is some additional information' - * }); - * ``` - * - * If `warning` is passed as an `Error` object, the `options` argument is ignored. - * @since v8.0.0 - * @param warning The warning to emit. - */ - emitWarning(warning: string | Error, ctor?: Function): void; - emitWarning(warning: string | Error, type?: string, ctor?: Function): void; - emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void; - emitWarning(warning: string | Error, options?: EmitWarningOptions): void; - /** - * The `process.env` property returns an object containing the user environment. - * See [`environ(7)`](http://man7.org/linux/man-pages/man7/environ.7.html). - * - * An example of this object looks like: - * - * ```js - * { - * TERM: 'xterm-256color', - * SHELL: '/usr/local/bin/bash', - * USER: 'maciej', - * PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin', - * PWD: '/Users/maciej', - * EDITOR: 'vim', - * SHLVL: '1', - * HOME: '/Users/maciej', - * LOGNAME: 'maciej', - * _: '/usr/local/bin/node' - * } - * ``` - * - * It is possible to modify this object, but such modifications will not be - * reflected outside the Node.js process, or (unless explicitly requested) - * to other `Worker` threads. - * In other words, the following example would not work: - * - * ```console - * $ node -e 'process.env.foo = "bar"' && echo $foo - * ``` - * - * While the following will: - * - * ```js - * import { env } from 'process'; - * - * env.foo = 'bar'; - * console.log(env.foo); - * ``` - * - * Assigning a property on `process.env` will implicitly convert the value - * to a string. **This behavior is deprecated.** Future versions of Node.js may - * throw an error when the value is not a string, number, or boolean. - * - * ```js - * import { env } from 'process'; - * - * env.test = null; - * console.log(env.test); - * // => 'null' - * env.test = undefined; - * console.log(env.test); - * // => 'undefined' - * ``` - * - * Use `delete` to delete a property from `process.env`. - * - * ```js - * import { env } from 'process'; - * - * env.TEST = 1; - * delete env.TEST; - * console.log(env.TEST); - * // => undefined - * ``` - * - * On Windows operating systems, environment variables are case-insensitive. - * - * ```js - * import { env } from 'process'; - * - * env.TEST = 1; - * console.log(env.test); - * // => 1 - * ``` - * - * Unless explicitly specified when creating a `Worker` instance, - * each `Worker` thread has its own copy of `process.env`, based on its - * parent thread’s `process.env`, or whatever was specified as the `env` option - * to the `Worker` constructor. Changes to `process.env` will not be visible - * across `Worker` threads, and only the main thread can make changes that - * are visible to the operating system or to native add-ons. - * @since v0.1.27 - */ - env: ProcessEnv; - /** - * The `process.exit()` method instructs Node.js to terminate the process - * synchronously with an exit status of `code`. If `code` is omitted, exit uses - * either the 'success' code `0` or the value of `process.exitCode` if it has been - * set. Node.js will not terminate until all the `'exit'` event listeners are - * called. - * - * To exit with a 'failure' code: - * - * ```js - * import { exit } from 'process'; - * - * exit(1); - * ``` - * - * The shell that executed Node.js should see the exit code as `1`. - * - * Calling `process.exit()` will force the process to exit as quickly as possible - * even if there are still asynchronous operations pending that have not yet - * completed fully, including I/O operations to `process.stdout` and`process.stderr`. - * - * In most situations, it is not actually necessary to call `process.exit()`explicitly. The Node.js process will exit on its own _if there is no additional_ - * _work pending_ in the event loop. The `process.exitCode` property can be set to - * tell the process which exit code to use when the process exits gracefully. - * - * For instance, the following example illustrates a _misuse_ of the`process.exit()` method that could lead to data printed to stdout being - * truncated and lost: - * - * ```js - * import { exit } from 'process'; - * - * // This is an example of what *not* to do: - * if (someConditionNotMet()) { - * printUsageToStdout(); - * exit(1); - * } - * ``` - * - * The reason this is problematic is because writes to `process.stdout` in Node.js - * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js - * event loop. Calling `process.exit()`, however, forces the process to exit_before_ those additional writes to `stdout` can be performed. - * - * Rather than calling `process.exit()` directly, the code _should_ set the`process.exitCode` and allow the process to exit naturally by avoiding - * scheduling any additional work for the event loop: - * - * ```js - * import process from 'process'; - * - * // How to properly set the exit code while letting - * // the process exit gracefully. - * if (someConditionNotMet()) { - * printUsageToStdout(); - * process.exitCode = 1; - * } - * ``` - * - * If it is necessary to terminate the Node.js process due to an error condition, - * throwing an _uncaught_ error and allowing the process to terminate accordingly - * is safer than calling `process.exit()`. - * - * In `Worker` threads, this function stops the current thread rather - * than the current process. - * @since v0.1.13 - * @param [code=0] The exit code. - */ - exit(code?: number): never; - /** - * A number which will be the process exit code, when the process either - * exits gracefully, or is exited via {@link exit} without specifying - * a code. - * - * Specifying a code to {@link exit} will override any - * previous setting of `process.exitCode`. - * @since v0.11.8 - */ - exitCode?: number | undefined; - /** - * The `process.getgid()` method returns the numerical group identity of the - * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).) - * - * ```js - * import process from 'process'; - * - * if (process.getgid) { - * console.log(`Current gid: ${process.getgid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.1.31 - */ - getgid(): number; - /** - * The `process.setgid()` method sets the group identity of the process. (See[`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a - * numeric ID or a group name - * string. If a group name is specified, this method blocks while resolving the - * associated numeric ID. - * - * ```js - * import process from 'process'; - * - * if (process.getgid && process.setgid) { - * console.log(`Current gid: ${process.getgid()}`); - * try { - * process.setgid(501); - * console.log(`New gid: ${process.getgid()}`); - * } catch (err) { - * console.log(`Failed to set gid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.1.31 - * @param id The group name or ID - */ - setgid(id: number | string): void; - /** - * The `process.getuid()` method returns the numeric user identity of the process. - * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).) - * - * ```js - * import process from 'process'; - * - * if (process.getuid) { - * console.log(`Current uid: ${process.getuid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.1.28 - */ - getuid(): number; - /** - * The `process.setuid(id)` method sets the user identity of the process. (See[`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a - * numeric ID or a username string. - * If a username is specified, the method blocks while resolving the associated - * numeric ID. - * - * ```js - * import process from 'process'; - * - * if (process.getuid && process.setuid) { - * console.log(`Current uid: ${process.getuid()}`); - * try { - * process.setuid(501); - * console.log(`New uid: ${process.getuid()}`); - * } catch (err) { - * console.log(`Failed to set uid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.1.28 - */ - setuid(id: number | string): void; - /** - * The `process.geteuid()` method returns the numerical effective user identity of - * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).) - * - * ```js - * import process from 'process'; - * - * if (process.geteuid) { - * console.log(`Current uid: ${process.geteuid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v2.0.0 - */ - geteuid(): number; - /** - * The `process.seteuid()` method sets the effective user identity of the process. - * (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username - * string. If a username is specified, the method blocks while resolving the - * associated numeric ID. - * - * ```js - * import process from 'process'; - * - * if (process.geteuid && process.seteuid) { - * console.log(`Current uid: ${process.geteuid()}`); - * try { - * process.seteuid(501); - * console.log(`New uid: ${process.geteuid()}`); - * } catch (err) { - * console.log(`Failed to set uid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v2.0.0 - * @param id A user name or ID - */ - seteuid(id: number | string): void; - /** - * The `process.getegid()` method returns the numerical effective group identity - * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).) - * - * ```js - * import process from 'process'; - * - * if (process.getegid) { - * console.log(`Current gid: ${process.getegid()}`); - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v2.0.0 - */ - getegid(): number; - /** - * The `process.setegid()` method sets the effective group identity of the process. - * (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group - * name string. If a group name is specified, this method blocks while resolving - * the associated a numeric ID. - * - * ```js - * import process from 'process'; - * - * if (process.getegid && process.setegid) { - * console.log(`Current gid: ${process.getegid()}`); - * try { - * process.setegid(501); - * console.log(`New gid: ${process.getegid()}`); - * } catch (err) { - * console.log(`Failed to set gid: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v2.0.0 - * @param id A group name or ID - */ - setegid(id: number | string): void; - /** - * The `process.getgroups()` method returns an array with the supplementary group - * IDs. POSIX leaves it unspecified if the effective group ID is included but - * Node.js ensures it always is. - * - * ```js - * import process from 'process'; - * - * if (process.getgroups) { - * console.log(process.getgroups()); // [ 16, 21, 297 ] - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * @since v0.9.4 - */ - getgroups(): number[]; - /** - * The `process.setgroups()` method sets the supplementary group IDs for the - * Node.js process. This is a privileged operation that requires the Node.js - * process to have `root` or the `CAP_SETGID` capability. - * - * The `groups` array can contain numeric group IDs, group names, or both. - * - * ```js - * import process from 'process'; - * - * if (process.getgroups && process.setgroups) { - * try { - * process.setgroups([501]); - * console.log(process.getgroups()); // new groups - * } catch (err) { - * console.log(`Failed to set groups: ${err}`); - * } - * } - * ``` - * - * This function is only available on POSIX platforms (i.e. not Windows or - * Android). - * This feature is not available in `Worker` threads. - * @since v0.9.4 - */ - setgroups(groups: ReadonlyArray): void; - /** - * The `process.setUncaughtExceptionCaptureCallback()` function sets a function - * that will be invoked when an uncaught exception occurs, which will receive the - * exception value itself as its first argument. - * - * If such a function is set, the `'uncaughtException'` event will - * not be emitted. If `--abort-on-uncaught-exception` was passed from the - * command line or set through `v8.setFlagsFromString()`, the process will - * not abort. Actions configured to take place on exceptions such as report - * generations will be affected too - * - * To unset the capture function,`process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this - * method with a non-`null` argument while another capture function is set will - * throw an error. - * - * Using this function is mutually exclusive with using the deprecated `domain` built-in module. - * @since v9.3.0 - */ - setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void; - /** - * Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}. - * @since v9.3.0 - */ - hasUncaughtExceptionCaptureCallback(): boolean; - /** - * The `process.version` property contains the Node.js version string. - * - * ```js - * import { version } from 'process'; - * - * console.log(`Version: ${version}`); - * // Version: v14.8.0 - * ``` - * - * To get the version string without the prepended _v_, use`process.versions.node`. - * @since v0.1.3 - */ - readonly version: string; - /** - * The `process.versions` property returns an object listing the version strings of - * Node.js and its dependencies. `process.versions.modules` indicates the current - * ABI version, which is increased whenever a C++ API changes. Node.js will refuse - * to load modules that were compiled against a different module ABI version. - * - * ```js - * import { versions } from 'process'; - * - * console.log(versions); - * ``` - * - * Will generate an object similar to: - * - * ```console - * { node: '11.13.0', - * v8: '7.0.276.38-node.18', - * uv: '1.27.0', - * zlib: '1.2.11', - * brotli: '1.0.7', - * ares: '1.15.0', - * modules: '67', - * nghttp2: '1.34.0', - * napi: '4', - * llhttp: '1.1.1', - * openssl: '1.1.1b', - * cldr: '34.0', - * icu: '63.1', - * tz: '2018e', - * unicode: '11.0' } - * ``` - * @since v0.2.0 - */ - readonly versions: ProcessVersions; - /** - * The `process.config` property returns an `Object` containing the JavaScript - * representation of the configure options used to compile the current Node.js - * executable. This is the same as the `config.gypi` file that was produced when - * running the `./configure` script. - * - * An example of the possible output looks like: - * - * ```js - * { - * target_defaults: - * { cflags: [], - * default_configuration: 'Release', - * defines: [], - * include_dirs: [], - * libraries: [] }, - * variables: - * { - * host_arch: 'x64', - * napi_build_version: 5, - * node_install_npm: 'true', - * node_prefix: '', - * node_shared_cares: 'false', - * node_shared_http_parser: 'false', - * node_shared_libuv: 'false', - * node_shared_zlib: 'false', - * node_use_dtrace: 'false', - * node_use_openssl: 'true', - * node_shared_openssl: 'false', - * strict_aliasing: 'true', - * target_arch: 'x64', - * v8_use_snapshot: 1 - * } - * } - * ``` - * - * The `process.config` property is **not** read-only and there are existing - * modules in the ecosystem that are known to extend, modify, or entirely replace - * the value of `process.config`. - * - * Modifying the `process.config` property, or any child-property of the`process.config` object has been deprecated. The `process.config` will be made - * read-only in a future release. - * @since v0.7.7 - */ - readonly config: ProcessConfig; - /** - * The `process.kill()` method sends the `signal` to the process identified by`pid`. - * - * Signal names are strings such as `'SIGINT'` or `'SIGHUP'`. See `Signal Events` and [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for more information. - * - * This method will throw an error if the target `pid` does not exist. As a special - * case, a signal of `0` can be used to test for the existence of a process. - * Windows platforms will throw an error if the `pid` is used to kill a process - * group. - * - * Even though the name of this function is `process.kill()`, it is really just a - * signal sender, like the `kill` system call. The signal sent may do something - * other than kill the target process. - * - * ```js - * import process, { kill } from 'process'; - * - * process.on('SIGHUP', () => { - * console.log('Got SIGHUP signal.'); - * }); - * - * setTimeout(() => { - * console.log('Exiting.'); - * process.exit(0); - * }, 100); - * - * kill(process.pid, 'SIGHUP'); - * ``` - * - * When `SIGUSR1` is received by a Node.js process, Node.js will start the - * debugger. See `Signal Events`. - * @since v0.0.6 - * @param pid A process ID - * @param [signal='SIGTERM'] The signal to send, either as a string or number. - */ - kill(pid: number, signal?: string | number): true; - /** - * The `process.pid` property returns the PID of the process. - * - * ```js - * import { pid } from 'process'; - * - * console.log(`This process is pid ${pid}`); - * ``` - * @since v0.1.15 - */ - readonly pid: number; - /** - * The `process.ppid` property returns the PID of the parent of the - * current process. - * - * ```js - * import { ppid } from 'process'; - * - * console.log(`The parent process is pid ${ppid}`); - * ``` - * @since v9.2.0, v8.10.0, v6.13.0 - */ - readonly ppid: number; - /** - * The `process.title` property returns the current process title (i.e. returns - * the current value of `ps`). Assigning a new value to `process.title` modifies - * the current value of `ps`. - * - * When a new value is assigned, different platforms will impose different maximum - * length restrictions on the title. Usually such restrictions are quite limited. - * For instance, on Linux and macOS, `process.title` is limited to the size of the - * binary name plus the length of the command-line arguments because setting the`process.title` overwrites the `argv` memory of the process. Node.js v0.8 - * allowed for longer process title strings by also overwriting the `environ`memory but that was potentially insecure and confusing in some (rather obscure) - * cases. - * - * Assigning a value to `process.title` might not result in an accurate label - * within process manager applications such as macOS Activity Monitor or Windows - * Services Manager. - * @since v0.1.104 - */ - title: string; - /** - * The operating system CPU architecture for which the Node.js binary was compiled. - * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`. - * - * ```js - * import { arch } from 'process'; - * - * console.log(`This processor architecture is ${arch}`); - * ``` - * @since v0.5.0 - */ - readonly arch: string; - /** - * The `process.platform` property returns a string identifying the operating - * system platform on which the Node.js process is running. - * - * Currently possible values are: - * - * * `'aix'` - * * `'darwin'` - * * `'freebsd'` - * * `'linux'` - * * `'openbsd'` - * * `'sunos'` - * * `'win32'` - * - * ```js - * import { platform } from 'process'; - * - * console.log(`This platform is ${platform}`); - * ``` - * - * The value `'android'` may also be returned if the Node.js is built on the - * Android operating system. However, Android support in Node.js[is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). - * @since v0.1.16 - */ - readonly platform: Platform; - /** - * The `process.mainModule` property provides an alternative way of retrieving `require.main`. The difference is that if the main module changes at - * runtime, `require.main` may still refer to the original main module in - * modules that were required before the change occurred. Generally, it's - * safe to assume that the two refer to the same module. - * - * As with `require.main`, `process.mainModule` will be `undefined` if there - * is no entry script. - * @since v0.1.17 - * @deprecated Since v14.0.0 - Use `main` instead. - */ - mainModule?: Module | undefined; - memoryUsage: MemoryUsageFn; - /** - * The `process.cpuUsage()` method returns the user and system CPU time usage of - * the current process, in an object with properties `user` and `system`, whose - * values are microsecond values (millionth of a second). These values measure time - * spent in user and system code respectively, and may end up being greater than - * actual elapsed time if multiple CPU cores are performing work for this process. - * - * The result of a previous call to `process.cpuUsage()` can be passed as the - * argument to the function, to get a diff reading. - * - * ```js - * import { cpuUsage } from 'process'; - * - * const startUsage = cpuUsage(); - * // { user: 38579, system: 6986 } - * - * // spin the CPU for 500 milliseconds - * const now = Date.now(); - * while (Date.now() - now < 500); - * - * console.log(cpuUsage(startUsage)); - * // { user: 514883, system: 11226 } - * ``` - * @since v6.1.0 - * @param previousValue A previous return value from calling `process.cpuUsage()` - */ - cpuUsage(previousValue?: CpuUsage): CpuUsage; - /** - * `process.nextTick()` adds `callback` to the "next tick queue". This queue is - * fully drained after the current operation on the JavaScript stack runs to - * completion and before the event loop is allowed to continue. It's possible to - * create an infinite loop if one were to recursively call `process.nextTick()`. - * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background. - * - * ```js - * import { nextTick } from 'process'; - * - * console.log('start'); - * nextTick(() => { - * console.log('nextTick callback'); - * }); - * console.log('scheduled'); - * // Output: - * // start - * // scheduled - * // nextTick callback - * ``` - * - * This is important when developing APIs in order to give users the opportunity - * to assign event handlers _after_ an object has been constructed but before any - * I/O has occurred: - * - * ```js - * import { nextTick } from 'process'; - * - * function MyThing(options) { - * this.setupOptions(options); - * - * nextTick(() => { - * this.startDoingStuff(); - * }); - * } - * - * const thing = new MyThing(); - * thing.getReadyForStuff(); - * - * // thing.startDoingStuff() gets called now, not before. - * ``` - * - * It is very important for APIs to be either 100% synchronous or 100% - * asynchronous. Consider this example: - * - * ```js - * // WARNING! DO NOT USE! BAD UNSAFE HAZARD! - * function maybeSync(arg, cb) { - * if (arg) { - * cb(); - * return; - * } - * - * fs.stat('file', cb); - * } - * ``` - * - * This API is hazardous because in the following case: - * - * ```js - * const maybeTrue = Math.random() > 0.5; - * - * maybeSync(maybeTrue, () => { - * foo(); - * }); - * - * bar(); - * ``` - * - * It is not clear whether `foo()` or `bar()` will be called first. - * - * The following approach is much better: - * - * ```js - * import { nextTick } from 'process'; - * - * function definitelyAsync(arg, cb) { - * if (arg) { - * nextTick(cb); - * return; - * } - * - * fs.stat('file', cb); - * } - * ``` - * @since v0.1.26 - * @param args Additional arguments to pass when invoking the `callback` - */ - nextTick(callback: Function, ...args: any[]): void; - /** - * The `process.release` property returns an `Object` containing metadata related - * to the current release, including URLs for the source tarball and headers-only - * tarball. - * - * `process.release` contains the following properties: - * - * ```js - * { - * name: 'node', - * lts: 'Erbium', - * sourceUrl: 'https://nodejs.org/download/release/v12.18.1/node-v12.18.1.tar.gz', - * headersUrl: 'https://nodejs.org/download/release/v12.18.1/node-v12.18.1-headers.tar.gz', - * libUrl: 'https://nodejs.org/download/release/v12.18.1/win-x64/node.lib' - * } - * ``` - * - * In custom builds from non-release versions of the source tree, only the`name` property may be present. The additional properties should not be - * relied upon to exist. - * @since v3.0.0 - */ - readonly release: ProcessRelease; - features: { - inspector: boolean; - debug: boolean; - uv: boolean; - ipv6: boolean; - tls_alpn: boolean; - tls_sni: boolean; - tls_ocsp: boolean; - tls: boolean; - }; - /** - * `process.umask()` returns the Node.js process's file mode creation mask. Child - * processes inherit the mask from the parent process. - * @since v0.1.19 - * @deprecated Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential * - * security vulnerability. There is no safe, cross-platform alternative API. - */ - umask(): number; - /** - * Can only be set if not in worker thread. - */ - umask(mask: string | number): number; - /** - * The `process.uptime()` method returns the number of seconds the current Node.js - * process has been running. - * - * The return value includes fractions of a second. Use `Math.floor()` to get whole - * seconds. - * @since v0.5.0 - */ - uptime(): number; - hrtime: HRTime; - /** - * If Node.js is spawned with an IPC channel, the `process.send()` method can be - * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object. - * - * If Node.js was not spawned with an IPC channel, `process.send` will be`undefined`. - * - * The message goes through serialization and parsing. The resulting message might - * not be the same as what is originally sent. - * @since v0.5.9 - * @param options used to parameterize the sending of certain types of handles.`options` supports the following properties: - */ - send?( - message: any, - sendHandle?: any, - options?: { - swallowErrors?: boolean | undefined; - }, - callback?: (error: Error | null) => void - ): boolean; - /** - * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the - * IPC channel to the parent process, allowing the child process to exit gracefully - * once there are no other connections keeping it alive. - * - * The effect of calling `process.disconnect()` is the same as calling `ChildProcess.disconnect()` from the parent process. - * - * If the Node.js process was not spawned with an IPC channel,`process.disconnect()` will be `undefined`. - * @since v0.7.2 - */ - disconnect(): void; - /** - * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return`true` so long as the IPC - * channel is connected and will return `false` after`process.disconnect()` is called. - * - * Once `process.connected` is `false`, it is no longer possible to send messages - * over the IPC channel using `process.send()`. - * @since v0.7.2 - */ - connected: boolean; - /** - * The `process.allowedNodeEnvironmentFlags` property is a special, - * read-only `Set` of flags allowable within the `NODE_OPTIONS` environment variable. - * - * `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides`Set.prototype.has` to recognize several different possible flag - * representations. `process.allowedNodeEnvironmentFlags.has()` will - * return `true` in the following cases: - * - * * Flags may omit leading single (`-`) or double (`--`) dashes; e.g.,`inspect-brk` for `--inspect-brk`, or `r` for `-r`. - * * Flags passed through to V8 (as listed in `--v8-options`) may replace - * one or more _non-leading_ dashes for an underscore, or vice-versa; - * e.g., `--perf_basic_prof`, `--perf-basic-prof`, `--perf_basic-prof`, - * etc. - * * Flags may contain one or more equals (`=`) characters; all - * characters after and including the first equals will be ignored; - * e.g., `--stack-trace-limit=100`. - * * Flags _must_ be allowable within `NODE_OPTIONS`. - * - * When iterating over `process.allowedNodeEnvironmentFlags`, flags will - * appear only _once_; each will begin with one or more dashes. Flags - * passed through to V8 will contain underscores instead of non-leading - * dashes: - * - * ```js - * import { allowedNodeEnvironmentFlags } from 'process'; - * - * allowedNodeEnvironmentFlags.forEach((flag) => { - * // -r - * // --inspect-brk - * // --abort_on_uncaught_exception - * // ... - * }); - * ``` - * - * The methods `add()`, `clear()`, and `delete()` of`process.allowedNodeEnvironmentFlags` do nothing, and will fail - * silently. - * - * If Node.js was compiled _without_ `NODE_OPTIONS` support (shown in {@link config}), `process.allowedNodeEnvironmentFlags` will - * contain what _would have_ been allowable. - * @since v10.10.0 - */ - allowedNodeEnvironmentFlags: ReadonlySet; - /** - * `process.report` is an object whose methods are used to generate diagnostic - * reports for the current process. Additional documentation is available in the `report documentation`. - * @since v11.8.0 - */ - report?: ProcessReport | undefined; - /** - * ```js - * import { resourceUsage } from 'process'; - * - * console.log(resourceUsage()); - * /* - * Will output: - * { - * userCPUTime: 82872, - * systemCPUTime: 4143, - * maxRSS: 33164, - * sharedMemorySize: 0, - * unsharedDataSize: 0, - * unsharedStackSize: 0, - * minorPageFault: 2469, - * majorPageFault: 0, - * swappedOut: 0, - * fsRead: 0, - * fsWrite: 8, - * ipcSent: 0, - * ipcReceived: 0, - * signalsCount: 0, - * voluntaryContextSwitches: 79, - * involuntaryContextSwitches: 1 - * } - * - * ``` - * @since v12.6.0 - * @return the resource usage for the current process. All of these values come from the `uv_getrusage` call which returns a [`uv_rusage_t` struct][uv_rusage_t]. - */ - resourceUsage(): ResourceUsage; - /** - * The `process.traceDeprecation` property indicates whether the`--trace-deprecation` flag is set on the current Node.js process. See the - * documentation for the `'warning' event` and the `emitWarning() method` for more information about this - * flag's behavior. - * @since v0.8.0 - */ - traceDeprecation: boolean; - /* EventEmitter */ - addListener(event: 'beforeExit', listener: BeforeExitListener): this; - addListener(event: 'disconnect', listener: DisconnectListener): this; - addListener(event: 'exit', listener: ExitListener): this; - addListener(event: 'rejectionHandled', listener: RejectionHandledListener): this; - addListener(event: 'uncaughtException', listener: UncaughtExceptionListener): this; - addListener(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this; - addListener(event: 'unhandledRejection', listener: UnhandledRejectionListener): this; - addListener(event: 'warning', listener: WarningListener): this; - addListener(event: 'message', listener: MessageListener): this; - addListener(event: Signals, listener: SignalsListener): this; - addListener(event: 'multipleResolves', listener: MultipleResolveListener): this; - addListener(event: 'worker', listener: WorkerListener): this; - emit(event: 'beforeExit', code: number): boolean; - emit(event: 'disconnect'): boolean; - emit(event: 'exit', code: number): boolean; - emit(event: 'rejectionHandled', promise: Promise): boolean; - emit(event: 'uncaughtException', error: Error): boolean; - emit(event: 'uncaughtExceptionMonitor', error: Error): boolean; - emit(event: 'unhandledRejection', reason: unknown, promise: Promise): boolean; - emit(event: 'warning', warning: Error): boolean; - emit(event: 'message', message: unknown, sendHandle: unknown): this; - emit(event: Signals, signal: Signals): boolean; - emit(event: 'multipleResolves', type: MultipleResolveType, promise: Promise, value: unknown): this; - emit(event: 'worker', listener: WorkerListener): this; - on(event: 'beforeExit', listener: BeforeExitListener): this; - on(event: 'disconnect', listener: DisconnectListener): this; - on(event: 'exit', listener: ExitListener): this; - on(event: 'rejectionHandled', listener: RejectionHandledListener): this; - on(event: 'uncaughtException', listener: UncaughtExceptionListener): this; - on(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this; - on(event: 'unhandledRejection', listener: UnhandledRejectionListener): this; - on(event: 'warning', listener: WarningListener): this; - on(event: 'message', listener: MessageListener): this; - on(event: Signals, listener: SignalsListener): this; - on(event: 'multipleResolves', listener: MultipleResolveListener): this; - on(event: 'worker', listener: WorkerListener): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'beforeExit', listener: BeforeExitListener): this; - once(event: 'disconnect', listener: DisconnectListener): this; - once(event: 'exit', listener: ExitListener): this; - once(event: 'rejectionHandled', listener: RejectionHandledListener): this; - once(event: 'uncaughtException', listener: UncaughtExceptionListener): this; - once(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this; - once(event: 'unhandledRejection', listener: UnhandledRejectionListener): this; - once(event: 'warning', listener: WarningListener): this; - once(event: 'message', listener: MessageListener): this; - once(event: Signals, listener: SignalsListener): this; - once(event: 'multipleResolves', listener: MultipleResolveListener): this; - once(event: 'worker', listener: WorkerListener): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'beforeExit', listener: BeforeExitListener): this; - prependListener(event: 'disconnect', listener: DisconnectListener): this; - prependListener(event: 'exit', listener: ExitListener): this; - prependListener(event: 'rejectionHandled', listener: RejectionHandledListener): this; - prependListener(event: 'uncaughtException', listener: UncaughtExceptionListener): this; - prependListener(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this; - prependListener(event: 'unhandledRejection', listener: UnhandledRejectionListener): this; - prependListener(event: 'warning', listener: WarningListener): this; - prependListener(event: 'message', listener: MessageListener): this; - prependListener(event: Signals, listener: SignalsListener): this; - prependListener(event: 'multipleResolves', listener: MultipleResolveListener): this; - prependListener(event: 'worker', listener: WorkerListener): this; - prependOnceListener(event: 'beforeExit', listener: BeforeExitListener): this; - prependOnceListener(event: 'disconnect', listener: DisconnectListener): this; - prependOnceListener(event: 'exit', listener: ExitListener): this; - prependOnceListener(event: 'rejectionHandled', listener: RejectionHandledListener): this; - prependOnceListener(event: 'uncaughtException', listener: UncaughtExceptionListener): this; - prependOnceListener(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this; - prependOnceListener(event: 'unhandledRejection', listener: UnhandledRejectionListener): this; - prependOnceListener(event: 'warning', listener: WarningListener): this; - prependOnceListener(event: 'message', listener: MessageListener): this; - prependOnceListener(event: Signals, listener: SignalsListener): this; - prependOnceListener(event: 'multipleResolves', listener: MultipleResolveListener): this; - prependOnceListener(event: 'worker', listener: WorkerListener): this; - listeners(event: 'beforeExit'): BeforeExitListener[]; - listeners(event: 'disconnect'): DisconnectListener[]; - listeners(event: 'exit'): ExitListener[]; - listeners(event: 'rejectionHandled'): RejectionHandledListener[]; - listeners(event: 'uncaughtException'): UncaughtExceptionListener[]; - listeners(event: 'uncaughtExceptionMonitor'): UncaughtExceptionListener[]; - listeners(event: 'unhandledRejection'): UnhandledRejectionListener[]; - listeners(event: 'warning'): WarningListener[]; - listeners(event: 'message'): MessageListener[]; - listeners(event: Signals): SignalsListener[]; - listeners(event: 'multipleResolves'): MultipleResolveListener[]; - listeners(event: 'worker'): WorkerListener[]; - } - } - } - export = process; -} -declare module 'node:process' { - import process = require('process'); - export = process; -} diff --git a/WechatBot/node_modules/@types/node/punycode.d.ts b/WechatBot/node_modules/@types/node/punycode.d.ts deleted file mode 100644 index 5854d674d..000000000 --- a/WechatBot/node_modules/@types/node/punycode.d.ts +++ /dev/null @@ -1,117 +0,0 @@ -/** - * **The version of the punycode module bundled in Node.js is being deprecated.**In a future major version of Node.js this module will be removed. Users - * currently depending on the `punycode` module should switch to using the - * userland-provided [Punycode.js](https://github.com/bestiejs/punycode.js) module instead. For punycode-based URL - * encoding, see `url.domainToASCII` or, more generally, the `WHATWG URL API`. - * - * The `punycode` module is a bundled version of the [Punycode.js](https://github.com/bestiejs/punycode.js) module. It - * can be accessed using: - * - * ```js - * const punycode = require('punycode'); - * ``` - * - * [Punycode](https://tools.ietf.org/html/rfc3492) is a character encoding scheme defined by RFC 3492 that is - * primarily intended for use in Internationalized Domain Names. Because host - * names in URLs are limited to ASCII characters only, Domain Names that contain - * non-ASCII characters must be converted into ASCII using the Punycode scheme. - * For instance, the Japanese character that translates into the English word,`'example'` is `'例'`. The Internationalized Domain Name, `'例.com'` (equivalent - * to `'example.com'`) is represented by Punycode as the ASCII string`'xn--fsq.com'`. - * - * The `punycode` module provides a simple implementation of the Punycode standard. - * - * The `punycode` module is a third-party dependency used by Node.js and - * made available to developers as a convenience. Fixes or other modifications to - * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project. - * @deprecated Since v7.0.0 - Deprecated - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/punycode.js) - */ -declare module 'punycode' { - /** - * The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only - * characters to the equivalent string of Unicode codepoints. - * - * ```js - * punycode.decode('maana-pta'); // 'mañana' - * punycode.decode('--dqo34k'); // '☃-⌘' - * ``` - * @since v0.5.1 - */ - function decode(string: string): string; - /** - * The `punycode.encode()` method converts a string of Unicode codepoints to a[Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only characters. - * - * ```js - * punycode.encode('mañana'); // 'maana-pta' - * punycode.encode('☃-⌘'); // '--dqo34k' - * ``` - * @since v0.5.1 - */ - function encode(string: string): string; - /** - * The `punycode.toUnicode()` method converts a string representing a domain name - * containing [Punycode](https://tools.ietf.org/html/rfc3492) encoded characters into Unicode. Only the [Punycode](https://tools.ietf.org/html/rfc3492)encoded parts of the domain name are be - * converted. - * - * ```js - * // decode domain names - * punycode.toUnicode('xn--maana-pta.com'); // 'mañana.com' - * punycode.toUnicode('xn----dqo34k.com'); // '☃-⌘.com' - * punycode.toUnicode('example.com'); // 'example.com' - * ``` - * @since v0.6.1 - */ - function toUnicode(domain: string): string; - /** - * The `punycode.toASCII()` method converts a Unicode string representing an - * Internationalized Domain Name to [Punycode](https://tools.ietf.org/html/rfc3492). Only the non-ASCII parts of the - * domain name will be converted. Calling `punycode.toASCII()` on a string that - * already only contains ASCII characters will have no effect. - * - * ```js - * // encode domain names - * punycode.toASCII('mañana.com'); // 'xn--maana-pta.com' - * punycode.toASCII('☃-⌘.com'); // 'xn----dqo34k.com' - * punycode.toASCII('example.com'); // 'example.com' - * ``` - * @since v0.6.1 - */ - function toASCII(domain: string): string; - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - const ucs2: ucs2; - interface ucs2 { - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - decode(string: string): number[]; - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - encode(codePoints: ReadonlyArray): string; - } - /** - * @deprecated since v7.0.0 - * The version of the punycode module bundled in Node.js is being deprecated. - * In a future major version of Node.js this module will be removed. - * Users currently depending on the punycode module should switch to using - * the userland-provided Punycode.js module instead. - */ - const version: string; -} -declare module 'node:punycode' { - export * from 'punycode'; -} diff --git a/WechatBot/node_modules/@types/node/querystring.d.ts b/WechatBot/node_modules/@types/node/querystring.d.ts deleted file mode 100644 index ce6e60cfa..000000000 --- a/WechatBot/node_modules/@types/node/querystring.d.ts +++ /dev/null @@ -1,131 +0,0 @@ -/** - * The `querystring` module provides utilities for parsing and formatting URL - * query strings. It can be accessed using: - * - * ```js - * const querystring = require('querystring'); - * ``` - * - * The `querystring` API is considered Legacy. While it is still maintained, - * new code should use the `URLSearchParams` API instead. - * @deprecated Legacy - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/querystring.js) - */ -declare module 'querystring' { - interface StringifyOptions { - encodeURIComponent?: ((str: string) => string) | undefined; - } - interface ParseOptions { - maxKeys?: number | undefined; - decodeURIComponent?: ((str: string) => string) | undefined; - } - interface ParsedUrlQuery extends NodeJS.Dict {} - interface ParsedUrlQueryInput extends NodeJS.Dict | ReadonlyArray | ReadonlyArray | null> {} - /** - * The `querystring.stringify()` method produces a URL query string from a - * given `obj` by iterating through the object's "own properties". - * - * It serializes the following types of values passed in `obj`:[<string>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | - * [<number>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | - * [<bigint>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | - * [<boolean>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) | - * [<string\[\]>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | - * [<number\[\]>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | - * [<bigint\[\]>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | - * [<boolean\[\]>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type)The numeric values must be finite. Any other input values will be coerced to - * empty strings. - * - * ```js - * querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' }); - * // Returns 'foo=bar&baz=qux&baz=quux&corge=' - * - * querystring.stringify({ foo: 'bar', baz: 'qux' }, ';', ':'); - * // Returns 'foo:bar;baz:qux' - * ``` - * - * By default, characters requiring percent-encoding within the query string will - * be encoded as UTF-8\. If an alternative encoding is required, then an alternative`encodeURIComponent` option will need to be specified: - * - * ```js - * // Assuming gbkEncodeURIComponent function already exists, - * - * querystring.stringify({ w: '中文', foo: 'bar' }, null, null, - * { encodeURIComponent: gbkEncodeURIComponent }); - * ``` - * @since v0.1.25 - * @param obj The object to serialize into a URL query string - * @param [sep='&'] The substring used to delimit key and value pairs in the query string. - * @param [eq='='] . The substring used to delimit keys and values in the query string. - */ - function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string; - /** - * The `querystring.parse()` method parses a URL query string (`str`) into a - * collection of key and value pairs. - * - * For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into: - * - * ```js - * { - * foo: 'bar', - * abc: ['xyz', '123'] - * } - * ``` - * - * The object returned by the `querystring.parse()` method _does not_prototypically inherit from the JavaScript `Object`. This means that typical`Object` methods such as `obj.toString()`, - * `obj.hasOwnProperty()`, and others - * are not defined and _will not work_. - * - * By default, percent-encoded characters within the query string will be assumed - * to use UTF-8 encoding. If an alternative character encoding is used, then an - * alternative `decodeURIComponent` option will need to be specified: - * - * ```js - * // Assuming gbkDecodeURIComponent function already exists... - * - * querystring.parse('w=%D6%D0%CE%C4&foo=bar', null, null, - * { decodeURIComponent: gbkDecodeURIComponent }); - * ``` - * @since v0.1.25 - * @param str The URL query string to parse - * @param [sep='&'] The substring used to delimit key and value pairs in the query string. - * @param [eq='='] . The substring used to delimit keys and values in the query string. - */ - function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; - /** - * The querystring.encode() function is an alias for querystring.stringify(). - */ - const encode: typeof stringify; - /** - * The querystring.decode() function is an alias for querystring.parse(). - */ - const decode: typeof parse; - /** - * The `querystring.escape()` method performs URL percent-encoding on the given`str` in a manner that is optimized for the specific requirements of URL - * query strings. - * - * The `querystring.escape()` method is used by `querystring.stringify()` and is - * generally not expected to be used directly. It is exported primarily to allow - * application code to provide a replacement percent-encoding implementation if - * necessary by assigning `querystring.escape` to an alternative function. - * @since v0.1.25 - */ - function escape(str: string): string; - /** - * The `querystring.unescape()` method performs decoding of URL percent-encoded - * characters on the given `str`. - * - * The `querystring.unescape()` method is used by `querystring.parse()` and is - * generally not expected to be used directly. It is exported primarily to allow - * application code to provide a replacement decoding implementation if - * necessary by assigning `querystring.unescape` to an alternative function. - * - * By default, the `querystring.unescape()` method will attempt to use the - * JavaScript built-in `decodeURIComponent()` method to decode. If that fails, - * a safer equivalent that does not throw on malformed URLs will be used. - * @since v0.1.25 - */ - function unescape(str: string): string; -} -declare module 'node:querystring' { - export * from 'querystring'; -} diff --git a/WechatBot/node_modules/@types/node/readline.d.ts b/WechatBot/node_modules/@types/node/readline.d.ts deleted file mode 100644 index 0f0706a6d..000000000 --- a/WechatBot/node_modules/@types/node/readline.d.ts +++ /dev/null @@ -1,542 +0,0 @@ -/** - * The `readline` module provides an interface for reading data from a `Readable` stream (such as `process.stdin`) one line at a time. It can be accessed - * using: - * - * ```js - * const readline = require('readline'); - * ``` - * - * The following simple example illustrates the basic use of the `readline` module. - * - * ```js - * const readline = require('readline'); - * - * const rl = readline.createInterface({ - * input: process.stdin, - * output: process.stdout - * }); - * - * rl.question('What do you think of Node.js? ', (answer) => { - * // TODO: Log the answer in a database - * console.log(`Thank you for your valuable feedback: ${answer}`); - * - * rl.close(); - * }); - * ``` - * - * Once this code is invoked, the Node.js application will not terminate until the`readline.Interface` is closed because the interface waits for data to be - * received on the `input` stream. - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/readline.js) - */ -declare module 'readline' { - import { Abortable, EventEmitter } from 'node:events'; - interface Key { - sequence?: string | undefined; - name?: string | undefined; - ctrl?: boolean | undefined; - meta?: boolean | undefined; - shift?: boolean | undefined; - } - /** - * Instances of the `readline.Interface` class are constructed using the`readline.createInterface()` method. Every instance is associated with a - * single `input` `Readable` stream and a single `output` `Writable` stream. - * The `output` stream is used to print prompts for user input that arrives on, - * and is read from, the `input` stream. - * @since v0.1.104 - */ - class Interface extends EventEmitter { - readonly terminal: boolean; - /** - * The current input data being processed by node. - * - * This can be used when collecting input from a TTY stream to retrieve the - * current value that has been processed thus far, prior to the `line` event - * being emitted. Once the `line` event has been emitted, this property will - * be an empty string. - * - * Be aware that modifying the value during the instance runtime may have - * unintended consequences if `rl.cursor` is not also controlled. - * - * **If not using a TTY stream for input, use the `'line'` event.** - * - * One possible use case would be as follows: - * - * ```js - * const values = ['lorem ipsum', 'dolor sit amet']; - * const rl = readline.createInterface(process.stdin); - * const showResults = debounce(() => { - * console.log( - * '\n', - * values.filter((val) => val.startsWith(rl.line)).join(' ') - * ); - * }, 300); - * process.stdin.on('keypress', (c, k) => { - * showResults(); - * }); - * ``` - * @since v0.1.98 - */ - readonly line: string; - /** - * The cursor position relative to `rl.line`. - * - * This will track where the current cursor lands in the input string, when - * reading input from a TTY stream. The position of cursor determines the - * portion of the input string that will be modified as input is processed, - * as well as the column where the terminal caret will be rendered. - * @since v0.1.98 - */ - readonly cursor: number; - /** - * NOTE: According to the documentation: - * - * > Instances of the `readline.Interface` class are constructed using the - * > `readline.createInterface()` method. - * - * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface - */ - protected constructor(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean); - /** - * NOTE: According to the documentation: - * - * > Instances of the `readline.Interface` class are constructed using the - * > `readline.createInterface()` method. - * - * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface - */ - protected constructor(options: ReadLineOptions); - /** - * The `rl.getPrompt()` method returns the current prompt used by `rl.prompt()`. - * @since v15.3.0 - * @return the current prompt string - */ - getPrompt(): string; - /** - * The `rl.setPrompt()` method sets the prompt that will be written to `output`whenever `rl.prompt()` is called. - * @since v0.1.98 - */ - setPrompt(prompt: string): void; - /** - * The `rl.prompt()` method writes the `readline.Interface` instances configured`prompt` to a new line in `output` in order to provide a user with a new - * location at which to provide input. - * - * When called, `rl.prompt()` will resume the `input` stream if it has been - * paused. - * - * If the `readline.Interface` was created with `output` set to `null` or`undefined` the prompt is not written. - * @since v0.1.98 - * @param preserveCursor If `true`, prevents the cursor placement from being reset to `0`. - */ - prompt(preserveCursor?: boolean): void; - /** - * The `rl.question()` method displays the `query` by writing it to the `output`, - * waits for user input to be provided on `input`, then invokes the `callback`function passing the provided input as the first argument. - * - * When called, `rl.question()` will resume the `input` stream if it has been - * paused. - * - * If the `readline.Interface` was created with `output` set to `null` or`undefined` the `query` is not written. - * - * The `callback` function passed to `rl.question()` does not follow the typical - * pattern of accepting an `Error` object or `null` as the first argument. - * The `callback` is called with the provided answer as the only argument. - * - * Example usage: - * - * ```js - * rl.question('What is your favorite food? ', (answer) => { - * console.log(`Oh, so your favorite food is ${answer}`); - * }); - * ``` - * - * Using an `AbortController` to cancel a question. - * - * ```js - * const ac = new AbortController(); - * const signal = ac.signal; - * - * rl.question('What is your favorite food? ', { signal }, (answer) => { - * console.log(`Oh, so your favorite food is ${answer}`); - * }); - * - * signal.addEventListener('abort', () => { - * console.log('The food question timed out'); - * }, { once: true }); - * - * setTimeout(() => ac.abort(), 10000); - * ``` - * - * If this method is invoked as it's util.promisify()ed version, it returns a - * Promise that fulfills with the answer. If the question is canceled using - * an `AbortController` it will reject with an `AbortError`. - * - * ```js - * const util = require('util'); - * const question = util.promisify(rl.question).bind(rl); - * - * async function questionExample() { - * try { - * const answer = await question('What is you favorite food? '); - * console.log(`Oh, so your favorite food is ${answer}`); - * } catch (err) { - * console.error('Question rejected', err); - * } - * } - * questionExample(); - * ``` - * @since v0.3.3 - * @param query A statement or query to write to `output`, prepended to the prompt. - * @param callback A callback function that is invoked with the user's input in response to the `query`. - */ - question(query: string, callback: (answer: string) => void): void; - question(query: string, options: Abortable, callback: (answer: string) => void): void; - /** - * The `rl.pause()` method pauses the `input` stream, allowing it to be resumed - * later if necessary. - * - * Calling `rl.pause()` does not immediately pause other events (including`'line'`) from being emitted by the `readline.Interface` instance. - * @since v0.3.4 - */ - pause(): this; - /** - * The `rl.resume()` method resumes the `input` stream if it has been paused. - * @since v0.3.4 - */ - resume(): this; - /** - * The `rl.close()` method closes the `readline.Interface` instance and - * relinquishes control over the `input` and `output` streams. When called, - * the `'close'` event will be emitted. - * - * Calling `rl.close()` does not immediately stop other events (including `'line'`) - * from being emitted by the `readline.Interface` instance. - * @since v0.1.98 - */ - close(): void; - /** - * The `rl.write()` method will write either `data` or a key sequence identified - * by `key` to the `output`. The `key` argument is supported only if `output` is - * a `TTY` text terminal. See `TTY keybindings` for a list of key - * combinations. - * - * If `key` is specified, `data` is ignored. - * - * When called, `rl.write()` will resume the `input` stream if it has been - * paused. - * - * If the `readline.Interface` was created with `output` set to `null` or`undefined` the `data` and `key` are not written. - * - * ```js - * rl.write('Delete this!'); - * // Simulate Ctrl+U to delete the line written previously - * rl.write(null, { ctrl: true, name: 'u' }); - * ``` - * - * The `rl.write()` method will write the data to the `readline` `Interface`'s`input`_as if it were provided by the user_. - * @since v0.1.98 - */ - write(data: string | Buffer, key?: Key): void; - /** - * Returns the real position of the cursor in relation to the input - * prompt + string. Long input (wrapping) strings, as well as multiple - * line prompts are included in the calculations. - * @since v13.5.0, v12.16.0 - */ - getCursorPos(): CursorPos; - /** - * events.EventEmitter - * 1. close - * 2. line - * 3. pause - * 4. resume - * 5. SIGCONT - * 6. SIGINT - * 7. SIGTSTP - * 8. history - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'close', listener: () => void): this; - addListener(event: 'line', listener: (input: string) => void): this; - addListener(event: 'pause', listener: () => void): this; - addListener(event: 'resume', listener: () => void): this; - addListener(event: 'SIGCONT', listener: () => void): this; - addListener(event: 'SIGINT', listener: () => void): this; - addListener(event: 'SIGTSTP', listener: () => void): this; - addListener(event: 'history', listener: (history: string[]) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'close'): boolean; - emit(event: 'line', input: string): boolean; - emit(event: 'pause'): boolean; - emit(event: 'resume'): boolean; - emit(event: 'SIGCONT'): boolean; - emit(event: 'SIGINT'): boolean; - emit(event: 'SIGTSTP'): boolean; - emit(event: 'history', history: string[]): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'line', listener: (input: string) => void): this; - on(event: 'pause', listener: () => void): this; - on(event: 'resume', listener: () => void): this; - on(event: 'SIGCONT', listener: () => void): this; - on(event: 'SIGINT', listener: () => void): this; - on(event: 'SIGTSTP', listener: () => void): this; - on(event: 'history', listener: (history: string[]) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'line', listener: (input: string) => void): this; - once(event: 'pause', listener: () => void): this; - once(event: 'resume', listener: () => void): this; - once(event: 'SIGCONT', listener: () => void): this; - once(event: 'SIGINT', listener: () => void): this; - once(event: 'SIGTSTP', listener: () => void): this; - once(event: 'history', listener: (history: string[]) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'line', listener: (input: string) => void): this; - prependListener(event: 'pause', listener: () => void): this; - prependListener(event: 'resume', listener: () => void): this; - prependListener(event: 'SIGCONT', listener: () => void): this; - prependListener(event: 'SIGINT', listener: () => void): this; - prependListener(event: 'SIGTSTP', listener: () => void): this; - prependListener(event: 'history', listener: (history: string[]) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'line', listener: (input: string) => void): this; - prependOnceListener(event: 'pause', listener: () => void): this; - prependOnceListener(event: 'resume', listener: () => void): this; - prependOnceListener(event: 'SIGCONT', listener: () => void): this; - prependOnceListener(event: 'SIGINT', listener: () => void): this; - prependOnceListener(event: 'SIGTSTP', listener: () => void): this; - prependOnceListener(event: 'history', listener: (history: string[]) => void): this; - [Symbol.asyncIterator](): AsyncIterableIterator; - } - type ReadLine = Interface; // type forwarded for backwards compatibility - type Completer = (line: string) => CompleterResult; - type AsyncCompleter = (line: string, callback: (err?: null | Error, result?: CompleterResult) => void) => void; - type CompleterResult = [string[], string]; - interface ReadLineOptions { - input: NodeJS.ReadableStream; - output?: NodeJS.WritableStream | undefined; - completer?: Completer | AsyncCompleter | undefined; - terminal?: boolean | undefined; - /** - * Initial list of history lines. This option makes sense - * only if `terminal` is set to `true` by the user or by an internal `output` - * check, otherwise the history caching mechanism is not initialized at all. - * @default [] - */ - history?: string[] | undefined; - historySize?: number | undefined; - prompt?: string | undefined; - crlfDelay?: number | undefined; - /** - * If `true`, when a new input line added - * to the history list duplicates an older one, this removes the older line - * from the list. - * @default false - */ - removeHistoryDuplicates?: boolean | undefined; - escapeCodeTimeout?: number | undefined; - tabSize?: number | undefined; - } - /** - * The `readline.createInterface()` method creates a new `readline.Interface`instance. - * - * ```js - * const readline = require('readline'); - * const rl = readline.createInterface({ - * input: process.stdin, - * output: process.stdout - * }); - * ``` - * - * Once the `readline.Interface` instance is created, the most common case is to - * listen for the `'line'` event: - * - * ```js - * rl.on('line', (line) => { - * console.log(`Received: ${line}`); - * }); - * ``` - * - * If `terminal` is `true` for this instance then the `output` stream will get - * the best compatibility if it defines an `output.columns` property and emits - * a `'resize'` event on the `output` if or when the columns ever change - * (`process.stdout` does this automatically when it is a TTY). - * - * When creating a `readline.Interface` using `stdin` as input, the program - * will not terminate until it receives `EOF` (Ctrl+D on - * Linux/macOS, Ctrl+Z followed by Return on - * Windows). - * If you want your application to exit without waiting for user input, you can `unref()` the standard input stream: - * - * ```js - * process.stdin.unref(); - * ``` - * @since v0.1.98 - */ - function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): Interface; - function createInterface(options: ReadLineOptions): Interface; - /** - * The `readline.emitKeypressEvents()` method causes the given `Readable` stream to begin emitting `'keypress'` events corresponding to received input. - * - * Optionally, `interface` specifies a `readline.Interface` instance for which - * autocompletion is disabled when copy-pasted input is detected. - * - * If the `stream` is a `TTY`, then it must be in raw mode. - * - * This is automatically called by any readline instance on its `input` if the`input` is a terminal. Closing the `readline` instance does not stop - * the `input` from emitting `'keypress'` events. - * - * ```js - * readline.emitKeypressEvents(process.stdin); - * if (process.stdin.isTTY) - * process.stdin.setRawMode(true); - * ``` - * @since v0.7.7 - */ - function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void; - type Direction = -1 | 0 | 1; - interface CursorPos { - rows: number; - cols: number; - } - /** - * The `readline.clearLine()` method clears current line of given `TTY` stream - * in a specified direction identified by `dir`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean; - /** - * The `readline.clearScreenDown()` method clears the given `TTY` stream from - * the current position of the cursor down. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean; - /** - * The `readline.cursorTo()` method moves cursor to the specified position in a - * given `TTY` `stream`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean; - /** - * The `readline.moveCursor()` method moves the cursor _relative_ to its current - * position in a given `TTY` `stream`. - * - * ## Example: Tiny CLI - * - * The following example illustrates the use of `readline.Interface` class to - * implement a small command-line interface: - * - * ```js - * const readline = require('readline'); - * const rl = readline.createInterface({ - * input: process.stdin, - * output: process.stdout, - * prompt: 'OHAI> ' - * }); - * - * rl.prompt(); - * - * rl.on('line', (line) => { - * switch (line.trim()) { - * case 'hello': - * console.log('world!'); - * break; - * default: - * console.log(`Say what? I might have heard '${line.trim()}'`); - * break; - * } - * rl.prompt(); - * }).on('close', () => { - * console.log('Have a great day!'); - * process.exit(0); - * }); - * ``` - * - * ## Example: Read file stream line-by-Line - * - * A common use case for `readline` is to consume an input file one line at a - * time. The easiest way to do so is leveraging the `fs.ReadStream` API as - * well as a `for await...of` loop: - * - * ```js - * const fs = require('fs'); - * const readline = require('readline'); - * - * async function processLineByLine() { - * const fileStream = fs.createReadStream('input.txt'); - * - * const rl = readline.createInterface({ - * input: fileStream, - * crlfDelay: Infinity - * }); - * // Note: we use the crlfDelay option to recognize all instances of CR LF - * // ('\r\n') in input.txt as a single line break. - * - * for await (const line of rl) { - * // Each line in input.txt will be successively available here as `line`. - * console.log(`Line from file: ${line}`); - * } - * } - * - * processLineByLine(); - * ``` - * - * Alternatively, one could use the `'line'` event: - * - * ```js - * const fs = require('fs'); - * const readline = require('readline'); - * - * const rl = readline.createInterface({ - * input: fs.createReadStream('sample.txt'), - * crlfDelay: Infinity - * }); - * - * rl.on('line', (line) => { - * console.log(`Line from file: ${line}`); - * }); - * ``` - * - * Currently, `for await...of` loop can be a bit slower. If `async` / `await`flow and speed are both essential, a mixed approach can be applied: - * - * ```js - * const { once } = require('events'); - * const { createReadStream } = require('fs'); - * const { createInterface } = require('readline'); - * - * (async function processLineByLine() { - * try { - * const rl = createInterface({ - * input: createReadStream('big-file.txt'), - * crlfDelay: Infinity - * }); - * - * rl.on('line', (line) => { - * // Process the line. - * }); - * - * await once(rl, 'close'); - * - * console.log('File processed.'); - * } catch (err) { - * console.error(err); - * } - * })(); - * ``` - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean; -} -declare module 'node:readline' { - export * from 'readline'; -} diff --git a/WechatBot/node_modules/@types/node/repl.d.ts b/WechatBot/node_modules/@types/node/repl.d.ts deleted file mode 100644 index 053d97788..000000000 --- a/WechatBot/node_modules/@types/node/repl.d.ts +++ /dev/null @@ -1,424 +0,0 @@ -/** - * The `repl` module provides a Read-Eval-Print-Loop (REPL) implementation that - * is available both as a standalone program or includible in other applications. - * It can be accessed using: - * - * ```js - * const repl = require('repl'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/repl.js) - */ -declare module 'repl' { - import { Interface, Completer, AsyncCompleter } from 'node:readline'; - import { Context } from 'node:vm'; - import { InspectOptions } from 'node:util'; - interface ReplOptions { - /** - * The input prompt to display. - * @default "> " - */ - prompt?: string | undefined; - /** - * The `Readable` stream from which REPL input will be read. - * @default process.stdin - */ - input?: NodeJS.ReadableStream | undefined; - /** - * The `Writable` stream to which REPL output will be written. - * @default process.stdout - */ - output?: NodeJS.WritableStream | undefined; - /** - * If `true`, specifies that the output should be treated as a TTY terminal, and have - * ANSI/VT100 escape codes written to it. - * Default: checking the value of the `isTTY` property on the output stream upon - * instantiation. - */ - terminal?: boolean | undefined; - /** - * The function to be used when evaluating each given line of input. - * Default: an async wrapper for the JavaScript `eval()` function. An `eval` function can - * error with `repl.Recoverable` to indicate the input was incomplete and prompt for - * additional lines. - * - * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_default_evaluation - * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_custom_evaluation_functions - */ - eval?: REPLEval | undefined; - /** - * Defines if the repl prints output previews or not. - * @default `true` Always `false` in case `terminal` is falsy. - */ - preview?: boolean | undefined; - /** - * If `true`, specifies that the default `writer` function should include ANSI color - * styling to REPL output. If a custom `writer` function is provided then this has no - * effect. - * Default: the REPL instance's `terminal` value. - */ - useColors?: boolean | undefined; - /** - * If `true`, specifies that the default evaluation function will use the JavaScript - * `global` as the context as opposed to creating a new separate context for the REPL - * instance. The node CLI REPL sets this value to `true`. - * Default: `false`. - */ - useGlobal?: boolean | undefined; - /** - * If `true`, specifies that the default writer will not output the return value of a - * command if it evaluates to `undefined`. - * Default: `false`. - */ - ignoreUndefined?: boolean | undefined; - /** - * The function to invoke to format the output of each command before writing to `output`. - * Default: a wrapper for `util.inspect`. - * - * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_customizing_repl_output - */ - writer?: REPLWriter | undefined; - /** - * An optional function used for custom Tab auto completion. - * - * @see https://nodejs.org/dist/latest-v11.x/docs/api/readline.html#readline_use_of_the_completer_function - */ - completer?: Completer | AsyncCompleter | undefined; - /** - * A flag that specifies whether the default evaluator executes all JavaScript commands in - * strict mode or default (sloppy) mode. - * Accepted values are: - * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. - * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to - * prefacing every repl statement with `'use strict'`. - */ - replMode?: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT | undefined; - /** - * Stop evaluating the current piece of code when `SIGINT` is received, i.e. `Ctrl+C` is - * pressed. This cannot be used together with a custom `eval` function. - * Default: `false`. - */ - breakEvalOnSigint?: boolean | undefined; - } - type REPLEval = (this: REPLServer, evalCmd: string, context: Context, file: string, cb: (err: Error | null, result: any) => void) => void; - type REPLWriter = (this: REPLServer, obj: any) => string; - /** - * This is the default "writer" value, if none is passed in the REPL options, - * and it can be overridden by custom print functions. - */ - const writer: REPLWriter & { - options: InspectOptions; - }; - type REPLCommandAction = (this: REPLServer, text: string) => void; - interface REPLCommand { - /** - * Help text to be displayed when `.help` is entered. - */ - help?: string | undefined; - /** - * The function to execute, optionally accepting a single string argument. - */ - action: REPLCommandAction; - } - /** - * Instances of `repl.REPLServer` are created using the {@link start} method - * or directly using the JavaScript `new` keyword. - * - * ```js - * const repl = require('repl'); - * - * const options = { useColors: true }; - * - * const firstInstance = repl.start(options); - * const secondInstance = new repl.REPLServer(options); - * ``` - * @since v0.1.91 - */ - class REPLServer extends Interface { - /** - * The `vm.Context` provided to the `eval` function to be used for JavaScript - * evaluation. - */ - readonly context: Context; - /** - * @deprecated since v14.3.0 - Use `input` instead. - */ - readonly inputStream: NodeJS.ReadableStream; - /** - * @deprecated since v14.3.0 - Use `output` instead. - */ - readonly outputStream: NodeJS.WritableStream; - /** - * The `Readable` stream from which REPL input will be read. - */ - readonly input: NodeJS.ReadableStream; - /** - * The `Writable` stream to which REPL output will be written. - */ - readonly output: NodeJS.WritableStream; - /** - * The commands registered via `replServer.defineCommand()`. - */ - readonly commands: NodeJS.ReadOnlyDict; - /** - * A value indicating whether the REPL is currently in "editor mode". - * - * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_commands_and_special_keys - */ - readonly editorMode: boolean; - /** - * A value indicating whether the `_` variable has been assigned. - * - * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly underscoreAssigned: boolean; - /** - * The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL). - * - * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly last: any; - /** - * A value indicating whether the `_error` variable has been assigned. - * - * @since v9.8.0 - * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly underscoreErrAssigned: boolean; - /** - * The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL). - * - * @since v9.8.0 - * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable - */ - readonly lastError: any; - /** - * Specified in the REPL options, this is the function to be used when evaluating each - * given line of input. If not specified in the REPL options, this is an async wrapper - * for the JavaScript `eval()` function. - */ - readonly eval: REPLEval; - /** - * Specified in the REPL options, this is a value indicating whether the default - * `writer` function should include ANSI color styling to REPL output. - */ - readonly useColors: boolean; - /** - * Specified in the REPL options, this is a value indicating whether the default `eval` - * function will use the JavaScript `global` as the context as opposed to creating a new - * separate context for the REPL instance. - */ - readonly useGlobal: boolean; - /** - * Specified in the REPL options, this is a value indicating whether the default `writer` - * function should output the result of a command if it evaluates to `undefined`. - */ - readonly ignoreUndefined: boolean; - /** - * Specified in the REPL options, this is the function to invoke to format the output of - * each command before writing to `outputStream`. If not specified in the REPL options, - * this will be a wrapper for `util.inspect`. - */ - readonly writer: REPLWriter; - /** - * Specified in the REPL options, this is the function to use for custom Tab auto-completion. - */ - readonly completer: Completer | AsyncCompleter; - /** - * Specified in the REPL options, this is a flag that specifies whether the default `eval` - * function should execute all JavaScript commands in strict mode or default (sloppy) mode. - * Possible values are: - * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. - * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to - * prefacing every repl statement with `'use strict'`. - */ - readonly replMode: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT; - /** - * NOTE: According to the documentation: - * - * > Instances of `repl.REPLServer` are created using the `repl.start()` method and - * > _should not_ be created directly using the JavaScript `new` keyword. - * - * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS. - * - * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_class_replserver - */ - private constructor(); - /** - * The `replServer.defineCommand()` method is used to add new `.`\-prefixed commands - * to the REPL instance. Such commands are invoked by typing a `.` followed by the`keyword`. The `cmd` is either a `Function` or an `Object` with the following - * properties: - * - * The following example shows two new commands added to the REPL instance: - * - * ```js - * const repl = require('repl'); - * - * const replServer = repl.start({ prompt: '> ' }); - * replServer.defineCommand('sayhello', { - * help: 'Say hello', - * action(name) { - * this.clearBufferedCommand(); - * console.log(`Hello, ${name}!`); - * this.displayPrompt(); - * } - * }); - * replServer.defineCommand('saybye', function saybye() { - * console.log('Goodbye!'); - * this.close(); - * }); - * ``` - * - * The new commands can then be used from within the REPL instance: - * - * ```console - * > .sayhello Node.js User - * Hello, Node.js User! - * > .saybye - * Goodbye! - * ``` - * @since v0.3.0 - * @param keyword The command keyword (*without* a leading `.` character). - * @param cmd The function to invoke when the command is processed. - */ - defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void; - /** - * The `replServer.displayPrompt()` method readies the REPL instance for input - * from the user, printing the configured `prompt` to a new line in the `output`and resuming the `input` to accept new input. - * - * When multi-line input is being entered, an ellipsis is printed rather than the - * 'prompt'. - * - * When `preserveCursor` is `true`, the cursor placement will not be reset to `0`. - * - * The `replServer.displayPrompt` method is primarily intended to be called from - * within the action function for commands registered using the`replServer.defineCommand()` method. - * @since v0.1.91 - */ - displayPrompt(preserveCursor?: boolean): void; - /** - * The `replServer.clearBufferedCommand()` method clears any command that has been - * buffered but not yet executed. This method is primarily intended to be - * called from within the action function for commands registered using the`replServer.defineCommand()` method. - * @since v9.0.0 - */ - clearBufferedCommand(): void; - /** - * Initializes a history log file for the REPL instance. When executing the - * Node.js binary and using the command-line REPL, a history file is initialized - * by default. However, this is not the case when creating a REPL - * programmatically. Use this method to initialize a history log file when working - * with REPL instances programmatically. - * @since v11.10.0 - * @param historyPath the path to the history file - * @param callback called when history writes are ready or upon error - */ - setupHistory(path: string, callback: (err: Error | null, repl: this) => void): void; - /** - * events.EventEmitter - * 1. close - inherited from `readline.Interface` - * 2. line - inherited from `readline.Interface` - * 3. pause - inherited from `readline.Interface` - * 4. resume - inherited from `readline.Interface` - * 5. SIGCONT - inherited from `readline.Interface` - * 6. SIGINT - inherited from `readline.Interface` - * 7. SIGTSTP - inherited from `readline.Interface` - * 8. exit - * 9. reset - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'close', listener: () => void): this; - addListener(event: 'line', listener: (input: string) => void): this; - addListener(event: 'pause', listener: () => void): this; - addListener(event: 'resume', listener: () => void): this; - addListener(event: 'SIGCONT', listener: () => void): this; - addListener(event: 'SIGINT', listener: () => void): this; - addListener(event: 'SIGTSTP', listener: () => void): this; - addListener(event: 'exit', listener: () => void): this; - addListener(event: 'reset', listener: (context: Context) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'close'): boolean; - emit(event: 'line', input: string): boolean; - emit(event: 'pause'): boolean; - emit(event: 'resume'): boolean; - emit(event: 'SIGCONT'): boolean; - emit(event: 'SIGINT'): boolean; - emit(event: 'SIGTSTP'): boolean; - emit(event: 'exit'): boolean; - emit(event: 'reset', context: Context): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'close', listener: () => void): this; - on(event: 'line', listener: (input: string) => void): this; - on(event: 'pause', listener: () => void): this; - on(event: 'resume', listener: () => void): this; - on(event: 'SIGCONT', listener: () => void): this; - on(event: 'SIGINT', listener: () => void): this; - on(event: 'SIGTSTP', listener: () => void): this; - on(event: 'exit', listener: () => void): this; - on(event: 'reset', listener: (context: Context) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'line', listener: (input: string) => void): this; - once(event: 'pause', listener: () => void): this; - once(event: 'resume', listener: () => void): this; - once(event: 'SIGCONT', listener: () => void): this; - once(event: 'SIGINT', listener: () => void): this; - once(event: 'SIGTSTP', listener: () => void): this; - once(event: 'exit', listener: () => void): this; - once(event: 'reset', listener: (context: Context) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'line', listener: (input: string) => void): this; - prependListener(event: 'pause', listener: () => void): this; - prependListener(event: 'resume', listener: () => void): this; - prependListener(event: 'SIGCONT', listener: () => void): this; - prependListener(event: 'SIGINT', listener: () => void): this; - prependListener(event: 'SIGTSTP', listener: () => void): this; - prependListener(event: 'exit', listener: () => void): this; - prependListener(event: 'reset', listener: (context: Context) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'line', listener: (input: string) => void): this; - prependOnceListener(event: 'pause', listener: () => void): this; - prependOnceListener(event: 'resume', listener: () => void): this; - prependOnceListener(event: 'SIGCONT', listener: () => void): this; - prependOnceListener(event: 'SIGINT', listener: () => void): this; - prependOnceListener(event: 'SIGTSTP', listener: () => void): this; - prependOnceListener(event: 'exit', listener: () => void): this; - prependOnceListener(event: 'reset', listener: (context: Context) => void): this; - } - /** - * A flag passed in the REPL options. Evaluates expressions in sloppy mode. - */ - const REPL_MODE_SLOPPY: unique symbol; - /** - * A flag passed in the REPL options. Evaluates expressions in strict mode. - * This is equivalent to prefacing every repl statement with `'use strict'`. - */ - const REPL_MODE_STRICT: unique symbol; - /** - * The `repl.start()` method creates and starts a {@link REPLServer} instance. - * - * If `options` is a string, then it specifies the input prompt: - * - * ```js - * const repl = require('repl'); - * - * // a Unix style prompt - * repl.start('$ '); - * ``` - * @since v0.1.91 - */ - function start(options?: string | ReplOptions): REPLServer; - /** - * Indicates a recoverable error that a `REPLServer` can use to support multi-line input. - * - * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_recoverable_errors - */ - class Recoverable extends SyntaxError { - err: Error; - constructor(err: Error); - } -} -declare module 'node:repl' { - export * from 'repl'; -} diff --git a/WechatBot/node_modules/@types/node/stream.d.ts b/WechatBot/node_modules/@types/node/stream.d.ts deleted file mode 100644 index 9fdf3bdb8..000000000 --- a/WechatBot/node_modules/@types/node/stream.d.ts +++ /dev/null @@ -1,1218 +0,0 @@ -/** - * A stream is an abstract interface for working with streaming data in Node.js. - * The `stream` module provides an API for implementing the stream interface. - * - * There are many stream objects provided by Node.js. For instance, a `request to an HTTP server` and `process.stdout` are both stream instances. - * - * Streams can be readable, writable, or both. All streams are instances of `EventEmitter`. - * - * To access the `stream` module: - * - * ```js - * const stream = require('stream'); - * ``` - * - * The `stream` module is useful for creating new types of stream instances. It is - * usually not necessary to use the `stream` module to consume streams. - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/stream.js) - */ -declare module 'stream' { - import { EventEmitter, Abortable } from 'node:events'; - import * as streamPromises from 'node:stream/promises'; - import * as streamConsumers from 'node:stream/consumers'; - class internal extends EventEmitter { - pipe( - destination: T, - options?: { - end?: boolean | undefined; - } - ): T; - } - namespace internal { - class Stream extends internal { - constructor(opts?: ReadableOptions); - } - interface StreamOptions extends Abortable { - emitClose?: boolean | undefined; - highWaterMark?: number | undefined; - objectMode?: boolean | undefined; - construct?(this: T, callback: (error?: Error | null) => void): void; - destroy?(this: T, error: Error | null, callback: (error: Error | null) => void): void; - autoDestroy?: boolean | undefined; - } - interface ReadableOptions extends StreamOptions { - encoding?: BufferEncoding | undefined; - read?(this: Readable, size: number): void; - } - /** - * @since v0.9.4 - */ - class Readable extends Stream implements NodeJS.ReadableStream { - /** - * A utility method for creating Readable Streams out of iterators. - */ - static from(iterable: Iterable | AsyncIterable, options?: ReadableOptions): Readable; - /** - * Returns whether the stream has been read from or cancelled. - * @since v16.8.0 - */ - static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean; - /** - * Returns whether the stream was destroyed or errored before emitting `'end'`. - * @since v16.8.0 - */ - readonly readableAborted: boolean; - /** - * Is `true` if it is safe to call `readable.read()`, which means - * the stream has not been destroyed or emitted `'error'` or `'end'`. - * @since v11.4.0 - */ - readable: boolean; - /** - * Returns whether `'data'` has been emitted. - * @since v16.7.0 - */ - readonly readableDidRead: boolean; - /** - * Getter for the property `encoding` of a given `Readable` stream. The `encoding`property can be set using the `readable.setEncoding()` method. - * @since v12.7.0 - */ - readonly readableEncoding: BufferEncoding | null; - /** - * Becomes `true` when `'end'` event is emitted. - * @since v12.9.0 - */ - readonly readableEnded: boolean; - /** - * This property reflects the current state of a `Readable` stream as described - * in the `Three states` section. - * @since v9.4.0 - */ - readonly readableFlowing: boolean | null; - /** - * Returns the value of `highWaterMark` passed when creating this `Readable`. - * @since v9.3.0 - */ - readonly readableHighWaterMark: number; - /** - * This property contains the number of bytes (or objects) in the queue - * ready to be read. The value provides introspection data regarding - * the status of the `highWaterMark`. - * @since v9.4.0 - */ - readonly readableLength: number; - /** - * Getter for the property `objectMode` of a given `Readable` stream. - * @since v12.3.0 - */ - readonly readableObjectMode: boolean; - /** - * Is `true` after `readable.destroy()` has been called. - * @since v8.0.0 - */ - destroyed: boolean; - constructor(opts?: ReadableOptions); - _construct?(callback: (error?: Error | null) => void): void; - _read(size: number): void; - /** - * The `readable.read()` method pulls some data out of the internal buffer and - * returns it. If no data available to be read, `null` is returned. By default, - * the data will be returned as a `Buffer` object unless an encoding has been - * specified using the `readable.setEncoding()` method or the stream is operating - * in object mode. - * - * The optional `size` argument specifies a specific number of bytes to read. If`size` bytes are not available to be read, `null` will be returned _unless_the stream has ended, in which - * case all of the data remaining in the internal - * buffer will be returned. - * - * If the `size` argument is not specified, all of the data contained in the - * internal buffer will be returned. - * - * The `size` argument must be less than or equal to 1 GiB. - * - * The `readable.read()` method should only be called on `Readable` streams - * operating in paused mode. In flowing mode, `readable.read()` is called - * automatically until the internal buffer is fully drained. - * - * ```js - * const readable = getReadableStreamSomehow(); - * - * // 'readable' may be triggered multiple times as data is buffered in - * readable.on('readable', () => { - * let chunk; - * console.log('Stream is readable (new data received in buffer)'); - * // Use a loop to make sure we read all currently available data - * while (null !== (chunk = readable.read())) { - * console.log(`Read ${chunk.length} bytes of data...`); - * } - * }); - * - * // 'end' will be triggered once when there is no more data available - * readable.on('end', () => { - * console.log('Reached end of stream.'); - * }); - * ``` - * - * Each call to `readable.read()` returns a chunk of data, or `null`. The chunks - * are not concatenated. A `while` loop is necessary to consume all data - * currently in the buffer. When reading a large file `.read()` may return `null`, - * having consumed all buffered content so far, but there is still more data to - * come not yet buffered. In this case a new `'readable'` event will be emitted - * when there is more data in the buffer. Finally the `'end'` event will be - * emitted when there is no more data to come. - * - * Therefore to read a file's whole contents from a `readable`, it is necessary - * to collect chunks across multiple `'readable'` events: - * - * ```js - * const chunks = []; - * - * readable.on('readable', () => { - * let chunk; - * while (null !== (chunk = readable.read())) { - * chunks.push(chunk); - * } - * }); - * - * readable.on('end', () => { - * const content = chunks.join(''); - * }); - * ``` - * - * A `Readable` stream in object mode will always return a single item from - * a call to `readable.read(size)`, regardless of the value of the`size` argument. - * - * If the `readable.read()` method returns a chunk of data, a `'data'` event will - * also be emitted. - * - * Calling {@link read} after the `'end'` event has - * been emitted will return `null`. No runtime error will be raised. - * @since v0.9.4 - * @param size Optional argument to specify how much data to read. - */ - read(size?: number): any; - /** - * The `readable.setEncoding()` method sets the character encoding for - * data read from the `Readable` stream. - * - * By default, no encoding is assigned and stream data will be returned as`Buffer` objects. Setting an encoding causes the stream data - * to be returned as strings of the specified encoding rather than as `Buffer`objects. For instance, calling `readable.setEncoding('utf8')` will cause the - * output data to be interpreted as UTF-8 data, and passed as strings. Calling`readable.setEncoding('hex')` will cause the data to be encoded in hexadecimal - * string format. - * - * The `Readable` stream will properly handle multi-byte characters delivered - * through the stream that would otherwise become improperly decoded if simply - * pulled from the stream as `Buffer` objects. - * - * ```js - * const readable = getReadableStreamSomehow(); - * readable.setEncoding('utf8'); - * readable.on('data', (chunk) => { - * assert.equal(typeof chunk, 'string'); - * console.log('Got %d characters of string data:', chunk.length); - * }); - * ``` - * @since v0.9.4 - * @param encoding The encoding to use. - */ - setEncoding(encoding: BufferEncoding): this; - /** - * The `readable.pause()` method will cause a stream in flowing mode to stop - * emitting `'data'` events, switching out of flowing mode. Any data that - * becomes available will remain in the internal buffer. - * - * ```js - * const readable = getReadableStreamSomehow(); - * readable.on('data', (chunk) => { - * console.log(`Received ${chunk.length} bytes of data.`); - * readable.pause(); - * console.log('There will be no additional data for 1 second.'); - * setTimeout(() => { - * console.log('Now data will start flowing again.'); - * readable.resume(); - * }, 1000); - * }); - * ``` - * - * The `readable.pause()` method has no effect if there is a `'readable'`event listener. - * @since v0.9.4 - */ - pause(): this; - /** - * The `readable.resume()` method causes an explicitly paused `Readable` stream to - * resume emitting `'data'` events, switching the stream into flowing mode. - * - * The `readable.resume()` method can be used to fully consume the data from a - * stream without actually processing any of that data: - * - * ```js - * getReadableStreamSomehow() - * .resume() - * .on('end', () => { - * console.log('Reached the end, but did not read anything.'); - * }); - * ``` - * - * The `readable.resume()` method has no effect if there is a `'readable'`event listener. - * @since v0.9.4 - */ - resume(): this; - /** - * The `readable.isPaused()` method returns the current operating state of the`Readable`. This is used primarily by the mechanism that underlies the`readable.pipe()` method. In most - * typical cases, there will be no reason to - * use this method directly. - * - * ```js - * const readable = new stream.Readable(); - * - * readable.isPaused(); // === false - * readable.pause(); - * readable.isPaused(); // === true - * readable.resume(); - * readable.isPaused(); // === false - * ``` - * @since v0.11.14 - */ - isPaused(): boolean; - /** - * The `readable.unpipe()` method detaches a `Writable` stream previously attached - * using the {@link pipe} method. - * - * If the `destination` is not specified, then _all_ pipes are detached. - * - * If the `destination` is specified, but no pipe is set up for it, then - * the method does nothing. - * - * ```js - * const fs = require('fs'); - * const readable = getReadableStreamSomehow(); - * const writable = fs.createWriteStream('file.txt'); - * // All the data from readable goes into 'file.txt', - * // but only for the first second. - * readable.pipe(writable); - * setTimeout(() => { - * console.log('Stop writing to file.txt.'); - * readable.unpipe(writable); - * console.log('Manually close the file stream.'); - * writable.end(); - * }, 1000); - * ``` - * @since v0.9.4 - * @param destination Optional specific stream to unpipe - */ - unpipe(destination?: NodeJS.WritableStream): this; - /** - * Passing `chunk` as `null` signals the end of the stream (EOF) and behaves the - * same as `readable.push(null)`, after which no more data can be written. The EOF - * signal is put at the end of the buffer and any buffered data will still be - * flushed. - * - * The `readable.unshift()` method pushes a chunk of data back into the internal - * buffer. This is useful in certain situations where a stream is being consumed by - * code that needs to "un-consume" some amount of data that it has optimistically - * pulled out of the source, so that the data can be passed on to some other party. - * - * The `stream.unshift(chunk)` method cannot be called after the `'end'` event - * has been emitted or a runtime error will be thrown. - * - * Developers using `stream.unshift()` often should consider switching to - * use of a `Transform` stream instead. See the `API for stream implementers` section for more information. - * - * ```js - * // Pull off a header delimited by \n\n. - * // Use unshift() if we get too much. - * // Call the callback with (error, header, stream). - * const { StringDecoder } = require('string_decoder'); - * function parseHeader(stream, callback) { - * stream.on('error', callback); - * stream.on('readable', onReadable); - * const decoder = new StringDecoder('utf8'); - * let header = ''; - * function onReadable() { - * let chunk; - * while (null !== (chunk = stream.read())) { - * const str = decoder.write(chunk); - * if (str.match(/\n\n/)) { - * // Found the header boundary. - * const split = str.split(/\n\n/); - * header += split.shift(); - * const remaining = split.join('\n\n'); - * const buf = Buffer.from(remaining, 'utf8'); - * stream.removeListener('error', callback); - * // Remove the 'readable' listener before unshifting. - * stream.removeListener('readable', onReadable); - * if (buf.length) - * stream.unshift(buf); - * // Now the body of the message can be read from the stream. - * callback(null, header, stream); - * } else { - * // Still reading the header. - * header += str; - * } - * } - * } - * } - * ``` - * - * Unlike {@link push}, `stream.unshift(chunk)` will not - * end the reading process by resetting the internal reading state of the stream. - * This can cause unexpected results if `readable.unshift()` is called during a - * read (i.e. from within a {@link _read} implementation on a - * custom stream). Following the call to `readable.unshift()` with an immediate {@link push} will reset the reading state appropriately, - * however it is best to simply avoid calling `readable.unshift()` while in the - * process of performing a read. - * @since v0.9.11 - * @param chunk Chunk of data to unshift onto the read queue. For streams not operating in object mode, `chunk` must be a string, `Buffer`, `Uint8Array` or `null`. For object mode - * streams, `chunk` may be any JavaScript value. - * @param encoding Encoding of string chunks. Must be a valid `Buffer` encoding, such as `'utf8'` or `'ascii'`. - */ - unshift(chunk: any, encoding?: BufferEncoding): void; - /** - * Prior to Node.js 0.10, streams did not implement the entire `stream` module API - * as it is currently defined. (See `Compatibility` for more information.) - * - * When using an older Node.js library that emits `'data'` events and has a {@link pause} method that is advisory only, the`readable.wrap()` method can be used to create a `Readable` - * stream that uses - * the old stream as its data source. - * - * It will rarely be necessary to use `readable.wrap()` but the method has been - * provided as a convenience for interacting with older Node.js applications and - * libraries. - * - * ```js - * const { OldReader } = require('./old-api-module.js'); - * const { Readable } = require('stream'); - * const oreader = new OldReader(); - * const myReader = new Readable().wrap(oreader); - * - * myReader.on('readable', () => { - * myReader.read(); // etc. - * }); - * ``` - * @since v0.9.4 - * @param stream An "old style" readable stream - */ - wrap(stream: NodeJS.ReadableStream): this; - push(chunk: any, encoding?: BufferEncoding): boolean; - _destroy(error: Error | null, callback: (error?: Error | null) => void): void; - /** - * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`event (unless `emitClose` is set to `false`). After this call, the readable - * stream will release any internal resources and subsequent calls to `push()`will be ignored. - * - * Once `destroy()` has been called any further calls will be a no-op and no - * further errors except from `_destroy()` may be emitted as `'error'`. - * - * Implementors should not override this method, but instead implement `readable._destroy()`. - * @since v8.0.0 - * @param error Error which will be passed as payload in `'error'` event - */ - destroy(error?: Error): void; - /** - * Event emitter - * The defined events on documents including: - * 1. close - * 2. data - * 3. end - * 4. error - * 5. pause - * 6. readable - * 7. resume - */ - addListener(event: 'close', listener: () => void): this; - addListener(event: 'data', listener: (chunk: any) => void): this; - addListener(event: 'end', listener: () => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'pause', listener: () => void): this; - addListener(event: 'readable', listener: () => void): this; - addListener(event: 'resume', listener: () => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: 'close'): boolean; - emit(event: 'data', chunk: any): boolean; - emit(event: 'end'): boolean; - emit(event: 'error', err: Error): boolean; - emit(event: 'pause'): boolean; - emit(event: 'readable'): boolean; - emit(event: 'resume'): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: 'close', listener: () => void): this; - on(event: 'data', listener: (chunk: any) => void): this; - on(event: 'end', listener: () => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'pause', listener: () => void): this; - on(event: 'readable', listener: () => void): this; - on(event: 'resume', listener: () => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'data', listener: (chunk: any) => void): this; - once(event: 'end', listener: () => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'pause', listener: () => void): this; - once(event: 'readable', listener: () => void): this; - once(event: 'resume', listener: () => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'data', listener: (chunk: any) => void): this; - prependListener(event: 'end', listener: () => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'pause', listener: () => void): this; - prependListener(event: 'readable', listener: () => void): this; - prependListener(event: 'resume', listener: () => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'data', listener: (chunk: any) => void): this; - prependOnceListener(event: 'end', listener: () => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'pause', listener: () => void): this; - prependOnceListener(event: 'readable', listener: () => void): this; - prependOnceListener(event: 'resume', listener: () => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: 'close', listener: () => void): this; - removeListener(event: 'data', listener: (chunk: any) => void): this; - removeListener(event: 'end', listener: () => void): this; - removeListener(event: 'error', listener: (err: Error) => void): this; - removeListener(event: 'pause', listener: () => void): this; - removeListener(event: 'readable', listener: () => void): this; - removeListener(event: 'resume', listener: () => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - [Symbol.asyncIterator](): AsyncIterableIterator; - } - interface WritableOptions extends StreamOptions { - decodeStrings?: boolean | undefined; - defaultEncoding?: BufferEncoding | undefined; - write?(this: Writable, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; - writev?( - this: Writable, - chunks: Array<{ - chunk: any; - encoding: BufferEncoding; - }>, - callback: (error?: Error | null) => void - ): void; - final?(this: Writable, callback: (error?: Error | null) => void): void; - } - /** - * @since v0.9.4 - */ - class Writable extends Stream implements NodeJS.WritableStream { - /** - * Is `true` if it is safe to call `writable.write()`, which means - * the stream has not been destroyed, errored or ended. - * @since v11.4.0 - */ - readonly writable: boolean; - /** - * Is `true` after `writable.end()` has been called. This property - * does not indicate whether the data has been flushed, for this use `writable.writableFinished` instead. - * @since v12.9.0 - */ - readonly writableEnded: boolean; - /** - * Is set to `true` immediately before the `'finish'` event is emitted. - * @since v12.6.0 - */ - readonly writableFinished: boolean; - /** - * Return the value of `highWaterMark` passed when creating this `Writable`. - * @since v9.3.0 - */ - readonly writableHighWaterMark: number; - /** - * This property contains the number of bytes (or objects) in the queue - * ready to be written. The value provides introspection data regarding - * the status of the `highWaterMark`. - * @since v9.4.0 - */ - readonly writableLength: number; - /** - * Getter for the property `objectMode` of a given `Writable` stream. - * @since v12.3.0 - */ - readonly writableObjectMode: boolean; - /** - * Number of times `writable.uncork()` needs to be - * called in order to fully uncork the stream. - * @since v13.2.0, v12.16.0 - */ - readonly writableCorked: number; - /** - * Is `true` after `writable.destroy()` has been called. - * @since v8.0.0 - */ - destroyed: boolean; - constructor(opts?: WritableOptions); - _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; - _writev?( - chunks: Array<{ - chunk: any; - encoding: BufferEncoding; - }>, - callback: (error?: Error | null) => void - ): void; - _construct?(callback: (error?: Error | null) => void): void; - _destroy(error: Error | null, callback: (error?: Error | null) => void): void; - _final(callback: (error?: Error | null) => void): void; - /** - * The `writable.write()` method writes some data to the stream, and calls the - * supplied `callback` once the data has been fully handled. If an error - * occurs, the `callback` will be called with the error as its - * first argument. The `callback` is called asynchronously and before `'error'` is - * emitted. - * - * The return value is `true` if the internal buffer is less than the`highWaterMark` configured when the stream was created after admitting `chunk`. - * If `false` is returned, further attempts to write data to the stream should - * stop until the `'drain'` event is emitted. - * - * While a stream is not draining, calls to `write()` will buffer `chunk`, and - * return false. Once all currently buffered chunks are drained (accepted for - * delivery by the operating system), the `'drain'` event will be emitted. - * It is recommended that once `write()` returns false, no more chunks be written - * until the `'drain'` event is emitted. While calling `write()` on a stream that - * is not draining is allowed, Node.js will buffer all written chunks until - * maximum memory usage occurs, at which point it will abort unconditionally. - * Even before it aborts, high memory usage will cause poor garbage collector - * performance and high RSS (which is not typically released back to the system, - * even after the memory is no longer required). Since TCP sockets may never - * drain if the remote peer does not read the data, writing a socket that is - * not draining may lead to a remotely exploitable vulnerability. - * - * Writing data while the stream is not draining is particularly - * problematic for a `Transform`, because the `Transform` streams are paused - * by default until they are piped or a `'data'` or `'readable'` event handler - * is added. - * - * If the data to be written can be generated or fetched on demand, it is - * recommended to encapsulate the logic into a `Readable` and use {@link pipe}. However, if calling `write()` is preferred, it is - * possible to respect backpressure and avoid memory issues using the `'drain'` event: - * - * ```js - * function write(data, cb) { - * if (!stream.write(data)) { - * stream.once('drain', cb); - * } else { - * process.nextTick(cb); - * } - * } - * - * // Wait for cb to be called before doing any other write. - * write('hello', () => { - * console.log('Write completed, do more writes now.'); - * }); - * ``` - * - * A `Writable` stream in object mode will always ignore the `encoding` argument. - * @since v0.9.4 - * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a string, `Buffer` or `Uint8Array`. For object mode streams, `chunk` may be any - * JavaScript value other than `null`. - * @param [encoding='utf8'] The encoding, if `chunk` is a string. - * @param callback Callback for when this chunk of data is flushed. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean; - write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean; - /** - * The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream. - * @since v0.11.15 - * @param encoding The new default encoding - */ - setDefaultEncoding(encoding: BufferEncoding): this; - /** - * Calling the `writable.end()` method signals that no more data will be written - * to the `Writable`. The optional `chunk` and `encoding` arguments allow one - * final additional chunk of data to be written immediately before closing the - * stream. - * - * Calling the {@link write} method after calling {@link end} will raise an error. - * - * ```js - * // Write 'hello, ' and then end with 'world!'. - * const fs = require('fs'); - * const file = fs.createWriteStream('example.txt'); - * file.write('hello, '); - * file.end('world!'); - * // Writing more now is not allowed! - * ``` - * @since v0.9.4 - * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a string, `Buffer` or `Uint8Array`. For object mode streams, `chunk` may be any - * JavaScript value other than `null`. - * @param encoding The encoding if `chunk` is a string - * @param callback Callback for when the stream is finished. - */ - end(cb?: () => void): void; - end(chunk: any, cb?: () => void): void; - end(chunk: any, encoding: BufferEncoding, cb?: () => void): void; - /** - * The `writable.cork()` method forces all written data to be buffered in memory. - * The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called. - * - * The primary intent of `writable.cork()` is to accommodate a situation in which - * several small chunks are written to the stream in rapid succession. Instead of - * immediately forwarding them to the underlying destination, `writable.cork()`buffers all the chunks until `writable.uncork()` is called, which will pass them - * all to `writable._writev()`, if present. This prevents a head-of-line blocking - * situation where data is being buffered while waiting for the first small chunk - * to be processed. However, use of `writable.cork()` without implementing`writable._writev()` may have an adverse effect on throughput. - * - * See also: `writable.uncork()`, `writable._writev()`. - * @since v0.11.2 - */ - cork(): void; - /** - * The `writable.uncork()` method flushes all data buffered since {@link cork} was called. - * - * When using `writable.cork()` and `writable.uncork()` to manage the buffering - * of writes to a stream, it is recommended that calls to `writable.uncork()` be - * deferred using `process.nextTick()`. Doing so allows batching of all`writable.write()` calls that occur within a given Node.js event loop phase. - * - * ```js - * stream.cork(); - * stream.write('some '); - * stream.write('data '); - * process.nextTick(() => stream.uncork()); - * ``` - * - * If the `writable.cork()` method is called multiple times on a stream, the - * same number of calls to `writable.uncork()` must be called to flush the buffered - * data. - * - * ```js - * stream.cork(); - * stream.write('some '); - * stream.cork(); - * stream.write('data '); - * process.nextTick(() => { - * stream.uncork(); - * // The data will not be flushed until uncork() is called a second time. - * stream.uncork(); - * }); - * ``` - * - * See also: `writable.cork()`. - * @since v0.11.2 - */ - uncork(): void; - /** - * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`event (unless `emitClose` is set to `false`). After this call, the writable - * stream has ended and subsequent calls to `write()` or `end()` will result in - * an `ERR_STREAM_DESTROYED` error. - * This is a destructive and immediate way to destroy a stream. Previous calls to`write()` may not have drained, and may trigger an `ERR_STREAM_DESTROYED` error. - * Use `end()` instead of destroy if data should flush before close, or wait for - * the `'drain'` event before destroying the stream. - * - * Once `destroy()` has been called any further calls will be a no-op and no - * further errors except from `_destroy()` may be emitted as `'error'`. - * - * Implementors should not override this method, - * but instead implement `writable._destroy()`. - * @since v8.0.0 - * @param error Optional, an error to emit with `'error'` event. - */ - destroy(error?: Error): void; - /** - * Event emitter - * The defined events on documents including: - * 1. close - * 2. drain - * 3. error - * 4. finish - * 5. pipe - * 6. unpipe - */ - addListener(event: 'close', listener: () => void): this; - addListener(event: 'drain', listener: () => void): this; - addListener(event: 'error', listener: (err: Error) => void): this; - addListener(event: 'finish', listener: () => void): this; - addListener(event: 'pipe', listener: (src: Readable) => void): this; - addListener(event: 'unpipe', listener: (src: Readable) => void): this; - addListener(event: string | symbol, listener: (...args: any[]) => void): this; - emit(event: 'close'): boolean; - emit(event: 'drain'): boolean; - emit(event: 'error', err: Error): boolean; - emit(event: 'finish'): boolean; - emit(event: 'pipe', src: Readable): boolean; - emit(event: 'unpipe', src: Readable): boolean; - emit(event: string | symbol, ...args: any[]): boolean; - on(event: 'close', listener: () => void): this; - on(event: 'drain', listener: () => void): this; - on(event: 'error', listener: (err: Error) => void): this; - on(event: 'finish', listener: () => void): this; - on(event: 'pipe', listener: (src: Readable) => void): this; - on(event: 'unpipe', listener: (src: Readable) => void): this; - on(event: string | symbol, listener: (...args: any[]) => void): this; - once(event: 'close', listener: () => void): this; - once(event: 'drain', listener: () => void): this; - once(event: 'error', listener: (err: Error) => void): this; - once(event: 'finish', listener: () => void): this; - once(event: 'pipe', listener: (src: Readable) => void): this; - once(event: 'unpipe', listener: (src: Readable) => void): this; - once(event: string | symbol, listener: (...args: any[]) => void): this; - prependListener(event: 'close', listener: () => void): this; - prependListener(event: 'drain', listener: () => void): this; - prependListener(event: 'error', listener: (err: Error) => void): this; - prependListener(event: 'finish', listener: () => void): this; - prependListener(event: 'pipe', listener: (src: Readable) => void): this; - prependListener(event: 'unpipe', listener: (src: Readable) => void): this; - prependListener(event: string | symbol, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'close', listener: () => void): this; - prependOnceListener(event: 'drain', listener: () => void): this; - prependOnceListener(event: 'error', listener: (err: Error) => void): this; - prependOnceListener(event: 'finish', listener: () => void): this; - prependOnceListener(event: 'pipe', listener: (src: Readable) => void): this; - prependOnceListener(event: 'unpipe', listener: (src: Readable) => void): this; - prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; - removeListener(event: 'close', listener: () => void): this; - removeListener(event: 'drain', listener: () => void): this; - removeListener(event: 'error', listener: (err: Error) => void): this; - removeListener(event: 'finish', listener: () => void): this; - removeListener(event: 'pipe', listener: (src: Readable) => void): this; - removeListener(event: 'unpipe', listener: (src: Readable) => void): this; - removeListener(event: string | symbol, listener: (...args: any[]) => void): this; - } - interface DuplexOptions extends ReadableOptions, WritableOptions { - allowHalfOpen?: boolean | undefined; - readableObjectMode?: boolean | undefined; - writableObjectMode?: boolean | undefined; - readableHighWaterMark?: number | undefined; - writableHighWaterMark?: number | undefined; - writableCorked?: number | undefined; - construct?(this: Duplex, callback: (error?: Error | null) => void): void; - read?(this: Duplex, size: number): void; - write?(this: Duplex, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; - writev?( - this: Duplex, - chunks: Array<{ - chunk: any; - encoding: BufferEncoding; - }>, - callback: (error?: Error | null) => void - ): void; - final?(this: Duplex, callback: (error?: Error | null) => void): void; - destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void; - } - /** - * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces. - * - * Examples of `Duplex` streams include: - * - * * `TCP sockets` - * * `zlib streams` - * * `crypto streams` - * @since v0.9.4 - */ - class Duplex extends Readable implements Writable { - readonly writable: boolean; - readonly writableEnded: boolean; - readonly writableFinished: boolean; - readonly writableHighWaterMark: number; - readonly writableLength: number; - readonly writableObjectMode: boolean; - readonly writableCorked: number; - allowHalfOpen: boolean; - constructor(opts?: DuplexOptions); - /** - * A utility method for creating duplex streams. - * - * - `Stream` converts writable stream into writable `Duplex` and readable stream - * to `Duplex`. - * - `Blob` converts into readable `Duplex`. - * - `string` converts into readable `Duplex`. - * - `ArrayBuffer` converts into readable `Duplex`. - * - `AsyncIterable` converts into a readable `Duplex`. Cannot yield `null`. - * - `AsyncGeneratorFunction` converts into a readable/writable transform - * `Duplex`. Must take a source `AsyncIterable` as first parameter. Cannot yield - * `null`. - * - `AsyncFunction` converts into a writable `Duplex`. Must return - * either `null` or `undefined` - * - `Object ({ writable, readable })` converts `readable` and - * `writable` into `Stream` and then combines them into `Duplex` where the - * `Duplex` will write to the `writable` and read from the `readable`. - * - `Promise` converts into readable `Duplex`. Value `null` is ignored. - * - * @since v16.8.0 - */ - static from(src: Stream | Blob | ArrayBuffer | string | Iterable | AsyncIterable | AsyncGeneratorFunction | Promise | Object): Duplex; - _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; - _writev?( - chunks: Array<{ - chunk: any; - encoding: BufferEncoding; - }>, - callback: (error?: Error | null) => void - ): void; - _destroy(error: Error | null, callback: (error: Error | null) => void): void; - _final(callback: (error?: Error | null) => void): void; - write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean; - write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean; - setDefaultEncoding(encoding: BufferEncoding): this; - end(cb?: () => void): void; - end(chunk: any, cb?: () => void): void; - end(chunk: any, encoding?: BufferEncoding, cb?: () => void): void; - cork(): void; - uncork(): void; - } - type TransformCallback = (error?: Error | null, data?: any) => void; - interface TransformOptions extends DuplexOptions { - construct?(this: Transform, callback: (error?: Error | null) => void): void; - read?(this: Transform, size: number): void; - write?(this: Transform, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; - writev?( - this: Transform, - chunks: Array<{ - chunk: any; - encoding: BufferEncoding; - }>, - callback: (error?: Error | null) => void - ): void; - final?(this: Transform, callback: (error?: Error | null) => void): void; - destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void; - transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void; - flush?(this: Transform, callback: TransformCallback): void; - } - /** - * Transform streams are `Duplex` streams where the output is in some way - * related to the input. Like all `Duplex` streams, `Transform` streams - * implement both the `Readable` and `Writable` interfaces. - * - * Examples of `Transform` streams include: - * - * * `zlib streams` - * * `crypto streams` - * @since v0.9.4 - */ - class Transform extends Duplex { - constructor(opts?: TransformOptions); - _transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback): void; - _flush(callback: TransformCallback): void; - } - /** - * The `stream.PassThrough` class is a trivial implementation of a `Transform` stream that simply passes the input bytes across to the output. Its purpose is - * primarily for examples and testing, but there are some use cases where`stream.PassThrough` is useful as a building block for novel sorts of streams. - */ - class PassThrough extends Transform {} - /** - * Attaches an AbortSignal to a readable or writeable stream. This lets code - * control stream destruction using an `AbortController`. - * - * Calling `abort` on the `AbortController` corresponding to the passed`AbortSignal` will behave the same way as calling `.destroy(new AbortError())`on the stream. - * - * ```js - * const fs = require('fs'); - * - * const controller = new AbortController(); - * const read = addAbortSignal( - * controller.signal, - * fs.createReadStream(('object.json')) - * ); - * // Later, abort the operation closing the stream - * controller.abort(); - * ``` - * - * Or using an `AbortSignal` with a readable stream as an async iterable: - * - * ```js - * const controller = new AbortController(); - * setTimeout(() => controller.abort(), 10_000); // set a timeout - * const stream = addAbortSignal( - * controller.signal, - * fs.createReadStream(('object.json')) - * ); - * (async () => { - * try { - * for await (const chunk of stream) { - * await process(chunk); - * } - * } catch (e) { - * if (e.name === 'AbortError') { - * // The operation was cancelled - * } else { - * throw e; - * } - * } - * })(); - * ``` - * @since v15.4.0 - * @param signal A signal representing possible cancellation - * @param stream a stream to attach a signal to - */ - function addAbortSignal(signal: AbortSignal, stream: T): T; - interface FinishedOptions extends Abortable { - error?: boolean | undefined; - readable?: boolean | undefined; - writable?: boolean | undefined; - } - /** - * A function to get notified when a stream is no longer readable, writable - * or has experienced an error or a premature close event. - * - * ```js - * const { finished } = require('stream'); - * - * const rs = fs.createReadStream('archive.tar'); - * - * finished(rs, (err) => { - * if (err) { - * console.error('Stream failed.', err); - * } else { - * console.log('Stream is done reading.'); - * } - * }); - * - * rs.resume(); // Drain the stream. - * ``` - * - * Especially useful in error handling scenarios where a stream is destroyed - * prematurely (like an aborted HTTP request), and will not emit `'end'`or `'finish'`. - * - * The `finished` API provides promise version: - * - * ```js - * const { finished } = require('stream/promises'); - * - * const rs = fs.createReadStream('archive.tar'); - * - * async function run() { - * await finished(rs); - * console.log('Stream is done reading.'); - * } - * - * run().catch(console.error); - * rs.resume(); // Drain the stream. - * ``` - * - * `stream.finished()` leaves dangling event listeners (in particular`'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been - * invoked. The reason for this is so that unexpected `'error'` events (due to - * incorrect stream implementations) do not cause unexpected crashes. - * If this is unwanted behavior then the returned cleanup function needs to be - * invoked in the callback: - * - * ```js - * const cleanup = finished(rs, (err) => { - * cleanup(); - * // ... - * }); - * ``` - * @since v10.0.0 - * @param stream A readable and/or writable stream. - * @param callback A callback function that takes an optional error argument. - * @return A cleanup function which removes all registered listeners. - */ - function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options: FinishedOptions, callback: (err?: NodeJS.ErrnoException | null) => void): () => void; - function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, callback: (err?: NodeJS.ErrnoException | null) => void): () => void; - namespace finished { - function __promisify__(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise; - } - type PipelineSourceFunction = () => Iterable | AsyncIterable; - type PipelineSource = Iterable | AsyncIterable | NodeJS.ReadableStream | PipelineSourceFunction; - type PipelineTransform, U> = - | NodeJS.ReadWriteStream - | ((source: S extends (...args: any[]) => Iterable | AsyncIterable ? AsyncIterable : S) => AsyncIterable); - type PipelineTransformSource = PipelineSource | PipelineTransform; - type PipelineDestinationIterableFunction = (source: AsyncIterable) => AsyncIterable; - type PipelineDestinationPromiseFunction = (source: AsyncIterable) => Promise

; - type PipelineDestination, P> = S extends PipelineTransformSource - ? NodeJS.WritableStream | PipelineDestinationIterableFunction | PipelineDestinationPromiseFunction - : never; - type PipelineCallback> = S extends PipelineDestinationPromiseFunction - ? (err: NodeJS.ErrnoException | null, value: P) => void - : (err: NodeJS.ErrnoException | null) => void; - type PipelinePromise> = S extends PipelineDestinationPromiseFunction ? Promise

: Promise; - interface PipelineOptions { - signal: AbortSignal; - } - /** - * A module method to pipe between streams and generators forwarding errors and - * properly cleaning up and provide a callback when the pipeline is complete. - * - * ```js - * const { pipeline } = require('stream'); - * const fs = require('fs'); - * const zlib = require('zlib'); - * - * // Use the pipeline API to easily pipe a series of streams - * // together and get notified when the pipeline is fully done. - * - * // A pipeline to gzip a potentially huge tar file efficiently: - * - * pipeline( - * fs.createReadStream('archive.tar'), - * zlib.createGzip(), - * fs.createWriteStream('archive.tar.gz'), - * (err) => { - * if (err) { - * console.error('Pipeline failed.', err); - * } else { - * console.log('Pipeline succeeded.'); - * } - * } - * ); - * ``` - * - * The `pipeline` API provides a promise version, which can also - * receive an options argument as the last parameter with a`signal` `AbortSignal` property. When the signal is aborted,`destroy` will be called on the underlying pipeline, with - * an`AbortError`. - * - * ```js - * const { pipeline } = require('stream/promises'); - * - * async function run() { - * await pipeline( - * fs.createReadStream('archive.tar'), - * zlib.createGzip(), - * fs.createWriteStream('archive.tar.gz') - * ); - * console.log('Pipeline succeeded.'); - * } - * - * run().catch(console.error); - * ``` - * - * To use an `AbortSignal`, pass it inside an options object, - * as the last argument: - * - * ```js - * const { pipeline } = require('stream/promises'); - * - * async function run() { - * const ac = new AbortController(); - * const options = { - * signal: ac.signal, - * }; - * - * setTimeout(() => ac.abort(), 1); - * await pipeline( - * fs.createReadStream('archive.tar'), - * zlib.createGzip(), - * fs.createWriteStream('archive.tar.gz'), - * options, - * ); - * } - * - * run().catch(console.error); // AbortError - * ``` - * - * The `pipeline` API also supports async generators: - * - * ```js - * const { pipeline } = require('stream/promises'); - * const fs = require('fs'); - * - * async function run() { - * await pipeline( - * fs.createReadStream('lowercase.txt'), - * async function* (source) { - * source.setEncoding('utf8'); // Work with strings rather than `Buffer`s. - * for await (const chunk of source) { - * yield chunk.toUpperCase(); - * } - * }, - * fs.createWriteStream('uppercase.txt') - * ); - * console.log('Pipeline succeeded.'); - * } - * - * run().catch(console.error); - * ``` - * - * `stream.pipeline()` will call `stream.destroy(err)` on all streams except: - * - * * `Readable` streams which have emitted `'end'` or `'close'`. - * * `Writable` streams which have emitted `'finish'` or `'close'`. - * - * `stream.pipeline()` leaves dangling event listeners on the streams - * after the `callback` has been invoked. In the case of reuse of streams after - * failure, this can cause event listener leaks and swallowed errors. - * @since v10.0.0 - * @param callback Called when the pipeline is fully done. - */ - function pipeline, B extends PipelineDestination>( - source: A, - destination: B, - callback?: PipelineCallback - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline, T1 extends PipelineTransform, B extends PipelineDestination>( - source: A, - transform1: T1, - destination: B, - callback?: PipelineCallback - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline, T1 extends PipelineTransform, T2 extends PipelineTransform, B extends PipelineDestination>( - source: A, - transform1: T1, - transform2: T2, - destination: B, - callback?: PipelineCallback - ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination - >(source: A, transform1: T1, transform2: T2, transform3: T3, destination: B, callback?: PipelineCallback): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination - >(source: A, transform1: T1, transform2: T2, transform3: T3, transform4: T4, destination: B, callback?: PipelineCallback): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; - function pipeline( - streams: ReadonlyArray, - callback?: (err: NodeJS.ErrnoException | null) => void - ): NodeJS.WritableStream; - function pipeline( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array void)> - ): NodeJS.WritableStream; - namespace pipeline { - function __promisify__, B extends PipelineDestination>(source: A, destination: B, options?: PipelineOptions): PipelinePromise; - function __promisify__, T1 extends PipelineTransform, B extends PipelineDestination>( - source: A, - transform1: T1, - destination: B, - options?: PipelineOptions - ): PipelinePromise; - function __promisify__, T1 extends PipelineTransform, T2 extends PipelineTransform, B extends PipelineDestination>( - source: A, - transform1: T1, - transform2: T2, - destination: B, - options?: PipelineOptions - ): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination - >(source: A, transform1: T1, transform2: T2, transform3: T3, destination: B, options?: PipelineOptions): PipelinePromise; - function __promisify__< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination - >(source: A, transform1: T1, transform2: T2, transform3: T3, transform4: T4, destination: B, options?: PipelineOptions): PipelinePromise; - function __promisify__(streams: ReadonlyArray, options?: PipelineOptions): Promise; - function __promisify__( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array - ): Promise; - } - interface Pipe { - close(): void; - hasRef(): boolean; - ref(): void; - unref(): void; - } - const promises: typeof streamPromises; - const consumers: typeof streamConsumers; - } - export = internal; -} -declare module 'node:stream' { - import stream = require('stream'); - export = stream; -} diff --git a/WechatBot/node_modules/@types/node/stream/consumers.d.ts b/WechatBot/node_modules/@types/node/stream/consumers.d.ts deleted file mode 100644 index ce6c9bb78..000000000 --- a/WechatBot/node_modules/@types/node/stream/consumers.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Duplicates of interface in lib.dom.ts. -// Duplicated here rather than referencing lib.dom.ts because doing so causes lib.dom.ts to be loaded for "test-all" -// Which in turn causes tests to pass that shouldn't pass. -// -// This interface is not, and should not be, exported. -interface Blob { - readonly size: number; - readonly type: string; - arrayBuffer(): Promise; - slice(start?: number, end?: number, contentType?: string): Blob; - stream(): NodeJS.ReadableStream; - text(): Promise; -} -declare module 'stream/consumers' { - import { Readable } from 'node:stream'; - function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; - function text(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; - function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; - function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; - function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; -} -declare module 'node:stream/consumers' { - export * from 'stream/consumers'; -} diff --git a/WechatBot/node_modules/@types/node/stream/promises.d.ts b/WechatBot/node_modules/@types/node/stream/promises.d.ts deleted file mode 100644 index b427073de..000000000 --- a/WechatBot/node_modules/@types/node/stream/promises.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -declare module 'stream/promises' { - import { FinishedOptions, PipelineSource, PipelineTransform, PipelineDestination, PipelinePromise, PipelineOptions } from 'node:stream'; - function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise; - function pipeline, B extends PipelineDestination>(source: A, destination: B, options?: PipelineOptions): PipelinePromise; - function pipeline, T1 extends PipelineTransform, B extends PipelineDestination>( - source: A, - transform1: T1, - destination: B, - options?: PipelineOptions - ): PipelinePromise; - function pipeline, T1 extends PipelineTransform, T2 extends PipelineTransform, B extends PipelineDestination>( - source: A, - transform1: T1, - transform2: T2, - destination: B, - options?: PipelineOptions - ): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - B extends PipelineDestination - >(source: A, transform1: T1, transform2: T2, transform3: T3, destination: B, options?: PipelineOptions): PipelinePromise; - function pipeline< - A extends PipelineSource, - T1 extends PipelineTransform, - T2 extends PipelineTransform, - T3 extends PipelineTransform, - T4 extends PipelineTransform, - B extends PipelineDestination - >(source: A, transform1: T1, transform2: T2, transform3: T3, transform4: T4, destination: B, options?: PipelineOptions): PipelinePromise; - function pipeline(streams: ReadonlyArray, options?: PipelineOptions): Promise; - function pipeline( - stream1: NodeJS.ReadableStream, - stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, - ...streams: Array - ): Promise; -} -declare module 'node:stream/promises' { - export * from 'stream/promises'; -} diff --git a/WechatBot/node_modules/@types/node/stream/web.d.ts b/WechatBot/node_modules/@types/node/stream/web.d.ts deleted file mode 100644 index a9d75c19c..000000000 --- a/WechatBot/node_modules/@types/node/stream/web.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -declare module 'stream/web' { - // stub module, pending copy&paste from .d.ts or manual impl -} -declare module 'node:stream/web' { - export * from 'stream/web'; -} diff --git a/WechatBot/node_modules/@types/node/string_decoder.d.ts b/WechatBot/node_modules/@types/node/string_decoder.d.ts deleted file mode 100644 index f12aa98fd..000000000 --- a/WechatBot/node_modules/@types/node/string_decoder.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -/** - * The `string_decoder` module provides an API for decoding `Buffer` objects into - * strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 - * characters. It can be accessed using: - * - * ```js - * const { StringDecoder } = require('string_decoder'); - * ``` - * - * The following example shows the basic use of the `StringDecoder` class. - * - * ```js - * const { StringDecoder } = require('string_decoder'); - * const decoder = new StringDecoder('utf8'); - * - * const cent = Buffer.from([0xC2, 0xA2]); - * console.log(decoder.write(cent)); - * - * const euro = Buffer.from([0xE2, 0x82, 0xAC]); - * console.log(decoder.write(euro)); - * ``` - * - * When a `Buffer` instance is written to the `StringDecoder` instance, an - * internal buffer is used to ensure that the decoded string does not contain - * any incomplete multibyte characters. These are held in the buffer until the - * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called. - * - * In the following example, the three UTF-8 encoded bytes of the European Euro - * symbol (`€`) are written over three separate operations: - * - * ```js - * const { StringDecoder } = require('string_decoder'); - * const decoder = new StringDecoder('utf8'); - * - * decoder.write(Buffer.from([0xE2])); - * decoder.write(Buffer.from([0x82])); - * console.log(decoder.end(Buffer.from([0xAC]))); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/string_decoder.js) - */ -declare module 'string_decoder' { - class StringDecoder { - constructor(encoding?: BufferEncoding); - /** - * Returns a decoded string, ensuring that any incomplete multibyte characters at - * the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the - * returned string and stored in an internal buffer for the next call to`stringDecoder.write()` or `stringDecoder.end()`. - * @since v0.1.99 - * @param buffer A `Buffer`, or `TypedArray`, or `DataView` containing the bytes to decode. - */ - write(buffer: Buffer): string; - /** - * Returns any remaining input stored in the internal buffer as a string. Bytes - * representing incomplete UTF-8 and UTF-16 characters will be replaced with - * substitution characters appropriate for the character encoding. - * - * If the `buffer` argument is provided, one final call to `stringDecoder.write()`is performed before returning the remaining input. - * After `end()` is called, the `stringDecoder` object can be reused for new input. - * @since v0.9.3 - * @param buffer A `Buffer`, or `TypedArray`, or `DataView` containing the bytes to decode. - */ - end(buffer?: Buffer): string; - } -} -declare module 'node:string_decoder' { - export * from 'string_decoder'; -} diff --git a/WechatBot/node_modules/@types/node/timers.d.ts b/WechatBot/node_modules/@types/node/timers.d.ts deleted file mode 100644 index 3f3baceae..000000000 --- a/WechatBot/node_modules/@types/node/timers.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -/** - * The `timer` module exposes a global API for scheduling functions to - * be called at some future period of time. Because the timer functions are - * globals, there is no need to call `require('timers')` to use the API. - * - * The timer functions within Node.js implement a similar API as the timers API - * provided by Web Browsers but use a different internal implementation that is - * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout). - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/timers.js) - */ -declare module 'timers' { - import { Abortable } from 'node:events'; - import { setTimeout as setTimeoutPromise, setImmediate as setImmediatePromise, setInterval as setIntervalPromise } from 'node:timers/promises'; - interface TimerOptions extends Abortable { - /** - * Set to `false` to indicate that the scheduled `Timeout` - * should not require the Node.js event loop to remain active. - * @default true - */ - ref?: boolean | undefined; - } - let setTimeout: typeof global.setTimeout; - let clearTimeout: typeof global.clearTimeout; - let setInterval: typeof global.setInterval; - let clearInterval: typeof global.clearInterval; - let setImmediate: typeof global.setImmediate; - let clearImmediate: typeof global.clearImmediate; - global { - namespace NodeJS { - // compatibility with older typings - interface Timer extends RefCounted { - hasRef(): boolean; - refresh(): this; - [Symbol.toPrimitive](): number; - } - interface Immediate extends RefCounted { - /** - * If true, the `Immediate` object will keep the Node.js event loop active. - * @since v11.0.0 - */ - hasRef(): boolean; - _onImmediate: Function; // to distinguish it from the Timeout class - } - interface Timeout extends Timer { - /** - * If true, the `Timeout` object will keep the Node.js event loop active. - * @since v11.0.0 - */ - hasRef(): boolean; - /** - * Sets the timer's start time to the current time, and reschedules the timer to - * call its callback at the previously specified duration adjusted to the current - * time. This is useful for refreshing a timer without allocating a new - * JavaScript object. - * - * Using this on a timer that has already called its callback will reactivate the - * timer. - * @since v10.2.0 - * @return a reference to `timeout` - */ - refresh(): this; - [Symbol.toPrimitive](): number; - } - } - function setTimeout(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timeout; - // util.promisify no rest args compability - // tslint:disable-next-line void-return - function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout; - namespace setTimeout { - const __promisify__: typeof setTimeoutPromise; - } - function clearTimeout(timeoutId: NodeJS.Timeout): void; - function setInterval(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timer; - // util.promisify no rest args compability - // tslint:disable-next-line void-return - function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timer; - namespace setInterval { - const __promisify__: typeof setIntervalPromise; - } - function clearInterval(intervalId: NodeJS.Timeout): void; - function setImmediate(callback: (...args: TArgs) => void, ...args: TArgs): NodeJS.Immediate; - // util.promisify no rest args compability - // tslint:disable-next-line void-return - function setImmediate(callback: (args: void) => void): NodeJS.Immediate; - namespace setImmediate { - const __promisify__: typeof setImmediatePromise; - } - function clearImmediate(immediateId: NodeJS.Immediate): void; - function queueMicrotask(callback: () => void): void; - } -} -declare module 'node:timers' { - export * from 'timers'; -} diff --git a/WechatBot/node_modules/@types/node/timers/promises.d.ts b/WechatBot/node_modules/@types/node/timers/promises.d.ts deleted file mode 100644 index fd778880e..000000000 --- a/WechatBot/node_modules/@types/node/timers/promises.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * The `timers/promises` API provides an alternative set of timer functions - * that return `Promise` objects. The API is accessible via`require('timers/promises')`. - * - * ```js - * import { - * setTimeout, - * setImmediate, - * setInterval, - * } from 'timers/promises'; - * ``` - * @since v15.0.0 - */ -declare module 'timers/promises' { - import { TimerOptions } from 'node:timers'; - /** - * ```js - * import { - * setTimeout, - * } from 'timers/promises'; - * - * const res = await setTimeout(100, 'result'); - * - * console.log(res); // Prints 'result' - * ``` - * @since v15.0.0 - * @param [delay=1] The number of milliseconds to wait before fulfilling the promise. - * @param value A value with which the promise is fulfilled. - */ - function setTimeout(delay?: number, value?: T, options?: TimerOptions): Promise; - /** - * ```js - * import { - * setImmediate, - * } from 'timers/promises'; - * - * const res = await setImmediate('result'); - * - * console.log(res); // Prints 'result' - * ``` - * @since v15.0.0 - * @param value A value with which the promise is fulfilled. - */ - function setImmediate(value?: T, options?: TimerOptions): Promise; - /** - * Returns an async iterator that generates values in an interval of `delay` ms. - * - * ```js - * import { - * setInterval, - * } from 'timers/promises'; - * - * const interval = 100; - * for await (const startTime of setInterval(interval, Date.now())) { - * const now = Date.now(); - * console.log(now); - * if ((now - startTime) > 1000) - * break; - * } - * console.log(Date.now()); - * ``` - * @since v15.9.0 - */ - function setInterval(delay?: number, value?: T, options?: TimerOptions): AsyncIterable; -} -declare module 'node:timers/promises' { - export * from 'timers/promises'; -} diff --git a/WechatBot/node_modules/@types/node/tls.d.ts b/WechatBot/node_modules/@types/node/tls.d.ts deleted file mode 100644 index 8d523b4eb..000000000 --- a/WechatBot/node_modules/@types/node/tls.d.ts +++ /dev/null @@ -1,1019 +0,0 @@ -/** - * The `tls` module provides an implementation of the Transport Layer Security - * (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL. - * The module can be accessed using: - * - * ```js - * const tls = require('tls'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/tls.js) - */ -declare module 'tls' { - import { X509Certificate } from 'node:crypto'; - import * as net from 'node:net'; - const CLIENT_RENEG_LIMIT: number; - const CLIENT_RENEG_WINDOW: number; - interface Certificate { - /** - * Country code. - */ - C: string; - /** - * Street. - */ - ST: string; - /** - * Locality. - */ - L: string; - /** - * Organization. - */ - O: string; - /** - * Organizational unit. - */ - OU: string; - /** - * Common name. - */ - CN: string; - } - interface PeerCertificate { - subject: Certificate; - issuer: Certificate; - subjectaltname: string; - infoAccess: NodeJS.Dict; - modulus: string; - exponent: string; - valid_from: string; - valid_to: string; - fingerprint: string; - fingerprint256: string; - ext_key_usage: string[]; - serialNumber: string; - raw: Buffer; - } - interface DetailedPeerCertificate extends PeerCertificate { - issuerCertificate: DetailedPeerCertificate; - } - interface CipherNameAndProtocol { - /** - * The cipher name. - */ - name: string; - /** - * SSL/TLS protocol version. - */ - version: string; - /** - * IETF name for the cipher suite. - */ - standardName: string; - } - interface EphemeralKeyInfo { - /** - * The supported types are 'DH' and 'ECDH'. - */ - type: string; - /** - * The name property is available only when type is 'ECDH'. - */ - name?: string | undefined; - /** - * The size of parameter of an ephemeral key exchange. - */ - size: number; - } - interface KeyObject { - /** - * Private keys in PEM format. - */ - pem: string | Buffer; - /** - * Optional passphrase. - */ - passphrase?: string | undefined; - } - interface PxfObject { - /** - * PFX or PKCS12 encoded private key and certificate chain. - */ - buf: string | Buffer; - /** - * Optional passphrase. - */ - passphrase?: string | undefined; - } - interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions { - /** - * If true the TLS socket will be instantiated in server-mode. - * Defaults to false. - */ - isServer?: boolean | undefined; - /** - * An optional net.Server instance. - */ - server?: net.Server | undefined; - /** - * An optional Buffer instance containing a TLS session. - */ - session?: Buffer | undefined; - /** - * If true, specifies that the OCSP status request extension will be - * added to the client hello and an 'OCSPResponse' event will be - * emitted on the socket before establishing a secure communication - */ - requestOCSP?: boolean | undefined; - } - /** - * Performs transparent encryption of written data and all required TLS - * negotiation. - * - * Instances of `tls.TLSSocket` implement the duplex `Stream` interface. - * - * Methods that return TLS connection metadata (e.g.{@link TLSSocket.getPeerCertificate} will only return data while the - * connection is open. - * @since v0.11.4 - */ - class TLSSocket extends net.Socket { - /** - * Construct a new tls.TLSSocket object from an existing TCP socket. - */ - constructor(socket: net.Socket, options?: TLSSocketOptions); - /** - * Returns `true` if the peer certificate was signed by one of the CAs specified - * when creating the `tls.TLSSocket` instance, otherwise `false`. - * @since v0.11.4 - */ - authorized: boolean; - /** - * Returns the reason why the peer's certificate was not been verified. This - * property is set only when `tlsSocket.authorized === false`. - * @since v0.11.4 - */ - authorizationError: Error; - /** - * Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances. - * @since v0.11.4 - */ - encrypted: boolean; - /** - * String containing the selected ALPN protocol. - * Before a handshake has completed, this value is always null. - * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false. - */ - alpnProtocol: string | false | null; - /** - * Returns an object representing the local certificate. The returned object has - * some properties corresponding to the fields of the certificate. - * - * See {@link TLSSocket.getPeerCertificate} for an example of the certificate - * structure. - * - * If there is no local certificate, an empty object will be returned. If the - * socket has been destroyed, `null` will be returned. - * @since v11.2.0 - */ - getCertificate(): PeerCertificate | object | null; - /** - * Returns an object containing information on the negotiated cipher suite. - * - * For example: - * - * ```json - * { - * "name": "AES128-SHA256", - * "standardName": "TLS_RSA_WITH_AES_128_CBC_SHA256", - * "version": "TLSv1.2" - * } - * ``` - * - * See[SSL\_CIPHER\_get\_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html)for more information. - * @since v0.11.4 - */ - getCipher(): CipherNameAndProtocol; - /** - * Returns an object representing the type, name, and size of parameter of - * an ephemeral key exchange in `perfect forward secrecy` on a client - * connection. It returns an empty object when the key exchange is not - * ephemeral. As this is only supported on a client socket; `null` is returned - * if called on a server socket. The supported types are `'DH'` and `'ECDH'`. The`name` property is available only when type is `'ECDH'`. - * - * For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`. - * @since v5.0.0 - */ - getEphemeralKeyInfo(): EphemeralKeyInfo | object | null; - /** - * As the `Finished` messages are message digests of the complete handshake - * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can - * be used for external authentication procedures when the authentication - * provided by SSL/TLS is not desired or is not enough. - * - * Corresponds to the `SSL_get_finished` routine in OpenSSL and may be used - * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). - * @since v9.9.0 - * @return The latest `Finished` message that has been sent to the socket as part of a SSL/TLS handshake, or `undefined` if no `Finished` message has been sent yet. - */ - getFinished(): Buffer | undefined; - /** - * Returns an object representing the peer's certificate. If the peer does not - * provide a certificate, an empty object will be returned. If the socket has been - * destroyed, `null` will be returned. - * - * If the full certificate chain was requested, each certificate will include an`issuerCertificate` property containing an object representing its issuer's - * certificate. - * @since v0.11.4 - * @param detailed Include the full certificate chain if `true`, otherwise include just the peer's certificate. - * @return A certificate object. - */ - getPeerCertificate(detailed: true): DetailedPeerCertificate; - getPeerCertificate(detailed?: false): PeerCertificate; - getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate; - /** - * As the `Finished` messages are message digests of the complete handshake - * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can - * be used for external authentication procedures when the authentication - * provided by SSL/TLS is not desired or is not enough. - * - * Corresponds to the `SSL_get_peer_finished` routine in OpenSSL and may be used - * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). - * @since v9.9.0 - * @return The latest `Finished` message that is expected or has actually been received from the socket as part of a SSL/TLS handshake, or `undefined` if there is no `Finished` message so - * far. - */ - getPeerFinished(): Buffer | undefined; - /** - * Returns a string containing the negotiated SSL/TLS protocol version of the - * current connection. The value `'unknown'` will be returned for connected - * sockets that have not completed the handshaking process. The value `null` will - * be returned for server sockets or disconnected client sockets. - * - * Protocol versions are: - * - * * `'SSLv3'` - * * `'TLSv1'` - * * `'TLSv1.1'` - * * `'TLSv1.2'` - * * `'TLSv1.3'` - * - * See the OpenSSL [`SSL_get_version`](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html) documentation for more information. - * @since v5.7.0 - */ - getProtocol(): string | null; - /** - * Returns the TLS session data or `undefined` if no session was - * negotiated. On the client, the data can be provided to the `session` option of {@link connect} to resume the connection. On the server, it may be useful - * for debugging. - * - * See `Session Resumption` for more information. - * - * Note: `getSession()` works only for TLSv1.2 and below. For TLSv1.3, applications - * must use the `'session'` event (it also works for TLSv1.2 and below). - * @since v0.11.4 - */ - getSession(): Buffer | undefined; - /** - * See[SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html)for more information. - * @since v12.11.0 - * @return List of signature algorithms shared between the server and the client in the order of decreasing preference. - */ - getSharedSigalgs(): string[]; - /** - * For a client, returns the TLS session ticket if one is available, or`undefined`. For a server, always returns `undefined`. - * - * It may be useful for debugging. - * - * See `Session Resumption` for more information. - * @since v0.11.4 - */ - getTLSTicket(): Buffer | undefined; - /** - * See `Session Resumption` for more information. - * @since v0.5.6 - * @return `true` if the session was reused, `false` otherwise. - */ - isSessionReused(): boolean; - /** - * The `tlsSocket.renegotiate()` method initiates a TLS renegotiation process. - * Upon completion, the `callback` function will be passed a single argument - * that is either an `Error` (if the request failed) or `null`. - * - * This method can be used to request a peer's certificate after the secure - * connection has been established. - * - * When running as the server, the socket will be destroyed with an error after`handshakeTimeout` timeout. - * - * For TLSv1.3, renegotiation cannot be initiated, it is not supported by the - * protocol. - * @since v0.11.8 - * @param callback If `renegotiate()` returned `true`, callback is attached once to the `'secure'` event. If `renegotiate()` returned `false`, `callback` will be called in the next tick with - * an error, unless the `tlsSocket` has been destroyed, in which case `callback` will not be called at all. - * @return `true` if renegotiation was initiated, `false` otherwise. - */ - renegotiate( - options: { - rejectUnauthorized?: boolean | undefined; - requestCert?: boolean | undefined; - }, - callback: (err: Error | null) => void - ): undefined | boolean; - /** - * The `tlsSocket.setMaxSendFragment()` method sets the maximum TLS fragment size. - * Returns `true` if setting the limit succeeded; `false` otherwise. - * - * Smaller fragment sizes decrease the buffering latency on the client: larger - * fragments are buffered by the TLS layer until the entire fragment is received - * and its integrity is verified; large fragments can span multiple roundtrips - * and their processing can be delayed due to packet loss or reordering. However, - * smaller fragments add extra TLS framing bytes and CPU overhead, which may - * decrease overall server throughput. - * @since v0.11.11 - * @param [size=16384] The maximum TLS fragment size. The maximum value is `16384`. - */ - setMaxSendFragment(size: number): boolean; - /** - * Disables TLS renegotiation for this `TLSSocket` instance. Once called, attempts - * to renegotiate will trigger an `'error'` event on the `TLSSocket`. - * @since v8.4.0 - */ - disableRenegotiation(): void; - /** - * When enabled, TLS packet trace information is written to `stderr`. This can be - * used to debug TLS connection problems. - * - * Note: The format of the output is identical to the output of `openssl s_client -trace` or `openssl s_server -trace`. While it is produced by OpenSSL's`SSL_trace()` function, the format is - * undocumented, can change without notice, - * and should not be relied on. - * @since v12.2.0 - */ - enableTrace(): void; - /** - * Returns the peer certificate as an `X509Certificate` object. - * - * If there is no peer certificate, or the socket has been destroyed,`undefined` will be returned. - * @since v15.9.0 - */ - getPeerX509Certificate(): X509Certificate | undefined; - /** - * Returns the local certificate as an `X509Certificate` object. - * - * If there is no local certificate, or the socket has been destroyed,`undefined` will be returned. - * @since v15.9.0 - */ - getX509Certificate(): X509Certificate | undefined; - /** - * Keying material is used for validations to prevent different kind of attacks in - * network protocols, for example in the specifications of IEEE 802.1X. - * - * Example - * - * ```js - * const keyingMaterial = tlsSocket.exportKeyingMaterial( - * 128, - * 'client finished'); - * - * - * Example return value of keyingMaterial: - * - * - * ``` - * - * See the OpenSSL [`SSL_export_keying_material`](https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html) documentation for more - * information. - * @since v13.10.0, v12.17.0 - * @param length number of bytes to retrieve from keying material - * @param label an application specific label, typically this will be a value from the [IANA Exporter Label - * Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels). - * @param context Optionally provide a context. - * @return requested bytes of the keying material - */ - exportKeyingMaterial(length: number, label: string, context: Buffer): Buffer; - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'OCSPResponse', listener: (response: Buffer) => void): this; - addListener(event: 'secureConnect', listener: () => void): this; - addListener(event: 'session', listener: (session: Buffer) => void): this; - addListener(event: 'keylog', listener: (line: Buffer) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'OCSPResponse', response: Buffer): boolean; - emit(event: 'secureConnect'): boolean; - emit(event: 'session', session: Buffer): boolean; - emit(event: 'keylog', line: Buffer): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'OCSPResponse', listener: (response: Buffer) => void): this; - on(event: 'secureConnect', listener: () => void): this; - on(event: 'session', listener: (session: Buffer) => void): this; - on(event: 'keylog', listener: (line: Buffer) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'OCSPResponse', listener: (response: Buffer) => void): this; - once(event: 'secureConnect', listener: () => void): this; - once(event: 'session', listener: (session: Buffer) => void): this; - once(event: 'keylog', listener: (line: Buffer) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'OCSPResponse', listener: (response: Buffer) => void): this; - prependListener(event: 'secureConnect', listener: () => void): this; - prependListener(event: 'session', listener: (session: Buffer) => void): this; - prependListener(event: 'keylog', listener: (line: Buffer) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'OCSPResponse', listener: (response: Buffer) => void): this; - prependOnceListener(event: 'secureConnect', listener: () => void): this; - prependOnceListener(event: 'session', listener: (session: Buffer) => void): this; - prependOnceListener(event: 'keylog', listener: (line: Buffer) => void): this; - } - interface CommonConnectionOptions { - /** - * An optional TLS context object from tls.createSecureContext() - */ - secureContext?: SecureContext | undefined; - /** - * When enabled, TLS packet trace information is written to `stderr`. This can be - * used to debug TLS connection problems. - * @default false - */ - enableTrace?: boolean | undefined; - /** - * If true the server will request a certificate from clients that - * connect and attempt to verify that certificate. Defaults to - * false. - */ - requestCert?: boolean | undefined; - /** - * An array of strings or a Buffer naming possible ALPN protocols. - * (Protocols should be ordered by their priority.) - */ - ALPNProtocols?: string[] | Uint8Array[] | Uint8Array | undefined; - /** - * SNICallback(servername, cb) A function that will be - * called if the client supports SNI TLS extension. Two arguments - * will be passed when called: servername and cb. SNICallback should - * invoke cb(null, ctx), where ctx is a SecureContext instance. - * (tls.createSecureContext(...) can be used to get a proper - * SecureContext.) If SNICallback wasn't provided the default callback - * with high-level API will be used (see below). - */ - SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined; - /** - * If true the server will reject any connection which is not - * authorized with the list of supplied CAs. This option only has an - * effect if requestCert is true. - * @default true - */ - rejectUnauthorized?: boolean | undefined; - } - interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts { - /** - * Abort the connection if the SSL/TLS handshake does not finish in the - * specified number of milliseconds. A 'tlsClientError' is emitted on - * the tls.Server object whenever a handshake times out. Default: - * 120000 (120 seconds). - */ - handshakeTimeout?: number | undefined; - /** - * The number of seconds after which a TLS session created by the - * server will no longer be resumable. See Session Resumption for more - * information. Default: 300. - */ - sessionTimeout?: number | undefined; - /** - * 48-bytes of cryptographically strong pseudo-random data. - */ - ticketKeys?: Buffer | undefined; - /** - * - * @param socket - * @param identity identity parameter sent from the client. - * @return pre-shared key that must either be - * a buffer or `null` to stop the negotiation process. Returned PSK must be - * compatible with the selected cipher's digest. - * - * When negotiating TLS-PSK (pre-shared keys), this function is called - * with the identity provided by the client. - * If the return value is `null` the negotiation process will stop and an - * "unknown_psk_identity" alert message will be sent to the other party. - * If the server wishes to hide the fact that the PSK identity was not known, - * the callback must provide some random data as `psk` to make the connection - * fail with "decrypt_error" before negotiation is finished. - * PSK ciphers are disabled by default, and using TLS-PSK thus - * requires explicitly specifying a cipher suite with the `ciphers` option. - * More information can be found in the RFC 4279. - */ - pskCallback?(socket: TLSSocket, identity: string): DataView | NodeJS.TypedArray | null; - /** - * hint to send to a client to help - * with selecting the identity during TLS-PSK negotiation. Will be ignored - * in TLS 1.3. Upon failing to set pskIdentityHint `tlsClientError` will be - * emitted with `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` code. - */ - pskIdentityHint?: string | undefined; - } - interface PSKCallbackNegotation { - psk: DataView | NodeJS.TypedArray; - identity: string; - } - interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions { - host?: string | undefined; - port?: number | undefined; - path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored. - socket?: net.Socket | undefined; // Establish secure connection on a given socket rather than creating a new socket - checkServerIdentity?: typeof checkServerIdentity | undefined; - servername?: string | undefined; // SNI TLS Extension - session?: Buffer | undefined; - minDHSize?: number | undefined; - lookup?: net.LookupFunction | undefined; - timeout?: number | undefined; - /** - * When negotiating TLS-PSK (pre-shared keys), this function is called - * with optional identity `hint` provided by the server or `null` - * in case of TLS 1.3 where `hint` was removed. - * It will be necessary to provide a custom `tls.checkServerIdentity()` - * for the connection as the default one will try to check hostname/IP - * of the server against the certificate but that's not applicable for PSK - * because there won't be a certificate present. - * More information can be found in the RFC 4279. - * - * @param hint message sent from the server to help client - * decide which identity to use during negotiation. - * Always `null` if TLS 1.3 is used. - * @returns Return `null` to stop the negotiation process. `psk` must be - * compatible with the selected cipher's digest. - * `identity` must use UTF-8 encoding. - */ - pskCallback?(hint: string | null): PSKCallbackNegotation | null; - } - /** - * Accepts encrypted connections using TLS or SSL. - * @since v0.3.2 - */ - class Server extends net.Server { - constructor(secureConnectionListener?: (socket: TLSSocket) => void); - constructor(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void); - /** - * The `server.addContext()` method adds a secure context that will be used if - * the client request's SNI name matches the supplied `hostname` (or wildcard). - * - * When there are multiple matching contexts, the most recently added one is - * used. - * @since v0.5.3 - * @param hostname A SNI host name or wildcard (e.g. `'*'`) - * @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc). - */ - addContext(hostname: string, context: SecureContextOptions): void; - /** - * Returns the session ticket keys. - * - * See `Session Resumption` for more information. - * @since v3.0.0 - * @return A 48-byte buffer containing the session ticket keys. - */ - getTicketKeys(): Buffer; - /** - * The `server.setSecureContext()` method replaces the secure context of an - * existing server. Existing connections to the server are not interrupted. - * @since v11.0.0 - * @param options An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc). - */ - setSecureContext(options: SecureContextOptions): void; - /** - * Sets the session ticket keys. - * - * Changes to the ticket keys are effective only for future server connections. - * Existing or currently pending server connections will use the previous keys. - * - * See `Session Resumption` for more information. - * @since v3.0.0 - * @param keys A 48-byte buffer containing the session ticket keys. - */ - setTicketKeys(keys: Buffer): void; - /** - * events.EventEmitter - * 1. tlsClientError - * 2. newSession - * 3. OCSPRequest - * 4. resumeSession - * 5. secureConnection - * 6. keylog - */ - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this; - addListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; - addListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; - addListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; - addListener(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this; - addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'tlsClientError', err: Error, tlsSocket: TLSSocket): boolean; - emit(event: 'newSession', sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): boolean; - emit(event: 'OCSPRequest', certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean; - emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean; - emit(event: 'secureConnection', tlsSocket: TLSSocket): boolean; - emit(event: 'keylog', line: Buffer, tlsSocket: TLSSocket): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this; - on(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; - on(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; - on(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; - on(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this; - on(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this; - once(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; - once(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; - once(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; - once(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this; - once(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this; - prependListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; - prependListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; - prependListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; - prependListener(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this; - prependListener(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this; - prependOnceListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; - prependOnceListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; - prependOnceListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; - prependOnceListener(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this; - prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; - } - /** - * @deprecated since v0.11.3 Use `tls.TLSSocket` instead. - */ - interface SecurePair { - encrypted: TLSSocket; - cleartext: TLSSocket; - } - type SecureVersion = 'TLSv1.3' | 'TLSv1.2' | 'TLSv1.1' | 'TLSv1'; - interface SecureContextOptions { - /** - * Optionally override the trusted CA certificates. Default is to trust - * the well-known CAs curated by Mozilla. Mozilla's CAs are completely - * replaced when CAs are explicitly specified using this option. - */ - ca?: string | Buffer | Array | undefined; - /** - * Cert chains in PEM format. One cert chain should be provided per - * private key. Each cert chain should consist of the PEM formatted - * certificate for a provided private key, followed by the PEM - * formatted intermediate certificates (if any), in order, and not - * including the root CA (the root CA must be pre-known to the peer, - * see ca). When providing multiple cert chains, they do not have to - * be in the same order as their private keys in key. If the - * intermediate certificates are not provided, the peer will not be - * able to validate the certificate, and the handshake will fail. - */ - cert?: string | Buffer | Array | undefined; - /** - * Colon-separated list of supported signature algorithms. The list - * can contain digest algorithms (SHA256, MD5 etc.), public key - * algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g - * 'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512). - */ - sigalgs?: string | undefined; - /** - * Cipher suite specification, replacing the default. For more - * information, see modifying the default cipher suite. Permitted - * ciphers can be obtained via tls.getCiphers(). Cipher names must be - * uppercased in order for OpenSSL to accept them. - */ - ciphers?: string | undefined; - /** - * Name of an OpenSSL engine which can provide the client certificate. - */ - clientCertEngine?: string | undefined; - /** - * PEM formatted CRLs (Certificate Revocation Lists). - */ - crl?: string | Buffer | Array | undefined; - /** - * Diffie Hellman parameters, required for Perfect Forward Secrecy. Use - * openssl dhparam to create the parameters. The key length must be - * greater than or equal to 1024 bits or else an error will be thrown. - * Although 1024 bits is permissible, use 2048 bits or larger for - * stronger security. If omitted or invalid, the parameters are - * silently discarded and DHE ciphers will not be available. - */ - dhparam?: string | Buffer | undefined; - /** - * A string describing a named curve or a colon separated list of curve - * NIDs or names, for example P-521:P-384:P-256, to use for ECDH key - * agreement. Set to auto to select the curve automatically. Use - * crypto.getCurves() to obtain a list of available curve names. On - * recent releases, openssl ecparam -list_curves will also display the - * name and description of each available elliptic curve. Default: - * tls.DEFAULT_ECDH_CURVE. - */ - ecdhCurve?: string | undefined; - /** - * Attempt to use the server's cipher suite preferences instead of the - * client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be - * set in secureOptions - */ - honorCipherOrder?: boolean | undefined; - /** - * Private keys in PEM format. PEM allows the option of private keys - * being encrypted. Encrypted keys will be decrypted with - * options.passphrase. Multiple keys using different algorithms can be - * provided either as an array of unencrypted key strings or buffers, - * or an array of objects in the form {pem: [, - * passphrase: ]}. The object form can only occur in an array. - * object.passphrase is optional. Encrypted keys will be decrypted with - * object.passphrase if provided, or options.passphrase if it is not. - */ - key?: string | Buffer | Array | undefined; - /** - * Name of an OpenSSL engine to get private key from. Should be used - * together with privateKeyIdentifier. - */ - privateKeyEngine?: string | undefined; - /** - * Identifier of a private key managed by an OpenSSL engine. Should be - * used together with privateKeyEngine. Should not be set together with - * key, because both options define a private key in different ways. - */ - privateKeyIdentifier?: string | undefined; - /** - * Optionally set the maximum TLS version to allow. One - * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the - * `secureProtocol` option, use one or the other. - * **Default:** `'TLSv1.3'`, unless changed using CLI options. Using - * `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to - * `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used. - */ - maxVersion?: SecureVersion | undefined; - /** - * Optionally set the minimum TLS version to allow. One - * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the - * `secureProtocol` option, use one or the other. It is not recommended to use - * less than TLSv1.2, but it may be required for interoperability. - * **Default:** `'TLSv1.2'`, unless changed using CLI options. Using - * `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to - * `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to - * 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used. - */ - minVersion?: SecureVersion | undefined; - /** - * Shared passphrase used for a single private key and/or a PFX. - */ - passphrase?: string | undefined; - /** - * PFX or PKCS12 encoded private key and certificate chain. pfx is an - * alternative to providing key and cert individually. PFX is usually - * encrypted, if it is, passphrase will be used to decrypt it. Multiple - * PFX can be provided either as an array of unencrypted PFX buffers, - * or an array of objects in the form {buf: [, - * passphrase: ]}. The object form can only occur in an array. - * object.passphrase is optional. Encrypted PFX will be decrypted with - * object.passphrase if provided, or options.passphrase if it is not. - */ - pfx?: string | Buffer | Array | undefined; - /** - * Optionally affect the OpenSSL protocol behavior, which is not - * usually necessary. This should be used carefully if at all! Value is - * a numeric bitmask of the SSL_OP_* options from OpenSSL Options - */ - secureOptions?: number | undefined; // Value is a numeric bitmask of the `SSL_OP_*` options - /** - * Legacy mechanism to select the TLS protocol version to use, it does - * not support independent control of the minimum and maximum version, - * and does not support limiting the protocol to TLSv1.3. Use - * minVersion and maxVersion instead. The possible values are listed as - * SSL_METHODS, use the function names as strings. For example, use - * 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow - * any TLS protocol version up to TLSv1.3. It is not recommended to use - * TLS versions less than 1.2, but it may be required for - * interoperability. Default: none, see minVersion. - */ - secureProtocol?: string | undefined; - /** - * Opaque identifier used by servers to ensure session state is not - * shared between applications. Unused by clients. - */ - sessionIdContext?: string | undefined; - /** - * 48-bytes of cryptographically strong pseudo-random data. - * See Session Resumption for more information. - */ - ticketKeys?: Buffer | undefined; - /** - * The number of seconds after which a TLS session created by the - * server will no longer be resumable. See Session Resumption for more - * information. Default: 300. - */ - sessionTimeout?: number | undefined; - } - interface SecureContext { - context: any; - } - /** - * Verifies the certificate `cert` is issued to `hostname`. - * - * Returns [<Error>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on - * failure. On success, returns [<undefined>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type). - * - * This function can be overwritten by providing alternative function as part of - * the `options.checkServerIdentity` option passed to `tls.connect()`. The - * overwriting function can call `tls.checkServerIdentity()` of course, to augment - * the checks done with additional verification. - * - * This function is only called if the certificate passed all other checks, such as - * being issued by trusted CA (`options.ca`). - * @since v0.8.4 - * @param hostname The host name or IP address to verify the certificate against. - * @param cert A `certificate object` representing the peer's certificate. - */ - function checkServerIdentity(hostname: string, cert: PeerCertificate): Error | undefined; - /** - * Creates a new {@link Server}. The `secureConnectionListener`, if provided, is - * automatically set as a listener for the `'secureConnection'` event. - * - * The `ticketKeys` options is automatically shared between `cluster` module - * workers. - * - * The following illustrates a simple echo server: - * - * ```js - * const tls = require('tls'); - * const fs = require('fs'); - * - * const options = { - * key: fs.readFileSync('server-key.pem'), - * cert: fs.readFileSync('server-cert.pem'), - * - * // This is necessary only if using client certificate authentication. - * requestCert: true, - * - * // This is necessary only if the client uses a self-signed certificate. - * ca: [ fs.readFileSync('client-cert.pem') ] - * }; - * - * const server = tls.createServer(options, (socket) => { - * console.log('server connected', - * socket.authorized ? 'authorized' : 'unauthorized'); - * socket.write('welcome!\n'); - * socket.setEncoding('utf8'); - * socket.pipe(socket); - * }); - * server.listen(8000, () => { - * console.log('server bound'); - * }); - * ``` - * - * The server can be tested by connecting to it using the example client from {@link connect}. - * @since v0.3.2 - */ - function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server; - function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server; - /** - * The `callback` function, if specified, will be added as a listener for the `'secureConnect'` event. - * - * `tls.connect()` returns a {@link TLSSocket} object. - * - * Unlike the `https` API, `tls.connect()` does not enable the - * SNI (Server Name Indication) extension by default, which may cause some - * servers to return an incorrect certificate or reject the connection - * altogether. To enable SNI, set the `servername` option in addition - * to `host`. - * - * The following illustrates a client for the echo server example from {@link createServer}: - * - * ```js - * // Assumes an echo server that is listening on port 8000. - * const tls = require('tls'); - * const fs = require('fs'); - * - * const options = { - * // Necessary only if the server requires client certificate authentication. - * key: fs.readFileSync('client-key.pem'), - * cert: fs.readFileSync('client-cert.pem'), - * - * // Necessary only if the server uses a self-signed certificate. - * ca: [ fs.readFileSync('server-cert.pem') ], - * - * // Necessary only if the server's cert isn't for "localhost". - * checkServerIdentity: () => { return null; }, - * }; - * - * const socket = tls.connect(8000, options, () => { - * console.log('client connected', - * socket.authorized ? 'authorized' : 'unauthorized'); - * process.stdin.pipe(socket); - * process.stdin.resume(); - * }); - * socket.setEncoding('utf8'); - * socket.on('data', (data) => { - * console.log(data); - * }); - * socket.on('end', () => { - * console.log('server ends connection'); - * }); - * ``` - * @since v0.11.3 - */ - function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; - function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; - function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; - /** - * Creates a new secure pair object with two streams, one of which reads and writes - * the encrypted data and the other of which reads and writes the cleartext data. - * Generally, the encrypted stream is piped to/from an incoming encrypted data - * stream and the cleartext one is used as a replacement for the initial encrypted - * stream. - * - * `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and`encrypted` stream properties. - * - * Using `cleartext` has the same API as {@link TLSSocket}. - * - * The `tls.createSecurePair()` method is now deprecated in favor of`tls.TLSSocket()`. For example, the code: - * - * ```js - * pair = tls.createSecurePair(// ... ); - * pair.encrypted.pipe(socket); - * socket.pipe(pair.encrypted); - * ``` - * - * can be replaced by: - * - * ```js - * secureSocket = tls.TLSSocket(socket, options); - * ``` - * - * where `secureSocket` has the same API as `pair.cleartext`. - * @since v0.3.2 - * @deprecated Since v0.11.3 - Use {@link TLSSocket} instead. - * @param context A secure context object as returned by `tls.createSecureContext()` - * @param isServer `true` to specify that this TLS connection should be opened as a server. - * @param requestCert `true` to specify whether a server should request a certificate from a connecting client. Only applies when `isServer` is `true`. - * @param rejectUnauthorized If not `false` a server automatically reject clients with invalid certificates. Only applies when `isServer` is `true`. - */ - function createSecurePair(context?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair; - /** - * {@link createServer} sets the default value of the `honorCipherOrder` option - * to `true`, other APIs that create secure contexts leave it unset. - * - * {@link createServer} uses a 128 bit truncated SHA1 hash value generated - * from `process.argv` as the default value of the `sessionIdContext` option, other - * APIs that create secure contexts have no default value. - * - * The `tls.createSecureContext()` method creates a `SecureContext` object. It is - * usable as an argument to several `tls` APIs, such as {@link createServer} and `server.addContext()`, but has no public methods. - * - * A key is _required_ for ciphers that use certificates. Either `key` or`pfx` can be used to provide it. - * - * If the `ca` option is not given, then Node.js will default to using[Mozilla's publicly trusted list of - * CAs](https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt). - * @since v0.11.13 - */ - function createSecureContext(options?: SecureContextOptions): SecureContext; - /** - * Returns an array with the names of the supported TLS ciphers. The names are - * lower-case for historical reasons, but must be uppercased to be used in - * the `ciphers` option of {@link createSecureContext}. - * - * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for - * TLSv1.2 and below. - * - * ```js - * console.log(tls.getCiphers()); // ['aes128-gcm-sha256', 'aes128-sha', ...] - * ``` - * @since v0.10.2 - */ - function getCiphers(): string[]; - /** - * The default curve name to use for ECDH key agreement in a tls server. - * The default value is 'auto'. See tls.createSecureContext() for further - * information. - */ - let DEFAULT_ECDH_CURVE: string; - /** - * The default value of the maxVersion option of - * tls.createSecureContext(). It can be assigned any of the supported TLS - * protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: - * 'TLSv1.3', unless changed using CLI options. Using --tls-max-v1.2 sets - * the default to 'TLSv1.2'. Using --tls-max-v1.3 sets the default to - * 'TLSv1.3'. If multiple of the options are provided, the highest maximum - * is used. - */ - let DEFAULT_MAX_VERSION: SecureVersion; - /** - * The default value of the minVersion option of tls.createSecureContext(). - * It can be assigned any of the supported TLS protocol versions, - * 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: 'TLSv1.2', unless - * changed using CLI options. Using --tls-min-v1.0 sets the default to - * 'TLSv1'. Using --tls-min-v1.1 sets the default to 'TLSv1.1'. Using - * --tls-min-v1.3 sets the default to 'TLSv1.3'. If multiple of the options - * are provided, the lowest minimum is used. - */ - let DEFAULT_MIN_VERSION: SecureVersion; - /** - * An immutable array of strings representing the root certificates (in PEM - * format) used for verifying peer certificates. This is the default value - * of the ca option to tls.createSecureContext(). - */ - const rootCertificates: ReadonlyArray; -} -declare module 'node:tls' { - export * from 'tls'; -} diff --git a/WechatBot/node_modules/@types/node/trace_events.d.ts b/WechatBot/node_modules/@types/node/trace_events.d.ts deleted file mode 100644 index 67f3298a2..000000000 --- a/WechatBot/node_modules/@types/node/trace_events.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -/** - * The `trace_events` module provides a mechanism to centralize tracing information - * generated by V8, Node.js core, and userspace code. - * - * Tracing can be enabled with the `--trace-event-categories` command-line flag - * or by using the `trace_events` module. The `--trace-event-categories` flag - * accepts a list of comma-separated category names. - * - * The available categories are: - * - * * `node`: An empty placeholder. - * * `node.async_hooks`: Enables capture of detailed `async_hooks` trace data. - * The `async_hooks` events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property. - * * `node.bootstrap`: Enables capture of Node.js bootstrap milestones. - * * `node.console`: Enables capture of `console.time()` and `console.count()`output. - * * `node.dns.native`: Enables capture of trace data for DNS queries. - * * `node.environment`: Enables capture of Node.js Environment milestones. - * * `node.fs.sync`: Enables capture of trace data for file system sync methods. - * * `node.perf`: Enables capture of `Performance API` measurements. - * * `node.perf.usertiming`: Enables capture of only Performance API User Timing - * measures and marks. - * * `node.perf.timerify`: Enables capture of only Performance API timerify - * measurements. - * * `node.promises.rejections`: Enables capture of trace data tracking the number - * of unhandled Promise rejections and handled-after-rejections. - * * `node.vm.script`: Enables capture of trace data for the `vm` module's`runInNewContext()`, `runInContext()`, and `runInThisContext()` methods. - * * `v8`: The `V8` events are GC, compiling, and execution related. - * - * By default the `node`, `node.async_hooks`, and `v8` categories are enabled. - * - * ```bash - * node --trace-event-categories v8,node,node.async_hooks server.js - * ``` - * - * Prior versions of Node.js required the use of the `--trace-events-enabled`flag to enable trace events. This requirement has been removed. However, the`--trace-events-enabled` flag _may_ still be - * used and will enable the`node`, `node.async_hooks`, and `v8` trace event categories by default. - * - * ```bash - * node --trace-events-enabled - * - * # is equivalent to - * - * node --trace-event-categories v8,node,node.async_hooks - * ``` - * - * Alternatively, trace events may be enabled using the `trace_events` module: - * - * ```js - * const trace_events = require('trace_events'); - * const tracing = trace_events.createTracing({ categories: ['node.perf'] }); - * tracing.enable(); // Enable trace event capture for the 'node.perf' category - * - * // do work - * - * tracing.disable(); // Disable trace event capture for the 'node.perf' category - * ``` - * - * Running Node.js with tracing enabled will produce log files that can be opened - * in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool)tab of Chrome. - * - * The logging file is by default called `node_trace.${rotation}.log`, where`${rotation}` is an incrementing log-rotation id. The filepath pattern can - * be specified with `--trace-event-file-pattern` that accepts a template - * string that supports `${rotation}` and `${pid}`: - * - * ```bash - * node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js - * ``` - * - * The tracing system uses the same time source - * as the one used by `process.hrtime()`. - * However the trace-event timestamps are expressed in microseconds, - * unlike `process.hrtime()` which returns nanoseconds. - * - * The features from this module are not available in `Worker` threads. - * @experimental - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/trace_events.js) - */ -declare module 'trace_events' { - /** - * The `Tracing` object is used to enable or disable tracing for sets of - * categories. Instances are created using the - * `trace_events.createTracing()` method. - * - * When created, the `Tracing` object is disabled. Calling the - * `tracing.enable()` method adds the categories to the set of enabled trace - * event categories. Calling `tracing.disable()` will remove the categories - * from the set of enabled trace event categories. - */ - interface Tracing { - /** - * A comma-separated list of the trace event categories covered by this - * `Tracing` object. - */ - readonly categories: string; - /** - * Disables this `Tracing` object. - * - * Only trace event categories _not_ covered by other enabled `Tracing` - * objects and _not_ specified by the `--trace-event-categories` flag - * will be disabled. - */ - disable(): void; - /** - * Enables this `Tracing` object for the set of categories covered by - * the `Tracing` object. - */ - enable(): void; - /** - * `true` only if the `Tracing` object has been enabled. - */ - readonly enabled: boolean; - } - interface CreateTracingOptions { - /** - * An array of trace category names. Values included in the array are - * coerced to a string when possible. An error will be thrown if the - * value cannot be coerced. - */ - categories: string[]; - } - /** - * Creates and returns a `Tracing` object for the given set of `categories`. - * - * ```js - * const trace_events = require('trace_events'); - * const categories = ['node.perf', 'node.async_hooks']; - * const tracing = trace_events.createTracing({ categories }); - * tracing.enable(); - * // do stuff - * tracing.disable(); - * ``` - * @since v10.0.0 - * @return . - */ - function createTracing(options: CreateTracingOptions): Tracing; - /** - * Returns a comma-separated list of all currently-enabled trace event - * categories. The current set of enabled trace event categories is determined - * by the _union_ of all currently-enabled `Tracing` objects and any categories - * enabled using the `--trace-event-categories` flag. - * - * Given the file `test.js` below, the command`node --trace-event-categories node.perf test.js` will print`'node.async_hooks,node.perf'` to the console. - * - * ```js - * const trace_events = require('trace_events'); - * const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] }); - * const t2 = trace_events.createTracing({ categories: ['node.perf'] }); - * const t3 = trace_events.createTracing({ categories: ['v8'] }); - * - * t1.enable(); - * t2.enable(); - * - * console.log(trace_events.getEnabledCategories()); - * ``` - * @since v10.0.0 - */ - function getEnabledCategories(): string | undefined; -} -declare module 'node:trace_events' { - export * from 'trace_events'; -} diff --git a/WechatBot/node_modules/@types/node/tty.d.ts b/WechatBot/node_modules/@types/node/tty.d.ts deleted file mode 100644 index e8cb23620..000000000 --- a/WechatBot/node_modules/@types/node/tty.d.ts +++ /dev/null @@ -1,206 +0,0 @@ -/** - * The `tty` module provides the `tty.ReadStream` and `tty.WriteStream` classes. - * In most cases, it will not be necessary or possible to use this module directly. - * However, it can be accessed using: - * - * ```js - * const tty = require('tty'); - * ``` - * - * When Node.js detects that it is being run with a text terminal ("TTY") - * attached, `process.stdin` will, by default, be initialized as an instance of`tty.ReadStream` and both `process.stdout` and `process.stderr` will, by - * default, be instances of `tty.WriteStream`. The preferred method of determining - * whether Node.js is being run within a TTY context is to check that the value of - * the `process.stdout.isTTY` property is `true`: - * - * ```console - * $ node -p -e "Boolean(process.stdout.isTTY)" - * true - * $ node -p -e "Boolean(process.stdout.isTTY)" | cat - * false - * ``` - * - * In most cases, there should be little to no reason for an application to - * manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes. - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/tty.js) - */ -declare module 'tty' { - import * as net from 'node:net'; - /** - * The `tty.isatty()` method returns `true` if the given `fd` is associated with - * a TTY and `false` if it is not, including whenever `fd` is not a non-negative - * integer. - * @since v0.5.8 - * @param fd A numeric file descriptor - */ - function isatty(fd: number): boolean; - /** - * Represents the readable side of a TTY. In normal circumstances `process.stdin` will be the only `tty.ReadStream` instance in a Node.js - * process and there should be no reason to create additional instances. - * @since v0.5.8 - */ - class ReadStream extends net.Socket { - constructor(fd: number, options?: net.SocketConstructorOpts); - /** - * A `boolean` that is `true` if the TTY is currently configured to operate as a - * raw device. Defaults to `false`. - * @since v0.7.7 - */ - isRaw: boolean; - /** - * Allows configuration of `tty.ReadStream` so that it operates as a raw device. - * - * When in raw mode, input is always available character-by-character, not - * including modifiers. Additionally, all special processing of characters by the - * terminal is disabled, including echoing input characters.Ctrl+C will no longer cause a `SIGINT` when in this mode. - * @since v0.7.7 - * @param mode If `true`, configures the `tty.ReadStream` to operate as a raw device. If `false`, configures the `tty.ReadStream` to operate in its default mode. The `readStream.isRaw` - * property will be set to the resulting mode. - * @return The read stream instance. - */ - setRawMode(mode: boolean): this; - /** - * A `boolean` that is always `true` for `tty.ReadStream` instances. - * @since v0.5.8 - */ - isTTY: boolean; - } - /** - * -1 - to the left from cursor - * 0 - the entire line - * 1 - to the right from cursor - */ - type Direction = -1 | 0 | 1; - /** - * Represents the writable side of a TTY. In normal circumstances,`process.stdout` and `process.stderr` will be the only`tty.WriteStream` instances created for a Node.js process and there - * should be no reason to create additional instances. - * @since v0.5.8 - */ - class WriteStream extends net.Socket { - constructor(fd: number); - addListener(event: string, listener: (...args: any[]) => void): this; - addListener(event: 'resize', listener: () => void): this; - emit(event: string | symbol, ...args: any[]): boolean; - emit(event: 'resize'): boolean; - on(event: string, listener: (...args: any[]) => void): this; - on(event: 'resize', listener: () => void): this; - once(event: string, listener: (...args: any[]) => void): this; - once(event: 'resize', listener: () => void): this; - prependListener(event: string, listener: (...args: any[]) => void): this; - prependListener(event: 'resize', listener: () => void): this; - prependOnceListener(event: string, listener: (...args: any[]) => void): this; - prependOnceListener(event: 'resize', listener: () => void): this; - /** - * `writeStream.clearLine()` clears the current line of this `WriteStream` in a - * direction identified by `dir`. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - clearLine(dir: Direction, callback?: () => void): boolean; - /** - * `writeStream.clearScreenDown()` clears this `WriteStream` from the current - * cursor down. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - clearScreenDown(callback?: () => void): boolean; - /** - * `writeStream.cursorTo()` moves this `WriteStream`'s cursor to the specified - * position. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - cursorTo(x: number, y?: number, callback?: () => void): boolean; - cursorTo(x: number, callback: () => void): boolean; - /** - * `writeStream.moveCursor()` moves this `WriteStream`'s cursor _relative_ to its - * current position. - * @since v0.7.7 - * @param callback Invoked once the operation completes. - * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. - */ - moveCursor(dx: number, dy: number, callback?: () => void): boolean; - /** - * Returns: - * - * * `1` for 2, - * * `4` for 16, - * * `8` for 256, - * * `24` for 16,777,216 - * - * colors supported. - * - * Use this to determine what colors the terminal supports. Due to the nature of - * colors in terminals it is possible to either have false positives or false - * negatives. It depends on process information and the environment variables that - * may lie about what terminal is used. - * It is possible to pass in an `env` object to simulate the usage of a specific - * terminal. This can be useful to check how specific environment settings behave. - * - * To enforce a specific color support, use one of the below environment settings. - * - * * 2 colors: `FORCE_COLOR = 0` (Disables colors) - * * 16 colors: `FORCE_COLOR = 1` - * * 256 colors: `FORCE_COLOR = 2` - * * 16,777,216 colors: `FORCE_COLOR = 3` - * - * Disabling color support is also possible by using the `NO_COLOR` and`NODE_DISABLE_COLORS` environment variables. - * @since v9.9.0 - * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. - */ - getColorDepth(env?: object): number; - /** - * Returns `true` if the `writeStream` supports at least as many colors as provided - * in `count`. Minimum support is 2 (black and white). - * - * This has the same false positives and negatives as described in `writeStream.getColorDepth()`. - * - * ```js - * process.stdout.hasColors(); - * // Returns true or false depending on if `stdout` supports at least 16 colors. - * process.stdout.hasColors(256); - * // Returns true or false depending on if `stdout` supports at least 256 colors. - * process.stdout.hasColors({ TMUX: '1' }); - * // Returns true. - * process.stdout.hasColors(2 ** 24, { TMUX: '1' }); - * // Returns false (the environment setting pretends to support 2 ** 8 colors). - * ``` - * @since v11.13.0, v10.16.0 - * @param [count=16] The number of colors that are requested (minimum 2). - * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. - */ - hasColors(count?: number): boolean; - hasColors(env?: object): boolean; - hasColors(count: number, env?: object): boolean; - /** - * `writeStream.getWindowSize()` returns the size of the TTY - * corresponding to this `WriteStream`. The array is of the type`[numColumns, numRows]` where `numColumns` and `numRows` represent the number - * of columns and rows in the corresponding TTY. - * @since v0.7.7 - */ - getWindowSize(): [number, number]; - /** - * A `number` specifying the number of columns the TTY currently has. This property - * is updated whenever the `'resize'` event is emitted. - * @since v0.7.7 - */ - columns: number; - /** - * A `number` specifying the number of rows the TTY currently has. This property - * is updated whenever the `'resize'` event is emitted. - * @since v0.7.7 - */ - rows: number; - /** - * A `boolean` that is always `true`. - * @since v0.5.8 - */ - isTTY: boolean; - } -} -declare module 'node:tty' { - export * from 'tty'; -} diff --git a/WechatBot/node_modules/@types/node/url.d.ts b/WechatBot/node_modules/@types/node/url.d.ts deleted file mode 100644 index fe07ea4b9..000000000 --- a/WechatBot/node_modules/@types/node/url.d.ts +++ /dev/null @@ -1,798 +0,0 @@ -/** - * The `url` module provides utilities for URL resolution and parsing. It can be - * accessed using: - * - * ```js - * import url from 'url'; - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/url.js) - */ -declare module 'url' { - import { Blob } from 'node:buffer'; - import { ClientRequestArgs } from 'node:http'; - import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring'; - // Input to `url.format` - interface UrlObject { - auth?: string | null | undefined; - hash?: string | null | undefined; - host?: string | null | undefined; - hostname?: string | null | undefined; - href?: string | null | undefined; - pathname?: string | null | undefined; - protocol?: string | null | undefined; - search?: string | null | undefined; - slashes?: boolean | null | undefined; - port?: string | number | null | undefined; - query?: string | null | ParsedUrlQueryInput | undefined; - } - // Output of `url.parse` - interface Url { - auth: string | null; - hash: string | null; - host: string | null; - hostname: string | null; - href: string; - path: string | null; - pathname: string | null; - protocol: string | null; - search: string | null; - slashes: boolean | null; - port: string | null; - query: string | null | ParsedUrlQuery; - } - interface UrlWithParsedQuery extends Url { - query: ParsedUrlQuery; - } - interface UrlWithStringQuery extends Url { - query: string | null; - } - /** - * The `url.parse()` method takes a URL string, parses it, and returns a URL - * object. - * - * A `TypeError` is thrown if `urlString` is not a string. - * - * A `URIError` is thrown if the `auth` property is present but cannot be decoded. - * - * Use of the legacy `url.parse()` method is discouraged. Users should - * use the WHATWG `URL` API. Because the `url.parse()` method uses a - * lenient, non-standard algorithm for parsing URL strings, security - * issues can be introduced. Specifically, issues with [host name spoofing](https://hackerone.com/reports/678487) and - * incorrect handling of usernames and passwords have been identified. - * @since v0.1.25 - * @deprecated Legacy: Use the WHATWG URL API instead. - * @param urlString The URL string to parse. - * @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property - * on the returned URL object will be an unparsed, undecoded string. - * @param [slashesDenoteHost=false] If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the - * result would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`. - */ - function parse(urlString: string): UrlWithStringQuery; - function parse(urlString: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery; - function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; - function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; - /** - * The `url.format()` method returns a formatted URL string derived from`urlObject`. - * - * ```js - * const url = require('url'); - * url.format({ - * protocol: 'https', - * hostname: 'example.com', - * pathname: '/some/path', - * query: { - * page: 1, - * format: 'json' - * } - * }); - * - * // => 'https://example.com/some/path?page=1&format=json' - * ``` - * - * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`. - * - * The formatting process operates as follows: - * - * * A new empty string `result` is created. - * * If `urlObject.protocol` is a string, it is appended as-is to `result`. - * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. - * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII - * colon (`:`) character, the literal string `:` will be appended to `result`. - * * If either of the following conditions is true, then the literal string `//`will be appended to `result`: - * * `urlObject.slashes` property is true; - * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`; - * * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string - * and appended to `result`followed by the literal string `@`. - * * If the `urlObject.host` property is `undefined` then: - * * If the `urlObject.hostname` is a string, it is appended to `result`. - * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, - * an `Error` is thrown. - * * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`: - * * The literal string `:` is appended to `result`, and - * * The value of `urlObject.port` is coerced to a string and appended to`result`. - * * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`. - * * If the `urlObject.pathname` property is a string that is not an empty string: - * * If the `urlObject.pathname`_does not start_ with an ASCII forward slash - * (`/`), then the literal string `'/'` is appended to `result`. - * * The value of `urlObject.pathname` is appended to `result`. - * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the - * `querystring` module's `stringify()`method passing the value of `urlObject.query`. - * * Otherwise, if `urlObject.search` is a string: - * * If the value of `urlObject.search`_does not start_ with the ASCII question - * mark (`?`) character, the literal string `?` is appended to `result`. - * * The value of `urlObject.search` is appended to `result`. - * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. - * * If the `urlObject.hash` property is a string: - * * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`) - * character, the literal string `#` is appended to `result`. - * * The value of `urlObject.hash` is appended to `result`. - * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a - * string, an `Error` is thrown. - * * `result` is returned. - * @since v0.1.25 - * @deprecated Legacy: Use the WHATWG URL API instead. - * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. - */ - function format(urlObject: URL, options?: URLFormatOptions): string; - function format(urlObject: UrlObject | string): string; - /** - * The `url.resolve()` method resolves a target URL relative to a base URL in a - * manner similar to that of a Web browser resolving an anchor tag HREF. - * - * ```js - * const url = require('url'); - * url.resolve('/one/two/three', 'four'); // '/one/two/four' - * url.resolve('http://example.com/', '/one'); // 'http://example.com/one' - * url.resolve('http://example.com/one', '/two'); // 'http://example.com/two' - * ``` - * - * You can achieve the same result using the WHATWG URL API: - * - * ```js - * function resolve(from, to) { - * const resolvedUrl = new URL(to, new URL(from, 'resolve://')); - * if (resolvedUrl.protocol === 'resolve:') { - * // `from` is a relative URL. - * const { pathname, search, hash } = resolvedUrl; - * return pathname + search + hash; - * } - * return resolvedUrl.toString(); - * } - * - * resolve('/one/two/three', 'four'); // '/one/two/four' - * resolve('http://example.com/', '/one'); // 'http://example.com/one' - * resolve('http://example.com/one', '/two'); // 'http://example.com/two' - * ``` - * @since v0.1.25 - * @deprecated Legacy: Use the WHATWG URL API instead. - * @param from The Base URL being resolved against. - * @param to The HREF URL being resolved. - */ - function resolve(from: string, to: string): string; - /** - * Returns the [Punycode](https://tools.ietf.org/html/rfc5891#section-4.4) ASCII serialization of the `domain`. If `domain` is an - * invalid domain, the empty string is returned. - * - * It performs the inverse operation to {@link domainToUnicode}. - * - * This feature is only available if the `node` executable was compiled with `ICU` enabled. If not, the domain names are passed through unchanged. - * - * ```js - * import url from 'url'; - * - * console.log(url.domainToASCII('español.com')); - * // Prints xn--espaol-zwa.com - * console.log(url.domainToASCII('中文.com')); - * // Prints xn--fiq228c.com - * console.log(url.domainToASCII('xn--iñvalid.com')); - * // Prints an empty string - * ``` - * @since v7.4.0, v6.13.0 - */ - function domainToASCII(domain: string): string; - /** - * Returns the Unicode serialization of the `domain`. If `domain` is an invalid - * domain, the empty string is returned. - * - * It performs the inverse operation to {@link domainToASCII}. - * - * This feature is only available if the `node` executable was compiled with `ICU` enabled. If not, the domain names are passed through unchanged. - * - * ```js - * import url from 'url'; - * - * console.log(url.domainToUnicode('xn--espaol-zwa.com')); - * // Prints español.com - * console.log(url.domainToUnicode('xn--fiq228c.com')); - * // Prints 中文.com - * console.log(url.domainToUnicode('xn--iñvalid.com')); - * // Prints an empty string - * ``` - * @since v7.4.0, v6.13.0 - */ - function domainToUnicode(domain: string): string; - /** - * This function ensures the correct decodings of percent-encoded characters as - * well as ensuring a cross-platform valid absolute path string. - * - * ```js - * import { fileURLToPath } from 'url'; - * - * const __filename = fileURLToPath(import.meta.url); - * - * new URL('file:///C:/path/').pathname; // Incorrect: /C:/path/ - * fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows) - * - * new URL('file://nas/foo.txt').pathname; // Incorrect: /foo.txt - * fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows) - * - * new URL('file:///你好.txt').pathname; // Incorrect: /%E4%BD%A0%E5%A5%BD.txt - * fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX) - * - * new URL('file:///hello world').pathname; // Incorrect: /hello%20world - * fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX) - * ``` - * @since v10.12.0 - * @param url The file URL string or URL object to convert to a path. - * @return The fully-resolved platform-specific Node.js file path. - */ - function fileURLToPath(url: string | URL): string; - /** - * This function ensures that `path` is resolved absolutely, and that the URL - * control characters are correctly encoded when converting into a File URL. - * - * ```js - * import { pathToFileURL } from 'url'; - * - * new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1 - * pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX) - * - * new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c - * pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX) - * ``` - * @since v10.12.0 - * @param path The path to convert to a File URL. - * @return The file URL object. - */ - function pathToFileURL(path: string): URL; - /** - * This utility function converts a URL object into an ordinary options object as - * expected by the `http.request()` and `https.request()` APIs. - * - * ```js - * import { urlToHttpOptions } from 'url'; - * const myURL = new URL('https://a:b@測試?abc#foo'); - * - * console.log(urlToHttpOptions(myURL)); - * - * { - * protocol: 'https:', - * hostname: 'xn--g6w251d', - * hash: '#foo', - * search: '?abc', - * pathname: '/', - * path: '/?abc', - * href: 'https://a:b@xn--g6w251d/?abc#foo', - * auth: 'a:b' - * } - * - * ``` - * @since v15.7.0 - * @param url The `WHATWG URL` object to convert to an options object. - * @return Options object - */ - function urlToHttpOptions(url: URL): ClientRequestArgs; - interface URLFormatOptions { - auth?: boolean | undefined; - fragment?: boolean | undefined; - search?: boolean | undefined; - unicode?: boolean | undefined; - } - /** - * Browser-compatible `URL` class, implemented by following the WHATWG URL - * Standard. [Examples of parsed URLs](https://url.spec.whatwg.org/#example-url-parsing) may be found in the Standard itself. - * The `URL` class is also available on the global object. - * - * In accordance with browser conventions, all properties of `URL` objects - * are implemented as getters and setters on the class prototype, rather than as - * data properties on the object itself. Thus, unlike `legacy urlObject` s, - * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still - * return `true`. - * @since v7.0.0, v6.13.0 - */ - class URL { - /** - * Creates a `'blob:nodedata:...'` URL string that represents the given `Blob` object and can be used to retrieve the `Blob` later. - * - * ```js - * const { - * Blob, - * resolveObjectURL, - * } = require('buffer'); - * - * const blob = new Blob(['hello']); - * const id = URL.createObjectURL(blob); - * - * // later... - * - * const otherBlob = resolveObjectURL(id); - * console.log(otherBlob.size); - * ``` - * - * The data stored by the registered `Blob` will be retained in memory until`URL.revokeObjectURL()` is called to remove it. - * - * `Blob` objects are registered within the current thread. If using Worker - * Threads, `Blob` objects registered within one Worker will not be available - * to other workers or the main thread. - * @since v16.7.0 - * @experimental - */ - static createObjectURL(blob: Blob): string; - /** - * Removes the stored `Blob` identified by the given ID. - * @since v16.7.0 - * @experimental - * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. - */ - static revokeObjectURL(objectUrl: string): void; - constructor(input: string, base?: string | URL); - /** - * Gets and sets the fragment portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/foo#bar'); - * console.log(myURL.hash); - * // Prints #bar - * - * myURL.hash = 'baz'; - * console.log(myURL.href); - * // Prints https://example.org/foo#baz - * ``` - * - * Invalid URL characters included in the value assigned to the `hash` property - * are `percent-encoded`. The selection of which characters to - * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - hash: string; - /** - * Gets and sets the host portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org:81/foo'); - * console.log(myURL.host); - * // Prints example.org:81 - * - * myURL.host = 'example.com:82'; - * console.log(myURL.href); - * // Prints https://example.com:82/foo - * ``` - * - * Invalid host values assigned to the `host` property are ignored. - */ - host: string; - /** - * Gets and sets the host name portion of the URL. The key difference between`url.host` and `url.hostname` is that `url.hostname` does _not_ include the - * port. - * - * ```js - * const myURL = new URL('https://example.org:81/foo'); - * console.log(myURL.hostname); - * // Prints example.org - * - * // Setting the hostname does not change the port - * myURL.hostname = 'example.com:82'; - * console.log(myURL.href); - * // Prints https://example.com:81/foo - * - * // Use myURL.host to change the hostname and port - * myURL.host = 'example.org:82'; - * console.log(myURL.href); - * // Prints https://example.org:82/foo - * ``` - * - * Invalid host name values assigned to the `hostname` property are ignored. - */ - hostname: string; - /** - * Gets and sets the serialized URL. - * - * ```js - * const myURL = new URL('https://example.org/foo'); - * console.log(myURL.href); - * // Prints https://example.org/foo - * - * myURL.href = 'https://example.com/bar'; - * console.log(myURL.href); - * // Prints https://example.com/bar - * ``` - * - * Getting the value of the `href` property is equivalent to calling {@link toString}. - * - * Setting the value of this property to a new value is equivalent to creating a - * new `URL` object using `new URL(value)`. Each of the `URL`object's properties will be modified. - * - * If the value assigned to the `href` property is not a valid URL, a `TypeError`will be thrown. - */ - href: string; - /** - * Gets the read-only serialization of the URL's origin. - * - * ```js - * const myURL = new URL('https://example.org/foo/bar?baz'); - * console.log(myURL.origin); - * // Prints https://example.org - * ``` - * - * ```js - * const idnURL = new URL('https://測試'); - * console.log(idnURL.origin); - * // Prints https://xn--g6w251d - * - * console.log(idnURL.hostname); - * // Prints xn--g6w251d - * ``` - */ - readonly origin: string; - /** - * Gets and sets the password portion of the URL. - * - * ```js - * const myURL = new URL('https://abc:xyz@example.com'); - * console.log(myURL.password); - * // Prints xyz - * - * myURL.password = '123'; - * console.log(myURL.href); - * // Prints https://abc:123@example.com - * ``` - * - * Invalid URL characters included in the value assigned to the `password` property - * are `percent-encoded`. The selection of which characters to - * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - password: string; - /** - * Gets and sets the path portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/abc/xyz?123'); - * console.log(myURL.pathname); - * // Prints /abc/xyz - * - * myURL.pathname = '/abcdef'; - * console.log(myURL.href); - * // Prints https://example.org/abcdef?123 - * ``` - * - * Invalid URL characters included in the value assigned to the `pathname`property are `percent-encoded`. The selection of which characters - * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - pathname: string; - /** - * Gets and sets the port portion of the URL. - * - * The port value may be a number or a string containing a number in the range`0` to `65535` (inclusive). Setting the value to the default port of the`URL` objects given `protocol` will - * result in the `port` value becoming - * the empty string (`''`). - * - * The port value can be an empty string in which case the port depends on - * the protocol/scheme: - * - * - * - * Upon assigning a value to the port, the value will first be converted to a - * string using `.toString()`. - * - * If that string is invalid but it begins with a number, the leading number is - * assigned to `port`. - * If the number lies outside the range denoted above, it is ignored. - * - * ```js - * const myURL = new URL('https://example.org:8888'); - * console.log(myURL.port); - * // Prints 8888 - * - * // Default ports are automatically transformed to the empty string - * // (HTTPS protocol's default port is 443) - * myURL.port = '443'; - * console.log(myURL.port); - * // Prints the empty string - * console.log(myURL.href); - * // Prints https://example.org/ - * - * myURL.port = 1234; - * console.log(myURL.port); - * // Prints 1234 - * console.log(myURL.href); - * // Prints https://example.org:1234/ - * - * // Completely invalid port strings are ignored - * myURL.port = 'abcd'; - * console.log(myURL.port); - * // Prints 1234 - * - * // Leading numbers are treated as a port number - * myURL.port = '5678abcd'; - * console.log(myURL.port); - * // Prints 5678 - * - * // Non-integers are truncated - * myURL.port = 1234.5678; - * console.log(myURL.port); - * // Prints 1234 - * - * // Out-of-range numbers which are not represented in scientific notation - * // will be ignored. - * myURL.port = 1e10; // 10000000000, will be range-checked as described below - * console.log(myURL.port); - * // Prints 1234 - * ``` - * - * Numbers which contain a decimal point, - * such as floating-point numbers or numbers in scientific notation, - * are not an exception to this rule. - * Leading numbers up to the decimal point will be set as the URL's port, - * assuming they are valid: - * - * ```js - * myURL.port = 4.567e21; - * console.log(myURL.port); - * // Prints 4 (because it is the leading number in the string '4.567e21') - * ``` - */ - port: string; - /** - * Gets and sets the protocol portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org'); - * console.log(myURL.protocol); - * // Prints https: - * - * myURL.protocol = 'ftp'; - * console.log(myURL.href); - * // Prints ftp://example.org/ - * ``` - * - * Invalid URL protocol values assigned to the `protocol` property are ignored. - */ - protocol: string; - /** - * Gets and sets the serialized query portion of the URL. - * - * ```js - * const myURL = new URL('https://example.org/abc?123'); - * console.log(myURL.search); - * // Prints ?123 - * - * myURL.search = 'abc=xyz'; - * console.log(myURL.href); - * // Prints https://example.org/abc?abc=xyz - * ``` - * - * Any invalid URL characters appearing in the value assigned the `search`property will be `percent-encoded`. The selection of which - * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - search: string; - /** - * Gets the `URLSearchParams` object representing the query parameters of the - * URL. This property is read-only but the `URLSearchParams` object it provides - * can be used to mutate the URL instance; to replace the entirety of query - * parameters of the URL, use the {@link search} setter. See `URLSearchParams` documentation for details. - * - * Use care when using `.searchParams` to modify the `URL` because, - * per the WHATWG specification, the `URLSearchParams` object uses - * different rules to determine which characters to percent-encode. For - * instance, the `URL` object will not percent encode the ASCII tilde (`~`) - * character, while `URLSearchParams` will always encode it: - * - * ```js - * const myUrl = new URL('https://example.org/abc?foo=~bar'); - * - * console.log(myUrl.search); // prints ?foo=~bar - * - * // Modify the URL via searchParams... - * myUrl.searchParams.sort(); - * - * console.log(myUrl.search); // prints ?foo=%7Ebar - * ``` - */ - readonly searchParams: URLSearchParams; - /** - * Gets and sets the username portion of the URL. - * - * ```js - * const myURL = new URL('https://abc:xyz@example.com'); - * console.log(myURL.username); - * // Prints abc - * - * myURL.username = '123'; - * console.log(myURL.href); - * // Prints https://123:xyz@example.com/ - * ``` - * - * Any invalid URL characters appearing in the value assigned the `username`property will be `percent-encoded`. The selection of which - * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. - */ - username: string; - /** - * The `toString()` method on the `URL` object returns the serialized URL. The - * value returned is equivalent to that of {@link href} and {@link toJSON}. - */ - toString(): string; - /** - * The `toJSON()` method on the `URL` object returns the serialized URL. The - * value returned is equivalent to that of {@link href} and {@link toString}. - * - * This method is automatically called when an `URL` object is serialized - * with [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). - * - * ```js - * const myURLs = [ - * new URL('https://www.example.com'), - * new URL('https://test.example.org'), - * ]; - * console.log(JSON.stringify(myURLs)); - * // Prints ["https://www.example.com/","https://test.example.org/"] - * ``` - */ - toJSON(): string; - } - /** - * The `URLSearchParams` API provides read and write access to the query of a`URL`. The `URLSearchParams` class can also be used standalone with one of the - * four following constructors. - * The `URLSearchParams` class is also available on the global object. - * - * The WHATWG `URLSearchParams` interface and the `querystring` module have - * similar purpose, but the purpose of the `querystring` module is more - * general, as it allows the customization of delimiter characters (`&` and `=`). - * On the other hand, this API is designed purely for URL query strings. - * - * ```js - * const myURL = new URL('https://example.org/?abc=123'); - * console.log(myURL.searchParams.get('abc')); - * // Prints 123 - * - * myURL.searchParams.append('abc', 'xyz'); - * console.log(myURL.href); - * // Prints https://example.org/?abc=123&abc=xyz - * - * myURL.searchParams.delete('abc'); - * myURL.searchParams.set('a', 'b'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b - * - * const newSearchParams = new URLSearchParams(myURL.searchParams); - * // The above is equivalent to - * // const newSearchParams = new URLSearchParams(myURL.search); - * - * newSearchParams.append('a', 'c'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b - * console.log(newSearchParams.toString()); - * // Prints a=b&a=c - * - * // newSearchParams.toString() is implicitly called - * myURL.search = newSearchParams; - * console.log(myURL.href); - * // Prints https://example.org/?a=b&a=c - * newSearchParams.delete('a'); - * console.log(myURL.href); - * // Prints https://example.org/?a=b&a=c - * ``` - * @since v7.5.0, v6.13.0 - */ - class URLSearchParams implements Iterable<[string, string]> { - constructor(init?: URLSearchParams | string | NodeJS.Dict> | Iterable<[string, string]> | ReadonlyArray<[string, string]>); - /** - * Append a new name-value pair to the query string. - */ - append(name: string, value: string): void; - /** - * Remove all name-value pairs whose name is `name`. - */ - delete(name: string): void; - /** - * Returns an ES6 `Iterator` over each of the name-value pairs in the query. - * Each item of the iterator is a JavaScript `Array`. The first item of the `Array`is the `name`, the second item of the `Array` is the `value`. - * - * Alias for `urlSearchParams[@@iterator]()`. - */ - entries(): IterableIterator<[string, string]>; - /** - * Iterates over each name-value pair in the query and invokes the given function. - * - * ```js - * const myURL = new URL('https://example.org/?a=b&c=d'); - * myURL.searchParams.forEach((value, name, searchParams) => { - * console.log(name, value, myURL.searchParams === searchParams); - * }); - * // Prints: - * // a b true - * // c d true - * ``` - * @param fn Invoked for each name-value pair in the query - * @param thisArg To be used as `this` value for when `fn` is called - */ - forEach(callback: (this: TThis, value: string, name: string, searchParams: this) => void, thisArg?: TThis): void; - /** - * Returns the value of the first name-value pair whose name is `name`. If there - * are no such pairs, `null` is returned. - * @return or `null` if there is no name-value pair with the given `name`. - */ - get(name: string): string | null; - /** - * Returns the values of all name-value pairs whose name is `name`. If there are - * no such pairs, an empty array is returned. - */ - getAll(name: string): string[]; - /** - * Returns `true` if there is at least one name-value pair whose name is `name`. - */ - has(name: string): boolean; - /** - * Returns an ES6 `Iterator` over the names of each name-value pair. - * - * ```js - * const params = new URLSearchParams('foo=bar&foo=baz'); - * for (const name of params.keys()) { - * console.log(name); - * } - * // Prints: - * // foo - * // foo - * ``` - */ - keys(): IterableIterator; - /** - * Sets the value in the `URLSearchParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`, - * set the first such pair's value to `value` and remove all others. If not, - * append the name-value pair to the query string. - * - * ```js - * const params = new URLSearchParams(); - * params.append('foo', 'bar'); - * params.append('foo', 'baz'); - * params.append('abc', 'def'); - * console.log(params.toString()); - * // Prints foo=bar&foo=baz&abc=def - * - * params.set('foo', 'def'); - * params.set('xyz', 'opq'); - * console.log(params.toString()); - * // Prints foo=def&abc=def&xyz=opq - * ``` - */ - set(name: string, value: string): void; - /** - * Sort all existing name-value pairs in-place by their names. Sorting is done - * with a [stable sorting algorithm](https://en.wikipedia.org/wiki/Sorting_algorithm#Stability), so relative order between name-value pairs - * with the same name is preserved. - * - * This method can be used, in particular, to increase cache hits. - * - * ```js - * const params = new URLSearchParams('query[]=abc&type=search&query[]=123'); - * params.sort(); - * console.log(params.toString()); - * // Prints query%5B%5D=abc&query%5B%5D=123&type=search - * ``` - * @since v7.7.0, v6.13.0 - */ - sort(): void; - /** - * Returns the search parameters serialized as a string, with characters - * percent-encoded where necessary. - */ - toString(): string; - /** - * Returns an ES6 `Iterator` over the values of each name-value pair. - */ - values(): IterableIterator; - [Symbol.iterator](): IterableIterator<[string, string]>; - } -} -declare module 'node:url' { - export * from 'url'; -} diff --git a/WechatBot/node_modules/@types/node/util.d.ts b/WechatBot/node_modules/@types/node/util.d.ts deleted file mode 100644 index b8cb07e2f..000000000 --- a/WechatBot/node_modules/@types/node/util.d.ts +++ /dev/null @@ -1,1564 +0,0 @@ -/** - * The `util` module supports the needs of Node.js internal APIs. Many of the - * utilities are useful for application and module developers as well. To access - * it: - * - * ```js - * const util = require('util'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/util.js) - */ -declare module 'util' { - import * as types from 'node:util/types'; - export interface InspectOptions { - /** - * If set to `true`, getters are going to be - * inspected as well. If set to `'get'` only getters without setter are going - * to be inspected. If set to `'set'` only getters having a corresponding - * setter are going to be inspected. This might cause side effects depending on - * the getter function. - * @default `false` - */ - getters?: 'get' | 'set' | boolean | undefined; - showHidden?: boolean | undefined; - /** - * @default 2 - */ - depth?: number | null | undefined; - colors?: boolean | undefined; - customInspect?: boolean | undefined; - showProxy?: boolean | undefined; - maxArrayLength?: number | null | undefined; - /** - * Specifies the maximum number of characters to - * include when formatting. Set to `null` or `Infinity` to show all elements. - * Set to `0` or negative to show no characters. - * @default 10000 - */ - maxStringLength?: number | null | undefined; - breakLength?: number | undefined; - /** - * Setting this to `false` causes each object key - * to be displayed on a new line. It will also add new lines to text that is - * longer than `breakLength`. If set to a number, the most `n` inner elements - * are united on a single line as long as all properties fit into - * `breakLength`. Short array elements are also grouped together. Note that no - * text will be reduced below 16 characters, no matter the `breakLength` size. - * For more information, see the example below. - * @default `true` - */ - compact?: boolean | number | undefined; - sorted?: boolean | ((a: string, b: string) => number) | undefined; - } - export type Style = 'special' | 'number' | 'bigint' | 'boolean' | 'undefined' | 'null' | 'string' | 'symbol' | 'date' | 'regexp' | 'module'; - export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => string; - export interface InspectOptionsStylized extends InspectOptions { - stylize(text: string, styleType: Style): string; - } - /** - * The `util.format()` method returns a formatted string using the first argument - * as a `printf`\-like format string which can contain zero or more format - * specifiers. Each specifier is replaced with the converted value from the - * corresponding argument. Supported specifiers are: - * - * If a specifier does not have a corresponding argument, it is not replaced: - * - * ```js - * util.format('%s:%s', 'foo'); - * // Returns: 'foo:%s' - * ``` - * - * Values that are not part of the format string are formatted using`util.inspect()` if their type is not `string`. - * - * If there are more arguments passed to the `util.format()` method than the - * number of specifiers, the extra arguments are concatenated to the returned - * string, separated by spaces: - * - * ```js - * util.format('%s:%s', 'foo', 'bar', 'baz'); - * // Returns: 'foo:bar baz' - * ``` - * - * If the first argument does not contain a valid format specifier, `util.format()`returns a string that is the concatenation of all arguments separated by spaces: - * - * ```js - * util.format(1, 2, 3); - * // Returns: '1 2 3' - * ``` - * - * If only one argument is passed to `util.format()`, it is returned as it is - * without any formatting: - * - * ```js - * util.format('%% %s'); - * // Returns: '%% %s' - * ``` - * - * `util.format()` is a synchronous method that is intended as a debugging tool. - * Some input values can have a significant performance overhead that can block the - * event loop. Use this function with care and never in a hot code path. - * @since v0.5.3 - * @param format A `printf`-like format string. - */ - export function format(format?: any, ...param: any[]): string; - /** - * This function is identical to {@link format}, except in that it takes - * an `inspectOptions` argument which specifies options that are passed along to {@link inspect}. - * - * ```js - * util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 }); - * // Returns 'See object { foo: 42 }', where `42` is colored as a number - * // when printed to a terminal. - * ``` - * @since v10.0.0 - */ - export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string; - /** - * Returns a Map of all system error codes available from the Node.js API. - * The mapping between error codes and error names is platform-dependent. - * See `Common System Errors` for the names of common errors. - * - * ```js - * fs.access('file/that/does/not/exist', (err) => { - * const errorMap = util.getSystemErrorMap(); - * const name = errorMap.get(err.errno); - * console.error(name); // ENOENT - * }); - * ``` - * @since v16.0.0 - */ - export function getSystemErrorMap(): Map; - /** - * The `util.log()` method prints the given `string` to `stdout` with an included - * timestamp. - * - * ```js - * const util = require('util'); - * - * util.log('Timestamped message.'); - * ``` - * @since v0.3.0 - * @deprecated Since v6.0.0 - Use a third party module instead. - */ - export function log(string: string): void; - /** - * Returns the `string` after replacing any surrogate code points - * (or equivalently, any unpaired surrogate code units) with the - * Unicode "replacement character" U+FFFD. - * - * @since v16.8.0 - */ - export function toUSVString(string: string): string; - /** - * The `util.inspect()` method returns a string representation of `object` that is - * intended for debugging. The output of `util.inspect` may change at any time - * and should not be depended upon programmatically. Additional `options` may be - * passed that alter the result.`util.inspect()` will use the constructor's name and/or `@@toStringTag` to make - * an identifiable tag for an inspected value. - * - * ```js - * class Foo { - * get [Symbol.toStringTag]() { - * return 'bar'; - * } - * } - * - * class Bar {} - * - * const baz = Object.create(null, { [Symbol.toStringTag]: { value: 'foo' } }); - * - * util.inspect(new Foo()); // 'Foo [bar] {}' - * util.inspect(new Bar()); // 'Bar {}' - * util.inspect(baz); // '[foo] {}' - * ``` - * - * Circular references point to their anchor by using a reference index: - * - * ```js - * const { inspect } = require('util'); - * - * const obj = {}; - * obj.a = [obj]; - * obj.b = {}; - * obj.b.inner = obj.b; - * obj.b.obj = obj; - * - * console.log(inspect(obj)); - * // { - * // a: [ [Circular *1] ], - * // b: { inner: [Circular *2], obj: [Circular *1] } - * // } - * ``` - * - * The following example inspects all properties of the `util` object: - * - * ```js - * const util = require('util'); - * - * console.log(util.inspect(util, { showHidden: true, depth: null })); - * ``` - * - * The following example highlights the effect of the `compact` option: - * - * ```js - * const util = require('util'); - * - * const o = { - * a: [1, 2, [[ - * 'Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit, sed do ' + - * 'eiusmod \ntempor incididunt ut labore et dolore magna aliqua.', - * 'test', - * 'foo']], 4], - * b: new Map([['za', 1], ['zb', 'test']]) - * }; - * console.log(util.inspect(o, { compact: true, depth: 5, breakLength: 80 })); - * - * // { a: - * // [ 1, - * // 2, - * // [ [ 'Lorem ipsum dolor sit amet,\nconsectetur [...]', // A long line - * // 'test', - * // 'foo' ] ], - * // 4 ], - * // b: Map(2) { 'za' => 1, 'zb' => 'test' } } - * - * // Setting `compact` to false or an integer creates more reader friendly output. - * console.log(util.inspect(o, { compact: false, depth: 5, breakLength: 80 })); - * - * // { - * // a: [ - * // 1, - * // 2, - * // [ - * // [ - * // 'Lorem ipsum dolor sit amet,\n' + - * // 'consectetur adipiscing elit, sed do eiusmod \n' + - * // 'tempor incididunt ut labore et dolore magna aliqua.', - * // 'test', - * // 'foo' - * // ] - * // ], - * // 4 - * // ], - * // b: Map(2) { - * // 'za' => 1, - * // 'zb' => 'test' - * // } - * // } - * - * // Setting `breakLength` to e.g. 150 will print the "Lorem ipsum" text in a - * // single line. - * ``` - * - * The `showHidden` option allows [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) and - * [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries to be - * inspected. If there are more entries than `maxArrayLength`, there is no - * guarantee which entries are displayed. That means retrieving the same[`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries twice may - * result in different output. Furthermore, entries - * with no remaining strong references may be garbage collected at any time. - * - * ```js - * const { inspect } = require('util'); - * - * const obj = { a: 1 }; - * const obj2 = { b: 2 }; - * const weakSet = new WeakSet([obj, obj2]); - * - * console.log(inspect(weakSet, { showHidden: true })); - * // WeakSet { { a: 1 }, { b: 2 } } - * ``` - * - * The `sorted` option ensures that an object's property insertion order does not - * impact the result of `util.inspect()`. - * - * ```js - * const { inspect } = require('util'); - * const assert = require('assert'); - * - * const o1 = { - * b: [2, 3, 1], - * a: '`a` comes before `b`', - * c: new Set([2, 3, 1]) - * }; - * console.log(inspect(o1, { sorted: true })); - * // { a: '`a` comes before `b`', b: [ 2, 3, 1 ], c: Set(3) { 1, 2, 3 } } - * console.log(inspect(o1, { sorted: (a, b) => b.localeCompare(a) })); - * // { c: Set(3) { 3, 2, 1 }, b: [ 2, 3, 1 ], a: '`a` comes before `b`' } - * - * const o2 = { - * c: new Set([2, 1, 3]), - * a: '`a` comes before `b`', - * b: [2, 3, 1] - * }; - * assert.strict.equal( - * inspect(o1, { sorted: true }), - * inspect(o2, { sorted: true }) - * ); - * ``` - * - * `util.inspect()` is a synchronous method intended for debugging. Its maximum - * output length is approximately 128 MB. Inputs that result in longer output will - * be truncated. - * @since v0.3.0 - * @param object Any JavaScript primitive or `Object`. - * @return The representation of `object`. - */ - export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string; - export function inspect(object: any, options: InspectOptions): string; - export namespace inspect { - let colors: NodeJS.Dict<[number, number]>; - let styles: { - [K in Style]: string; - }; - let defaultOptions: InspectOptions; - /** - * Allows changing inspect settings from the repl. - */ - let replDefaults: InspectOptions; - const custom: unique symbol; - } - /** - * Alias for [`Array.isArray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray). - * - * Returns `true` if the given `object` is an `Array`. Otherwise, returns `false`. - * - * ```js - * const util = require('util'); - * - * util.isArray([]); - * // Returns: true - * util.isArray(new Array()); - * // Returns: true - * util.isArray({}); - * // Returns: false - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Use `isArray` instead. - */ - export function isArray(object: unknown): object is unknown[]; - /** - * Returns `true` if the given `object` is a `RegExp`. Otherwise, returns `false`. - * - * ```js - * const util = require('util'); - * - * util.isRegExp(/some regexp/); - * // Returns: true - * util.isRegExp(new RegExp('another regexp')); - * // Returns: true - * util.isRegExp({}); - * // Returns: false - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Deprecated - */ - export function isRegExp(object: unknown): object is RegExp; - /** - * Returns `true` if the given `object` is a `Date`. Otherwise, returns `false`. - * - * ```js - * const util = require('util'); - * - * util.isDate(new Date()); - * // Returns: true - * util.isDate(Date()); - * // false (without 'new' returns a String) - * util.isDate({}); - * // Returns: false - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Use {@link types.isDate} instead. - */ - export function isDate(object: unknown): object is Date; - /** - * Returns `true` if the given `object` is an `Error`. Otherwise, returns`false`. - * - * ```js - * const util = require('util'); - * - * util.isError(new Error()); - * // Returns: true - * util.isError(new TypeError()); - * // Returns: true - * util.isError({ name: 'Error', message: 'an error occurred' }); - * // Returns: false - * ``` - * - * This method relies on `Object.prototype.toString()` behavior. It is - * possible to obtain an incorrect result when the `object` argument manipulates`@@toStringTag`. - * - * ```js - * const util = require('util'); - * const obj = { name: 'Error', message: 'an error occurred' }; - * - * util.isError(obj); - * // Returns: false - * obj[Symbol.toStringTag] = 'Error'; - * util.isError(obj); - * // Returns: true - * ``` - * @since v0.6.0 - * @deprecated Since v4.0.0 - Use {@link types.isNativeError} instead. - */ - export function isError(object: unknown): object is Error; - /** - * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and`extends` keywords to get language level inheritance support. Also note - * that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179). - * - * Inherit the prototype methods from one [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The - * prototype of `constructor` will be set to a new object created from`superConstructor`. - * - * This mainly adds some input validation on top of`Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`. - * As an additional convenience, `superConstructor` will be accessible - * through the `constructor.super_` property. - * - * ```js - * const util = require('util'); - * const EventEmitter = require('events'); - * - * function MyStream() { - * EventEmitter.call(this); - * } - * - * util.inherits(MyStream, EventEmitter); - * - * MyStream.prototype.write = function(data) { - * this.emit('data', data); - * }; - * - * const stream = new MyStream(); - * - * console.log(stream instanceof EventEmitter); // true - * console.log(MyStream.super_ === EventEmitter); // true - * - * stream.on('data', (data) => { - * console.log(`Received data: "${data}"`); - * }); - * stream.write('It works!'); // Received data: "It works!" - * ``` - * - * ES6 example using `class` and `extends`: - * - * ```js - * const EventEmitter = require('events'); - * - * class MyStream extends EventEmitter { - * write(data) { - * this.emit('data', data); - * } - * } - * - * const stream = new MyStream(); - * - * stream.on('data', (data) => { - * console.log(`Received data: "${data}"`); - * }); - * stream.write('With ES6'); - * ``` - * @since v0.3.0 - * @deprecated Legacy: Use ES2015 class syntax and `extends` keyword instead. - */ - export function inherits(constructor: unknown, superConstructor: unknown): void; - export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void; - export interface DebugLogger extends DebugLoggerFunction { - enabled: boolean; - } - /** - * The `util.debuglog()` method is used to create a function that conditionally - * writes debug messages to `stderr` based on the existence of the `NODE_DEBUG`environment variable. If the `section` name appears within the value of that - * environment variable, then the returned function operates similar to `console.error()`. If not, then the returned function is a no-op. - * - * ```js - * const util = require('util'); - * const debuglog = util.debuglog('foo'); - * - * debuglog('hello from foo [%d]', 123); - * ``` - * - * If this program is run with `NODE_DEBUG=foo` in the environment, then - * it will output something like: - * - * ```console - * FOO 3245: hello from foo [123] - * ``` - * - * where `3245` is the process id. If it is not run with that - * environment variable set, then it will not print anything. - * - * The `section` supports wildcard also: - * - * ```js - * const util = require('util'); - * const debuglog = util.debuglog('foo-bar'); - * - * debuglog('hi there, it\'s foo-bar [%d]', 2333); - * ``` - * - * if it is run with `NODE_DEBUG=foo*` in the environment, then it will output - * something like: - * - * ```console - * FOO-BAR 3257: hi there, it's foo-bar [2333] - * ``` - * - * Multiple comma-separated `section` names may be specified in the `NODE_DEBUG`environment variable: `NODE_DEBUG=fs,net,tls`. - * - * The optional `callback` argument can be used to replace the logging function - * with a different function that doesn't have any initialization or - * unnecessary wrapping. - * - * ```js - * const util = require('util'); - * let debuglog = util.debuglog('internals', (debug) => { - * // Replace with a logging function that optimizes out - * // testing if the section is enabled - * debuglog = debug; - * }); - * ``` - * @since v0.11.3 - * @param section A string identifying the portion of the application for which the `debuglog` function is being created. - * @param callback A callback invoked the first time the logging function is called with a function argument that is a more optimized logging function. - * @return The logging function - */ - export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger; - /** - * Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`. - * - * ```js - * const util = require('util'); - * - * util.isBoolean(1); - * // Returns: false - * util.isBoolean(0); - * // Returns: false - * util.isBoolean(false); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'boolean'` instead. - */ - export function isBoolean(object: unknown): object is boolean; - /** - * Returns `true` if the given `object` is a `Buffer`. Otherwise, returns `false`. - * - * ```js - * const util = require('util'); - * - * util.isBuffer({ length: 0 }); - * // Returns: false - * util.isBuffer([]); - * // Returns: false - * util.isBuffer(Buffer.from('hello world')); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `isBuffer` instead. - */ - export function isBuffer(object: unknown): object is Buffer; - /** - * Returns `true` if the given `object` is a `Function`. Otherwise, returns`false`. - * - * ```js - * const util = require('util'); - * - * function Foo() {} - * const Bar = () => {}; - * - * util.isFunction({}); - * // Returns: false - * util.isFunction(Foo); - * // Returns: true - * util.isFunction(Bar); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'function'` instead. - */ - export function isFunction(object: unknown): boolean; - /** - * Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`. - * - * ```js - * const util = require('util'); - * - * util.isNull(0); - * // Returns: false - * util.isNull(undefined); - * // Returns: false - * util.isNull(null); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `value === null` instead. - */ - export function isNull(object: unknown): object is null; - /** - * Returns `true` if the given `object` is `null` or `undefined`. Otherwise, - * returns `false`. - * - * ```js - * const util = require('util'); - * - * util.isNullOrUndefined(0); - * // Returns: false - * util.isNullOrUndefined(undefined); - * // Returns: true - * util.isNullOrUndefined(null); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `value === undefined || value === null` instead. - */ - export function isNullOrUndefined(object: unknown): object is null | undefined; - /** - * Returns `true` if the given `object` is a `Number`. Otherwise, returns `false`. - * - * ```js - * const util = require('util'); - * - * util.isNumber(false); - * // Returns: false - * util.isNumber(Infinity); - * // Returns: true - * util.isNumber(0); - * // Returns: true - * util.isNumber(NaN); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'number'` instead. - */ - export function isNumber(object: unknown): object is number; - /** - * Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript). - * Otherwise, returns `false`. - * - * ```js - * const util = require('util'); - * - * util.isObject(5); - * // Returns: false - * util.isObject(null); - * // Returns: false - * util.isObject({}); - * // Returns: true - * util.isObject(() => {}); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Deprecated: Use `value !== null && typeof value === 'object'` instead. - */ - export function isObject(object: unknown): boolean; - /** - * Returns `true` if the given `object` is a primitive type. Otherwise, returns`false`. - * - * ```js - * const util = require('util'); - * - * util.isPrimitive(5); - * // Returns: true - * util.isPrimitive('foo'); - * // Returns: true - * util.isPrimitive(false); - * // Returns: true - * util.isPrimitive(null); - * // Returns: true - * util.isPrimitive(undefined); - * // Returns: true - * util.isPrimitive({}); - * // Returns: false - * util.isPrimitive(() => {}); - * // Returns: false - * util.isPrimitive(/^$/); - * // Returns: false - * util.isPrimitive(new Date()); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead. - */ - export function isPrimitive(object: unknown): boolean; - /** - * Returns `true` if the given `object` is a `string`. Otherwise, returns `false`. - * - * ```js - * const util = require('util'); - * - * util.isString(''); - * // Returns: true - * util.isString('foo'); - * // Returns: true - * util.isString(String('foo')); - * // Returns: true - * util.isString(5); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'string'` instead. - */ - export function isString(object: unknown): object is string; - /** - * Returns `true` if the given `object` is a `Symbol`. Otherwise, returns `false`. - * - * ```js - * const util = require('util'); - * - * util.isSymbol(5); - * // Returns: false - * util.isSymbol('foo'); - * // Returns: false - * util.isSymbol(Symbol('foo')); - * // Returns: true - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `typeof value === 'symbol'` instead. - */ - export function isSymbol(object: unknown): object is symbol; - /** - * Returns `true` if the given `object` is `undefined`. Otherwise, returns `false`. - * - * ```js - * const util = require('util'); - * - * const foo = undefined; - * util.isUndefined(5); - * // Returns: false - * util.isUndefined(foo); - * // Returns: true - * util.isUndefined(null); - * // Returns: false - * ``` - * @since v0.11.5 - * @deprecated Since v4.0.0 - Use `value === undefined` instead. - */ - export function isUndefined(object: unknown): object is undefined; - /** - * The `util.deprecate()` method wraps `fn` (which may be a function or class) in - * such a way that it is marked as deprecated. - * - * ```js - * const util = require('util'); - * - * exports.obsoleteFunction = util.deprecate(() => { - * // Do something here. - * }, 'obsoleteFunction() is deprecated. Use newShinyFunction() instead.'); - * ``` - * - * When called, `util.deprecate()` will return a function that will emit a`DeprecationWarning` using the `'warning'` event. The warning will - * be emitted and printed to `stderr` the first time the returned function is - * called. After the warning is emitted, the wrapped function is called without - * emitting a warning. - * - * If the same optional `code` is supplied in multiple calls to `util.deprecate()`, - * the warning will be emitted only once for that `code`. - * - * ```js - * const util = require('util'); - * - * const fn1 = util.deprecate(someFunction, someMessage, 'DEP0001'); - * const fn2 = util.deprecate(someOtherFunction, someOtherMessage, 'DEP0001'); - * fn1(); // Emits a deprecation warning with code DEP0001 - * fn2(); // Does not emit a deprecation warning because it has the same code - * ``` - * - * If either the `--no-deprecation` or `--no-warnings` command-line flags are - * used, or if the `process.noDeprecation` property is set to `true`_prior_ to - * the first deprecation warning, the `util.deprecate()` method does nothing. - * - * If the `--trace-deprecation` or `--trace-warnings` command-line flags are set, - * or the `process.traceDeprecation` property is set to `true`, a warning and a - * stack trace are printed to `stderr` the first time the deprecated function is - * called. - * - * If the `--throw-deprecation` command-line flag is set, or the`process.throwDeprecation` property is set to `true`, then an exception will be - * thrown when the deprecated function is called. - * - * The `--throw-deprecation` command-line flag and `process.throwDeprecation`property take precedence over `--trace-deprecation` and`process.traceDeprecation`. - * @since v0.8.0 - * @param fn The function that is being deprecated. - * @param msg A warning message to display when the deprecated function is invoked. - * @param code A deprecation code. See the `list of deprecated APIs` for a list of codes. - * @return The deprecated function wrapped to emit a warning. - */ - export function deprecate(fn: T, msg: string, code?: string): T; - /** - * Returns `true` if there is deep strict equality between `val1` and `val2`. - * Otherwise, returns `false`. - * - * See `assert.deepStrictEqual()` for more information about deep strict - * equality. - * @since v9.0.0 - */ - export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean; - /** - * Takes an `async` function (or a function that returns a `Promise`) and returns a - * function following the error-first callback style, i.e. taking - * an `(err, value) => ...` callback as the last argument. In the callback, the - * first argument will be the rejection reason (or `null` if the `Promise`resolved), and the second argument will be the resolved value. - * - * ```js - * const util = require('util'); - * - * async function fn() { - * return 'hello world'; - * } - * const callbackFunction = util.callbackify(fn); - * - * callbackFunction((err, ret) => { - * if (err) throw err; - * console.log(ret); - * }); - * ``` - * - * Will print: - * - * ```text - * hello world - * ``` - * - * The callback is executed asynchronously, and will have a limited stack trace. - * If the callback throws, the process will emit an `'uncaughtException'` event, and if not handled will exit. - * - * Since `null` has a special meaning as the first argument to a callback, if a - * wrapped function rejects a `Promise` with a falsy value as a reason, the value - * is wrapped in an `Error` with the original value stored in a field named`reason`. - * - * ```js - * function fn() { - * return Promise.reject(null); - * } - * const callbackFunction = util.callbackify(fn); - * - * callbackFunction((err, ret) => { - * // When the Promise was rejected with `null` it is wrapped with an Error and - * // the original value is stored in `reason`. - * err && err.hasOwnProperty('reason') && err.reason === null; // true - * }); - * ``` - * @since v8.2.0 - * @param original An `async` function - * @return a callback style function - */ - export function callbackify(fn: () => Promise): (callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify(fn: () => Promise): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; - export function callbackify(fn: (arg1: T1) => Promise): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify(fn: (arg1: T1) => Promise): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; - export function callbackify(fn: (arg1: T1, arg2: T2) => Promise): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify(fn: (arg1: T1, arg2: T2) => Promise): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; - export function callbackify(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3) => Promise - ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException) => void) => void; - export function callbackify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; - export interface CustomPromisifyLegacy extends Function { - __promisify__: TCustom; - } - export interface CustomPromisifySymbol extends Function { - [promisify.custom]: TCustom; - } - export type CustomPromisify = CustomPromisifySymbol | CustomPromisifyLegacy; - /** - * Takes a function following the common error-first callback style, i.e. taking - * an `(err, value) => ...` callback as the last argument, and returns a version - * that returns promises. - * - * ```js - * const util = require('util'); - * const fs = require('fs'); - * - * const stat = util.promisify(fs.stat); - * stat('.').then((stats) => { - * // Do something with `stats` - * }).catch((error) => { - * // Handle the error. - * }); - * ``` - * - * Or, equivalently using `async function`s: - * - * ```js - * const util = require('util'); - * const fs = require('fs'); - * - * const stat = util.promisify(fs.stat); - * - * async function callStat() { - * const stats = await stat('.'); - * console.log(`This directory is owned by ${stats.uid}`); - * } - * ``` - * - * If there is an `original[util.promisify.custom]` property present, `promisify`will return its value, see `Custom promisified functions`. - * - * `promisify()` assumes that `original` is a function taking a callback as its - * final argument in all cases. If `original` is not a function, `promisify()`will throw an error. If `original` is a function but its last argument is not - * an error-first callback, it will still be passed an error-first - * callback as its last argument. - * - * Using `promisify()` on class methods or other methods that use `this` may not - * work as expected unless handled specially: - * - * ```js - * const util = require('util'); - * - * class Foo { - * constructor() { - * this.a = 42; - * } - * - * bar(callback) { - * callback(null, this.a); - * } - * } - * - * const foo = new Foo(); - * - * const naiveBar = util.promisify(foo.bar); - * // TypeError: Cannot read property 'a' of undefined - * // naiveBar().then(a => console.log(a)); - * - * naiveBar.call(foo).then((a) => console.log(a)); // '42' - * - * const bindBar = naiveBar.bind(foo); - * bindBar().then((a) => console.log(a)); // '42' - * ``` - * @since v8.0.0 - */ - export function promisify(fn: CustomPromisify): TCustom; - export function promisify(fn: (callback: (err: any, result: TResult) => void) => void): () => Promise; - export function promisify(fn: (callback: (err?: any) => void) => void): () => Promise; - export function promisify(fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void): (arg1: T1) => Promise; - export function promisify(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise; - export function promisify(fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise; - export function promisify(fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2) => Promise; - export function promisify(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise; - export function promisify(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; - export function promisify(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; - export function promisify( - fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void - ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; - export function promisify(fn: Function): Function; - export namespace promisify { - const custom: unique symbol; - } - /** - * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/)`TextDecoder` API. - * - * ```js - * const decoder = new TextDecoder('shift_jis'); - * let string = ''; - * let buffer; - * while (buffer = getNextChunkSomehow()) { - * string += decoder.decode(buffer, { stream: true }); - * } - * string += decoder.decode(); // end-of-stream - * ``` - * @since v8.3.0 - */ - export class TextDecoder { - /** - * The encoding supported by the `TextDecoder` instance. - */ - readonly encoding: string; - /** - * The value will be `true` if decoding errors result in a `TypeError` being - * thrown. - */ - readonly fatal: boolean; - /** - * The value will be `true` if the decoding result will include the byte order - * mark. - */ - readonly ignoreBOM: boolean; - constructor( - encoding?: string, - options?: { - fatal?: boolean | undefined; - ignoreBOM?: boolean | undefined; - } - ); - /** - * Decodes the `input` and returns a string. If `options.stream` is `true`, any - * incomplete byte sequences occurring at the end of the `input` are buffered - * internally and emitted after the next call to `textDecoder.decode()`. - * - * If `textDecoder.fatal` is `true`, decoding errors that occur will result in a`TypeError` being thrown. - * @param input An `ArrayBuffer`, `DataView` or `TypedArray` instance containing the encoded data. - */ - decode( - input?: NodeJS.ArrayBufferView | ArrayBuffer | null, - options?: { - stream?: boolean | undefined; - } - ): string; - } - export interface EncodeIntoResult { - /** - * The read Unicode code units of input. - */ - read: number; - /** - * The written UTF-8 bytes of output. - */ - written: number; - } - export { types }; - /** - * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/)`TextEncoder` API. All - * instances of `TextEncoder` only support UTF-8 encoding. - * - * ```js - * const encoder = new TextEncoder(); - * const uint8array = encoder.encode('this is some data'); - * ``` - * - * The `TextEncoder` class is also available on the global object. - * @since v8.3.0 - */ - export class TextEncoder { - /** - * The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`. - */ - readonly encoding: string; - /** - * UTF-8 encodes the `input` string and returns a `Uint8Array` containing the - * encoded bytes. - * @param [input='an empty string'] The text to encode. - */ - encode(input?: string): Uint8Array; - /** - * UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object - * containing the read Unicode code units and written UTF-8 bytes. - * - * ```js - * const encoder = new TextEncoder(); - * const src = 'this is some data'; - * const dest = new Uint8Array(10); - * const { read, written } = encoder.encodeInto(src, dest); - * ``` - * @param src The text to encode. - * @param dest The array to hold the encode result. - */ - encodeInto(src: string, dest: Uint8Array): EncodeIntoResult; - } -} -declare module 'util/types' { - export * from 'util/types'; -} -declare module 'util/types' { - import { KeyObject, webcrypto } from 'node:crypto'; - /** - * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) - * or[`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. - * - * See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`. - * - * ```js - * util.types.isAnyArrayBuffer(new ArrayBuffer()); // Returns true - * util.types.isAnyArrayBuffer(new SharedArrayBuffer()); // Returns true - * ``` - * @since v10.0.0 - */ - function isAnyArrayBuffer(object: unknown): object is ArrayBufferLike; - /** - * Returns `true` if the value is an `arguments` object. - * - * ```js - * function foo() { - * util.types.isArgumentsObject(arguments); // Returns true - * } - * ``` - * @since v10.0.0 - */ - function isArgumentsObject(object: unknown): object is IArguments; - /** - * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instance. - * This does _not_ include [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances. Usually, it is - * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. - * - * ```js - * util.types.isArrayBuffer(new ArrayBuffer()); // Returns true - * util.types.isArrayBuffer(new SharedArrayBuffer()); // Returns false - * ``` - * @since v10.0.0 - */ - function isArrayBuffer(object: unknown): object is ArrayBuffer; - /** - * Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)views, such as typed array - * objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent - * to[`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * - * ```js - * util.types.isArrayBufferView(new Int8Array()); // true - * util.types.isArrayBufferView(Buffer.from('hello world')); // true - * util.types.isArrayBufferView(new DataView(new ArrayBuffer(16))); // true - * util.types.isArrayBufferView(new ArrayBuffer()); // false - * ``` - * @since v10.0.0 - */ - function isArrayBufferView(object: unknown): object is NodeJS.ArrayBufferView; - /** - * Returns `true` if the value is an [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function). - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * util.types.isAsyncFunction(function foo() {}); // Returns false - * util.types.isAsyncFunction(async function foo() {}); // Returns true - * ``` - * @since v10.0.0 - */ - function isAsyncFunction(object: unknown): boolean; - /** - * Returns `true` if the value is a `BigInt64Array` instance. - * - * ```js - * util.types.isBigInt64Array(new BigInt64Array()); // Returns true - * util.types.isBigInt64Array(new BigUint64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isBigInt64Array(value: unknown): value is BigInt64Array; - /** - * Returns `true` if the value is a `BigUint64Array` instance. - * - * ```js - * util.types.isBigUint64Array(new BigInt64Array()); // Returns false - * util.types.isBigUint64Array(new BigUint64Array()); // Returns true - * ``` - * @since v10.0.0 - */ - function isBigUint64Array(value: unknown): value is BigUint64Array; - /** - * Returns `true` if the value is a boolean object, e.g. created - * by `new Boolean()`. - * - * ```js - * util.types.isBooleanObject(false); // Returns false - * util.types.isBooleanObject(true); // Returns false - * util.types.isBooleanObject(new Boolean(false)); // Returns true - * util.types.isBooleanObject(new Boolean(true)); // Returns true - * util.types.isBooleanObject(Boolean(false)); // Returns false - * util.types.isBooleanObject(Boolean(true)); // Returns false - * ``` - * @since v10.0.0 - */ - function isBooleanObject(object: unknown): object is Boolean; - /** - * Returns `true` if the value is any boxed primitive object, e.g. created - * by `new Boolean()`, `new String()` or `Object(Symbol())`. - * - * For example: - * - * ```js - * util.types.isBoxedPrimitive(false); // Returns false - * util.types.isBoxedPrimitive(new Boolean(false)); // Returns true - * util.types.isBoxedPrimitive(Symbol('foo')); // Returns false - * util.types.isBoxedPrimitive(Object(Symbol('foo'))); // Returns true - * util.types.isBoxedPrimitive(Object(BigInt(5))); // Returns true - * ``` - * @since v10.11.0 - */ - function isBoxedPrimitive(object: unknown): object is String | Number | BigInt | Boolean | Symbol; - /** - * Returns `true` if the value is a built-in [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) instance. - * - * ```js - * const ab = new ArrayBuffer(20); - * util.types.isDataView(new DataView(ab)); // Returns true - * util.types.isDataView(new Float64Array()); // Returns false - * ``` - * - * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * @since v10.0.0 - */ - function isDataView(object: unknown): object is DataView; - /** - * Returns `true` if the value is a built-in [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. - * - * ```js - * util.types.isDate(new Date()); // Returns true - * ``` - * @since v10.0.0 - */ - function isDate(object: unknown): object is Date; - /** - * Returns `true` if the value is a native `External` value. - * - * A native `External` value is a special type of object that contains a - * raw C++ pointer (`void*`) for access from native code, and has no other - * properties. Such objects are created either by Node.js internals or native - * addons. In JavaScript, they are [frozen](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) objects with a`null` prototype. - * - * ```c - * #include - * #include - * napi_value result; - * static napi_value MyNapi(napi_env env, napi_callback_info info) { - * int* raw = (int*) malloc(1024); - * napi_status status = napi_create_external(env, (void*) raw, NULL, NULL, &result); - * if (status != napi_ok) { - * napi_throw_error(env, NULL, "napi_create_external failed"); - * return NULL; - * } - * return result; - * } - * ... - * DECLARE_NAPI_PROPERTY("myNapi", MyNapi) - * ... - * ``` - * - * ```js - * const native = require('napi_addon.node'); - * const data = native.myNapi(); - * util.types.isExternal(data); // returns true - * util.types.isExternal(0); // returns false - * util.types.isExternal(new String('foo')); // returns false - * ``` - * - * For further information on `napi_create_external`, refer to `napi_create_external()`. - * @since v10.0.0 - */ - function isExternal(object: unknown): boolean; - /** - * Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance. - * - * ```js - * util.types.isFloat32Array(new ArrayBuffer()); // Returns false - * util.types.isFloat32Array(new Float32Array()); // Returns true - * util.types.isFloat32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isFloat32Array(object: unknown): object is Float32Array; - /** - * Returns `true` if the value is a built-in [`Float64Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array) instance. - * - * ```js - * util.types.isFloat64Array(new ArrayBuffer()); // Returns false - * util.types.isFloat64Array(new Uint8Array()); // Returns false - * util.types.isFloat64Array(new Float64Array()); // Returns true - * ``` - * @since v10.0.0 - */ - function isFloat64Array(object: unknown): object is Float64Array; - /** - * Returns `true` if the value is a generator function. - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * util.types.isGeneratorFunction(function foo() {}); // Returns false - * util.types.isGeneratorFunction(function* foo() {}); // Returns true - * ``` - * @since v10.0.0 - */ - function isGeneratorFunction(object: unknown): object is GeneratorFunction; - /** - * Returns `true` if the value is a generator object as returned from a - * built-in generator function. - * This only reports back what the JavaScript engine is seeing; - * in particular, the return value may not match the original source code if - * a transpilation tool was used. - * - * ```js - * function* foo() {} - * const generator = foo(); - * util.types.isGeneratorObject(generator); // Returns true - * ``` - * @since v10.0.0 - */ - function isGeneratorObject(object: unknown): object is Generator; - /** - * Returns `true` if the value is a built-in [`Int8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array) instance. - * - * ```js - * util.types.isInt8Array(new ArrayBuffer()); // Returns false - * util.types.isInt8Array(new Int8Array()); // Returns true - * util.types.isInt8Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt8Array(object: unknown): object is Int8Array; - /** - * Returns `true` if the value is a built-in [`Int16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array) instance. - * - * ```js - * util.types.isInt16Array(new ArrayBuffer()); // Returns false - * util.types.isInt16Array(new Int16Array()); // Returns true - * util.types.isInt16Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt16Array(object: unknown): object is Int16Array; - /** - * Returns `true` if the value is a built-in [`Int32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array) instance. - * - * ```js - * util.types.isInt32Array(new ArrayBuffer()); // Returns false - * util.types.isInt32Array(new Int32Array()); // Returns true - * util.types.isInt32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isInt32Array(object: unknown): object is Int32Array; - /** - * Returns `true` if the value is a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. - * - * ```js - * util.types.isMap(new Map()); // Returns true - * ``` - * @since v10.0.0 - */ - function isMap(object: T | {}): object is T extends ReadonlyMap ? (unknown extends T ? never : ReadonlyMap) : Map; - /** - * Returns `true` if the value is an iterator returned for a built-in[`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. - * - * ```js - * const map = new Map(); - * util.types.isMapIterator(map.keys()); // Returns true - * util.types.isMapIterator(map.values()); // Returns true - * util.types.isMapIterator(map.entries()); // Returns true - * util.types.isMapIterator(map[Symbol.iterator]()); // Returns true - * ``` - * @since v10.0.0 - */ - function isMapIterator(object: unknown): boolean; - /** - * Returns `true` if the value is an instance of a [Module Namespace Object](https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects). - * - * ```js - * import * as ns from './a.js'; - * - * util.types.isModuleNamespaceObject(ns); // Returns true - * ``` - * @since v10.0.0 - */ - function isModuleNamespaceObject(value: unknown): boolean; - /** - * Returns `true` if the value is an instance of a built-in `Error` type. - * - * ```js - * util.types.isNativeError(new Error()); // Returns true - * util.types.isNativeError(new TypeError()); // Returns true - * util.types.isNativeError(new RangeError()); // Returns true - * ``` - * @since v10.0.0 - */ - function isNativeError(object: unknown): object is Error; - /** - * Returns `true` if the value is a number object, e.g. created - * by `new Number()`. - * - * ```js - * util.types.isNumberObject(0); // Returns false - * util.types.isNumberObject(new Number(0)); // Returns true - * ``` - * @since v10.0.0 - */ - function isNumberObject(object: unknown): object is Number; - /** - * Returns `true` if the value is a built-in [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). - * - * ```js - * util.types.isPromise(Promise.resolve(42)); // Returns true - * ``` - * @since v10.0.0 - */ - function isPromise(object: unknown): object is Promise; - /** - * Returns `true` if the value is a [`Proxy`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instance. - * - * ```js - * const target = {}; - * const proxy = new Proxy(target, {}); - * util.types.isProxy(target); // Returns false - * util.types.isProxy(proxy); // Returns true - * ``` - * @since v10.0.0 - */ - function isProxy(object: unknown): boolean; - /** - * Returns `true` if the value is a regular expression object. - * - * ```js - * util.types.isRegExp(/abc/); // Returns true - * util.types.isRegExp(new RegExp('abc')); // Returns true - * ``` - * @since v10.0.0 - */ - function isRegExp(object: unknown): object is RegExp; - /** - * Returns `true` if the value is a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. - * - * ```js - * util.types.isSet(new Set()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSet(object: T | {}): object is T extends ReadonlySet ? (unknown extends T ? never : ReadonlySet) : Set; - /** - * Returns `true` if the value is an iterator returned for a built-in[`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. - * - * ```js - * const set = new Set(); - * util.types.isSetIterator(set.keys()); // Returns true - * util.types.isSetIterator(set.values()); // Returns true - * util.types.isSetIterator(set.entries()); // Returns true - * util.types.isSetIterator(set[Symbol.iterator]()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSetIterator(object: unknown): boolean; - /** - * Returns `true` if the value is a built-in [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. - * This does _not_ include [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instances. Usually, it is - * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. - * - * ```js - * util.types.isSharedArrayBuffer(new ArrayBuffer()); // Returns false - * util.types.isSharedArrayBuffer(new SharedArrayBuffer()); // Returns true - * ``` - * @since v10.0.0 - */ - function isSharedArrayBuffer(object: unknown): object is SharedArrayBuffer; - /** - * Returns `true` if the value is a string object, e.g. created - * by `new String()`. - * - * ```js - * util.types.isStringObject('foo'); // Returns false - * util.types.isStringObject(new String('foo')); // Returns true - * ``` - * @since v10.0.0 - */ - function isStringObject(object: unknown): object is String; - /** - * Returns `true` if the value is a symbol object, created - * by calling `Object()` on a `Symbol` primitive. - * - * ```js - * const symbol = Symbol('foo'); - * util.types.isSymbolObject(symbol); // Returns false - * util.types.isSymbolObject(Object(symbol)); // Returns true - * ``` - * @since v10.0.0 - */ - function isSymbolObject(object: unknown): object is Symbol; - /** - * Returns `true` if the value is a built-in [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance. - * - * ```js - * util.types.isTypedArray(new ArrayBuffer()); // Returns false - * util.types.isTypedArray(new Uint8Array()); // Returns true - * util.types.isTypedArray(new Float64Array()); // Returns true - * ``` - * - * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). - * @since v10.0.0 - */ - function isTypedArray(object: unknown): object is NodeJS.TypedArray; - /** - * Returns `true` if the value is a built-in [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) instance. - * - * ```js - * util.types.isUint8Array(new ArrayBuffer()); // Returns false - * util.types.isUint8Array(new Uint8Array()); // Returns true - * util.types.isUint8Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint8Array(object: unknown): object is Uint8Array; - /** - * Returns `true` if the value is a built-in [`Uint8ClampedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray) instance. - * - * ```js - * util.types.isUint8ClampedArray(new ArrayBuffer()); // Returns false - * util.types.isUint8ClampedArray(new Uint8ClampedArray()); // Returns true - * util.types.isUint8ClampedArray(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint8ClampedArray(object: unknown): object is Uint8ClampedArray; - /** - * Returns `true` if the value is a built-in [`Uint16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array) instance. - * - * ```js - * util.types.isUint16Array(new ArrayBuffer()); // Returns false - * util.types.isUint16Array(new Uint16Array()); // Returns true - * util.types.isUint16Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint16Array(object: unknown): object is Uint16Array; - /** - * Returns `true` if the value is a built-in [`Uint32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array) instance. - * - * ```js - * util.types.isUint32Array(new ArrayBuffer()); // Returns false - * util.types.isUint32Array(new Uint32Array()); // Returns true - * util.types.isUint32Array(new Float64Array()); // Returns false - * ``` - * @since v10.0.0 - */ - function isUint32Array(object: unknown): object is Uint32Array; - /** - * Returns `true` if the value is a built-in [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) instance. - * - * ```js - * util.types.isWeakMap(new WeakMap()); // Returns true - * ``` - * @since v10.0.0 - */ - function isWeakMap(object: unknown): object is WeakMap; - /** - * Returns `true` if the value is a built-in [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) instance. - * - * ```js - * util.types.isWeakSet(new WeakSet()); // Returns true - * ``` - * @since v10.0.0 - */ - function isWeakSet(object: unknown): object is WeakSet; - /** - * Returns `true` if `value` is a `KeyObject`, `false` otherwise. - * @since v16.2.0 - */ - function isKeyObject(object: unknown): object is KeyObject; - /** - * Returns `true` if `value` is a `CryptoKey`, `false` otherwise. - * @since v16.2.0 - */ - function isCryptoKey(object: unknown): object is webcrypto.CryptoKey; -} -declare module 'node:util' { - export * from 'util'; -} -declare module 'node:util/types' { - export * from 'util/types'; -} diff --git a/WechatBot/node_modules/@types/node/v8.d.ts b/WechatBot/node_modules/@types/node/v8.d.ts deleted file mode 100644 index 35e233dc6..000000000 --- a/WechatBot/node_modules/@types/node/v8.d.ts +++ /dev/null @@ -1,378 +0,0 @@ -/** - * The `v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/)built into the Node.js binary. It can be accessed using: - * - * ```js - * const v8 = require('v8'); - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/v8.js) - */ -declare module 'v8' { - import { Readable } from 'node:stream'; - interface HeapSpaceInfo { - space_name: string; - space_size: number; - space_used_size: number; - space_available_size: number; - physical_space_size: number; - } - // ** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */ - type DoesZapCodeSpaceFlag = 0 | 1; - interface HeapInfo { - total_heap_size: number; - total_heap_size_executable: number; - total_physical_size: number; - total_available_size: number; - used_heap_size: number; - heap_size_limit: number; - malloced_memory: number; - peak_malloced_memory: number; - does_zap_garbage: DoesZapCodeSpaceFlag; - number_of_native_contexts: number; - number_of_detached_contexts: number; - } - interface HeapCodeStatistics { - code_and_metadata_size: number; - bytecode_and_metadata_size: number; - external_script_source_size: number; - } - /** - * Returns an integer representing a version tag derived from the V8 version, - * command-line flags, and detected CPU features. This is useful for determining - * whether a `vm.Script` `cachedData` buffer is compatible with this instance - * of V8. - * - * ```js - * console.log(v8.cachedDataVersionTag()); // 3947234607 - * // The value returned by v8.cachedDataVersionTag() is derived from the V8 - * // version, command-line flags, and detected CPU features. Test that the value - * // does indeed update when flags are toggled. - * v8.setFlagsFromString('--allow_natives_syntax'); - * console.log(v8.cachedDataVersionTag()); // 183726201 - * ``` - * @since v8.0.0 - */ - function cachedDataVersionTag(): number; - /** - * Returns an object with the following properties: - * - * `does_zap_garbage` is a 0/1 boolean, which signifies whether the`--zap_code_space` option is enabled or not. This makes V8 overwrite heap - * garbage with a bit pattern. The RSS footprint (resident set size) gets bigger - * because it continuously touches all heap pages and that makes them less likely - * to get swapped out by the operating system. - * - * `number_of_native_contexts` The value of native\_context is the number of the - * top-level contexts currently active. Increase of this number over time indicates - * a memory leak. - * - * `number_of_detached_contexts` The value of detached\_context is the number - * of contexts that were detached and not yet garbage collected. This number - * being non-zero indicates a potential memory leak. - * - * ```js - * { - * total_heap_size: 7326976, - * total_heap_size_executable: 4194304, - * total_physical_size: 7326976, - * total_available_size: 1152656, - * used_heap_size: 3476208, - * heap_size_limit: 1535115264, - * malloced_memory: 16384, - * peak_malloced_memory: 1127496, - * does_zap_garbage: 0, - * number_of_native_contexts: 1, - * number_of_detached_contexts: 0 - * } - * ``` - * @since v1.0.0 - */ - function getHeapStatistics(): HeapInfo; - /** - * Returns statistics about the V8 heap spaces, i.e. the segments which make up - * the V8 heap. Neither the ordering of heap spaces, nor the availability of a - * heap space can be guaranteed as the statistics are provided via the - * V8[`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the - * next. - * - * The value returned is an array of objects containing the following properties: - * - * ```json - * [ - * { - * "space_name": "new_space", - * "space_size": 2063872, - * "space_used_size": 951112, - * "space_available_size": 80824, - * "physical_space_size": 2063872 - * }, - * { - * "space_name": "old_space", - * "space_size": 3090560, - * "space_used_size": 2493792, - * "space_available_size": 0, - * "physical_space_size": 3090560 - * }, - * { - * "space_name": "code_space", - * "space_size": 1260160, - * "space_used_size": 644256, - * "space_available_size": 960, - * "physical_space_size": 1260160 - * }, - * { - * "space_name": "map_space", - * "space_size": 1094160, - * "space_used_size": 201608, - * "space_available_size": 0, - * "physical_space_size": 1094160 - * }, - * { - * "space_name": "large_object_space", - * "space_size": 0, - * "space_used_size": 0, - * "space_available_size": 1490980608, - * "physical_space_size": 0 - * } - * ] - * ``` - * @since v6.0.0 - */ - function getHeapSpaceStatistics(): HeapSpaceInfo[]; - /** - * The `v8.setFlagsFromString()` method can be used to programmatically set - * V8 command-line flags. This method should be used with care. Changing settings - * after the VM has started may result in unpredictable behavior, including - * crashes and data loss; or it may simply do nothing. - * - * The V8 options available for a version of Node.js may be determined by running`node --v8-options`. - * - * Usage: - * - * ```js - * // Print GC events to stdout for one minute. - * const v8 = require('v8'); - * v8.setFlagsFromString('--trace_gc'); - * setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3); - * ``` - * @since v1.0.0 - */ - function setFlagsFromString(flags: string): void; - /** - * Generates a snapshot of the current V8 heap and returns a Readable - * Stream that may be used to read the JSON serialized representation. - * This JSON stream format is intended to be used with tools such as - * Chrome DevTools. The JSON schema is undocumented and specific to the - * V8 engine. Therefore, the schema may change from one version of V8 to the next. - * - * ```js - * // Print heap snapshot to the console - * const v8 = require('v8'); - * const stream = v8.getHeapSnapshot(); - * stream.pipe(process.stdout); - * ``` - * @since v11.13.0 - * @return A Readable Stream containing the V8 heap snapshot - */ - function getHeapSnapshot(): Readable; - /** - * Generates a snapshot of the current V8 heap and writes it to a JSON - * file. This file is intended to be used with tools such as Chrome - * DevTools. The JSON schema is undocumented and specific to the V8 - * engine, and may change from one version of V8 to the next. - * - * A heap snapshot is specific to a single V8 isolate. When using `worker threads`, a heap snapshot generated from the main thread will - * not contain any information about the workers, and vice versa. - * - * ```js - * const { writeHeapSnapshot } = require('v8'); - * const { - * Worker, - * isMainThread, - * parentPort - * } = require('worker_threads'); - * - * if (isMainThread) { - * const worker = new Worker(__filename); - * - * worker.once('message', (filename) => { - * console.log(`worker heapdump: ${filename}`); - * // Now get a heapdump for the main thread. - * console.log(`main thread heapdump: ${writeHeapSnapshot()}`); - * }); - * - * // Tell the worker to create a heapdump. - * worker.postMessage('heapdump'); - * } else { - * parentPort.once('message', (message) => { - * if (message === 'heapdump') { - * // Generate a heapdump for the worker - * // and return the filename to the parent. - * parentPort.postMessage(writeHeapSnapshot()); - * } - * }); - * } - * ``` - * @since v11.13.0 - * @param filename The file path where the V8 heap snapshot is to be saved. If not specified, a file name with the pattern `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be - * generated, where `{pid}` will be the PID of the Node.js process, `{thread_id}` will be `0` when `writeHeapSnapshot()` is called from the main Node.js thread or the id of a - * worker thread. - * @return The filename where the snapshot was saved. - */ - function writeHeapSnapshot(filename?: string): string; - /** - * Returns an object with the following properties: - * - * ```js - * { - * code_and_metadata_size: 212208, - * bytecode_and_metadata_size: 161368, - * external_script_source_size: 1410794 - * } - * ``` - * @since v12.8.0 - */ - function getHeapCodeStatistics(): HeapCodeStatistics; - /** - * @since v8.0.0 - */ - class Serializer { - /** - * Writes out a header, which includes the serialization format version. - */ - writeHeader(): void; - /** - * Serializes a JavaScript value and adds the serialized representation to the - * internal buffer. - * - * This throws an error if `value` cannot be serialized. - */ - writeValue(val: any): boolean; - /** - * Returns the stored internal buffer. This serializer should not be used once - * the buffer is released. Calling this method results in undefined behavior - * if a previous write has failed. - */ - releaseBuffer(): Buffer; - /** - * Marks an `ArrayBuffer` as having its contents transferred out of band. - * Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`. - * @param id A 32-bit unsigned integer. - * @param arrayBuffer An `ArrayBuffer` instance. - */ - transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; - /** - * Write a raw 32-bit unsigned integer. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeUint32(value: number): void; - /** - * Write a raw 64-bit unsigned integer, split into high and low 32-bit parts. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeUint64(hi: number, lo: number): void; - /** - * Write a JS `number` value. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeDouble(value: number): void; - /** - * Write raw bytes into the serializer’s internal buffer. The deserializer - * will require a way to compute the length of the buffer. - * For use inside of a custom `serializer._writeHostObject()`. - */ - writeRawBytes(buffer: NodeJS.TypedArray): void; - } - /** - * A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only - * stores the part of their underlying `ArrayBuffer`s that they are referring to. - * @since v8.0.0 - */ - class DefaultSerializer extends Serializer {} - /** - * @since v8.0.0 - */ - class Deserializer { - constructor(data: NodeJS.TypedArray); - /** - * Reads and validates a header (including the format version). - * May, for example, reject an invalid or unsupported wire format. In that case, - * an `Error` is thrown. - */ - readHeader(): boolean; - /** - * Deserializes a JavaScript value from the buffer and returns it. - */ - readValue(): any; - /** - * Marks an `ArrayBuffer` as having its contents transferred out of band. - * Pass the corresponding `ArrayBuffer` in the serializing context to `serializer.transferArrayBuffer()` (or return the `id` from `serializer._getSharedArrayBufferId()` in the case of - * `SharedArrayBuffer`s). - * @param id A 32-bit unsigned integer. - * @param arrayBuffer An `ArrayBuffer` instance. - */ - transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; - /** - * Reads the underlying wire format version. Likely mostly to be useful to - * legacy code reading old wire format versions. May not be called before`.readHeader()`. - */ - getWireFormatVersion(): number; - /** - * Read a raw 32-bit unsigned integer and return it. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readUint32(): number; - /** - * Read a raw 64-bit unsigned integer and return it as an array `[hi, lo]`with two 32-bit unsigned integer entries. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readUint64(): [number, number]; - /** - * Read a JS `number` value. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readDouble(): number; - /** - * Read raw bytes from the deserializer’s internal buffer. The `length` parameter - * must correspond to the length of the buffer that was passed to `serializer.writeRawBytes()`. - * For use inside of a custom `deserializer._readHostObject()`. - */ - readRawBytes(length: number): Buffer; - } - /** - * A subclass of `Deserializer` corresponding to the format written by `DefaultSerializer`. - * @since v8.0.0 - */ - class DefaultDeserializer extends Deserializer {} - /** - * Uses a `DefaultSerializer` to serialize `value` into a buffer. - * @since v8.0.0 - */ - function serialize(value: any): Buffer; - /** - * Uses a `DefaultDeserializer` with default options to read a JS value - * from a buffer. - * @since v8.0.0 - * @param buffer A buffer returned by {@link serialize}. - */ - function deserialize(buffer: NodeJS.TypedArray): any; - /** - * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple - * times during the lifetime of the process. Each time the execution counter will - * be reset and a new coverage report will be written to the directory specified - * by `NODE_V8_COVERAGE`. - * - * When the process is about to exit, one last coverage will still be written to - * disk unless {@link stopCoverage} is invoked before the process exits. - * @since v15.1.0, v12.22.0 - */ - function takeCoverage(): void; - /** - * The `v8.stopCoverage()` method allows the user to stop the coverage collection - * started by `NODE_V8_COVERAGE`, so that V8 can release the execution count - * records and optimize code. This can be used in conjunction with {@link takeCoverage} if the user wants to collect the coverage on demand. - * @since v15.1.0, v12.22.0 - */ - function stopCoverage(): void; -} -declare module 'node:v8' { - export * from 'v8'; -} diff --git a/WechatBot/node_modules/@types/node/vm.d.ts b/WechatBot/node_modules/@types/node/vm.d.ts deleted file mode 100644 index 48d1fc89c..000000000 --- a/WechatBot/node_modules/@types/node/vm.d.ts +++ /dev/null @@ -1,508 +0,0 @@ -/** - * The `vm` module enables compiling and running code within V8 Virtual - * Machine contexts. **The `vm` module is not a security mechanism. Do** - * **not use it to run untrusted code.** - * - * JavaScript code can be compiled and run immediately or - * compiled, saved, and run later. - * - * A common use case is to run the code in a different V8 Context. This means - * invoked code has a different global object than the invoking code. - * - * One can provide the context by `contextifying` an - * object. The invoked code treats any property in the context like a - * global variable. Any changes to global variables caused by the invoked - * code are reflected in the context object. - * - * ```js - * const vm = require('vm'); - * - * const x = 1; - * - * const context = { x: 2 }; - * vm.createContext(context); // Contextify the object. - * - * const code = 'x += 40; var y = 17;'; - * // `x` and `y` are global variables in the context. - * // Initially, x has the value 2 because that is the value of context.x. - * vm.runInContext(code, context); - * - * console.log(context.x); // 42 - * console.log(context.y); // 17 - * - * console.log(x); // 1; y is not defined. - * ``` - * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/vm.js) - */ -declare module 'vm' { - interface Context extends NodeJS.Dict {} - interface BaseOptions { - /** - * Specifies the filename used in stack traces produced by this script. - * Default: `''`. - */ - filename?: string | undefined; - /** - * Specifies the line number offset that is displayed in stack traces produced by this script. - * Default: `0`. - */ - lineOffset?: number | undefined; - /** - * Specifies the column number offset that is displayed in stack traces produced by this script. - * @default 0 - */ - columnOffset?: number | undefined; - } - interface ScriptOptions extends BaseOptions { - displayErrors?: boolean | undefined; - timeout?: number | undefined; - cachedData?: Buffer | undefined; - /** @deprecated in favor of `script.createCachedData()` */ - produceCachedData?: boolean | undefined; - } - interface RunningScriptOptions extends BaseOptions { - /** - * When `true`, if an `Error` occurs while compiling the `code`, the line of code causing the error is attached to the stack trace. - * Default: `true`. - */ - displayErrors?: boolean | undefined; - /** - * Specifies the number of milliseconds to execute code before terminating execution. - * If execution is terminated, an `Error` will be thrown. This value must be a strictly positive integer. - */ - timeout?: number | undefined; - /** - * If `true`, the execution will be terminated when `SIGINT` (Ctrl+C) is received. - * Existing handlers for the event that have been attached via `process.on('SIGINT')` will be disabled during script execution, but will continue to work after that. - * If execution is terminated, an `Error` will be thrown. - * Default: `false`. - */ - breakOnSigint?: boolean | undefined; - /** - * If set to `afterEvaluate`, microtasks will be run immediately after the script has run. - */ - microtaskMode?: 'afterEvaluate' | undefined; - } - interface CompileFunctionOptions extends BaseOptions { - /** - * Provides an optional data with V8's code cache data for the supplied source. - */ - cachedData?: Buffer | undefined; - /** - * Specifies whether to produce new cache data. - * Default: `false`, - */ - produceCachedData?: boolean | undefined; - /** - * The sandbox/context in which the said function should be compiled in. - */ - parsingContext?: Context | undefined; - /** - * An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling - */ - contextExtensions?: Object[] | undefined; - } - interface CreateContextOptions { - /** - * Human-readable name of the newly created context. - * @default 'VM Context i' Where i is an ascending numerical index of the created context. - */ - name?: string | undefined; - /** - * Corresponds to the newly created context for display purposes. - * The origin should be formatted like a `URL`, but with only the scheme, host, and port (if necessary), - * like the value of the `url.origin` property of a URL object. - * Most notably, this string should omit the trailing slash, as that denotes a path. - * @default '' - */ - origin?: string | undefined; - codeGeneration?: - | { - /** - * If set to false any calls to eval or function constructors (Function, GeneratorFunction, etc) - * will throw an EvalError. - * @default true - */ - strings?: boolean | undefined; - /** - * If set to false any attempt to compile a WebAssembly module will throw a WebAssembly.CompileError. - * @default true - */ - wasm?: boolean | undefined; - } - | undefined; - /** - * If set to `afterEvaluate`, microtasks will be run immediately after the script has run. - */ - microtaskMode?: 'afterEvaluate' | undefined; - } - type MeasureMemoryMode = 'summary' | 'detailed'; - interface MeasureMemoryOptions { - /** - * @default 'summary' - */ - mode?: MeasureMemoryMode | undefined; - context?: Context | undefined; - } - interface MemoryMeasurement { - total: { - jsMemoryEstimate: number; - jsMemoryRange: [number, number]; - }; - } - /** - * Instances of the `vm.Script` class contain precompiled scripts that can be - * executed in specific contexts. - * @since v0.3.1 - */ - class Script { - constructor(code: string, options?: ScriptOptions); - /** - * Runs the compiled code contained by the `vm.Script` object within the given`contextifiedObject` and returns the result. Running code does not have access - * to local scope. - * - * The following example compiles code that increments a global variable, sets - * the value of another global variable, then execute the code multiple times. - * The globals are contained in the `context` object. - * - * ```js - * const vm = require('vm'); - * - * const context = { - * animal: 'cat', - * count: 2 - * }; - * - * const script = new vm.Script('count += 1; name = "kitty";'); - * - * vm.createContext(context); - * for (let i = 0; i < 10; ++i) { - * script.runInContext(context); - * } - * - * console.log(context); - * // Prints: { animal: 'cat', count: 12, name: 'kitty' } - * ``` - * - * Using the `timeout` or `breakOnSigint` options will result in new event loops - * and corresponding threads being started, which have a non-zero performance - * overhead. - * @since v0.3.1 - * @param contextifiedObject A `contextified` object as returned by the `vm.createContext()` method. - * @return the result of the very last statement executed in the script. - */ - runInContext(contextifiedObject: Context, options?: RunningScriptOptions): any; - /** - * First contextifies the given `contextObject`, runs the compiled code contained - * by the `vm.Script` object within the created context, and returns the result. - * Running code does not have access to local scope. - * - * The following example compiles code that sets a global variable, then executes - * the code multiple times in different contexts. The globals are set on and - * contained within each individual `context`. - * - * ```js - * const vm = require('vm'); - * - * const script = new vm.Script('globalVar = "set"'); - * - * const contexts = [{}, {}, {}]; - * contexts.forEach((context) => { - * script.runInNewContext(context); - * }); - * - * console.log(contexts); - * // Prints: [{ globalVar: 'set' }, { globalVar: 'set' }, { globalVar: 'set' }] - * ``` - * @since v0.3.1 - * @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created. - * @return the result of the very last statement executed in the script. - */ - runInNewContext(contextObject?: Context, options?: RunningScriptOptions): any; - /** - * Runs the compiled code contained by the `vm.Script` within the context of the - * current `global` object. Running code does not have access to local scope, but_does_ have access to the current `global` object. - * - * The following example compiles code that increments a `global` variable then - * executes that code multiple times: - * - * ```js - * const vm = require('vm'); - * - * global.globalVar = 0; - * - * const script = new vm.Script('globalVar += 1', { filename: 'myfile.vm' }); - * - * for (let i = 0; i < 1000; ++i) { - * script.runInThisContext(); - * } - * - * console.log(globalVar); - * - * // 1000 - * ``` - * @since v0.3.1 - * @return the result of the very last statement executed in the script. - */ - runInThisContext(options?: RunningScriptOptions): any; - /** - * Creates a code cache that can be used with the `Script` constructor's`cachedData` option. Returns a `Buffer`. This method may be called at any - * time and any number of times. - * - * ```js - * const script = new vm.Script(` - * function add(a, b) { - * return a + b; - * } - * - * const x = add(1, 2); - * `); - * - * const cacheWithoutX = script.createCachedData(); - * - * script.runInThisContext(); - * - * const cacheWithX = script.createCachedData(); - * ``` - * @since v10.6.0 - */ - createCachedData(): Buffer; - - /** @deprecated in favor of `script.createCachedData()` */ - cachedDataProduced?: boolean | undefined; - cachedDataRejected?: boolean | undefined; - cachedData?: Buffer | undefined; - } - /** - * If given a `contextObject`, the `vm.createContext()` method will `prepare - * that object` so that it can be used in calls to {@link runInContext} or `script.runInContext()`. Inside such scripts, - * the `contextObject` will be the global object, retaining all of its existing - * properties but also having the built-in objects and functions any standard[global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global variables - * will remain unchanged. - * - * ```js - * const vm = require('vm'); - * - * global.globalVar = 3; - * - * const context = { globalVar: 1 }; - * vm.createContext(context); - * - * vm.runInContext('globalVar *= 2;', context); - * - * console.log(context); - * // Prints: { globalVar: 2 } - * - * console.log(global.globalVar); - * // Prints: 3 - * ``` - * - * If `contextObject` is omitted (or passed explicitly as `undefined`), a new, - * empty `contextified` object will be returned. - * - * The `vm.createContext()` method is primarily useful for creating a single - * context that can be used to run multiple scripts. For instance, if emulating a - * web browser, the method can be used to create a single context representing a - * window's global object, then run all `` - -[Get supported base64-js with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-base64-js?utm_source=npm-base64-js&utm_medium=referral&utm_campaign=readme) - -## methods - -`base64js` has three exposed functions, `byteLength`, `toByteArray` and `fromByteArray`, which both take a single argument. - -* `byteLength` - Takes a base64 string and returns length of byte array -* `toByteArray` - Takes a base64 string and returns a byte array -* `fromByteArray` - Takes a byte array and returns a base64 string - -## license - -MIT diff --git a/WechatBot/node_modules/base64-js/base64js.min.js b/WechatBot/node_modules/base64-js/base64js.min.js deleted file mode 100755 index 908ac83fd..000000000 --- a/WechatBot/node_modules/base64-js/base64js.min.js +++ /dev/null @@ -1 +0,0 @@ -(function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,b.base64js=a()}})(function(){return function(){function b(d,e,g){function a(j,i){if(!e[j]){if(!d[j]){var f="function"==typeof require&&require;if(!i&&f)return f(j,!0);if(h)return h(j,!0);var c=new Error("Cannot find module '"+j+"'");throw c.code="MODULE_NOT_FOUND",c}var k=e[j]={exports:{}};d[j][0].call(k.exports,function(b){var c=d[j][1][b];return a(c||b)},k,k.exports,b,d,e,g)}return e[j].exports}for(var h="function"==typeof require&&require,c=0;c>16,j[k++]=255&b>>8,j[k++]=255&b;return 2===h&&(b=l[a.charCodeAt(c)]<<2|l[a.charCodeAt(c+1)]>>4,j[k++]=255&b),1===h&&(b=l[a.charCodeAt(c)]<<10|l[a.charCodeAt(c+1)]<<4|l[a.charCodeAt(c+2)]>>2,j[k++]=255&b>>8,j[k++]=255&b),j}function g(a){return k[63&a>>18]+k[63&a>>12]+k[63&a>>6]+k[63&a]}function h(a,b,c){for(var d,e=[],f=b;fj?j:g+f));return 1===d?(b=a[c-1],e.push(k[b>>2]+k[63&b<<4]+"==")):2===d&&(b=(a[c-2]<<8)+a[c-1],e.push(k[b>>10]+k[63&b>>4]+k[63&b<<2]+"=")),e.join("")}c.byteLength=function(a){var b=d(a),c=b[0],e=b[1];return 3*(c+e)/4-e},c.toByteArray=f,c.fromByteArray=j;for(var k=[],l=[],m="undefined"==typeof Uint8Array?Array:Uint8Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,p=n.length;o 0) { - throw new Error('Invalid string. Length must be a multiple of 4') - } - - // Trim off extra bytes after placeholder bytes are found - // See: https://github.com/beatgammit/base64-js/issues/42 - var validLen = b64.indexOf('=') - if (validLen === -1) validLen = len - - var placeHoldersLen = validLen === len - ? 0 - : 4 - (validLen % 4) - - return [validLen, placeHoldersLen] -} - -// base64 is 4/3 + up to two characters of the original data -function byteLength (b64) { - var lens = getLens(b64) - var validLen = lens[0] - var placeHoldersLen = lens[1] - return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen -} - -function _byteLength (b64, validLen, placeHoldersLen) { - return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen -} - -function toByteArray (b64) { - var tmp - var lens = getLens(b64) - var validLen = lens[0] - var placeHoldersLen = lens[1] - - var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)) - - var curByte = 0 - - // if there are placeholders, only get up to the last complete 4 chars - var len = placeHoldersLen > 0 - ? validLen - 4 - : validLen - - var i - for (i = 0; i < len; i += 4) { - tmp = - (revLookup[b64.charCodeAt(i)] << 18) | - (revLookup[b64.charCodeAt(i + 1)] << 12) | - (revLookup[b64.charCodeAt(i + 2)] << 6) | - revLookup[b64.charCodeAt(i + 3)] - arr[curByte++] = (tmp >> 16) & 0xFF - arr[curByte++] = (tmp >> 8) & 0xFF - arr[curByte++] = tmp & 0xFF - } - - if (placeHoldersLen === 2) { - tmp = - (revLookup[b64.charCodeAt(i)] << 2) | - (revLookup[b64.charCodeAt(i + 1)] >> 4) - arr[curByte++] = tmp & 0xFF - } - - if (placeHoldersLen === 1) { - tmp = - (revLookup[b64.charCodeAt(i)] << 10) | - (revLookup[b64.charCodeAt(i + 1)] << 4) | - (revLookup[b64.charCodeAt(i + 2)] >> 2) - arr[curByte++] = (tmp >> 8) & 0xFF - arr[curByte++] = tmp & 0xFF - } - - return arr -} - -function tripletToBase64 (num) { - return lookup[num >> 18 & 0x3F] + - lookup[num >> 12 & 0x3F] + - lookup[num >> 6 & 0x3F] + - lookup[num & 0x3F] -} - -function encodeChunk (uint8, start, end) { - var tmp - var output = [] - for (var i = start; i < end; i += 3) { - tmp = - ((uint8[i] << 16) & 0xFF0000) + - ((uint8[i + 1] << 8) & 0xFF00) + - (uint8[i + 2] & 0xFF) - output.push(tripletToBase64(tmp)) - } - return output.join('') -} - -function fromByteArray (uint8) { - var tmp - var len = uint8.length - var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes - var parts = [] - var maxChunkLength = 16383 // must be multiple of 3 - - // go through the array every three bytes, we'll deal with trailing stuff later - for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { - parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength))) - } - - // pad the end with zeros, but make sure to not forget the extra bytes - if (extraBytes === 1) { - tmp = uint8[len - 1] - parts.push( - lookup[tmp >> 2] + - lookup[(tmp << 4) & 0x3F] + - '==' - ) - } else if (extraBytes === 2) { - tmp = (uint8[len - 2] << 8) + uint8[len - 1] - parts.push( - lookup[tmp >> 10] + - lookup[(tmp >> 4) & 0x3F] + - lookup[(tmp << 2) & 0x3F] + - '=' - ) - } - - return parts.join('') -} diff --git a/WechatBot/node_modules/base64-js/package.json b/WechatBot/node_modules/base64-js/package.json deleted file mode 100644 index c3972e39f..000000000 --- a/WechatBot/node_modules/base64-js/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "base64-js", - "description": "Base64 encoding/decoding in pure JS", - "version": "1.5.1", - "author": "T. Jameson Little ", - "typings": "index.d.ts", - "bugs": { - "url": "https://github.com/beatgammit/base64-js/issues" - }, - "devDependencies": { - "babel-minify": "^0.5.1", - "benchmark": "^2.1.4", - "browserify": "^16.3.0", - "standard": "*", - "tape": "4.x" - }, - "homepage": "https://github.com/beatgammit/base64-js", - "keywords": [ - "base64" - ], - "license": "MIT", - "main": "index.js", - "repository": { - "type": "git", - "url": "git://github.com/beatgammit/base64-js.git" - }, - "scripts": { - "build": "browserify -s base64js -r ./ | minify > base64js.min.js", - "lint": "standard", - "test": "npm run lint && npm run unit", - "unit": "tape test/*.js" - }, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] -} diff --git a/WechatBot/node_modules/bindings/LICENSE.md b/WechatBot/node_modules/bindings/LICENSE.md deleted file mode 100644 index 5a92289f6..000000000 --- a/WechatBot/node_modules/bindings/LICENSE.md +++ /dev/null @@ -1,22 +0,0 @@ -(The MIT License) - -Copyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net> - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/WechatBot/node_modules/bindings/README.md b/WechatBot/node_modules/bindings/README.md deleted file mode 100644 index 5b3e7a81b..000000000 --- a/WechatBot/node_modules/bindings/README.md +++ /dev/null @@ -1,98 +0,0 @@ -node-bindings -============= -### Helper module for loading your native module's `.node` file - -This is a helper module for authors of Node.js native addon modules. -It is basically the "swiss army knife" of `require()`ing your native module's -`.node` file. - -Throughout the course of Node's native addon history, addons have ended up being -compiled in a variety of different places, depending on which build tool and which -version of node was used. To make matters worse, now the `gyp` build tool can -produce either a __Release__ or __Debug__ build, each being built into different -locations. - -This module checks _all_ the possible locations that a native addon would be built -at, and returns the first one that loads successfully. - - -Installation ------------- - -Install with `npm`: - -``` bash -$ npm install --save bindings -``` - -Or add it to the `"dependencies"` section of your `package.json` file. - - -Example -------- - -`require()`ing the proper bindings file for the current node version, platform -and architecture is as simple as: - -``` js -var bindings = require('bindings')('binding.node') - -// Use your bindings defined in your C files -bindings.your_c_function() -``` - - -Nice Error Output ------------------ - -When the `.node` file could not be loaded, `node-bindings` throws an Error with -a nice error message telling you exactly what was tried. You can also check the -`err.tries` Array property. - -``` -Error: Could not load the bindings file. Tried: - → /Users/nrajlich/ref/build/binding.node - → /Users/nrajlich/ref/build/Debug/binding.node - → /Users/nrajlich/ref/build/Release/binding.node - → /Users/nrajlich/ref/out/Debug/binding.node - → /Users/nrajlich/ref/Debug/binding.node - → /Users/nrajlich/ref/out/Release/binding.node - → /Users/nrajlich/ref/Release/binding.node - → /Users/nrajlich/ref/build/default/binding.node - → /Users/nrajlich/ref/compiled/0.8.2/darwin/x64/binding.node - at bindings (/Users/nrajlich/ref/node_modules/bindings/bindings.js:84:13) - at Object. (/Users/nrajlich/ref/lib/ref.js:5:47) - at Module._compile (module.js:449:26) - at Object.Module._extensions..js (module.js:467:10) - at Module.load (module.js:356:32) - at Function.Module._load (module.js:312:12) - ... -``` - -The searching for the `.node` file will originate from the first directory in which has a `package.json` file is found. - -License -------- - -(The MIT License) - -Copyright (c) 2012 Nathan Rajlich <nathan@tootallnate.net> - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/WechatBot/node_modules/bindings/bindings.js b/WechatBot/node_modules/bindings/bindings.js deleted file mode 100755 index 727413a19..000000000 --- a/WechatBot/node_modules/bindings/bindings.js +++ /dev/null @@ -1,221 +0,0 @@ -/** - * Module dependencies. - */ - -var fs = require('fs'), - path = require('path'), - fileURLToPath = require('file-uri-to-path'), - join = path.join, - dirname = path.dirname, - exists = - (fs.accessSync && - function(path) { - try { - fs.accessSync(path); - } catch (e) { - return false; - } - return true; - }) || - fs.existsSync || - path.existsSync, - defaults = { - arrow: process.env.NODE_BINDINGS_ARROW || ' → ', - compiled: process.env.NODE_BINDINGS_COMPILED_DIR || 'compiled', - platform: process.platform, - arch: process.arch, - nodePreGyp: - 'node-v' + - process.versions.modules + - '-' + - process.platform + - '-' + - process.arch, - version: process.versions.node, - bindings: 'bindings.node', - try: [ - // node-gyp's linked version in the "build" dir - ['module_root', 'build', 'bindings'], - // node-waf and gyp_addon (a.k.a node-gyp) - ['module_root', 'build', 'Debug', 'bindings'], - ['module_root', 'build', 'Release', 'bindings'], - // Debug files, for development (legacy behavior, remove for node v0.9) - ['module_root', 'out', 'Debug', 'bindings'], - ['module_root', 'Debug', 'bindings'], - // Release files, but manually compiled (legacy behavior, remove for node v0.9) - ['module_root', 'out', 'Release', 'bindings'], - ['module_root', 'Release', 'bindings'], - // Legacy from node-waf, node <= 0.4.x - ['module_root', 'build', 'default', 'bindings'], - // Production "Release" buildtype binary (meh...) - ['module_root', 'compiled', 'version', 'platform', 'arch', 'bindings'], - // node-qbs builds - ['module_root', 'addon-build', 'release', 'install-root', 'bindings'], - ['module_root', 'addon-build', 'debug', 'install-root', 'bindings'], - ['module_root', 'addon-build', 'default', 'install-root', 'bindings'], - // node-pre-gyp path ./lib/binding/{node_abi}-{platform}-{arch} - ['module_root', 'lib', 'binding', 'nodePreGyp', 'bindings'] - ] - }; - -/** - * The main `bindings()` function loads the compiled bindings for a given module. - * It uses V8's Error API to determine the parent filename that this function is - * being invoked from, which is then used to find the root directory. - */ - -function bindings(opts) { - // Argument surgery - if (typeof opts == 'string') { - opts = { bindings: opts }; - } else if (!opts) { - opts = {}; - } - - // maps `defaults` onto `opts` object - Object.keys(defaults).map(function(i) { - if (!(i in opts)) opts[i] = defaults[i]; - }); - - // Get the module root - if (!opts.module_root) { - opts.module_root = exports.getRoot(exports.getFileName()); - } - - // Ensure the given bindings name ends with .node - if (path.extname(opts.bindings) != '.node') { - opts.bindings += '.node'; - } - - // https://github.com/webpack/webpack/issues/4175#issuecomment-342931035 - var requireFunc = - typeof __webpack_require__ === 'function' - ? __non_webpack_require__ - : require; - - var tries = [], - i = 0, - l = opts.try.length, - n, - b, - err; - - for (; i < l; i++) { - n = join.apply( - null, - opts.try[i].map(function(p) { - return opts[p] || p; - }) - ); - tries.push(n); - try { - b = opts.path ? requireFunc.resolve(n) : requireFunc(n); - if (!opts.path) { - b.path = n; - } - return b; - } catch (e) { - if (e.code !== 'MODULE_NOT_FOUND' && - e.code !== 'QUALIFIED_PATH_RESOLUTION_FAILED' && - !/not find/i.test(e.message)) { - throw e; - } - } - } - - err = new Error( - 'Could not locate the bindings file. Tried:\n' + - tries - .map(function(a) { - return opts.arrow + a; - }) - .join('\n') - ); - err.tries = tries; - throw err; -} -module.exports = exports = bindings; - -/** - * Gets the filename of the JavaScript file that invokes this function. - * Used to help find the root directory of a module. - * Optionally accepts an filename argument to skip when searching for the invoking filename - */ - -exports.getFileName = function getFileName(calling_file) { - var origPST = Error.prepareStackTrace, - origSTL = Error.stackTraceLimit, - dummy = {}, - fileName; - - Error.stackTraceLimit = 10; - - Error.prepareStackTrace = function(e, st) { - for (var i = 0, l = st.length; i < l; i++) { - fileName = st[i].getFileName(); - if (fileName !== __filename) { - if (calling_file) { - if (fileName !== calling_file) { - return; - } - } else { - return; - } - } - } - }; - - // run the 'prepareStackTrace' function above - Error.captureStackTrace(dummy); - dummy.stack; - - // cleanup - Error.prepareStackTrace = origPST; - Error.stackTraceLimit = origSTL; - - // handle filename that starts with "file://" - var fileSchema = 'file://'; - if (fileName.indexOf(fileSchema) === 0) { - fileName = fileURLToPath(fileName); - } - - return fileName; -}; - -/** - * Gets the root directory of a module, given an arbitrary filename - * somewhere in the module tree. The "root directory" is the directory - * containing the `package.json` file. - * - * In: /home/nate/node-native-module/lib/index.js - * Out: /home/nate/node-native-module - */ - -exports.getRoot = function getRoot(file) { - var dir = dirname(file), - prev; - while (true) { - if (dir === '.') { - // Avoids an infinite loop in rare cases, like the REPL - dir = process.cwd(); - } - if ( - exists(join(dir, 'package.json')) || - exists(join(dir, 'node_modules')) - ) { - // Found the 'package.json' file or 'node_modules' dir; we're done - return dir; - } - if (prev === dir) { - // Got to the top - throw new Error( - 'Could not find module root given file: "' + - file + - '". Do you have a `package.json` file? ' - ); - } - // Try the parent dir next - prev = dir; - dir = join(dir, '..'); - } -}; diff --git a/WechatBot/node_modules/bindings/package.json b/WechatBot/node_modules/bindings/package.json deleted file mode 100644 index d027ee78a..000000000 --- a/WechatBot/node_modules/bindings/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "bindings", - "description": "Helper module for loading your native module's .node file", - "keywords": [ - "native", - "addon", - "bindings", - "gyp", - "waf", - "c", - "c++" - ], - "version": "1.5.0", - "author": "Nathan Rajlich (http://tootallnate.net)", - "repository": { - "type": "git", - "url": "git://github.com/TooTallNate/node-bindings.git" - }, - "main": "./bindings.js", - "bugs": { - "url": "https://github.com/TooTallNate/node-bindings/issues" - }, - "homepage": "https://github.com/TooTallNate/node-bindings", - "license": "MIT", - "dependencies": { - "file-uri-to-path": "1.0.0" - } -} diff --git a/WechatBot/node_modules/bl/.travis.yml b/WechatBot/node_modules/bl/.travis.yml deleted file mode 100644 index 016eaf556..000000000 --- a/WechatBot/node_modules/bl/.travis.yml +++ /dev/null @@ -1,17 +0,0 @@ -sudo: false -arch: - - amd64 - - ppc64le -language: node_js -node_js: - - '6' - - '8' - - '10' - - '12' - - '14' - - '15' - - lts/* -notifications: - email: - - rod@vagg.org - - matteo.collina@gmail.com diff --git a/WechatBot/node_modules/bl/BufferList.js b/WechatBot/node_modules/bl/BufferList.js deleted file mode 100755 index 471ee7788..000000000 --- a/WechatBot/node_modules/bl/BufferList.js +++ /dev/null @@ -1,396 +0,0 @@ -'use strict' - -const { Buffer } = require('buffer') -const symbol = Symbol.for('BufferList') - -function BufferList (buf) { - if (!(this instanceof BufferList)) { - return new BufferList(buf) - } - - BufferList._init.call(this, buf) -} - -BufferList._init = function _init (buf) { - Object.defineProperty(this, symbol, { value: true }) - - this._bufs = [] - this.length = 0 - - if (buf) { - this.append(buf) - } -} - -BufferList.prototype._new = function _new (buf) { - return new BufferList(buf) -} - -BufferList.prototype._offset = function _offset (offset) { - if (offset === 0) { - return [0, 0] - } - - let tot = 0 - - for (let i = 0; i < this._bufs.length; i++) { - const _t = tot + this._bufs[i].length - if (offset < _t || i === this._bufs.length - 1) { - return [i, offset - tot] - } - tot = _t - } -} - -BufferList.prototype._reverseOffset = function (blOffset) { - const bufferId = blOffset[0] - let offset = blOffset[1] - - for (let i = 0; i < bufferId; i++) { - offset += this._bufs[i].length - } - - return offset -} - -BufferList.prototype.get = function get (index) { - if (index > this.length || index < 0) { - return undefined - } - - const offset = this._offset(index) - - return this._bufs[offset[0]][offset[1]] -} - -BufferList.prototype.slice = function slice (start, end) { - if (typeof start === 'number' && start < 0) { - start += this.length - } - - if (typeof end === 'number' && end < 0) { - end += this.length - } - - return this.copy(null, 0, start, end) -} - -BufferList.prototype.copy = function copy (dst, dstStart, srcStart, srcEnd) { - if (typeof srcStart !== 'number' || srcStart < 0) { - srcStart = 0 - } - - if (typeof srcEnd !== 'number' || srcEnd > this.length) { - srcEnd = this.length - } - - if (srcStart >= this.length) { - return dst || Buffer.alloc(0) - } - - if (srcEnd <= 0) { - return dst || Buffer.alloc(0) - } - - const copy = !!dst - const off = this._offset(srcStart) - const len = srcEnd - srcStart - let bytes = len - let bufoff = (copy && dstStart) || 0 - let start = off[1] - - // copy/slice everything - if (srcStart === 0 && srcEnd === this.length) { - if (!copy) { - // slice, but full concat if multiple buffers - return this._bufs.length === 1 - ? this._bufs[0] - : Buffer.concat(this._bufs, this.length) - } - - // copy, need to copy individual buffers - for (let i = 0; i < this._bufs.length; i++) { - this._bufs[i].copy(dst, bufoff) - bufoff += this._bufs[i].length - } - - return dst - } - - // easy, cheap case where it's a subset of one of the buffers - if (bytes <= this._bufs[off[0]].length - start) { - return copy - ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes) - : this._bufs[off[0]].slice(start, start + bytes) - } - - if (!copy) { - // a slice, we need something to copy in to - dst = Buffer.allocUnsafe(len) - } - - for (let i = off[0]; i < this._bufs.length; i++) { - const l = this._bufs[i].length - start - - if (bytes > l) { - this._bufs[i].copy(dst, bufoff, start) - bufoff += l - } else { - this._bufs[i].copy(dst, bufoff, start, start + bytes) - bufoff += l - break - } - - bytes -= l - - if (start) { - start = 0 - } - } - - // safeguard so that we don't return uninitialized memory - if (dst.length > bufoff) return dst.slice(0, bufoff) - - return dst -} - -BufferList.prototype.shallowSlice = function shallowSlice (start, end) { - start = start || 0 - end = typeof end !== 'number' ? this.length : end - - if (start < 0) { - start += this.length - } - - if (end < 0) { - end += this.length - } - - if (start === end) { - return this._new() - } - - const startOffset = this._offset(start) - const endOffset = this._offset(end) - const buffers = this._bufs.slice(startOffset[0], endOffset[0] + 1) - - if (endOffset[1] === 0) { - buffers.pop() - } else { - buffers[buffers.length - 1] = buffers[buffers.length - 1].slice(0, endOffset[1]) - } - - if (startOffset[1] !== 0) { - buffers[0] = buffers[0].slice(startOffset[1]) - } - - return this._new(buffers) -} - -BufferList.prototype.toString = function toString (encoding, start, end) { - return this.slice(start, end).toString(encoding) -} - -BufferList.prototype.consume = function consume (bytes) { - // first, normalize the argument, in accordance with how Buffer does it - bytes = Math.trunc(bytes) - // do nothing if not a positive number - if (Number.isNaN(bytes) || bytes <= 0) return this - - while (this._bufs.length) { - if (bytes >= this._bufs[0].length) { - bytes -= this._bufs[0].length - this.length -= this._bufs[0].length - this._bufs.shift() - } else { - this._bufs[0] = this._bufs[0].slice(bytes) - this.length -= bytes - break - } - } - - return this -} - -BufferList.prototype.duplicate = function duplicate () { - const copy = this._new() - - for (let i = 0; i < this._bufs.length; i++) { - copy.append(this._bufs[i]) - } - - return copy -} - -BufferList.prototype.append = function append (buf) { - if (buf == null) { - return this - } - - if (buf.buffer) { - // append a view of the underlying ArrayBuffer - this._appendBuffer(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)) - } else if (Array.isArray(buf)) { - for (let i = 0; i < buf.length; i++) { - this.append(buf[i]) - } - } else if (this._isBufferList(buf)) { - // unwrap argument into individual BufferLists - for (let i = 0; i < buf._bufs.length; i++) { - this.append(buf._bufs[i]) - } - } else { - // coerce number arguments to strings, since Buffer(number) does - // uninitialized memory allocation - if (typeof buf === 'number') { - buf = buf.toString() - } - - this._appendBuffer(Buffer.from(buf)) - } - - return this -} - -BufferList.prototype._appendBuffer = function appendBuffer (buf) { - this._bufs.push(buf) - this.length += buf.length -} - -BufferList.prototype.indexOf = function (search, offset, encoding) { - if (encoding === undefined && typeof offset === 'string') { - encoding = offset - offset = undefined - } - - if (typeof search === 'function' || Array.isArray(search)) { - throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.') - } else if (typeof search === 'number') { - search = Buffer.from([search]) - } else if (typeof search === 'string') { - search = Buffer.from(search, encoding) - } else if (this._isBufferList(search)) { - search = search.slice() - } else if (Array.isArray(search.buffer)) { - search = Buffer.from(search.buffer, search.byteOffset, search.byteLength) - } else if (!Buffer.isBuffer(search)) { - search = Buffer.from(search) - } - - offset = Number(offset || 0) - - if (isNaN(offset)) { - offset = 0 - } - - if (offset < 0) { - offset = this.length + offset - } - - if (offset < 0) { - offset = 0 - } - - if (search.length === 0) { - return offset > this.length ? this.length : offset - } - - const blOffset = this._offset(offset) - let blIndex = blOffset[0] // index of which internal buffer we're working on - let buffOffset = blOffset[1] // offset of the internal buffer we're working on - - // scan over each buffer - for (; blIndex < this._bufs.length; blIndex++) { - const buff = this._bufs[blIndex] - - while (buffOffset < buff.length) { - const availableWindow = buff.length - buffOffset - - if (availableWindow >= search.length) { - const nativeSearchResult = buff.indexOf(search, buffOffset) - - if (nativeSearchResult !== -1) { - return this._reverseOffset([blIndex, nativeSearchResult]) - } - - buffOffset = buff.length - search.length + 1 // end of native search window - } else { - const revOffset = this._reverseOffset([blIndex, buffOffset]) - - if (this._match(revOffset, search)) { - return revOffset - } - - buffOffset++ - } - } - - buffOffset = 0 - } - - return -1 -} - -BufferList.prototype._match = function (offset, search) { - if (this.length - offset < search.length) { - return false - } - - for (let searchOffset = 0; searchOffset < search.length; searchOffset++) { - if (this.get(offset + searchOffset) !== search[searchOffset]) { - return false - } - } - return true -} - -;(function () { - const methods = { - readDoubleBE: 8, - readDoubleLE: 8, - readFloatBE: 4, - readFloatLE: 4, - readInt32BE: 4, - readInt32LE: 4, - readUInt32BE: 4, - readUInt32LE: 4, - readInt16BE: 2, - readInt16LE: 2, - readUInt16BE: 2, - readUInt16LE: 2, - readInt8: 1, - readUInt8: 1, - readIntBE: null, - readIntLE: null, - readUIntBE: null, - readUIntLE: null - } - - for (const m in methods) { - (function (m) { - if (methods[m] === null) { - BufferList.prototype[m] = function (offset, byteLength) { - return this.slice(offset, offset + byteLength)[m](0, byteLength) - } - } else { - BufferList.prototype[m] = function (offset = 0) { - return this.slice(offset, offset + methods[m])[m](0) - } - } - }(m)) - } -}()) - -// Used internally by the class and also as an indicator of this object being -// a `BufferList`. It's not possible to use `instanceof BufferList` in a browser -// environment because there could be multiple different copies of the -// BufferList class and some `BufferList`s might be `BufferList`s. -BufferList.prototype._isBufferList = function _isBufferList (b) { - return b instanceof BufferList || BufferList.isBufferList(b) -} - -BufferList.isBufferList = function isBufferList (b) { - return b != null && b[symbol] -} - -module.exports = BufferList diff --git a/WechatBot/node_modules/bl/LICENSE.md b/WechatBot/node_modules/bl/LICENSE.md deleted file mode 100644 index ecbe51637..000000000 --- a/WechatBot/node_modules/bl/LICENSE.md +++ /dev/null @@ -1,13 +0,0 @@ -The MIT License (MIT) -===================== - -Copyright (c) 2013-2019 bl contributors ----------------------------------- - -*bl contributors listed at * - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/WechatBot/node_modules/bl/README.md b/WechatBot/node_modules/bl/README.md deleted file mode 100644 index 9680b1dcb..000000000 --- a/WechatBot/node_modules/bl/README.md +++ /dev/null @@ -1,247 +0,0 @@ -# bl *(BufferList)* - -[![Build Status](https://api.travis-ci.com/rvagg/bl.svg?branch=master)](https://travis-ci.com/rvagg/bl/) - -**A Node.js Buffer list collector, reader and streamer thingy.** - -[![NPM](https://nodei.co/npm/bl.svg)](https://nodei.co/npm/bl/) - -**bl** is a storage object for collections of Node Buffers, exposing them with the main Buffer readable API. Also works as a duplex stream so you can collect buffers from a stream that emits them and emit buffers to a stream that consumes them! - -The original buffers are kept intact and copies are only done as necessary. Any reads that require the use of a single original buffer will return a slice of that buffer only (which references the same memory as the original buffer). Reads that span buffers perform concatenation as required and return the results transparently. - -```js -const { BufferList } = require('bl') - -const bl = new BufferList() -bl.append(Buffer.from('abcd')) -bl.append(Buffer.from('efg')) -bl.append('hi') // bl will also accept & convert Strings -bl.append(Buffer.from('j')) -bl.append(Buffer.from([ 0x3, 0x4 ])) - -console.log(bl.length) // 12 - -console.log(bl.slice(0, 10).toString('ascii')) // 'abcdefghij' -console.log(bl.slice(3, 10).toString('ascii')) // 'defghij' -console.log(bl.slice(3, 6).toString('ascii')) // 'def' -console.log(bl.slice(3, 8).toString('ascii')) // 'defgh' -console.log(bl.slice(5, 10).toString('ascii')) // 'fghij' - -console.log(bl.indexOf('def')) // 3 -console.log(bl.indexOf('asdf')) // -1 - -// or just use toString! -console.log(bl.toString()) // 'abcdefghij\u0003\u0004' -console.log(bl.toString('ascii', 3, 8)) // 'defgh' -console.log(bl.toString('ascii', 5, 10)) // 'fghij' - -// other standard Buffer readables -console.log(bl.readUInt16BE(10)) // 0x0304 -console.log(bl.readUInt16LE(10)) // 0x0403 -``` - -Give it a callback in the constructor and use it just like **[concat-stream](https://github.com/maxogden/node-concat-stream)**: - -```js -const { BufferListStream } = require('bl') -const fs = require('fs') - -fs.createReadStream('README.md') - .pipe(BufferListStream((err, data) => { // note 'new' isn't strictly required - // `data` is a complete Buffer object containing the full data - console.log(data.toString()) - })) -``` - -Note that when you use the *callback* method like this, the resulting `data` parameter is a concatenation of all `Buffer` objects in the list. If you want to avoid the overhead of this concatenation (in cases of extreme performance consciousness), then avoid the *callback* method and just listen to `'end'` instead, like a standard Stream. - -Or to fetch a URL using [hyperquest](https://github.com/substack/hyperquest) (should work with [request](http://github.com/mikeal/request) and even plain Node http too!): - -```js -const hyperquest = require('hyperquest') -const { BufferListStream } = require('bl') - -const url = 'https://raw.github.com/rvagg/bl/master/README.md' - -hyperquest(url).pipe(BufferListStream((err, data) => { - console.log(data.toString()) -})) -``` - -Or, use it as a readable stream to recompose a list of Buffers to an output source: - -```js -const { BufferListStream } = require('bl') -const fs = require('fs') - -var bl = new BufferListStream() -bl.append(Buffer.from('abcd')) -bl.append(Buffer.from('efg')) -bl.append(Buffer.from('hi')) -bl.append(Buffer.from('j')) - -bl.pipe(fs.createWriteStream('gibberish.txt')) -``` - -## API - - * new BufferList([ buf ]) - * BufferList.isBufferList(obj) - * bl.length - * bl.append(buffer) - * bl.get(index) - * bl.indexOf(value[, byteOffset][, encoding]) - * bl.slice([ start[, end ] ]) - * bl.shallowSlice([ start[, end ] ]) - * bl.copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ]) - * bl.duplicate() - * bl.consume(bytes) - * bl.toString([encoding, [ start, [ end ]]]) - * bl.readDoubleBE(), bl.readDoubleLE(), bl.readFloatBE(), bl.readFloatLE(), bl.readInt32BE(), bl.readInt32LE(), bl.readUInt32BE(), bl.readUInt32LE(), bl.readInt16BE(), bl.readInt16LE(), bl.readUInt16BE(), bl.readUInt16LE(), bl.readInt8(), bl.readUInt8() - * new BufferListStream([ callback ]) - --------------------------------------------------------- - -### new BufferList([ Buffer | Buffer array | BufferList | BufferList array | String ]) -No arguments are _required_ for the constructor, but you can initialise the list by passing in a single `Buffer` object or an array of `Buffer` objects. - -`new` is not strictly required, if you don't instantiate a new object, it will be done automatically for you so you can create a new instance simply with: - -```js -const { BufferList } = require('bl') -const bl = BufferList() - -// equivalent to: - -const { BufferList } = require('bl') -const bl = new BufferList() -``` - --------------------------------------------------------- - -### BufferList.isBufferList(obj) -Determines if the passed object is a `BufferList`. It will return `true` if the passed object is an instance of `BufferList` **or** `BufferListStream` and `false` otherwise. - -N.B. this won't return `true` for `BufferList` or `BufferListStream` instances created by versions of this library before this static method was added. - --------------------------------------------------------- - -### bl.length -Get the length of the list in bytes. This is the sum of the lengths of all of the buffers contained in the list, minus any initial offset for a semi-consumed buffer at the beginning. Should accurately represent the total number of bytes that can be read from the list. - --------------------------------------------------------- - -### bl.append(Buffer | Buffer array | BufferList | BufferList array | String) -`append(buffer)` adds an additional buffer or BufferList to the internal list. `this` is returned so it can be chained. - --------------------------------------------------------- - -### bl.get(index) -`get()` will return the byte at the specified index. - --------------------------------------------------------- - -### bl.indexOf(value[, byteOffset][, encoding]) -`get()` will return the byte at the specified index. -`indexOf()` method returns the first index at which a given element can be found in the BufferList, or -1 if it is not present. - --------------------------------------------------------- - -### bl.slice([ start, [ end ] ]) -`slice()` returns a new `Buffer` object containing the bytes within the range specified. Both `start` and `end` are optional and will default to the beginning and end of the list respectively. - -If the requested range spans a single internal buffer then a slice of that buffer will be returned which shares the original memory range of that Buffer. If the range spans multiple buffers then copy operations will likely occur to give you a uniform Buffer. - --------------------------------------------------------- - -### bl.shallowSlice([ start, [ end ] ]) -`shallowSlice()` returns a new `BufferList` object containing the bytes within the range specified. Both `start` and `end` are optional and will default to the beginning and end of the list respectively. - -No copies will be performed. All buffers in the result share memory with the original list. - --------------------------------------------------------- - -### bl.copy(dest, [ destStart, [ srcStart [, srcEnd ] ] ]) -`copy()` copies the content of the list in the `dest` buffer, starting from `destStart` and containing the bytes within the range specified with `srcStart` to `srcEnd`. `destStart`, `start` and `end` are optional and will default to the beginning of the `dest` buffer, and the beginning and end of the list respectively. - --------------------------------------------------------- - -### bl.duplicate() -`duplicate()` performs a **shallow-copy** of the list. The internal Buffers remains the same, so if you change the underlying Buffers, the change will be reflected in both the original and the duplicate. This method is needed if you want to call `consume()` or `pipe()` and still keep the original list.Example: - -```js -var bl = new BufferListStream() - -bl.append('hello') -bl.append(' world') -bl.append('\n') - -bl.duplicate().pipe(process.stdout, { end: false }) - -console.log(bl.toString()) -``` - --------------------------------------------------------- - -### bl.consume(bytes) -`consume()` will shift bytes *off the start of the list*. The number of bytes consumed don't need to line up with the sizes of the internal Buffers—initial offsets will be calculated accordingly in order to give you a consistent view of the data. - --------------------------------------------------------- - -### bl.toString([encoding, [ start, [ end ]]]) -`toString()` will return a string representation of the buffer. The optional `start` and `end` arguments are passed on to `slice()`, while the `encoding` is passed on to `toString()` of the resulting Buffer. See the [Buffer#toString()](http://nodejs.org/docs/latest/api/buffer.html#buffer_buf_tostring_encoding_start_end) documentation for more information. - --------------------------------------------------------- - -### bl.readDoubleBE(), bl.readDoubleLE(), bl.readFloatBE(), bl.readFloatLE(), bl.readInt32BE(), bl.readInt32LE(), bl.readUInt32BE(), bl.readUInt32LE(), bl.readInt16BE(), bl.readInt16LE(), bl.readUInt16BE(), bl.readUInt16LE(), bl.readInt8(), bl.readUInt8() - -All of the standard byte-reading methods of the `Buffer` interface are implemented and will operate across internal Buffer boundaries transparently. - -See the [Buffer](http://nodejs.org/docs/latest/api/buffer.html) documentation for how these work. - --------------------------------------------------------- - -### new BufferListStream([ callback | Buffer | Buffer array | BufferList | BufferList array | String ]) -**BufferListStream** is a Node **[Duplex Stream](http://nodejs.org/docs/latest/api/stream.html#stream_class_stream_duplex)**, so it can be read from and written to like a standard Node stream. You can also `pipe()` to and from a **BufferListStream** instance. - -The constructor takes an optional callback, if supplied, the callback will be called with an error argument followed by a reference to the **bl** instance, when `bl.end()` is called (i.e. from a piped stream). This is a convenient method of collecting the entire contents of a stream, particularly when the stream is *chunky*, such as a network stream. - -Normally, no arguments are required for the constructor, but you can initialise the list by passing in a single `Buffer` object or an array of `Buffer` object. - -`new` is not strictly required, if you don't instantiate a new object, it will be done automatically for you so you can create a new instance simply with: - -```js -const { BufferListStream } = require('bl') -const bl = BufferListStream() - -// equivalent to: - -const { BufferListStream } = require('bl') -const bl = new BufferListStream() -``` - -N.B. For backwards compatibility reasons, `BufferListStream` is the **default** export when you `require('bl')`: - -```js -const { BufferListStream } = require('bl') -// equivalent to: -const BufferListStream = require('bl') -``` - --------------------------------------------------------- - -## Contributors - -**bl** is brought to you by the following hackers: - - * [Rod Vagg](https://github.com/rvagg) - * [Matteo Collina](https://github.com/mcollina) - * [Jarett Cruger](https://github.com/jcrugzz) - - -## License & copyright - -Copyright (c) 2013-2019 bl contributors (listed above). - -bl is licensed under the MIT license. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details. diff --git a/WechatBot/node_modules/bl/bl.js b/WechatBot/node_modules/bl/bl.js deleted file mode 100755 index 40228f879..000000000 --- a/WechatBot/node_modules/bl/bl.js +++ /dev/null @@ -1,84 +0,0 @@ -'use strict' - -const DuplexStream = require('readable-stream').Duplex -const inherits = require('inherits') -const BufferList = require('./BufferList') - -function BufferListStream (callback) { - if (!(this instanceof BufferListStream)) { - return new BufferListStream(callback) - } - - if (typeof callback === 'function') { - this._callback = callback - - const piper = function piper (err) { - if (this._callback) { - this._callback(err) - this._callback = null - } - }.bind(this) - - this.on('pipe', function onPipe (src) { - src.on('error', piper) - }) - this.on('unpipe', function onUnpipe (src) { - src.removeListener('error', piper) - }) - - callback = null - } - - BufferList._init.call(this, callback) - DuplexStream.call(this) -} - -inherits(BufferListStream, DuplexStream) -Object.assign(BufferListStream.prototype, BufferList.prototype) - -BufferListStream.prototype._new = function _new (callback) { - return new BufferListStream(callback) -} - -BufferListStream.prototype._write = function _write (buf, encoding, callback) { - this._appendBuffer(buf) - - if (typeof callback === 'function') { - callback() - } -} - -BufferListStream.prototype._read = function _read (size) { - if (!this.length) { - return this.push(null) - } - - size = Math.min(size, this.length) - this.push(this.slice(0, size)) - this.consume(size) -} - -BufferListStream.prototype.end = function end (chunk) { - DuplexStream.prototype.end.call(this, chunk) - - if (this._callback) { - this._callback(null, this.slice()) - this._callback = null - } -} - -BufferListStream.prototype._destroy = function _destroy (err, cb) { - this._bufs.length = 0 - this.length = 0 - cb(err) -} - -BufferListStream.prototype._isBufferList = function _isBufferList (b) { - return b instanceof BufferListStream || b instanceof BufferList || BufferListStream.isBufferList(b) -} - -BufferListStream.isBufferList = BufferList.isBufferList - -module.exports = BufferListStream -module.exports.BufferListStream = BufferListStream -module.exports.BufferList = BufferList diff --git a/WechatBot/node_modules/bl/package.json b/WechatBot/node_modules/bl/package.json deleted file mode 100644 index 3b2be3f48..000000000 --- a/WechatBot/node_modules/bl/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "bl", - "version": "4.1.0", - "description": "Buffer List: collect buffers and access with a standard readable Buffer interface, streamable too!", - "license": "MIT", - "main": "bl.js", - "scripts": { - "lint": "standard *.js test/*.js", - "test": "npm run lint && node test/test.js | faucet" - }, - "repository": { - "type": "git", - "url": "https://github.com/rvagg/bl.git" - }, - "homepage": "https://github.com/rvagg/bl", - "authors": [ - "Rod Vagg (https://github.com/rvagg)", - "Matteo Collina (https://github.com/mcollina)", - "Jarett Cruger (https://github.com/jcrugzz)" - ], - "keywords": [ - "buffer", - "buffers", - "stream", - "awesomesauce" - ], - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - }, - "devDependencies": { - "faucet": "~0.0.1", - "standard": "^14.3.0", - "tape": "^4.11.0" - } -} diff --git a/WechatBot/node_modules/bl/test/convert.js b/WechatBot/node_modules/bl/test/convert.js deleted file mode 100755 index 9f3e23599..000000000 --- a/WechatBot/node_modules/bl/test/convert.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict' - -const tape = require('tape') -const { BufferList, BufferListStream } = require('../') -const { Buffer } = require('buffer') - -tape('convert from BufferList to BufferListStream', (t) => { - const data = Buffer.from(`TEST-${Date.now()}`) - const bl = new BufferList(data) - const bls = new BufferListStream(bl) - t.ok(bl.slice().equals(bls.slice())) - t.end() -}) - -tape('convert from BufferListStream to BufferList', (t) => { - const data = Buffer.from(`TEST-${Date.now()}`) - const bls = new BufferListStream(data) - const bl = new BufferList(bls) - t.ok(bl.slice().equals(bls.slice())) - t.end() -}) diff --git a/WechatBot/node_modules/bl/test/indexOf.js b/WechatBot/node_modules/bl/test/indexOf.js deleted file mode 100755 index 62dcb01f3..000000000 --- a/WechatBot/node_modules/bl/test/indexOf.js +++ /dev/null @@ -1,492 +0,0 @@ -'use strict' - -const tape = require('tape') -const BufferList = require('../') -const { Buffer } = require('buffer') - -tape('indexOf single byte needle', (t) => { - const bl = new BufferList(['abcdefg', 'abcdefg', '12345']) - - t.equal(bl.indexOf('e'), 4) - t.equal(bl.indexOf('e', 5), 11) - t.equal(bl.indexOf('e', 12), -1) - t.equal(bl.indexOf('5'), 18) - - t.end() -}) - -tape('indexOf multiple byte needle', (t) => { - const bl = new BufferList(['abcdefg', 'abcdefg']) - - t.equal(bl.indexOf('ef'), 4) - t.equal(bl.indexOf('ef', 5), 11) - - t.end() -}) - -tape('indexOf multiple byte needles across buffer boundaries', (t) => { - const bl = new BufferList(['abcdefg', 'abcdefg']) - - t.equal(bl.indexOf('fgabc'), 5) - - t.end() -}) - -tape('indexOf takes a Uint8Array search', (t) => { - const bl = new BufferList(['abcdefg', 'abcdefg']) - const search = new Uint8Array([102, 103, 97, 98, 99]) // fgabc - - t.equal(bl.indexOf(search), 5) - - t.end() -}) - -tape('indexOf takes a buffer list search', (t) => { - const bl = new BufferList(['abcdefg', 'abcdefg']) - const search = new BufferList('fgabc') - - t.equal(bl.indexOf(search), 5) - - t.end() -}) - -tape('indexOf a zero byte needle', (t) => { - const b = new BufferList('abcdef') - const bufEmpty = Buffer.from('') - - t.equal(b.indexOf(''), 0) - t.equal(b.indexOf('', 1), 1) - t.equal(b.indexOf('', b.length + 1), b.length) - t.equal(b.indexOf('', Infinity), b.length) - t.equal(b.indexOf(bufEmpty), 0) - t.equal(b.indexOf(bufEmpty, 1), 1) - t.equal(b.indexOf(bufEmpty, b.length + 1), b.length) - t.equal(b.indexOf(bufEmpty, Infinity), b.length) - - t.end() -}) - -tape('indexOf buffers smaller and larger than the needle', (t) => { - const bl = new BufferList(['abcdefg', 'a', 'bcdefg', 'a', 'bcfgab']) - - t.equal(bl.indexOf('fgabc'), 5) - t.equal(bl.indexOf('fgabc', 6), 12) - t.equal(bl.indexOf('fgabc', 13), -1) - - t.end() -}) - -// only present in node 6+ -;(process.version.substr(1).split('.')[0] >= 6) && tape('indexOf latin1 and binary encoding', (t) => { - const b = new BufferList('abcdef') - - // test latin1 encoding - t.equal( - new BufferList(Buffer.from(b.toString('latin1'), 'latin1')) - .indexOf('d', 0, 'latin1'), - 3 - ) - t.equal( - new BufferList(Buffer.from(b.toString('latin1'), 'latin1')) - .indexOf(Buffer.from('d', 'latin1'), 0, 'latin1'), - 3 - ) - t.equal( - new BufferList(Buffer.from('aa\u00e8aa', 'latin1')) - .indexOf('\u00e8', 'latin1'), - 2 - ) - t.equal( - new BufferList(Buffer.from('\u00e8', 'latin1')) - .indexOf('\u00e8', 'latin1'), - 0 - ) - t.equal( - new BufferList(Buffer.from('\u00e8', 'latin1')) - .indexOf(Buffer.from('\u00e8', 'latin1'), 'latin1'), - 0 - ) - - // test binary encoding - t.equal( - new BufferList(Buffer.from(b.toString('binary'), 'binary')) - .indexOf('d', 0, 'binary'), - 3 - ) - t.equal( - new BufferList(Buffer.from(b.toString('binary'), 'binary')) - .indexOf(Buffer.from('d', 'binary'), 0, 'binary'), - 3 - ) - t.equal( - new BufferList(Buffer.from('aa\u00e8aa', 'binary')) - .indexOf('\u00e8', 'binary'), - 2 - ) - t.equal( - new BufferList(Buffer.from('\u00e8', 'binary')) - .indexOf('\u00e8', 'binary'), - 0 - ) - t.equal( - new BufferList(Buffer.from('\u00e8', 'binary')) - .indexOf(Buffer.from('\u00e8', 'binary'), 'binary'), - 0 - ) - - t.end() -}) - -tape('indexOf the entire nodejs10 buffer test suite', (t) => { - const b = new BufferList('abcdef') - const bufA = Buffer.from('a') - const bufBc = Buffer.from('bc') - const bufF = Buffer.from('f') - const bufZ = Buffer.from('z') - - const stringComparison = 'abcdef' - - t.equal(b.indexOf('a'), 0) - t.equal(b.indexOf('a', 1), -1) - t.equal(b.indexOf('a', -1), -1) - t.equal(b.indexOf('a', -4), -1) - t.equal(b.indexOf('a', -b.length), 0) - t.equal(b.indexOf('a', NaN), 0) - t.equal(b.indexOf('a', -Infinity), 0) - t.equal(b.indexOf('a', Infinity), -1) - t.equal(b.indexOf('bc'), 1) - t.equal(b.indexOf('bc', 2), -1) - t.equal(b.indexOf('bc', -1), -1) - t.equal(b.indexOf('bc', -3), -1) - t.equal(b.indexOf('bc', -5), 1) - t.equal(b.indexOf('bc', NaN), 1) - t.equal(b.indexOf('bc', -Infinity), 1) - t.equal(b.indexOf('bc', Infinity), -1) - t.equal(b.indexOf('f'), b.length - 1) - t.equal(b.indexOf('z'), -1) - - // empty search tests - t.equal(b.indexOf(bufA), 0) - t.equal(b.indexOf(bufA, 1), -1) - t.equal(b.indexOf(bufA, -1), -1) - t.equal(b.indexOf(bufA, -4), -1) - t.equal(b.indexOf(bufA, -b.length), 0) - t.equal(b.indexOf(bufA, NaN), 0) - t.equal(b.indexOf(bufA, -Infinity), 0) - t.equal(b.indexOf(bufA, Infinity), -1) - t.equal(b.indexOf(bufBc), 1) - t.equal(b.indexOf(bufBc, 2), -1) - t.equal(b.indexOf(bufBc, -1), -1) - t.equal(b.indexOf(bufBc, -3), -1) - t.equal(b.indexOf(bufBc, -5), 1) - t.equal(b.indexOf(bufBc, NaN), 1) - t.equal(b.indexOf(bufBc, -Infinity), 1) - t.equal(b.indexOf(bufBc, Infinity), -1) - t.equal(b.indexOf(bufF), b.length - 1) - t.equal(b.indexOf(bufZ), -1) - t.equal(b.indexOf(0x61), 0) - t.equal(b.indexOf(0x61, 1), -1) - t.equal(b.indexOf(0x61, -1), -1) - t.equal(b.indexOf(0x61, -4), -1) - t.equal(b.indexOf(0x61, -b.length), 0) - t.equal(b.indexOf(0x61, NaN), 0) - t.equal(b.indexOf(0x61, -Infinity), 0) - t.equal(b.indexOf(0x61, Infinity), -1) - t.equal(b.indexOf(0x0), -1) - - // test offsets - t.equal(b.indexOf('d', 2), 3) - t.equal(b.indexOf('f', 5), 5) - t.equal(b.indexOf('f', -1), 5) - t.equal(b.indexOf('f', 6), -1) - - t.equal(b.indexOf(Buffer.from('d'), 2), 3) - t.equal(b.indexOf(Buffer.from('f'), 5), 5) - t.equal(b.indexOf(Buffer.from('f'), -1), 5) - t.equal(b.indexOf(Buffer.from('f'), 6), -1) - - t.equal(Buffer.from('ff').indexOf(Buffer.from('f'), 1, 'ucs2'), -1) - - // test invalid and uppercase encoding - t.equal(b.indexOf('b', 'utf8'), 1) - t.equal(b.indexOf('b', 'UTF8'), 1) - t.equal(b.indexOf('62', 'HEX'), 1) - t.throws(() => b.indexOf('bad', 'enc'), TypeError) - - // test hex encoding - t.equal( - Buffer.from(b.toString('hex'), 'hex') - .indexOf('64', 0, 'hex'), - 3 - ) - t.equal( - Buffer.from(b.toString('hex'), 'hex') - .indexOf(Buffer.from('64', 'hex'), 0, 'hex'), - 3 - ) - - // test base64 encoding - t.equal( - Buffer.from(b.toString('base64'), 'base64') - .indexOf('ZA==', 0, 'base64'), - 3 - ) - t.equal( - Buffer.from(b.toString('base64'), 'base64') - .indexOf(Buffer.from('ZA==', 'base64'), 0, 'base64'), - 3 - ) - - // test ascii encoding - t.equal( - Buffer.from(b.toString('ascii'), 'ascii') - .indexOf('d', 0, 'ascii'), - 3 - ) - t.equal( - Buffer.from(b.toString('ascii'), 'ascii') - .indexOf(Buffer.from('d', 'ascii'), 0, 'ascii'), - 3 - ) - - // test optional offset with passed encoding - t.equal(Buffer.from('aaaa0').indexOf('30', 'hex'), 4) - t.equal(Buffer.from('aaaa00a').indexOf('3030', 'hex'), 4) - - { - // test usc2 encoding - const twoByteString = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2') - - t.equal(8, twoByteString.indexOf('\u0395', 4, 'ucs2')) - t.equal(6, twoByteString.indexOf('\u03a3', -4, 'ucs2')) - t.equal(4, twoByteString.indexOf('\u03a3', -6, 'ucs2')) - t.equal(4, twoByteString.indexOf( - Buffer.from('\u03a3', 'ucs2'), -6, 'ucs2')) - t.equal(-1, twoByteString.indexOf('\u03a3', -2, 'ucs2')) - } - - const mixedByteStringUcs2 = - Buffer.from('\u039a\u0391abc\u03a3\u03a3\u0395', 'ucs2') - - t.equal(6, mixedByteStringUcs2.indexOf('bc', 0, 'ucs2')) - t.equal(10, mixedByteStringUcs2.indexOf('\u03a3', 0, 'ucs2')) - t.equal(-1, mixedByteStringUcs2.indexOf('\u0396', 0, 'ucs2')) - - t.equal( - 6, mixedByteStringUcs2.indexOf(Buffer.from('bc', 'ucs2'), 0, 'ucs2')) - t.equal( - 10, mixedByteStringUcs2.indexOf(Buffer.from('\u03a3', 'ucs2'), 0, 'ucs2')) - t.equal( - -1, mixedByteStringUcs2.indexOf(Buffer.from('\u0396', 'ucs2'), 0, 'ucs2')) - - { - const twoByteString = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'ucs2') - - // Test single char pattern - t.equal(0, twoByteString.indexOf('\u039a', 0, 'ucs2')) - let index = twoByteString.indexOf('\u0391', 0, 'ucs2') - t.equal(2, index, `Alpha - at index ${index}`) - index = twoByteString.indexOf('\u03a3', 0, 'ucs2') - t.equal(4, index, `First Sigma - at index ${index}`) - index = twoByteString.indexOf('\u03a3', 6, 'ucs2') - t.equal(6, index, `Second Sigma - at index ${index}`) - index = twoByteString.indexOf('\u0395', 0, 'ucs2') - t.equal(8, index, `Epsilon - at index ${index}`) - index = twoByteString.indexOf('\u0392', 0, 'ucs2') - t.equal(-1, index, `Not beta - at index ${index}`) - - // Test multi-char pattern - index = twoByteString.indexOf('\u039a\u0391', 0, 'ucs2') - t.equal(0, index, `Lambda Alpha - at index ${index}`) - index = twoByteString.indexOf('\u0391\u03a3', 0, 'ucs2') - t.equal(2, index, `Alpha Sigma - at index ${index}`) - index = twoByteString.indexOf('\u03a3\u03a3', 0, 'ucs2') - t.equal(4, index, `Sigma Sigma - at index ${index}`) - index = twoByteString.indexOf('\u03a3\u0395', 0, 'ucs2') - t.equal(6, index, `Sigma Epsilon - at index ${index}`) - } - - const mixedByteStringUtf8 = Buffer.from('\u039a\u0391abc\u03a3\u03a3\u0395') - - t.equal(5, mixedByteStringUtf8.indexOf('bc')) - t.equal(5, mixedByteStringUtf8.indexOf('bc', 5)) - t.equal(5, mixedByteStringUtf8.indexOf('bc', -8)) - t.equal(7, mixedByteStringUtf8.indexOf('\u03a3')) - t.equal(-1, mixedByteStringUtf8.indexOf('\u0396')) - - // Test complex string indexOf algorithms. Only trigger for long strings. - // Long string that isn't a simple repeat of a shorter string. - let longString = 'A' - for (let i = 66; i < 76; i++) { // from 'B' to 'K' - longString = longString + String.fromCharCode(i) + longString - } - - const longBufferString = Buffer.from(longString) - - // pattern of 15 chars, repeated every 16 chars in long - let pattern = 'ABACABADABACABA' - for (let i = 0; i < longBufferString.length - pattern.length; i += 7) { - const index = longBufferString.indexOf(pattern, i) - t.equal((i + 15) & ~0xf, index, - `Long ABACABA...-string at index ${i}`) - } - - let index = longBufferString.indexOf('AJABACA') - t.equal(510, index, `Long AJABACA, First J - at index ${index}`) - index = longBufferString.indexOf('AJABACA', 511) - t.equal(1534, index, `Long AJABACA, Second J - at index ${index}`) - - pattern = 'JABACABADABACABA' - index = longBufferString.indexOf(pattern) - t.equal(511, index, `Long JABACABA..., First J - at index ${index}`) - index = longBufferString.indexOf(pattern, 512) - t.equal( - 1535, index, `Long JABACABA..., Second J - at index ${index}`) - - // Search for a non-ASCII string in a pure ASCII string. - const asciiString = Buffer.from( - 'somethingnotatallsinisterwhichalsoworks') - t.equal(-1, asciiString.indexOf('\x2061')) - t.equal(3, asciiString.indexOf('eth', 0)) - - // Search in string containing many non-ASCII chars. - const allCodePoints = [] - for (let i = 0; i < 65536; i++) { - allCodePoints[i] = i - } - - const allCharsString = String.fromCharCode.apply(String, allCodePoints) - const allCharsBufferUtf8 = Buffer.from(allCharsString) - const allCharsBufferUcs2 = Buffer.from(allCharsString, 'ucs2') - - // Search for string long enough to trigger complex search with ASCII pattern - // and UC16 subject. - t.equal(-1, allCharsBufferUtf8.indexOf('notfound')) - t.equal(-1, allCharsBufferUcs2.indexOf('notfound')) - - // Needle is longer than haystack, but only because it's encoded as UTF-16 - t.equal(Buffer.from('aaaa').indexOf('a'.repeat(4), 'ucs2'), -1) - - t.equal(Buffer.from('aaaa').indexOf('a'.repeat(4), 'utf8'), 0) - t.equal(Buffer.from('aaaa').indexOf('你好', 'ucs2'), -1) - - // Haystack has odd length, but the needle is UCS2. - t.equal(Buffer.from('aaaaa').indexOf('b', 'ucs2'), -1) - - { - // Find substrings in Utf8. - const lengths = [1, 3, 15] // Single char, simple and complex. - const indices = [0x5, 0x60, 0x400, 0x680, 0x7ee, 0xFF02, 0x16610, 0x2f77b] - for (let lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) { - for (let i = 0; i < indices.length; i++) { - const index = indices[i] - let length = lengths[lengthIndex] - - if (index + length > 0x7F) { - length = 2 * length - } - - if (index + length > 0x7FF) { - length = 3 * length - } - - if (index + length > 0xFFFF) { - length = 4 * length - } - - const patternBufferUtf8 = allCharsBufferUtf8.slice(index, index + length) - t.equal(index, allCharsBufferUtf8.indexOf(patternBufferUtf8)) - - const patternStringUtf8 = patternBufferUtf8.toString() - t.equal(index, allCharsBufferUtf8.indexOf(patternStringUtf8)) - } - } - } - - { - // Find substrings in Usc2. - const lengths = [2, 4, 16] // Single char, simple and complex. - const indices = [0x5, 0x65, 0x105, 0x205, 0x285, 0x2005, 0x2085, 0xfff0] - - for (let lengthIndex = 0; lengthIndex < lengths.length; lengthIndex++) { - for (let i = 0; i < indices.length; i++) { - const index = indices[i] * 2 - const length = lengths[lengthIndex] - - const patternBufferUcs2 = - allCharsBufferUcs2.slice(index, index + length) - t.equal( - index, allCharsBufferUcs2.indexOf(patternBufferUcs2, 0, 'ucs2')) - - const patternStringUcs2 = patternBufferUcs2.toString('ucs2') - t.equal( - index, allCharsBufferUcs2.indexOf(patternStringUcs2, 0, 'ucs2')) - } - } - } - - [ - () => {}, - {}, - [] - ].forEach((val) => { - t.throws(() => b.indexOf(val), TypeError, `"${JSON.stringify(val)}" should throw`) - }) - - // Test weird offset arguments. - // The following offsets coerce to NaN or 0, searching the whole Buffer - t.equal(b.indexOf('b', undefined), 1) - t.equal(b.indexOf('b', {}), 1) - t.equal(b.indexOf('b', 0), 1) - t.equal(b.indexOf('b', null), 1) - t.equal(b.indexOf('b', []), 1) - - // The following offset coerces to 2, in other words +[2] === 2 - t.equal(b.indexOf('b', [2]), -1) - - // Behavior should match String.indexOf() - t.equal( - b.indexOf('b', undefined), - stringComparison.indexOf('b', undefined)) - t.equal( - b.indexOf('b', {}), - stringComparison.indexOf('b', {})) - t.equal( - b.indexOf('b', 0), - stringComparison.indexOf('b', 0)) - t.equal( - b.indexOf('b', null), - stringComparison.indexOf('b', null)) - t.equal( - b.indexOf('b', []), - stringComparison.indexOf('b', [])) - t.equal( - b.indexOf('b', [2]), - stringComparison.indexOf('b', [2])) - - // test truncation of Number arguments to uint8 - { - const buf = Buffer.from('this is a test') - - t.equal(buf.indexOf(0x6973), 3) - t.equal(buf.indexOf(0x697320), 4) - t.equal(buf.indexOf(0x69732069), 2) - t.equal(buf.indexOf(0x697374657374), 0) - t.equal(buf.indexOf(0x69737374), 0) - t.equal(buf.indexOf(0x69737465), 11) - t.equal(buf.indexOf(0x69737465), 11) - t.equal(buf.indexOf(-140), 0) - t.equal(buf.indexOf(-152), 1) - t.equal(buf.indexOf(0xff), -1) - t.equal(buf.indexOf(0xffff), -1) - } - - // Test that Uint8Array arguments are okay. - { - const needle = new Uint8Array([0x66, 0x6f, 0x6f]) - const haystack = new BufferList(Buffer.from('a foo b foo')) - t.equal(haystack.indexOf(needle), 2) - } - - t.end() -}) diff --git a/WechatBot/node_modules/bl/test/isBufferList.js b/WechatBot/node_modules/bl/test/isBufferList.js deleted file mode 100755 index 9d895d59b..000000000 --- a/WechatBot/node_modules/bl/test/isBufferList.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict' - -const tape = require('tape') -const { BufferList, BufferListStream } = require('../') -const { Buffer } = require('buffer') - -tape('isBufferList positives', (t) => { - t.ok(BufferList.isBufferList(new BufferList())) - t.ok(BufferList.isBufferList(new BufferListStream())) - - t.end() -}) - -tape('isBufferList negatives', (t) => { - const types = [ - null, - undefined, - NaN, - true, - false, - {}, - [], - Buffer.alloc(0), - [Buffer.alloc(0)] - ] - - for (const obj of types) { - t.notOk(BufferList.isBufferList(obj)) - } - - t.end() -}) diff --git a/WechatBot/node_modules/bl/test/test.js b/WechatBot/node_modules/bl/test/test.js deleted file mode 100755 index e523d0c3f..000000000 --- a/WechatBot/node_modules/bl/test/test.js +++ /dev/null @@ -1,869 +0,0 @@ -'use strict' - -const tape = require('tape') -const crypto = require('crypto') -const fs = require('fs') -const path = require('path') -const BufferList = require('../') -const { Buffer } = require('buffer') - -const encodings = - ('hex utf8 utf-8 ascii binary base64' + - (process.browser ? '' : ' ucs2 ucs-2 utf16le utf-16le')).split(' ') - -require('./indexOf') -require('./isBufferList') -require('./convert') - -tape('single bytes from single buffer', function (t) { - const bl = new BufferList() - - bl.append(Buffer.from('abcd')) - - t.equal(bl.length, 4) - t.equal(bl.get(-1), undefined) - t.equal(bl.get(0), 97) - t.equal(bl.get(1), 98) - t.equal(bl.get(2), 99) - t.equal(bl.get(3), 100) - t.equal(bl.get(4), undefined) - - t.end() -}) - -tape('single bytes from multiple buffers', function (t) { - const bl = new BufferList() - - bl.append(Buffer.from('abcd')) - bl.append(Buffer.from('efg')) - bl.append(Buffer.from('hi')) - bl.append(Buffer.from('j')) - - t.equal(bl.length, 10) - - t.equal(bl.get(0), 97) - t.equal(bl.get(1), 98) - t.equal(bl.get(2), 99) - t.equal(bl.get(3), 100) - t.equal(bl.get(4), 101) - t.equal(bl.get(5), 102) - t.equal(bl.get(6), 103) - t.equal(bl.get(7), 104) - t.equal(bl.get(8), 105) - t.equal(bl.get(9), 106) - - t.end() -}) - -tape('multi bytes from single buffer', function (t) { - const bl = new BufferList() - - bl.append(Buffer.from('abcd')) - - t.equal(bl.length, 4) - - t.equal(bl.slice(0, 4).toString('ascii'), 'abcd') - t.equal(bl.slice(0, 3).toString('ascii'), 'abc') - t.equal(bl.slice(1, 4).toString('ascii'), 'bcd') - t.equal(bl.slice(-4, -1).toString('ascii'), 'abc') - - t.end() -}) - -tape('multi bytes from single buffer (negative indexes)', function (t) { - const bl = new BufferList() - - bl.append(Buffer.from('buffer')) - - t.equal(bl.length, 6) - - t.equal(bl.slice(-6, -1).toString('ascii'), 'buffe') - t.equal(bl.slice(-6, -2).toString('ascii'), 'buff') - t.equal(bl.slice(-5, -2).toString('ascii'), 'uff') - - t.end() -}) - -tape('multiple bytes from multiple buffers', function (t) { - const bl = new BufferList() - - bl.append(Buffer.from('abcd')) - bl.append(Buffer.from('efg')) - bl.append(Buffer.from('hi')) - bl.append(Buffer.from('j')) - - t.equal(bl.length, 10) - - t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') - t.equal(bl.slice(3, 10).toString('ascii'), 'defghij') - t.equal(bl.slice(3, 6).toString('ascii'), 'def') - t.equal(bl.slice(3, 8).toString('ascii'), 'defgh') - t.equal(bl.slice(5, 10).toString('ascii'), 'fghij') - t.equal(bl.slice(-7, -4).toString('ascii'), 'def') - - t.end() -}) - -tape('multiple bytes from multiple buffer lists', function (t) { - const bl = new BufferList() - - bl.append(new BufferList([Buffer.from('abcd'), Buffer.from('efg')])) - bl.append(new BufferList([Buffer.from('hi'), Buffer.from('j')])) - - t.equal(bl.length, 10) - - t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') - - t.equal(bl.slice(3, 10).toString('ascii'), 'defghij') - t.equal(bl.slice(3, 6).toString('ascii'), 'def') - t.equal(bl.slice(3, 8).toString('ascii'), 'defgh') - t.equal(bl.slice(5, 10).toString('ascii'), 'fghij') - - t.end() -}) - -// same data as previous test, just using nested constructors -tape('multiple bytes from crazy nested buffer lists', function (t) { - const bl = new BufferList() - - bl.append(new BufferList([ - new BufferList([ - new BufferList(Buffer.from('abc')), - Buffer.from('d'), - new BufferList(Buffer.from('efg')) - ]), - new BufferList([Buffer.from('hi')]), - new BufferList(Buffer.from('j')) - ])) - - t.equal(bl.length, 10) - - t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') - - t.equal(bl.slice(3, 10).toString('ascii'), 'defghij') - t.equal(bl.slice(3, 6).toString('ascii'), 'def') - t.equal(bl.slice(3, 8).toString('ascii'), 'defgh') - t.equal(bl.slice(5, 10).toString('ascii'), 'fghij') - - t.end() -}) - -tape('append accepts arrays of Buffers', function (t) { - const bl = new BufferList() - - bl.append(Buffer.from('abc')) - bl.append([Buffer.from('def')]) - bl.append([Buffer.from('ghi'), Buffer.from('jkl')]) - bl.append([Buffer.from('mnop'), Buffer.from('qrstu'), Buffer.from('vwxyz')]) - t.equal(bl.length, 26) - t.equal(bl.slice().toString('ascii'), 'abcdefghijklmnopqrstuvwxyz') - - t.end() -}) - -tape('append accepts arrays of Uint8Arrays', function (t) { - const bl = new BufferList() - - bl.append(new Uint8Array([97, 98, 99])) - bl.append([Uint8Array.from([100, 101, 102])]) - bl.append([new Uint8Array([103, 104, 105]), new Uint8Array([106, 107, 108])]) - bl.append([new Uint8Array([109, 110, 111, 112]), new Uint8Array([113, 114, 115, 116, 117]), new Uint8Array([118, 119, 120, 121, 122])]) - t.equal(bl.length, 26) - t.equal(bl.slice().toString('ascii'), 'abcdefghijklmnopqrstuvwxyz') - - t.end() -}) - -tape('append accepts arrays of BufferLists', function (t) { - const bl = new BufferList() - - bl.append(Buffer.from('abc')) - bl.append([new BufferList('def')]) - bl.append(new BufferList([Buffer.from('ghi'), new BufferList('jkl')])) - bl.append([Buffer.from('mnop'), new BufferList([Buffer.from('qrstu'), Buffer.from('vwxyz')])]) - t.equal(bl.length, 26) - t.equal(bl.slice().toString('ascii'), 'abcdefghijklmnopqrstuvwxyz') - - t.end() -}) - -tape('append chainable', function (t) { - const bl = new BufferList() - - t.ok(bl.append(Buffer.from('abcd')) === bl) - t.ok(bl.append([Buffer.from('abcd')]) === bl) - t.ok(bl.append(new BufferList(Buffer.from('abcd'))) === bl) - t.ok(bl.append([new BufferList(Buffer.from('abcd'))]) === bl) - - t.end() -}) - -tape('append chainable (test results)', function (t) { - const bl = new BufferList('abc') - .append([new BufferList('def')]) - .append(new BufferList([Buffer.from('ghi'), new BufferList('jkl')])) - .append([Buffer.from('mnop'), new BufferList([Buffer.from('qrstu'), Buffer.from('vwxyz')])]) - - t.equal(bl.length, 26) - t.equal(bl.slice().toString('ascii'), 'abcdefghijklmnopqrstuvwxyz') - - t.end() -}) - -tape('consuming from multiple buffers', function (t) { - const bl = new BufferList() - - bl.append(Buffer.from('abcd')) - bl.append(Buffer.from('efg')) - bl.append(Buffer.from('hi')) - bl.append(Buffer.from('j')) - - t.equal(bl.length, 10) - - t.equal(bl.slice(0, 10).toString('ascii'), 'abcdefghij') - - bl.consume(3) - t.equal(bl.length, 7) - t.equal(bl.slice(0, 7).toString('ascii'), 'defghij') - - bl.consume(2) - t.equal(bl.length, 5) - t.equal(bl.slice(0, 5).toString('ascii'), 'fghij') - - bl.consume(1) - t.equal(bl.length, 4) - t.equal(bl.slice(0, 4).toString('ascii'), 'ghij') - - bl.consume(1) - t.equal(bl.length, 3) - t.equal(bl.slice(0, 3).toString('ascii'), 'hij') - - bl.consume(2) - t.equal(bl.length, 1) - t.equal(bl.slice(0, 1).toString('ascii'), 'j') - - t.end() -}) - -tape('complete consumption', function (t) { - const bl = new BufferList() - - bl.append(Buffer.from('a')) - bl.append(Buffer.from('b')) - - bl.consume(2) - - t.equal(bl.length, 0) - t.equal(bl._bufs.length, 0) - - t.end() -}) - -tape('test readUInt8 / readInt8', function (t) { - const buf1 = Buffer.alloc(1) - const buf2 = Buffer.alloc(3) - const buf3 = Buffer.alloc(3) - const bl = new BufferList() - - buf1[0] = 0x1 - buf2[1] = 0x3 - buf2[2] = 0x4 - buf3[0] = 0x23 - buf3[1] = 0x42 - - bl.append(buf1) - bl.append(buf2) - bl.append(buf3) - - t.equal(bl.readUInt8(), 0x1) - t.equal(bl.readUInt8(2), 0x3) - t.equal(bl.readInt8(2), 0x3) - t.equal(bl.readUInt8(3), 0x4) - t.equal(bl.readInt8(3), 0x4) - t.equal(bl.readUInt8(4), 0x23) - t.equal(bl.readInt8(4), 0x23) - t.equal(bl.readUInt8(5), 0x42) - t.equal(bl.readInt8(5), 0x42) - - t.end() -}) - -tape('test readUInt16LE / readUInt16BE / readInt16LE / readInt16BE', function (t) { - const buf1 = Buffer.alloc(1) - const buf2 = Buffer.alloc(3) - const buf3 = Buffer.alloc(3) - const bl = new BufferList() - - buf1[0] = 0x1 - buf2[1] = 0x3 - buf2[2] = 0x4 - buf3[0] = 0x23 - buf3[1] = 0x42 - - bl.append(buf1) - bl.append(buf2) - bl.append(buf3) - - t.equal(bl.readUInt16BE(), 0x0100) - t.equal(bl.readUInt16LE(), 0x0001) - t.equal(bl.readUInt16BE(2), 0x0304) - t.equal(bl.readUInt16LE(2), 0x0403) - t.equal(bl.readInt16BE(2), 0x0304) - t.equal(bl.readInt16LE(2), 0x0403) - t.equal(bl.readUInt16BE(3), 0x0423) - t.equal(bl.readUInt16LE(3), 0x2304) - t.equal(bl.readInt16BE(3), 0x0423) - t.equal(bl.readInt16LE(3), 0x2304) - t.equal(bl.readUInt16BE(4), 0x2342) - t.equal(bl.readUInt16LE(4), 0x4223) - t.equal(bl.readInt16BE(4), 0x2342) - t.equal(bl.readInt16LE(4), 0x4223) - - t.end() -}) - -tape('test readUInt32LE / readUInt32BE / readInt32LE / readInt32BE', function (t) { - const buf1 = Buffer.alloc(1) - const buf2 = Buffer.alloc(3) - const buf3 = Buffer.alloc(3) - const bl = new BufferList() - - buf1[0] = 0x1 - buf2[1] = 0x3 - buf2[2] = 0x4 - buf3[0] = 0x23 - buf3[1] = 0x42 - - bl.append(buf1) - bl.append(buf2) - bl.append(buf3) - - t.equal(bl.readUInt32BE(), 0x01000304) - t.equal(bl.readUInt32LE(), 0x04030001) - t.equal(bl.readUInt32BE(2), 0x03042342) - t.equal(bl.readUInt32LE(2), 0x42230403) - t.equal(bl.readInt32BE(2), 0x03042342) - t.equal(bl.readInt32LE(2), 0x42230403) - - t.end() -}) - -tape('test readUIntLE / readUIntBE / readIntLE / readIntBE', function (t) { - const buf1 = Buffer.alloc(1) - const buf2 = Buffer.alloc(3) - const buf3 = Buffer.alloc(3) - const bl = new BufferList() - - buf2[0] = 0x2 - buf2[1] = 0x3 - buf2[2] = 0x4 - buf3[0] = 0x23 - buf3[1] = 0x42 - buf3[2] = 0x61 - - bl.append(buf1) - bl.append(buf2) - bl.append(buf3) - - t.equal(bl.readUIntBE(1, 1), 0x02) - t.equal(bl.readUIntBE(1, 2), 0x0203) - t.equal(bl.readUIntBE(1, 3), 0x020304) - t.equal(bl.readUIntBE(1, 4), 0x02030423) - t.equal(bl.readUIntBE(1, 5), 0x0203042342) - t.equal(bl.readUIntBE(1, 6), 0x020304234261) - t.equal(bl.readUIntLE(1, 1), 0x02) - t.equal(bl.readUIntLE(1, 2), 0x0302) - t.equal(bl.readUIntLE(1, 3), 0x040302) - t.equal(bl.readUIntLE(1, 4), 0x23040302) - t.equal(bl.readUIntLE(1, 5), 0x4223040302) - t.equal(bl.readUIntLE(1, 6), 0x614223040302) - t.equal(bl.readIntBE(1, 1), 0x02) - t.equal(bl.readIntBE(1, 2), 0x0203) - t.equal(bl.readIntBE(1, 3), 0x020304) - t.equal(bl.readIntBE(1, 4), 0x02030423) - t.equal(bl.readIntBE(1, 5), 0x0203042342) - t.equal(bl.readIntBE(1, 6), 0x020304234261) - t.equal(bl.readIntLE(1, 1), 0x02) - t.equal(bl.readIntLE(1, 2), 0x0302) - t.equal(bl.readIntLE(1, 3), 0x040302) - t.equal(bl.readIntLE(1, 4), 0x23040302) - t.equal(bl.readIntLE(1, 5), 0x4223040302) - t.equal(bl.readIntLE(1, 6), 0x614223040302) - - t.end() -}) - -tape('test readFloatLE / readFloatBE', function (t) { - const buf1 = Buffer.alloc(1) - const buf2 = Buffer.alloc(3) - const buf3 = Buffer.alloc(3) - const bl = new BufferList() - - buf1[0] = 0x01 - buf2[1] = 0x00 - buf2[2] = 0x00 - buf3[0] = 0x80 - buf3[1] = 0x3f - - bl.append(buf1) - bl.append(buf2) - bl.append(buf3) - - const canonical = Buffer.concat([buf1, buf2, buf3]) - t.equal(bl.readFloatLE(), canonical.readFloatLE()) - t.equal(bl.readFloatBE(), canonical.readFloatBE()) - t.equal(bl.readFloatLE(2), canonical.readFloatLE(2)) - t.equal(bl.readFloatBE(2), canonical.readFloatBE(2)) - - t.end() -}) - -tape('test readDoubleLE / readDoubleBE', function (t) { - const buf1 = Buffer.alloc(1) - const buf2 = Buffer.alloc(3) - const buf3 = Buffer.alloc(10) - const bl = new BufferList() - - buf1[0] = 0x01 - buf2[1] = 0x55 - buf2[2] = 0x55 - buf3[0] = 0x55 - buf3[1] = 0x55 - buf3[2] = 0x55 - buf3[3] = 0x55 - buf3[4] = 0xd5 - buf3[5] = 0x3f - - bl.append(buf1) - bl.append(buf2) - bl.append(buf3) - - const canonical = Buffer.concat([buf1, buf2, buf3]) - t.equal(bl.readDoubleBE(), canonical.readDoubleBE()) - t.equal(bl.readDoubleLE(), canonical.readDoubleLE()) - t.equal(bl.readDoubleBE(2), canonical.readDoubleBE(2)) - t.equal(bl.readDoubleLE(2), canonical.readDoubleLE(2)) - - t.end() -}) - -tape('test toString', function (t) { - const bl = new BufferList() - - bl.append(Buffer.from('abcd')) - bl.append(Buffer.from('efg')) - bl.append(Buffer.from('hi')) - bl.append(Buffer.from('j')) - - t.equal(bl.toString('ascii', 0, 10), 'abcdefghij') - t.equal(bl.toString('ascii', 3, 10), 'defghij') - t.equal(bl.toString('ascii', 3, 6), 'def') - t.equal(bl.toString('ascii', 3, 8), 'defgh') - t.equal(bl.toString('ascii', 5, 10), 'fghij') - - t.end() -}) - -tape('test toString encoding', function (t) { - const bl = new BufferList() - const b = Buffer.from('abcdefghij\xff\x00') - - bl.append(Buffer.from('abcd')) - bl.append(Buffer.from('efg')) - bl.append(Buffer.from('hi')) - bl.append(Buffer.from('j')) - bl.append(Buffer.from('\xff\x00')) - - encodings.forEach(function (enc) { - t.equal(bl.toString(enc), b.toString(enc), enc) - }) - - t.end() -}) - -tape('uninitialized memory', function (t) { - const secret = crypto.randomBytes(256) - for (let i = 0; i < 1e6; i++) { - const clone = Buffer.from(secret) - const bl = new BufferList() - bl.append(Buffer.from('a')) - bl.consume(-1024) - const buf = bl.slice(1) - if (buf.indexOf(clone) !== -1) { - t.fail(`Match (at ${i})`) - break - } - } - t.end() -}) - -!process.browser && tape('test stream', function (t) { - const random = crypto.randomBytes(65534) - - const bl = new BufferList((err, buf) => { - t.ok(Buffer.isBuffer(buf)) - t.ok(err === null) - t.ok(random.equals(bl.slice())) - t.ok(random.equals(buf.slice())) - - bl.pipe(fs.createWriteStream('/tmp/bl_test_rnd_out.dat')) - .on('close', function () { - const rndhash = crypto.createHash('md5').update(random).digest('hex') - const md5sum = crypto.createHash('md5') - const s = fs.createReadStream('/tmp/bl_test_rnd_out.dat') - - s.on('data', md5sum.update.bind(md5sum)) - s.on('end', function () { - t.equal(rndhash, md5sum.digest('hex'), 'woohoo! correct hash!') - t.end() - }) - }) - }) - - fs.writeFileSync('/tmp/bl_test_rnd.dat', random) - fs.createReadStream('/tmp/bl_test_rnd.dat').pipe(bl) -}) - -tape('instantiation with Buffer', function (t) { - const buf = crypto.randomBytes(1024) - const buf2 = crypto.randomBytes(1024) - let b = BufferList(buf) - - t.equal(buf.toString('hex'), b.slice().toString('hex'), 'same buffer') - b = BufferList([buf, buf2]) - t.equal(b.slice().toString('hex'), Buffer.concat([buf, buf2]).toString('hex'), 'same buffer') - - t.end() -}) - -tape('test String appendage', function (t) { - const bl = new BufferList() - const b = Buffer.from('abcdefghij\xff\x00') - - bl.append('abcd') - bl.append('efg') - bl.append('hi') - bl.append('j') - bl.append('\xff\x00') - - encodings.forEach(function (enc) { - t.equal(bl.toString(enc), b.toString(enc)) - }) - - t.end() -}) - -tape('test Number appendage', function (t) { - const bl = new BufferList() - const b = Buffer.from('1234567890') - - bl.append(1234) - bl.append(567) - bl.append(89) - bl.append(0) - - encodings.forEach(function (enc) { - t.equal(bl.toString(enc), b.toString(enc)) - }) - - t.end() -}) - -tape('write nothing, should get empty buffer', function (t) { - t.plan(3) - BufferList(function (err, data) { - t.notOk(err, 'no error') - t.ok(Buffer.isBuffer(data), 'got a buffer') - t.equal(0, data.length, 'got a zero-length buffer') - t.end() - }).end() -}) - -tape('unicode string', function (t) { - t.plan(2) - - const inp1 = '\u2600' - const inp2 = '\u2603' - const exp = inp1 + ' and ' + inp2 - const bl = BufferList() - - bl.write(inp1) - bl.write(' and ') - bl.write(inp2) - t.equal(exp, bl.toString()) - t.equal(Buffer.from(exp).toString('hex'), bl.toString('hex')) -}) - -tape('should emit finish', function (t) { - const source = BufferList() - const dest = BufferList() - - source.write('hello') - source.pipe(dest) - - dest.on('finish', function () { - t.equal(dest.toString('utf8'), 'hello') - t.end() - }) -}) - -tape('basic copy', function (t) { - const buf = crypto.randomBytes(1024) - const buf2 = Buffer.alloc(1024) - const b = BufferList(buf) - - b.copy(buf2) - t.equal(b.slice().toString('hex'), buf2.toString('hex'), 'same buffer') - - t.end() -}) - -tape('copy after many appends', function (t) { - const buf = crypto.randomBytes(512) - const buf2 = Buffer.alloc(1024) - const b = BufferList(buf) - - b.append(buf) - b.copy(buf2) - t.equal(b.slice().toString('hex'), buf2.toString('hex'), 'same buffer') - - t.end() -}) - -tape('copy at a precise position', function (t) { - const buf = crypto.randomBytes(1004) - const buf2 = Buffer.alloc(1024) - const b = BufferList(buf) - - b.copy(buf2, 20) - t.equal(b.slice().toString('hex'), buf2.slice(20).toString('hex'), 'same buffer') - - t.end() -}) - -tape('copy starting from a precise location', function (t) { - const buf = crypto.randomBytes(10) - const buf2 = Buffer.alloc(5) - const b = BufferList(buf) - - b.copy(buf2, 0, 5) - t.equal(b.slice(5).toString('hex'), buf2.toString('hex'), 'same buffer') - - t.end() -}) - -tape('copy in an interval', function (t) { - const rnd = crypto.randomBytes(10) - const b = BufferList(rnd) // put the random bytes there - const actual = Buffer.alloc(3) - const expected = Buffer.alloc(3) - - rnd.copy(expected, 0, 5, 8) - b.copy(actual, 0, 5, 8) - - t.equal(actual.toString('hex'), expected.toString('hex'), 'same buffer') - - t.end() -}) - -tape('copy an interval between two buffers', function (t) { - const buf = crypto.randomBytes(10) - const buf2 = Buffer.alloc(10) - const b = BufferList(buf) - - b.append(buf) - b.copy(buf2, 0, 5, 15) - - t.equal(b.slice(5, 15).toString('hex'), buf2.toString('hex'), 'same buffer') - - t.end() -}) - -tape('shallow slice across buffer boundaries', function (t) { - const bl = new BufferList(['First', 'Second', 'Third']) - - t.equal(bl.shallowSlice(3, 13).toString(), 'stSecondTh') - - t.end() -}) - -tape('shallow slice within single buffer', function (t) { - t.plan(2) - - const bl = new BufferList(['First', 'Second', 'Third']) - - t.equal(bl.shallowSlice(5, 10).toString(), 'Secon') - t.equal(bl.shallowSlice(7, 10).toString(), 'con') - - t.end() -}) - -tape('shallow slice single buffer', function (t) { - t.plan(3) - - const bl = new BufferList(['First', 'Second', 'Third']) - - t.equal(bl.shallowSlice(0, 5).toString(), 'First') - t.equal(bl.shallowSlice(5, 11).toString(), 'Second') - t.equal(bl.shallowSlice(11, 16).toString(), 'Third') -}) - -tape('shallow slice with negative or omitted indices', function (t) { - t.plan(4) - - const bl = new BufferList(['First', 'Second', 'Third']) - - t.equal(bl.shallowSlice().toString(), 'FirstSecondThird') - t.equal(bl.shallowSlice(5).toString(), 'SecondThird') - t.equal(bl.shallowSlice(5, -3).toString(), 'SecondTh') - t.equal(bl.shallowSlice(-8).toString(), 'ondThird') -}) - -tape('shallow slice does not make a copy', function (t) { - t.plan(1) - - const buffers = [Buffer.from('First'), Buffer.from('Second'), Buffer.from('Third')] - const bl = (new BufferList(buffers)).shallowSlice(5, -3) - - buffers[1].fill('h') - buffers[2].fill('h') - - t.equal(bl.toString(), 'hhhhhhhh') -}) - -tape('shallow slice with 0 length', function (t) { - t.plan(1) - - const buffers = [Buffer.from('First'), Buffer.from('Second'), Buffer.from('Third')] - const bl = (new BufferList(buffers)).shallowSlice(0, 0) - - t.equal(bl.length, 0) -}) - -tape('shallow slice with 0 length from middle', function (t) { - t.plan(1) - - const buffers = [Buffer.from('First'), Buffer.from('Second'), Buffer.from('Third')] - const bl = (new BufferList(buffers)).shallowSlice(10, 10) - - t.equal(bl.length, 0) -}) - -tape('duplicate', function (t) { - t.plan(2) - - const bl = new BufferList('abcdefghij\xff\x00') - const dup = bl.duplicate() - - t.equal(bl.prototype, dup.prototype) - t.equal(bl.toString('hex'), dup.toString('hex')) -}) - -tape('destroy no pipe', function (t) { - t.plan(2) - - const bl = new BufferList('alsdkfja;lsdkfja;lsdk') - - bl.destroy() - - t.equal(bl._bufs.length, 0) - t.equal(bl.length, 0) -}) - -tape('destroy with error', function (t) { - t.plan(3) - - const bl = new BufferList('alsdkfja;lsdkfja;lsdk') - const err = new Error('kaboom') - - bl.destroy(err) - bl.on('error', function (_err) { - t.equal(_err, err) - }) - - t.equal(bl._bufs.length, 0) - t.equal(bl.length, 0) -}) - -!process.browser && tape('destroy with pipe before read end', function (t) { - t.plan(2) - - const bl = new BufferList() - fs.createReadStream(path.join(__dirname, '/test.js')) - .pipe(bl) - - bl.destroy() - - t.equal(bl._bufs.length, 0) - t.equal(bl.length, 0) -}) - -!process.browser && tape('destroy with pipe before read end with race', function (t) { - t.plan(2) - - const bl = new BufferList() - - fs.createReadStream(path.join(__dirname, '/test.js')) - .pipe(bl) - - setTimeout(function () { - bl.destroy() - setTimeout(function () { - t.equal(bl._bufs.length, 0) - t.equal(bl.length, 0) - }, 500) - }, 500) -}) - -!process.browser && tape('destroy with pipe after read end', function (t) { - t.plan(2) - - const bl = new BufferList() - - fs.createReadStream(path.join(__dirname, '/test.js')) - .on('end', onEnd) - .pipe(bl) - - function onEnd () { - bl.destroy() - - t.equal(bl._bufs.length, 0) - t.equal(bl.length, 0) - } -}) - -!process.browser && tape('destroy with pipe while writing to a destination', function (t) { - t.plan(4) - - const bl = new BufferList() - const ds = new BufferList() - - fs.createReadStream(path.join(__dirname, '/test.js')) - .on('end', onEnd) - .pipe(bl) - - function onEnd () { - bl.pipe(ds) - - setTimeout(function () { - bl.destroy() - - t.equals(bl._bufs.length, 0) - t.equals(bl.length, 0) - - ds.destroy() - - t.equals(bl._bufs.length, 0) - t.equals(bl.length, 0) - }, 100) - } -}) - -!process.browser && tape('handle error', function (t) { - t.plan(2) - - fs.createReadStream('/does/not/exist').pipe(BufferList(function (err, data) { - t.ok(err instanceof Error, 'has error') - t.notOk(data, 'no data') - })) -}) diff --git a/WechatBot/node_modules/bmp-js/.npmignore b/WechatBot/node_modules/bmp-js/.npmignore deleted file mode 100644 index 34977ee7d..000000000 --- a/WechatBot/node_modules/bmp-js/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -.idea \ No newline at end of file diff --git a/WechatBot/node_modules/bmp-js/LICENSE b/WechatBot/node_modules/bmp-js/LICENSE deleted file mode 100644 index 4b20aefff..000000000 --- a/WechatBot/node_modules/bmp-js/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2014 @丝刀口 - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/bmp-js/README.md b/WechatBot/node_modules/bmp-js/README.md deleted file mode 100644 index d5fa52b75..000000000 --- a/WechatBot/node_modules/bmp-js/README.md +++ /dev/null @@ -1,44 +0,0 @@ -bmp-js -====== - -A pure javascript Bmp encoder and decoder for node.js - -Supports all bits decoding(1,4,8,16,24,32) and encoding with 24bit. - -##Install - - $ npm install bmp-js - - -How to use? ---- -###Decode BMP -```js -var bmp = require("bmp-js"); -var bmpBuffer = fs.readFileSync('bit24.bmp'); -var bmpData = bmp.decode(bmpBuffer); - -``` - -`bmpData` has all properties includes: - -1. fileSize,reserved,offset - -2. headerSize,width,height,planes,bitPP,compress,rawSize,hr,vr,colors,importantColors - -3. palette - -4. data-------byte array order by ABGR ABGR ABGR,4 bytes per pixel - - -###Encode RGB -```js -var bmp = require("bmp-js"); -//bmpData={data:Buffer,width:Number,height:Height} -var rawData = bmp.encode(bmpData);//default no compression,write rawData to .bmp file - -``` - -License ---- -U can use on free with [MIT License](https://github.com/shaozilee/bmp-js/blob/master/LICENSE) \ No newline at end of file diff --git a/WechatBot/node_modules/bmp-js/bmp-js.iml b/WechatBot/node_modules/bmp-js/bmp-js.iml deleted file mode 100644 index 8021953ed..000000000 --- a/WechatBot/node_modules/bmp-js/bmp-js.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/bmp-js/index.js b/WechatBot/node_modules/bmp-js/index.js deleted file mode 100755 index dbb578c34..000000000 --- a/WechatBot/node_modules/bmp-js/index.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @author shaozilee - * - * support 1bit 4bit 8bit 24bit decode - * encode with 24bit - * - */ - -var encode = require('./lib/encoder'), - decode = require('./lib/decoder'); - -module.exports = { - encode: encode, - decode: decode -}; diff --git a/WechatBot/node_modules/bmp-js/lib/decoder.js b/WechatBot/node_modules/bmp-js/lib/decoder.js deleted file mode 100755 index b66d1812e..000000000 --- a/WechatBot/node_modules/bmp-js/lib/decoder.js +++ /dev/null @@ -1,485 +0,0 @@ -/** - * @author shaozilee - * - * Bmp format decoder,support 1bit 4bit 8bit 24bit bmp - * - */ - -function BmpDecoder(buffer,is_with_alpha) { - this.pos = 0; - this.buffer = buffer; - this.is_with_alpha = !!is_with_alpha; - this.bottom_up = true; - this.flag = this.buffer.toString("utf-8", 0, this.pos += 2); - if (this.flag != "BM") throw new Error("Invalid BMP File"); - this.parseHeader(); - this.parseRGBA(); -} - -BmpDecoder.prototype.parseHeader = function() { - this.fileSize = this.buffer.readUInt32LE(this.pos); - this.pos += 4; - this.reserved = this.buffer.readUInt32LE(this.pos); - this.pos += 4; - this.offset = this.buffer.readUInt32LE(this.pos); - this.pos += 4; - this.headerSize = this.buffer.readUInt32LE(this.pos); - this.pos += 4; - this.width = this.buffer.readUInt32LE(this.pos); - this.pos += 4; - this.height = this.buffer.readInt32LE(this.pos); - this.pos += 4; - this.planes = this.buffer.readUInt16LE(this.pos); - this.pos += 2; - this.bitPP = this.buffer.readUInt16LE(this.pos); - this.pos += 2; - this.compress = this.buffer.readUInt32LE(this.pos); - this.pos += 4; - this.rawSize = this.buffer.readUInt32LE(this.pos); - this.pos += 4; - this.hr = this.buffer.readUInt32LE(this.pos); - this.pos += 4; - this.vr = this.buffer.readUInt32LE(this.pos); - this.pos += 4; - this.colors = this.buffer.readUInt32LE(this.pos); - this.pos += 4; - this.importantColors = this.buffer.readUInt32LE(this.pos); - this.pos += 4; - - if(this.bitPP === 16 && this.is_with_alpha){ - this.bitPP = 15 - } - if (this.bitPP < 15) { - var len = this.colors === 0 ? 1 << this.bitPP : this.colors; - this.palette = new Array(len); - for (var i = 0; i < len; i++) { - var blue = this.buffer.readUInt8(this.pos++); - var green = this.buffer.readUInt8(this.pos++); - var red = this.buffer.readUInt8(this.pos++); - var quad = this.buffer.readUInt8(this.pos++); - this.palette[i] = { - red: red, - green: green, - blue: blue, - quad: quad - }; - } - } - if(this.height < 0) { - this.height *= -1; - this.bottom_up = false; - } - -} - -BmpDecoder.prototype.parseRGBA = function() { - var bitn = "bit" + this.bitPP; - var len = this.width * this.height * 4; - this.data = new Buffer(len); - this[bitn](); -}; - -BmpDecoder.prototype.bit1 = function() { - var xlen = Math.ceil(this.width / 8); - var mode = xlen%4; - var y = this.height >= 0 ? this.height - 1 : -this.height - for (var y = this.height - 1; y >= 0; y--) { - var line = this.bottom_up ? y : this.height - 1 - y - for (var x = 0; x < xlen; x++) { - var b = this.buffer.readUInt8(this.pos++); - var location = line * this.width * 4 + x*8*4; - for (var i = 0; i < 8; i++) { - if(x*8+i>(7-i))&0x1)]; - - this.data[location+i*4] = 0; - this.data[location+i*4 + 1] = rgb.blue; - this.data[location+i*4 + 2] = rgb.green; - this.data[location+i*4 + 3] = rgb.red; - - }else{ - break; - } - } - } - - if (mode != 0){ - this.pos+=(4 - mode); - } - } -}; - -BmpDecoder.prototype.bit4 = function() { - //RLE-4 - if(this.compress == 2){ - this.data.fill(0xff); - - var location = 0; - var lines = this.bottom_up?this.height-1:0; - var low_nibble = false;//for all count of pixel - - while(location>4); - } - - if ((i & 1) && (i+1 < b)){ - c = this.buffer.readUInt8(this.pos++); - } - - low_nibble = !low_nibble; - } - - if ((((b+1) >> 1) & 1 ) == 1){ - this.pos++ - } - } - - }else{//encoded mode - for (var i = 0; i < a; i++) { - if (low_nibble) { - setPixelData.call(this, (b & 0x0f)); - } else { - setPixelData.call(this, (b & 0xf0)>>4); - } - low_nibble = !low_nibble; - } - } - - } - - - - - function setPixelData(rgbIndex){ - var rgb = this.palette[rgbIndex]; - this.data[location] = 0; - this.data[location + 1] = rgb.blue; - this.data[location + 2] = rgb.green; - this.data[location + 3] = rgb.red; - location+=4; - } - }else{ - - var xlen = Math.ceil(this.width/2); - var mode = xlen%4; - for (var y = this.height - 1; y >= 0; y--) { - var line = this.bottom_up ? y : this.height - 1 - y - for (var x = 0; x < xlen; x++) { - var b = this.buffer.readUInt8(this.pos++); - var location = line * this.width * 4 + x*2*4; - - var before = b>>4; - var after = b&0x0F; - - var rgb = this.palette[before]; - this.data[location] = 0; - this.data[location + 1] = rgb.blue; - this.data[location + 2] = rgb.green; - this.data[location + 3] = rgb.red; - - - if(x*2+1>=this.width)break; - - rgb = this.palette[after]; - - this.data[location+4] = 0; - this.data[location+4 + 1] = rgb.blue; - this.data[location+4 + 2] = rgb.green; - this.data[location+4 + 3] = rgb.red; - - } - - if (mode != 0){ - this.pos+=(4 - mode); - } - } - - } - -}; - -BmpDecoder.prototype.bit8 = function() { - //RLE-8 - if(this.compress == 1){ - this.data.fill(0xff); - - var location = 0; - var lines = this.bottom_up?this.height-1:0; - - while(location= 0; y--) { - var line = this.bottom_up ? y : this.height - 1 - y - for (var x = 0; x < this.width; x++) { - var b = this.buffer.readUInt8(this.pos++); - var location = line * this.width * 4 + x * 4; - if (b < this.palette.length) { - var rgb = this.palette[b]; - - this.data[location] = 0; - this.data[location + 1] = rgb.blue; - this.data[location + 2] = rgb.green; - this.data[location + 3] = rgb.red; - - } else { - this.data[location] = 0; - this.data[location + 1] = 0xFF; - this.data[location + 2] = 0xFF; - this.data[location + 3] = 0xFF; - } - } - if (mode != 0) { - this.pos += (4 - mode); - } - } - } -}; - -BmpDecoder.prototype.bit15 = function() { - var dif_w =this.width % 3; - var _11111 = parseInt("11111", 2),_1_5 = _11111; - for (var y = this.height - 1; y >= 0; y--) { - var line = this.bottom_up ? y : this.height - 1 - y - for (var x = 0; x < this.width; x++) { - - var B = this.buffer.readUInt16LE(this.pos); - this.pos+=2; - var blue = (B & _1_5) / _1_5 * 255 | 0; - var green = (B >> 5 & _1_5 ) / _1_5 * 255 | 0; - var red = (B >> 10 & _1_5) / _1_5 * 255 | 0; - var alpha = (B>>15)?0xFF:0x00; - - var location = line * this.width * 4 + x * 4; - - this.data[location] = alpha; - this.data[location + 1] = blue; - this.data[location + 2] = green; - this.data[location + 3] = red; - } - //skip extra bytes - this.pos += dif_w; - } -}; - -BmpDecoder.prototype.bit16 = function() { - var dif_w =(this.width % 2)*2; - //default xrgb555 - this.maskRed = 0x7C00; - this.maskGreen = 0x3E0; - this.maskBlue =0x1F; - this.mask0 = 0; - - if(this.compress == 3){ - this.maskRed = this.buffer.readUInt32LE(this.pos); - this.pos+=4; - this.maskGreen = this.buffer.readUInt32LE(this.pos); - this.pos+=4; - this.maskBlue = this.buffer.readUInt32LE(this.pos); - this.pos+=4; - this.mask0 = this.buffer.readUInt32LE(this.pos); - this.pos+=4; - } - - - var ns=[0,0,0]; - for (var i=0;i<16;i++){ - if ((this.maskRed>>i)&0x01) ns[0]++; - if ((this.maskGreen>>i)&0x01) ns[1]++; - if ((this.maskBlue>>i)&0x01) ns[2]++; - } - ns[1]+=ns[0]; ns[2]+=ns[1]; ns[0]=8-ns[0]; ns[1]-=8; ns[2]-=8; - - for (var y = this.height - 1; y >= 0; y--) { - var line = this.bottom_up ? y : this.height - 1 - y; - for (var x = 0; x < this.width; x++) { - - var B = this.buffer.readUInt16LE(this.pos); - this.pos+=2; - - var blue = (B&this.maskBlue)<>ns[1]; - var red = (B&this.maskRed)>>ns[2]; - - var location = line * this.width * 4 + x * 4; - - this.data[location] = 0; - this.data[location + 1] = blue; - this.data[location + 2] = green; - this.data[location + 3] = red; - } - //skip extra bytes - this.pos += dif_w; - } -}; - -BmpDecoder.prototype.bit24 = function() { - for (var y = this.height - 1; y >= 0; y--) { - var line = this.bottom_up ? y : this.height - 1 - y - for (var x = 0; x < this.width; x++) { - //Little Endian rgb - var blue = this.buffer.readUInt8(this.pos++); - var green = this.buffer.readUInt8(this.pos++); - var red = this.buffer.readUInt8(this.pos++); - var location = line * this.width * 4 + x * 4; - this.data[location] = 0; - this.data[location + 1] = blue; - this.data[location + 2] = green; - this.data[location + 3] = red; - } - //skip extra bytes - this.pos += (this.width % 4); - } - -}; - -/** - * add 32bit decode func - * @author soubok - */ -BmpDecoder.prototype.bit32 = function() { - //BI_BITFIELDS - if(this.compress == 3){ - this.maskRed = this.buffer.readUInt32LE(this.pos); - this.pos+=4; - this.maskGreen = this.buffer.readUInt32LE(this.pos); - this.pos+=4; - this.maskBlue = this.buffer.readUInt32LE(this.pos); - this.pos+=4; - this.mask0 = this.buffer.readUInt32LE(this.pos); - this.pos+=4; - for (var y = this.height - 1; y >= 0; y--) { - var line = this.bottom_up ? y : this.height - 1 - y; - for (var x = 0; x < this.width; x++) { - //Little Endian rgba - var alpha = this.buffer.readUInt8(this.pos++); - var blue = this.buffer.readUInt8(this.pos++); - var green = this.buffer.readUInt8(this.pos++); - var red = this.buffer.readUInt8(this.pos++); - var location = line * this.width * 4 + x * 4; - this.data[location] = alpha; - this.data[location + 1] = blue; - this.data[location + 2] = green; - this.data[location + 3] = red; - } - } - - }else{ - for (var y = this.height - 1; y >= 0; y--) { - var line = this.bottom_up ? y : this.height - 1 - y; - for (var x = 0; x < this.width; x++) { - //Little Endian argb - var blue = this.buffer.readUInt8(this.pos++); - var green = this.buffer.readUInt8(this.pos++); - var red = this.buffer.readUInt8(this.pos++); - var alpha = this.buffer.readUInt8(this.pos++); - var location = line * this.width * 4 + x * 4; - this.data[location] = alpha; - this.data[location + 1] = blue; - this.data[location + 2] = green; - this.data[location + 3] = red; - } - } - - } - - - - -}; - -BmpDecoder.prototype.getData = function() { - return this.data; -}; - -module.exports = function(bmpData) { - var decoder = new BmpDecoder(bmpData); - return decoder; -}; diff --git a/WechatBot/node_modules/bmp-js/lib/encoder.js b/WechatBot/node_modules/bmp-js/lib/encoder.js deleted file mode 100755 index ddb3ef6b1..000000000 --- a/WechatBot/node_modules/bmp-js/lib/encoder.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * @author shaozilee - * - * BMP format encoder,encode 24bit BMP - * Not support quality compression - * - */ - -function BmpEncoder(imgData){ - this.buffer = imgData.data; - this.width = imgData.width; - this.height = imgData.height; - this.extraBytes = this.width%4; - this.rgbSize = this.height*(3*this.width+this.extraBytes); - this.headerInfoSize = 40; - - this.data = []; - /******************header***********************/ - this.flag = "BM"; - this.reserved = 0; - this.offset = 54; - this.fileSize = this.rgbSize+this.offset; - this.planes = 1; - this.bitPP = 24; - this.compress = 0; - this.hr = 0; - this.vr = 0; - this.colors = 0; - this.importantColors = 0; -} - -BmpEncoder.prototype.encode = function() { - var tempBuffer = new Buffer(this.offset+this.rgbSize); - this.pos = 0; - tempBuffer.write(this.flag,this.pos,2);this.pos+=2; - tempBuffer.writeUInt32LE(this.fileSize,this.pos);this.pos+=4; - tempBuffer.writeUInt32LE(this.reserved,this.pos);this.pos+=4; - tempBuffer.writeUInt32LE(this.offset,this.pos);this.pos+=4; - - tempBuffer.writeUInt32LE(this.headerInfoSize,this.pos);this.pos+=4; - tempBuffer.writeUInt32LE(this.width,this.pos);this.pos+=4; - tempBuffer.writeInt32LE(-this.height,this.pos);this.pos+=4; - tempBuffer.writeUInt16LE(this.planes,this.pos);this.pos+=2; - tempBuffer.writeUInt16LE(this.bitPP,this.pos);this.pos+=2; - tempBuffer.writeUInt32LE(this.compress,this.pos);this.pos+=4; - tempBuffer.writeUInt32LE(this.rgbSize,this.pos);this.pos+=4; - tempBuffer.writeUInt32LE(this.hr,this.pos);this.pos+=4; - tempBuffer.writeUInt32LE(this.vr,this.pos);this.pos+=4; - tempBuffer.writeUInt32LE(this.colors,this.pos);this.pos+=4; - tempBuffer.writeUInt32LE(this.importantColors,this.pos);this.pos+=4; - - var i=0; - var rowBytes = 3*this.width+this.extraBytes; - - for (var y = 0; y 0){ - var fillOffset = this.pos+y*rowBytes+this.width*3; - tempBuffer.fill(0,fillOffset,fillOffset+this.extraBytes); - } - } - - return tempBuffer; -}; - -module.exports = function(imgData, quality) { - if (typeof quality === 'undefined') quality = 100; - var encoder = new BmpEncoder(imgData); - var data = encoder.encode(); - return { - data: data, - width: imgData.width, - height: imgData.height - }; -}; diff --git a/WechatBot/node_modules/bmp-js/package.json b/WechatBot/node_modules/bmp-js/package.json deleted file mode 100644 index befbcb7e9..000000000 --- a/WechatBot/node_modules/bmp-js/package.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "name": "bmp-js", - "version": "0.1.0", - "description": "A pure javascript BMP encoder and decoder", - "main": "index.js", - "repository": { - "type": "git", - "url": "https://github.com/shaozilee/bmp-js" - }, - "keywords": [ - "bmp", - "1bit", - "4bit", - "8bit", - "16bit", - "24bit", - "32bit", - "encoder", - "decoder", - "image", - "javascript", - "js" - ], - "author": { - "name": "shaozilee", - "email": "shaozilee@gmail.com" - }, - "license": "MIT", - "dependencies": {}, - "devDependencies": { - } -} diff --git a/WechatBot/node_modules/bmp-js/test/bit1.bmp b/WechatBot/node_modules/bmp-js/test/bit1.bmp deleted file mode 100644 index c33b94d96..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit1.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit16_565.bmp b/WechatBot/node_modules/bmp-js/test/bit16_565.bmp deleted file mode 100644 index f111172f7..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit16_565.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit16_565_out.bmp b/WechatBot/node_modules/bmp-js/test/bit16_565_out.bmp deleted file mode 100644 index a618d6ff4..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit16_565_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit16_a444.bmp b/WechatBot/node_modules/bmp-js/test/bit16_a444.bmp deleted file mode 100644 index 7eabc6660..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit16_a444.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit16_a444_out.bmp b/WechatBot/node_modules/bmp-js/test/bit16_a444_out.bmp deleted file mode 100644 index 413b81807..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit16_a444_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit16_a555.bmp b/WechatBot/node_modules/bmp-js/test/bit16_a555.bmp deleted file mode 100644 index 8f28347bd..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit16_a555.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit16_a555_out.bmp b/WechatBot/node_modules/bmp-js/test/bit16_a555_out.bmp deleted file mode 100644 index 643528694..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit16_a555_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit16_x444.bmp b/WechatBot/node_modules/bmp-js/test/bit16_x444.bmp deleted file mode 100644 index 3afabae2a..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit16_x444.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit16_x444_out.bmp b/WechatBot/node_modules/bmp-js/test/bit16_x444_out.bmp deleted file mode 100644 index 413b81807..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit16_x444_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit16_x555.bmp b/WechatBot/node_modules/bmp-js/test/bit16_x555.bmp deleted file mode 100644 index 077122ed5..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit16_x555.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit16_x555_out.bmp b/WechatBot/node_modules/bmp-js/test/bit16_x555_out.bmp deleted file mode 100644 index 643528694..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit16_x555_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit1_out.bmp b/WechatBot/node_modules/bmp-js/test/bit1_out.bmp deleted file mode 100644 index 830c3796c..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit1_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit24.bmp b/WechatBot/node_modules/bmp-js/test/bit24.bmp deleted file mode 100644 index 9dcaba91b..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit24.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit24_out.bmp b/WechatBot/node_modules/bmp-js/test/bit24_out.bmp deleted file mode 100644 index 3a9aa823e..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit24_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit32.bmp b/WechatBot/node_modules/bmp-js/test/bit32.bmp deleted file mode 100644 index 411a1769d..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit32.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit32_alpha.bmp b/WechatBot/node_modules/bmp-js/test/bit32_alpha.bmp deleted file mode 100644 index 57acdbe3b..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit32_alpha.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit32_alpha_out.bmp b/WechatBot/node_modules/bmp-js/test/bit32_alpha_out.bmp deleted file mode 100644 index 3a9aa823e..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit32_alpha_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit32_out.bmp b/WechatBot/node_modules/bmp-js/test/bit32_out.bmp deleted file mode 100644 index 3a9aa823e..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit32_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit4.bmp b/WechatBot/node_modules/bmp-js/test/bit4.bmp deleted file mode 100644 index 665349b2f..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit4.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit4_RLE.bmp b/WechatBot/node_modules/bmp-js/test/bit4_RLE.bmp deleted file mode 100644 index faf74b55c..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit4_RLE.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit4_RLE_out.bmp b/WechatBot/node_modules/bmp-js/test/bit4_RLE_out.bmp deleted file mode 100644 index 839e830ac..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit4_RLE_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit4_out.bmp b/WechatBot/node_modules/bmp-js/test/bit4_out.bmp deleted file mode 100644 index 519872066..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit4_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit8.bmp b/WechatBot/node_modules/bmp-js/test/bit8.bmp deleted file mode 100644 index 9d7c7061a..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit8.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit8_RLE.bmp b/WechatBot/node_modules/bmp-js/test/bit8_RLE.bmp deleted file mode 100644 index e959d984b..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit8_RLE.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit8_RLE_out.bmp b/WechatBot/node_modules/bmp-js/test/bit8_RLE_out.bmp deleted file mode 100644 index 0ce584bdd..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit8_RLE_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/bit8_out.bmp b/WechatBot/node_modules/bmp-js/test/bit8_out.bmp deleted file mode 100644 index 6ffcb1d39..000000000 Binary files a/WechatBot/node_modules/bmp-js/test/bit8_out.bmp and /dev/null differ diff --git a/WechatBot/node_modules/bmp-js/test/test.js b/WechatBot/node_modules/bmp-js/test/test.js deleted file mode 100755 index 239a77779..000000000 --- a/WechatBot/node_modules/bmp-js/test/test.js +++ /dev/null @@ -1,33 +0,0 @@ -var fs = require("fs"); - -var coder = require("../index.js"); -var bmps = ["./bit1", "./bit4", "./bit4_RLE", "./bit8", "./bit8_RLE", "./bit16_565", "./bit16_a444", "./bit16_a555", "./bit16_x444", "./bit16_x555", "./bit24", "./bit32", "./bit32_alpha"]; - -console.log("test bmp decoding and encoding..."); - -for(var b=0; b - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/brace-expansion/README.md b/WechatBot/node_modules/brace-expansion/README.md deleted file mode 100644 index e55c583dd..000000000 --- a/WechatBot/node_modules/brace-expansion/README.md +++ /dev/null @@ -1,135 +0,0 @@ -# brace-expansion - -[Brace expansion](https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html), -as known from sh/bash, in JavaScript. - -[![build status](https://secure.travis-ci.org/juliangruber/brace-expansion.svg)](http://travis-ci.org/juliangruber/brace-expansion) -[![downloads](https://img.shields.io/npm/dm/brace-expansion.svg)](https://www.npmjs.org/package/brace-expansion) -[![Greenkeeper badge](https://badges.greenkeeper.io/juliangruber/brace-expansion.svg)](https://greenkeeper.io/) - -[![testling badge](https://ci.testling.com/juliangruber/brace-expansion.png)](https://ci.testling.com/juliangruber/brace-expansion) - -## Example - -```js -var expand = require('brace-expansion'); - -expand('file-{a,b,c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('-v{,,}') -// => ['-v', '-v', '-v'] - -expand('file{0..2}.jpg') -// => ['file0.jpg', 'file1.jpg', 'file2.jpg'] - -expand('file-{a..c}.jpg') -// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg'] - -expand('file{2..0}.jpg') -// => ['file2.jpg', 'file1.jpg', 'file0.jpg'] - -expand('file{0..4..2}.jpg') -// => ['file0.jpg', 'file2.jpg', 'file4.jpg'] - -expand('file-{a..e..2}.jpg') -// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg'] - -expand('file{00..10..5}.jpg') -// => ['file00.jpg', 'file05.jpg', 'file10.jpg'] - -expand('{{A..C},{a..c}}') -// => ['A', 'B', 'C', 'a', 'b', 'c'] - -expand('ppp{,config,oe{,conf}}') -// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf'] -``` - -## API - -```js -var expand = require('brace-expansion'); -``` - -### var expanded = expand(str) - -Return an array of all possible and valid expansions of `str`. If none are -found, `[str]` is returned. - -Valid expansions are: - -```js -/^(.*,)+(.+)?$/ -// {a,b,...} -``` - -A comma separated list of options, like `{a,b}` or `{a,{b,c}}` or `{,a,}`. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -A numeric sequence from `x` to `y` inclusive, with optional increment. -If `x` or `y` start with a leading `0`, all the numbers will be padded -to have equal length. Negative numbers and backwards iteration work too. - -```js -/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/ -// {x..y[..incr]} -``` - -An alphabetic sequence from `x` to `y` inclusive, with optional increment. -`x` and `y` must be exactly one character, and if given, `incr` must be a -number. - -For compatibility reasons, the string `${` is not eligible for brace expansion. - -## Installation - -With [npm](https://npmjs.org) do: - -```bash -npm install brace-expansion -``` - -## Contributors - -- [Julian Gruber](https://github.com/juliangruber) -- [Isaac Z. Schlueter](https://github.com/isaacs) - -## Sponsors - -This module is proudly supported by my [Sponsors](https://github.com/juliangruber/sponsors)! - -Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my [Patreon](https://www.patreon.com/juliangruber). Not sure how much of my modules you're using? Try [feross/thanks](https://github.com/feross/thanks)! - -## Security contact information - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). -Tidelift will coordinate the fix and disclosure. - -## License - -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/brace-expansion/index.js b/WechatBot/node_modules/brace-expansion/index.js deleted file mode 100755 index 4af9ddee4..000000000 --- a/WechatBot/node_modules/brace-expansion/index.js +++ /dev/null @@ -1,203 +0,0 @@ -var balanced = require('balanced-match'); - -module.exports = expandTop; - -var escSlash = '\0SLASH'+Math.random()+'\0'; -var escOpen = '\0OPEN'+Math.random()+'\0'; -var escClose = '\0CLOSE'+Math.random()+'\0'; -var escComma = '\0COMMA'+Math.random()+'\0'; -var escPeriod = '\0PERIOD'+Math.random()+'\0'; - -function numeric(str) { - return parseInt(str, 10) == str - ? parseInt(str, 10) - : str.charCodeAt(0); -} - -function escapeBraces(str) { - return str.split('\\\\').join(escSlash) - .split('\\{').join(escOpen) - .split('\\}').join(escClose) - .split('\\,').join(escComma) - .split('\\.').join(escPeriod); -} - -function unescapeBraces(str) { - return str.split(escSlash).join('\\') - .split(escOpen).join('{') - .split(escClose).join('}') - .split(escComma).join(',') - .split(escPeriod).join('.'); -} - - -// Basically just str.split(","), but handling cases -// where we have nested braced sections, which should be -// treated as individual members, like {a,{b,c},d} -function parseCommaParts(str) { - if (!str) - return ['']; - - var parts = []; - var m = balanced('{', '}', str); - - if (!m) - return str.split(','); - - var pre = m.pre; - var body = m.body; - var post = m.post; - var p = pre.split(','); - - p[p.length-1] += '{' + body + '}'; - var postParts = parseCommaParts(post); - if (post.length) { - p[p.length-1] += postParts.shift(); - p.push.apply(p, postParts); - } - - parts.push.apply(parts, p); - - return parts; -} - -function expandTop(str) { - if (!str) - return []; - - // I don't know why Bash 4.3 does this, but it does. - // Anything starting with {} will have the first two bytes preserved - // but *only* at the top level, so {},a}b will not expand to anything, - // but a{},b}c will be expanded to [a}c,abc]. - // One could argue that this is a bug in Bash, but since the goal of - // this module is to match Bash's rules, we escape a leading {} - if (str.substr(0, 2) === '{}') { - str = '\\{\\}' + str.substr(2); - } - - return expand(escapeBraces(str), true).map(unescapeBraces); -} - -function embrace(str) { - return '{' + str + '}'; -} -function isPadded(el) { - return /^-?0\d/.test(el); -} - -function lte(i, y) { - return i <= y; -} -function gte(i, y) { - return i >= y; -} - -function expand(str, isTop) { - var expansions = []; - - var m = balanced('{', '}', str); - if (!m) return [str]; - - // no need to expand pre, since it is guaranteed to be free of brace-sets - var pre = m.pre; - var post = m.post.length - ? expand(m.post, false) - : ['']; - - if (/\$$/.test(m.pre)) { - for (var k = 0; k < post.length; k++) { - var expansion = pre+ '{' + m.body + '}' + post[k]; - expansions.push(expansion); - } - } else { - var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); - var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); - var isSequence = isNumericSequence || isAlphaSequence; - var isOptions = m.body.indexOf(',') >= 0; - if (!isSequence && !isOptions) { - // {a},b} - if (m.post.match(/,.*\}/)) { - str = m.pre + '{' + m.body + escClose + m.post; - return expand(str); - } - return [str]; - } - - var n; - if (isSequence) { - n = m.body.split(/\.\./); - } else { - n = parseCommaParts(m.body); - if (n.length === 1) { - // x{{a,b}}y ==> x{a}y x{b}y - n = expand(n[0], false).map(embrace); - if (n.length === 1) { - return post.map(function(p) { - return m.pre + n[0] + p; - }); - } - } - } - - // at this point, n is the parts, and we know it's not a comma set - // with a single entry. - var N; - - if (isSequence) { - var x = numeric(n[0]); - var y = numeric(n[1]); - var width = Math.max(n[0].length, n[1].length) - var incr = n.length == 3 - ? Math.abs(numeric(n[2])) - : 1; - var test = lte; - var reverse = y < x; - if (reverse) { - incr *= -1; - test = gte; - } - var pad = n.some(isPadded); - - N = []; - - for (var i = x; test(i, y); i += incr) { - var c; - if (isAlphaSequence) { - c = String.fromCharCode(i); - if (c === '\\') - c = ''; - } else { - c = String(i); - if (pad) { - var need = width - c.length; - if (need > 0) { - var z = new Array(need + 1).join('0'); - if (i < 0) - c = '-' + z + c.slice(1); - else - c = z + c; - } - } - } - N.push(c); - } - } else { - N = []; - - for (var j = 0; j < n.length; j++) { - N.push.apply(N, expand(n[j], false)); - } - } - - for (var j = 0; j < N.length; j++) { - for (var k = 0; k < post.length; k++) { - var expansion = pre + N[j] + post[k]; - if (!isTop || isSequence || expansion) - expansions.push(expansion); - } - } - } - - return expansions; -} - diff --git a/WechatBot/node_modules/brace-expansion/package.json b/WechatBot/node_modules/brace-expansion/package.json deleted file mode 100644 index 7097d41e3..000000000 --- a/WechatBot/node_modules/brace-expansion/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "brace-expansion", - "description": "Brace expansion as known from sh/bash", - "version": "2.0.1", - "repository": { - "type": "git", - "url": "git://github.com/juliangruber/brace-expansion.git" - }, - "homepage": "https://github.com/juliangruber/brace-expansion", - "main": "index.js", - "scripts": { - "test": "tape test/*.js", - "gentest": "bash test/generate.sh", - "bench": "matcha test/perf/bench.js" - }, - "dependencies": { - "balanced-match": "^1.0.0" - }, - "devDependencies": { - "@c4312/matcha": "^1.3.1", - "tape": "^4.6.0" - }, - "keywords": [], - "author": { - "name": "Julian Gruber", - "email": "mail@juliangruber.com", - "url": "http://juliangruber.com" - }, - "license": "MIT", - "testling": { - "files": "test/*.js", - "browsers": [ - "ie/8..latest", - "firefox/20..latest", - "firefox/nightly", - "chrome/25..latest", - "chrome/canary", - "opera/12..latest", - "opera/next", - "safari/5.1..latest", - "ipad/6.0..latest", - "iphone/6.0..latest", - "android-browser/4.2..latest" - ] - } -} diff --git a/WechatBot/node_modules/brolog/LICENSE b/WechatBot/node_modules/brolog/LICENSE deleted file mode 100644 index 505cb3264..000000000 --- a/WechatBot/node_modules/brolog/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2016 Huan LI (李卓桓) - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/WechatBot/node_modules/brolog/README.md b/WechatBot/node_modules/brolog/README.md deleted file mode 100644 index 08821fd99..000000000 --- a/WechatBot/node_modules/brolog/README.md +++ /dev/null @@ -1,311 +0,0 @@ -# BROLOG - -[![npm version](https://badge.fury.io/js/brolog.svg)](https://badge.fury.io/js/brolog) -[![NPM](https://github.com/huan/brolog/workflows/NPM/badge.svg)](https://github.com/huan/brolog/actions?query=workflow%3ANPM) -[![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-blue.svg)](https://www.typescriptlang.org/) - -![Brolog](https://huan.github.io/brolog/images/brolog-logo.png) - -Brolog is Logger for Angular in Browser like Npmlog. - -## FEATURE - -1. Out-of-Box Browser Support.(with ``) -1. Out-of-Box Angular & SystemJS Support.(See: [brolog-angular-demo project](https://github.com/huan/brolog-angular-demo)) -1. Npmlog compatible interface.(i.e. `log.verbose('Brolog', 'Hello, %s', 'world!'')`) -1. Native TypeScript Support.(With typings) -1. Node.js Support.([Node.js example](https://github.com/huan/brolog/blob/master/example/npm-like-logger.js)) -1. Support show **real** line number in browser console. - > What I really get frustrated by is that I cannot wrap console.* and preserve line numbers - > - [We enabled this in Chrome DevTools via blackboxing a bit ago.](https://gist.github.com/paulirish/c307a5a585ddbcc17242) - -### Loggable Interface - -Brolog implementes [Loggable](https://github.com/huan/brolog/blob/main/src/loggable.ts): - -```ts -interface Loggable { - error (moduleName: string, message: string, ...args: any[]): void - warn (moduleName: string, message: string, ...args: any[]): void - info (moduleName: string, message: string, ...args: any[]): void - verbose (moduleName: string, message: string, ...args: any[]): void - silly (moduleName: string, message: string, ...args: any[]): void -} -``` - -You can import and use it by: - -```ts -import { Loggable } from 'brolog' -``` - -## EXAMPLE - -Here's two example: - -1. First example to demo easy to use in browser, and how it looks like npmlog. -1. Second example to demo integrate with angular DI & SystemJS. - -### 1. Super Easy to use in Browser - -You can enable Brolog in your page by simple add the following `script` tag. - -```html - -``` - -```html - - - - - -

Brolog in Browser Demo

- - - -``` - -Link: [Brolog Live demo](http://huan.github.io/brolog) - -### 2. Quick Setup to use in Angular - -`Brolog` is written mainly for act as a logger with Angular. Here's how to Inject Brolog in Angular. - -1. install brolog - - ```shell - $ npm install brolog --save - ... - ``` - -1. setup SystemJS - - ```ts - System.config({ - map: { - brolog: 'node_modules/brolog/bundles/brolog.js' - } - }) - ``` - -1. import - - ```ts - import { Brolog } from 'brolog' - ``` - -1. inject to @NgModule - - ```ts - providers: [ - Brolog, - ] - ``` - -1. inject to constructor - - ```ts - class LogApp { - constructor( - private log: Brolog - ) {} - } - ``` - -1. log - - ```ts - class LogApp { - testLog() { - this.log.verbose('Brolog', 'test log:%s', 123) - // this will log to browser console - } - } - ``` - -More details, please see the `brolog-angular-demo` git repository at [here](https://github.com/huan/brolog-angular-demo). - -Link: [Brolog ♥ Angular Live demo](http://huan.github.io/brolog) - -## BASIC USAGE - -Get a _out-of-the-box_ `log` instance to use it directly. - -```ts -import { log } from 'brolog' -``` - -If fhe environment variable `BROLOG_LEVEL` is set, that will be used to set log.level() for the global Brolog instance `log`. - -### log.{error,warn,info,verbose,silly} - -```ts -import { Brolog } from 'brolog' - -const log = new Brolog() - -// additional stuff ---------------------------+ -// message ----------+ | -// prefix ----+ | | -// level -+ | | | -// v v v v - log.info('fyi', 'I have a kitty cat: %j', myKittyCat) -``` - -### log.level(newLevel) - -* {String} 'silent' | 'error' | 'warn' | 'info' | 'verbose' | 'silly' - -The level to display logs at. Any logs at or above this level will be -displayed. The special level `silent` will prevent anything from being -displayed ever. - -### log\[level](prefix, message, ...) - -* `level` {String} The level to emit the message at -* `prefix` {String} A string prefix. Set to "" to skip. -* `message...` Arguments to `util.format` - -Emit a log message at the specified level. - -For example, - -* log.silly(prefix, message, ...) -* log.verbose(prefix, message, ...) -* log.info(prefix, message, ...) -* log.warn(prefix, message, ...) -* log.error(prefix, message, ...) - -### Environment Variable: `BROLOG_PREFIX` - -Example: - -1. Shell - - ```sh - BROLOG_PREFIX="(Contact|Puppet)" node wechaty.js - ``` - -2. This will equals to set by code API: - - ```ts - log.prefix(/^(Contact|Puppet)$/) - ``` - -## TEST - -Brolog comes with well test suit to ensure the behavior is expected. - -### Unit Test - -```shell -$ npm run unit -... -``` - -Unite Test Suite: [link](https://github.com/huan/brolog/tree/master/src/brolog.spec.ts) - -### End to End Test - -```shell -$ npm run e2e -... -``` - -End to End Test Suite: [link](https://github.com/huan/brolog/tree/master/tests/e2e) - -P.S. running E2E test is based on *brolog demo project*: [git repository](https://github.com/huan/brolog-angular-demo) - -## CHANGELOG - -### main v1.13 (Oct 27, 2021) - -1. ES Module support -1. export `Loggable` interface - -### v1.12 (Jun 18, 2020) - -1. Update to use Chatie DevOps toolsets. -1. Upgrade TypeScript, ESLint, RollUp, etc. -1. Enable GitHub Actions. - -### v1.6 (May 28th, 2018) - -1. Fix browser broken problem caused by the `rollup` behavior change. ([#69](https://github.com/huan/brolog/issues/69)) -1. Node.js: Add environment variable `BROLOG_PREFIX` to set the `prefix` filter of global `log` instance. -1. Browser: Add URL parameter variable `BROLOG_PREFIX` to set the `prefix` filter of global `log` instance. - -### v1.4 (May 2018) - -1. Continuous Deployment to `brolog@next` when the minor version in SemVer is _odd_(development release). -1. Node.js: Add environment variable `BROLOG_LEVEL` to set the loglevel of global `log` instance. -1. Browser: Add URL parameter variable `BROLOG_LEVEL` to set the loglevel of global `log` instance. - -### v1.2 (Sep 2017) - -1. Add `Brolog.enableLogging()` method for: - 1. `false` for disable logging - 1. `true` for enable logging - 1. `printTextFunc: (text: string)` for enable logging to a function. -1. Support for creating individual instances.(We only have one singleton instance before) - -### v1.0 (Apr 2017) - -Compatible with AOT & WebPack with Angular v4 - -1. Rewrite from JavaScript to TypeScript -1. Add UMD/AMD/System Module support -1. Add a new method: `enableLogging()` to get/set logger - -### v0.4 (Mar 2017) - -1. added timestamp to log output -1. fix CI back to work -1. added CD to auto deploy source code to NPM after passed CI - -### v0.3.7 (Aug 2016) - -1. added End to End test with Angular -1. supported include by `script` tag -1. full support unpkg.com - -### v0.2.0 (Jul 16 2016) - -1. added Unit Test -1. supported Angular Dependency Injection - -### v0.1.0 (Jul 14 2016) - -1. supported show real line number by set blackbox -1. added TypeScript definition file -1. supported work with SystemJS & Angular - -## REFERENCE - -1. [JavaScript Modules & Build Tools - YouTube](https://www.youtube.com/watch?v=U4ja6HeBm6s) -1. [Writing Declaration Files](https://www.typescriptlang.org/docs/handbook/writing-declaration-files.html) -1. [Angular Dependency injection tokens](https://angular.io/docs/ts/latest/guide/dependency-injection.html#!#token) -1. [Angular 2 Errors](https://daveceddia.com/angular-2-errors/) -1. [ES6 vs ES2015 - What to call a JavaScript version?](https://bytearcher.com/articles/es6-vs-es2015-name/) - -## AUTHOR - -[Huan LI](https://github.com/huan) ([李卓桓](http://linkedin.com/in/zixia)) zixia@zixia.net - -[![Profile of Huan LI (李卓桓) on StackOverflow](https://stackexchange.com/users/flair/265499.png)](https://stackexchange.com/users/265499) - -## COPYRIGHT & LICENSE - -* Code & Docs © 2017 Huan LI \ -* Code released under the Apache-2.0 License -* Docs released under Creative Commons diff --git a/WechatBot/node_modules/brolog/dist/cjs/package.json b/WechatBot/node_modules/brolog/dist/cjs/package.json deleted file mode 100644 index 5bbefffba..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "commonjs" -} diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.d.ts b/WechatBot/node_modules/brolog/dist/cjs/src/brolog.d.ts deleted file mode 100644 index 35cb30bf1..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -/*! - * Brolog JavaScript Library v1.1.0 - * https://github.com/huan/brolog - * - * Copyright Huan LI - * Released under the ISC license - * https://github.com/huan/brolog/blob/master/LICENSE - * - * Date: 2016-07 - */ -import { VERSION } from './config.js'; -import type { Loggable } from './logger.js'; -declare type LogLevelTitle = 'ERR' | 'WARN' | 'INFO' | 'VERB' | 'SILL'; -declare type TextPrinterFunction = (title: string, text?: string) => void; -declare enum LogLevel { - silent = 0, - error = 1, - warn = 2, - info = 3, - verbose = 4, - silly = 5 -} -declare type LogLevelName = keyof typeof LogLevel; -declare class Brolog implements Loggable { - private static globalInstance?; - private static globalLogLevelName; - private static globalPrefix; - private enableTimestamp; - private logLevel; - private prefixFilter?; - textPrinter: (levelTitle: LogLevelTitle, text: string) => void; - constructor(); - /** - * Create a global Brolog Instance for sharing between modules - */ - static instance(levelName?: LogLevelName, prefix?: string | RegExp): Brolog; - static version(): string; - version(): string; - static enableLogging(printerFunc: boolean | TextPrinterFunction): Brolog; - enableLogging(printerFunc: boolean | TextPrinterFunction): Brolog; - static prefix(): RegExp; - static prefix(filter: string | RegExp): void; - prefix(): RegExp; - prefix(filter: string | RegExp): void; - static level(levelName?: LogLevelName): LogLevelName; - level(levelName?: LogLevelName): "info" | "silent" | "error" | "warn" | "verbose" | "silly"; - private log; - defaultTextPrinter(levelTitle: LogLevelTitle, text: string): void; - static error(prefix: string, ...args: any[]): void; - error(prefix: string, ...args: any[]): void; - static warn(prefix: string, ...args: any[]): void; - warn(prefix: string, ...args: any[]): void; - static info(prefix: string, ...args: any[]): void; - info(prefix: string, ...args: any[]): void; - static verbose(prefix: string, ...args: any[]): void; - verbose(prefix: string, ...args: any[]): void; - static silly(prefix: string, ...args: any[]): void; - silly(prefix: string, ...args: any[]): void; - timestamp(enable: boolean): void; - timestamp(): string; -} -export { VERSION, }; -declare const log: Brolog; -export type { LogLevelTitle, Loggable, LogLevelName, }; -export { LogLevel, Brolog, log, }; -//# sourceMappingURL=brolog.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.d.ts.map b/WechatBot/node_modules/brolog/dist/cjs/src/brolog.d.ts.map deleted file mode 100644 index 02c9d799b..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"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IAAK,MAAM;CA4B5B;AAmCD,OAAO,EACL,OAAO,GACR,CAAA;AAED,QAAA,MAAM,GAAG,QAAoB,CAAA;AAmB7B,YAAY,EACV,aAAa,EACb,QAAQ,EACR,YAAY,GACb,CAAA;AACD,OAAO,EACL,QAAQ,EACR,MAAM,EACN,GAAG,GACJ,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.js b/WechatBot/node_modules/brolog/dist/cjs/src/brolog.js deleted file mode 100755 index 2c5f3cf1c..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.js +++ /dev/null @@ -1,338 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.log = exports.Brolog = exports.LogLevel = exports.VERSION = void 0; -/* eslint-disable no-console */ -/*! - * Brolog JavaScript Library v1.1.0 - * https://github.com/huan/brolog - * - * Copyright Huan LI - * Released under the ISC license - * https://github.com/huan/brolog/blob/master/LICENSE - * - * Date: 2016-07 - */ -const config_js_1 = require("./config.js"); -Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return config_js_1.VERSION; } }); -var LogLevel; -(function (LogLevel) { - LogLevel[LogLevel["silent"] = 0] = "silent"; - LogLevel[LogLevel["error"] = 1] = "error"; - LogLevel[LogLevel["warn"] = 2] = "warn"; - LogLevel[LogLevel["info"] = 3] = "info"; - LogLevel[LogLevel["verbose"] = 4] = "verbose"; - LogLevel[LogLevel["silly"] = 5] = "silly"; -})(LogLevel || (LogLevel = {})); -exports.LogLevel = LogLevel; -class Brolog { - static globalInstance; - static globalLogLevelName = 'info'; - static globalPrefix = /.*/; // Match all by default - enableTimestamp = true; - logLevel; - prefixFilter; - textPrinter; - constructor() { - this.level(Brolog.globalLogLevelName); - this.logLevel = LogLevel[this.level()]; - this.prefix(Brolog.globalPrefix); - this.prefixFilter = this.prefix(); - this.textPrinter = this.defaultTextPrinter; - } - /** - * Create a global Brolog Instance for sharing between modules - */ - static instance(levelName, prefix) { - if (!this.globalInstance) { - this.globalInstance = new Brolog(); - } - if (levelName) { - this.globalLogLevelName = levelName; - this.globalInstance.level(levelName); - } - if (prefix) { - this.globalPrefix = prefix; - this.globalInstance.prefix(prefix); - } - return this.globalInstance; - } - static version() { - return config_js_1.VERSION; - } - version() { - return Brolog.version(); - } - static enableLogging(printerFunc) { - return Brolog.instance().enableLogging(printerFunc); - } - enableLogging(printerFunc) { - this.verbose('Brolog', 'enableLogging(%s)', printerFunc); - // const loggerMethodList = [ - // 'error', - // 'warn', - // 'info', - // 'verbose', - // 'silly', - // ] - if (printerFunc === false) { - this.silly('Brolog', 'enableLogging() disabled'); - // loggerMethodList.forEach(m => { - // this[m] = nullLogger[m] - // }) - this.textPrinter = function () { }; - } - else if (printerFunc === true) { - this.silly('Brolog', 'enableLogging() enabled: restore Brolog instance'); - // const restore = new Brolog() - // loggerMethodList.forEach(m => { - // this[m] = restore[m] - // }) - this.textPrinter = this.defaultTextPrinter; - // } else if (typeof log.verbose === 'function') { - // this.silly('Brolog', 'enableLogging() enabled: using provided logger') - // for (const method of loggerMethodList) { - // this[method] = () => { - // // In order to compatible with winston, - // // we need to change the args from - // // brolog.info('Main', 'Hello %s', 'world') - // // to - // // log.info('Main Hello %s', 'world') - // const argList: string[] = Array.from(arguments) - // if (argList.length > 1) { - // const module = argList.shift() - // argList[0] = `${module} ` + argList[0] - // } - // return Reflect.apply(log[method], log, argList) - // } - // } - } - else if (typeof printerFunc === 'function') { - this.silly('Brolog', 'enableLogging() enabled: using provided log function'); - this.textPrinter = function (levelTitle, text) { - printerFunc(levelTitle, text); - }; - } - else { - throw new Error('got invalid logger'); - } - return this; - } - static prefix(filter) { - if (filter) { - this.globalPrefix = filter; - this.globalInstance?.prefix(filter); - } - else { - return this.instance().prefix(); - } - } - prefix(filter) { - if (filter) { - if (typeof filter === 'string') { - this.prefixFilter = new RegExp('^' + filter + '$'); - } - else if (filter instanceof RegExp) { - this.prefixFilter = filter; - } - else { - throw new Error('unsupported prefix filter'); - } - } - else { - return this.prefixFilter; - } - } - static level(levelName) { - if (levelName) { - this.globalLogLevelName = levelName; - } - return this.instance().level(levelName); - } - level(levelName) { - if (levelName) { - // console.log('levelName: ' + levelName) - // http://stackoverflow.com/a/21294925/1123955 - // XXX: fix the any here? - let logLevel = LogLevel[levelName.toLowerCase()]; - if (logLevel === undefined) { // be aware of number 0 here - log.error('Brolog', 'level(%s) not exist, set to silly.', levelName); - logLevel = LogLevel.silly; - } - this.logLevel = logLevel; - } - return LogLevel[this.logLevel]; - } - log(levelTitle, prefix, message) { - if (this.prefixFilter && !this.prefixFilter.test(prefix)) { - return; // skip message not match prefix filter - } - const args = Array.prototype.slice.call(arguments, 3); - args.unshift(this.timestamp() + levelTitle + ' ' + prefix + ' ' + (message || '')); - // const args = Array.from(arguments) || [] - // args[0] = this.timestamp() + args[0] - const text = Reflect.apply(sprintf, null, args); - this.textPrinter(levelTitle, text); - } - defaultTextPrinter(levelTitle, text) { - // Use Reflect at: - // https://www.keithcirkel.co.uk/metaprogramming-in-es6-part-2-reflect/ - switch (levelTitle) { - case 'ERR': - // console.error.apply(console, args) - // Reflect.apply(console.error, console, args) - console.error(text); - break; - case 'WARN': - // console.warn.apply(console, args) - // Reflect.apply(console.warn, console, args) - console.warn(text); - break; - case 'INFO': - // console.info.apply(console, args) - // Reflect.apply(console.info, console, args) - console.info(text); - break; - // eslint-disable-next-line default-case-last - default: - case 'VERB': - case 'SILL': - // console.log.apply(console, args) - // Reflect.apply(console.log, console, args) - console.log(text); - } - } - static error(prefix, ...args) { - const instance = Brolog.instance(); - // return instance.error.apply(instance, arguments) - return Reflect.apply(instance.error, instance, [].concat(prefix, args)); - } - error(prefix, ...args) { - if (this.logLevel < LogLevel.error) { - return; - } - const argList = Array.from([prefix, ...args]); - argList.unshift('ERR'); - return Reflect.apply(this.log, this, argList); - } - static warn(prefix, ...args) { - const instance = Brolog.instance(); - return Reflect.apply(instance.warn, instance, [].concat(prefix, args)); - } - warn(prefix, ...args) { - if (this.logLevel < LogLevel.warn) { - return; - } - const argList = Array.from([prefix, ...args]); - argList.unshift('WARN'); - return Reflect.apply(this.log, this, argList); - } - static info(prefix, ...args) { - const instance = Brolog.instance(); - return Reflect.apply(instance.info, instance, [].concat(prefix, args)); - } - info(prefix, ...args) { - if (this.logLevel < LogLevel.info) { - return; - } - const argList = Array.from([prefix, ...args]); - argList.unshift('INFO'); - return Reflect.apply(this.log, this, argList); - } - static verbose(prefix, ...args) { - const instance = Brolog.instance(); - return Reflect.apply(instance.verbose, instance, [].concat(prefix, args)); - } - verbose(prefix, ...args) { - if (this.logLevel < LogLevel.verbose) { - return; - } - const argList = Array.from([prefix, ...args]); - argList.unshift('VERB'); - return Reflect.apply(this.log, this, argList); - } - static silly(prefix, ...args) { - const instance = Brolog.instance(); - return Reflect.apply(instance.silly, instance, [].concat(prefix, args)); - } - silly(prefix, ...args) { - if (this.logLevel < LogLevel.silly) { - return; - } - const argList = Array.from([prefix, ...args]); - argList.unshift('SILL'); - return Reflect.apply(this.log, this, argList); - } - timestamp(enable) { - if (typeof enable === 'boolean') { - this.enableTimestamp = enable; - return; - } - if (!this.enableTimestamp) { - return ''; - } - const date = new Date(); - const hour = date.getHours(); - const min = date.getMinutes(); - const sec = date.getSeconds(); - let stampStr = ''; - stampStr += (hour < 10) ? ('0' + hour) : hour; - stampStr += ':'; - stampStr += (min < 10) ? ('0' + min) : min; - stampStr += ':'; - stampStr += (sec < 10) ? ('0' + sec) : sec; - return stampStr + ' '; - } -} -exports.Brolog = Brolog; -// Credit: https://stackoverflow.com/a/4795914/1123955 -function sprintf() { - const args = arguments; - const text = args[0]; - let i = 1; - return text.replace(/%((%)|s|d)/g, function (m) { - // m is the matched format, e.g. %s, %d - let val = null; - if (m[2]) { - val = m[2]; - } - else { - val = args[i]; - // A switch statement so that the formatter can be extended. Default is %s - switch (m) { - case '%d': - val = Number(val); - /** - * Huan(202111): use Number() to replace parseFloat, - * and keep the `NaN` as a result for easy debugging - * when we use `%d` mistakenly when `%s` should be expected. - */ - // val = parseFloat(val) - // if (isNaN(val)) { - // val = 0 - // } - break; - } - i++; - } - return val; - }); -} -const log = Brolog.instance(); -exports.log = log; -if (config_js_1.BROLOG_LEVEL) { - /** - * set logLevel from: - * 1. process.env['BROLOG_LEVEL'], or - * 2. in URL: `?BROLOG_LEVEL=verbose&...` - */ - if (config_js_1.BROLOG_LEVEL === '*') { - log.level('silly'); - } - else { - log.level(config_js_1.BROLOG_LEVEL); - } -} -if (config_js_1.BROLOG_PREFIX && config_js_1.BROLOG_PREFIX !== '*') { - log.prefix(config_js_1.BROLOG_PREFIX); -} -//# sourceMappingURL=brolog.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.js.map b/WechatBot/node_modules/brolog/dist/cjs/src/brolog.js.map deleted file mode 100644 index 7045794c1..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"brolog.js","sourceRoot":"","sources":["../../../src/brolog.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B;;;;;;;;;GASG;AACH,2CAIoC;AAmXlC,wFAtXA,mBAAO,OAsXA;AApWT,IAAK,QAOJ;AAPD,WAAK,QAAQ;IACX,2CAAW,CAAA;IACX,yCAAW,CAAA;IACX,uCAAW,CAAA;IACX,uCAAW,CAAA;IACX,6CAAW,CAAA;IACX,yCAAW,CAAA;AACb,CAAC,EAPI,QAAQ,KAAR,QAAQ,QAOZ;AAyXC,4BAAQ;AArXV,MAAM,MAAM;IAEF,MAAM,CAAC,cAAc,CAAW;IAChC,MAAM,CAAC,kBAAkB,GAAqB,MAAM,CAAA;IACpD,MAAM,CAAC,YAAY,GAA2B,IAAI,CAAA,CAAE,uBAAuB;IAE3E,eAAe,GAAG,IAAI,CAAA;IACtB,QAAQ,CAAc;IACtB,YAAY,CAAS;IAEtB,WAAW,CAAmD;IAErE;QACE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,k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,KAAK,GAAG,EAAE;IAC1C,GAAG,CAAC,MAAM,CAAC,yBAAa,CAAC,CAAA;CAC1B"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.d.ts b/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.d.ts deleted file mode 100644 index 6eab8f404..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -export {}; -//# sourceMappingURL=brolog.spec.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.d.ts.map b/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.d.ts.map deleted file mode 100644 index 1ce484cc0..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"brolog.spec.d.ts","sourceRoot":"","sources":["../../../src/brolog.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.js b/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.js deleted file mode 100755 index 20b59f5e8..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.js +++ /dev/null @@ -1,262 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/* eslint no-console: off */ -/* eslint comma-spacing: off */ -const tstest_1 = require("tstest"); -const brolog_js_1 = require("./brolog.js"); -(0, tstest_1.test)('VERSION', t => { - t.ok(/^\d+\.\d+\.\d+$/.test(brolog_js_1.VERSION), 'should get semver VERSION'); - t.end(); -}); -(0, tstest_1.test)('Brolog static/instance construct test', async (t) => { - const EXPECTED_LEVEL = 'silly'; - const log = brolog_js_1.Brolog.instance('info'); - /** - * - * Raw - * - */ - let l = brolog_js_1.Brolog.level(); - t.equal(l, 'info', 'should has default level `info`'); - l = brolog_js_1.Brolog.level(EXPECTED_LEVEL); - t.equal(l, EXPECTED_LEVEL, 'should be EXPECTED_LEVEL after setlevel to it'); - /** - * - * Instance - * - */ - const logInstance = brolog_js_1.Brolog.instance(EXPECTED_LEVEL); - t.equal(typeof logInstance, 'object', 'should return a object class when we call Brolog as instance'); - t.equal(logInstance, log, 'should return a instance as default exported log'); - let ll = log.level(); - t.equal(ll, EXPECTED_LEVEL, 'should has current level as EXPECTED_LEVEL after factory & class init'); - /** - * - * Constructor - * - */ - const LEVEL_SILENT = 'silent'; - const log1 = new brolog_js_1.Brolog(); - log1.level(LEVEL_SILENT); - ll = log1.level(); - t.equal(ll, LEVEL_SILENT, 'should has current level as LEVEL_SILENT after function init'); -}); -(0, tstest_1.test)('Brolog global log level test', async (t) => { - const log = brolog_js_1.Brolog; - let l; // level - log.level('UN_EXIST_LEVEL'); - t.equal(log.level(), 'silly', 'should set level to SILLY when level set to UNKNOWN'); - log.level('error'); - l = log.level(); - t.equal(l, 'error', 'should be ERR after level set to `error`'); - log.level('warn'); - l = log.level(); - t.equal(l, 'warn', 'should be warn after level set to `warn`'); - log.level('info'); - l = log.level(); - t.equal(l, 'info', 'should be info after level set to `info`'); - log.level('verbose'); - l = log.level(); - t.equal(l, 'verbose', 'should be verbose after level set to `verbose`'); - log.level('silly'); - l = log.level(); - t.equal(l, 'silly', 'should be silly after level set to silly'); -}); -/** - * - * This test must be the last one, - * because monkey patch is not recover when it finish - * - */ -(0, tstest_1.test)('Brolog global instance level filter test', async (t) => { - const logFuncList = [ - 'error', - 'warn', - 'info', - 'log', - ]; - let log2; - log2 = brolog_js_1.Brolog.instance('silent'); - await t.test('no error for silent', async (t) => { - const sandbox = tstest_1.sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLog(log2); - t.ok(console.error['notCalled'], 'should not call error with level SILENT ##############'); - sandbox.restore(); - }); - log2 = brolog_js_1.Brolog.instance('silly'); - await t.test('verbose + silly for silly', async (t) => { - const sandbox = tstest_1.sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLog(log2); - t.equal(console.log['callCount'], 2, 'should call log2(verbose + silly) 2 time with level SILLY'); - sandbox.restore(); - }); - log2 = brolog_js_1.Brolog.instance(); - log2.level('silent'); - await t.test('no log for silent', async (t) => { - const sandbox = tstest_1.sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLog(log2); - t.equal(console.error['callCount'], 0, 'should call error 0 time with level SILENT'); - t.equal(console.warn['callCount'], 0, 'should call warn 0 time with level SILENT'); - t.equal(console.info['callCount'], 0, 'should call info 0 time with level SILENT'); - t.equal(console.log['callCount'], 0, 'should call log2(verbose + silly) 0 time with level SILENT'); - sandbox.restore(); - }); - log2.level('error'); - await t.test('only error for error', async (t) => { - const sandbox = tstest_1.sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLog(log2); - t.equal(console.error['callCount'], 1, 'should call error 1 time with level ERR'); - t.equal(console.warn['callCount'], 0, 'should call warn 0 time with level ERR'); - t.equal(console.info['callCount'], 0, 'should call info 0 time with level ERR'); - t.equal(console.log['callCount'], 0, 'should call log2(verbose + silly) 0 time with level ERR'); - sandbox.restore(); - }); - log2.level('verbose'); - await t.test('for verbose', async (t) => { - const sandbox = tstest_1.sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLog(log2); - t.equal(console.error['callCount'], 1, 'should call error 1 time with level VERBOSE'); - t.equal(console.warn['callCount'], 1, 'should call warn 1 time with level VERBOSE'); - t.equal(console.info['callCount'], 1, 'should call info 1 time with level VERBOSE'); - t.equal(console.log['callCount'], 1, 'should call log2(verbose + silly) 1 time with level VERBOSE'); - sandbox.restore(); - }); - /** */ - function doLog(logger) { - logger.error('Test', 'error message'); - logger.warn('Test', 'warn message'); - logger.info('Test', 'info message'); - logger.verbose('Test', 'verbose message'); - logger.silly('Test', 'silly message'); - } -}); -(0, tstest_1.test)('Brolog global instance prefix filter test', async (t) => { - const logFuncList = [ - 'error', - 'warn', - 'info', - 'log', - ]; - // filter log by prefix match /Show/ - const log = brolog_js_1.Brolog.instance('info', /Show/); - await t.test('doLogHide /Show/', async (t) => { - const sandbox = tstest_1.sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLogHide(log); - t.equal(console.error['callCount'], 0, 'should call error 0 time with prefix Hide'); - t.equal(console.warn['callCount'], 0, 'should call warn 0 time with prefix Hide'); - t.equal(console.info['callCount'], 0, 'should call info 0 time with prefix Hide'); - t.equal(console.log['callCount'], 0, 'should call log2(verbose + silly) 0 time with prefix Hide'); - sandbox.restore(); - }); - await t.test('doLogShow /Show/', async (t) => { - const sandbox = tstest_1.sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLogShow(log); - t.equal(console.error['callCount'], 1, 'should call error 1 time with prefix Show'); - t.equal(console.warn['callCount'], 1, 'should call warn 1 time with prefix Show'); - t.equal(console.info['callCount'], 1, 'should call info 1 time with prefix Show'); - t.equal(console.log['callCount'], 0, 'should call log2(verbose + silly) 1 time with prefix Show'); - sandbox.restore(); - }); - log.level('silent'); - await t.test('doLogShow for silent', async (t) => { - const sandbox = tstest_1.sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLogShow(log); - t.equal(console.error['callCount'], 0, 'should call error 0 time with prefix Show with level silent'); - t.equal(console.warn['callCount'], 0, 'should call warn 0 time with prefix Show with level silent'); - t.equal(console.info['callCount'], 0, 'should call info 0 time with prefix Show with level silent'); - t.equal(console.log['callCount'], 0, 'should call log2(verbose + silly) 0 time with prefix Show with level silent'); - sandbox.restore(); - }); - log.level('silly'); - await t.test('doLogShow for silly', async (t) => { - const sandbox = tstest_1.sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLogShow(log); - t.equal(console.error['callCount'], 1, 'should call error 1 time with prefix Show with level silly'); - t.equal(console.warn['callCount'], 1, 'should call warn 1 time with prefix Show with level silly'); - t.equal(console.info['callCount'], 1, 'should call info 1 time with prefix Show with level silly'); - t.equal(console.log['callCount'], 2, 'should call log2(verbose + silly) 2 time with prefix Show with level silly'); - sandbox.restore(); - }); - /** */ - function doLogHide(logger) { - logger.error('Hide', 'error message'); - logger.warn('Hide', 'warn message'); - logger.info('Hide', 'info message'); - logger.verbose('Hide', 'verbose message'); - logger.silly('Hide', 'silly message'); - } - function doLogShow(logger) { - logger.error('Show', 'error message'); - logger.warn('Show', 'warn message'); - logger.info('Show', 'info message'); - logger.verbose('Show', 'verbose message'); - logger.silly('Show', 'silly message'); - } -}); -(0, tstest_1.test)('Brolog individual instance prefix filter test', async (t) => { - // important: reset all to default: 'info', /.*/ - const log = brolog_js_1.Brolog.instance('info', /.*/); - t.equal(log.level(), 'info', 'should be global level `info`'); - t.equal(log.prefix().toString(), '/.*/', 'should be global prefix filter /.*/'); - const log1 = new brolog_js_1.Brolog(); - const log2 = new brolog_js_1.Brolog(); - log2.level('silly'); - log2.prefix('faint'); - t.notEqual(log1, log, 'should not as the same as global instance'); - t.notEqual(log1, log2, 'should not as the same between new instances'); - t.equal(log1.level(), 'info', 'should stick with default level `info`'); - t.equal(log1.prefix().toString(), '/.*/', 'should stick with default prefix filter by default'); - t.equal(log2.level(), 'silly', 'should be set level `silly`'); - t.equal(log2.prefix().toString(), '/^faint$/', 'should be set prefix filter to /faint/'); - t.end(); -}); -(0, tstest_1.test)('Brolog enableLogger()', async (t) => { - const sandbox = tstest_1.sinon.createSandbox(); - const spy = sandbox.spy(); - const stub = sandbox.stub(brolog_js_1.Brolog.prototype, 'defaultTextPrinter'); - await t.test('enableLogging(false/true)', async (t) => { - spy.resetHistory(); - stub.resetHistory(); - const log = brolog_js_1.Brolog.enableLogging(false); - log.error('TEST', 'Should not log'); - t.ok(stub.notCalled, 'should not log anything after enableLogging(false)'); - log.enableLogging(true); - stub.resetHistory(); - log.error('TEST', 'Should log'); - t.ok(stub.calledOnce, 'should log after enableLogging(true)'); - }); - await t.test('enableLogging(log function)', async (t) => { - spy.resetHistory(); - stub.resetHistory(); - const log = brolog_js_1.Brolog.enableLogging(spy); - log.error('TEST', 'should call spy'); - t.ok(stub.notCalled, 'should not call printTextDefault'); - t.ok(spy.calledOnce, 'should call spy after enableLogging(spy)'); - }); - // XXX why need t.end() inside async function(which will return a promise?) - sandbox.restore(); -}); -(0, tstest_1.test)('Timestamp()', async (t) => { - const log = new brolog_js_1.Brolog(); - t.ok(log.timestamp(), 'should enable timestamp by default'); - t.equal(log.timestamp(false), undefined, 'should return void when set timestamp to false'); - t.equal(log.timestamp(), '', 'should return empty string when timestamp is disabled'); - t.equal(log.timestamp(true), undefined, 'should return void when set timestamp to true'); - t.ok(log.timestamp(), 'should return timestamp string when timestamp is enabled'); -}); -(0, tstest_1.test)('version()', t => { - const log = new brolog_js_1.Brolog(); - t.ok(log.version(), 'should get version'); - t.end(); -}); -//# sourceMappingURL=brolog.spec.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.js.map b/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.js.map deleted file mode 100644 index 8abf06bd3..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/brolog.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"brolog.spec.js","sourceRoot":"","sources":["../../../src/brolog.spec.ts"],"names":[],"mappings":";;;AACA,4BAA4B;AAC5B,+BAA+B;AAC/B,mCAG2B;AAE3B,2CAIgC;AAEhC,IAAA,aAAI,EAAC,SAAS,EAAE,CAAC,CAAC,EAAE;IAClB,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,mBAAO,CAAC,EAAE,2BAA2B,CAAC,CAAA;IAClE,CAAC,CAAC,GAAG,EAAE,CAAA;AACT,CA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,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,gDAAgD,CAAC,CAAA;IAC1F,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,uDAAuD,CAAC,CAAA;IAErF,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,+CAA+C,CAAC,CAAA;IACxF,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,0DAA0D,CAAC,CAAA;AAEnF,CAAC,CAAC,CAAA;AAEF,IAAA,aAAI,EAAC,WAAW,EAAE,CAAC,CAAC,EAAE;IACpB,MAAM,GAAG,GAAG,IAAI,kBAAM,EAAE,CAAA;IACxB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,oBAAoB,CAAC,CAAA;IACzC,CAAC,CAAC,GAAG,EAAE,CAAA;AACT,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/config.d.ts b/WechatBot/node_modules/brolog/dist/cjs/src/config.d.ts deleted file mode 100644 index 387e8bb1c..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/config.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { VERSION } from './version.js'; -export declare const BROLOG_LEVEL: string; -export declare const BROLOG_PREFIX: string; -//# sourceMappingURL=config.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/config.d.ts.map b/WechatBot/node_modules/brolog/dist/cjs/src/config.d.ts.map deleted file mode 100644 index e4c164257..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/config.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AA0DtC,eAAO,MAAM,YAAY,QAAyB,CAAA;AAClD,eAAO,MAAM,aAAa,QAAqB,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/config.js b/WechatBot/node_modules/brolog/dist/cjs/src/config.js deleted file mode 100755 index eadde5ade..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/config.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BROLOG_PREFIX = exports.BROLOG_LEVEL = exports.VERSION = void 0; -var version_js_1 = require("./version.js"); -Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_js_1.VERSION; } }); -/** - * BROLOG_LEVEL - */ -const DEFAULT_LEVEL = 'info'; -const BROLOG_LEVEL_VAR_NAME = 'BROLOG_LEVEL'; -const BROLOG_PREFIX_VAR_NAME = 'BROLOG_PREFIX'; -let level; -let debugModule; -/** - * - * Sometimes there's a `process` in browser (ionic3 & angular5) - * Sometimes there's a window in Node.js (browserify) - * - */ -// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -if (typeof process !== 'undefined' && process['env']) { - /** - * Node.js - */ - if (!level) { - level = process.env[BROLOG_LEVEL_VAR_NAME]; - } - if (!debugModule) { - debugModule = process.env[BROLOG_PREFIX_VAR_NAME]; - } -} -// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -if (typeof window !== 'undefined' && typeof window?.location?.search === 'string') { - /** - * Browser - */ - if (!level) { - level = getJsonFromUrl()[BROLOG_LEVEL_VAR_NAME]; - } - if (!debugModule) { - debugModule = getJsonFromUrl()[BROLOG_LEVEL_VAR_NAME]; - } -} -function getJsonFromUrl() { - // https://stackoverflow.com/questions/8486099/how-do-i-parse-a-url-query-parameters-in-javascript - const query = location.search.substr(1); - const result = {}; - query.split('&').forEach(function (part) { - const [key, val] = part.split('='); - if (typeof key !== 'undefined' && typeof val !== 'undefined') { - result[key] = decodeURIComponent(val); - } - }); - return result; -} -exports.BROLOG_LEVEL = level || DEFAULT_LEVEL; -exports.BROLOG_PREFIX = debugModule || '*'; -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/config.js.map b/WechatBot/node_modules/brolog/dist/cjs/src/config.js.map deleted file mode 100644 index 9028def39..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/config.ts"],"names":[],"mappings":";;;AAAA,2CAAsC;AAA7B,qGAAA,OAAO,OAAA;AAEhB;;GAEG;AAEH,MAAM,aAAa,GAAG,MAAM,CAAA;AAC5B,MAAM,qBAAqB,GAAG,cAAc,CAAA;AAC5C,MAAM,sBAAsB,GAAG,eAAe,CAAA;AAE9C,IAAI,KAAyB,CAAA;AAC7B,IAAI,WAA+B,CAAA;AAEnC;;;;;GAKG;AACH,uEAAuE;AACvE,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;IACpD;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE;QACV,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;KAC3C;IACD,IAAI,CAAC,WAAW,EAAE;QAChB,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;KAClD;CACF;AAED,uEAAuE;AACvE,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,QAAQ,EAAE;IACjF;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE;QACV,KAAK,GAAG,cAAc,EAAE,CAAC,qBAAqB,CAAC,CAAA;KAChD;IACD,IAAI,CAAC,WAAW,EAAE;QAChB,WAAW,GAAG,cAAc,EAAE,CAAC,qBAAqB,CAAC,CAAA;KACtD;CACF;AAED,SAAS,cAAc;IACrB,kGAAkG;IAClG,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IACvC,MAAM,MAAM,GAAG,EAA+B,CAAA;IAC9C,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,IAAI;QACrC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAClC,IAAI,OAAO,GAAG,KAAK,WAAW,IAAI,OAAO,GAAG,KAAK,WAAW,EAAE;YAC5D,MAAM,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAA;SACtC;IACH,CAAC,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACf,CAAC;AAEY,QAAA,YAAY,GAAG,KAAK,IAAI,aAAa,CAAA;AACrC,QAAA,aAAa,GAAG,WAAW,IAAI,GAAG,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/logger.d.ts b/WechatBot/node_modules/brolog/dist/cjs/src/logger.d.ts deleted file mode 100644 index c294b5e1e..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/logger.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -interface Logger { - error(moduleName: string, message: string, ...args: any[]): void; - warn(moduleName: string, message: string, ...args: any[]): void; - info(moduleName: string, message: string, ...args: any[]): void; - verbose(moduleName: string, message: string, ...args: any[]): void; - silly(moduleName: string, message: string, ...args: any[]): void; -} -declare const getLogger: (logger?: Logger | undefined) => Logger; -export type { Logger as Loggable, // @deprecated: use Logger instead. will be removed after Dec 31, 2022 -Logger, }; -export { getLogger as getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 -getLogger, }; -//# sourceMappingURL=logger.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/logger.d.ts.map b/WechatBot/node_modules/brolog/dist/cjs/src/logger.d.ts.map deleted file mode 100644 index 1f0d51d26..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/logger.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/logger.ts"],"names":[],"mappings":"AAEA,UAAU,MAAM;IACd,KAAK,CAAI,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IACnE,IAAI,CAAK,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IACnE,IAAI,CAAK,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IACnE,OAAO,CAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IACnE,KAAK,CAAI,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;CACpE;AAED,QAAA,MAAM,SAAS,mCAAsB,MAYpC,CAAA;AAED,YAAY,EACV,MAAM,IAAI,QAAQ,EAAE,sEAAsE;AAC1F,MAAM,GACP,CAAA;AACD,OAAO,EACL,SAAS,IAAI,WAAW,EAAE,yEAAyE;AACnG,SAAS,GACV,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/logger.js b/WechatBot/node_modules/brolog/dist/cjs/src/logger.js deleted file mode 100755 index 404fdc1f2..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/logger.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getLogger = exports.getLoggable = void 0; -const nop_1 = require("@pipeletteio/nop"); -const getLogger = (logger) => { - if (logger) { - return logger; - } - return { - error: nop_1.nop, - info: nop_1.nop, - silly: nop_1.nop, - verbose: nop_1.nop, - warn: nop_1.nop, - }; -}; -exports.getLoggable = getLogger; -exports.getLogger = getLogger; -//# sourceMappingURL=logger.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/logger.js.map b/WechatBot/node_modules/brolog/dist/cjs/src/logger.js.map deleted file mode 100644 index 2ddc70923..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/logger.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/logger.ts"],"names":[],"mappings":";;;AAAA,0CAAsC;AAUtC,MAAM,SAAS,GAAG,CAAC,MAAe,EAAU,EAAE;IAC5C,IAAI,MAAM,EAAE;QACV,OAAO,MAAM,CAAA;KACd;IAED,OAAO;QACL,KAAK,EAAK,SAAG;QACb,IAAI,EAAM,SAAG;QACb,KAAK,EAAK,SAAG;QACb,OAAO,EAAG,SAAG;QACb,IAAI,EAAM,SAAG;KACd,CAAA;AACH,CAAC,CAAA;AAOc,gCAAW;AACxB,8BAAS"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/mod.d.ts b/WechatBot/node_modules/brolog/dist/cjs/src/mod.d.ts deleted file mode 100644 index d41b5e295..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/mod.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { VERSION } from './config.js'; -import { Brolog, log } from './brolog.js'; -import type { Loggable, // @deprecated: use Logger instead. will be removed after Dec 31, 2022 -Logger } from './logger.js'; -import { getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 -getLogger } from './logger.js'; -export type { Loggable, // @deprecated: use Logger instead. will be removed after Dec 31, 2022 -Logger, }; -export { VERSION, Brolog, getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 -getLogger, log, }; -//# sourceMappingURL=mod.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/mod.d.ts.map b/WechatBot/node_modules/brolog/dist/cjs/src/mod.d.ts.map deleted file mode 100644 index b47e745af..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/mod.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACR,MAAoB,aAAa,CAAA;AAClC,OAAO,EACL,MAAM,EACN,GAAG,EACJ,MAAoB,aAAa,CAAA;AAClC,OAAO,KAAK,EACV,QAAQ,EAAI,sEAAsE;AAClF,MAAM,EACP,MAAoB,aAAa,CAAA;AAClC,OAAO,EACL,WAAW,EAAG,yEAAyE;AACvF,SAAS,EACV,MAAoB,aAAa,CAAA;AAElC,YAAY,EACV,QAAQ,EAAE,sEAAsE;AAChF,MAAM,GACP,CAAA;AACD,OAAO,EACL,OAAO,EACP,MAAM,EACN,WAAW,EAAG,yEAAyE;AACvF,SAAS,EACT,GAAG,GACJ,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/mod.js b/WechatBot/node_modules/brolog/dist/cjs/src/mod.js deleted file mode 100755 index 43e9d8736..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/mod.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.log = exports.getLogger = exports.getLoggable = exports.Brolog = exports.VERSION = void 0; -const config_js_1 = require("./config.js"); -Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return config_js_1.VERSION; } }); -const brolog_js_1 = require("./brolog.js"); -Object.defineProperty(exports, "Brolog", { enumerable: true, get: function () { return brolog_js_1.Brolog; } }); -Object.defineProperty(exports, "log", { enumerable: true, get: function () { return brolog_js_1.log; } }); -const logger_js_1 = require("./logger.js"); -Object.defineProperty(exports, "getLoggable", { enumerable: true, get: function () { return logger_js_1.getLoggable; } }); -Object.defineProperty(exports, "getLogger", { enumerable: true, get: function () { return logger_js_1.getLogger; } }); -//# sourceMappingURL=mod.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/mod.js.map b/WechatBot/node_modules/brolog/dist/cjs/src/mod.js.map deleted file mode 100644 index 13c2d712d..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/mod.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../src/mod.ts"],"names":[],"mappings":";;;AAAA,2CAEkC;AAmBhC,wFApBA,mBAAO,OAoBA;AAlBT,2CAGkC;AAgBhC,uFAlBA,kBAAM,OAkBA;AAGN,oFApBA,eAAG,OAoBA;AAdL,2CAGkC;AAShC,4FAXA,uBAAW,OAWA;AACX,0FAXA,qBAAS,OAWA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/version.d.ts b/WechatBot/node_modules/brolog/dist/cjs/src/version.d.ts deleted file mode 100644 index 61d0981b8..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/version.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty - * - * @copyright 2016 Huan LI (李卓桓) , and - * Wechaty Contributors . - * - * 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. - * - */ -export declare const VERSION = "0.0.0"; -//# sourceMappingURL=version.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/version.d.ts.map b/WechatBot/node_modules/brolog/dist/cjs/src/version.d.ts.map deleted file mode 100644 index 8f6c208b1..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/version.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,OAAO,UAAU,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/version.js b/WechatBot/node_modules/brolog/dist/cjs/src/version.js deleted file mode 100755 index 30c3fd13f..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/version.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -/** - * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty - * - * @copyright 2016 Huan LI (李卓桓) , and - * Wechaty Contributors . - * - * 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. - * - */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VERSION = void 0; -exports.VERSION = '0.0.0'; -//# sourceMappingURL=version.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/version.js.map b/WechatBot/node_modules/brolog/dist/cjs/src/version.js.map deleted file mode 100644 index 10c8f5861..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/version.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;GAkBG;;;AAEU,QAAA,OAAO,GAAG,OAAO,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.d.ts b/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.d.ts deleted file mode 100644 index 47e5cb940..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -export {}; -//# sourceMappingURL=version.spec.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.d.ts.map b/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.d.ts.map deleted file mode 100644 index 517ec9b1d..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version.spec.d.ts","sourceRoot":"","sources":["../../../src/version.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.js b/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.js deleted file mode 100755 index dea1c7708..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.js +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty - * - * @copyright 2016 Huan LI (李卓桓) , and - * Wechaty Contributors . - * - * 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. - * - */ -const version_js_1 = require("./version.js"); -const tstest_1 = require("tstest"); -(0, tstest_1.test)('Make sure the VERSION is fresh in source code', async (t) => { - t.equal(version_js_1.VERSION, '0.0.0', 'version should be 0.0.0 in source code, only updated before publish to NPM'); -}); -//# sourceMappingURL=version.spec.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.js.map b/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.js.map deleted file mode 100644 index 0c9bdd175..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/src/version.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version.spec.js","sourceRoot":"","sources":["../../../src/version.spec.ts"],"names":[],"mappings":";;;AACA;;;;;;;;;;;;;;;;;;GAkBG;AACH,6CAEuC;AAEvC,mCAA6B;AAE7B,IAAA,aAAI,EAAC,+CAA+C,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAC9D,CAAC,CAAC,KAAK,CAAC,oBAAO,EAAE,OAAO,EAAE,4EAA4E,CAAC,CAAA;AACzG,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.d.ts b/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.d.ts deleted file mode 100644 index f86882bf8..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -export {}; -//# sourceMappingURL=integration.spec.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.d.ts.map b/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.d.ts.map deleted file mode 100644 index 76992cde5..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"integration.spec.d.ts","sourceRoot":"","sources":["../../../tests/integration.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.js b/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.js deleted file mode 100755 index 5b02482b7..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.js +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -/** - * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty - * - * @copyright 2016 Huan LI (李卓桓) , and - * Wechaty Contributors . - * - * 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. - * - */ -const tstest_1 = require("tstest"); -(0, tstest_1.test)('tbw', async (t) => { - t.pass('tbw'); -}); -//# sourceMappingURL=integration.spec.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.js.map b/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.js.map deleted file mode 100644 index aebd1b80f..000000000 --- a/WechatBot/node_modules/brolog/dist/cjs/tests/integration.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"integration.spec.js","sourceRoot":"","sources":["../../../tests/integration.spec.ts"],"names":[],"mappings":";;;AACA;;;;;;;;;;;;;;;;;;GAkBG;AACH,mCAA6B;AAE7B,IAAA,aAAI,EAAC,KAAK,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IACpB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACf,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/brolog.d.ts b/WechatBot/node_modules/brolog/dist/esm/src/brolog.d.ts deleted file mode 100644 index 35cb30bf1..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/brolog.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -/*! - * Brolog JavaScript Library v1.1.0 - * https://github.com/huan/brolog - * - * Copyright Huan LI - * Released under the ISC license - * https://github.com/huan/brolog/blob/master/LICENSE - * - * Date: 2016-07 - */ -import { VERSION } from './config.js'; -import type { Loggable } from './logger.js'; -declare type LogLevelTitle = 'ERR' | 'WARN' | 'INFO' | 'VERB' | 'SILL'; -declare type TextPrinterFunction = (title: string, text?: string) => void; -declare enum LogLevel { - silent = 0, - error = 1, - warn = 2, - info = 3, - verbose = 4, - silly = 5 -} -declare type LogLevelName = keyof typeof LogLevel; -declare class Brolog implements Loggable { - private static globalInstance?; - private static globalLogLevelName; - private static globalPrefix; - private enableTimestamp; - private logLevel; - private prefixFilter?; - textPrinter: (levelTitle: LogLevelTitle, text: string) => void; - constructor(); - /** - * Create a global Brolog Instance for sharing between modules - */ - static instance(levelName?: LogLevelName, prefix?: string | RegExp): Brolog; - static version(): string; - version(): string; - static enableLogging(printerFunc: boolean | TextPrinterFunction): Brolog; - enableLogging(printerFunc: boolean | TextPrinterFunction): Brolog; - static prefix(): RegExp; - static prefix(filter: string | RegExp): void; - prefix(): RegExp; - prefix(filter: string | RegExp): void; - static level(levelName?: LogLevelName): LogLevelName; - level(levelName?: LogLevelName): "info" | "silent" | "error" | "warn" | "verbose" | "silly"; - private log; - defaultTextPrinter(levelTitle: LogLevelTitle, text: string): void; - static error(prefix: string, ...args: any[]): void; - error(prefix: string, ...args: any[]): void; - static warn(prefix: string, ...args: any[]): void; - warn(prefix: string, ...args: any[]): void; - static info(prefix: string, ...args: any[]): void; - info(prefix: string, ...args: any[]): void; - static verbose(prefix: string, ...args: any[]): void; - verbose(prefix: string, ...args: any[]): void; - static silly(prefix: string, ...args: any[]): void; - silly(prefix: string, ...args: any[]): void; - timestamp(enable: boolean): void; - timestamp(): string; -} -export { VERSION, }; -declare const log: Brolog; -export type { LogLevelTitle, Loggable, LogLevelName, }; -export { LogLevel, Brolog, log, }; -//# sourceMappingURL=brolog.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/brolog.d.ts.map b/WechatBot/node_modules/brolog/dist/esm/src/brolog.d.ts.map deleted file mode 100644 index 02c9d799b..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/brolog.d.ts.map +++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,EAAE,OAAO,GAAG,IAAI;IACjC,SAAS,IAAK,MAAM;CA4B5B;AAmCD,OAAO,EACL,OAAO,GACR,CAAA;AAED,QAAA,MAAM,GAAG,QAAoB,CAAA;AAmB7B,YAAY,EACV,aAAa,EACb,QAAQ,EACR,YAAY,GACb,CAAA;AACD,OAAO,EACL,QAAQ,EACR,MAAM,EACN,GAAG,GACJ,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/brolog.js b/WechatBot/node_modules/brolog/dist/esm/src/brolog.js deleted file mode 100755 index 978b91af3..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/brolog.js +++ /dev/null @@ -1,333 +0,0 @@ -/* eslint-disable no-console */ -/*! - * Brolog JavaScript Library v1.1.0 - * https://github.com/huan/brolog - * - * Copyright Huan LI - * Released under the ISC license - * https://github.com/huan/brolog/blob/master/LICENSE - * - * Date: 2016-07 - */ -import { VERSION, BROLOG_LEVEL, BROLOG_PREFIX, } from './config.js'; -var LogLevel; -(function (LogLevel) { - LogLevel[LogLevel["silent"] = 0] = "silent"; - LogLevel[LogLevel["error"] = 1] = "error"; - LogLevel[LogLevel["warn"] = 2] = "warn"; - LogLevel[LogLevel["info"] = 3] = "info"; - LogLevel[LogLevel["verbose"] = 4] = "verbose"; - LogLevel[LogLevel["silly"] = 5] = "silly"; -})(LogLevel || (LogLevel = {})); -class Brolog { - static globalInstance; - static globalLogLevelName = 'info'; - static globalPrefix = /.*/; // Match all by default - enableTimestamp = true; - logLevel; - prefixFilter; - textPrinter; - constructor() { - this.level(Brolog.globalLogLevelName); - this.logLevel = LogLevel[this.level()]; - this.prefix(Brolog.globalPrefix); - this.prefixFilter = this.prefix(); - this.textPrinter = this.defaultTextPrinter; - } - /** - * Create a global Brolog Instance for sharing between modules - */ - static instance(levelName, prefix) { - if (!this.globalInstance) { - this.globalInstance = new Brolog(); - } - if (levelName) { - this.globalLogLevelName = levelName; - this.globalInstance.level(levelName); - } - if (prefix) { - this.globalPrefix = prefix; - this.globalInstance.prefix(prefix); - } - return this.globalInstance; - } - static version() { - return VERSION; - } - version() { - return Brolog.version(); - } - static enableLogging(printerFunc) { - return Brolog.instance().enableLogging(printerFunc); - } - enableLogging(printerFunc) { - this.verbose('Brolog', 'enableLogging(%s)', printerFunc); - // const loggerMethodList = [ - // 'error', - // 'warn', - // 'info', - // 'verbose', - // 'silly', - // ] - if (printerFunc === false) { - this.silly('Brolog', 'enableLogging() disabled'); - // loggerMethodList.forEach(m => { - // this[m] = nullLogger[m] - // }) - this.textPrinter = function () { }; - } - else if (printerFunc === true) { - this.silly('Brolog', 'enableLogging() enabled: restore Brolog instance'); - // const restore = new Brolog() - // loggerMethodList.forEach(m => { - // this[m] = restore[m] - // }) - this.textPrinter = this.defaultTextPrinter; - // } else if (typeof log.verbose === 'function') { - // this.silly('Brolog', 'enableLogging() enabled: using provided logger') - // for (const method of loggerMethodList) { - // this[method] = () => { - // // In order to compatible with winston, - // // we need to change the args from - // // brolog.info('Main', 'Hello %s', 'world') - // // to - // // log.info('Main Hello %s', 'world') - // const argList: string[] = Array.from(arguments) - // if (argList.length > 1) { - // const module = argList.shift() - // argList[0] = `${module} ` + argList[0] - // } - // return Reflect.apply(log[method], log, argList) - // } - // } - } - else if (typeof printerFunc === 'function') { - this.silly('Brolog', 'enableLogging() enabled: using provided log function'); - this.textPrinter = function (levelTitle, text) { - printerFunc(levelTitle, text); - }; - } - else { - throw new Error('got invalid logger'); - } - return this; - } - static prefix(filter) { - if (filter) { - this.globalPrefix = filter; - this.globalInstance?.prefix(filter); - } - else { - return this.instance().prefix(); - } - } - prefix(filter) { - if (filter) { - if (typeof filter === 'string') { - this.prefixFilter = new RegExp('^' + filter + '$'); - } - else if (filter instanceof RegExp) { - this.prefixFilter = filter; - } - else { - throw new Error('unsupported prefix filter'); - } - } - else { - return this.prefixFilter; - } - } - static level(levelName) { - if (levelName) { - this.globalLogLevelName = levelName; - } - return this.instance().level(levelName); - } - level(levelName) { - if (levelName) { - // console.log('levelName: ' + levelName) - // http://stackoverflow.com/a/21294925/1123955 - // XXX: fix the any here? - let logLevel = LogLevel[levelName.toLowerCase()]; - if (logLevel === undefined) { // be aware of number 0 here - log.error('Brolog', 'level(%s) not exist, set to silly.', levelName); - logLevel = LogLevel.silly; - } - this.logLevel = logLevel; - } - return LogLevel[this.logLevel]; - } - log(levelTitle, prefix, message) { - if (this.prefixFilter && !this.prefixFilter.test(prefix)) { - return; // skip message not match prefix filter - } - const args = Array.prototype.slice.call(arguments, 3); - args.unshift(this.timestamp() + levelTitle + ' ' + prefix + ' ' + (message || '')); - // const args = Array.from(arguments) || [] - // args[0] = this.timestamp() + args[0] - const text = Reflect.apply(sprintf, null, args); - this.textPrinter(levelTitle, text); - } - defaultTextPrinter(levelTitle, text) { - // Use Reflect at: - // https://www.keithcirkel.co.uk/metaprogramming-in-es6-part-2-reflect/ - switch (levelTitle) { - case 'ERR': - // console.error.apply(console, args) - // Reflect.apply(console.error, console, args) - console.error(text); - break; - case 'WARN': - // console.warn.apply(console, args) - // Reflect.apply(console.warn, console, args) - console.warn(text); - break; - case 'INFO': - // console.info.apply(console, args) - // Reflect.apply(console.info, console, args) - console.info(text); - break; - // eslint-disable-next-line default-case-last - default: - case 'VERB': - case 'SILL': - // console.log.apply(console, args) - // Reflect.apply(console.log, console, args) - console.log(text); - } - } - static error(prefix, ...args) { - const instance = Brolog.instance(); - // return instance.error.apply(instance, arguments) - return Reflect.apply(instance.error, instance, [].concat(prefix, args)); - } - error(prefix, ...args) { - if (this.logLevel < LogLevel.error) { - return; - } - const argList = Array.from([prefix, ...args]); - argList.unshift('ERR'); - return Reflect.apply(this.log, this, argList); - } - static warn(prefix, ...args) { - const instance = Brolog.instance(); - return Reflect.apply(instance.warn, instance, [].concat(prefix, args)); - } - warn(prefix, ...args) { - if (this.logLevel < LogLevel.warn) { - return; - } - const argList = Array.from([prefix, ...args]); - argList.unshift('WARN'); - return Reflect.apply(this.log, this, argList); - } - static info(prefix, ...args) { - const instance = Brolog.instance(); - return Reflect.apply(instance.info, instance, [].concat(prefix, args)); - } - info(prefix, ...args) { - if (this.logLevel < LogLevel.info) { - return; - } - const argList = Array.from([prefix, ...args]); - argList.unshift('INFO'); - return Reflect.apply(this.log, this, argList); - } - static verbose(prefix, ...args) { - const instance = Brolog.instance(); - return Reflect.apply(instance.verbose, instance, [].concat(prefix, args)); - } - verbose(prefix, ...args) { - if (this.logLevel < LogLevel.verbose) { - return; - } - const argList = Array.from([prefix, ...args]); - argList.unshift('VERB'); - return Reflect.apply(this.log, this, argList); - } - static silly(prefix, ...args) { - const instance = Brolog.instance(); - return Reflect.apply(instance.silly, instance, [].concat(prefix, args)); - } - silly(prefix, ...args) { - if (this.logLevel < LogLevel.silly) { - return; - } - const argList = Array.from([prefix, ...args]); - argList.unshift('SILL'); - return Reflect.apply(this.log, this, argList); - } - timestamp(enable) { - if (typeof enable === 'boolean') { - this.enableTimestamp = enable; - return; - } - if (!this.enableTimestamp) { - return ''; - } - const date = new Date(); - const hour = date.getHours(); - const min = date.getMinutes(); - const sec = date.getSeconds(); - let stampStr = ''; - stampStr += (hour < 10) ? ('0' + hour) : hour; - stampStr += ':'; - stampStr += (min < 10) ? ('0' + min) : min; - stampStr += ':'; - stampStr += (sec < 10) ? ('0' + sec) : sec; - return stampStr + ' '; - } -} -// Credit: https://stackoverflow.com/a/4795914/1123955 -function sprintf() { - const args = arguments; - const text = args[0]; - let i = 1; - return text.replace(/%((%)|s|d)/g, function (m) { - // m is the matched format, e.g. %s, %d - let val = null; - if (m[2]) { - val = m[2]; - } - else { - val = args[i]; - // A switch statement so that the formatter can be extended. Default is %s - switch (m) { - case '%d': - val = Number(val); - /** - * Huan(202111): use Number() to replace parseFloat, - * and keep the `NaN` as a result for easy debugging - * when we use `%d` mistakenly when `%s` should be expected. - */ - // val = parseFloat(val) - // if (isNaN(val)) { - // val = 0 - // } - break; - } - i++; - } - return val; - }); -} -export { VERSION, }; -const log = Brolog.instance(); -if (BROLOG_LEVEL) { - /** - * set logLevel from: - * 1. process.env['BROLOG_LEVEL'], or - * 2. in URL: `?BROLOG_LEVEL=verbose&...` - */ - if (BROLOG_LEVEL === '*') { - log.level('silly'); - } - else { - log.level(BROLOG_LEVEL); - } -} -if (BROLOG_PREFIX && BROLOG_PREFIX !== '*') { - log.prefix(BROLOG_PREFIX); -} -export { LogLevel, Brolog, log, }; -//# sourceMappingURL=brolog.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/brolog.js.map b/WechatBot/node_modules/brolog/dist/esm/src/brolog.js.map deleted file mode 100644 index 76f4d6a8a..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/brolog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"brolog.js","sourceRoot":"","sources":["../../../src/brolog.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B;;;;;;;;;GASG;AACH,OAAO,EACL,OAAO,EACP,YAAY,EACZ,aAAa,GACd,MAAsB,aAAa,CAAA;AAepC,IAAK,QAOJ;AAPD,WAAK,QAAQ;IACX,2CAAW,CAAA;IACX,yCAAW,CAAA;IACX,uCAAW,CAAA;IACX,uCAAW,CAAA;IACX,6CAAW,CAAA;IACX,yCAAW,CAAA;AACb,CAAC,EAPI,QAAQ,KAAR,QAAQ,QAOZ;AAID,MAAM,MAAM;IAEF,MAAM,CAAC,cAAc,CAAW;IAChC,MAAM,CAAC,kBAAkB,GAAqB,MAAM,CAAA;IACpD,MAAM,CAAC,YAAY,GAA2B,IAAI,CAAA,CAAE,uBAAuB;IAE3E,eAAe,GAAG,IAAI,CAAA;IACtB,QAAQ,CAAc;IACtB,YAAY,CAAS;IAEtB,WAAW,CAAmD;IAErE;QACE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA;QAEtC,IAAI,CAAC,MAAM,CAAC,MAAM,C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file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.d.ts b/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.d.ts deleted file mode 100644 index 6eab8f404..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -export {}; -//# sourceMappingURL=brolog.spec.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.d.ts.map b/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.d.ts.map deleted file mode 100644 index 1ce484cc0..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"brolog.spec.d.ts","sourceRoot":"","sources":["../../../src/brolog.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.js b/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.js deleted file mode 100755 index 1b547d5b2..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.js +++ /dev/null @@ -1,260 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -/* eslint no-console: off */ -/* eslint comma-spacing: off */ -import { test, sinon, } from 'tstest'; -import { Brolog, VERSION, } from './brolog.js'; -test('VERSION', t => { - t.ok(/^\d+\.\d+\.\d+$/.test(VERSION), 'should get semver VERSION'); - t.end(); -}); -test('Brolog static/instance construct test', async (t) => { - const EXPECTED_LEVEL = 'silly'; - const log = Brolog.instance('info'); - /** - * - * Raw - * - */ - let l = Brolog.level(); - t.equal(l, 'info', 'should has default level `info`'); - l = Brolog.level(EXPECTED_LEVEL); - t.equal(l, EXPECTED_LEVEL, 'should be EXPECTED_LEVEL after setlevel to it'); - /** - * - * Instance - * - */ - const logInstance = Brolog.instance(EXPECTED_LEVEL); - t.equal(typeof logInstance, 'object', 'should return a object class when we call Brolog as instance'); - t.equal(logInstance, log, 'should return a instance as default exported log'); - let ll = log.level(); - t.equal(ll, EXPECTED_LEVEL, 'should has current level as EXPECTED_LEVEL after factory & class init'); - /** - * - * Constructor - * - */ - const LEVEL_SILENT = 'silent'; - const log1 = new Brolog(); - log1.level(LEVEL_SILENT); - ll = log1.level(); - t.equal(ll, LEVEL_SILENT, 'should has current level as LEVEL_SILENT after function init'); -}); -test('Brolog global log level test', async (t) => { - const log = Brolog; - let l; // level - log.level('UN_EXIST_LEVEL'); - t.equal(log.level(), 'silly', 'should set level to SILLY when level set to UNKNOWN'); - log.level('error'); - l = log.level(); - t.equal(l, 'error', 'should be ERR after level set to `error`'); - log.level('warn'); - l = log.level(); - t.equal(l, 'warn', 'should be warn after level set to `warn`'); - log.level('info'); - l = log.level(); - t.equal(l, 'info', 'should be info after level set to `info`'); - log.level('verbose'); - l = log.level(); - t.equal(l, 'verbose', 'should be verbose after level set to `verbose`'); - log.level('silly'); - l = log.level(); - t.equal(l, 'silly', 'should be silly after level set to silly'); -}); -/** - * - * This test must be the last one, - * because monkey patch is not recover when it finish - * - */ -test('Brolog global instance level filter test', async (t) => { - const logFuncList = [ - 'error', - 'warn', - 'info', - 'log', - ]; - let log2; - log2 = Brolog.instance('silent'); - await t.test('no error for silent', async (t) => { - const sandbox = sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLog(log2); - t.ok(console.error['notCalled'], 'should not call error with level SILENT ##############'); - sandbox.restore(); - }); - log2 = Brolog.instance('silly'); - await t.test('verbose + silly for silly', async (t) => { - const sandbox = sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLog(log2); - t.equal(console.log['callCount'], 2, 'should call log2(verbose + silly) 2 time with level SILLY'); - sandbox.restore(); - }); - log2 = Brolog.instance(); - log2.level('silent'); - await t.test('no log for silent', async (t) => { - const sandbox = sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLog(log2); - t.equal(console.error['callCount'], 0, 'should call error 0 time with level SILENT'); - t.equal(console.warn['callCount'], 0, 'should call warn 0 time with level SILENT'); - t.equal(console.info['callCount'], 0, 'should call info 0 time with level SILENT'); - t.equal(console.log['callCount'], 0, 'should call log2(verbose + silly) 0 time with level SILENT'); - sandbox.restore(); - }); - log2.level('error'); - await t.test('only error for error', async (t) => { - const sandbox = sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLog(log2); - t.equal(console.error['callCount'], 1, 'should call error 1 time with level ERR'); - t.equal(console.warn['callCount'], 0, 'should call warn 0 time with level ERR'); - t.equal(console.info['callCount'], 0, 'should call info 0 time with level ERR'); - t.equal(console.log['callCount'], 0, 'should call log2(verbose + silly) 0 time with level ERR'); - sandbox.restore(); - }); - log2.level('verbose'); - await t.test('for verbose', async (t) => { - const sandbox = sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLog(log2); - t.equal(console.error['callCount'], 1, 'should call error 1 time with level VERBOSE'); - t.equal(console.warn['callCount'], 1, 'should call warn 1 time with level VERBOSE'); - t.equal(console.info['callCount'], 1, 'should call info 1 time with level VERBOSE'); - t.equal(console.log['callCount'], 1, 'should call log2(verbose + silly) 1 time with level VERBOSE'); - sandbox.restore(); - }); - /** */ - function doLog(logger) { - logger.error('Test', 'error message'); - logger.warn('Test', 'warn message'); - logger.info('Test', 'info message'); - logger.verbose('Test', 'verbose message'); - logger.silly('Test', 'silly message'); - } -}); -test('Brolog global instance prefix filter test', async (t) => { - const logFuncList = [ - 'error', - 'warn', - 'info', - 'log', - ]; - // filter log by prefix match /Show/ - const log = Brolog.instance('info', /Show/); - await t.test('doLogHide /Show/', async (t) => { - const sandbox = sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLogHide(log); - t.equal(console.error['callCount'], 0, 'should call error 0 time with prefix Hide'); - t.equal(console.warn['callCount'], 0, 'should call warn 0 time with prefix Hide'); - t.equal(console.info['callCount'], 0, 'should call info 0 time with prefix Hide'); - t.equal(console.log['callCount'], 0, 'should call log2(verbose + silly) 0 time with prefix Hide'); - sandbox.restore(); - }); - await t.test('doLogShow /Show/', async (t) => { - const sandbox = sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLogShow(log); - t.equal(console.error['callCount'], 1, 'should call error 1 time with prefix Show'); - t.equal(console.warn['callCount'], 1, 'should call warn 1 time with prefix Show'); - t.equal(console.info['callCount'], 1, 'should call info 1 time with prefix Show'); - t.equal(console.log['callCount'], 0, 'should call log2(verbose + silly) 1 time with prefix Show'); - sandbox.restore(); - }); - log.level('silent'); - await t.test('doLogShow for silent', async (t) => { - const sandbox = sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLogShow(log); - t.equal(console.error['callCount'], 0, 'should call error 0 time with prefix Show with level silent'); - t.equal(console.warn['callCount'], 0, 'should call warn 0 time with prefix Show with level silent'); - t.equal(console.info['callCount'], 0, 'should call info 0 time with prefix Show with level silent'); - t.equal(console.log['callCount'], 0, 'should call log2(verbose + silly) 0 time with prefix Show with level silent'); - sandbox.restore(); - }); - log.level('silly'); - await t.test('doLogShow for silly', async (t) => { - const sandbox = sinon.createSandbox(); - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()); - doLogShow(log); - t.equal(console.error['callCount'], 1, 'should call error 1 time with prefix Show with level silly'); - t.equal(console.warn['callCount'], 1, 'should call warn 1 time with prefix Show with level silly'); - t.equal(console.info['callCount'], 1, 'should call info 1 time with prefix Show with level silly'); - t.equal(console.log['callCount'], 2, 'should call log2(verbose + silly) 2 time with prefix Show with level silly'); - sandbox.restore(); - }); - /** */ - function doLogHide(logger) { - logger.error('Hide', 'error message'); - logger.warn('Hide', 'warn message'); - logger.info('Hide', 'info message'); - logger.verbose('Hide', 'verbose message'); - logger.silly('Hide', 'silly message'); - } - function doLogShow(logger) { - logger.error('Show', 'error message'); - logger.warn('Show', 'warn message'); - logger.info('Show', 'info message'); - logger.verbose('Show', 'verbose message'); - logger.silly('Show', 'silly message'); - } -}); -test('Brolog individual instance prefix filter test', async (t) => { - // important: reset all to default: 'info', /.*/ - const log = Brolog.instance('info', /.*/); - t.equal(log.level(), 'info', 'should be global level `info`'); - t.equal(log.prefix().toString(), '/.*/', 'should be global prefix filter /.*/'); - const log1 = new Brolog(); - const log2 = new Brolog(); - log2.level('silly'); - log2.prefix('faint'); - t.notEqual(log1, log, 'should not as the same as global instance'); - t.notEqual(log1, log2, 'should not as the same between new instances'); - t.equal(log1.level(), 'info', 'should stick with default level `info`'); - t.equal(log1.prefix().toString(), '/.*/', 'should stick with default prefix filter by default'); - t.equal(log2.level(), 'silly', 'should be set level `silly`'); - t.equal(log2.prefix().toString(), '/^faint$/', 'should be set prefix filter to /faint/'); - t.end(); -}); -test('Brolog enableLogger()', async (t) => { - const sandbox = sinon.createSandbox(); - const spy = sandbox.spy(); - const stub = sandbox.stub(Brolog.prototype, 'defaultTextPrinter'); - await t.test('enableLogging(false/true)', async (t) => { - spy.resetHistory(); - stub.resetHistory(); - const log = Brolog.enableLogging(false); - log.error('TEST', 'Should not log'); - t.ok(stub.notCalled, 'should not log anything after enableLogging(false)'); - log.enableLogging(true); - stub.resetHistory(); - log.error('TEST', 'Should log'); - t.ok(stub.calledOnce, 'should log after enableLogging(true)'); - }); - await t.test('enableLogging(log function)', async (t) => { - spy.resetHistory(); - stub.resetHistory(); - const log = Brolog.enableLogging(spy); - log.error('TEST', 'should call spy'); - t.ok(stub.notCalled, 'should not call printTextDefault'); - t.ok(spy.calledOnce, 'should call spy after enableLogging(spy)'); - }); - // XXX why need t.end() inside async function(which will return a promise?) - sandbox.restore(); -}); -test('Timestamp()', async (t) => { - const log = new Brolog(); - t.ok(log.timestamp(), 'should enable timestamp by default'); - t.equal(log.timestamp(false), undefined, 'should return void when set timestamp to false'); - t.equal(log.timestamp(), '', 'should return empty string when timestamp is disabled'); - t.equal(log.timestamp(true), undefined, 'should return void when set timestamp to true'); - t.ok(log.timestamp(), 'should return timestamp string when timestamp is enabled'); -}); -test('version()', t => { - const log = new Brolog(); - t.ok(log.version(), 'should get version'); - t.end(); -}); -//# sourceMappingURL=brolog.spec.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.js.map b/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.js.map deleted file mode 100644 index 66c544338..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/brolog.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"brolog.spec.js","sourceRoot":"","sources":["../../../src/brolog.spec.ts"],"names":[],"mappings":";AACA,4BAA4B;AAC5B,+BAA+B;AAC/B,OAAO,EACL,IAAI,EACJ,KAAK,GACN,MAAkB,QAAQ,CAAA;AAE3B,OAAO,EACL,MAAM,EACN,OAAO,GAER,MAAkB,aAAa,CAAA;AAEhC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE;IAClB,CAAC,CAAC,EAAE,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,2BAA2B,CAAC,CAAA;IAClE,CAAC,CAAC,GAAG,EAAE,CAAA;AACT,CAAC,CAAC,CAAA;AAEF,IAAI,CAAC,uCAAuC,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAEtD,MAAM,cAAc,GAAG,OAAO,CAAA;IAE9B,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;IAEnC;;;;OAIG;IACH,IAAI,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,CAAA;IACtB,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,iCAAiC,CAAC,CAAA;IAErD,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,CAAA;IAChC,CAAC,CAAC,KAAK,CAAC,CAAC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C,EAAE,CAAC,GAAG,CAAC,OAAO,EAAE,EAAE,oBAAoB,CAAC,CAAA;IACzC,CAAC,CAAC,GAAG,EAAE,CAAA;AACT,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/config.d.ts b/WechatBot/node_modules/brolog/dist/esm/src/config.d.ts deleted file mode 100644 index 387e8bb1c..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/config.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { VERSION } from './version.js'; -export declare const BROLOG_LEVEL: string; -export declare const BROLOG_PREFIX: string; -//# sourceMappingURL=config.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/config.d.ts.map b/WechatBot/node_modules/brolog/dist/esm/src/config.d.ts.map deleted file mode 100644 index e4c164257..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/config.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AA0DtC,eAAO,MAAM,YAAY,QAAyB,CAAA;AAClD,eAAO,MAAM,aAAa,QAAqB,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/config.js b/WechatBot/node_modules/brolog/dist/esm/src/config.js deleted file mode 100755 index 5bbb763e8..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/config.js +++ /dev/null @@ -1,54 +0,0 @@ -export { VERSION } from './version.js'; -/** - * BROLOG_LEVEL - */ -const DEFAULT_LEVEL = 'info'; -const BROLOG_LEVEL_VAR_NAME = 'BROLOG_LEVEL'; -const BROLOG_PREFIX_VAR_NAME = 'BROLOG_PREFIX'; -let level; -let debugModule; -/** - * - * Sometimes there's a `process` in browser (ionic3 & angular5) - * Sometimes there's a window in Node.js (browserify) - * - */ -// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -if (typeof process !== 'undefined' && process['env']) { - /** - * Node.js - */ - if (!level) { - level = process.env[BROLOG_LEVEL_VAR_NAME]; - } - if (!debugModule) { - debugModule = process.env[BROLOG_PREFIX_VAR_NAME]; - } -} -// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -if (typeof window !== 'undefined' && typeof window?.location?.search === 'string') { - /** - * Browser - */ - if (!level) { - level = getJsonFromUrl()[BROLOG_LEVEL_VAR_NAME]; - } - if (!debugModule) { - debugModule = getJsonFromUrl()[BROLOG_LEVEL_VAR_NAME]; - } -} -function getJsonFromUrl() { - // https://stackoverflow.com/questions/8486099/how-do-i-parse-a-url-query-parameters-in-javascript - const query = location.search.substr(1); - const result = {}; - query.split('&').forEach(function (part) { - const [key, val] = part.split('='); - if (typeof key !== 'undefined' && typeof val !== 'undefined') { - result[key] = decodeURIComponent(val); - } - }); - return result; -} -export const BROLOG_LEVEL = level || DEFAULT_LEVEL; -export const BROLOG_PREFIX = debugModule || '*'; -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/config.js.map b/WechatBot/node_modules/brolog/dist/esm/src/config.js.map deleted file mode 100644 index 79d43a8f6..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC;;GAEG;AAEH,MAAM,aAAa,GAAG,MAAM,CAAA;AAC5B,MAAM,qBAAqB,GAAG,cAAc,CAAA;AAC5C,MAAM,sBAAsB,GAAG,eAAe,CAAA;AAE9C,IAAI,KAAyB,CAAA;AAC7B,IAAI,WAA+B,CAAA;AAEnC;;;;;GAKG;AACH,uEAAuE;AACvE,IAAI,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;IACpD;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE;QACV,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAA;KAC3C;IACD,IAAI,CAAC,WAAW,EAAE;QAChB,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAA;KAClD;CACF;AAED,uEAAuE;AACvE,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,QAAQ,EAAE;IACjF;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE;QACV,KAAK,GAAG,cAAc,EAAE,CAAC,qBAAqB,CAAC,CAAA;KAChD;IACD,IAAI,CAAC,WAAW,EAAE;QAChB,WAAW,GAAG,cAAc,EAAE,CAAC,qBAAqB,CAAC,CAAA;KACtD;CACF;AAED,SAAS,cAAc;IACrB,kGAAkG;IAClG,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;IACvC,MAAM,MAAM,GAAG,EAA+B,CAAA;IAC9C,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,IAAI;QACrC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QAClC,IAAI,OAAO,GAAG,KAAK,WAAW,IAAI,OAAO,GAAG,KAAK,WAAW,EAAE;YAC5D,MAAM,CAAC,GAAG,CAAC,GAAG,kBAAkB,CAAC,GAAG,CAAC,CAAA;SACtC;IACH,CAAC,CAAC,CAAA;IACF,OAAO,MAAM,CAAA;AACf,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,IAAI,aAAa,CAAA;AAClD,MAAM,CAAC,MAAM,aAAa,GAAG,WAAW,IAAI,GAAG,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/logger.d.ts b/WechatBot/node_modules/brolog/dist/esm/src/logger.d.ts deleted file mode 100644 index c294b5e1e..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/logger.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -interface Logger { - error(moduleName: string, message: string, ...args: any[]): void; - warn(moduleName: string, message: string, ...args: any[]): void; - info(moduleName: string, message: string, ...args: any[]): void; - verbose(moduleName: string, message: string, ...args: any[]): void; - silly(moduleName: string, message: string, ...args: any[]): void; -} -declare const getLogger: (logger?: Logger | undefined) => Logger; -export type { Logger as Loggable, // @deprecated: use Logger instead. will be removed after Dec 31, 2022 -Logger, }; -export { getLogger as getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 -getLogger, }; -//# sourceMappingURL=logger.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/logger.d.ts.map b/WechatBot/node_modules/brolog/dist/esm/src/logger.d.ts.map deleted file mode 100644 index 1f0d51d26..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/logger.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/logger.ts"],"names":[],"mappings":"AAEA,UAAU,MAAM;IACd,KAAK,CAAI,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IACnE,IAAI,CAAK,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IACnE,IAAI,CAAK,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IACnE,OAAO,CAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;IACnE,KAAK,CAAI,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI,CAAA;CACpE;AAED,QAAA,MAAM,SAAS,mCAAsB,MAYpC,CAAA;AAED,YAAY,EACV,MAAM,IAAI,QAAQ,EAAE,sEAAsE;AAC1F,MAAM,GACP,CAAA;AACD,OAAO,EACL,SAAS,IAAI,WAAW,EAAE,yEAAyE;AACnG,SAAS,GACV,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/logger.js b/WechatBot/node_modules/brolog/dist/esm/src/logger.js deleted file mode 100755 index effc5a7a0..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/logger.js +++ /dev/null @@ -1,16 +0,0 @@ -import { nop } from '@pipeletteio/nop'; -const getLogger = (logger) => { - if (logger) { - return logger; - } - return { - error: nop, - info: nop, - silly: nop, - verbose: nop, - warn: nop, - }; -}; -export { getLogger as getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 -getLogger, }; -//# sourceMappingURL=logger.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/logger.js.map b/WechatBot/node_modules/brolog/dist/esm/src/logger.js.map deleted file mode 100644 index fee287557..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/logger.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAUtC,MAAM,SAAS,GAAG,CAAC,MAAe,EAAU,EAAE;IAC5C,IAAI,MAAM,EAAE;QACV,OAAO,MAAM,CAAA;KACd;IAED,OAAO;QACL,KAAK,EAAK,GAAG;QACb,IAAI,EAAM,GAAG;QACb,KAAK,EAAK,GAAG;QACb,OAAO,EAAG,GAAG;QACb,IAAI,EAAM,GAAG;KACd,CAAA;AACH,CAAC,CAAA;AAMD,OAAO,EACL,SAAS,IAAI,WAAW,EAAE,yEAAyE;AACnG,SAAS,GACV,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/mod.d.ts b/WechatBot/node_modules/brolog/dist/esm/src/mod.d.ts deleted file mode 100644 index d41b5e295..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/mod.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { VERSION } from './config.js'; -import { Brolog, log } from './brolog.js'; -import type { Loggable, // @deprecated: use Logger instead. will be removed after Dec 31, 2022 -Logger } from './logger.js'; -import { getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 -getLogger } from './logger.js'; -export type { Loggable, // @deprecated: use Logger instead. will be removed after Dec 31, 2022 -Logger, }; -export { VERSION, Brolog, getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 -getLogger, log, }; -//# sourceMappingURL=mod.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/mod.d.ts.map b/WechatBot/node_modules/brolog/dist/esm/src/mod.d.ts.map deleted file mode 100644 index b47e745af..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/mod.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACR,MAAoB,aAAa,CAAA;AAClC,OAAO,EACL,MAAM,EACN,GAAG,EACJ,MAAoB,aAAa,CAAA;AAClC,OAAO,KAAK,EACV,QAAQ,EAAI,sEAAsE;AAClF,MAAM,EACP,MAAoB,aAAa,CAAA;AAClC,OAAO,EACL,WAAW,EAAG,yEAAyE;AACvF,SAAS,EACV,MAAoB,aAAa,CAAA;AAElC,YAAY,EACV,QAAQ,EAAE,sEAAsE;AAChF,MAAM,GACP,CAAA;AACD,OAAO,EACL,OAAO,EACP,MAAM,EACN,WAAW,EAAG,yEAAyE;AACvF,SAAS,EACT,GAAG,GACJ,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/mod.js b/WechatBot/node_modules/brolog/dist/esm/src/mod.js deleted file mode 100755 index b3a94cdef..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/mod.js +++ /dev/null @@ -1,7 +0,0 @@ -import { VERSION, } from './config.js'; -import { Brolog, log, } from './brolog.js'; -import { getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 -getLogger, } from './logger.js'; -export { VERSION, Brolog, getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 -getLogger, log, }; -//# sourceMappingURL=mod.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/mod.js.map b/WechatBot/node_modules/brolog/dist/esm/src/mod.js.map deleted file mode 100644 index 1fc19bd9a..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/mod.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,GACR,MAAoB,aAAa,CAAA;AAClC,OAAO,EACL,MAAM,EACN,GAAG,GACJ,MAAoB,aAAa,CAAA;AAKlC,OAAO,EACL,WAAW,EAAG,yEAAyE;AACvF,SAAS,GACV,MAAoB,aAAa,CAAA;AAMlC,OAAO,EACL,OAAO,EACP,MAAM,EACN,WAAW,EAAG,yEAAyE;AACvF,SAAS,EACT,GAAG,GACJ,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/version.d.ts b/WechatBot/node_modules/brolog/dist/esm/src/version.d.ts deleted file mode 100644 index 61d0981b8..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/version.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty - * - * @copyright 2016 Huan LI (李卓桓) , and - * Wechaty Contributors . - * - * 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. - * - */ -export declare const VERSION = "0.0.0"; -//# sourceMappingURL=version.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/version.d.ts.map b/WechatBot/node_modules/brolog/dist/esm/src/version.d.ts.map deleted file mode 100644 index 8f6c208b1..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/version.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,eAAO,MAAM,OAAO,UAAU,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/version.js b/WechatBot/node_modules/brolog/dist/esm/src/version.js deleted file mode 100755 index 48b0cf794..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/version.js +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty - * - * @copyright 2016 Huan LI (李卓桓) , and - * Wechaty Contributors . - * - * 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. - * - */ -export const VERSION = '0.0.0'; -//# sourceMappingURL=version.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/version.js.map b/WechatBot/node_modules/brolog/dist/esm/src/version.js.map deleted file mode 100644 index c14098a5a..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/version.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/version.spec.d.ts b/WechatBot/node_modules/brolog/dist/esm/src/version.spec.d.ts deleted file mode 100644 index 47e5cb940..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/version.spec.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -export {}; -//# sourceMappingURL=version.spec.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/version.spec.d.ts.map b/WechatBot/node_modules/brolog/dist/esm/src/version.spec.d.ts.map deleted file mode 100644 index 517ec9b1d..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/version.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version.spec.d.ts","sourceRoot":"","sources":["../../../src/version.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/version.spec.js b/WechatBot/node_modules/brolog/dist/esm/src/version.spec.js deleted file mode 100755 index f936d0069..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/version.spec.js +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -/** - * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty - * - * @copyright 2016 Huan LI (李卓桓) , and - * Wechaty Contributors . - * - * 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. - * - */ -import { VERSION, } from './version.js'; -import { test } from 'tstest'; -test('Make sure the VERSION is fresh in source code', async (t) => { - t.equal(VERSION, '0.0.0', 'version should be 0.0.0 in source code, only updated before publish to NPM'); -}); -//# sourceMappingURL=version.spec.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/src/version.spec.js.map b/WechatBot/node_modules/brolog/dist/esm/src/version.spec.js.map deleted file mode 100644 index e11b35abb..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/src/version.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"version.spec.js","sourceRoot":"","sources":["../../../src/version.spec.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EACL,OAAO,GACR,MAAwB,cAAc,CAAA;AAEvC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,IAAI,CAAC,+CAA+C,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IAC9D,CAAC,CAAC,KAAK,CAAC,OAAO,EAAE,OAAO,EAAE,4EAA4E,CAAC,CAAA;AACzG,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.d.ts b/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.d.ts deleted file mode 100644 index f86882bf8..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -export {}; -//# sourceMappingURL=integration.spec.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.d.ts.map b/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.d.ts.map deleted file mode 100644 index 76992cde5..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"integration.spec.d.ts","sourceRoot":"","sources":["../../../tests/integration.spec.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.js b/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.js deleted file mode 100755 index a34541a67..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.js +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -/** - * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty - * - * @copyright 2016 Huan LI (李卓桓) , and - * Wechaty Contributors . - * - * 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. - * - */ -import { test } from 'tstest'; -test('tbw', async (t) => { - t.pass('tbw'); -}); -//# sourceMappingURL=integration.spec.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.js.map b/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.js.map deleted file mode 100644 index 46145f10d..000000000 --- a/WechatBot/node_modules/brolog/dist/esm/tests/integration.spec.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"integration.spec.js","sourceRoot":"","sources":["../../../tests/integration.spec.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAE7B,IAAI,CAAC,KAAK,EAAE,KAAK,EAAC,CAAC,EAAC,EAAE;IACpB,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACf,CAAC,CAAC,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/brolog/package.json b/WechatBot/node_modules/brolog/package.json deleted file mode 100644 index c9033fae2..000000000 --- a/WechatBot/node_modules/brolog/package.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "name": "brolog", - "version": "1.14.2", - "description": "Npmlog like logger for Browser", - "type": "module", - "exports": { - ".": { - "import": "./dist/esm/src/mod.js", - "require": "./dist/cjs/src/mod.js" - } - }, - "typings": "./dist/esm/src/mod.d.ts", - "engines": { - "node": ">=16", - "npm": ">=7" - }, - "scripts": { - "build": "tsc && tsc -p tsconfig.cjs.json", - "clean": "shx rm -fr dist/*", - "dist": "npm-run-all clean build dist:commonjs", - "dist:commonjs": "jq -n \"{ type: \\\"commonjs\\\" }\" > dist/cjs/package.json", - "lint": "npm-run-all lint:es lint:ts", - "lint:ts": "tsc --isolatedModules --noEmit", - "test": "npm-run-all lint dist test:unit test:e2e", - "test:e2e": "bash -x tests/protractor.sh", - "test:pack": "bash -x scripts/npm-pack-testing.sh", - "test:unit": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" tap -R tap \"src/**/*.spec.ts\"", - "lint:es": "eslint --ignore-pattern tests/fixtures/ '{bin,examples,scripts,src,tests}/**/*.ts'" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/huan/brolog.git" - }, - "keywords": [ - "npmlog", - "log", - "logger", - "console.log", - "browser", - "angular" - ], - "author": "Huan LI ", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/huan/brolog/issues" - }, - "homepage": "https://github.com/huan/brolog#readme", - "dependencies": { - "@pipeletteio/nop": "^1.0.0" - }, - "devDependencies": { - "@chatie/eslint-config": "^1.0.2", - "@chatie/git-scripts": "^0.6.2", - "@chatie/semver": "^0.4.7", - "@chatie/tsconfig": "^1.0.2", - "@types/chokidar": "^2.1.3", - "@types/jasmine": "^3.10.1", - "@types/puppeteer": "^5.4.4", - "@types/rollup-plugin-json": "^3.0.3", - "chokidar": "^3.5.2", - "jasmine-spec-reporter": "^7.0.0", - "magic-string": "^0.25.7", - "pkg-jq": "^0.2.11", - "protractor": "^7.0.0", - "puppeteer": "^10.4.0", - "rollup": "^2.58.3", - "rollup-plugin-json": "^4.0.0", - "source-map": "^0.7.3", - "tap": "^15.0.10", - "tslint": "^6.1.2", - "tstest": "^1.0.1" - }, - "files": [ - "src/", - "dist/" - ], - "git": { - "scripts": { - "pre-push": "npx git-scripts-pre-push" - } - } -} diff --git a/WechatBot/node_modules/brolog/src/brolog.spec.ts b/WechatBot/node_modules/brolog/src/brolog.spec.ts deleted file mode 100644 index 0c3b584bb..000000000 --- a/WechatBot/node_modules/brolog/src/brolog.spec.ts +++ /dev/null @@ -1,328 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -/* eslint no-console: off */ -/* eslint comma-spacing: off */ -import { - test, - sinon, -} from 'tstest' - -import { - Brolog, - VERSION, - Loggable, -} from './brolog.js' - -test('VERSION', t => { - t.ok(/^\d+\.\d+\.\d+$/.test(VERSION), 'should get semver VERSION') - t.end() -}) - -test('Brolog static/instance construct test', async t => { - - const EXPECTED_LEVEL = 'silly' - - const log = Brolog.instance('info') - - /** - * - * Raw - * - */ - let l = Brolog.level() - t.equal(l, 'info', 'should has default level `info`') - - l = Brolog.level(EXPECTED_LEVEL) - t.equal(l, EXPECTED_LEVEL, 'should be EXPECTED_LEVEL after setlevel to it') - - /** - * - * Instance - * - */ - const logInstance = Brolog.instance(EXPECTED_LEVEL) - t.equal(typeof logInstance, 'object', 'should return a object class when we call Brolog as instance') - t.equal(logInstance, log, 'should return a instance as default exported log') - - let ll = log.level() - t.equal(ll, EXPECTED_LEVEL, 'should has current level as EXPECTED_LEVEL after factory & class init') - - /** - * - * Constructor - * - */ - const LEVEL_SILENT = 'silent' - const log1 = new Brolog() - log1.level(LEVEL_SILENT) - ll = log1.level() - t.equal(ll, LEVEL_SILENT, 'should has current level as LEVEL_SILENT after function init') -}) - -test('Brolog global log level test', async t => { - const log = Brolog - let l // level - - log.level('UN_EXIST_LEVEL' as any) - t.equal(log.level(), 'silly', 'should set level to SILLY when level set to UNKNOWN') - - log.level('error') - l = log.level() - t.equal(l, 'error', 'should be ERR after level set to `error`') - - log.level('warn') - l = log.level() - t.equal(l, 'warn', 'should be warn after level set to `warn`') - - log.level('info') - l = log.level() - t.equal(l, 'info', 'should be info after level set to `info`') - - log.level('verbose') - l = log.level() - t.equal(l, 'verbose', 'should be verbose after level set to `verbose`') - - log.level('silly') - l = log.level() - t.equal(l, 'silly', 'should be silly after level set to silly') - -}) - -/** - * - * This test must be the last one, - * because monkey patch is not recover when it finish - * - */ -test('Brolog global instance level filter test', async t => { - const logFuncList = [ - 'error', - 'warn', - 'info', - 'log', - ] as const - - let log2: Brolog - - log2 = Brolog.instance('silent') - - await t.test('no error for silent', async t => { - const sandbox = sinon.createSandbox() - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()) - doLog(log2) - t.ok((console.error as any)['notCalled'], 'should not call error with level SILENT ##############') - sandbox.restore() - }) - - log2 = Brolog.instance('silly') - await t.test('verbose + silly for silly', async t => { - const sandbox = sinon.createSandbox() - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()) - doLog(log2) - t.equal((console.log as any)['callCount'], 2, 'should call log2(verbose + silly) 2 time with level SILLY') - sandbox.restore() - }) - - log2 = Brolog.instance() - log2.level('silent') - await t.test('no log for silent', async t => { - const sandbox = sinon.createSandbox() - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()) - doLog(log2) - t.equal((console.error as any)['callCount'] , 0, 'should call error 0 time with level SILENT') - t.equal((console.warn as any)['callCount'] , 0, 'should call warn 0 time with level SILENT') - t.equal((console.info as any)['callCount'] , 0, 'should call info 0 time with level SILENT') - t.equal((console.log as any)['callCount'] , 0, 'should call log2(verbose + silly) 0 time with level SILENT') - sandbox.restore() - }) - - log2.level('error') - await t.test('only error for error', async t => { - const sandbox = sinon.createSandbox() - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()) - doLog(log2) - t.equal((console.error as any)['callCount'] , 1, 'should call error 1 time with level ERR') - t.equal((console.warn as any)['callCount'] , 0, 'should call warn 0 time with level ERR') - t.equal((console.info as any)['callCount'] , 0, 'should call info 0 time with level ERR') - t.equal((console.log as any)['callCount'] , 0, 'should call log2(verbose + silly) 0 time with level ERR') - sandbox.restore() - }) - - log2.level('verbose') - await t.test('for verbose', async t => { - const sandbox = sinon.createSandbox() - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()) - doLog(log2) - t.equal((console.error as any)['callCount'] , 1, 'should call error 1 time with level VERBOSE') - t.equal((console.warn as any)['callCount'] , 1, 'should call warn 1 time with level VERBOSE') - t.equal((console.info as any)['callCount'] , 1, 'should call info 1 time with level VERBOSE') - t.equal((console.log as any)['callCount'] , 1, 'should call log2(verbose + silly) 1 time with level VERBOSE') - sandbox.restore() - }) - - /** */ - - function doLog (logger: any) { - logger.error('Test', 'error message') - logger.warn('Test', 'warn message') - logger.info('Test', 'info message') - logger.verbose('Test', 'verbose message') - logger.silly('Test', 'silly message') - } -}) - -test('Brolog global instance prefix filter test', async t => { - const logFuncList = [ - 'error', - 'warn', - 'info', - 'log', - ] as const - - // filter log by prefix match /Show/ - const log = Brolog.instance('info', /Show/) - - await t.test('doLogHide /Show/', async t => { - const sandbox = sinon.createSandbox() - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()) - doLogHide(log) - t.equal((console.error as any)['callCount'] , 0, 'should call error 0 time with prefix Hide') - t.equal((console.warn as any)['callCount'] , 0, 'should call warn 0 time with prefix Hide') - t.equal((console.info as any)['callCount'] , 0, 'should call info 0 time with prefix Hide') - t.equal((console.log as any)['callCount'] , 0, 'should call log2(verbose + silly) 0 time with prefix Hide') - sandbox.restore() - }) - - await t.test('doLogShow /Show/', async t => { - const sandbox = sinon.createSandbox() - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()) - doLogShow(log) - t.equal((console.error as any)['callCount'] , 1, 'should call error 1 time with prefix Show') - t.equal((console.warn as any)['callCount'] , 1, 'should call warn 1 time with prefix Show') - t.equal((console.info as any)['callCount'] , 1, 'should call info 1 time with prefix Show') - t.equal((console.log as any)['callCount'] , 0, 'should call log2(verbose + silly) 1 time with prefix Show') - sandbox.restore() - }) - - log.level('silent') - - await t.test('doLogShow for silent', async t => { - const sandbox = sinon.createSandbox() - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()) - doLogShow(log) - t.equal((console.error as any)['callCount'] , 0, 'should call error 0 time with prefix Show with level silent') - t.equal((console.warn as any)['callCount'] , 0, 'should call warn 0 time with prefix Show with level silent') - t.equal((console.info as any)['callCount'] , 0, 'should call info 0 time with prefix Show with level silent') - t.equal((console.log as any)['callCount'] , 0, 'should call log2(verbose + silly) 0 time with prefix Show with level silent') - sandbox.restore() - }) - - log.level('silly') - - await t.test('doLogShow for silly', async t => { - const sandbox = sinon.createSandbox() - logFuncList.forEach(logFunc => sandbox.stub(console, logFunc).callThrough()) - doLogShow(log) - t.equal((console.error as any)['callCount'] , 1, 'should call error 1 time with prefix Show with level silly') - t.equal((console.warn as any)['callCount'] , 1, 'should call warn 1 time with prefix Show with level silly') - t.equal((console.info as any)['callCount'] , 1, 'should call info 1 time with prefix Show with level silly') - t.equal((console.log as any)['callCount'] , 2, 'should call log2(verbose + silly) 2 time with prefix Show with level silly') - sandbox.restore() - }) - - /** */ - - function doLogHide (logger: Loggable) { - logger.error('Hide', 'error message') - logger.warn('Hide', 'warn message') - logger.info('Hide', 'info message') - logger.verbose('Hide', 'verbose message') - logger.silly('Hide', 'silly message') - } - - function doLogShow (logger: Loggable) { - logger.error('Show', 'error message') - logger.warn('Show', 'warn message') - logger.info('Show', 'info message') - logger.verbose('Show', 'verbose message') - logger.silly('Show', 'silly message') - } -}) - -test('Brolog individual instance prefix filter test', async t => { - // important: reset all to default: 'info', /.*/ - const log = Brolog.instance('info', /.*/) - - t.equal(log.level(), 'info', 'should be global level `info`') - t.equal(log.prefix().toString(), '/.*/', 'should be global prefix filter /.*/') - - const log1 = new Brolog() - const log2 = new Brolog() - - log2.level('silly') - log2.prefix('faint') - - t.notEqual(log1, log, 'should not as the same as global instance') - t.notEqual(log1, log2, 'should not as the same between new instances') - - t.equal(log1.level(), 'info', 'should stick with default level `info`') - t.equal(log1.prefix().toString(), '/.*/', 'should stick with default prefix filter by default') - - t.equal(log2.level(), 'silly', 'should be set level `silly`') - t.equal(log2.prefix().toString(), '/^faint$/', 'should be set prefix filter to /faint/') - - t.end() -}) - -test('Brolog enableLogger()', async t => { - const sandbox = sinon.createSandbox() - - const spy = sandbox.spy() - const stub = sandbox.stub(Brolog.prototype, 'defaultTextPrinter') - - await t.test('enableLogging(false/true)', async t => { - spy.resetHistory() - stub.resetHistory() - - const log = Brolog.enableLogging(false) - log.error('TEST', 'Should not log') - - t.ok(stub.notCalled, 'should not log anything after enableLogging(false)') - - log.enableLogging(true) - stub.resetHistory() - log.error('TEST', 'Should log') - t.ok(stub.calledOnce, 'should log after enableLogging(true)') - }) - - await t.test('enableLogging(log function)', async t => { - spy.resetHistory() - stub.resetHistory() - - const log = Brolog.enableLogging(spy) - log.error('TEST', 'should call spy') - - t.ok(stub.notCalled, 'should not call printTextDefault') - t.ok(spy.calledOnce, 'should call spy after enableLogging(spy)') - }) - - // XXX why need t.end() inside async function(which will return a promise?) - sandbox.restore() -}) - -test('Timestamp()', async t => { - const log = new Brolog() - t.ok(log.timestamp(), 'should enable timestamp by default') - - t.equal(log.timestamp(false), undefined, 'should return void when set timestamp to false') - t.equal(log.timestamp(), '', 'should return empty string when timestamp is disabled') - - t.equal(log.timestamp(true), undefined, 'should return void when set timestamp to true') - t.ok(log.timestamp(), 'should return timestamp string when timestamp is enabled') - -}) - -test('version()', t => { - const log = new Brolog() - t.ok(log.version(), 'should get version') - t.end() -}) diff --git a/WechatBot/node_modules/brolog/src/brolog.ts b/WechatBot/node_modules/brolog/src/brolog.ts deleted file mode 100644 index 5b0539d48..000000000 --- a/WechatBot/node_modules/brolog/src/brolog.ts +++ /dev/null @@ -1,418 +0,0 @@ -/* eslint-disable no-console */ -/*! - * Brolog JavaScript Library v1.1.0 - * https://github.com/huan/brolog - * - * Copyright Huan LI - * Released under the ISC license - * https://github.com/huan/brolog/blob/master/LICENSE - * - * Date: 2016-07 - */ -import { - VERSION, - BROLOG_LEVEL, - BROLOG_PREFIX, -} from './config.js' - -import type { - Loggable, -} from './logger.js' - -type LogLevelTitle = - | 'ERR' - | 'WARN' - | 'INFO' - | 'VERB' - | 'SILL' - -type TextPrinterFunction = (title: string, text?: string) => void - -enum LogLevel { - silent = 0, - error = 1, - warn = 2, - info = 3, - verbose = 4, - silly = 5, -} - -type LogLevelName = keyof typeof LogLevel - -class Brolog implements Loggable { - - private static globalInstance? : Brolog - private static globalLogLevelName: LogLevelName = 'info' - private static globalPrefix : string | RegExp = /.*/ // Match all by default - - private enableTimestamp = true - private logLevel: LogLevel - private prefixFilter?: RegExp - - public textPrinter: (levelTitle: LogLevelTitle, text: string) => void - - constructor () { - this.level(Brolog.globalLogLevelName) - this.logLevel = LogLevel[this.level()] - - this.prefix(Brolog.globalPrefix) - this.prefixFilter = this.prefix() - - this.textPrinter = this.defaultTextPrinter - } - - /** - * Create a global Brolog Instance for sharing between modules - */ - public static instance ( - levelName?: LogLevelName, - prefix?: string | RegExp, - ): Brolog { - if (!this.globalInstance) { - this.globalInstance = new Brolog() - } - - if (levelName) { - this.globalLogLevelName = levelName - this.globalInstance.level(levelName) - } - if (prefix) { - this.globalPrefix = prefix - this.globalInstance.prefix(prefix) - } - - return this.globalInstance - } - - public static version (): string { - return VERSION - } - - public version (): string { - return Brolog.version() - } - - public static enableLogging (printerFunc: boolean | TextPrinterFunction): Brolog { - return Brolog.instance().enableLogging(printerFunc) - } - - public enableLogging (printerFunc: boolean | TextPrinterFunction): Brolog { - this.verbose('Brolog', 'enableLogging(%s)', printerFunc) - - // const loggerMethodList = [ - // 'error', - // 'warn', - // 'info', - // 'verbose', - // 'silly', - // ] - - if (printerFunc === false) { - this.silly('Brolog', 'enableLogging() disabled') - // loggerMethodList.forEach(m => { - // this[m] = nullLogger[m] - // }) - this.textPrinter = function () { /* null logger */ } - - } else if (printerFunc === true) { - this.silly('Brolog', 'enableLogging() enabled: restore Brolog instance') - // const restore = new Brolog() - // loggerMethodList.forEach(m => { - // this[m] = restore[m] - // }) - this.textPrinter = this.defaultTextPrinter - - // } else if (typeof log.verbose === 'function') { - // this.silly('Brolog', 'enableLogging() enabled: using provided logger') - // for (const method of loggerMethodList) { - // this[method] = () => { - // // In order to compatible with winston, - // // we need to change the args from - // // brolog.info('Main', 'Hello %s', 'world') - // // to - // // log.info('Main Hello %s', 'world') - // const argList: string[] = Array.from(arguments) - // if (argList.length > 1) { - // const module = argList.shift() - // argList[0] = `${module} ` + argList[0] - // } - // return Reflect.apply(log[method], log, argList) - // } - // } - - } else if (typeof printerFunc === 'function') { - this.silly('Brolog', 'enableLogging() enabled: using provided log function') - this.textPrinter = function (levelTitle: LogLevelTitle, text: string): void { - printerFunc(levelTitle, text) - } - } else { - throw new Error('got invalid logger') - } - - return this - } - - public static prefix (): RegExp - public static prefix (filter: string | RegExp): void - - public static prefix (filter?: string | RegExp): void | RegExp { - if (filter) { - this.globalPrefix = filter - this.globalInstance?.prefix(filter) - } else { - return this.instance().prefix() - } - } - - public prefix (): RegExp - public prefix (filter: string | RegExp): void - public prefix (filter?: string | RegExp): void | RegExp { - if (filter) { - if (typeof filter === 'string') { - this.prefixFilter = new RegExp('^' + filter + '$') - } else if (filter instanceof RegExp) { - this.prefixFilter = filter - } else { - throw new Error('unsupported prefix filter') - } - } else { - return this.prefixFilter - } - } - - public static level (levelName?: LogLevelName): LogLevelName { - if (levelName) { - this.globalLogLevelName = levelName - } - return this.instance().level(levelName) - } - - public level (levelName?: LogLevelName) { - if (levelName) { - // console.log('levelName: ' + levelName) - // http://stackoverflow.com/a/21294925/1123955 - // XXX: fix the any here? - let logLevel = LogLevel[levelName.toLowerCase() as any] as any as (undefined | LogLevel) - if (logLevel === undefined) { // be aware of number 0 here - log.error('Brolog', 'level(%s) not exist, set to silly.', levelName) - logLevel = LogLevel.silly - } - this.logLevel = logLevel - } - return LogLevel[this.logLevel] as LogLevelName - } - - private log (levelTitle: LogLevelTitle, prefix: string, message: string) { - if (this.prefixFilter && !this.prefixFilter.test(prefix)) { - return // skip message not match prefix filter - } - - const args = Array.prototype.slice.call(arguments, 3) - args.unshift(this.timestamp() + levelTitle + ' ' + prefix + ' ' + (message || '')) - // const args = Array.from(arguments) || [] - // args[0] = this.timestamp() + args[0] - - const text = Reflect.apply(sprintf, null, args) - this.textPrinter(levelTitle, text) - } - - public defaultTextPrinter (levelTitle: LogLevelTitle, text: string): void { - // Use Reflect at: - // https://www.keithcirkel.co.uk/metaprogramming-in-es6-part-2-reflect/ - switch (levelTitle) { - case 'ERR': - // console.error.apply(console, args) - // Reflect.apply(console.error, console, args) - console.error(text) - break - case 'WARN': - // console.warn.apply(console, args) - // Reflect.apply(console.warn, console, args) - console.warn(text) - break - case 'INFO': - // console.info.apply(console, args) - // Reflect.apply(console.info, console, args) - console.info(text) - break - - // eslint-disable-next-line default-case-last - default: - case 'VERB': - case 'SILL': - // console.log.apply(console, args) - // Reflect.apply(console.log, console, args) - console.log(text) - } - - } - - public static error (prefix: string, ...args: any[]): void { - const instance = Brolog.instance() - // return instance.error.apply(instance, arguments) - return Reflect.apply(instance.error, instance, ([] as any).concat(prefix, args)) - } - - public error (prefix: string, ...args: any[]): void { - if (this.logLevel < LogLevel.error) { - return - } - const argList = Array.from([prefix, ...args]) - argList.unshift('ERR') - return Reflect.apply(this.log, this, argList) - } - - public static warn (prefix: string, ...args: any[]): void { - const instance = Brolog.instance() - return Reflect.apply(instance.warn, instance, ([] as any).concat(prefix, args)) - } - - public warn (prefix: string, ...args: any[]): void { - if (this.logLevel < LogLevel.warn) { - return - } - const argList = Array.from([prefix, ...args]) - argList.unshift('WARN') - return Reflect.apply(this.log, this, argList) - } - - public static info (prefix: string, ...args: any[]): void { - const instance = Brolog.instance() - return Reflect.apply(instance.info, instance, ([] as any).concat(prefix, args)) - } - - public info (prefix: string, ...args: any[]): void { - if (this.logLevel < LogLevel.info) { - return - } - const argList = Array.from([prefix, ...args]) - argList.unshift('INFO') - return Reflect.apply(this.log, this, argList) - } - - public static verbose (prefix: string, ...args: any[]): void { - const instance = Brolog.instance() - return Reflect.apply(instance.verbose, instance, ([] as any).concat(prefix, args)) - } - - public verbose (prefix: string, ...args: any[]): void { - if (this.logLevel < LogLevel.verbose) { - return - } - - const argList = Array.from([prefix, ...args]) - argList.unshift('VERB') - return Reflect.apply(this.log, this, argList) - } - - public static silly (prefix: string, ...args: any[]): void { - const instance = Brolog.instance() - return Reflect.apply(instance.silly, instance, ([] as any).concat(prefix, args)) - } - - public silly (prefix: string, ...args: any[]): void { - if (this.logLevel < LogLevel.silly) { - return - } - const argList = Array.from([prefix, ...args]) - argList.unshift('SILL') - return Reflect.apply(this.log, this, argList) - } - - public timestamp (enable: boolean): void - public timestamp (): string - - public timestamp (enable?: boolean): string | void { - if (typeof enable === 'boolean') { - this.enableTimestamp = enable - return - } - - if (!this.enableTimestamp) { - return '' - } - - const date = new Date() - const hour = date.getHours() - const min = date.getMinutes() - const sec = date.getSeconds() - - let stampStr = '' - - stampStr += (hour < 10) ? ('0' + hour) : hour - stampStr += ':' - stampStr += (min < 10) ? ('0' + min) : min - stampStr += ':' - stampStr += (sec < 10) ? ('0' + sec) : sec - - return stampStr + ' ' - } - -} - -// Credit: https://stackoverflow.com/a/4795914/1123955 -function sprintf () { - const args = arguments - const text = args[0] as string - let i = 1 - return text.replace(/%((%)|s|d)/g, function (m) { - // m is the matched format, e.g. %s, %d - let val = null as any - if (m[2]) { - val = m[2] - } else { - val = args[i] - // A switch statement so that the formatter can be extended. Default is %s - switch (m) { - case '%d': - val = Number(val) - /** - * Huan(202111): use Number() to replace parseFloat, - * and keep the `NaN` as a result for easy debugging - * when we use `%d` mistakenly when `%s` should be expected. - */ - // val = parseFloat(val) - // if (isNaN(val)) { - // val = 0 - // } - break - } - i++ - } - return val - }) -} - -export { - VERSION, -} - -const log = Brolog.instance() - -if (BROLOG_LEVEL) { - /** - * set logLevel from: - * 1. process.env['BROLOG_LEVEL'], or - * 2. in URL: `?BROLOG_LEVEL=verbose&...` - */ - if (BROLOG_LEVEL === '*') { - log.level('silly') - } else { - log.level(BROLOG_LEVEL as any) - } -} - -if (BROLOG_PREFIX && BROLOG_PREFIX !== '*') { - log.prefix(BROLOG_PREFIX) -} - -export type { - LogLevelTitle, - Loggable, - LogLevelName, -} -export { - LogLevel, - Brolog, - log, -} diff --git a/WechatBot/node_modules/brolog/src/config.ts b/WechatBot/node_modules/brolog/src/config.ts deleted file mode 100644 index 16d70555a..000000000 --- a/WechatBot/node_modules/brolog/src/config.ts +++ /dev/null @@ -1,60 +0,0 @@ -export { VERSION } from './version.js' - -/** - * BROLOG_LEVEL - */ - -const DEFAULT_LEVEL = 'info' -const BROLOG_LEVEL_VAR_NAME = 'BROLOG_LEVEL' -const BROLOG_PREFIX_VAR_NAME = 'BROLOG_PREFIX' - -let level: undefined | string -let debugModule: undefined | string - -/** - * - * Sometimes there's a `process` in browser (ionic3 & angular5) - * Sometimes there's a window in Node.js (browserify) - * - */ -// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -if (typeof process !== 'undefined' && process['env']) { - /** - * Node.js - */ - if (!level) { - level = process.env[BROLOG_LEVEL_VAR_NAME] - } - if (!debugModule) { - debugModule = process.env[BROLOG_PREFIX_VAR_NAME] - } -} - -// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -if (typeof window !== 'undefined' && typeof window?.location?.search === 'string') { - /** - * Browser - */ - if (!level) { - level = getJsonFromUrl()[BROLOG_LEVEL_VAR_NAME] - } - if (!debugModule) { - debugModule = getJsonFromUrl()[BROLOG_LEVEL_VAR_NAME] - } -} - -function getJsonFromUrl () { - // https://stackoverflow.com/questions/8486099/how-do-i-parse-a-url-query-parameters-in-javascript - const query = location.search.substr(1) - const result = {} as { [idx: string]: string } - query.split('&').forEach(function (part) { - const [key, val] = part.split('=') - if (typeof key !== 'undefined' && typeof val !== 'undefined') { - result[key] = decodeURIComponent(val) - } - }) - return result -} - -export const BROLOG_LEVEL = level || DEFAULT_LEVEL -export const BROLOG_PREFIX = debugModule || '*' diff --git a/WechatBot/node_modules/brolog/src/logger.ts b/WechatBot/node_modules/brolog/src/logger.ts deleted file mode 100644 index 7f0f7d484..000000000 --- a/WechatBot/node_modules/brolog/src/logger.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { nop } from '@pipeletteio/nop' - -interface Logger { - error (moduleName: string, message: string, ...args: any[]): void - warn (moduleName: string, message: string, ...args: any[]): void - info (moduleName: string, message: string, ...args: any[]): void - verbose (moduleName: string, message: string, ...args: any[]): void - silly (moduleName: string, message: string, ...args: any[]): void -} - -const getLogger = (logger?: Logger): Logger => { - if (logger) { - return logger - } - - return { - error : nop, - info : nop, - silly : nop, - verbose : nop, - warn : nop, - } -} - -export type { - Logger as Loggable, // @deprecated: use Logger instead. will be removed after Dec 31, 2022 - Logger, -} -export { - getLogger as getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 - getLogger, -} diff --git a/WechatBot/node_modules/brolog/src/mod.ts b/WechatBot/node_modules/brolog/src/mod.ts deleted file mode 100644 index 2baafa073..000000000 --- a/WechatBot/node_modules/brolog/src/mod.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { - VERSION, -} from './config.js' -import { - Brolog, - log, -} from './brolog.js' -import type { - Loggable, // @deprecated: use Logger instead. will be removed after Dec 31, 2022 - Logger, -} from './logger.js' -import { - getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 - getLogger, -} from './logger.js' - -export type { - Loggable, // @deprecated: use Logger instead. will be removed after Dec 31, 2022 - Logger, -} -export { - VERSION, - Brolog, - getLoggable, // @deprecated: use getLogger instead. will be removed after Dec 31, 2022 - getLogger, - log, -} diff --git a/WechatBot/node_modules/brolog/src/typings.d.ts b/WechatBot/node_modules/brolog/src/typings.d.ts deleted file mode 100644 index 554149e0e..000000000 --- a/WechatBot/node_modules/brolog/src/typings.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -// declare module '*/package.json' { -// export const version: string -// // export default version -// } -declare module 'nop' diff --git a/WechatBot/node_modules/brolog/src/version.spec.ts b/WechatBot/node_modules/brolog/src/version.spec.ts deleted file mode 100644 index f76381467..000000000 --- a/WechatBot/node_modules/brolog/src/version.spec.ts +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env -S node --no-warnings --loader ts-node/esm -/** - * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty - * - * @copyright 2016 Huan LI (李卓桓) , and - * Wechaty Contributors . - * - * 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. - * - */ -import { - VERSION, -} from './version.js' - -import { test } from 'tstest' - -test('Make sure the VERSION is fresh in source code', async t => { - t.equal(VERSION, '0.0.0', 'version should be 0.0.0 in source code, only updated before publish to NPM') -}) diff --git a/WechatBot/node_modules/brolog/src/version.ts b/WechatBot/node_modules/brolog/src/version.ts deleted file mode 100644 index 234c40143..000000000 --- a/WechatBot/node_modules/brolog/src/version.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Wechaty Chatbot SDK - https://github.com/wechaty/wechaty - * - * @copyright 2016 Huan LI (李卓桓) , and - * Wechaty Contributors . - * - * 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. - * - */ - -export const VERSION = '0.0.0' diff --git a/WechatBot/node_modules/buffer-equal/.travis.yml b/WechatBot/node_modules/buffer-equal/.travis.yml deleted file mode 100644 index dad2273c5..000000000 --- a/WechatBot/node_modules/buffer-equal/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -language: node_js -node_js: - - 0.8 - - "0.10" diff --git a/WechatBot/node_modules/buffer-equal/README.markdown b/WechatBot/node_modules/buffer-equal/README.markdown deleted file mode 100644 index 8c062fd0d..000000000 --- a/WechatBot/node_modules/buffer-equal/README.markdown +++ /dev/null @@ -1,62 +0,0 @@ -buffer-equal -============ - -Return whether two buffers are equal. - -[![build status](https://secure.travis-ci.org/substack/node-buffer-equal.png)](http://travis-ci.org/substack/node-buffer-equal) - -example -======= - -``` js -var bufferEqual = require('buffer-equal'); - -console.dir(bufferEqual( - new Buffer([253,254,255]), - new Buffer([253,254,255]) -)); -console.dir(bufferEqual( - new Buffer('abc'), - new Buffer('abcd') -)); -console.dir(bufferEqual( - new Buffer('abc'), - 'abc' -)); -``` - -output: - -``` -true -false -undefined -``` - -methods -======= - -``` js -var bufferEqual = require('buffer-equal') -``` - -bufferEqual(a, b) ------------------ - -Return whether the two buffers `a` and `b` are equal. - -If `a` or `b` is not a buffer, return `undefined`. - -install -======= - -With [npm](http://npmjs.org) do: - -``` -npm install buffer-equal -``` - -license -======= - -MIT diff --git a/WechatBot/node_modules/buffer-equal/example/eq.js b/WechatBot/node_modules/buffer-equal/example/eq.js deleted file mode 100755 index 1eb05095a..000000000 --- a/WechatBot/node_modules/buffer-equal/example/eq.js +++ /dev/null @@ -1,14 +0,0 @@ -var bufferEqual = require('../'); - -console.dir(bufferEqual( - new Buffer([253,254,255]), - new Buffer([253,254,255]) -)); -console.dir(bufferEqual( - new Buffer('abc'), - new Buffer('abcd') -)); -console.dir(bufferEqual( - new Buffer('abc'), - 'abc' -)); diff --git a/WechatBot/node_modules/buffer-equal/index.js b/WechatBot/node_modules/buffer-equal/index.js deleted file mode 100755 index e640d4e22..000000000 --- a/WechatBot/node_modules/buffer-equal/index.js +++ /dev/null @@ -1,14 +0,0 @@ -var Buffer = require('buffer').Buffer; // for use with browserify - -module.exports = function (a, b) { - if (!Buffer.isBuffer(a)) return undefined; - if (!Buffer.isBuffer(b)) return undefined; - if (typeof a.equals === 'function') return a.equals(b); - if (a.length !== b.length) return false; - - for (var i = 0; i < a.length; i++) { - if (a[i] !== b[i]) return false; - } - - return true; -}; diff --git a/WechatBot/node_modules/buffer-equal/package.json b/WechatBot/node_modules/buffer-equal/package.json deleted file mode 100644 index c96f3ef16..000000000 --- a/WechatBot/node_modules/buffer-equal/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name" : "buffer-equal", - "description" : "return whether two buffers are equal", - "version" : "0.0.1", - "repository" : { - "type" : "git", - "url" : "git://github.com/substack/node-buffer-equal.git" - }, - "main" : "index.js", - "keywords" : [ - "buffer", - "equal" - ], - "directories" : { - "example" : "example", - "test" : "test" - }, - "scripts" : { - "test" : "tap test/*.js" - }, - "devDependencies" : { - "tap" : "0.2.4" - }, - "engines" : { - "node" : ">=0.4.0" - }, - "license" : "MIT", - "author" : { - "name" : "James Halliday", - "email" : "mail@substack.net", - "url" : "http://substack.net" - } -} diff --git a/WechatBot/node_modules/buffer-equal/test/eq.js b/WechatBot/node_modules/buffer-equal/test/eq.js deleted file mode 100755 index 3d3400623..000000000 --- a/WechatBot/node_modules/buffer-equal/test/eq.js +++ /dev/null @@ -1,35 +0,0 @@ -var bufferEqual = require('../'); -var test = require('tap').test; - -test('equal', function (t) { - var eq = bufferEqual( - new Buffer([253,254,255]), - new Buffer([253,254,255]) - ); - t.strictEqual(eq, true); - t.end(); -}); - -test('not equal', function (t) { - var eq = bufferEqual( - new Buffer('abc'), - new Buffer('abcd') - ); - t.strictEqual(eq, false); - t.end(); -}); - -test('not equal not buffer', function (t) { - var eq = bufferEqual( - new Buffer('abc'), - 'abc' - ); - t.strictEqual(eq, undefined); - t.end(); -}); - -test('equal not buffer', function (t) { - var eq = bufferEqual('abc', 'abc'); - t.strictEqual(eq, undefined); - t.end(); -}); diff --git a/WechatBot/node_modules/buffer/AUTHORS.md b/WechatBot/node_modules/buffer/AUTHORS.md deleted file mode 100644 index 22eb17129..000000000 --- a/WechatBot/node_modules/buffer/AUTHORS.md +++ /dev/null @@ -1,70 +0,0 @@ -# Authors - -#### Ordered by first contribution. - -- Romain Beauxis (toots@rastageeks.org) -- Tobias Koppers (tobias.koppers@googlemail.com) -- Janus (ysangkok@gmail.com) -- Rainer Dreyer (rdrey1@gmail.com) -- Tõnis Tiigi (tonistiigi@gmail.com) -- James Halliday (mail@substack.net) -- Michael Williamson (mike@zwobble.org) -- elliottcable (github@elliottcable.name) -- rafael (rvalle@livelens.net) -- Andrew Kelley (superjoe30@gmail.com) -- Andreas Madsen (amwebdk@gmail.com) -- Mike Brevoort (mike.brevoort@pearson.com) -- Brian White (mscdex@mscdex.net) -- Feross Aboukhadijeh (feross@feross.org) -- Ruben Verborgh (ruben@verborgh.org) -- eliang (eliang.cs@gmail.com) -- Jesse Tane (jesse.tane@gmail.com) -- Alfonso Boza (alfonso@cloud.com) -- Mathias Buus (mathiasbuus@gmail.com) -- Devon Govett (devongovett@gmail.com) -- Daniel Cousens (github@dcousens.com) -- Joseph Dykstra (josephdykstra@gmail.com) -- Parsha Pourkhomami (parshap+git@gmail.com) -- Damjan Košir (damjan.kosir@gmail.com) -- daverayment (dave.rayment@gmail.com) -- kawanet (u-suke@kawa.net) -- Linus Unnebäck (linus@folkdatorn.se) -- Nolan Lawson (nolan.lawson@gmail.com) -- Calvin Metcalf (calvin.metcalf@gmail.com) -- Koki Takahashi (hakatasiloving@gmail.com) -- Guy Bedford (guybedford@gmail.com) -- Jan Schär (jscissr@gmail.com) -- RaulTsc (tomescu.raul@gmail.com) -- Matthieu Monsch (monsch@alum.mit.edu) -- Dan Ehrenberg (littledan@chromium.org) -- Kirill Fomichev (fanatid@ya.ru) -- Yusuke Kawasaki (u-suke@kawa.net) -- DC (dcposch@dcpos.ch) -- John-David Dalton (john.david.dalton@gmail.com) -- adventure-yunfei (adventure030@gmail.com) -- Emil Bay (github@tixz.dk) -- Sam Sudar (sudar.sam@gmail.com) -- Volker Mische (volker.mische@gmail.com) -- David Walton (support@geekstocks.com) -- Сковорода Никита Андреевич (chalkerx@gmail.com) -- greenkeeper[bot] (greenkeeper[bot]@users.noreply.github.com) -- ukstv (sergey.ukustov@machinomy.com) -- Renée Kooi (renee@kooi.me) -- ranbochen (ranbochen@qq.com) -- Vladimir Borovik (bobahbdb@gmail.com) -- greenkeeper[bot] (23040076+greenkeeper[bot]@users.noreply.github.com) -- kumavis (aaron@kumavis.me) -- Sergey Ukustov (sergey.ukustov@machinomy.com) -- Fei Liu (liu.feiwood@gmail.com) -- Blaine Bublitz (blaine.bublitz@gmail.com) -- clement (clement@seald.io) -- Koushik Dutta (koushd@gmail.com) -- Jordan Harband (ljharb@gmail.com) -- Niklas Mischkulnig (mischnic@users.noreply.github.com) -- Nikolai Vavilov (vvnicholas@gmail.com) -- Fedor Nezhivoi (gyzerok@users.noreply.github.com) -- Peter Newman (peternewman@users.noreply.github.com) -- mathmakgakpak (44949126+mathmakgakpak@users.noreply.github.com) -- jkkang (jkkang@smartauth.kr) - -#### Generated by bin/update-authors.sh. diff --git a/WechatBot/node_modules/buffer/LICENSE b/WechatBot/node_modules/buffer/LICENSE deleted file mode 100644 index d6bf75dcf..000000000 --- a/WechatBot/node_modules/buffer/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Feross Aboukhadijeh, and other contributors. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/WechatBot/node_modules/buffer/README.md b/WechatBot/node_modules/buffer/README.md deleted file mode 100644 index 9a23d7cfa..000000000 --- a/WechatBot/node_modules/buffer/README.md +++ /dev/null @@ -1,410 +0,0 @@ -# buffer [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] - -[travis-image]: https://img.shields.io/travis/feross/buffer/master.svg -[travis-url]: https://travis-ci.org/feross/buffer -[npm-image]: https://img.shields.io/npm/v/buffer.svg -[npm-url]: https://npmjs.org/package/buffer -[downloads-image]: https://img.shields.io/npm/dm/buffer.svg -[downloads-url]: https://npmjs.org/package/buffer -[standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg -[standard-url]: https://standardjs.com - -#### The buffer module from [node.js](https://nodejs.org/), for the browser. - -[![saucelabs][saucelabs-image]][saucelabs-url] - -[saucelabs-image]: https://saucelabs.com/browser-matrix/buffer.svg -[saucelabs-url]: https://saucelabs.com/u/buffer - -With [browserify](http://browserify.org), simply `require('buffer')` or use the `Buffer` global and you will get this module. - -The goal is to provide an API that is 100% identical to -[node's Buffer API](https://nodejs.org/api/buffer.html). Read the -[official docs](https://nodejs.org/api/buffer.html) for the full list of properties, -instance methods, and class methods that are supported. - -## features - -- Manipulate binary data like a boss, in all browsers! -- Super fast. Backed by Typed Arrays (`Uint8Array`/`ArrayBuffer`, not `Object`) -- Extremely small bundle size (**6.75KB minified + gzipped**, 51.9KB with comments) -- Excellent browser support (Chrome, Firefox, Edge, Safari 9+, IE 11, iOS 9+, Android, etc.) -- Preserves Node API exactly, with one minor difference (see below) -- Square-bracket `buf[4]` notation works! -- Does not modify any browser prototypes or put anything on `window` -- Comprehensive test suite (including all buffer tests from node.js core) - -## install - -To use this module directly (without browserify), install it: - -```bash -npm install buffer -``` - -This module was previously called **native-buffer-browserify**, but please use **buffer** -from now on. - -If you do not use a bundler, you can use the [standalone script](https://bundle.run/buffer). - -## usage - -The module's API is identical to node's `Buffer` API. Read the -[official docs](https://nodejs.org/api/buffer.html) for the full list of properties, -instance methods, and class methods that are supported. - -As mentioned above, `require('buffer')` or use the `Buffer` global with -[browserify](http://browserify.org) and this module will automatically be included -in your bundle. Almost any npm module will work in the browser, even if it assumes that -the node `Buffer` API will be available. - -To depend on this module explicitly (without browserify), require it like this: - -```js -var Buffer = require('buffer/').Buffer // note: the trailing slash is important! -``` - -To require this module explicitly, use `require('buffer/')` which tells the node.js module -lookup algorithm (also used by browserify) to use the **npm module** named `buffer` -instead of the **node.js core** module named `buffer`! - - -## how does it work? - -The Buffer constructor returns instances of `Uint8Array` that have their prototype -changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of `Uint8Array`, -so the returned instances will have all the node `Buffer` methods and the -`Uint8Array` methods. Square bracket notation works as expected -- it returns a -single octet. - -The `Uint8Array` prototype remains unmodified. - - -## tracking the latest node api - -This module tracks the Buffer API in the latest (unstable) version of node.js. The Buffer -API is considered **stable** in the -[node stability index](https://nodejs.org/docs/latest/api/documentation.html#documentation_stability_index), -so it is unlikely that there will ever be breaking changes. -Nonetheless, when/if the Buffer API changes in node, this module's API will change -accordingly. - -## related packages - -- [`buffer-reverse`](https://www.npmjs.com/package/buffer-reverse) - Reverse a buffer -- [`buffer-xor`](https://www.npmjs.com/package/buffer-xor) - Bitwise xor a buffer -- [`is-buffer`](https://www.npmjs.com/package/is-buffer) - Determine if an object is a Buffer without including the whole `Buffer` package - -## conversion packages - -### convert typed array to buffer - -Use [`typedarray-to-buffer`](https://www.npmjs.com/package/typedarray-to-buffer) to convert any kind of typed array to a `Buffer`. Does not perform a copy, so it's super fast. - -### convert buffer to typed array - -`Buffer` is a subclass of `Uint8Array` (which is a typed array). So there is no need to explicitly convert to typed array. Just use the buffer as a `Uint8Array`. - -### convert blob to buffer - -Use [`blob-to-buffer`](https://www.npmjs.com/package/blob-to-buffer) to convert a `Blob` to a `Buffer`. - -### convert buffer to blob - -To convert a `Buffer` to a `Blob`, use the `Blob` constructor: - -```js -var blob = new Blob([ buffer ]) -``` - -Optionally, specify a mimetype: - -```js -var blob = new Blob([ buffer ], { type: 'text/html' }) -``` - -### convert arraybuffer to buffer - -To convert an `ArrayBuffer` to a `Buffer`, use the `Buffer.from` function. Does not perform a copy, so it's super fast. - -```js -var buffer = Buffer.from(arrayBuffer) -``` - -### convert buffer to arraybuffer - -To convert a `Buffer` to an `ArrayBuffer`, use the `.buffer` property (which is present on all `Uint8Array` objects): - -```js -var arrayBuffer = buffer.buffer.slice( - buffer.byteOffset, buffer.byteOffset + buffer.byteLength -) -``` - -Alternatively, use the [`to-arraybuffer`](https://www.npmjs.com/package/to-arraybuffer) module. - -## performance - -See perf tests in `/perf`. - -`BrowserBuffer` is the browser `buffer` module (this repo). `Uint8Array` is included as a -sanity check (since `BrowserBuffer` uses `Uint8Array` under the hood, `Uint8Array` will -always be at least a bit faster). Finally, `NodeBuffer` is the node.js buffer module, -which is included to compare against. - -NOTE: Performance has improved since these benchmarks were taken. PR welcome to update the README. - -### Chrome 38 - -| Method | Operations | Accuracy | Sampled | Fastest | -|:-------|:-----------|:---------|:--------|:-------:| -| BrowserBuffer#bracket-notation | 11,457,464 ops/sec | ±0.86% | 66 | ✓ | -| Uint8Array#bracket-notation | 10,824,332 ops/sec | ±0.74% | 65 | | -| | | | | -| BrowserBuffer#concat | 450,532 ops/sec | ±0.76% | 68 | | -| Uint8Array#concat | 1,368,911 ops/sec | ±1.50% | 62 | ✓ | -| | | | | -| BrowserBuffer#copy(16000) | 903,001 ops/sec | ±0.96% | 67 | | -| Uint8Array#copy(16000) | 1,422,441 ops/sec | ±1.04% | 66 | ✓ | -| | | | | -| BrowserBuffer#copy(16) | 11,431,358 ops/sec | ±0.46% | 69 | | -| Uint8Array#copy(16) | 13,944,163 ops/sec | ±1.12% | 68 | ✓ | -| | | | | -| BrowserBuffer#new(16000) | 106,329 ops/sec | ±6.70% | 44 | | -| Uint8Array#new(16000) | 131,001 ops/sec | ±2.85% | 31 | ✓ | -| | | | | -| BrowserBuffer#new(16) | 1,554,491 ops/sec | ±1.60% | 65 | | -| Uint8Array#new(16) | 6,623,930 ops/sec | ±1.66% | 65 | ✓ | -| | | | | -| BrowserBuffer#readDoubleBE | 112,830 ops/sec | ±0.51% | 69 | ✓ | -| DataView#getFloat64 | 93,500 ops/sec | ±0.57% | 68 | | -| | | | | -| BrowserBuffer#readFloatBE | 146,678 ops/sec | ±0.95% | 68 | ✓ | -| DataView#getFloat32 | 99,311 ops/sec | ±0.41% | 67 | | -| | | | | -| BrowserBuffer#readUInt32LE | 843,214 ops/sec | ±0.70% | 69 | ✓ | -| DataView#getUint32 | 103,024 ops/sec | ±0.64% | 67 | | -| | | | | -| BrowserBuffer#slice | 1,013,941 ops/sec | ±0.75% | 67 | | -| Uint8Array#subarray | 1,903,928 ops/sec | ±0.53% | 67 | ✓ | -| | | | | -| BrowserBuffer#writeFloatBE | 61,387 ops/sec | ±0.90% | 67 | | -| DataView#setFloat32 | 141,249 ops/sec | ±0.40% | 66 | ✓ | - - -### Firefox 33 - -| Method | Operations | Accuracy | Sampled | Fastest | -|:-------|:-----------|:---------|:--------|:-------:| -| BrowserBuffer#bracket-notation | 20,800,421 ops/sec | ±1.84% | 60 | | -| Uint8Array#bracket-notation | 20,826,235 ops/sec | ±2.02% | 61 | ✓ | -| | | | | -| BrowserBuffer#concat | 153,076 ops/sec | ±2.32% | 61 | | -| Uint8Array#concat | 1,255,674 ops/sec | ±8.65% | 52 | ✓ | -| | | | | -| BrowserBuffer#copy(16000) | 1,105,312 ops/sec | ±1.16% | 63 | | -| Uint8Array#copy(16000) | 1,615,911 ops/sec | ±0.55% | 66 | ✓ | -| | | | | -| BrowserBuffer#copy(16) | 16,357,599 ops/sec | ±0.73% | 68 | | -| Uint8Array#copy(16) | 31,436,281 ops/sec | ±1.05% | 68 | ✓ | -| | | | | -| BrowserBuffer#new(16000) | 52,995 ops/sec | ±6.01% | 35 | | -| Uint8Array#new(16000) | 87,686 ops/sec | ±5.68% | 45 | ✓ | -| | | | | -| BrowserBuffer#new(16) | 252,031 ops/sec | ±1.61% | 66 | | -| Uint8Array#new(16) | 8,477,026 ops/sec | ±0.49% | 68 | ✓ | -| | | | | -| BrowserBuffer#readDoubleBE | 99,871 ops/sec | ±0.41% | 69 | | -| DataView#getFloat64 | 285,663 ops/sec | ±0.70% | 68 | ✓ | -| | | | | -| BrowserBuffer#readFloatBE | 115,540 ops/sec | ±0.42% | 69 | | -| DataView#getFloat32 | 288,722 ops/sec | ±0.82% | 68 | ✓ | -| | | | | -| BrowserBuffer#readUInt32LE | 633,926 ops/sec | ±1.08% | 67 | ✓ | -| DataView#getUint32 | 294,808 ops/sec | ±0.79% | 64 | | -| | | | | -| BrowserBuffer#slice | 349,425 ops/sec | ±0.46% | 69 | | -| Uint8Array#subarray | 5,965,819 ops/sec | ±0.60% | 65 | ✓ | -| | | | | -| BrowserBuffer#writeFloatBE | 59,980 ops/sec | ±0.41% | 67 | | -| DataView#setFloat32 | 317,634 ops/sec | ±0.63% | 68 | ✓ | - -### Safari 8 - -| Method | Operations | Accuracy | Sampled | Fastest | -|:-------|:-----------|:---------|:--------|:-------:| -| BrowserBuffer#bracket-notation | 10,279,729 ops/sec | ±2.25% | 56 | ✓ | -| Uint8Array#bracket-notation | 10,030,767 ops/sec | ±2.23% | 59 | | -| | | | | -| BrowserBuffer#concat | 144,138 ops/sec | ±1.38% | 65 | | -| Uint8Array#concat | 4,950,764 ops/sec | ±1.70% | 63 | ✓ | -| | | | | -| BrowserBuffer#copy(16000) | 1,058,548 ops/sec | ±1.51% | 64 | | -| Uint8Array#copy(16000) | 1,409,666 ops/sec | ±1.17% | 65 | ✓ | -| | | | | -| BrowserBuffer#copy(16) | 6,282,529 ops/sec | ±1.88% | 58 | | -| Uint8Array#copy(16) | 11,907,128 ops/sec | ±2.87% | 58 | ✓ | -| | | | | -| BrowserBuffer#new(16000) | 101,663 ops/sec | ±3.89% | 57 | | -| Uint8Array#new(16000) | 22,050,818 ops/sec | ±6.51% | 46 | ✓ | -| | | | | -| BrowserBuffer#new(16) | 176,072 ops/sec | ±2.13% | 64 | | -| Uint8Array#new(16) | 24,385,731 ops/sec | ±5.01% | 51 | ✓ | -| | | | | -| BrowserBuffer#readDoubleBE | 41,341 ops/sec | ±1.06% | 67 | | -| DataView#getFloat64 | 322,280 ops/sec | ±0.84% | 68 | ✓ | -| | | | | -| BrowserBuffer#readFloatBE | 46,141 ops/sec | ±1.06% | 65 | | -| DataView#getFloat32 | 337,025 ops/sec | ±0.43% | 69 | ✓ | -| | | | | -| BrowserBuffer#readUInt32LE | 151,551 ops/sec | ±1.02% | 66 | | -| DataView#getUint32 | 308,278 ops/sec | ±0.94% | 67 | ✓ | -| | | | | -| BrowserBuffer#slice | 197,365 ops/sec | ±0.95% | 66 | | -| Uint8Array#subarray | 9,558,024 ops/sec | ±3.08% | 58 | ✓ | -| | | | | -| BrowserBuffer#writeFloatBE | 17,518 ops/sec | ±1.03% | 63 | | -| DataView#setFloat32 | 319,751 ops/sec | ±0.48% | 68 | ✓ | - - -### Node 0.11.14 - -| Method | Operations | Accuracy | Sampled | Fastest | -|:-------|:-----------|:---------|:--------|:-------:| -| BrowserBuffer#bracket-notation | 10,489,828 ops/sec | ±3.25% | 90 | | -| Uint8Array#bracket-notation | 10,534,884 ops/sec | ±0.81% | 92 | ✓ | -| NodeBuffer#bracket-notation | 10,389,910 ops/sec | ±0.97% | 87 | | -| | | | | -| BrowserBuffer#concat | 487,830 ops/sec | ±2.58% | 88 | | -| Uint8Array#concat | 1,814,327 ops/sec | ±1.28% | 88 | ✓ | -| NodeBuffer#concat | 1,636,523 ops/sec | ±1.88% | 73 | | -| | | | | -| BrowserBuffer#copy(16000) | 1,073,665 ops/sec | ±0.77% | 90 | | -| Uint8Array#copy(16000) | 1,348,517 ops/sec | ±0.84% | 89 | ✓ | -| NodeBuffer#copy(16000) | 1,289,533 ops/sec | ±0.82% | 93 | | -| | | | | -| BrowserBuffer#copy(16) | 12,782,706 ops/sec | ±0.74% | 85 | | -| Uint8Array#copy(16) | 14,180,427 ops/sec | ±0.93% | 92 | ✓ | -| NodeBuffer#copy(16) | 11,083,134 ops/sec | ±1.06% | 89 | | -| | | | | -| BrowserBuffer#new(16000) | 141,678 ops/sec | ±3.30% | 67 | | -| Uint8Array#new(16000) | 161,491 ops/sec | ±2.96% | 60 | | -| NodeBuffer#new(16000) | 292,699 ops/sec | ±3.20% | 55 | ✓ | -| | | | | -| BrowserBuffer#new(16) | 1,655,466 ops/sec | ±2.41% | 82 | | -| Uint8Array#new(16) | 14,399,926 ops/sec | ±0.91% | 94 | ✓ | -| NodeBuffer#new(16) | 3,894,696 ops/sec | ±0.88% | 92 | | -| | | | | -| BrowserBuffer#readDoubleBE | 109,582 ops/sec | ±0.75% | 93 | ✓ | -| DataView#getFloat64 | 91,235 ops/sec | ±0.81% | 90 | | -| NodeBuffer#readDoubleBE | 88,593 ops/sec | ±0.96% | 81 | | -| | | | | -| BrowserBuffer#readFloatBE | 139,854 ops/sec | ±1.03% | 85 | ✓ | -| DataView#getFloat32 | 98,744 ops/sec | ±0.80% | 89 | | -| NodeBuffer#readFloatBE | 92,769 ops/sec | ±0.94% | 93 | | -| | | | | -| BrowserBuffer#readUInt32LE | 710,861 ops/sec | ±0.82% | 92 | | -| DataView#getUint32 | 117,893 ops/sec | ±0.84% | 91 | | -| NodeBuffer#readUInt32LE | 851,412 ops/sec | ±0.72% | 93 | ✓ | -| | | | | -| BrowserBuffer#slice | 1,673,877 ops/sec | ±0.73% | 94 | | -| Uint8Array#subarray | 6,919,243 ops/sec | ±0.67% | 90 | ✓ | -| NodeBuffer#slice | 4,617,604 ops/sec | ±0.79% | 93 | | -| | | | | -| BrowserBuffer#writeFloatBE | 66,011 ops/sec | ±0.75% | 93 | | -| DataView#setFloat32 | 127,760 ops/sec | ±0.72% | 93 | ✓ | -| NodeBuffer#writeFloatBE | 103,352 ops/sec | ±0.83% | 93 | | - -### iojs 1.8.1 - -| Method | Operations | Accuracy | Sampled | Fastest | -|:-------|:-----------|:---------|:--------|:-------:| -| BrowserBuffer#bracket-notation | 10,990,488 ops/sec | ±1.11% | 91 | | -| Uint8Array#bracket-notation | 11,268,757 ops/sec | ±0.65% | 97 | | -| NodeBuffer#bracket-notation | 11,353,260 ops/sec | ±0.83% | 94 | ✓ | -| | | | | -| BrowserBuffer#concat | 378,954 ops/sec | ±0.74% | 94 | | -| Uint8Array#concat | 1,358,288 ops/sec | ±0.97% | 87 | | -| NodeBuffer#concat | 1,934,050 ops/sec | ±1.11% | 78 | ✓ | -| | | | | -| BrowserBuffer#copy(16000) | 894,538 ops/sec | ±0.56% | 84 | | -| Uint8Array#copy(16000) | 1,442,656 ops/sec | ±0.71% | 96 | | -| NodeBuffer#copy(16000) | 1,457,898 ops/sec | ±0.53% | 92 | ✓ | -| | | | | -| BrowserBuffer#copy(16) | 12,870,457 ops/sec | ±0.67% | 95 | | -| Uint8Array#copy(16) | 16,643,989 ops/sec | ±0.61% | 93 | ✓ | -| NodeBuffer#copy(16) | 14,885,848 ops/sec | ±0.74% | 94 | | -| | | | | -| BrowserBuffer#new(16000) | 109,264 ops/sec | ±4.21% | 63 | | -| Uint8Array#new(16000) | 138,916 ops/sec | ±1.87% | 61 | | -| NodeBuffer#new(16000) | 281,449 ops/sec | ±3.58% | 51 | ✓ | -| | | | | -| BrowserBuffer#new(16) | 1,362,935 ops/sec | ±0.56% | 99 | | -| Uint8Array#new(16) | 6,193,090 ops/sec | ±0.64% | 95 | ✓ | -| NodeBuffer#new(16) | 4,745,425 ops/sec | ±1.56% | 90 | | -| | | | | -| BrowserBuffer#readDoubleBE | 118,127 ops/sec | ±0.59% | 93 | ✓ | -| DataView#getFloat64 | 107,332 ops/sec | ±0.65% | 91 | | -| NodeBuffer#readDoubleBE | 116,274 ops/sec | ±0.94% | 95 | | -| | | | | -| BrowserBuffer#readFloatBE | 150,326 ops/sec | ±0.58% | 95 | ✓ | -| DataView#getFloat32 | 110,541 ops/sec | ±0.57% | 98 | | -| NodeBuffer#readFloatBE | 121,599 ops/sec | ±0.60% | 87 | | -| | | | | -| BrowserBuffer#readUInt32LE | 814,147 ops/sec | ±0.62% | 93 | | -| DataView#getUint32 | 137,592 ops/sec | ±0.64% | 90 | | -| NodeBuffer#readUInt32LE | 931,650 ops/sec | ±0.71% | 96 | ✓ | -| | | | | -| BrowserBuffer#slice | 878,590 ops/sec | ±0.68% | 93 | | -| Uint8Array#subarray | 2,843,308 ops/sec | ±1.02% | 90 | | -| NodeBuffer#slice | 4,998,316 ops/sec | ±0.68% | 90 | ✓ | -| | | | | -| BrowserBuffer#writeFloatBE | 65,927 ops/sec | ±0.74% | 93 | | -| DataView#setFloat32 | 139,823 ops/sec | ±0.97% | 89 | ✓ | -| NodeBuffer#writeFloatBE | 135,763 ops/sec | ±0.65% | 96 | | -| | | | | - -## Testing the project - -First, install the project: - - npm install - -Then, to run tests in Node.js, run: - - npm run test-node - -To test locally in a browser, you can run: - - npm run test-browser-es5-local # For ES5 browsers that don't support ES6 - npm run test-browser-es6-local # For ES6 compliant browsers - -This will print out a URL that you can then open in a browser to run the tests, using [airtap](https://www.npmjs.com/package/airtap). - -To run automated browser tests using Saucelabs, ensure that your `SAUCE_USERNAME` and `SAUCE_ACCESS_KEY` environment variables are set, then run: - - npm test - -This is what's run in Travis, to check against various browsers. The list of browsers is kept in the `bin/airtap-es5.yml` and `bin/airtap-es6.yml` files. - -## JavaScript Standard Style - -This module uses [JavaScript Standard Style](https://github.com/feross/standard). - -[![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) - -To test that the code conforms to the style, `npm install` and run: - - ./node_modules/.bin/standard - -## credit - -This was originally forked from [buffer-browserify](https://github.com/toots/buffer-browserify). - -## Security Policies and Procedures - -The `buffer` team and community take all security bugs in `buffer` seriously. Please see our [security policies and procedures](https://github.com/feross/security) document to learn how to report issues. - -## license - -MIT. Copyright (C) [Feross Aboukhadijeh](http://feross.org), and other contributors. Originally forked from an MIT-licensed module by Romain Beauxis. diff --git a/WechatBot/node_modules/buffer/index.d.ts b/WechatBot/node_modules/buffer/index.d.ts deleted file mode 100644 index 5d1a804e5..000000000 --- a/WechatBot/node_modules/buffer/index.d.ts +++ /dev/null @@ -1,186 +0,0 @@ -export class Buffer extends Uint8Array { - length: number - write(string: string, offset?: number, length?: number, encoding?: string): number; - toString(encoding?: string, start?: number, end?: number): string; - toJSON(): { type: 'Buffer', data: any[] }; - equals(otherBuffer: Buffer): boolean; - compare(otherBuffer: Buffer, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number; - copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; - slice(start?: number, end?: number): Buffer; - writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; - writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; - writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; - writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number; - readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number; - readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number; - readIntLE(offset: number, byteLength: number, noAssert?: boolean): number; - readIntBE(offset: number, byteLength: number, noAssert?: boolean): number; - readUInt8(offset: number, noAssert?: boolean): number; - readUInt16LE(offset: number, noAssert?: boolean): number; - readUInt16BE(offset: number, noAssert?: boolean): number; - readUInt32LE(offset: number, noAssert?: boolean): number; - readUInt32BE(offset: number, noAssert?: boolean): number; - readInt8(offset: number, noAssert?: boolean): number; - readInt16LE(offset: number, noAssert?: boolean): number; - readInt16BE(offset: number, noAssert?: boolean): number; - readInt32LE(offset: number, noAssert?: boolean): number; - readInt32BE(offset: number, noAssert?: boolean): number; - readFloatLE(offset: number, noAssert?: boolean): number; - readFloatBE(offset: number, noAssert?: boolean): number; - readDoubleLE(offset: number, noAssert?: boolean): number; - readDoubleBE(offset: number, noAssert?: boolean): number; - reverse(): this; - swap16(): Buffer; - swap32(): Buffer; - swap64(): Buffer; - writeUInt8(value: number, offset: number, noAssert?: boolean): number; - writeUInt16LE(value: number, offset: number, noAssert?: boolean): number; - writeUInt16BE(value: number, offset: number, noAssert?: boolean): number; - writeUInt32LE(value: number, offset: number, noAssert?: boolean): number; - writeUInt32BE(value: number, offset: number, noAssert?: boolean): number; - writeInt8(value: number, offset: number, noAssert?: boolean): number; - writeInt16LE(value: number, offset: number, noAssert?: boolean): number; - writeInt16BE(value: number, offset: number, noAssert?: boolean): number; - writeInt32LE(value: number, offset: number, noAssert?: boolean): number; - writeInt32BE(value: number, offset: number, noAssert?: boolean): number; - writeFloatLE(value: number, offset: number, noAssert?: boolean): number; - writeFloatBE(value: number, offset: number, noAssert?: boolean): number; - writeDoubleLE(value: number, offset: number, noAssert?: boolean): number; - writeDoubleBE(value: number, offset: number, noAssert?: boolean): number; - fill(value: any, offset?: number, end?: number): this; - indexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number; - lastIndexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number; - includes(value: string | number | Buffer, byteOffset?: number, encoding?: string): boolean; - - /** - * Allocates a new buffer containing the given {str}. - * - * @param str String to store in buffer. - * @param encoding encoding to use, optional. Default is 'utf8' - */ - constructor (str: string, encoding?: string); - /** - * Allocates a new buffer of {size} octets. - * - * @param size count of octets to allocate. - */ - constructor (size: number); - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - */ - constructor (array: Uint8Array); - /** - * Produces a Buffer backed by the same allocated memory as - * the given {ArrayBuffer}. - * - * - * @param arrayBuffer The ArrayBuffer with which to share memory. - */ - constructor (arrayBuffer: ArrayBuffer); - /** - * Allocates a new buffer containing the given {array} of octets. - * - * @param array The octets to store. - */ - constructor (array: any[]); - /** - * Copies the passed {buffer} data onto a new {Buffer} instance. - * - * @param buffer The buffer to copy. - */ - constructor (buffer: Buffer); - prototype: Buffer; - /** - * Allocates a new Buffer using an {array} of octets. - * - * @param array - */ - static from(array: any[]): Buffer; - /** - * When passed a reference to the .buffer property of a TypedArray instance, - * the newly created Buffer will share the same allocated memory as the TypedArray. - * The optional {byteOffset} and {length} arguments specify a memory range - * within the {arrayBuffer} that will be shared by the Buffer. - * - * @param arrayBuffer The .buffer property of a TypedArray or a new ArrayBuffer() - * @param byteOffset - * @param length - */ - static from(arrayBuffer: ArrayBuffer, byteOffset?: number, length?: number): Buffer; - /** - * Copies the passed {buffer} data onto a new Buffer instance. - * - * @param buffer - */ - static from(buffer: Buffer | Uint8Array): Buffer; - /** - * Creates a new Buffer containing the given JavaScript string {str}. - * If provided, the {encoding} parameter identifies the character encoding. - * If not provided, {encoding} defaults to 'utf8'. - * - * @param str - */ - static from(str: string, encoding?: string): Buffer; - /** - * Returns true if {obj} is a Buffer - * - * @param obj object to test. - */ - static isBuffer(obj: any): obj is Buffer; - /** - * Returns true if {encoding} is a valid encoding argument. - * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex' - * - * @param encoding string to test. - */ - static isEncoding(encoding: string): boolean; - /** - * Gives the actual byte length of a string. encoding defaults to 'utf8'. - * This is not the same as String.prototype.length since that returns the number of characters in a string. - * - * @param string string to test. - * @param encoding encoding used to evaluate (defaults to 'utf8') - */ - static byteLength(string: string, encoding?: string): number; - /** - * Returns a buffer which is the result of concatenating all the buffers in the list together. - * - * If the list has no items, or if the totalLength is 0, then it returns a zero-length buffer. - * If the list has exactly one item, then the first item of the list is returned. - * If the list has more than one item, then a new Buffer is created. - * - * @param list An array of Buffer objects to concatenate - * @param totalLength Total length of the buffers when concatenated. - * If totalLength is not provided, it is read from the buffers in the list. However, this adds an additional loop to the function, so it is faster to provide the length explicitly. - */ - static concat(list: Buffer[], totalLength?: number): Buffer; - /** - * The same as buf1.compare(buf2). - */ - static compare(buf1: Buffer, buf2: Buffer): number; - /** - * Allocates a new buffer of {size} octets. - * - * @param size count of octets to allocate. - * @param fill if specified, buffer will be initialized by calling buf.fill(fill). - * If parameter is omitted, buffer will be filled with zeros. - * @param encoding encoding used for call to buf.fill while initializing - */ - static alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer; - /** - * Allocates a new buffer of {size} octets, leaving memory not initialized, so the contents - * of the newly created Buffer are unknown and may contain sensitive data. - * - * @param size count of octets to allocate - */ - static allocUnsafe(size: number): Buffer; - /** - * Allocates a new non-pooled buffer of {size} octets, leaving memory not initialized, so the contents - * of the newly created Buffer are unknown and may contain sensitive data. - * - * @param size count of octets to allocate - */ - static allocUnsafeSlow(size: number): Buffer; -} diff --git a/WechatBot/node_modules/buffer/index.js b/WechatBot/node_modules/buffer/index.js deleted file mode 100755 index 609cf3113..000000000 --- a/WechatBot/node_modules/buffer/index.js +++ /dev/null @@ -1,1817 +0,0 @@ -/*! - * The buffer module from node.js, for the browser. - * - * @author Feross Aboukhadijeh - * @license MIT - */ -/* eslint-disable no-proto */ - -'use strict' - -var base64 = require('base64-js') -var ieee754 = require('ieee754') -var customInspectSymbol = - (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation - ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation - : null - -exports.Buffer = Buffer -exports.SlowBuffer = SlowBuffer -exports.INSPECT_MAX_BYTES = 50 - -var K_MAX_LENGTH = 0x7fffffff -exports.kMaxLength = K_MAX_LENGTH - -/** - * If `Buffer.TYPED_ARRAY_SUPPORT`: - * === true Use Uint8Array implementation (fastest) - * === false Print warning and recommend using `buffer` v4.x which has an Object - * implementation (most compatible, even IE6) - * - * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, - * Opera 11.6+, iOS 4.2+. - * - * We report that the browser does not support typed arrays if the are not subclassable - * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array` - * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support - * for __proto__ and has a buggy typed array implementation. - */ -Buffer.TYPED_ARRAY_SUPPORT = typedArraySupport() - -if (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' && - typeof console.error === 'function') { - console.error( - 'This browser lacks typed array (Uint8Array) support which is required by ' + - '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.' - ) -} - -function typedArraySupport () { - // Can typed array instances can be augmented? - try { - var arr = new Uint8Array(1) - var proto = { foo: function () { return 42 } } - Object.setPrototypeOf(proto, Uint8Array.prototype) - Object.setPrototypeOf(arr, proto) - return arr.foo() === 42 - } catch (e) { - return false - } -} - -Object.defineProperty(Buffer.prototype, 'parent', { - enumerable: true, - get: function () { - if (!Buffer.isBuffer(this)) return undefined - return this.buffer - } -}) - -Object.defineProperty(Buffer.prototype, 'offset', { - enumerable: true, - get: function () { - if (!Buffer.isBuffer(this)) return undefined - return this.byteOffset - } -}) - -function createBuffer (length) { - if (length > K_MAX_LENGTH) { - throw new RangeError('The value "' + length + '" is invalid for option "size"') - } - // Return an augmented `Uint8Array` instance - var buf = new Uint8Array(length) - Object.setPrototypeOf(buf, Buffer.prototype) - return buf -} - -/** - * The Buffer constructor returns instances of `Uint8Array` that have their - * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of - * `Uint8Array`, so the returned instances will have all the node `Buffer` methods - * and the `Uint8Array` methods. Square bracket notation works as expected -- it - * returns a single octet. - * - * The `Uint8Array` prototype remains unmodified. - */ - -function Buffer (arg, encodingOrOffset, length) { - // Common case. - if (typeof arg === 'number') { - if (typeof encodingOrOffset === 'string') { - throw new TypeError( - 'The "string" argument must be of type string. Received type number' - ) - } - return allocUnsafe(arg) - } - return from(arg, encodingOrOffset, length) -} - -Buffer.poolSize = 8192 // not used by this implementation - -function from (value, encodingOrOffset, length) { - if (typeof value === 'string') { - return fromString(value, encodingOrOffset) - } - - if (ArrayBuffer.isView(value)) { - return fromArrayView(value) - } - - if (value == null) { - throw new TypeError( - 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + - 'or Array-like Object. Received type ' + (typeof value) - ) - } - - if (isInstance(value, ArrayBuffer) || - (value && isInstance(value.buffer, ArrayBuffer))) { - return fromArrayBuffer(value, encodingOrOffset, length) - } - - if (typeof SharedArrayBuffer !== 'undefined' && - (isInstance(value, SharedArrayBuffer) || - (value && isInstance(value.buffer, SharedArrayBuffer)))) { - return fromArrayBuffer(value, encodingOrOffset, length) - } - - if (typeof value === 'number') { - throw new TypeError( - 'The "value" argument must not be of type number. Received type number' - ) - } - - var valueOf = value.valueOf && value.valueOf() - if (valueOf != null && valueOf !== value) { - return Buffer.from(valueOf, encodingOrOffset, length) - } - - var b = fromObject(value) - if (b) return b - - if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null && - typeof value[Symbol.toPrimitive] === 'function') { - return Buffer.from( - value[Symbol.toPrimitive]('string'), encodingOrOffset, length - ) - } - - throw new TypeError( - 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + - 'or Array-like Object. Received type ' + (typeof value) - ) -} - -/** - * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError - * if value is a number. - * Buffer.from(str[, encoding]) - * Buffer.from(array) - * Buffer.from(buffer) - * Buffer.from(arrayBuffer[, byteOffset[, length]]) - **/ -Buffer.from = function (value, encodingOrOffset, length) { - return from(value, encodingOrOffset, length) -} - -// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug: -// https://github.com/feross/buffer/pull/148 -Object.setPrototypeOf(Buffer.prototype, Uint8Array.prototype) -Object.setPrototypeOf(Buffer, Uint8Array) - -function assertSize (size) { - if (typeof size !== 'number') { - throw new TypeError('"size" argument must be of type number') - } else if (size < 0) { - throw new RangeError('The value "' + size + '" is invalid for option "size"') - } -} - -function alloc (size, fill, encoding) { - assertSize(size) - if (size <= 0) { - return createBuffer(size) - } - if (fill !== undefined) { - // Only pay attention to encoding if it's a string. This - // prevents accidentally sending in a number that would - // be interpreted as a start offset. - return typeof encoding === 'string' - ? createBuffer(size).fill(fill, encoding) - : createBuffer(size).fill(fill) - } - return createBuffer(size) -} - -/** - * Creates a new filled Buffer instance. - * alloc(size[, fill[, encoding]]) - **/ -Buffer.alloc = function (size, fill, encoding) { - return alloc(size, fill, encoding) -} - -function allocUnsafe (size) { - assertSize(size) - return createBuffer(size < 0 ? 0 : checked(size) | 0) -} - -/** - * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance. - * */ -Buffer.allocUnsafe = function (size) { - return allocUnsafe(size) -} -/** - * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance. - */ -Buffer.allocUnsafeSlow = function (size) { - return allocUnsafe(size) -} - -function fromString (string, encoding) { - if (typeof encoding !== 'string' || encoding === '') { - encoding = 'utf8' - } - - if (!Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding) - } - - var length = byteLength(string, encoding) | 0 - var buf = createBuffer(length) - - var actual = buf.write(string, encoding) - - if (actual !== length) { - // Writing a hex string, for example, that contains invalid characters will - // cause everything after the first invalid character to be ignored. (e.g. - // 'abxxcd' will be treated as 'ab') - buf = buf.slice(0, actual) - } - - return buf -} - -function fromArrayLike (array) { - var length = array.length < 0 ? 0 : checked(array.length) | 0 - var buf = createBuffer(length) - for (var i = 0; i < length; i += 1) { - buf[i] = array[i] & 255 - } - return buf -} - -function fromArrayView (arrayView) { - if (isInstance(arrayView, Uint8Array)) { - var copy = new Uint8Array(arrayView) - return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength) - } - return fromArrayLike(arrayView) -} - -function fromArrayBuffer (array, byteOffset, length) { - if (byteOffset < 0 || array.byteLength < byteOffset) { - throw new RangeError('"offset" is outside of buffer bounds') - } - - if (array.byteLength < byteOffset + (length || 0)) { - throw new RangeError('"length" is outside of buffer bounds') - } - - var buf - if (byteOffset === undefined && length === undefined) { - buf = new Uint8Array(array) - } else if (length === undefined) { - buf = new Uint8Array(array, byteOffset) - } else { - buf = new Uint8Array(array, byteOffset, length) - } - - // Return an augmented `Uint8Array` instance - Object.setPrototypeOf(buf, Buffer.prototype) - - return buf -} - -function fromObject (obj) { - if (Buffer.isBuffer(obj)) { - var len = checked(obj.length) | 0 - var buf = createBuffer(len) - - if (buf.length === 0) { - return buf - } - - obj.copy(buf, 0, 0, len) - return buf - } - - if (obj.length !== undefined) { - if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) { - return createBuffer(0) - } - return fromArrayLike(obj) - } - - if (obj.type === 'Buffer' && Array.isArray(obj.data)) { - return fromArrayLike(obj.data) - } -} - -function checked (length) { - // Note: cannot use `length < K_MAX_LENGTH` here because that fails when - // length is NaN (which is otherwise coerced to zero.) - if (length >= K_MAX_LENGTH) { - throw new RangeError('Attempt to allocate Buffer larger than maximum ' + - 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes') - } - return length | 0 -} - -function SlowBuffer (length) { - if (+length != length) { // eslint-disable-line eqeqeq - length = 0 - } - return Buffer.alloc(+length) -} - -Buffer.isBuffer = function isBuffer (b) { - return b != null && b._isBuffer === true && - b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false -} - -Buffer.compare = function compare (a, b) { - if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength) - if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength) - if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { - throw new TypeError( - 'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array' - ) - } - - if (a === b) return 0 - - var x = a.length - var y = b.length - - for (var i = 0, len = Math.min(x, y); i < len; ++i) { - if (a[i] !== b[i]) { - x = a[i] - y = b[i] - break - } - } - - if (x < y) return -1 - if (y < x) return 1 - return 0 -} - -Buffer.isEncoding = function isEncoding (encoding) { - switch (String(encoding).toLowerCase()) { - case 'hex': - case 'utf8': - case 'utf-8': - case 'ascii': - case 'latin1': - case 'binary': - case 'base64': - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return true - default: - return false - } -} - -Buffer.concat = function concat (list, length) { - if (!Array.isArray(list)) { - throw new TypeError('"list" argument must be an Array of Buffers') - } - - if (list.length === 0) { - return Buffer.alloc(0) - } - - var i - if (length === undefined) { - length = 0 - for (i = 0; i < list.length; ++i) { - length += list[i].length - } - } - - var buffer = Buffer.allocUnsafe(length) - var pos = 0 - for (i = 0; i < list.length; ++i) { - var buf = list[i] - if (isInstance(buf, Uint8Array)) { - if (pos + buf.length > buffer.length) { - Buffer.from(buf).copy(buffer, pos) - } else { - Uint8Array.prototype.set.call( - buffer, - buf, - pos - ) - } - } else if (!Buffer.isBuffer(buf)) { - throw new TypeError('"list" argument must be an Array of Buffers') - } else { - buf.copy(buffer, pos) - } - pos += buf.length - } - return buffer -} - -function byteLength (string, encoding) { - if (Buffer.isBuffer(string)) { - return string.length - } - if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) { - return string.byteLength - } - if (typeof string !== 'string') { - throw new TypeError( - 'The "string" argument must be one of type string, Buffer, or ArrayBuffer. ' + - 'Received type ' + typeof string - ) - } - - var len = string.length - var mustMatch = (arguments.length > 2 && arguments[2] === true) - if (!mustMatch && len === 0) return 0 - - // Use a for loop to avoid recursion - var loweredCase = false - for (;;) { - switch (encoding) { - case 'ascii': - case 'latin1': - case 'binary': - return len - case 'utf8': - case 'utf-8': - return utf8ToBytes(string).length - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return len * 2 - case 'hex': - return len >>> 1 - case 'base64': - return base64ToBytes(string).length - default: - if (loweredCase) { - return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8 - } - encoding = ('' + encoding).toLowerCase() - loweredCase = true - } - } -} -Buffer.byteLength = byteLength - -function slowToString (encoding, start, end) { - var loweredCase = false - - // No need to verify that "this.length <= MAX_UINT32" since it's a read-only - // property of a typed array. - - // This behaves neither like String nor Uint8Array in that we set start/end - // to their upper/lower bounds if the value passed is out of range. - // undefined is handled specially as per ECMA-262 6th Edition, - // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization. - if (start === undefined || start < 0) { - start = 0 - } - // Return early if start > this.length. Done here to prevent potential uint32 - // coercion fail below. - if (start > this.length) { - return '' - } - - if (end === undefined || end > this.length) { - end = this.length - } - - if (end <= 0) { - return '' - } - - // Force coercion to uint32. This will also coerce falsey/NaN values to 0. - end >>>= 0 - start >>>= 0 - - if (end <= start) { - return '' - } - - if (!encoding) encoding = 'utf8' - - while (true) { - switch (encoding) { - case 'hex': - return hexSlice(this, start, end) - - case 'utf8': - case 'utf-8': - return utf8Slice(this, start, end) - - case 'ascii': - return asciiSlice(this, start, end) - - case 'latin1': - case 'binary': - return latin1Slice(this, start, end) - - case 'base64': - return base64Slice(this, start, end) - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return utf16leSlice(this, start, end) - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = (encoding + '').toLowerCase() - loweredCase = true - } - } -} - -// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package) -// to detect a Buffer instance. It's not possible to use `instanceof Buffer` -// reliably in a browserify context because there could be multiple different -// copies of the 'buffer' package in use. This method works even for Buffer -// instances that were created from another copy of the `buffer` package. -// See: https://github.com/feross/buffer/issues/154 -Buffer.prototype._isBuffer = true - -function swap (b, n, m) { - var i = b[n] - b[n] = b[m] - b[m] = i -} - -Buffer.prototype.swap16 = function swap16 () { - var len = this.length - if (len % 2 !== 0) { - throw new RangeError('Buffer size must be a multiple of 16-bits') - } - for (var i = 0; i < len; i += 2) { - swap(this, i, i + 1) - } - return this -} - -Buffer.prototype.swap32 = function swap32 () { - var len = this.length - if (len % 4 !== 0) { - throw new RangeError('Buffer size must be a multiple of 32-bits') - } - for (var i = 0; i < len; i += 4) { - swap(this, i, i + 3) - swap(this, i + 1, i + 2) - } - return this -} - -Buffer.prototype.swap64 = function swap64 () { - var len = this.length - if (len % 8 !== 0) { - throw new RangeError('Buffer size must be a multiple of 64-bits') - } - for (var i = 0; i < len; i += 8) { - swap(this, i, i + 7) - swap(this, i + 1, i + 6) - swap(this, i + 2, i + 5) - swap(this, i + 3, i + 4) - } - return this -} - -Buffer.prototype.toString = function toString () { - var length = this.length - if (length === 0) return '' - if (arguments.length === 0) return utf8Slice(this, 0, length) - return slowToString.apply(this, arguments) -} - -Buffer.prototype.toLocaleString = Buffer.prototype.toString - -Buffer.prototype.equals = function equals (b) { - if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer') - if (this === b) return true - return Buffer.compare(this, b) === 0 -} - -Buffer.prototype.inspect = function inspect () { - var str = '' - var max = exports.INSPECT_MAX_BYTES - str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim() - if (this.length > max) str += ' ... ' - return '' -} -if (customInspectSymbol) { - Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect -} - -Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) { - if (isInstance(target, Uint8Array)) { - target = Buffer.from(target, target.offset, target.byteLength) - } - if (!Buffer.isBuffer(target)) { - throw new TypeError( - 'The "target" argument must be one of type Buffer or Uint8Array. ' + - 'Received type ' + (typeof target) - ) - } - - if (start === undefined) { - start = 0 - } - if (end === undefined) { - end = target ? target.length : 0 - } - if (thisStart === undefined) { - thisStart = 0 - } - if (thisEnd === undefined) { - thisEnd = this.length - } - - if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) { - throw new RangeError('out of range index') - } - - if (thisStart >= thisEnd && start >= end) { - return 0 - } - if (thisStart >= thisEnd) { - return -1 - } - if (start >= end) { - return 1 - } - - start >>>= 0 - end >>>= 0 - thisStart >>>= 0 - thisEnd >>>= 0 - - if (this === target) return 0 - - var x = thisEnd - thisStart - var y = end - start - var len = Math.min(x, y) - - var thisCopy = this.slice(thisStart, thisEnd) - var targetCopy = target.slice(start, end) - - for (var i = 0; i < len; ++i) { - if (thisCopy[i] !== targetCopy[i]) { - x = thisCopy[i] - y = targetCopy[i] - break - } - } - - if (x < y) return -1 - if (y < x) return 1 - return 0 -} - -// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`, -// OR the last index of `val` in `buffer` at offset <= `byteOffset`. -// -// Arguments: -// - buffer - a Buffer to search -// - val - a string, Buffer, or number -// - byteOffset - an index into `buffer`; will be clamped to an int32 -// - encoding - an optional encoding, relevant is val is a string -// - dir - true for indexOf, false for lastIndexOf -function bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) { - // Empty buffer means no match - if (buffer.length === 0) return -1 - - // Normalize byteOffset - if (typeof byteOffset === 'string') { - encoding = byteOffset - byteOffset = 0 - } else if (byteOffset > 0x7fffffff) { - byteOffset = 0x7fffffff - } else if (byteOffset < -0x80000000) { - byteOffset = -0x80000000 - } - byteOffset = +byteOffset // Coerce to Number. - if (numberIsNaN(byteOffset)) { - // byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer - byteOffset = dir ? 0 : (buffer.length - 1) - } - - // Normalize byteOffset: negative offsets start from the end of the buffer - if (byteOffset < 0) byteOffset = buffer.length + byteOffset - if (byteOffset >= buffer.length) { - if (dir) return -1 - else byteOffset = buffer.length - 1 - } else if (byteOffset < 0) { - if (dir) byteOffset = 0 - else return -1 - } - - // Normalize val - if (typeof val === 'string') { - val = Buffer.from(val, encoding) - } - - // Finally, search either indexOf (if dir is true) or lastIndexOf - if (Buffer.isBuffer(val)) { - // Special case: looking for empty string/buffer always fails - if (val.length === 0) { - return -1 - } - return arrayIndexOf(buffer, val, byteOffset, encoding, dir) - } else if (typeof val === 'number') { - val = val & 0xFF // Search for a byte value [0-255] - if (typeof Uint8Array.prototype.indexOf === 'function') { - if (dir) { - return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset) - } else { - return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset) - } - } - return arrayIndexOf(buffer, [val], byteOffset, encoding, dir) - } - - throw new TypeError('val must be string, number or Buffer') -} - -function arrayIndexOf (arr, val, byteOffset, encoding, dir) { - var indexSize = 1 - var arrLength = arr.length - var valLength = val.length - - if (encoding !== undefined) { - encoding = String(encoding).toLowerCase() - if (encoding === 'ucs2' || encoding === 'ucs-2' || - encoding === 'utf16le' || encoding === 'utf-16le') { - if (arr.length < 2 || val.length < 2) { - return -1 - } - indexSize = 2 - arrLength /= 2 - valLength /= 2 - byteOffset /= 2 - } - } - - function read (buf, i) { - if (indexSize === 1) { - return buf[i] - } else { - return buf.readUInt16BE(i * indexSize) - } - } - - var i - if (dir) { - var foundIndex = -1 - for (i = byteOffset; i < arrLength; i++) { - if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) { - if (foundIndex === -1) foundIndex = i - if (i - foundIndex + 1 === valLength) return foundIndex * indexSize - } else { - if (foundIndex !== -1) i -= i - foundIndex - foundIndex = -1 - } - } - } else { - if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength - for (i = byteOffset; i >= 0; i--) { - var found = true - for (var j = 0; j < valLength; j++) { - if (read(arr, i + j) !== read(val, j)) { - found = false - break - } - } - if (found) return i - } - } - - return -1 -} - -Buffer.prototype.includes = function includes (val, byteOffset, encoding) { - return this.indexOf(val, byteOffset, encoding) !== -1 -} - -Buffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, true) -} - -Buffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) { - return bidirectionalIndexOf(this, val, byteOffset, encoding, false) -} - -function hexWrite (buf, string, offset, length) { - offset = Number(offset) || 0 - var remaining = buf.length - offset - if (!length) { - length = remaining - } else { - length = Number(length) - if (length > remaining) { - length = remaining - } - } - - var strLen = string.length - - if (length > strLen / 2) { - length = strLen / 2 - } - for (var i = 0; i < length; ++i) { - var parsed = parseInt(string.substr(i * 2, 2), 16) - if (numberIsNaN(parsed)) return i - buf[offset + i] = parsed - } - return i -} - -function utf8Write (buf, string, offset, length) { - return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length) -} - -function asciiWrite (buf, string, offset, length) { - return blitBuffer(asciiToBytes(string), buf, offset, length) -} - -function base64Write (buf, string, offset, length) { - return blitBuffer(base64ToBytes(string), buf, offset, length) -} - -function ucs2Write (buf, string, offset, length) { - return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length) -} - -Buffer.prototype.write = function write (string, offset, length, encoding) { - // Buffer#write(string) - if (offset === undefined) { - encoding = 'utf8' - length = this.length - offset = 0 - // Buffer#write(string, encoding) - } else if (length === undefined && typeof offset === 'string') { - encoding = offset - length = this.length - offset = 0 - // Buffer#write(string, offset[, length][, encoding]) - } else if (isFinite(offset)) { - offset = offset >>> 0 - if (isFinite(length)) { - length = length >>> 0 - if (encoding === undefined) encoding = 'utf8' - } else { - encoding = length - length = undefined - } - } else { - throw new Error( - 'Buffer.write(string, encoding, offset[, length]) is no longer supported' - ) - } - - var remaining = this.length - offset - if (length === undefined || length > remaining) length = remaining - - if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) { - throw new RangeError('Attempt to write outside buffer bounds') - } - - if (!encoding) encoding = 'utf8' - - var loweredCase = false - for (;;) { - switch (encoding) { - case 'hex': - return hexWrite(this, string, offset, length) - - case 'utf8': - case 'utf-8': - return utf8Write(this, string, offset, length) - - case 'ascii': - case 'latin1': - case 'binary': - return asciiWrite(this, string, offset, length) - - case 'base64': - // Warning: maxLength not taken into account in base64Write - return base64Write(this, string, offset, length) - - case 'ucs2': - case 'ucs-2': - case 'utf16le': - case 'utf-16le': - return ucs2Write(this, string, offset, length) - - default: - if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding) - encoding = ('' + encoding).toLowerCase() - loweredCase = true - } - } -} - -Buffer.prototype.toJSON = function toJSON () { - return { - type: 'Buffer', - data: Array.prototype.slice.call(this._arr || this, 0) - } -} - -function base64Slice (buf, start, end) { - if (start === 0 && end === buf.length) { - return base64.fromByteArray(buf) - } else { - return base64.fromByteArray(buf.slice(start, end)) - } -} - -function utf8Slice (buf, start, end) { - end = Math.min(buf.length, end) - var res = [] - - var i = start - while (i < end) { - var firstByte = buf[i] - var codePoint = null - var bytesPerSequence = (firstByte > 0xEF) - ? 4 - : (firstByte > 0xDF) - ? 3 - : (firstByte > 0xBF) - ? 2 - : 1 - - if (i + bytesPerSequence <= end) { - var secondByte, thirdByte, fourthByte, tempCodePoint - - switch (bytesPerSequence) { - case 1: - if (firstByte < 0x80) { - codePoint = firstByte - } - break - case 2: - secondByte = buf[i + 1] - if ((secondByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F) - if (tempCodePoint > 0x7F) { - codePoint = tempCodePoint - } - } - break - case 3: - secondByte = buf[i + 1] - thirdByte = buf[i + 2] - if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F) - if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) { - codePoint = tempCodePoint - } - } - break - case 4: - secondByte = buf[i + 1] - thirdByte = buf[i + 2] - fourthByte = buf[i + 3] - if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) { - tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F) - if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) { - codePoint = tempCodePoint - } - } - } - } - - if (codePoint === null) { - // we did not generate a valid codePoint so insert a - // replacement char (U+FFFD) and advance only 1 byte - codePoint = 0xFFFD - bytesPerSequence = 1 - } else if (codePoint > 0xFFFF) { - // encode to utf16 (surrogate pair dance) - codePoint -= 0x10000 - res.push(codePoint >>> 10 & 0x3FF | 0xD800) - codePoint = 0xDC00 | codePoint & 0x3FF - } - - res.push(codePoint) - i += bytesPerSequence - } - - return decodeCodePointsArray(res) -} - -// Based on http://stackoverflow.com/a/22747272/680742, the browser with -// the lowest limit is Chrome, with 0x10000 args. -// We go 1 magnitude less, for safety -var MAX_ARGUMENTS_LENGTH = 0x1000 - -function decodeCodePointsArray (codePoints) { - var len = codePoints.length - if (len <= MAX_ARGUMENTS_LENGTH) { - return String.fromCharCode.apply(String, codePoints) // avoid extra slice() - } - - // Decode in chunks to avoid "call stack size exceeded". - var res = '' - var i = 0 - while (i < len) { - res += String.fromCharCode.apply( - String, - codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH) - ) - } - return res -} - -function asciiSlice (buf, start, end) { - var ret = '' - end = Math.min(buf.length, end) - - for (var i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i] & 0x7F) - } - return ret -} - -function latin1Slice (buf, start, end) { - var ret = '' - end = Math.min(buf.length, end) - - for (var i = start; i < end; ++i) { - ret += String.fromCharCode(buf[i]) - } - return ret -} - -function hexSlice (buf, start, end) { - var len = buf.length - - if (!start || start < 0) start = 0 - if (!end || end < 0 || end > len) end = len - - var out = '' - for (var i = start; i < end; ++i) { - out += hexSliceLookupTable[buf[i]] - } - return out -} - -function utf16leSlice (buf, start, end) { - var bytes = buf.slice(start, end) - var res = '' - // If bytes.length is odd, the last 8 bits must be ignored (same as node.js) - for (var i = 0; i < bytes.length - 1; i += 2) { - res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256)) - } - return res -} - -Buffer.prototype.slice = function slice (start, end) { - var len = this.length - start = ~~start - end = end === undefined ? len : ~~end - - if (start < 0) { - start += len - if (start < 0) start = 0 - } else if (start > len) { - start = len - } - - if (end < 0) { - end += len - if (end < 0) end = 0 - } else if (end > len) { - end = len - } - - if (end < start) end = start - - var newBuf = this.subarray(start, end) - // Return an augmented `Uint8Array` instance - Object.setPrototypeOf(newBuf, Buffer.prototype) - - return newBuf -} - -/* - * Need to make sure that buffer isn't trying to write out of bounds. - */ -function checkOffset (offset, ext, length) { - if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint') - if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length') -} - -Buffer.prototype.readUintLE = -Buffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) { - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) - - var val = this[offset] - var mul = 1 - var i = 0 - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul - } - - return val -} - -Buffer.prototype.readUintBE = -Buffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) { - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) { - checkOffset(offset, byteLength, this.length) - } - - var val = this[offset + --byteLength] - var mul = 1 - while (byteLength > 0 && (mul *= 0x100)) { - val += this[offset + --byteLength] * mul - } - - return val -} - -Buffer.prototype.readUint8 = -Buffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 1, this.length) - return this[offset] -} - -Buffer.prototype.readUint16LE = -Buffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 2, this.length) - return this[offset] | (this[offset + 1] << 8) -} - -Buffer.prototype.readUint16BE = -Buffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 2, this.length) - return (this[offset] << 8) | this[offset + 1] -} - -Buffer.prototype.readUint32LE = -Buffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - - return ((this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16)) + - (this[offset + 3] * 0x1000000) -} - -Buffer.prototype.readUint32BE = -Buffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - - return (this[offset] * 0x1000000) + - ((this[offset + 1] << 16) | - (this[offset + 2] << 8) | - this[offset + 3]) -} - -Buffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) { - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) - - var val = this[offset] - var mul = 1 - var i = 0 - while (++i < byteLength && (mul *= 0x100)) { - val += this[offset + i] * mul - } - mul *= 0x80 - - if (val >= mul) val -= Math.pow(2, 8 * byteLength) - - return val -} - -Buffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) { - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) checkOffset(offset, byteLength, this.length) - - var i = byteLength - var mul = 1 - var val = this[offset + --i] - while (i > 0 && (mul *= 0x100)) { - val += this[offset + --i] * mul - } - mul *= 0x80 - - if (val >= mul) val -= Math.pow(2, 8 * byteLength) - - return val -} - -Buffer.prototype.readInt8 = function readInt8 (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 1, this.length) - if (!(this[offset] & 0x80)) return (this[offset]) - return ((0xff - this[offset] + 1) * -1) -} - -Buffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 2, this.length) - var val = this[offset] | (this[offset + 1] << 8) - return (val & 0x8000) ? val | 0xFFFF0000 : val -} - -Buffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 2, this.length) - var val = this[offset + 1] | (this[offset] << 8) - return (val & 0x8000) ? val | 0xFFFF0000 : val -} - -Buffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - - return (this[offset]) | - (this[offset + 1] << 8) | - (this[offset + 2] << 16) | - (this[offset + 3] << 24) -} - -Buffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - - return (this[offset] << 24) | - (this[offset + 1] << 16) | - (this[offset + 2] << 8) | - (this[offset + 3]) -} - -Buffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - return ieee754.read(this, offset, true, 23, 4) -} - -Buffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 4, this.length) - return ieee754.read(this, offset, false, 23, 4) -} - -Buffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 8, this.length) - return ieee754.read(this, offset, true, 52, 8) -} - -Buffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) { - offset = offset >>> 0 - if (!noAssert) checkOffset(offset, 8, this.length) - return ieee754.read(this, offset, false, 52, 8) -} - -function checkInt (buf, value, offset, ext, max, min) { - if (!Buffer.isBuffer(buf)) throw new TypeError('"buffer" argument must be a Buffer instance') - if (value > max || value < min) throw new RangeError('"value" argument is out of bounds') - if (offset + ext > buf.length) throw new RangeError('Index out of range') -} - -Buffer.prototype.writeUintLE = -Buffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) { - value = +value - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) { - var maxBytes = Math.pow(2, 8 * byteLength) - 1 - checkInt(this, value, offset, byteLength, maxBytes, 0) - } - - var mul = 1 - var i = 0 - this[offset] = value & 0xFF - while (++i < byteLength && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xFF - } - - return offset + byteLength -} - -Buffer.prototype.writeUintBE = -Buffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) { - value = +value - offset = offset >>> 0 - byteLength = byteLength >>> 0 - if (!noAssert) { - var maxBytes = Math.pow(2, 8 * byteLength) - 1 - checkInt(this, value, offset, byteLength, maxBytes, 0) - } - - var i = byteLength - 1 - var mul = 1 - this[offset + i] = value & 0xFF - while (--i >= 0 && (mul *= 0x100)) { - this[offset + i] = (value / mul) & 0xFF - } - - return offset + byteLength -} - -Buffer.prototype.writeUint8 = -Buffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0) - this[offset] = (value & 0xff) - return offset + 1 -} - -Buffer.prototype.writeUint16LE = -Buffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - return offset + 2 -} - -Buffer.prototype.writeUint16BE = -Buffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0) - this[offset] = (value >>> 8) - this[offset + 1] = (value & 0xff) - return offset + 2 -} - -Buffer.prototype.writeUint32LE = -Buffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) - this[offset + 3] = (value >>> 24) - this[offset + 2] = (value >>> 16) - this[offset + 1] = (value >>> 8) - this[offset] = (value & 0xff) - return offset + 4 -} - -Buffer.prototype.writeUint32BE = -Buffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0) - this[offset] = (value >>> 24) - this[offset + 1] = (value >>> 16) - this[offset + 2] = (value >>> 8) - this[offset + 3] = (value & 0xff) - return offset + 4 -} - -Buffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) { - var limit = Math.pow(2, (8 * byteLength) - 1) - - checkInt(this, value, offset, byteLength, limit - 1, -limit) - } - - var i = 0 - var mul = 1 - var sub = 0 - this[offset] = value & 0xFF - while (++i < byteLength && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) { - sub = 1 - } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF - } - - return offset + byteLength -} - -Buffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) { - var limit = Math.pow(2, (8 * byteLength) - 1) - - checkInt(this, value, offset, byteLength, limit - 1, -limit) - } - - var i = byteLength - 1 - var mul = 1 - var sub = 0 - this[offset + i] = value & 0xFF - while (--i >= 0 && (mul *= 0x100)) { - if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) { - sub = 1 - } - this[offset + i] = ((value / mul) >> 0) - sub & 0xFF - } - - return offset + byteLength -} - -Buffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80) - if (value < 0) value = 0xff + value + 1 - this[offset] = (value & 0xff) - return offset + 1 -} - -Buffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000) - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - return offset + 2 -} - -Buffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000) - this[offset] = (value >>> 8) - this[offset + 1] = (value & 0xff) - return offset + 2 -} - -Buffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000) - this[offset] = (value & 0xff) - this[offset + 1] = (value >>> 8) - this[offset + 2] = (value >>> 16) - this[offset + 3] = (value >>> 24) - return offset + 4 -} - -Buffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000) - if (value < 0) value = 0xffffffff + value + 1 - this[offset] = (value >>> 24) - this[offset + 1] = (value >>> 16) - this[offset + 2] = (value >>> 8) - this[offset + 3] = (value & 0xff) - return offset + 4 -} - -function checkIEEE754 (buf, value, offset, ext, max, min) { - if (offset + ext > buf.length) throw new RangeError('Index out of range') - if (offset < 0) throw new RangeError('Index out of range') -} - -function writeFloat (buf, value, offset, littleEndian, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) { - checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38) - } - ieee754.write(buf, value, offset, littleEndian, 23, 4) - return offset + 4 -} - -Buffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) { - return writeFloat(this, value, offset, true, noAssert) -} - -Buffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) { - return writeFloat(this, value, offset, false, noAssert) -} - -function writeDouble (buf, value, offset, littleEndian, noAssert) { - value = +value - offset = offset >>> 0 - if (!noAssert) { - checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308) - } - ieee754.write(buf, value, offset, littleEndian, 52, 8) - return offset + 8 -} - -Buffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) { - return writeDouble(this, value, offset, true, noAssert) -} - -Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) { - return writeDouble(this, value, offset, false, noAssert) -} - -// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length) -Buffer.prototype.copy = function copy (target, targetStart, start, end) { - if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer') - if (!start) start = 0 - if (!end && end !== 0) end = this.length - if (targetStart >= target.length) targetStart = target.length - if (!targetStart) targetStart = 0 - if (end > 0 && end < start) end = start - - // Copy 0 bytes; we're done - if (end === start) return 0 - if (target.length === 0 || this.length === 0) return 0 - - // Fatal error conditions - if (targetStart < 0) { - throw new RangeError('targetStart out of bounds') - } - if (start < 0 || start >= this.length) throw new RangeError('Index out of range') - if (end < 0) throw new RangeError('sourceEnd out of bounds') - - // Are we oob? - if (end > this.length) end = this.length - if (target.length - targetStart < end - start) { - end = target.length - targetStart + start - } - - var len = end - start - - if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') { - // Use built-in when available, missing from IE11 - this.copyWithin(targetStart, start, end) - } else { - Uint8Array.prototype.set.call( - target, - this.subarray(start, end), - targetStart - ) - } - - return len -} - -// Usage: -// buffer.fill(number[, offset[, end]]) -// buffer.fill(buffer[, offset[, end]]) -// buffer.fill(string[, offset[, end]][, encoding]) -Buffer.prototype.fill = function fill (val, start, end, encoding) { - // Handle string cases: - if (typeof val === 'string') { - if (typeof start === 'string') { - encoding = start - start = 0 - end = this.length - } else if (typeof end === 'string') { - encoding = end - end = this.length - } - if (encoding !== undefined && typeof encoding !== 'string') { - throw new TypeError('encoding must be a string') - } - if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) { - throw new TypeError('Unknown encoding: ' + encoding) - } - if (val.length === 1) { - var code = val.charCodeAt(0) - if ((encoding === 'utf8' && code < 128) || - encoding === 'latin1') { - // Fast path: If `val` fits into a single byte, use that numeric value. - val = code - } - } - } else if (typeof val === 'number') { - val = val & 255 - } else if (typeof val === 'boolean') { - val = Number(val) - } - - // Invalid ranges are not set to a default, so can range check early. - if (start < 0 || this.length < start || this.length < end) { - throw new RangeError('Out of range index') - } - - if (end <= start) { - return this - } - - start = start >>> 0 - end = end === undefined ? this.length : end >>> 0 - - if (!val) val = 0 - - var i - if (typeof val === 'number') { - for (i = start; i < end; ++i) { - this[i] = val - } - } else { - var bytes = Buffer.isBuffer(val) - ? val - : Buffer.from(val, encoding) - var len = bytes.length - if (len === 0) { - throw new TypeError('The value "' + val + - '" is invalid for argument "value"') - } - for (i = 0; i < end - start; ++i) { - this[i + start] = bytes[i % len] - } - } - - return this -} - -// HELPER FUNCTIONS -// ================ - -var INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g - -function base64clean (str) { - // Node takes equal signs as end of the Base64 encoding - str = str.split('=')[0] - // Node strips out invalid characters like \n and \t from the string, base64-js does not - str = str.trim().replace(INVALID_BASE64_RE, '') - // Node converts strings with length < 2 to '' - if (str.length < 2) return '' - // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not - while (str.length % 4 !== 0) { - str = str + '=' - } - return str -} - -function utf8ToBytes (string, units) { - units = units || Infinity - var codePoint - var length = string.length - var leadSurrogate = null - var bytes = [] - - for (var i = 0; i < length; ++i) { - codePoint = string.charCodeAt(i) - - // is surrogate component - if (codePoint > 0xD7FF && codePoint < 0xE000) { - // last char was a lead - if (!leadSurrogate) { - // no lead yet - if (codePoint > 0xDBFF) { - // unexpected trail - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - continue - } else if (i + 1 === length) { - // unpaired lead - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - continue - } - - // valid lead - leadSurrogate = codePoint - - continue - } - - // 2 leads in a row - if (codePoint < 0xDC00) { - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - leadSurrogate = codePoint - continue - } - - // valid surrogate pair - codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000 - } else if (leadSurrogate) { - // valid bmp char, but last char was a lead - if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD) - } - - leadSurrogate = null - - // encode utf8 - if (codePoint < 0x80) { - if ((units -= 1) < 0) break - bytes.push(codePoint) - } else if (codePoint < 0x800) { - if ((units -= 2) < 0) break - bytes.push( - codePoint >> 0x6 | 0xC0, - codePoint & 0x3F | 0x80 - ) - } else if (codePoint < 0x10000) { - if ((units -= 3) < 0) break - bytes.push( - codePoint >> 0xC | 0xE0, - codePoint >> 0x6 & 0x3F | 0x80, - codePoint & 0x3F | 0x80 - ) - } else if (codePoint < 0x110000) { - if ((units -= 4) < 0) break - bytes.push( - codePoint >> 0x12 | 0xF0, - codePoint >> 0xC & 0x3F | 0x80, - codePoint >> 0x6 & 0x3F | 0x80, - codePoint & 0x3F | 0x80 - ) - } else { - throw new Error('Invalid code point') - } - } - - return bytes -} - -function asciiToBytes (str) { - var byteArray = [] - for (var i = 0; i < str.length; ++i) { - // Node's code seems to be doing this and not & 0x7F.. - byteArray.push(str.charCodeAt(i) & 0xFF) - } - return byteArray -} - -function utf16leToBytes (str, units) { - var c, hi, lo - var byteArray = [] - for (var i = 0; i < str.length; ++i) { - if ((units -= 2) < 0) break - - c = str.charCodeAt(i) - hi = c >> 8 - lo = c % 256 - byteArray.push(lo) - byteArray.push(hi) - } - - return byteArray -} - -function base64ToBytes (str) { - return base64.toByteArray(base64clean(str)) -} - -function blitBuffer (src, dst, offset, length) { - for (var i = 0; i < length; ++i) { - if ((i + offset >= dst.length) || (i >= src.length)) break - dst[i + offset] = src[i] - } - return i -} - -// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass -// the `instanceof` check but they should be treated as of that type. -// See: https://github.com/feross/buffer/issues/166 -function isInstance (obj, type) { - return obj instanceof type || - (obj != null && obj.constructor != null && obj.constructor.name != null && - obj.constructor.name === type.name) -} -function numberIsNaN (obj) { - // For IE11 support - return obj !== obj // eslint-disable-line no-self-compare -} - -// Create lookup table for `toString('hex')` -// See: https://github.com/feross/buffer/issues/219 -var hexSliceLookupTable = (function () { - var alphabet = '0123456789abcdef' - var table = new Array(256) - for (var i = 0; i < 16; ++i) { - var i16 = i * 16 - for (var j = 0; j < 16; ++j) { - table[i16 + j] = alphabet[i] + alphabet[j] - } - } - return table -})() diff --git a/WechatBot/node_modules/buffer/package.json b/WechatBot/node_modules/buffer/package.json deleted file mode 100644 index 3b1b4986f..000000000 --- a/WechatBot/node_modules/buffer/package.json +++ /dev/null @@ -1,96 +0,0 @@ -{ - "name": "buffer", - "description": "Node.js Buffer API, for the browser", - "version": "5.7.1", - "author": { - "name": "Feross Aboukhadijeh", - "email": "feross@feross.org", - "url": "https://feross.org" - }, - "bugs": { - "url": "https://github.com/feross/buffer/issues" - }, - "contributors": [ - "Romain Beauxis ", - "James Halliday " - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - }, - "devDependencies": { - "airtap": "^3.0.0", - "benchmark": "^2.1.4", - "browserify": "^17.0.0", - "concat-stream": "^2.0.0", - "hyperquest": "^2.1.3", - "is-buffer": "^2.0.4", - "is-nan": "^1.3.0", - "split": "^1.0.1", - "standard": "*", - "tape": "^5.0.1", - "through2": "^4.0.2", - "uglify-js": "^3.11.3" - }, - "homepage": "https://github.com/feross/buffer", - "jspm": { - "map": { - "./index.js": { - "node": "@node/buffer" - } - } - }, - "keywords": [ - "arraybuffer", - "browser", - "browserify", - "buffer", - "compatible", - "dataview", - "uint8array" - ], - "license": "MIT", - "main": "index.js", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "git://github.com/feross/buffer.git" - }, - "scripts": { - "perf": "browserify --debug perf/bracket-notation.js > perf/bundle.js && open perf/index.html", - "perf-node": "node perf/bracket-notation.js && node perf/concat.js && node perf/copy-big.js && node perf/copy.js && node perf/new-big.js && node perf/new.js && node perf/readDoubleBE.js && node perf/readFloatBE.js && node perf/readUInt32LE.js && node perf/slice.js && node perf/writeFloatBE.js", - "size": "browserify -r ./ | uglifyjs -c -m | gzip | wc -c", - "test": "standard && node ./bin/test.js", - "test-browser-es5": "airtap -- test/*.js", - "test-browser-es5-local": "airtap --local -- test/*.js", - "test-browser-es6": "airtap -- test/*.js test/node/*.js", - "test-browser-es6-local": "airtap --local -- test/*.js test/node/*.js", - "test-node": "tape test/*.js test/node/*.js", - "update-authors": "./bin/update-authors.sh" - }, - "standard": { - "ignore": [ - "test/node/**/*.js", - "test/common.js", - "test/_polyfill.js", - "perf/**/*.js" - ], - "globals": [ - "SharedArrayBuffer" - ] - }, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] -} diff --git a/WechatBot/node_modules/camelcase/index.d.ts b/WechatBot/node_modules/camelcase/index.d.ts deleted file mode 100644 index 58f2069ad..000000000 --- a/WechatBot/node_modules/camelcase/index.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -declare namespace camelcase { - interface Options { - /** - Uppercase the first character: `foo-bar` → `FooBar`. - - @default false - */ - readonly pascalCase?: boolean; - } -} - -declare const camelcase: { - /** - Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`. - - @param input - String to convert to camel case. - - @example - ``` - import camelCase = require('camelcase'); - - camelCase('foo-bar'); - //=> 'fooBar' - - camelCase('foo_bar'); - //=> 'fooBar' - - camelCase('Foo-Bar'); - //=> 'fooBar' - - camelCase('Foo-Bar', {pascalCase: true}); - //=> 'FooBar' - - camelCase('--foo.bar', {pascalCase: false}); - //=> 'fooBar' - - camelCase('foo bar'); - //=> 'fooBar' - - console.log(process.argv[3]); - //=> '--foo-bar' - camelCase(process.argv[3]); - //=> 'fooBar' - - camelCase(['foo', 'bar']); - //=> 'fooBar' - - camelCase(['__foo__', '--bar'], {pascalCase: true}); - //=> 'FooBar' - ``` - */ - (input: string | ReadonlyArray, options?: camelcase.Options): string; - - // TODO: Remove this for the next major release, refactor the whole definition to: - // declare function camelcase( - // input: string | ReadonlyArray, - // options?: camelcase.Options - // ): string; - // export = camelcase; - default: typeof camelcase; -}; - -export = camelcase; diff --git a/WechatBot/node_modules/camelcase/index.js b/WechatBot/node_modules/camelcase/index.js deleted file mode 100755 index 579f99b47..000000000 --- a/WechatBot/node_modules/camelcase/index.js +++ /dev/null @@ -1,76 +0,0 @@ -'use strict'; - -const preserveCamelCase = string => { - let isLastCharLower = false; - let isLastCharUpper = false; - let isLastLastCharUpper = false; - - for (let i = 0; i < string.length; i++) { - const character = string[i]; - - if (isLastCharLower && /[a-zA-Z]/.test(character) && character.toUpperCase() === character) { - string = string.slice(0, i) + '-' + string.slice(i); - isLastCharLower = false; - isLastLastCharUpper = isLastCharUpper; - isLastCharUpper = true; - i++; - } else if (isLastCharUpper && isLastLastCharUpper && /[a-zA-Z]/.test(character) && character.toLowerCase() === character) { - string = string.slice(0, i - 1) + '-' + string.slice(i - 1); - isLastLastCharUpper = isLastCharUpper; - isLastCharUpper = false; - isLastCharLower = true; - } else { - isLastCharLower = character.toLowerCase() === character && character.toUpperCase() !== character; - isLastLastCharUpper = isLastCharUpper; - isLastCharUpper = character.toUpperCase() === character && character.toLowerCase() !== character; - } - } - - return string; -}; - -const camelCase = (input, options) => { - if (!(typeof input === 'string' || Array.isArray(input))) { - throw new TypeError('Expected the input to be `string | string[]`'); - } - - options = Object.assign({ - pascalCase: false - }, options); - - const postProcess = x => options.pascalCase ? x.charAt(0).toUpperCase() + x.slice(1) : x; - - if (Array.isArray(input)) { - input = input.map(x => x.trim()) - .filter(x => x.length) - .join('-'); - } else { - input = input.trim(); - } - - if (input.length === 0) { - return ''; - } - - if (input.length === 1) { - return options.pascalCase ? input.toUpperCase() : input.toLowerCase(); - } - - const hasUpperCase = input !== input.toLowerCase(); - - if (hasUpperCase) { - input = preserveCamelCase(input); - } - - input = input - .replace(/^[_.\- ]+/, '') - .toLowerCase() - .replace(/[_.\- ]+(\w|$)/g, (_, p1) => p1.toUpperCase()) - .replace(/\d+(\w|$)/g, m => m.toUpperCase()); - - return postProcess(input); -}; - -module.exports = camelCase; -// TODO: Remove this for the next major release -module.exports.default = camelCase; diff --git a/WechatBot/node_modules/camelcase/license b/WechatBot/node_modules/camelcase/license deleted file mode 100644 index e7af2f771..000000000 --- a/WechatBot/node_modules/camelcase/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/WechatBot/node_modules/camelcase/package.json b/WechatBot/node_modules/camelcase/package.json deleted file mode 100644 index fbdbaaa75..000000000 --- a/WechatBot/node_modules/camelcase/package.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "camelcase", - "version": "5.3.1", - "description": "Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar`", - "license": "MIT", - "repository": "sindresorhus/camelcase", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "sindresorhus.com" - }, - "engines": { - "node": ">=6" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts" - ], - "keywords": [ - "camelcase", - "camel-case", - "camel", - "case", - "dash", - "hyphen", - "dot", - "underscore", - "separator", - "string", - "text", - "convert", - "pascalcase", - "pascal-case" - ], - "devDependencies": { - "ava": "^1.4.1", - "tsd": "^0.7.1", - "xo": "^0.24.0" - } -} diff --git a/WechatBot/node_modules/camelcase/readme.md b/WechatBot/node_modules/camelcase/readme.md deleted file mode 100644 index fde27261b..000000000 --- a/WechatBot/node_modules/camelcase/readme.md +++ /dev/null @@ -1,99 +0,0 @@ -# camelcase [![Build Status](https://travis-ci.org/sindresorhus/camelcase.svg?branch=master)](https://travis-ci.org/sindresorhus/camelcase) - -> Convert a dash/dot/underscore/space separated string to camelCase or PascalCase: `foo-bar` → `fooBar` - ---- - -
- - Get professional support for 'camelcase' with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
- ---- - -## Install - -``` -$ npm install camelcase -``` - - -## Usage - -```js -const camelCase = require('camelcase'); - -camelCase('foo-bar'); -//=> 'fooBar' - -camelCase('foo_bar'); -//=> 'fooBar' - -camelCase('Foo-Bar'); -//=> 'fooBar' - -camelCase('Foo-Bar', {pascalCase: true}); -//=> 'FooBar' - -camelCase('--foo.bar', {pascalCase: false}); -//=> 'fooBar' - -camelCase('foo bar'); -//=> 'fooBar' - -console.log(process.argv[3]); -//=> '--foo-bar' -camelCase(process.argv[3]); -//=> 'fooBar' - -camelCase(['foo', 'bar']); -//=> 'fooBar' - -camelCase(['__foo__', '--bar'], {pascalCase: true}); -//=> 'FooBar' -``` - - -## API - -### camelCase(input, [options]) - -#### input - -Type: `string` `string[]` - -String to convert to camel case. - -#### options - -Type: `Object` - -##### pascalCase - -Type: `boolean`
-Default: `false` - -Uppercase the first character: `foo-bar` → `FooBar` - - -## Security - -To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. - - -## Related - -- [decamelize](https://github.com/sindresorhus/decamelize) - The inverse of this module -- [uppercamelcase](https://github.com/SamVerschueren/uppercamelcase) - Like this module, but to PascalCase instead of camelCase -- [titleize](https://github.com/sindresorhus/titleize) - Capitalize every word in string -- [humanize-string](https://github.com/sindresorhus/humanize-string) - Convert a camelized/dasherized/underscored string into a humanized one - - -## License - -MIT © [Sindre Sorhus](https://sindresorhus.com) diff --git a/WechatBot/node_modules/chalk/index.d.ts b/WechatBot/node_modules/chalk/index.d.ts deleted file mode 100644 index 9cd88f38b..000000000 --- a/WechatBot/node_modules/chalk/index.d.ts +++ /dev/null @@ -1,415 +0,0 @@ -/** -Basic foreground colors. - -[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) -*/ -declare type ForegroundColor = - | 'black' - | 'red' - | 'green' - | 'yellow' - | 'blue' - | 'magenta' - | 'cyan' - | 'white' - | 'gray' - | 'grey' - | 'blackBright' - | 'redBright' - | 'greenBright' - | 'yellowBright' - | 'blueBright' - | 'magentaBright' - | 'cyanBright' - | 'whiteBright'; - -/** -Basic background colors. - -[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) -*/ -declare type BackgroundColor = - | 'bgBlack' - | 'bgRed' - | 'bgGreen' - | 'bgYellow' - | 'bgBlue' - | 'bgMagenta' - | 'bgCyan' - | 'bgWhite' - | 'bgGray' - | 'bgGrey' - | 'bgBlackBright' - | 'bgRedBright' - | 'bgGreenBright' - | 'bgYellowBright' - | 'bgBlueBright' - | 'bgMagentaBright' - | 'bgCyanBright' - | 'bgWhiteBright'; - -/** -Basic colors. - -[More colors here.](https://github.com/chalk/chalk/blob/master/readme.md#256-and-truecolor-color-support) -*/ -declare type Color = ForegroundColor | BackgroundColor; - -declare type Modifiers = - | 'reset' - | 'bold' - | 'dim' - | 'italic' - | 'underline' - | 'inverse' - | 'hidden' - | 'strikethrough' - | 'visible'; - -declare namespace chalk { - /** - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. - */ - type Level = 0 | 1 | 2 | 3; - - interface Options { - /** - Specify the color support for Chalk. - - By default, color support is automatically detected based on the environment. - - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. - */ - level?: Level; - } - - /** - Return a new Chalk instance. - */ - type Instance = new (options?: Options) => Chalk; - - /** - Detect whether the terminal supports color. - */ - interface ColorSupport { - /** - The color level used by Chalk. - */ - level: Level; - - /** - Return whether Chalk supports basic 16 colors. - */ - hasBasic: boolean; - - /** - Return whether Chalk supports ANSI 256 colors. - */ - has256: boolean; - - /** - Return whether Chalk supports Truecolor 16 million colors. - */ - has16m: boolean; - } - - interface ChalkFunction { - /** - Use a template string. - - @remarks Template literals are unsupported for nested calls (see [issue #341](https://github.com/chalk/chalk/issues/341)) - - @example - ``` - import chalk = require('chalk'); - - log(chalk` - CPU: {red ${cpu.totalPercent}%} - RAM: {green ${ram.used / ram.total * 100}%} - DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} - `); - ``` - - @example - ``` - import chalk = require('chalk'); - - log(chalk.red.bgBlack`2 + 3 = {bold ${2 + 3}}`) - ``` - */ - (text: TemplateStringsArray, ...placeholders: unknown[]): string; - - (...text: unknown[]): string; - } - - interface Chalk extends ChalkFunction { - /** - Return a new Chalk instance. - */ - Instance: Instance; - - /** - The color support for Chalk. - - By default, color support is automatically detected based on the environment. - - Levels: - - `0` - All colors disabled. - - `1` - Basic 16 colors support. - - `2` - ANSI 256 colors support. - - `3` - Truecolor 16 million colors support. - */ - level: Level; - - /** - Use HEX value to set text color. - - @param color - Hexadecimal value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.hex('#DEADED'); - ``` - */ - hex(color: string): Chalk; - - /** - Use keyword color value to set text color. - - @param color - Keyword value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.keyword('orange'); - ``` - */ - keyword(color: string): Chalk; - - /** - Use RGB values to set text color. - */ - rgb(red: number, green: number, blue: number): Chalk; - - /** - Use HSL values to set text color. - */ - hsl(hue: number, saturation: number, lightness: number): Chalk; - - /** - Use HSV values to set text color. - */ - hsv(hue: number, saturation: number, value: number): Chalk; - - /** - Use HWB values to set text color. - */ - hwb(hue: number, whiteness: number, blackness: number): Chalk; - - /** - Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set text color. - - 30 <= code && code < 38 || 90 <= code && code < 98 - For example, 31 for red, 91 for redBright. - */ - ansi(code: number): Chalk; - - /** - Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color. - */ - ansi256(index: number): Chalk; - - /** - Use HEX value to set background color. - - @param color - Hexadecimal value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.bgHex('#DEADED'); - ``` - */ - bgHex(color: string): Chalk; - - /** - Use keyword color value to set background color. - - @param color - Keyword value representing the desired color. - - @example - ``` - import chalk = require('chalk'); - - chalk.bgKeyword('orange'); - ``` - */ - bgKeyword(color: string): Chalk; - - /** - Use RGB values to set background color. - */ - bgRgb(red: number, green: number, blue: number): Chalk; - - /** - Use HSL values to set background color. - */ - bgHsl(hue: number, saturation: number, lightness: number): Chalk; - - /** - Use HSV values to set background color. - */ - bgHsv(hue: number, saturation: number, value: number): Chalk; - - /** - Use HWB values to set background color. - */ - bgHwb(hue: number, whiteness: number, blackness: number): Chalk; - - /** - Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set background color. - - 30 <= code && code < 38 || 90 <= code && code < 98 - For example, 31 for red, 91 for redBright. - Use the foreground code, not the background code (for example, not 41, nor 101). - */ - bgAnsi(code: number): Chalk; - - /** - Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color. - */ - bgAnsi256(index: number): Chalk; - - /** - Modifier: Resets the current color chain. - */ - readonly reset: Chalk; - - /** - Modifier: Make text bold. - */ - readonly bold: Chalk; - - /** - Modifier: Emitting only a small amount of light. - */ - readonly dim: Chalk; - - /** - Modifier: Make text italic. (Not widely supported) - */ - readonly italic: Chalk; - - /** - Modifier: Make text underline. (Not widely supported) - */ - readonly underline: Chalk; - - /** - Modifier: Inverse background and foreground colors. - */ - readonly inverse: Chalk; - - /** - Modifier: Prints the text, but makes it invisible. - */ - readonly hidden: Chalk; - - /** - Modifier: Puts a horizontal line through the center of the text. (Not widely supported) - */ - readonly strikethrough: Chalk; - - /** - Modifier: Prints the text only when Chalk has a color support level > 0. - Can be useful for things that are purely cosmetic. - */ - readonly visible: Chalk; - - readonly black: Chalk; - readonly red: Chalk; - readonly green: Chalk; - readonly yellow: Chalk; - readonly blue: Chalk; - readonly magenta: Chalk; - readonly cyan: Chalk; - readonly white: Chalk; - - /* - Alias for `blackBright`. - */ - readonly gray: Chalk; - - /* - Alias for `blackBright`. - */ - readonly grey: Chalk; - - readonly blackBright: Chalk; - readonly redBright: Chalk; - readonly greenBright: Chalk; - readonly yellowBright: Chalk; - readonly blueBright: Chalk; - readonly magentaBright: Chalk; - readonly cyanBright: Chalk; - readonly whiteBright: Chalk; - - readonly bgBlack: Chalk; - readonly bgRed: Chalk; - readonly bgGreen: Chalk; - readonly bgYellow: Chalk; - readonly bgBlue: Chalk; - readonly bgMagenta: Chalk; - readonly bgCyan: Chalk; - readonly bgWhite: Chalk; - - /* - Alias for `bgBlackBright`. - */ - readonly bgGray: Chalk; - - /* - Alias for `bgBlackBright`. - */ - readonly bgGrey: Chalk; - - readonly bgBlackBright: Chalk; - readonly bgRedBright: Chalk; - readonly bgGreenBright: Chalk; - readonly bgYellowBright: Chalk; - readonly bgBlueBright: Chalk; - readonly bgMagentaBright: Chalk; - readonly bgCyanBright: Chalk; - readonly bgWhiteBright: Chalk; - } -} - -/** -Main Chalk object that allows to chain styles together. -Call the last one as a method with a string argument. -Order doesn't matter, and later styles take precedent in case of a conflict. -This simply means that `chalk.red.yellow.green` is equivalent to `chalk.green`. -*/ -declare const chalk: chalk.Chalk & chalk.ChalkFunction & { - supportsColor: chalk.ColorSupport | false; - Level: chalk.Level; - Color: Color; - ForegroundColor: ForegroundColor; - BackgroundColor: BackgroundColor; - Modifiers: Modifiers; - stderr: chalk.Chalk & {supportsColor: chalk.ColorSupport | false}; -}; - -export = chalk; diff --git a/WechatBot/node_modules/chalk/license b/WechatBot/node_modules/chalk/license deleted file mode 100644 index e7af2f771..000000000 --- a/WechatBot/node_modules/chalk/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/WechatBot/node_modules/chalk/package.json b/WechatBot/node_modules/chalk/package.json deleted file mode 100644 index 47c23f290..000000000 --- a/WechatBot/node_modules/chalk/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "name": "chalk", - "version": "4.1.2", - "description": "Terminal string styling done right", - "license": "MIT", - "repository": "chalk/chalk", - "funding": "https://github.com/chalk/chalk?sponsor=1", - "main": "source", - "engines": { - "node": ">=10" - }, - "scripts": { - "test": "xo && nyc ava && tsd", - "bench": "matcha benchmark.js" - }, - "files": [ - "source", - "index.d.ts" - ], - "keywords": [ - "color", - "colour", - "colors", - "terminal", - "console", - "cli", - "string", - "str", - "ansi", - "style", - "styles", - "tty", - "formatting", - "rgb", - "256", - "shell", - "xterm", - "log", - "logging", - "command-line", - "text" - ], - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "devDependencies": { - "ava": "^2.4.0", - "coveralls": "^3.0.7", - "execa": "^4.0.0", - "import-fresh": "^3.1.0", - "matcha": "^0.7.0", - "nyc": "^15.0.0", - "resolve-from": "^5.0.0", - "tsd": "^0.7.4", - "xo": "^0.28.2" - }, - "xo": { - "rules": { - "unicorn/prefer-string-slice": "off", - "unicorn/prefer-includes": "off", - "@typescript-eslint/member-ordering": "off", - "no-redeclare": "off", - "unicorn/string-content": "off", - "unicorn/better-regex": "off" - } - } -} diff --git a/WechatBot/node_modules/chalk/readme.md b/WechatBot/node_modules/chalk/readme.md deleted file mode 100644 index a055d21c9..000000000 --- a/WechatBot/node_modules/chalk/readme.md +++ /dev/null @@ -1,341 +0,0 @@ -

-
-
- Chalk -
-
-
-

- -> Terminal string styling done right - -[![Build Status](https://travis-ci.org/chalk/chalk.svg?branch=master)](https://travis-ci.org/chalk/chalk) [![Coverage Status](https://coveralls.io/repos/github/chalk/chalk/badge.svg?branch=master)](https://coveralls.io/github/chalk/chalk?branch=master) [![npm dependents](https://badgen.net/npm/dependents/chalk)](https://www.npmjs.com/package/chalk?activeTab=dependents) [![Downloads](https://badgen.net/npm/dt/chalk)](https://www.npmjs.com/package/chalk) [![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://www.youtube.com/watch?v=9auOCbH5Ns4) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo) ![TypeScript-ready](https://img.shields.io/npm/types/chalk.svg) [![run on repl.it](https://repl.it/badge/github/chalk/chalk)](https://repl.it/github/chalk/chalk) - - - -
- ---- - - - ---- - -
- -## Highlights - -- Expressive API -- Highly performant -- Ability to nest styles -- [256/Truecolor color support](#256-and-truecolor-color-support) -- Auto-detects color support -- Doesn't extend `String.prototype` -- Clean and focused -- Actively maintained -- [Used by ~50,000 packages](https://www.npmjs.com/browse/depended/chalk) as of January 1, 2020 - -## Install - -```console -$ npm install chalk -``` - -## Usage - -```js -const chalk = require('chalk'); - -console.log(chalk.blue('Hello world!')); -``` - -Chalk comes with an easy to use composable API where you just chain and nest the styles you want. - -```js -const chalk = require('chalk'); -const log = console.log; - -// Combine styled and normal strings -log(chalk.blue('Hello') + ' World' + chalk.red('!')); - -// Compose multiple styles using the chainable API -log(chalk.blue.bgRed.bold('Hello world!')); - -// Pass in multiple arguments -log(chalk.blue('Hello', 'World!', 'Foo', 'bar', 'biz', 'baz')); - -// Nest styles -log(chalk.red('Hello', chalk.underline.bgBlue('world') + '!')); - -// Nest styles of the same type even (color, underline, background) -log(chalk.green( - 'I am a green line ' + - chalk.blue.underline.bold('with a blue substring') + - ' that becomes green again!' -)); - -// ES2015 template literal -log(` -CPU: ${chalk.red('90%')} -RAM: ${chalk.green('40%')} -DISK: ${chalk.yellow('70%')} -`); - -// ES2015 tagged template literal -log(chalk` -CPU: {red ${cpu.totalPercent}%} -RAM: {green ${ram.used / ram.total * 100}%} -DISK: {rgb(255,131,0) ${disk.used / disk.total * 100}%} -`); - -// Use RGB colors in terminal emulators that support it. -log(chalk.keyword('orange')('Yay for orange colored text!')); -log(chalk.rgb(123, 45, 67).underline('Underlined reddish color')); -log(chalk.hex('#DEADED').bold('Bold gray!')); -``` - -Easily define your own themes: - -```js -const chalk = require('chalk'); - -const error = chalk.bold.red; -const warning = chalk.keyword('orange'); - -console.log(error('Error!')); -console.log(warning('Warning!')); -``` - -Take advantage of console.log [string substitution](https://nodejs.org/docs/latest/api/console.html#console_console_log_data_args): - -```js -const name = 'Sindre'; -console.log(chalk.green('Hello %s'), name); -//=> 'Hello Sindre' -``` - -## API - -### chalk.` - - - -
-
-

All files bitmapper.js

-
- -
- 94.37% - Statements - 134/142 -
- - -
- 72.41% - Branches - 21/29 -
- - -
- 89.47% - Functions - 17/19 -
- - -
- 94.16% - Lines - 129/137 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172 -173 -174 -175 -176 -177 -178 -179 -180 -181 -182 -183 -184 -185 -186 -187 -188 -189 -190 -191 -192 -193 -194 -195 -196 -197 -198 -199 -200 -201 -202 -203 -204 -205 -206 -207 -208 -209 -210 -211 -212 -213 -214 -215 -216 -217 -218 -219 -220 -221 -222 -223 -224 -225 -226 -227 -228 -229 -230 -231 -232 -233 -234 -235 -236 -237 -238 -239 -240 -241 -242 -243 -244 -245 -246 -247 -248 -249 -250 -251 -252 -253 -254 -255 -256 -257 -258 -259 -260 -261 -262 -263 -264 -265 -266 -267 -268  -  -1x -  -1x -  -  -  -  -  -  -313632x -  -  -  -313632x -313632x -313632x -313632x -313632x -  -  -  -  -  -8192x -  -  -  -8192x -8192x -8192x -8192x -8192x -  -  -  -  -  -1228160x -  -  -  -1228160x -1228160x -1228160x -1228160x -  -  -  -  -  -272640x -  -  -  -272640x -272640x -272640x -272640x -  -  -  -1x -  -  -  -  -  -  -1193380x -1193380x -1193380x -1193380x -1193380x -  -  -  -  -  -8192x -8192x -8192x -8192x -8192x -  -  -  -  -  -24576x -24576x -24576x -24576x -  -  -  -  -  -8192x -8192x -8192x -8192x -  -  -  -  -209x -209x -  -  -334250x -  -  -334250x -334250x -  -334250x -  -  -  -149504x -149504x -149504x -149504x -  -49612x -49612x -49612x -49612x -  -2968x -2968x -2968x -2968x -2968x -2968x -  -132166x -132166x -132166x -132166x -132166x -132166x -132166x -132166x -132166x -132166x -  -  -  -209x -  -1234340x -334250x -  -1234340x -1234340x -1234340x -  -  -8106x -  -  -209x -  -  -  -  -  -  -  -  -210x -210x -210x -210x -7288x -1822624x -1822624x -1822624x -  -  -210x -  -  -  -  -529x -529x -529x -529x -8106x -1234340x -1234340x -1234340x -  -8106x -  -  -  -1x -335x -335x -335x -335x -335x -  -  -335x -209x -  -  -335x -269x -  -66x -  -335x -335x -  -  -  -335x -72x -72x -  -263x -263x -2732114x -2732114x -2732114x -  -263x -  -  -335x -739x -210x -  -  -  -  -  -  -  -  -529x -  -  -  -  -  -  -  -  -  -335x -126x -  -  -  -209x -  -  -335x -  - 
"use strict";
- 
-let interlaceUtils = require("./interlace");
- 
-let pixelBppMapper = [
-  // 0 - dummy entry
-  function () {},
- 
-  // 1 - L
-  // 0: 0, 1: 0, 2: 0, 3: 0xff
-  function (pxData, data, pxPos, rawPos) {
-    Iif (rawPos === data.length) {
-      throw new Error("Ran out of data");
-    }
- 
-    let pixel = data[rawPos];
-    pxData[pxPos] = pixel;
-    pxData[pxPos + 1] = pixel;
-    pxData[pxPos + 2] = pixel;
-    pxData[pxPos + 3] = 0xff;
-  },
- 
-  // 2 - LA
-  // 0: 0, 1: 0, 2: 0, 3: 1
-  function (pxData, data, pxPos, rawPos) {
-    Iif (rawPos + 1 >= data.length) {
-      throw new Error("Ran out of data");
-    }
- 
-    let pixel = data[rawPos];
-    pxData[pxPos] = pixel;
-    pxData[pxPos + 1] = pixel;
-    pxData[pxPos + 2] = pixel;
-    pxData[pxPos + 3] = data[rawPos + 1];
-  },
- 
-  // 3 - RGB
-  // 0: 0, 1: 1, 2: 2, 3: 0xff
-  function (pxData, data, pxPos, rawPos) {
-    Iif (rawPos + 2 >= data.length) {
-      throw new Error("Ran out of data");
-    }
- 
-    pxData[pxPos] = data[rawPos];
-    pxData[pxPos + 1] = data[rawPos + 1];
-    pxData[pxPos + 2] = data[rawPos + 2];
-    pxData[pxPos + 3] = 0xff;
-  },
- 
-  // 4 - RGBA
-  // 0: 0, 1: 1, 2: 2, 3: 3
-  function (pxData, data, pxPos, rawPos) {
-    Iif (rawPos + 3 >= data.length) {
-      throw new Error("Ran out of data");
-    }
- 
-    pxData[pxPos] = data[rawPos];
-    pxData[pxPos + 1] = data[rawPos + 1];
-    pxData[pxPos + 2] = data[rawPos + 2];
-    pxData[pxPos + 3] = data[rawPos + 3];
-  },
-];
- 
-let pixelBppCustomMapper = [
-  // 0 - dummy entry
-  function () {},
- 
-  // 1 - L
-  // 0: 0, 1: 0, 2: 0, 3: 0xff
-  function (pxData, pixelData, pxPos, maxBit) {
-    let pixel = pixelData[0];
-    pxData[pxPos] = pixel;
-    pxData[pxPos + 1] = pixel;
-    pxData[pxPos + 2] = pixel;
-    pxData[pxPos + 3] = maxBit;
-  },
- 
-  // 2 - LA
-  // 0: 0, 1: 0, 2: 0, 3: 1
-  function (pxData, pixelData, pxPos) {
-    let pixel = pixelData[0];
-    pxData[pxPos] = pixel;
-    pxData[pxPos + 1] = pixel;
-    pxData[pxPos + 2] = pixel;
-    pxData[pxPos + 3] = pixelData[1];
-  },
- 
-  // 3 - RGB
-  // 0: 0, 1: 1, 2: 2, 3: 0xff
-  function (pxData, pixelData, pxPos, maxBit) {
-    pxData[pxPos] = pixelData[0];
-    pxData[pxPos + 1] = pixelData[1];
-    pxData[pxPos + 2] = pixelData[2];
-    pxData[pxPos + 3] = maxBit;
-  },
- 
-  // 4 - RGBA
-  // 0: 0, 1: 1, 2: 2, 3: 3
-  function (pxData, pixelData, pxPos) {
-    pxData[pxPos] = pixelData[0];
-    pxData[pxPos + 1] = pixelData[1];
-    pxData[pxPos + 2] = pixelData[2];
-    pxData[pxPos + 3] = pixelData[3];
-  },
-];
- 
-function bitRetriever(data, depth) {
-  let leftOver = [];
-  let i = 0;
- 
-  function split() {
-    Iif (i === data.length) {
-      throw new Error("Ran out of data");
-    }
-    let byte = data[i];
-    i++;
-    let byte8, byte7, byte6, byte5, byte4, byte3, byte2, byte1;
-    switch (depth) {
-      default:
-        throw new Error("unrecognised depth");
-      case 16:
-        byte2 = data[i];
-        i++;
-        leftOver.push((byte << 8) + byte2);
-        break;
-      case 4:
-        byte2 = byte & 0x0f;
-        byte1 = byte >> 4;
-        leftOver.push(byte1, byte2);
-        break;
-      case 2:
-        byte4 = byte & 3;
-        byte3 = (byte >> 2) & 3;
-        byte2 = (byte >> 4) & 3;
-        byte1 = (byte >> 6) & 3;
-        leftOver.push(byte1, byte2, byte3, byte4);
-        break;
-      case 1:
-        byte8 = byte & 1;
-        byte7 = (byte >> 1) & 1;
-        byte6 = (byte >> 2) & 1;
-        byte5 = (byte >> 3) & 1;
-        byte4 = (byte >> 4) & 1;
-        byte3 = (byte >> 5) & 1;
-        byte2 = (byte >> 6) & 1;
-        byte1 = (byte >> 7) & 1;
-        leftOver.push(byte1, byte2, byte3, byte4, byte5, byte6, byte7, byte8);
-        break;
-    }
-  }
- 
-  return {
-    get: function (count) {
-      while (leftOver.length < count) {
-        split();
-      }
-      let returner = leftOver.slice(0, count);
-      leftOver = leftOver.slice(count);
-      return returner;
-    },
-    resetAfterLine: function () {
-      leftOver.length = 0;
-    },
-    end: function () {
-      Iif (i !== data.length) {
-        throw new Error("extra data found");
-      }
-    },
-  };
-}
- 
-function mapImage8Bit(image, pxData, getPxPos, bpp, data, rawPos) {
-  // eslint-disable-line max-params
-  let imageWidth = image.width;
-  let imageHeight = image.height;
-  let imagePass = image.index;
-  for (let y = 0; y < imageHeight; y++) {
-    for (let x = 0; x < imageWidth; x++) {
-      let pxPos = getPxPos(x, y, imagePass);
-      pixelBppMapper[bpp](pxData, data, pxPos, rawPos);
-      rawPos += bpp; //eslint-disable-line no-param-reassign
-    }
-  }
-  return rawPos;
-}
- 
-function mapImageCustomBit(image, pxData, getPxPos, bpp, bits, maxBit) {
-  // eslint-disable-line max-params
-  let imageWidth = image.width;
-  let imageHeight = image.height;
-  let imagePass = image.index;
-  for (let y = 0; y < imageHeight; y++) {
-    for (let x = 0; x < imageWidth; x++) {
-      let pixelData = bits.get(bpp);
-      let pxPos = getPxPos(x, y, imagePass);
-      pixelBppCustomMapper[bpp](pxData, pixelData, pxPos, maxBit);
-    }
-    bits.resetAfterLine();
-  }
-}
- 
-exports.dataToBitMap = function (data, bitmapInfo) {
-  let width = bitmapInfo.width;
-  let height = bitmapInfo.height;
-  let depth = bitmapInfo.depth;
-  let bpp = bitmapInfo.bpp;
-  let interlace = bitmapInfo.interlace;
-  let bits;
- 
-  if (depth !== 8) {
-    bits = bitRetriever(data, depth);
-  }
-  let pxData;
-  if (depth <= 8) {
-    pxData = Buffer.alloc(width * height * 4);
-  } else {
-    pxData = new Uint16Array(width * height * 4);
-  }
-  let maxBit = Math.pow(2, depth) - 1;
-  let rawPos = 0;
-  let images;
-  let getPxPos;
- 
-  if (interlace) {
-    images = interlaceUtils.getImagePasses(width, height);
-    getPxPos = interlaceUtils.getInterlaceIterator(width, height);
-  } else {
-    let nonInterlacedPxPos = 0;
-    getPxPos = function () {
-      let returner = nonInterlacedPxPos;
-      nonInterlacedPxPos += 4;
-      return returner;
-    };
-    images = [{ width: width, height: height }];
-  }
- 
-  for (let imageIndex = 0; imageIndex < images.length; imageIndex++) {
-    if (depth === 8) {
-      rawPos = mapImage8Bit(
-        images[imageIndex],
-        pxData,
-        getPxPos,
-        bpp,
-        data,
-        rawPos
-      );
-    } else {
-      mapImageCustomBit(
-        images[imageIndex],
-        pxData,
-        getPxPos,
-        bpp,
-        bits,
-        maxBit
-      );
-    }
-  }
-  if (depth === 8) {
-    Iif (rawPos !== data.length) {
-      throw new Error("extra data found");
-    }
-  } else {
-    bits.end();
-  }
- 
-  return pxData;
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html deleted file mode 100644 index 50cca2395..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/bitpacker.js.html +++ /dev/null @@ -1,554 +0,0 @@ - - - - - - Code coverage report for bitpacker.js - - - - - - - - - -
-
-

All files bitpacker.js

-
- -
- 11.36% - Statements - 10/88 -
- - -
- 6.12% - Branches - 3/49 -
- - -
- 66.67% - Functions - 2/3 -
- - -
- 11.63% - Lines - 10/86 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159  -  -1x -  -1x -  -325x -  -  -325x -325x -325x -325x -  -325x -  -  -325x -325x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
"use strict";
- 
-let constants = require("./constants");
- 
-module.exports = function (dataIn, width, height, options) {
-  let outHasAlpha =
-    [constants.COLORTYPE_COLOR_ALPHA, constants.COLORTYPE_ALPHA].indexOf(
-      options.colorType
-    ) !== -1;
-  Eif (options.colorType === options.inputColorType) {
-    let bigEndian = (function () {
-      let buffer = new ArrayBuffer(2);
-      new DataView(buffer).setInt16(0, 256, true /* littleEndian */);
-      // Int16Array uses the platform's endianness.
-      return new Int16Array(buffer)[0] !== 256;
-    })();
-    // If no need to convert to grayscale and alpha is present/absent in both, take a fast route
-    Eif (options.bitDepth === 8 || (options.bitDepth === 16 && bigEndian)) {
-      return dataIn;
-    }
-  }
- 
-  // map to a UInt16 array if data is 16bit, fix endianness below
-  let data = options.bitDepth !== 16 ? dataIn : new Uint16Array(dataIn.buffer);
- 
-  let maxValue = 255;
-  let inBpp = constants.COLORTYPE_TO_BPP_MAP[options.inputColorType];
-  if (inBpp === 4 && !options.inputHasAlpha) {
-    inBpp = 3;
-  }
-  let outBpp = constants.COLORTYPE_TO_BPP_MAP[options.colorType];
-  if (options.bitDepth === 16) {
-    maxValue = 65535;
-    outBpp *= 2;
-  }
-  let outData = Buffer.alloc(width * height * outBpp);
- 
-  let inIndex = 0;
-  let outIndex = 0;
- 
-  let bgColor = options.bgColor || {};
-  if (bgColor.red === undefined) {
-    bgColor.red = maxValue;
-  }
-  if (bgColor.green === undefined) {
-    bgColor.green = maxValue;
-  }
-  if (bgColor.blue === undefined) {
-    bgColor.blue = maxValue;
-  }
- 
-  function getRGBA() {
-    let red;
-    let green;
-    let blue;
-    let alpha = maxValue;
-    switch (options.inputColorType) {
-      case constants.COLORTYPE_COLOR_ALPHA:
-        alpha = data[inIndex + 3];
-        red = data[inIndex];
-        green = data[inIndex + 1];
-        blue = data[inIndex + 2];
-        break;
-      case constants.COLORTYPE_COLOR:
-        red = data[inIndex];
-        green = data[inIndex + 1];
-        blue = data[inIndex + 2];
-        break;
-      case constants.COLORTYPE_ALPHA:
-        alpha = data[inIndex + 1];
-        red = data[inIndex];
-        green = red;
-        blue = red;
-        break;
-      case constants.COLORTYPE_GRAYSCALE:
-        red = data[inIndex];
-        green = red;
-        blue = red;
-        break;
-      default:
-        throw new Error(
-          "input color type:" +
-            options.inputColorType +
-            " is not supported at present"
-        );
-    }
- 
-    if (options.inputHasAlpha) {
-      if (!outHasAlpha) {
-        alpha /= maxValue;
-        red = Math.min(
-          Math.max(Math.round((1 - alpha) * bgColor.red + alpha * red), 0),
-          maxValue
-        );
-        green = Math.min(
-          Math.max(Math.round((1 - alpha) * bgColor.green + alpha * green), 0),
-          maxValue
-        );
-        blue = Math.min(
-          Math.max(Math.round((1 - alpha) * bgColor.blue + alpha * blue), 0),
-          maxValue
-        );
-      }
-    }
-    return { red: red, green: green, blue: blue, alpha: alpha };
-  }
- 
-  for (let y = 0; y < height; y++) {
-    for (let x = 0; x < width; x++) {
-      let rgba = getRGBA(data, inIndex);
- 
-      switch (options.colorType) {
-        case constants.COLORTYPE_COLOR_ALPHA:
-        case constants.COLORTYPE_COLOR:
-          if (options.bitDepth === 8) {
-            outData[outIndex] = rgba.red;
-            outData[outIndex + 1] = rgba.green;
-            outData[outIndex + 2] = rgba.blue;
-            if (outHasAlpha) {
-              outData[outIndex + 3] = rgba.alpha;
-            }
-          } else {
-            outData.writeUInt16BE(rgba.red, outIndex);
-            outData.writeUInt16BE(rgba.green, outIndex + 2);
-            outData.writeUInt16BE(rgba.blue, outIndex + 4);
-            if (outHasAlpha) {
-              outData.writeUInt16BE(rgba.alpha, outIndex + 6);
-            }
-          }
-          break;
-        case constants.COLORTYPE_ALPHA:
-        case constants.COLORTYPE_GRAYSCALE: {
-          // Convert to grayscale and alpha
-          let grayscale = (rgba.red + rgba.green + rgba.blue) / 3;
-          if (options.bitDepth === 8) {
-            outData[outIndex] = grayscale;
-            if (outHasAlpha) {
-              outData[outIndex + 1] = rgba.alpha;
-            }
-          } else {
-            outData.writeUInt16BE(grayscale, outIndex);
-            if (outHasAlpha) {
-              outData.writeUInt16BE(rgba.alpha, outIndex + 2);
-            }
-          }
-          break;
-        }
-        default:
-          throw new Error("unrecognised color Type " + options.colorType);
-      }
- 
-      inIndex += inBpp;
-      outIndex += outBpp;
-    }
-  }
- 
-  return outData;
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/block-navigation.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/block-navigation.js deleted file mode 100755 index 81d08c062..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/block-navigation.js +++ /dev/null @@ -1,77 +0,0 @@ -/* eslint-disable */ -var jumpToCode = (function init() { - // Classes of code we would like to highlight in the file view - var missingCoverageClasses = [".cbranch-no", ".cstat-no", ".fstat-no"]; - - // Elements to highlight in the file listing view - var fileListingElements = ["td.pct.low"]; - - // We don't want to select elements that are direct descendants of another match - var notSelector = ":not(" + missingCoverageClasses.join("):not(") + ") > "; // becomes `:not(a):not(b) > ` - - // Selecter that finds elements on the page to which we can jump - var selector = - fileListingElements.join(", ") + - ", " + - notSelector + - missingCoverageClasses.join(", " + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` - - // The NodeList of matching elements - var missingCoverageElements = document.querySelectorAll(selector); - - var currentIndex; - - function toggleClass(index) { - missingCoverageElements.item(currentIndex).classList.remove("highlighted"); - missingCoverageElements.item(index).classList.add("highlighted"); - } - - function makeCurrent(index) { - toggleClass(index); - currentIndex = index; - missingCoverageElements.item(index).scrollIntoView({ - behavior: "smooth", - block: "center", - inline: "center", - }); - } - - function goToPrevious() { - var nextIndex = 0; - if (typeof currentIndex !== "number" || currentIndex === 0) { - nextIndex = missingCoverageElements.length - 1; - } else if (missingCoverageElements.length > 1) { - nextIndex = currentIndex - 1; - } - - makeCurrent(nextIndex); - } - - function goToNext() { - var nextIndex = 0; - - if ( - typeof currentIndex === "number" && - currentIndex < missingCoverageElements.length - 1 - ) { - nextIndex = currentIndex + 1; - } - - makeCurrent(nextIndex); - } - - return function jump(event) { - switch (event.which) { - case 78: // n - case 74: // j - goToNext(); - break; - case 66: // b - case 75: // k - case 80: // p - goToPrevious(); - break; - } - }; -})(); -window.addEventListener("keydown", jumpToCode); diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html deleted file mode 100644 index 552ffbafa..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/chunkstream.js.html +++ /dev/null @@ -1,647 +0,0 @@ - - - - - - Code coverage report for chunkstream.js - - - - - - - - - -
-
-

All files chunkstream.js

-
- -
- 90.11% - Statements - 82/91 -
- - -
- 81.4% - Branches - 35/43 -
- - -
- 100% - Functions - 10/10 -
- - -
- 90.11% - Lines - 82/91 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172 -173 -174 -175 -176 -177 -178 -179 -180 -181 -182 -183 -184 -185 -186 -187 -188 -189 -190  -  -1x -1x -  -1x -529x -  -529x -529x -  -529x -529x -  -529x -529x -  -1x -  -1x -13318x -  -  -  -  -  -13318x -  -13318x -  -  -13318x -  -  -  -  -  -  -  -  -1x -943x -  -  -  -  -  -943x -943x -  -  -  -  -943x -943x -  -943x -  -  -943x -346x -  -  -943x -  -  -1x -311x -  -  -  -311x -  -  -311x -  -  -  -  -311x -309x -  -2x -2x -  -  -  -1x -  -1x -311x -3x -  -  -311x -  -  -1x -327x -  -  -  -327x -327x -327x -  -327x -  -  -1x -  -741x -  -  -741x -  -  -741x -568x -568x -  -568x -  -  -173x -173x -  -173x -  -  -  -1x -12408x -  -12408x -12408x -12408x -  -  -12408x -12617x -12617x -  -12617x -12617x -  -  -12617x -11863x -  -  -  -  -12408x -532x -  -  -12408x -  -12408x -  -  -1x -14263x -  -14263x -15656x -  -  -15656x -741x -14915x -  -  -12408x -  -  -  -2507x -  -  -  -14263x -2x -  -  -  -  -  - 
"use strict";
- 
-let util = require("util");
-let Stream = require("stream");
- 
-let ChunkStream = (module.exports = function () {
-  Stream.call(this);
- 
-  this._buffers = [];
-  this._buffered = 0;
- 
-  this._reads = [];
-  this._paused = false;
- 
-  this._encoding = "utf8";
-  this.writable = true;
-});
-util.inherits(ChunkStream, Stream);
- 
-ChunkStream.prototype.read = function (length, callback) {
-  this._reads.push({
-    length: Math.abs(length), // if length < 0 then at most this length
-    allowLess: length < 0,
-    func: callback,
-  });
- 
-  process.nextTick(
-    function () {
-      this._process();
- 
-      // its paused and there is not enought data then ask for more
-      Iif (this._paused && this._reads.length > 0) {
-        this._paused = false;
- 
-        this.emit("drain");
-      }
-    }.bind(this)
-  );
-};
- 
-ChunkStream.prototype.write = function (data, encoding) {
-  Iif (!this.writable) {
-    this.emit("error", new Error("Stream not writable"));
-    return false;
-  }
- 
-  let dataBuffer;
-  Eif (Buffer.isBuffer(data)) {
-    dataBuffer = data;
-  } else {
-    dataBuffer = Buffer.from(data, encoding || this._encoding);
-  }
- 
-  this._buffers.push(dataBuffer);
-  this._buffered += dataBuffer.length;
- 
-  this._process();
- 
-  // ok if there are no more read requests
-  if (this._reads && this._reads.length === 0) {
-    this._paused = true;
-  }
- 
-  return this.writable && !this._paused;
-};
- 
-ChunkStream.prototype.end = function (data, encoding) {
-  Iif (data) {
-    this.write(data, encoding);
-  }
- 
-  this.writable = false;
- 
-  // already destroyed
-  Iif (!this._buffers) {
-    return;
-  }
- 
-  // enqueue or handle end
-  if (this._buffers.length === 0) {
-    this._end();
-  } else {
-    this._buffers.push(null);
-    this._process();
-  }
-};
- 
-ChunkStream.prototype.destroySoon = ChunkStream.prototype.end;
- 
-ChunkStream.prototype._end = function () {
-  if (this._reads.length > 0) {
-    this.emit("error", new Error("Unexpected end of input"));
-  }
- 
-  this.destroy();
-};
- 
-ChunkStream.prototype.destroy = function () {
-  Iif (!this._buffers) {
-    return;
-  }
- 
-  this.writable = false;
-  this._reads = null;
-  this._buffers = null;
- 
-  this.emit("close");
-};
- 
-ChunkStream.prototype._processReadAllowingLess = function (read) {
-  // ok there is any data so that we can satisfy this request
-  this._reads.shift(); // == read
- 
-  // first we need to peek into first buffer
-  let smallerBuf = this._buffers[0];
- 
-  // ok there is more data than we need
-  if (smallerBuf.length > read.length) {
-    this._buffered -= read.length;
-    this._buffers[0] = smallerBuf.slice(read.length);
- 
-    read.func.call(this, smallerBuf.slice(0, read.length));
-  } else {
-    // ok this is less than maximum length so use it all
-    this._buffered -= smallerBuf.length;
-    this._buffers.shift(); // == smallerBuf
- 
-    read.func.call(this, smallerBuf);
-  }
-};
- 
-ChunkStream.prototype._processRead = function (read) {
-  this._reads.shift(); // == read
- 
-  let pos = 0;
-  let count = 0;
-  let data = Buffer.alloc(read.length);
- 
-  // create buffer for all data
-  while (pos < read.length) {
-    let buf = this._buffers[count++];
-    let len = Math.min(buf.length, read.length - pos);
- 
-    buf.copy(data, pos, 0, len);
-    pos += len;
- 
-    // last buffer wasn't used all so just slice it and leave
-    if (len !== buf.length) {
-      this._buffers[--count] = buf.slice(len);
-    }
-  }
- 
-  // remove all used buffers
-  if (count > 0) {
-    this._buffers.splice(0, count);
-  }
- 
-  this._buffered -= read.length;
- 
-  read.func.call(this, data);
-};
- 
-ChunkStream.prototype._process = function () {
-  try {
-    // as long as there is any data and read requests
-    while (this._buffered > 0 && this._reads && this._reads.length > 0) {
-      let read = this._reads[0];
- 
-      // read any data (but no more than length)
-      if (read.allowLess) {
-        this._processReadAllowingLess(read);
-      } else if (this._buffered >= read.length) {
-        // ok we can meet some expectations
- 
-        this._processRead(read);
-      } else {
-        // not enought data to satisfy first request in queue
-        // so we need to wait for more
-        break;
-      }
-    }
- 
-    if (this._buffers && !this.writable) {
-      this._end();
-    }
-  } catch (ex) {
-    this.emit("error", ex);
-  }
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/constants.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/constants.js.html deleted file mode 100644 index a6edd802a..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/constants.js.html +++ /dev/null @@ -1,176 +0,0 @@ - - - - - - Code coverage report for constants.js - - - - - - - - - -
-
-

All files constants.js

-
- -
- 100% - Statements - 1/1 -
- - -
- 100% - Branches - 0/0 -
- - -
- 100% - Functions - 0/0 -
- - -
- 100% - Lines - 1/1 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33  -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
"use strict";
- 
-module.exports = {
-  PNG_SIGNATURE: [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a],
- 
-  TYPE_IHDR: 0x49484452,
-  TYPE_IEND: 0x49454e44,
-  TYPE_IDAT: 0x49444154,
-  TYPE_PLTE: 0x504c5445,
-  TYPE_tRNS: 0x74524e53, // eslint-disable-line camelcase
-  TYPE_gAMA: 0x67414d41, // eslint-disable-line camelcase
- 
-  // color-type bits
-  COLORTYPE_GRAYSCALE: 0,
-  COLORTYPE_PALETTE: 1,
-  COLORTYPE_COLOR: 2,
-  COLORTYPE_ALPHA: 4, // e.g. grayscale and alpha
- 
-  // color-type combinations
-  COLORTYPE_PALETTE_COLOR: 3,
-  COLORTYPE_COLOR_ALPHA: 6,
- 
-  COLORTYPE_TO_BPP_MAP: {
-    0: 1,
-    2: 3,
-    3: 1,
-    4: 2,
-    6: 4,
-  },
- 
-  GAMMA_DIVISION: 100000,
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/crc.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/crc.js.html deleted file mode 100644 index 53fc72a32..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/crc.js.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - Code coverage report for crc.js - - - - - - - - - -
-
-

All files crc.js

-
- -
- 100% - Statements - 26/26 -
- - -
- 100% - Branches - 2/2 -
- - -
- 100% - Functions - 5/5 -
- - -
- 100% - Lines - 22/22 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41  -  -1x -  -1x -1x -256x -256x -2048x -1024x -  -1024x -  -  -256x -  -  -  -1x -2461x -  -  -1x -4839x -823519x -  -4839x -  -  -1x -2195x -  -  -1x -1592x -1592x -305287x -  -1592x -  - 
"use strict";
- 
-let crcTable = [];
- 
-(function () {
-  for (let i = 0; i < 256; i++) {
-    let currentCrc = i;
-    for (let j = 0; j < 8; j++) {
-      if (currentCrc & 1) {
-        currentCrc = 0xedb88320 ^ (currentCrc >>> 1);
-      } else {
-        currentCrc = currentCrc >>> 1;
-      }
-    }
-    crcTable[i] = currentCrc;
-  }
-})();
- 
-let CrcCalculator = (module.exports = function () {
-  this._crc = -1;
-});
- 
-CrcCalculator.prototype.write = function (data) {
-  for (let i = 0; i < data.length; i++) {
-    this._crc = crcTable[(this._crc ^ data[i]) & 0xff] ^ (this._crc >>> 8);
-  }
-  return true;
-};
- 
-CrcCalculator.prototype.crc32 = function () {
-  return this._crc ^ -1;
-};
- 
-CrcCalculator.crc32 = function (buf) {
-  let crc = -1;
-  for (let i = 0; i < buf.length; i++) {
-    crc = crcTable[(crc ^ buf[i]) & 0xff] ^ (crc >>> 8);
-  }
-  return crc ^ -1;
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/favicon.png b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/favicon.png deleted file mode 100644 index 669181783..000000000 Binary files a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/favicon.png and /dev/null differ diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html deleted file mode 100644 index e718a1a76..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-pack.js.html +++ /dev/null @@ -1,593 +0,0 @@ - - - - - - Code coverage report for filter-pack.js - - - - - - - - - -
-
-

All files filter-pack.js

-
- -
- 95.83% - Statements - 92/96 -
- - -
- 81.82% - Branches - 36/44 -
- - -
- 100% - Functions - 11/11 -
- - -
- 95.24% - Lines - 80/84 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172  -  -1x -  -  -44x -5136x -  -  -  -  -10490x -10490x -  -10490x -2776736x -  -10490x -  -  -  -637x -107032x -107032x -  -107032x -  -  -  -  -10490x -10490x -2776736x -2776736x -  -2776736x -  -  -10490x -  -  -  -2670x -581344x -581344x -  -581344x -  -  -  -  -10490x -10490x -10490x -2776736x -2776736x -  -2776736x -  -  -10490x -  -  -  -208x -204096x -204096x -204096x -  -204096x -  -  -  -  -10490x -10490x -2776736x -2776736x -2776736x -  -2776736x -  -  -10490x -  -  -  -6931x -1879128x -1879128x -  -1879128x -1879128x -  -1879128x -  -  -  -  -10490x -10490x -2776736x -2776736x -  -2776736x -2776736x -  -2776736x -  -  -10490x -  -  -1x -  -  -  -  -  -  -  -1x -  -  -  -  -  -  -  -1x -  -325x -325x -  -  -  -  -  -  -325x -  -  -325x -325x -325x -325x -  -325x -  -325x -10490x -  -10490x -  -10490x -52450x -52450x -35370x -35370x -  -  -  -  -10490x -10490x -10490x -10490x -10490x -  -325x -  - 
"use strict";
- 
-let paethPredictor = require("./paeth-predictor");
- 
-function filterNone(pxData, pxPos, byteWidth, rawData, rawPos) {
-  for (let x = 0; x < byteWidth; x++) {
-    rawData[rawPos + x] = pxData[pxPos + x];
-  }
-}
- 
-function filterSumNone(pxData, pxPos, byteWidth) {
-  let sum = 0;
-  let length = pxPos + byteWidth;
- 
-  for (let i = pxPos; i < length; i++) {
-    sum += Math.abs(pxData[i]);
-  }
-  return sum;
-}
- 
-function filterSub(pxData, pxPos, byteWidth, rawData, rawPos, bpp) {
-  for (let x = 0; x < byteWidth; x++) {
-    let left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
-    let val = pxData[pxPos + x] - left;
- 
-    rawData[rawPos + x] = val;
-  }
-}
- 
-function filterSumSub(pxData, pxPos, byteWidth, bpp) {
-  let sum = 0;
-  for (let x = 0; x < byteWidth; x++) {
-    let left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
-    let val = pxData[pxPos + x] - left;
- 
-    sum += Math.abs(val);
-  }
- 
-  return sum;
-}
- 
-function filterUp(pxData, pxPos, byteWidth, rawData, rawPos) {
-  for (let x = 0; x < byteWidth; x++) {
-    let up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0;
-    let val = pxData[pxPos + x] - up;
- 
-    rawData[rawPos + x] = val;
-  }
-}
- 
-function filterSumUp(pxData, pxPos, byteWidth) {
-  let sum = 0;
-  let length = pxPos + byteWidth;
-  for (let x = pxPos; x < length; x++) {
-    let up = pxPos > 0 ? pxData[x - byteWidth] : 0;
-    let val = pxData[x] - up;
- 
-    sum += Math.abs(val);
-  }
- 
-  return sum;
-}
- 
-function filterAvg(pxData, pxPos, byteWidth, rawData, rawPos, bpp) {
-  for (let x = 0; x < byteWidth; x++) {
-    let left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
-    let up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0;
-    let val = pxData[pxPos + x] - ((left + up) >> 1);
- 
-    rawData[rawPos + x] = val;
-  }
-}
- 
-function filterSumAvg(pxData, pxPos, byteWidth, bpp) {
-  let sum = 0;
-  for (let x = 0; x < byteWidth; x++) {
-    let left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
-    let up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0;
-    let val = pxData[pxPos + x] - ((left + up) >> 1);
- 
-    sum += Math.abs(val);
-  }
- 
-  return sum;
-}
- 
-function filterPaeth(pxData, pxPos, byteWidth, rawData, rawPos, bpp) {
-  for (let x = 0; x < byteWidth; x++) {
-    let left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
-    let up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0;
-    let upleft =
-      pxPos > 0 && x >= bpp ? pxData[pxPos + x - (byteWidth + bpp)] : 0;
-    let val = pxData[pxPos + x] - paethPredictor(left, up, upleft);
- 
-    rawData[rawPos + x] = val;
-  }
-}
- 
-function filterSumPaeth(pxData, pxPos, byteWidth, bpp) {
-  let sum = 0;
-  for (let x = 0; x < byteWidth; x++) {
-    let left = x >= bpp ? pxData[pxPos + x - bpp] : 0;
-    let up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0;
-    let upleft =
-      pxPos > 0 && x >= bpp ? pxData[pxPos + x - (byteWidth + bpp)] : 0;
-    let val = pxData[pxPos + x] - paethPredictor(left, up, upleft);
- 
-    sum += Math.abs(val);
-  }
- 
-  return sum;
-}
- 
-let filters = {
-  0: filterNone,
-  1: filterSub,
-  2: filterUp,
-  3: filterAvg,
-  4: filterPaeth,
-};
- 
-let filterSums = {
-  0: filterSumNone,
-  1: filterSumSub,
-  2: filterSumUp,
-  3: filterSumAvg,
-  4: filterSumPaeth,
-};
- 
-module.exports = function (pxData, width, height, options, bpp) {
-  let filterTypes;
-  Eif (!("filterType" in options) || options.filterType === -1) {
-    filterTypes = [0, 1, 2, 3, 4];
-  } else if (typeof options.filterType === "number") {
-    filterTypes = [options.filterType];
-  } else {
-    throw new Error("unrecognised filter types");
-  }
- 
-  Iif (options.bitDepth === 16) {
-    bpp *= 2;
-  }
-  let byteWidth = width * bpp;
-  let rawPos = 0;
-  let pxPos = 0;
-  let rawData = Buffer.alloc((byteWidth + 1) * height);
- 
-  let sel = filterTypes[0];
- 
-  for (let y = 0; y < height; y++) {
-    Eif (filterTypes.length > 1) {
-      // find best filter for this line (with lowest sum of values)
-      let min = Infinity;
- 
-      for (let i = 0; i < filterTypes.length; i++) {
-        let sum = filterSums[filterTypes[i]](pxData, pxPos, byteWidth, bpp);
-        if (sum < min) {
-          sel = filterTypes[i];
-          min = sum;
-        }
-      }
-    }
- 
-    rawData[rawPos] = sel;
-    rawPos++;
-    filters[sel](pxData, pxPos, byteWidth, rawData, rawPos, bpp);
-    rawPos += byteWidth;
-    pxPos += byteWidth;
-  }
-  return rawData;
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html deleted file mode 100644 index 06f25f17a..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-parse-async.js.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - - Code coverage report for filter-parse-async.js - - - - - - - - - -
-
-

All files filter-parse-async.js

-
- -
- 100% - Statements - 12/12 -
- - -
- 100% - Branches - 0/0 -
- - -
- 100% - Functions - 3/3 -
- - -
- 100% - Lines - 12/12 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25  -  -1x -1x -1x -  -1x -176x -  -176x -176x -176x -  -  -9057x -  -  -173x -  -  -  -176x -  -1x - 
"use strict";
- 
-let util = require("util");
-let ChunkStream = require("./chunkstream");
-let Filter = require("./filter-parse");
- 
-let FilterAsync = (module.exports = function (bitmapInfo) {
-  ChunkStream.call(this);
- 
-  let buffers = [];
-  let that = this;
-  this._filter = new Filter(bitmapInfo, {
-    read: this.read.bind(this),
-    write: function (buffer) {
-      buffers.push(buffer);
-    },
-    complete: function () {
-      that.emit("complete", Buffer.concat(buffers));
-    },
-  });
- 
-  this._filter.start();
-});
-util.inherits(FilterAsync, ChunkStream);
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html deleted file mode 100644 index df91a3542..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-parse-sync.js.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - Code coverage report for filter-parse-sync.js - - - - - - - - - -
-
-

All files filter-parse-sync.js

-
- -
- 100% - Statements - 10/10 -
- - -
- 100% - Branches - 0/0 -
- - -
- 100% - Functions - 3/3 -
- - -
- 100% - Lines - 10/10 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22  -  -1x -1x -  -1x -162x -162x -162x -  -  -6337x -  -  -  -  -162x -162x -  -162x -  - 
"use strict";
- 
-let SyncReader = require("./sync-reader");
-let Filter = require("./filter-parse");
- 
-exports.process = function (inBuffer, bitmapInfo) {
-  let outBuffers = [];
-  let reader = new SyncReader(inBuffer);
-  let filter = new Filter(bitmapInfo, {
-    read: reader.read.bind(reader),
-    write: function (bufferPart) {
-      outBuffers.push(bufferPart);
-    },
-    complete: function () {},
-  });
- 
-  filter.start();
-  reader.process();
- 
-  return Buffer.concat(outBuffers);
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html deleted file mode 100644 index 945757ceb..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/filter-parse.js.html +++ /dev/null @@ -1,611 +0,0 @@ - - - - - - Code coverage report for filter-parse.js - - - - - - - - - -
-
-

All files filter-parse.js

-
- -
- 98.96% - Statements - 95/96 -
- - -
- 97.14% - Branches - 34/35 -
- - -
- 100% - Functions - 8/8 -
- - -
- 98.9% - Lines - 90/91 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172 -173 -174 -175 -176 -177 -178  -  -1x -1x -  -  -742x -742x -531x -  -742x -  -  -1x -338x -338x -338x -338x -338x -  -338x -338x -338x -  -338x -338x -338x -72x -72x -476x -  -  -  -  -  -  -266x -  -  -  -  -  -  -  -  -  -  -338x -127x -211x -66x -  -145x -  -  -  -1x -338x -  -  -  -  -  -1x -  -  -  -  -1939x -1939x -  -1939x -3563504x -3563504x -3563504x -  -  -  -1x -  -  -  -  -800x -  -800x -330256x -330256x -330256x -  -  -  -1x -  -  -  -  -172x -172x -172x -  -172x -9952x -9952x -9952x -9952x -9952x -  -  -  -1x -  -  -  -  -4165x -4165x -4165x -  -4165x -1152544x -1152544x -1152544x -1152544x -1152544x -1152544x -  -  -  -1x -15394x -  -15394x -15394x -  -15394x -8318x -  -7076x -  -7076x -  -1939x -1939x -  -800x -800x -  -172x -172x -  -4165x -4165x -  -  -  -  -  -15394x -  -15394x -15394x -739x -739x -739x -  -14655x -  -  -15394x -  -15059x -  -335x -335x -  -  - 
"use strict";
- 
-let interlaceUtils = require("./interlace");
-let paethPredictor = require("./paeth-predictor");
- 
-function getByteWidth(width, bpp, depth) {
-  let byteWidth = width * bpp;
-  if (depth !== 8) {
-    byteWidth = Math.ceil(byteWidth / (8 / depth));
-  }
-  return byteWidth;
-}
- 
-let Filter = (module.exports = function (bitmapInfo, dependencies) {
-  let width = bitmapInfo.width;
-  let height = bitmapInfo.height;
-  let interlace = bitmapInfo.interlace;
-  let bpp = bitmapInfo.bpp;
-  let depth = bitmapInfo.depth;
- 
-  this.read = dependencies.read;
-  this.write = dependencies.write;
-  this.complete = dependencies.complete;
- 
-  this._imageIndex = 0;
-  this._images = [];
-  if (interlace) {
-    let passes = interlaceUtils.getImagePasses(width, height);
-    for (let i = 0; i < passes.length; i++) {
-      this._images.push({
-        byteWidth: getByteWidth(passes[i].width, bpp, depth),
-        height: passes[i].height,
-        lineIndex: 0,
-      });
-    }
-  } else {
-    this._images.push({
-      byteWidth: getByteWidth(width, bpp, depth),
-      height: height,
-      lineIndex: 0,
-    });
-  }
- 
-  // when filtering the line we look at the pixel to the left
-  // the spec also says it is done on a byte level regardless of the number of pixels
-  // so if the depth is byte compatible (8 or 16) we subtract the bpp in order to compare back
-  // a pixel rather than just a different byte part. However if we are sub byte, we ignore.
-  if (depth === 8) {
-    this._xComparison = bpp;
-  } else if (depth === 16) {
-    this._xComparison = bpp * 2;
-  } else {
-    this._xComparison = 1;
-  }
-});
- 
-Filter.prototype.start = function () {
-  this.read(
-    this._images[this._imageIndex].byteWidth + 1,
-    this._reverseFilterLine.bind(this)
-  );
-};
- 
-Filter.prototype._unFilterType1 = function (
-  rawData,
-  unfilteredLine,
-  byteWidth
-) {
-  let xComparison = this._xComparison;
-  let xBiggerThan = xComparison - 1;
- 
-  for (let x = 0; x < byteWidth; x++) {
-    let rawByte = rawData[1 + x];
-    let f1Left = x > xBiggerThan ? unfilteredLine[x - xComparison] : 0;
-    unfilteredLine[x] = rawByte + f1Left;
-  }
-};
- 
-Filter.prototype._unFilterType2 = function (
-  rawData,
-  unfilteredLine,
-  byteWidth
-) {
-  let lastLine = this._lastLine;
- 
-  for (let x = 0; x < byteWidth; x++) {
-    let rawByte = rawData[1 + x];
-    let f2Up = lastLine ? lastLine[x] : 0;
-    unfilteredLine[x] = rawByte + f2Up;
-  }
-};
- 
-Filter.prototype._unFilterType3 = function (
-  rawData,
-  unfilteredLine,
-  byteWidth
-) {
-  let xComparison = this._xComparison;
-  let xBiggerThan = xComparison - 1;
-  let lastLine = this._lastLine;
- 
-  for (let x = 0; x < byteWidth; x++) {
-    let rawByte = rawData[1 + x];
-    let f3Up = lastLine ? lastLine[x] : 0;
-    let f3Left = x > xBiggerThan ? unfilteredLine[x - xComparison] : 0;
-    let f3Add = Math.floor((f3Left + f3Up) / 2);
-    unfilteredLine[x] = rawByte + f3Add;
-  }
-};
- 
-Filter.prototype._unFilterType4 = function (
-  rawData,
-  unfilteredLine,
-  byteWidth
-) {
-  let xComparison = this._xComparison;
-  let xBiggerThan = xComparison - 1;
-  let lastLine = this._lastLine;
- 
-  for (let x = 0; x < byteWidth; x++) {
-    let rawByte = rawData[1 + x];
-    let f4Up = lastLine ? lastLine[x] : 0;
-    let f4Left = x > xBiggerThan ? unfilteredLine[x - xComparison] : 0;
-    let f4UpLeft = x > xBiggerThan && lastLine ? lastLine[x - xComparison] : 0;
-    let f4Add = paethPredictor(f4Left, f4Up, f4UpLeft);
-    unfilteredLine[x] = rawByte + f4Add;
-  }
-};
- 
-Filter.prototype._reverseFilterLine = function (rawData) {
-  let filter = rawData[0];
-  let unfilteredLine;
-  let currentImage = this._images[this._imageIndex];
-  let byteWidth = currentImage.byteWidth;
- 
-  if (filter === 0) {
-    unfilteredLine = rawData.slice(1, byteWidth + 1);
-  } else {
-    unfilteredLine = Buffer.alloc(byteWidth);
- 
-    switch (filter) {
-      case 1:
-        this._unFilterType1(rawData, unfilteredLine, byteWidth);
-        break;
-      case 2:
-        this._unFilterType2(rawData, unfilteredLine, byteWidth);
-        break;
-      case 3:
-        this._unFilterType3(rawData, unfilteredLine, byteWidth);
-        break;
-      case 4:
-        this._unFilterType4(rawData, unfilteredLine, byteWidth);
-        break;
-      default:
-        throw new Error("Unrecognised filter type - " + filter);
-    }
-  }
- 
-  this.write(unfilteredLine);
- 
-  currentImage.lineIndex++;
-  if (currentImage.lineIndex >= currentImage.height) {
-    this._lastLine = null;
-    this._imageIndex++;
-    currentImage = this._images[this._imageIndex];
-  } else {
-    this._lastLine = unfilteredLine;
-  }
- 
-  if (currentImage) {
-    // read, using the byte width that may be from the new current image
-    this.read(currentImage.byteWidth + 1, this._reverseFilterLine.bind(this));
-  } else {
-    this._lastLine = null;
-    this.complete();
-  }
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html deleted file mode 100644 index c61afcfd4..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/format-normaliser.js.html +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - Code coverage report for format-normaliser.js - - - - - - - - - -
-
-

All files format-normaliser.js

-
- -
- 98.21% - Statements - 55/56 -
- - -
- 95.24% - Branches - 20/21 -
- - -
- 100% - Functions - 4/4 -
- - -
- 97.87% - Lines - 46/47 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94  -  -  -131x -  -131x -4912x -1418436x -  -1418436x -  -  -  -1418436x -5673744x -  -1418436x -  -  -  -  -  -12x -12x -384x -12288x -  -12288x -6144x -2762x -  -6144x -  -  -  -  -2718x -  -12288x -5480x -21920x -  -  -12288x -  -  -  -  -  -106x -106x -106x -  -106x -3392x -108544x -434176x -  -  -  -108544x -  -  -  -  -1x -335x -335x -335x -335x -335x -335x -  -335x -  -335x -  -131x -  -204x -12x -  -  -204x -  -106x -66x -  -106x -  -  -335x -  - 
"use strict";
- 
-function dePalette(indata, outdata, width, height, palette) {
-  let pxPos = 0;
-  // use values from palette
-  for (let y = 0; y < height; y++) {
-    for (let x = 0; x < width; x++) {
-      let color = palette[indata[pxPos]];
- 
-      Iif (!color) {
-        throw new Error("index " + indata[pxPos] + " not in palette");
-      }
- 
-      for (let i = 0; i < 4; i++) {
-        outdata[pxPos + i] = color[i];
-      }
-      pxPos += 4;
-    }
-  }
-}
- 
-function replaceTransparentColor(indata, outdata, width, height, transColor) {
-  let pxPos = 0;
-  for (let y = 0; y < height; y++) {
-    for (let x = 0; x < width; x++) {
-      let makeTrans = false;
- 
-      if (transColor.length === 1) {
-        if (transColor[0] === indata[pxPos]) {
-          makeTrans = true;
-        }
-      } else if (
-        transColor[0] === indata[pxPos] &&
-        transColor[1] === indata[pxPos + 1] &&
-        transColor[2] === indata[pxPos + 2]
-      ) {
-        makeTrans = true;
-      }
-      if (makeTrans) {
-        for (let i = 0; i < 4; i++) {
-          outdata[pxPos + i] = 0;
-        }
-      }
-      pxPos += 4;
-    }
-  }
-}
- 
-function scaleDepth(indata, outdata, width, height, depth) {
-  let maxOutSample = 255;
-  let maxInSample = Math.pow(2, depth) - 1;
-  let pxPos = 0;
- 
-  for (let y = 0; y < height; y++) {
-    for (let x = 0; x < width; x++) {
-      for (let i = 0; i < 4; i++) {
-        outdata[pxPos + i] = Math.floor(
-          (indata[pxPos + i] * maxOutSample) / maxInSample + 0.5
-        );
-      }
-      pxPos += 4;
-    }
-  }
-}
- 
-module.exports = function (indata, imageData) {
-  let depth = imageData.depth;
-  let width = imageData.width;
-  let height = imageData.height;
-  let colorType = imageData.colorType;
-  let transColor = imageData.transColor;
-  let palette = imageData.palette;
- 
-  let outdata = indata; // only different for 16 bits
- 
-  if (colorType === 3) {
-    // paletted
-    dePalette(indata, outdata, width, height, palette);
-  } else {
-    if (transColor) {
-      replaceTransparentColor(indata, outdata, width, height, transColor);
-    }
-    // if it needs scaling
-    if (depth !== 8) {
-      // if we need to change the buffer size
-      if (depth === 16) {
-        outdata = Buffer.alloc(width * height * 4);
-      }
-      scaleDepth(indata, outdata, width, height, depth);
-    }
-  }
-  return outdata;
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/index.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/index.html deleted file mode 100644 index 51ecafd0c..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/index.html +++ /dev/null @@ -1,426 +0,0 @@ - - - - - - Code coverage report for All files - - - - - - - - - -
-
-

All files

-
- -
- 82.72% - Statements - 1034/1250 -
- - -
- 67.59% - Branches - 317/469 -
- - -
- 90.26% - Functions - 139/154 -
- - -
- 82.53% - Lines - 992/1202 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
bitmapper.js -
-
94.37%134/14272.41%21/2989.47%17/1994.16%129/137
bitpacker.js -
-
11.36%10/886.12%3/4966.67%2/311.63%10/86
chunkstream.js -
-
90.11%82/9181.4%35/43100%10/1090.11%82/91
constants.js -
-
100%1/1100%0/0100%0/0100%1/1
crc.js -
-
100%26/26100%2/2100%5/5100%22/22
filter-pack.js -
-
95.83%92/9681.82%36/44100%11/1195.24%80/84
filter-parse-async.js -
-
100%12/12100%0/0100%3/3100%12/12
filter-parse-sync.js -
-
100%10/10100%0/0100%3/3100%10/10
filter-parse.js -
-
98.96%95/9697.14%34/35100%8/898.9%90/91
format-normaliser.js -
-
98.21%55/5695.24%20/21100%4/497.87%46/47
interlace.js -
-
100%32/32100%8/8100%3/3100%29/29
packer-async.js -
-
100%24/2475%3/4100%4/4100%24/24
packer-sync.js -
-
25%6/248.33%1/120%0/125%6/24
packer.js -
-
94.74%54/5767.86%19/28100%9/994.74%54/57
paeth-predictor.js -
-
100%10/10100%6/6100%1/1100%10/10
parser-async.js -
-
88.75%71/8072.73%16/2284.62%11/1388.75%71/80
parser-sync.js -
-
93.33%42/4578.57%11/14100%8/893.33%42/45
parser.js -
-
90.57%144/15985.45%47/55100%20/2090.32%140/155
png-sync.js -
-
83.33%5/6100%2/250%1/283.33%5/6
png.js -
-
54.17%52/9641.18%14/3456.25%9/1656.52%52/92
sync-inflate.js -
-
75.31%61/8162%31/5087.5%7/875.31%61/81
sync-reader.js -
-
88.89%16/1872.73%8/11100%3/388.89%16/18
-
-
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/interlace.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/interlace.js.html deleted file mode 100644 index d67b08787..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/interlace.js.html +++ /dev/null @@ -1,365 +0,0 @@ - - - - - - Code coverage report for interlace.js - - - - - - - - - -
-
-

All files interlace.js

-
- -
- 100% - Statements - 32/32 -
- - -
- 100% - Branches - 8/8 -
- - -
- 100% - Functions - 3/3 -
- - -
- 100% - Lines - 29/29 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96  -  -  -  -  -  -  -  -  -  -  -  -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -1x -144x -144x -144x -144x -144x -144x -1008x -1008x -1008x -1008x -1556x -672x -  -884x -  -  -1008x -1360x -552x -  -808x -  -  -1008x -952x -  -  -144x -  -  -1x -72x -324850x -  -324850x -  -324850x -  -324850x -  -324850x -  -  - 
"use strict";
- 
-// Adam 7
-//   0 1 2 3 4 5 6 7
-// 0 x 6 4 6 x 6 4 6
-// 1 7 7 7 7 7 7 7 7
-// 2 5 6 5 6 5 6 5 6
-// 3 7 7 7 7 7 7 7 7
-// 4 3 6 4 6 3 6 4 6
-// 5 7 7 7 7 7 7 7 7
-// 6 5 6 5 6 5 6 5 6
-// 7 7 7 7 7 7 7 7 7
- 
-let imagePasses = [
-  {
-    // pass 1 - 1px
-    x: [0],
-    y: [0],
-  },
-  {
-    // pass 2 - 1px
-    x: [4],
-    y: [0],
-  },
-  {
-    // pass 3 - 2px
-    x: [0, 4],
-    y: [4],
-  },
-  {
-    // pass 4 - 4px
-    x: [2, 6],
-    y: [0, 4],
-  },
-  {
-    // pass 5 - 8px
-    x: [0, 2, 4, 6],
-    y: [2, 6],
-  },
-  {
-    // pass 6 - 16px
-    x: [1, 3, 5, 7],
-    y: [0, 2, 4, 6],
-  },
-  {
-    // pass 7 - 32px
-    x: [0, 1, 2, 3, 4, 5, 6, 7],
-    y: [1, 3, 5, 7],
-  },
-];
- 
-exports.getImagePasses = function (width, height) {
-  let images = [];
-  let xLeftOver = width % 8;
-  let yLeftOver = height % 8;
-  let xRepeats = (width - xLeftOver) / 8;
-  let yRepeats = (height - yLeftOver) / 8;
-  for (let i = 0; i < imagePasses.length; i++) {
-    let pass = imagePasses[i];
-    let passWidth = xRepeats * pass.x.length;
-    let passHeight = yRepeats * pass.y.length;
-    for (let j = 0; j < pass.x.length; j++) {
-      if (pass.x[j] < xLeftOver) {
-        passWidth++;
-      } else {
-        break;
-      }
-    }
-    for (let j = 0; j < pass.y.length; j++) {
-      if (pass.y[j] < yLeftOver) {
-        passHeight++;
-      } else {
-        break;
-      }
-    }
-    if (passWidth > 0 && passHeight > 0) {
-      images.push({ width: passWidth, height: passHeight, index: i });
-    }
-  }
-  return images;
-};
- 
-exports.getInterlaceIterator = function (width) {
-  return function (x, y, pass) {
-    let outerXLeftOver = x % imagePasses[pass].x.length;
-    let outerX =
-      ((x - outerXLeftOver) / imagePasses[pass].x.length) * 8 +
-      imagePasses[pass].x[outerXLeftOver];
-    let outerYLeftOver = y % imagePasses[pass].y.length;
-    let outerY =
-      ((y - outerYLeftOver) / imagePasses[pass].y.length) * 8 +
-      imagePasses[pass].y[outerYLeftOver];
-    return outerX * 4 + outerY * width * 4;
-  };
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/packer-async.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/packer-async.js.html deleted file mode 100644 index 55365c71c..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/packer-async.js.html +++ /dev/null @@ -1,230 +0,0 @@ - - - - - - Code coverage report for packer-async.js - - - - - - - - - -
-
-

All files packer-async.js

-
- -
- 100% - Statements - 24/24 -
- - -
- 75% - Branches - 3/4 -
- - -
- 100% - Functions - 4/4 -
- - -
- 100% - Lines - 24/24 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51  -  -1x -1x -1x -1x -  -1x -353x -  -353x -  -353x -353x -  -353x -  -1x -  -1x -  -325x -325x -  -325x -290x -  -  -325x -  -  -325x -  -325x -  -  -652x -  -  -  -325x -  -  -325x -325x -  -  -  -325x -  - 
"use strict";
- 
-let util = require("util");
-let Stream = require("stream");
-let constants = require("./constants");
-let Packer = require("./packer");
- 
-let PackerAsync = (module.exports = function (opt) {
-  Stream.call(this);
- 
-  let options = opt || {};
- 
-  this._packer = new Packer(options);
-  this._deflate = this._packer.createDeflate();
- 
-  this.readable = true;
-});
-util.inherits(PackerAsync, Stream);
- 
-PackerAsync.prototype.pack = function (data, width, height, gamma) {
-  // Signature
-  this.emit("data", Buffer.from(constants.PNG_SIGNATURE));
-  this.emit("data", this._packer.packIHDR(width, height));
- 
-  if (gamma) {
-    this.emit("data", this._packer.packGAMA(gamma));
-  }
- 
-  let filteredData = this._packer.filterData(data, width, height);
- 
-  // compress it
-  this._deflate.on("error", this.emit.bind(this, "error"));
- 
-  this._deflate.on(
-    "data",
-    function (compressedData) {
-      this.emit("data", this._packer.packIDAT(compressedData));
-    }.bind(this)
-  );
- 
-  this._deflate.on(
-    "end",
-    function () {
-      this.emit("data", this._packer.packIEND());
-      this.emit("end");
-    }.bind(this)
-  );
- 
-  this._deflate.end(filteredData);
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html deleted file mode 100644 index 86283b563..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/packer-sync.js.html +++ /dev/null @@ -1,248 +0,0 @@ - - - - - - Code coverage report for packer-sync.js - - - - - - - - - -
-
-

All files packer-sync.js

-
- -
- 25% - Statements - 6/24 -
- - -
- 8.33% - Branches - 1/12 -
- - -
- 0% - Functions - 0/1 -
- - -
- 25% - Lines - 6/24 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57  -  -1x -1x -1x -  -  -1x -1x -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  - 
"use strict";
- 
-let hasSyncZlib = true;
-let zlib = require("zlib");
-Iif (!zlib.deflateSync) {
-  hasSyncZlib = false;
-}
-let constants = require("./constants");
-let Packer = require("./packer");
- 
-module.exports = function (metaData, opt) {
-  if (!hasSyncZlib) {
-    throw new Error(
-      "To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0"
-    );
-  }
- 
-  let options = opt || {};
- 
-  let packer = new Packer(options);
- 
-  let chunks = [];
- 
-  // Signature
-  chunks.push(Buffer.from(constants.PNG_SIGNATURE));
- 
-  // Header
-  chunks.push(packer.packIHDR(metaData.width, metaData.height));
- 
-  if (metaData.gamma) {
-    chunks.push(packer.packGAMA(metaData.gamma));
-  }
- 
-  let filteredData = packer.filterData(
-    metaData.data,
-    metaData.width,
-    metaData.height
-  );
- 
-  // compress it
-  let compressedData = zlib.deflateSync(
-    filteredData,
-    packer.getDeflateOptions()
-  );
-  filteredData = null;
- 
-  if (!compressedData || !compressedData.length) {
-    throw new Error("bad png - invalid compressed data response");
-  }
-  chunks.push(packer.packIDAT(compressedData));
- 
-  // End
-  chunks.push(packer.packIEND());
- 
-  return Buffer.concat(chunks);
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/packer.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/packer.js.html deleted file mode 100644 index 606e1930c..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/packer.js.html +++ /dev/null @@ -1,467 +0,0 @@ - - - - - - Code coverage report for packer.js - - - - - - - - - -
-
-

All files packer.js

-
- -
- 94.74% - Statements - 54/57 -
- - -
- 67.86% - Branches - 19/28 -
- - -
- 100% - Functions - 9/9 -
- - -
- 94.74% - Lines - 54/57 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130  -  -1x -1x -1x -1x -1x -  -1x -353x -  -353x -353x -  -353x -  -353x -  -353x -353x -  -353x -  -  -  -353x -  -  -  -  -353x -  -  -  -  -  -  -  -  -  -  -  -353x -  -  -  -  -  -  -  -  -  -  -  -  -  -353x -  -  -  -  -  -  -1x -353x -  -  -  -  -  -  -1x -353x -  -  -1x -  -325x -  -  -325x -325x -325x -  -  -1x -1592x -1592x -  -1592x -1592x -  -1592x -1267x -  -  -1592x -  -  -  -1592x -  -  -1x -290x -290x -290x -  -  -1x -325x -325x -325x -325x -325x -325x -325x -325x -  -325x -  -  -1x -652x -  -  -1x -325x -  - 
"use strict";
- 
-let constants = require("./constants");
-let CrcStream = require("./crc");
-let bitPacker = require("./bitpacker");
-let filter = require("./filter-pack");
-let zlib = require("zlib");
- 
-let Packer = (module.exports = function (options) {
-  this._options = options;
- 
-  options.deflateChunkSize = options.deflateChunkSize || 32 * 1024;
-  options.deflateLevel =
-    options.deflateLevel != null ? options.deflateLevel : 9;
-  options.deflateStrategy =
-    options.deflateStrategy != null ? options.deflateStrategy : 3;
-  options.inputHasAlpha =
-    options.inputHasAlpha != null ? options.inputHasAlpha : true;
-  options.deflateFactory = options.deflateFactory || zlib.createDeflate;
-  options.bitDepth = options.bitDepth || 8;
-  // This is outputColorType
-  options.colorType =
-    typeof options.colorType === "number"
-      ? options.colorType
-      : constants.COLORTYPE_COLOR_ALPHA;
-  options.inputColorType =
-    typeof options.inputColorType === "number"
-      ? options.inputColorType
-      : constants.COLORTYPE_COLOR_ALPHA;
- 
-  Iif (
-    [
-      constants.COLORTYPE_GRAYSCALE,
-      constants.COLORTYPE_COLOR,
-      constants.COLORTYPE_COLOR_ALPHA,
-      constants.COLORTYPE_ALPHA,
-    ].indexOf(options.colorType) === -1
-  ) {
-    throw new Error(
-      "option color type:" + options.colorType + " is not supported at present"
-    );
-  }
-  Iif (
-    [
-      constants.COLORTYPE_GRAYSCALE,
-      constants.COLORTYPE_COLOR,
-      constants.COLORTYPE_COLOR_ALPHA,
-      constants.COLORTYPE_ALPHA,
-    ].indexOf(options.inputColorType) === -1
-  ) {
-    throw new Error(
-      "option input color type:" +
-        options.inputColorType +
-        " is not supported at present"
-    );
-  }
-  Iif (options.bitDepth !== 8 && options.bitDepth !== 16) {
-    throw new Error(
-      "option bit depth:" + options.bitDepth + " is not supported at present"
-    );
-  }
-});
- 
-Packer.prototype.getDeflateOptions = function () {
-  return {
-    chunkSize: this._options.deflateChunkSize,
-    level: this._options.deflateLevel,
-    strategy: this._options.deflateStrategy,
-  };
-};
- 
-Packer.prototype.createDeflate = function () {
-  return this._options.deflateFactory(this.getDeflateOptions());
-};
- 
-Packer.prototype.filterData = function (data, width, height) {
-  // convert to correct format for filtering (e.g. right bpp and bit depth)
-  let packedData = bitPacker(data, width, height, this._options);
- 
-  // filter pixel data
-  let bpp = constants.COLORTYPE_TO_BPP_MAP[this._options.colorType];
-  let filteredData = filter(packedData, width, height, this._options, bpp);
-  return filteredData;
-};
- 
-Packer.prototype._packChunk = function (type, data) {
-  let len = data ? data.length : 0;
-  let buf = Buffer.alloc(len + 12);
- 
-  buf.writeUInt32BE(len, 0);
-  buf.writeUInt32BE(type, 4);
- 
-  if (data) {
-    data.copy(buf, 8);
-  }
- 
-  buf.writeInt32BE(
-    CrcStream.crc32(buf.slice(4, buf.length - 4)),
-    buf.length - 4
-  );
-  return buf;
-};
- 
-Packer.prototype.packGAMA = function (gamma) {
-  let buf = Buffer.alloc(4);
-  buf.writeUInt32BE(Math.floor(gamma * constants.GAMMA_DIVISION), 0);
-  return this._packChunk(constants.TYPE_gAMA, buf);
-};
- 
-Packer.prototype.packIHDR = function (width, height) {
-  let buf = Buffer.alloc(13);
-  buf.writeUInt32BE(width, 0);
-  buf.writeUInt32BE(height, 4);
-  buf[8] = this._options.bitDepth; // Bit depth
-  buf[9] = this._options.colorType; // colorType
-  buf[10] = 0; // compression
-  buf[11] = 0; // filter
-  buf[12] = 0; // interlace
- 
-  return this._packChunk(constants.TYPE_IHDR, buf);
-};
- 
-Packer.prototype.packIDAT = function (data) {
-  return this._packChunk(constants.TYPE_IDAT, data);
-};
- 
-Packer.prototype.packIEND = function () {
-  return this._packChunk(constants.TYPE_IEND, null);
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html deleted file mode 100644 index 6385999ac..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/paeth-predictor.js.html +++ /dev/null @@ -1,128 +0,0 @@ - - - - - - Code coverage report for paeth-predictor.js - - - - - - - - - -
-
-

All files paeth-predictor.js

-
- -
- 100% - Statements - 10/10 -
- - -
- 100% - Branches - 6/6 -
- - -
- 100% - Functions - 1/1 -
- - -
- 100% - Lines - 10/10 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17  -  -1x -5808408x -5808408x -5808408x -5808408x -  -5808408x -5156742x -  -651666x -539893x -  -111773x -  - 
"use strict";
- 
-module.exports = function paethPredictor(left, above, upLeft) {
-  let paeth = left + above - upLeft;
-  let pLeft = Math.abs(paeth - left);
-  let pAbove = Math.abs(paeth - above);
-  let pUpLeft = Math.abs(paeth - upLeft);
- 
-  if (pLeft <= pAbove && pLeft <= pUpLeft) {
-    return left;
-  }
-  if (pAbove <= pUpLeft) {
-    return above;
-  }
-  return upLeft;
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/parser-async.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/parser-async.js.html deleted file mode 100644 index 77074ffca..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/parser-async.js.html +++ /dev/null @@ -1,575 +0,0 @@ - - - - - - Code coverage report for parser-async.js - - - - - - - - - -
-
-

All files parser-async.js

-
- -
- 88.75% - Statements - 71/80 -
- - -
- 72.73% - Branches - 16/22 -
- - -
- 84.62% - Functions - 11/13 -
- - -
- 88.75% - Lines - 71/80 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166  -  -1x -1x -1x -1x -1x -1x -1x -  -1x -353x -  -353x -  -  -  -  -  -  -  -  -  -  -  -353x -353x -  -353x -  -1x -  -1x -14x -  -14x -  -14x -  -14x -1x -  -  -14x -2x -  -  -  -2x -  -  -14x -  -  -1x -741x -174x -36x -  -36x -36x -  -36x -  -  -138x -  -  -  -  -  -138x -138x -  -138x -138x -  -138x -138x -  -  -  -  -  -  -138x -  -138x -138x -487x -  -  -  -487x -  -  -  -487x -  -487x -  -  -138x -  -  -741x -  -  -1x -176x -176x -  -176x -  -  -1x -7x -  -  -1x -77x -  -  -1x -15x -  -  -1x -  -  -174x -  -  -1x -173x -  -  -  -173x -1x -  -  -172x -  -  -  -1x -173x -  -  -  -  -  -173x -173x -  -173x -173x -  -  -  -  -  -173x -  - 
"use strict";
- 
-let util = require("util");
-let zlib = require("zlib");
-let ChunkStream = require("./chunkstream");
-let FilterAsync = require("./filter-parse-async");
-let Parser = require("./parser");
-let bitmapper = require("./bitmapper");
-let formatNormaliser = require("./format-normaliser");
- 
-let ParserAsync = (module.exports = function (options) {
-  ChunkStream.call(this);
- 
-  this._parser = new Parser(options, {
-    read: this.read.bind(this),
-    error: this._handleError.bind(this),
-    metadata: this._handleMetaData.bind(this),
-    gamma: this.emit.bind(this, "gamma"),
-    palette: this._handlePalette.bind(this),
-    transColor: this._handleTransColor.bind(this),
-    finished: this._finished.bind(this),
-    inflateData: this._inflateData.bind(this),
-    simpleTransparency: this._simpleTransparency.bind(this),
-    headersFinished: this._headersFinished.bind(this),
-  });
-  this._options = options;
-  this.writable = true;
- 
-  this._parser.start();
-});
-util.inherits(ParserAsync, ChunkStream);
- 
-ParserAsync.prototype._handleError = function (err) {
-  this.emit("error", err);
- 
-  this.writable = false;
- 
-  this.destroy();
- 
-  if (this._inflate && this._inflate.destroy) {
-    this._inflate.destroy();
-  }
- 
-  if (this._filter) {
-    this._filter.destroy();
-    // For backward compatibility with Node 7 and below.
-    // Suppress errors due to _inflate calling write() even after
-    // it's destroy()'ed.
-    this._filter.on("error", function () {});
-  }
- 
-  this.errord = true;
-};
- 
-ParserAsync.prototype._inflateData = function (data) {
-  if (!this._inflate) {
-    if (this._bitmapInfo.interlace) {
-      this._inflate = zlib.createInflate();
- 
-      this._inflate.on("error", this.emit.bind(this, "error"));
-      this._filter.on("complete", this._complete.bind(this));
- 
-      this._inflate.pipe(this._filter);
-    } else {
-      let rowSize =
-        ((this._bitmapInfo.width *
-          this._bitmapInfo.bpp *
-          this._bitmapInfo.depth +
-          7) >>
-          3) +
-        1;
-      let imageSize = rowSize * this._bitmapInfo.height;
-      let chunkSize = Math.max(imageSize, zlib.Z_MIN_CHUNK);
- 
-      this._inflate = zlib.createInflate({ chunkSize: chunkSize });
-      let leftToInflate = imageSize;
- 
-      let emitError = this.emit.bind(this, "error");
-      this._inflate.on("error", function (err) {
-        if (!leftToInflate) {
-          return;
-        }
- 
-        emitError(err);
-      });
-      this._filter.on("complete", this._complete.bind(this));
- 
-      let filterWrite = this._filter.write.bind(this._filter);
-      this._inflate.on("data", function (chunk) {
-        Iif (!leftToInflate) {
-          return;
-        }
- 
-        Iif (chunk.length > leftToInflate) {
-          chunk = chunk.slice(0, leftToInflate);
-        }
- 
-        leftToInflate -= chunk.length;
- 
-        filterWrite(chunk);
-      });
- 
-      this._inflate.on("end", this._filter.end.bind(this._filter));
-    }
-  }
-  this._inflate.write(data);
-};
- 
-ParserAsync.prototype._handleMetaData = function (metaData) {
-  this._metaData = metaData;
-  this._bitmapInfo = Object.create(metaData);
- 
-  this._filter = new FilterAsync(this._bitmapInfo);
-};
- 
-ParserAsync.prototype._handleTransColor = function (transColor) {
-  this._bitmapInfo.transColor = transColor;
-};
- 
-ParserAsync.prototype._handlePalette = function (palette) {
-  this._bitmapInfo.palette = palette;
-};
- 
-ParserAsync.prototype._simpleTransparency = function () {
-  this._metaData.alpha = true;
-};
- 
-ParserAsync.prototype._headersFinished = function () {
-  // Up until this point, we don't know if we have a tRNS chunk (alpha)
-  // so we can't emit metadata any earlier
-  this.emit("metadata", this._metaData);
-};
- 
-ParserAsync.prototype._finished = function () {
-  Iif (this.errord) {
-    return;
-  }
- 
-  if (!this._inflate) {
-    this.emit("error", "No Inflate block");
-  } else {
-    // no more data to inflate
-    this._inflate.end();
-  }
-};
- 
-ParserAsync.prototype._complete = function (filteredData) {
-  Iif (this.errord) {
-    return;
-  }
- 
-  let normalisedBitmapData;
- 
-  try {
-    let bitmapData = bitmapper.dataToBitMap(filteredData, this._bitmapInfo);
- 
-    normalisedBitmapData = formatNormaliser(bitmapData, this._bitmapInfo);
-    bitmapData = null;
-  } catch (ex) {
-    this._handleError(ex);
-    return;
-  }
- 
-  this.emit("parsed", normalisedBitmapData);
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html deleted file mode 100644 index 6ced1a989..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/parser-sync.js.html +++ /dev/null @@ -1,404 +0,0 @@ - - - - - - Code coverage report for parser-sync.js - - - - - - - - - -
-
-

All files parser-sync.js

-
- -
- 93.33% - Statements - 42/45 -
- - -
- 78.57% - Branches - 11/14 -
- - -
- 100% - Functions - 8/8 -
- - -
- 93.33% - Lines - 42/45 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109  -  -1x -1x -1x -1x -  -  -1x -1x -1x -1x -1x -  -1x -176x -  -  -  -  -  -  -  -13x -  -  -  -  -165x -  -  -  -5x -  -  -  -73x -  -  -  -12x -  -  -  -  -147x -  -  -176x -  -492x -  -  -176x -  -176x -  -  -  -  -  -  -  -  -  -  -176x -176x -  -176x -13x -  -  -  -163x -163x -  -  -163x -36x -  -  -127x -127x -127x -  -  -  -  -162x -  -162x -  -  -  -162x -162x -  -162x -162x -  -162x -  -162x -162x -  -162x -  - 
"use strict";
- 
-let hasSyncZlib = true;
-let zlib = require("zlib");
-let inflateSync = require("./sync-inflate");
-Iif (!zlib.deflateSync) {
-  hasSyncZlib = false;
-}
-let SyncReader = require("./sync-reader");
-let FilterSync = require("./filter-parse-sync");
-let Parser = require("./parser");
-let bitmapper = require("./bitmapper");
-let formatNormaliser = require("./format-normaliser");
- 
-module.exports = function (buffer, options) {
-  Iif (!hasSyncZlib) {
-    throw new Error(
-      "To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0"
-    );
-  }
- 
-  let err;
-  function handleError(_err_) {
-    err = _err_;
-  }
- 
-  let metaData;
-  function handleMetaData(_metaData_) {
-    metaData = _metaData_;
-  }
- 
-  function handleTransColor(transColor) {
-    metaData.transColor = transColor;
-  }
- 
-  function handlePalette(palette) {
-    metaData.palette = palette;
-  }
- 
-  function handleSimpleTransparency() {
-    metaData.alpha = true;
-  }
- 
-  let gamma;
-  function handleGamma(_gamma_) {
-    gamma = _gamma_;
-  }
- 
-  let inflateDataList = [];
-  function handleInflateData(inflatedData) {
-    inflateDataList.push(inflatedData);
-  }
- 
-  let reader = new SyncReader(buffer);
- 
-  let parser = new Parser(options, {
-    read: reader.read.bind(reader),
-    error: handleError,
-    metadata: handleMetaData,
-    gamma: handleGamma,
-    palette: handlePalette,
-    transColor: handleTransColor,
-    inflateData: handleInflateData,
-    simpleTransparency: handleSimpleTransparency,
-  });
- 
-  parser.start();
-  reader.process();
- 
-  if (err) {
-    throw err;
-  }
- 
-  //join together the inflate datas
-  let inflateData = Buffer.concat(inflateDataList);
-  inflateDataList.length = 0;
- 
-  let inflatedData;
-  if (metaData.interlace) {
-    inflatedData = zlib.inflateSync(inflateData);
-  } else {
-    let rowSize =
-      ((metaData.width * metaData.bpp * metaData.depth + 7) >> 3) + 1;
-    let imageSize = rowSize * metaData.height;
-    inflatedData = inflateSync(inflateData, {
-      chunkSize: imageSize,
-      maxLength: imageSize,
-    });
-  }
-  inflateData = null;
- 
-  Iif (!inflatedData || !inflatedData.length) {
-    throw new Error("bad png - invalid inflate data response");
-  }
- 
-  let unfilteredData = FilterSync.process(inflatedData, metaData);
-  inflateData = null;
- 
-  let bitmapData = bitmapper.dataToBitMap(unfilteredData, metaData);
-  unfilteredData = null;
- 
-  let normalisedBitmapData = formatNormaliser(bitmapData, metaData);
- 
-  metaData.data = normalisedBitmapData;
-  metaData.gamma = gamma || 0;
- 
-  return metaData;
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/parser.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/parser.js.html deleted file mode 100644 index efc950448..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/parser.js.html +++ /dev/null @@ -1,950 +0,0 @@ - - - - - - Code coverage report for parser.js - - - - - - - - - -
-
-

All files parser.js

-
- -
- 90.57% - Statements - 144/159 -
- - -
- 85.45% - Branches - 47/55 -
- - -
- 100% - Functions - 20/20 -
- - -
- 90.32% - Lines - 140/155 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172 -173 -174 -175 -176 -177 -178 -179 -180 -181 -182 -183 -184 -185 -186 -187 -188 -189 -190 -191 -192 -193 -194 -195 -196 -197 -198 -199 -200 -201 -202 -203 -204 -205 -206 -207 -208 -209 -210 -211 -212 -213 -214 -215 -216 -217 -218 -219 -220 -221 -222 -223 -224 -225 -226 -227 -228 -229 -230 -231 -232 -233 -234 -235 -236 -237 -238 -239 -240 -241 -242 -243 -244 -245 -246 -247 -248 -249 -250 -251 -252 -253 -254 -255 -256 -257 -258 -259 -260 -261 -262 -263 -264 -265 -266 -267 -268 -269 -270 -271 -272 -273 -274 -275 -276 -277 -278 -279 -280 -281 -282 -283 -284 -285 -286 -287 -288 -289 -290 -291  -  -1x -1x -  -1x -529x -529x -  -529x -529x -529x -  -  -529x -529x -  -529x -529x -529x -529x -529x -529x -529x -  -529x -529x -529x -529x -529x -529x -529x -529x -529x -529x -529x -  -  -1x -529x -  -  -1x -365x -  -365x -2867x -13x -13x -  -  -352x -  -  -1x -  -2461x -  -  -2461x -2461x -2461x -9844x -  -  -  -  -  -2461x -  -  -  -2461x -  -  -  -  -2461x -2461x -  -2461x -2205x -  -  -256x -  -  -  -  -256x -  -  -1x -256x -  -  -1x -2195x -  -  -1x -2195x -2195x -  -  -2195x -4x -4x -  -  -2191x -1855x -  -  -  -1x -351x -  -1x -351x -  -351x -351x -351x -351x -351x -351x -351x -  -  -  -  -  -  -351x -  -  -  -  -  -  -6x -6x -  -345x -4x -4x -  -341x -  -  -  -341x -  -  -  -341x -  -  -  -  -341x -  -341x -  -341x -  -341x -  -  -  -  -  -  -  -  -  -  -  -341x -  -  -1x -135x -  -1x -135x -  -135x -  -  -135x -7350x -  -  -135x -  -135x -  -  -1x -27x -27x -  -1x -27x -  -  -27x -15x -  -  -  -15x -  -  -  -15x -529x -  -15x -  -  -  -  -27x -  -6x -  -27x -6x -  -  -  -  -  -  -27x -  -  -1x -296x -  -1x -296x -296x -  -296x -  -  -1x -1233x -337x -337x -  -1233x -  -1x -1233x -  -1233x -  -  -  -  -  -  -1233x -1233x -  -1233x -173x -  -1060x -  -  -  -1x -336x -  -1x -336x -  -336x -336x -  -336x -173x -  -  - 
"use strict";
- 
-let constants = require("./constants");
-let CrcCalculator = require("./crc");
- 
-let Parser = (module.exports = function (options, dependencies) {
-  this._options = options;
-  options.checkCRC = options.checkCRC !== false;
- 
-  this._hasIHDR = false;
-  this._hasIEND = false;
-  this._emittedHeadersFinished = false;
- 
-  // input flags/metadata
-  this._palette = [];
-  this._colorType = 0;
- 
-  this._chunks = {};
-  this._chunks[constants.TYPE_IHDR] = this._handleIHDR.bind(this);
-  this._chunks[constants.TYPE_IEND] = this._handleIEND.bind(this);
-  this._chunks[constants.TYPE_IDAT] = this._handleIDAT.bind(this);
-  this._chunks[constants.TYPE_PLTE] = this._handlePLTE.bind(this);
-  this._chunks[constants.TYPE_tRNS] = this._handleTRNS.bind(this);
-  this._chunks[constants.TYPE_gAMA] = this._handleGAMA.bind(this);
- 
-  this.read = dependencies.read;
-  this.error = dependencies.error;
-  this.metadata = dependencies.metadata;
-  this.gamma = dependencies.gamma;
-  this.transColor = dependencies.transColor;
-  this.palette = dependencies.palette;
-  this.parsed = dependencies.parsed;
-  this.inflateData = dependencies.inflateData;
-  this.finished = dependencies.finished;
-  this.simpleTransparency = dependencies.simpleTransparency;
-  this.headersFinished = dependencies.headersFinished || function () {};
-});
- 
-Parser.prototype.start = function () {
-  this.read(constants.PNG_SIGNATURE.length, this._parseSignature.bind(this));
-};
- 
-Parser.prototype._parseSignature = function (data) {
-  let signature = constants.PNG_SIGNATURE;
- 
-  for (let i = 0; i < signature.length; i++) {
-    if (data[i] !== signature[i]) {
-      this.error(new Error("Invalid file signature"));
-      return;
-    }
-  }
-  this.read(8, this._parseChunkBegin.bind(this));
-};
- 
-Parser.prototype._parseChunkBegin = function (data) {
-  // chunk content length
-  let length = data.readUInt32BE(0);
- 
-  // chunk type
-  let type = data.readUInt32BE(4);
-  let name = "";
-  for (let i = 4; i < 8; i++) {
-    name += String.fromCharCode(data[i]);
-  }
- 
-  //console.log('chunk ', name, length);
- 
-  // chunk flags
-  let ancillary = Boolean(data[4] & 0x20); // or critical
-  //    priv = Boolean(data[5] & 0x20), // or public
-  //    safeToCopy = Boolean(data[7] & 0x20); // or unsafe
- 
-  Iif (!this._hasIHDR && type !== constants.TYPE_IHDR) {
-    this.error(new Error("Expected IHDR on beggining"));
-    return;
-  }
- 
-  this._crc = new CrcCalculator();
-  this._crc.write(Buffer.from(name));
- 
-  if (this._chunks[type]) {
-    return this._chunks[type](length);
-  }
- 
-  Iif (!ancillary) {
-    this.error(new Error("Unsupported critical chunk type " + name));
-    return;
-  }
- 
-  this.read(length + 4, this._skipChunk.bind(this));
-};
- 
-Parser.prototype._skipChunk = function (/*data*/) {
-  this.read(8, this._parseChunkBegin.bind(this));
-};
- 
-Parser.prototype._handleChunkEnd = function () {
-  this.read(4, this._parseChunkEnd.bind(this));
-};
- 
-Parser.prototype._parseChunkEnd = function (data) {
-  let fileCrc = data.readInt32BE(0);
-  let calcCrc = this._crc.crc32();
- 
-  // check CRC
-  if (this._options.checkCRC && calcCrc !== fileCrc) {
-    this.error(new Error("Crc error - " + fileCrc + " - " + calcCrc));
-    return;
-  }
- 
-  if (!this._hasIEND) {
-    this.read(8, this._parseChunkBegin.bind(this));
-  }
-};
- 
-Parser.prototype._handleIHDR = function (length) {
-  this.read(length, this._parseIHDR.bind(this));
-};
-Parser.prototype._parseIHDR = function (data) {
-  this._crc.write(data);
- 
-  let width = data.readUInt32BE(0);
-  let height = data.readUInt32BE(4);
-  let depth = data[8];
-  let colorType = data[9]; // bits: 1 palette, 2 color, 4 alpha
-  let compr = data[10];
-  let filter = data[11];
-  let interlace = data[12];
- 
-  // console.log('    width', width, 'height', height,
-  //     'depth', depth, 'colorType', colorType,
-  //     'compr', compr, 'filter', filter, 'interlace', interlace
-  // );
- 
-  if (
-    depth !== 8 &&
-    depth !== 4 &&
-    depth !== 2 &&
-    depth !== 1 &&
-    depth !== 16
-  ) {
-    this.error(new Error("Unsupported bit depth " + depth));
-    return;
-  }
-  if (!(colorType in constants.COLORTYPE_TO_BPP_MAP)) {
-    this.error(new Error("Unsupported color type"));
-    return;
-  }
-  Iif (compr !== 0) {
-    this.error(new Error("Unsupported compression method"));
-    return;
-  }
-  Iif (filter !== 0) {
-    this.error(new Error("Unsupported filter method"));
-    return;
-  }
-  Iif (interlace !== 0 && interlace !== 1) {
-    this.error(new Error("Unsupported interlace method"));
-    return;
-  }
- 
-  this._colorType = colorType;
- 
-  let bpp = constants.COLORTYPE_TO_BPP_MAP[this._colorType];
- 
-  this._hasIHDR = true;
- 
-  this.metadata({
-    width: width,
-    height: height,
-    depth: depth,
-    interlace: Boolean(interlace),
-    palette: Boolean(colorType & constants.COLORTYPE_PALETTE),
-    color: Boolean(colorType & constants.COLORTYPE_COLOR),
-    alpha: Boolean(colorType & constants.COLORTYPE_ALPHA),
-    bpp: bpp,
-    colorType: colorType,
-  });
- 
-  this._handleChunkEnd();
-};
- 
-Parser.prototype._handlePLTE = function (length) {
-  this.read(length, this._parsePLTE.bind(this));
-};
-Parser.prototype._parsePLTE = function (data) {
-  this._crc.write(data);
- 
-  let entries = Math.floor(data.length / 3);
-  // console.log('Palette:', entries);
- 
-  for (let i = 0; i < entries; i++) {
-    this._palette.push([data[i * 3], data[i * 3 + 1], data[i * 3 + 2], 0xff]);
-  }
- 
-  this.palette(this._palette);
- 
-  this._handleChunkEnd();
-};
- 
-Parser.prototype._handleTRNS = function (length) {
-  this.simpleTransparency();
-  this.read(length, this._parseTRNS.bind(this));
-};
-Parser.prototype._parseTRNS = function (data) {
-  this._crc.write(data);
- 
-  // palette
-  if (this._colorType === constants.COLORTYPE_PALETTE_COLOR) {
-    Iif (this._palette.length === 0) {
-      this.error(new Error("Transparency chunk must be after palette"));
-      return;
-    }
-    Iif (data.length > this._palette.length) {
-      this.error(new Error("More transparent colors than palette size"));
-      return;
-    }
-    for (let i = 0; i < data.length; i++) {
-      this._palette[i][3] = data[i];
-    }
-    this.palette(this._palette);
-  }
- 
-  // for colorType 0 (grayscale) and 2 (rgb)
-  // there might be one gray/color defined as transparent
-  if (this._colorType === constants.COLORTYPE_GRAYSCALE) {
-    // grey, 2 bytes
-    this.transColor([data.readUInt16BE(0)]);
-  }
-  if (this._colorType === constants.COLORTYPE_COLOR) {
-    this.transColor([
-      data.readUInt16BE(0),
-      data.readUInt16BE(2),
-      data.readUInt16BE(4),
-    ]);
-  }
- 
-  this._handleChunkEnd();
-};
- 
-Parser.prototype._handleGAMA = function (length) {
-  this.read(length, this._parseGAMA.bind(this));
-};
-Parser.prototype._parseGAMA = function (data) {
-  this._crc.write(data);
-  this.gamma(data.readUInt32BE(0) / constants.GAMMA_DIVISION);
- 
-  this._handleChunkEnd();
-};
- 
-Parser.prototype._handleIDAT = function (length) {
-  if (!this._emittedHeadersFinished) {
-    this._emittedHeadersFinished = true;
-    this.headersFinished();
-  }
-  this.read(-length, this._parseIDAT.bind(this, length));
-};
-Parser.prototype._parseIDAT = function (length, data) {
-  this._crc.write(data);
- 
-  Iif (
-    this._colorType === constants.COLORTYPE_PALETTE_COLOR &&
-    this._palette.length === 0
-  ) {
-    throw new Error("Expected palette not found");
-  }
- 
-  this.inflateData(data);
-  let leftOverLength = length - data.length;
- 
-  if (leftOverLength > 0) {
-    this._handleIDAT(leftOverLength);
-  } else {
-    this._handleChunkEnd();
-  }
-};
- 
-Parser.prototype._handleIEND = function (length) {
-  this.read(length, this._parseIEND.bind(this));
-};
-Parser.prototype._parseIEND = function (data) {
-  this._crc.write(data);
- 
-  this._hasIEND = true;
-  this._handleChunkEnd();
- 
-  if (this.finished) {
-    this.finished();
-  }
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/png-sync.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/png-sync.js.html deleted file mode 100644 index 848f6a6cb..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/png-sync.js.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - Code coverage report for png-sync.js - - - - - - - - - -
-
-

All files png-sync.js

-
- -
- 83.33% - Statements - 5/6 -
- - -
- 100% - Branches - 2/2 -
- - -
- 50% - Functions - 1/2 -
- - -
- 83.33% - Lines - 5/6 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13  -  -1x -1x -  -1x -176x -  -  -1x -  -  - 
"use strict";
- 
-let parse = require("./parser-sync");
-let pack = require("./packer-sync");
- 
-exports.read = function (buffer, options) {
-  return parse(buffer, options || {});
-};
- 
-exports.write = function (png, options) {
-  return pack(png, options);
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/png.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/png.js.html deleted file mode 100644 index baa88032d..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/png.js.html +++ /dev/null @@ -1,662 +0,0 @@ - - - - - - Code coverage report for png.js - - - - - - - - - -
-
-

All files png.js

-
- -
- 54.17% - Statements - 52/96 -
- - -
- 41.18% - Branches - 14/34 -
- - -
- 56.25% - Functions - 9/16 -
- - -
- 56.52% - Lines - 52/92 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169 -170 -171 -172 -173 -174 -175 -176 -177 -178 -179 -180 -181 -182 -183 -184 -185 -186 -187 -188 -189 -190 -191 -192 -193 -194 -195  -  -1x -1x -1x -1x -1x -  -1x -353x -  -353x -  -  -353x -353x -  -353x -  -  -  -  -353x -  -  -  -353x -353x -  -353x -  -353x -353x -353x -353x -353x -  -  -173x -173x -  -  -  -353x -353x -353x -353x -353x -  -1x -  -1x -  -1x -325x -  -  -  -  -325x -  -325x -  -  -  -325x -  -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -1x -412x -412x -  -  -1x -175x -  -  -1x -174x -174x -  -174x -  -  -1x -149x -  -  -1x -378x -  -  -  -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -1x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -1x -  -  - 
"use strict";
- 
-let util = require("util");
-let Stream = require("stream");
-let Parser = require("./parser-async");
-let Packer = require("./packer-async");
-let PNGSync = require("./png-sync");
- 
-let PNG = (exports.PNG = function (options) {
-  Stream.call(this);
- 
-  options = options || {}; // eslint-disable-line no-param-reassign
- 
-  // coerce pixel dimensions to integers (also coerces undefined -> 0):
-  this.width = options.width | 0;
-  this.height = options.height | 0;
- 
-  this.data =
-    this.width > 0 && this.height > 0
-      ? Buffer.alloc(4 * this.width * this.height)
-      : null;
- 
-  Iif (options.fill && this.data) {
-    this.data.fill(0);
-  }
- 
-  this.gamma = 0;
-  this.readable = this.writable = true;
- 
-  this._parser = new Parser(options);
- 
-  this._parser.on("error", this.emit.bind(this, "error"));
-  this._parser.on("close", this._handleClose.bind(this));
-  this._parser.on("metadata", this._metadata.bind(this));
-  this._parser.on("gamma", this._gamma.bind(this));
-  this._parser.on(
-    "parsed",
-    function (data) {
-      this.data = data;
-      this.emit("parsed", data);
-    }.bind(this)
-  );
- 
-  this._packer = new Packer(options);
-  this._packer.on("data", this.emit.bind(this, "data"));
-  this._packer.on("end", this.emit.bind(this, "end"));
-  this._parser.on("close", this._handleClose.bind(this));
-  this._packer.on("error", this.emit.bind(this, "error"));
-});
-util.inherits(PNG, Stream);
- 
-PNG.sync = PNGSync;
- 
-PNG.prototype.pack = function () {
-  Iif (!this.data || !this.data.length) {
-    this.emit("error", "No data provided");
-    return this;
-  }
- 
-  process.nextTick(
-    function () {
-      this._packer.pack(this.data, this.width, this.height, this.gamma);
-    }.bind(this)
-  );
- 
-  return this;
-};
- 
-PNG.prototype.parse = function (data, callback) {
-  if (callback) {
-    let onParsed, onError;
- 
-    onParsed = function (parsedData) {
-      this.removeListener("error", onError);
- 
-      this.data = parsedData;
-      callback(null, this);
-    }.bind(this);
- 
-    onError = function (err) {
-      this.removeListener("parsed", onParsed);
- 
-      callback(err, null);
-    }.bind(this);
- 
-    this.once("parsed", onParsed);
-    this.once("error", onError);
-  }
- 
-  this.end(data);
-  return this;
-};
- 
-PNG.prototype.write = function (data) {
-  this._parser.write(data);
-  return true;
-};
- 
-PNG.prototype.end = function (data) {
-  this._parser.end(data);
-};
- 
-PNG.prototype._metadata = function (metadata) {
-  this.width = metadata.width;
-  this.height = metadata.height;
- 
-  this.emit("metadata", metadata);
-};
- 
-PNG.prototype._gamma = function (gamma) {
-  this.gamma = gamma;
-};
- 
-PNG.prototype._handleClose = function () {
-  Iif (!this._parser.writable && !this._packer.readable) {
-    this.emit("close");
-  }
-};
- 
-PNG.bitblt = function (src, dst, srcX, srcY, width, height, deltaX, deltaY) {
-  // eslint-disable-line max-params
-  // coerce pixel dimensions to integers (also coerces undefined -> 0):
-  /* eslint-disable no-param-reassign */
-  srcX |= 0;
-  srcY |= 0;
-  width |= 0;
-  height |= 0;
-  deltaX |= 0;
-  deltaY |= 0;
-  /* eslint-enable no-param-reassign */
- 
-  if (
-    srcX > src.width ||
-    srcY > src.height ||
-    srcX + width > src.width ||
-    srcY + height > src.height
-  ) {
-    throw new Error("bitblt reading outside image");
-  }
- 
-  if (
-    deltaX > dst.width ||
-    deltaY > dst.height ||
-    deltaX + width > dst.width ||
-    deltaY + height > dst.height
-  ) {
-    throw new Error("bitblt writing outside image");
-  }
- 
-  for (let y = 0; y < height; y++) {
-    src.data.copy(
-      dst.data,
-      ((deltaY + y) * dst.width + deltaX) << 2,
-      ((srcY + y) * src.width + srcX) << 2,
-      ((srcY + y) * src.width + srcX + width) << 2
-    );
-  }
-};
- 
-PNG.prototype.bitblt = function (
-  dst,
-  srcX,
-  srcY,
-  width,
-  height,
-  deltaX,
-  deltaY
-) {
-  // eslint-disable-line max-params
- 
-  PNG.bitblt(this, dst, srcX, srcY, width, height, deltaX, deltaY);
-  return this;
-};
- 
-PNG.adjustGamma = function (src) {
-  if (src.gamma) {
-    for (let y = 0; y < src.height; y++) {
-      for (let x = 0; x < src.width; x++) {
-        let idx = (src.width * y + x) << 2;
- 
-        for (let i = 0; i < 3; i++) {
-          let sample = src.data[idx + i] / 255;
-          sample = Math.pow(sample, 1 / 2.2 / src.gamma);
-          src.data[idx + i] = Math.round(sample * 255);
-        }
-      }
-    }
-    src.gamma = 0;
-  }
-};
- 
-PNG.prototype.adjustGamma = function () {
-  PNG.adjustGamma(this);
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/prettify.css b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/prettify.css deleted file mode 100644 index 006492ca2..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/prettify.css +++ /dev/null @@ -1,101 +0,0 @@ -.pln { - color: #000; -} -@media screen { - .str { - color: #080; - } - .kwd { - color: #008; - } - .com { - color: #800; - } - .typ { - color: #606; - } - .lit { - color: #066; - } - .pun, - .opn, - .clo { - color: #660; - } - .tag { - color: #008; - } - .atn { - color: #606; - } - .atv { - color: #080; - } - .dec, - .var { - color: #606; - } - .fun { - color: red; - } -} -@media print, projection { - .str { - color: #060; - } - .kwd { - color: #006; - font-weight: bold; - } - .com { - color: #600; - font-style: italic; - } - .typ { - color: #404; - font-weight: bold; - } - .lit { - color: #044; - } - .pun, - .opn, - .clo { - color: #440; - } - .tag { - color: #006; - font-weight: bold; - } - .atn { - color: #404; - } - .atv { - color: #060; - } -} -pre.prettyprint { - padding: 2px; - border: 1px solid #888; -} -ol.linenums { - margin-top: 0; - margin-bottom: 0; -} -li.L0, -li.L1, -li.L2, -li.L3, -li.L5, -li.L6, -li.L7, -li.L8 { - list-style-type: none; -} -li.L1, -li.L3, -li.L5, -li.L7, -li.L9 { - background: #eee; -} diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/prettify.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/prettify.js deleted file mode 100755 index 7c0a2fe8d..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/prettify.js +++ /dev/null @@ -1,1007 +0,0 @@ -/* eslint-disable */ -window.PR_SHOULD_USE_CONTINUATION = true; -(function () { - var h = ["break,continue,do,else,for,if,return,while"]; - var u = [ - h, - "auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile", - ]; - var p = [ - u, - "catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof", - ]; - var l = [ - p, - "alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where", - ]; - var x = [ - p, - "abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient", - ]; - var R = [ - x, - "as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var", - ]; - var r = - "all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes"; - var w = [ - p, - "debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN", - ]; - var s = - "caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END"; - var I = [ - h, - "and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None", - ]; - var f = [ - h, - "alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END", - ]; - var H = [h, "case,done,elif,esac,eval,fi,function,in,local,set,then,until"]; - var A = [l, R, w, s + I, f, H]; - var e = /^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/; - var C = "str"; - var z = "kwd"; - var j = "com"; - var O = "typ"; - var G = "lit"; - var L = "pun"; - var F = "pln"; - var m = "tag"; - var E = "dec"; - var J = "src"; - var P = "atn"; - var n = "atv"; - var N = "nocode"; - var M = - "(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*"; - function k(Z) { - var ad = 0; - var S = false; - var ac = false; - for (var V = 0, U = Z.length; V < U; ++V) { - var ae = Z[V]; - if (ae.ignoreCase) { - ac = true; - } else { - if ( - /[a-z]/i.test( - ae.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi, "") - ) - ) { - S = true; - ac = false; - break; - } - } - } - var Y = { b: 8, t: 9, n: 10, v: 11, f: 12, r: 13 }; - function ab(ah) { - var ag = ah.charCodeAt(0); - if (ag !== 92) { - return ag; - } - var af = ah.charAt(1); - ag = Y[af]; - if (ag) { - return ag; - } else { - if ("0" <= af && af <= "7") { - return parseInt(ah.substring(1), 8); - } else { - if (af === "u" || af === "x") { - return parseInt(ah.substring(2), 16); - } else { - return ah.charCodeAt(1); - } - } - } - } - function T(af) { - if (af < 32) { - return (af < 16 ? "\\x0" : "\\x") + af.toString(16); - } - var ag = String.fromCharCode(af); - if (ag === "\\" || ag === "-" || ag === "[" || ag === "]") { - ag = "\\" + ag; - } - return ag; - } - function X(am) { - var aq = am - .substring(1, am.length - 1) - .match( - new RegExp( - "\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]", - "g" - ) - ); - var ak = []; - var af = []; - var ao = aq[0] === "^"; - for (var ar = ao ? 1 : 0, aj = aq.length; ar < aj; ++ar) { - var ah = aq[ar]; - if (/\\[bdsw]/i.test(ah)) { - ak.push(ah); - } else { - var ag = ab(ah); - var al; - if (ar + 2 < aj && "-" === aq[ar + 1]) { - al = ab(aq[ar + 2]); - ar += 2; - } else { - al = ag; - } - af.push([ag, al]); - if (!(al < 65 || ag > 122)) { - if (!(al < 65 || ag > 90)) { - af.push([Math.max(65, ag) | 32, Math.min(al, 90) | 32]); - } - if (!(al < 97 || ag > 122)) { - af.push([Math.max(97, ag) & ~32, Math.min(al, 122) & ~32]); - } - } - } - } - af.sort(function (av, au) { - return av[0] - au[0] || au[1] - av[1]; - }); - var ai = []; - var ap = [NaN, NaN]; - for (var ar = 0; ar < af.length; ++ar) { - var at = af[ar]; - if (at[0] <= ap[1] + 1) { - ap[1] = Math.max(ap[1], at[1]); - } else { - ai.push((ap = at)); - } - } - var an = ["["]; - if (ao) { - an.push("^"); - } - an.push.apply(an, ak); - for (var ar = 0; ar < ai.length; ++ar) { - var at = ai[ar]; - an.push(T(at[0])); - if (at[1] > at[0]) { - if (at[1] + 1 > at[0]) { - an.push("-"); - } - an.push(T(at[1])); - } - } - an.push("]"); - return an.join(""); - } - function W(al) { - var aj = al.source.match( - new RegExp( - "(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)", - "g" - ) - ); - var ah = aj.length; - var an = []; - for (var ak = 0, am = 0; ak < ah; ++ak) { - var ag = aj[ak]; - if (ag === "(") { - ++am; - } else { - if ("\\" === ag.charAt(0)) { - var af = +ag.substring(1); - if (af && af <= am) { - an[af] = -1; - } - } - } - } - for (var ak = 1; ak < an.length; ++ak) { - if (-1 === an[ak]) { - an[ak] = ++ad; - } - } - for (var ak = 0, am = 0; ak < ah; ++ak) { - var ag = aj[ak]; - if (ag === "(") { - ++am; - if (an[am] === undefined) { - aj[ak] = "(?:"; - } - } else { - if ("\\" === ag.charAt(0)) { - var af = +ag.substring(1); - if (af && af <= am) { - aj[ak] = "\\" + an[am]; - } - } - } - } - for (var ak = 0, am = 0; ak < ah; ++ak) { - if ("^" === aj[ak] && "^" !== aj[ak + 1]) { - aj[ak] = ""; - } - } - if (al.ignoreCase && S) { - for (var ak = 0; ak < ah; ++ak) { - var ag = aj[ak]; - var ai = ag.charAt(0); - if (ag.length >= 2 && ai === "[") { - aj[ak] = X(ag); - } else { - if (ai !== "\\") { - aj[ak] = ag.replace(/[a-zA-Z]/g, function (ao) { - var ap = ao.charCodeAt(0); - return "[" + String.fromCharCode(ap & ~32, ap | 32) + "]"; - }); - } - } - } - } - return aj.join(""); - } - var aa = []; - for (var V = 0, U = Z.length; V < U; ++V) { - var ae = Z[V]; - if (ae.global || ae.multiline) { - throw new Error("" + ae); - } - aa.push("(?:" + W(ae) + ")"); - } - return new RegExp(aa.join("|"), ac ? "gi" : "g"); - } - function a(V) { - var U = /(?:^|\s)nocode(?:\s|$)/; - var X = []; - var T = 0; - var Z = []; - var W = 0; - var S; - if (V.currentStyle) { - S = V.currentStyle.whiteSpace; - } else { - if (window.getComputedStyle) { - S = document.defaultView - .getComputedStyle(V, null) - .getPropertyValue("white-space"); - } - } - var Y = S && "pre" === S.substring(0, 3); - function aa(ab) { - switch (ab.nodeType) { - case 1: - if (U.test(ab.className)) { - return; - } - for (var ae = ab.firstChild; ae; ae = ae.nextSibling) { - aa(ae); - } - var ad = ab.nodeName; - if ("BR" === ad || "LI" === ad) { - X[W] = "\n"; - Z[W << 1] = T++; - Z[(W++ << 1) | 1] = ab; - } - break; - case 3: - case 4: - var ac = ab.nodeValue; - if (ac.length) { - if (!Y) { - ac = ac.replace(/[ \t\r\n]+/g, " "); - } else { - ac = ac.replace(/\r\n?/g, "\n"); - } - X[W] = ac; - Z[W << 1] = T; - T += ac.length; - Z[(W++ << 1) | 1] = ab; - } - break; - } - } - aa(V); - return { sourceCode: X.join("").replace(/\n$/, ""), spans: Z }; - } - function B(S, U, W, T) { - if (!U) { - return; - } - var V = { sourceCode: U, basePos: S }; - W(V); - T.push.apply(T, V.decorations); - } - var v = /\S/; - function o(S) { - var V = undefined; - for (var U = S.firstChild; U; U = U.nextSibling) { - var T = U.nodeType; - V = T === 1 ? (V ? S : U) : T === 3 ? (v.test(U.nodeValue) ? S : V) : V; - } - return V === S ? undefined : V; - } - function g(U, T) { - var S = {}; - var V; - (function () { - var ad = U.concat(T); - var ah = []; - var ag = {}; - for (var ab = 0, Z = ad.length; ab < Z; ++ab) { - var Y = ad[ab]; - var ac = Y[3]; - if (ac) { - for (var ae = ac.length; --ae >= 0; ) { - S[ac.charAt(ae)] = Y; - } - } - var af = Y[1]; - var aa = "" + af; - if (!ag.hasOwnProperty(aa)) { - ah.push(af); - ag[aa] = null; - } - } - ah.push(/[\0-\uffff]/); - V = k(ah); - })(); - var X = T.length; - var W = function (ah) { - var Z = ah.sourceCode, - Y = ah.basePos; - var ad = [Y, F]; - var af = 0; - var an = Z.match(V) || []; - var aj = {}; - for (var ae = 0, aq = an.length; ae < aq; ++ae) { - var ag = an[ae]; - var ap = aj[ag]; - var ai = void 0; - var am; - if (typeof ap === "string") { - am = false; - } else { - var aa = S[ag.charAt(0)]; - if (aa) { - ai = ag.match(aa[1]); - ap = aa[0]; - } else { - for (var ao = 0; ao < X; ++ao) { - aa = T[ao]; - ai = ag.match(aa[1]); - if (ai) { - ap = aa[0]; - break; - } - } - if (!ai) { - ap = F; - } - } - am = ap.length >= 5 && "lang-" === ap.substring(0, 5); - if (am && !(ai && typeof ai[1] === "string")) { - am = false; - ap = J; - } - if (!am) { - aj[ag] = ap; - } - } - var ab = af; - af += ag.length; - if (!am) { - ad.push(Y + ab, ap); - } else { - var al = ai[1]; - var ak = ag.indexOf(al); - var ac = ak + al.length; - if (ai[2]) { - ac = ag.length - ai[2].length; - ak = ac - al.length; - } - var ar = ap.substring(5); - B(Y + ab, ag.substring(0, ak), W, ad); - B(Y + ab + ak, al, q(ar, al), ad); - B(Y + ab + ac, ag.substring(ac), W, ad); - } - } - ah.decorations = ad; - }; - return W; - } - function i(T) { - var W = [], - S = []; - if (T.tripleQuotedStrings) { - W.push([ - C, - /^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/, - null, - "'\"", - ]); - } else { - if (T.multiLineStrings) { - W.push([ - C, - /^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/, - null, - "'\"`", - ]); - } else { - W.push([ - C, - /^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/, - null, - "\"'", - ]); - } - } - if (T.verbatimStrings) { - S.push([C, /^@\"(?:[^\"]|\"\")*(?:\"|$)/, null]); - } - var Y = T.hashComments; - if (Y) { - if (T.cStyleComments) { - if (Y > 1) { - W.push([j, /^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/, null, "#"]); - } else { - W.push([ - j, - /^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/, - null, - "#", - ]); - } - S.push([ - C, - /^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/, - null, - ]); - } else { - W.push([j, /^#[^\r\n]*/, null, "#"]); - } - } - if (T.cStyleComments) { - S.push([j, /^\/\/[^\r\n]*/, null]); - S.push([j, /^\/\*[\s\S]*?(?:\*\/|$)/, null]); - } - if (T.regexLiterals) { - var X = - "/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/"; - S.push(["lang-regex", new RegExp("^" + M + "(" + X + ")")]); - } - var V = T.types; - if (V) { - S.push([O, V]); - } - var U = ("" + T.keywords).replace(/^ | $/g, ""); - if (U.length) { - S.push([ - z, - new RegExp("^(?:" + U.replace(/[\s,]+/g, "|") + ")\\b"), - null, - ]); - } - W.push([F, /^\s+/, null, " \r\n\t\xA0"]); - S.push( - [G, /^@[a-z_$][a-z_$@0-9]*/i, null], - [O, /^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/, null], - [F, /^[a-z_$][a-z_$@0-9]*/i, null], - [ - G, - new RegExp( - "^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*", - "i" - ), - null, - "0123456789", - ], - [F, /^\\[\s\S]?/, null], - [L, /^.[^\s\w\.$@\'\"\`\/\#\\]*/, null] - ); - return g(W, S); - } - var K = i({ - keywords: A, - hashComments: true, - cStyleComments: true, - multiLineStrings: true, - regexLiterals: true, - }); - function Q(V, ag) { - var U = /(?:^|\s)nocode(?:\s|$)/; - var ab = /\r\n?|\n/; - var ac = V.ownerDocument; - var S; - if (V.currentStyle) { - S = V.currentStyle.whiteSpace; - } else { - if (window.getComputedStyle) { - S = ac.defaultView - .getComputedStyle(V, null) - .getPropertyValue("white-space"); - } - } - var Z = S && "pre" === S.substring(0, 3); - var af = ac.createElement("LI"); - while (V.firstChild) { - af.appendChild(V.firstChild); - } - var W = [af]; - function ae(al) { - switch (al.nodeType) { - case 1: - if (U.test(al.className)) { - break; - } - if ("BR" === al.nodeName) { - ad(al); - if (al.parentNode) { - al.parentNode.removeChild(al); - } - } else { - for (var an = al.firstChild; an; an = an.nextSibling) { - ae(an); - } - } - break; - case 3: - case 4: - if (Z) { - var am = al.nodeValue; - var aj = am.match(ab); - if (aj) { - var ai = am.substring(0, aj.index); - al.nodeValue = ai; - var ah = am.substring(aj.index + aj[0].length); - if (ah) { - var ak = al.parentNode; - ak.insertBefore(ac.createTextNode(ah), al.nextSibling); - } - ad(al); - if (!ai) { - al.parentNode.removeChild(al); - } - } - } - break; - } - } - function ad(ak) { - while (!ak.nextSibling) { - ak = ak.parentNode; - if (!ak) { - return; - } - } - function ai(al, ar) { - var aq = ar ? al.cloneNode(false) : al; - var ao = al.parentNode; - if (ao) { - var ap = ai(ao, 1); - var an = al.nextSibling; - ap.appendChild(aq); - for (var am = an; am; am = an) { - an = am.nextSibling; - ap.appendChild(am); - } - } - return aq; - } - var ah = ai(ak.nextSibling, 0); - for (var aj; (aj = ah.parentNode) && aj.nodeType === 1; ) { - ah = aj; - } - W.push(ah); - } - for (var Y = 0; Y < W.length; ++Y) { - ae(W[Y]); - } - if (ag === (ag | 0)) { - W[0].setAttribute("value", ag); - } - var aa = ac.createElement("OL"); - aa.className = "linenums"; - var X = Math.max(0, (ag - 1) | 0) || 0; - for (var Y = 0, T = W.length; Y < T; ++Y) { - af = W[Y]; - af.className = "L" + ((Y + X) % 10); - if (!af.firstChild) { - af.appendChild(ac.createTextNode("\xA0")); - } - aa.appendChild(af); - } - V.appendChild(aa); - } - function D(ac) { - var aj = /\bMSIE\b/.test(navigator.userAgent); - var am = /\n/g; - var al = ac.sourceCode; - var an = al.length; - var V = 0; - var aa = ac.spans; - var T = aa.length; - var ah = 0; - var X = ac.decorations; - var Y = X.length; - var Z = 0; - X[Y] = an; - var ar, aq; - for (aq = ar = 0; aq < Y; ) { - if (X[aq] !== X[aq + 2]) { - X[ar++] = X[aq++]; - X[ar++] = X[aq++]; - } else { - aq += 2; - } - } - Y = ar; - for (aq = ar = 0; aq < Y; ) { - var at = X[aq]; - var ab = X[aq + 1]; - var W = aq + 2; - while (W + 2 <= Y && X[W + 1] === ab) { - W += 2; - } - X[ar++] = at; - X[ar++] = ab; - aq = W; - } - Y = X.length = ar; - var ae = null; - while (ah < T) { - var af = aa[ah]; - var S = aa[ah + 2] || an; - var ag = X[Z]; - var ap = X[Z + 2] || an; - var W = Math.min(S, ap); - var ak = aa[ah + 1]; - var U; - if (ak.nodeType !== 1 && (U = al.substring(V, W))) { - if (aj) { - U = U.replace(am, "\r"); - } - ak.nodeValue = U; - var ai = ak.ownerDocument; - var ao = ai.createElement("SPAN"); - ao.className = X[Z + 1]; - var ad = ak.parentNode; - ad.replaceChild(ao, ak); - ao.appendChild(ak); - if (V < S) { - aa[ah + 1] = ak = ai.createTextNode(al.substring(W, S)); - ad.insertBefore(ak, ao.nextSibling); - } - } - V = W; - if (V >= S) { - ah += 2; - } - if (V >= ap) { - Z += 2; - } - } - } - var t = {}; - function c(U, V) { - for (var S = V.length; --S >= 0; ) { - var T = V[S]; - if (!t.hasOwnProperty(T)) { - t[T] = U; - } else { - if (window.console) { - console.warn("cannot override language handler %s", T); - } - } - } - } - function q(T, S) { - if (!(T && t.hasOwnProperty(T))) { - T = /^\s*]*(?:>|$)/], - [j, /^<\!--[\s\S]*?(?:-\->|$)/], - ["lang-", /^<\?([\s\S]+?)(?:\?>|$)/], - ["lang-", /^<%([\s\S]+?)(?:%>|$)/], - [L, /^(?:<[%?]|[%?]>)/], - ["lang-", /^]*>([\s\S]+?)<\/xmp\b[^>]*>/i], - ["lang-js", /^]*>([\s\S]*?)(<\/script\b[^>]*>)/i], - ["lang-css", /^]*>([\s\S]*?)(<\/style\b[^>]*>)/i], - ["lang-in.tag", /^(<\/?[a-z][^<>]*>)/i], - ] - ), - ["default-markup", "htm", "html", "mxml", "xhtml", "xml", "xsl"] - ); - c( - g( - [ - [F, /^[\s]+/, null, " \t\r\n"], - [n, /^(?:\"[^\"]*\"?|\'[^\']*\'?)/, null, "\"'"], - ], - [ - [m, /^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i], - [P, /^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i], - ["lang-uq.val", /^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/], - [L, /^[=<>\/]+/], - ["lang-js", /^on\w+\s*=\s*\"([^\"]+)\"/i], - ["lang-js", /^on\w+\s*=\s*\'([^\']+)\'/i], - ["lang-js", /^on\w+\s*=\s*([^\"\'>\s]+)/i], - ["lang-css", /^style\s*=\s*\"([^\"]+)\"/i], - ["lang-css", /^style\s*=\s*\'([^\']+)\'/i], - ["lang-css", /^style\s*=\s*([^\"\'>\s]+)/i], - ] - ), - ["in.tag"] - ); - c(g([], [[n, /^[\s\S]+/]]), ["uq.val"]); - c(i({ keywords: l, hashComments: true, cStyleComments: true, types: e }), [ - "c", - "cc", - "cpp", - "cxx", - "cyc", - "m", - ]); - c(i({ keywords: "null,true,false" }), ["json"]); - c( - i({ - keywords: R, - hashComments: true, - cStyleComments: true, - verbatimStrings: true, - types: e, - }), - ["cs"] - ); - c(i({ keywords: x, cStyleComments: true }), ["java"]); - c(i({ keywords: H, hashComments: true, multiLineStrings: true }), [ - "bsh", - "csh", - "sh", - ]); - c( - i({ - keywords: I, - hashComments: true, - multiLineStrings: true, - tripleQuotedStrings: true, - }), - ["cv", "py"] - ); - c( - i({ - keywords: s, - hashComments: true, - multiLineStrings: true, - regexLiterals: true, - }), - ["perl", "pl", "pm"] - ); - c( - i({ - keywords: f, - hashComments: true, - multiLineStrings: true, - regexLiterals: true, - }), - ["rb"] - ); - c(i({ keywords: w, cStyleComments: true, regexLiterals: true }), ["js"]); - c( - i({ - keywords: r, - hashComments: 3, - cStyleComments: true, - multilineStrings: true, - tripleQuotedStrings: true, - regexLiterals: true, - }), - ["coffee"] - ); - c(g([], [[C, /^[\s\S]+/]]), ["regex"]); - function d(V) { - var U = V.langExtension; - try { - var S = a(V.sourceNode); - var T = S.sourceCode; - V.sourceCode = T; - V.spans = S.spans; - V.basePos = 0; - q(U, T)(V); - D(V); - } catch (W) { - if ("console" in window) { - console.log(W && W.stack ? W.stack : W); - } - } - } - function y(W, V, U) { - var S = document.createElement("PRE"); - S.innerHTML = W; - if (U) { - Q(S, U); - } - var T = { langExtension: V, numberLines: U, sourceNode: S }; - d(T); - return S.innerHTML; - } - function b(ad) { - function Y(af) { - return document.getElementsByTagName(af); - } - var ac = [Y("pre"), Y("code"), Y("xmp")]; - var T = []; - for (var aa = 0; aa < ac.length; ++aa) { - for (var Z = 0, V = ac[aa].length; Z < V; ++Z) { - T.push(ac[aa][Z]); - } - } - ac = null; - var W = Date; - if (!W.now) { - W = { - now: function () { - return +new Date(); - }, - }; - } - var X = 0; - var S; - var ab = /\blang(?:uage)?-([\w.]+)(?!\S)/; - var ae = /\bprettyprint\b/; - function U() { - var ag = window.PR_SHOULD_USE_CONTINUATION ? W.now() + 250 : Infinity; - for (; X < T.length && W.now() < ag; X++) { - var aj = T[X]; - var ai = aj.className; - if (ai.indexOf("prettyprint") >= 0) { - var ah = ai.match(ab); - var am; - if (!ah && (am = o(aj)) && "CODE" === am.tagName) { - ah = am.className.match(ab); - } - if (ah) { - ah = ah[1]; - } - var al = false; - for (var ak = aj.parentNode; ak; ak = ak.parentNode) { - if ( - (ak.tagName === "pre" || - ak.tagName === "code" || - ak.tagName === "xmp") && - ak.className && - ak.className.indexOf("prettyprint") >= 0 - ) { - al = true; - break; - } - } - if (!al) { - var af = aj.className.match(/\blinenums\b(?::(\d+))?/); - af = af ? (af[1] && af[1].length ? +af[1] : true) : false; - if (af) { - Q(aj, af); - } - S = { langExtension: ah, sourceNode: aj, numberLines: af }; - d(S); - } - } - } - if (X < T.length) { - setTimeout(U, 250); - } else { - if (ad) { - ad(); - } - } - } - U(); - } - window.prettyPrintOne = y; - window.prettyPrint = b; - window.PR = { - createSimpleLexer: g, - registerLangHandler: c, - sourceDecorator: i, - PR_ATTRIB_NAME: P, - PR_ATTRIB_VALUE: n, - PR_COMMENT: j, - PR_DECLARATION: E, - PR_KEYWORD: z, - PR_LITERAL: G, - PR_NOCODE: N, - PR_PLAIN: F, - PR_PUNCTUATION: L, - PR_SOURCE: J, - PR_STRING: C, - PR_TAG: m, - PR_TYPE: O, - }; -})(); -PR.registerLangHandler( - PR.createSimpleLexer( - [], - [ - [PR.PR_DECLARATION, /^]*(?:>|$)/], - [PR.PR_COMMENT, /^<\!--[\s\S]*?(?:-\->|$)/], - [PR.PR_PUNCTUATION, /^(?:<[%?]|[%?]>)/], - ["lang-", /^<\?([\s\S]+?)(?:\?>|$)/], - ["lang-", /^<%([\s\S]+?)(?:%>|$)/], - ["lang-", /^]*>([\s\S]+?)<\/xmp\b[^>]*>/i], - [ - "lang-handlebars", - /^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i, - ], - ["lang-js", /^]*>([\s\S]*?)(<\/script\b[^>]*>)/i], - ["lang-css", /^]*>([\s\S]*?)(<\/style\b[^>]*>)/i], - ["lang-in.tag", /^(<\/?[a-z][^<>]*>)/i], - [PR.PR_DECLARATION, /^{{[#^>/]?\s*[\w.][^}]*}}/], - [PR.PR_DECLARATION, /^{{&?\s*[\w.][^}]*}}/], - [PR.PR_DECLARATION, /^{{{>?\s*[\w.][^}]*}}}/], - [PR.PR_COMMENT, /^{{![^}]*}}/], - ] - ), - ["handlebars", "hbs"] -); -PR.registerLangHandler( - PR.createSimpleLexer( - [[PR.PR_PLAIN, /^[ \t\r\n\f]+/, null, " \t\r\n\f"]], - [ - [ - PR.PR_STRING, - /^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/, - null, - ], - [ - PR.PR_STRING, - /^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/, - null, - ], - ["lang-css-str", /^url\(([^\)\"\']*)\)/i], - [ - PR.PR_KEYWORD, - /^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i, - null, - ], - [ - "lang-css-kw", - /^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i, - ], - [PR.PR_COMMENT, /^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//], - [PR.PR_COMMENT, /^(?:)/], - [PR.PR_LITERAL, /^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i], - [PR.PR_LITERAL, /^#(?:[0-9a-f]{3}){1,2}/i], - [ - PR.PR_PLAIN, - /^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i, - ], - [PR.PR_PUNCTUATION, /^[^\s\w\'\"]+/], - ] - ), - ["css"] -); -PR.registerLangHandler( - PR.createSimpleLexer( - [], - [ - [ - PR.PR_KEYWORD, - /^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i, - ], - ] - ), - ["css-kw"] -); -PR.registerLangHandler( - PR.createSimpleLexer([], [[PR.PR_STRING, /^[^\)\"\']+/]]), - ["css-str"] -); diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png deleted file mode 100644 index 03f704a60..000000000 Binary files a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sort-arrow-sprite.png and /dev/null differ diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sorter.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sorter.js deleted file mode 100755 index 418a5b1b7..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sorter.js +++ /dev/null @@ -1,169 +0,0 @@ -/* eslint-disable */ -var addSorting = (function () { - "use strict"; - var cols, - currentSort = { - index: 0, - desc: false, - }; - - // returns the summary table element - function getTable() { - return document.querySelector(".coverage-summary"); - } - // returns the thead element of the summary table - function getTableHeader() { - return getTable().querySelector("thead tr"); - } - // returns the tbody element of the summary table - function getTableBody() { - return getTable().querySelector("tbody"); - } - // returns the th element for nth column - function getNthColumn(n) { - return getTableHeader().querySelectorAll("th")[n]; - } - - // loads all columns - function loadColumns() { - var colNodes = getTableHeader().querySelectorAll("th"), - colNode, - cols = [], - col, - i; - - for (i = 0; i < colNodes.length; i += 1) { - colNode = colNodes[i]; - col = { - key: colNode.getAttribute("data-col"), - sortable: !colNode.getAttribute("data-nosort"), - type: colNode.getAttribute("data-type") || "string", - }; - cols.push(col); - if (col.sortable) { - col.defaultDescSort = col.type === "number"; - colNode.innerHTML = colNode.innerHTML + ''; - } - } - return cols; - } - // attaches a data attribute to every tr element with an object - // of data values keyed by column name - function loadRowData(tableRow) { - var tableCols = tableRow.querySelectorAll("td"), - colNode, - col, - data = {}, - i, - val; - for (i = 0; i < tableCols.length; i += 1) { - colNode = tableCols[i]; - col = cols[i]; - val = colNode.getAttribute("data-value"); - if (col.type === "number") { - val = Number(val); - } - data[col.key] = val; - } - return data; - } - // loads all row data - function loadData() { - var rows = getTableBody().querySelectorAll("tr"), - i; - - for (i = 0; i < rows.length; i += 1) { - rows[i].data = loadRowData(rows[i]); - } - } - // sorts the table using the data for the ith column - function sortByIndex(index, desc) { - var key = cols[index].key, - sorter = function (a, b) { - a = a.data[key]; - b = b.data[key]; - return a < b ? -1 : a > b ? 1 : 0; - }, - finalSorter = sorter, - tableBody = document.querySelector(".coverage-summary tbody"), - rowNodes = tableBody.querySelectorAll("tr"), - rows = [], - i; - - if (desc) { - finalSorter = function (a, b) { - return -1 * sorter(a, b); - }; - } - - for (i = 0; i < rowNodes.length; i += 1) { - rows.push(rowNodes[i]); - tableBody.removeChild(rowNodes[i]); - } - - rows.sort(finalSorter); - - for (i = 0; i < rows.length; i += 1) { - tableBody.appendChild(rows[i]); - } - } - // removes sort indicators for current column being sorted - function removeSortIndicators() { - var col = getNthColumn(currentSort.index), - cls = col.className; - - cls = cls.replace(/ sorted$/, "").replace(/ sorted-desc$/, ""); - col.className = cls; - } - // adds sort indicators for current column being sorted - function addSortIndicators() { - getNthColumn(currentSort.index).className += currentSort.desc - ? " sorted-desc" - : " sorted"; - } - // adds event listeners for all sorter widgets - function enableUI() { - var i, - el, - ithSorter = function ithSorter(i) { - var col = cols[i]; - - return function () { - var desc = col.defaultDescSort; - - if (currentSort.index === i) { - desc = !currentSort.desc; - } - sortByIndex(i, desc); - removeSortIndicators(); - currentSort.index = i; - currentSort.desc = desc; - addSortIndicators(); - }; - }; - for (i = 0; i < cols.length; i += 1) { - if (cols[i].sortable) { - // add the click event handler on the th so users - // dont have to click on those tiny arrows - el = getNthColumn(i).querySelector(".sorter").parentElement; - if (el.addEventListener) { - el.addEventListener("click", ithSorter(i)); - } else { - el.attachEvent("onclick", ithSorter(i)); - } - } - } - } - // adds sorting functionality to the UI - return function () { - if (!getTable()) { - return; - } - cols = loadColumns(); - loadData(); - addSortIndicators(); - enableUI(); - }; -})(); - -window.addEventListener("load", addSorting); diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html deleted file mode 100644 index 9ae5a1485..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sync-inflate.js.html +++ /dev/null @@ -1,584 +0,0 @@ - - - - - - Code coverage report for sync-inflate.js - - - - - - - - - -
-
-

All files sync-inflate.js

-
- -
- 75.31% - Statements - 61/81 -
- - -
- 62% - Branches - 31/50 -
- - -
- 87.5% - Functions - 7/8 -
- - -
- 75.31% - Lines - 61/81 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -87 -88 -89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116 -117 -118 -119 -120 -121 -122 -123 -124 -125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145 -146 -147 -148 -149 -150 -151 -152 -153 -154 -155 -156 -157 -158 -159 -160 -161 -162 -163 -164 -165 -166 -167 -168 -169  -  -1x -1x -1x -  -1x -  -  -127x -  -  -  -127x -9x -  -  -127x -  -  -127x -127x -  -127x -127x -  -  -  -  -  -  -  -  -126x -  -  -  -  -126x -  -  -  -126x -126x -  -  -1x -127x -  -  -  -127x -  -127x -127x -127x -127x -  -127x -127x -  -  -127x -1x -  -  -  -126x -  -  -  -126x -126x -  -126x -126x -126x -  -126x -9x -  -  -126x -126x -126x -  -126x -126x -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -  -127x -  -127x -127x -  -  -  -  -  -  -  -  -  -127x -  -  -127x -1x -  -  -126x -  -  -  -  -  -  -  -  -126x -126x -  -126x -  -  -1x -  -  -127x -  -  -127x -  -  -  -127x -127x -  -  -  -127x -  -  -  -127x -  -  -1x -1x -1x -1x - 
"use strict";
- 
-let assert = require("assert").ok;
-let zlib = require("zlib");
-let util = require("util");
- 
-let kMaxLength = require("buffer").kMaxLength;
- 
-function Inflate(opts) {
-  Iif (!(this instanceof Inflate)) {
-    return new Inflate(opts);
-  }
- 
-  if (opts && opts.chunkSize < zlib.Z_MIN_CHUNK) {
-    opts.chunkSize = zlib.Z_MIN_CHUNK;
-  }
- 
-  zlib.Inflate.call(this, opts);
- 
-  // Node 8 --> 9 compatibility check
-  this._offset = this._offset === undefined ? this._outOffset : this._offset;
-  this._buffer = this._buffer || this._outBuffer;
- 
-  Eif (opts && opts.maxLength != null) {
-    this._maxLength = opts.maxLength;
-  }
-}
- 
-function createInflate(opts) {
-  return new Inflate(opts);
-}
- 
-function _close(engine, callback) {
-  Iif (callback) {
-    process.nextTick(callback);
-  }
- 
-  // Caller may invoke .close after a zlib error (which will null _handle).
-  Iif (!engine._handle) {
-    return;
-  }
- 
-  engine._handle.close();
-  engine._handle = null;
-}
- 
-Inflate.prototype._processChunk = function (chunk, flushFlag, asyncCb) {
-  Iif (typeof asyncCb === "function") {
-    return zlib.Inflate._processChunk.call(this, chunk, flushFlag, asyncCb);
-  }
- 
-  let self = this;
- 
-  let availInBefore = chunk && chunk.length;
-  let availOutBefore = this._chunkSize - this._offset;
-  let leftToInflate = this._maxLength;
-  let inOff = 0;
- 
-  let buffers = [];
-  let nread = 0;
- 
-  let error;
-  this.on("error", function (err) {
-    error = err;
-  });
- 
-  function handleChunk(availInAfter, availOutAfter) {
-    Iif (self._hadError) {
-      return;
-    }
- 
-    let have = availOutBefore - availOutAfter;
-    assert(have >= 0, "have should not go down");
- 
-    Eif (have > 0) {
-      let out = self._buffer.slice(self._offset, self._offset + have);
-      self._offset += have;
- 
-      if (out.length > leftToInflate) {
-        out = out.slice(0, leftToInflate);
-      }
- 
-      buffers.push(out);
-      nread += out.length;
-      leftToInflate -= out.length;
- 
-      Eif (leftToInflate === 0) {
-        return false;
-      }
-    }
- 
-    if (availOutAfter === 0 || self._offset >= self._chunkSize) {
-      availOutBefore = self._chunkSize;
-      self._offset = 0;
-      self._buffer = Buffer.allocUnsafe(self._chunkSize);
-    }
- 
-    if (availOutAfter === 0) {
-      inOff += availInBefore - availInAfter;
-      availInBefore = availInAfter;
- 
-      return true;
-    }
- 
-    return false;
-  }
- 
-  assert(this._handle, "zlib binding closed");
-  let res;
-  do {
-    res = this._handle.writeSync(
-      flushFlag,
-      chunk, // in
-      inOff, // in_off
-      availInBefore, // in_len
-      this._buffer, // out
-      this._offset, //out_off
-      availOutBefore
-    ); // out_len
-    // Node 8 --> 9 compatibility check
-    res = res || this._writeState;
-  } while (!this._hadError && handleChunk(res[0], res[1]));
- 
-  if (this._hadError) {
-    throw error;
-  }
- 
-  Iif (nread >= kMaxLength) {
-    _close(this);
-    throw new RangeError(
-      "Cannot create final Buffer. It would be larger than 0x" +
-        kMaxLength.toString(16) +
-        " bytes"
-    );
-  }
- 
-  let buf = Buffer.concat(buffers, nread);
-  _close(this);
- 
-  return buf;
-};
- 
-util.inherits(Inflate, zlib.Inflate);
- 
-function zlibBufferSync(engine, buffer) {
-  Iif (typeof buffer === "string") {
-    buffer = Buffer.from(buffer);
-  }
-  Iif (!(buffer instanceof Buffer)) {
-    throw new TypeError("Not a string or buffer");
-  }
- 
-  let flushFlag = engine._finishFlushFlag;
-  Iif (flushFlag == null) {
-    flushFlag = zlib.Z_FINISH;
-  }
- 
-  return engine._processChunk(buffer, flushFlag);
-}
- 
-function inflateSync(buffer, opts) {
-  return zlibBufferSync(new Inflate(opts), buffer);
-}
- 
-module.exports = exports = inflateSync;
-exports.Inflate = Inflate;
-exports.createInflate = createInflate;
-exports.inflateSync = inflateSync;
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html deleted file mode 100644 index 576dd88e0..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov-report/sync-reader.js.html +++ /dev/null @@ -1,215 +0,0 @@ - - - - - - Code coverage report for sync-reader.js - - - - - - - - - -
-
-

All files sync-reader.js

-
- -
- 88.89% - Statements - 16/18 -
- - -
- 72.73% - Branches - 8/11 -
- - -
- 100% - Functions - 3/3 -
- - -
- 88.89% - Lines - 16/18 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

-
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46  -  -1x -338x -338x -  -  -1x -9900x -  -  -  -  -  -  -1x -  -338x -9900x -  -9900x -  -  -  -  -9900x -  -9900x -  -9900x -  -9900x -  -  -  -  -  -338x -  -  -  -338x -13x -  -  - 
"use strict";
- 
-let SyncReader = (module.exports = function (buffer) {
-  this._buffer = buffer;
-  this._reads = [];
-});
- 
-SyncReader.prototype.read = function (length, callback) {
-  this._reads.push({
-    length: Math.abs(length), // if length < 0 then at most this length
-    allowLess: length < 0,
-    func: callback,
-  });
-};
- 
-SyncReader.prototype.process = function () {
-  // as long as there is any data and read requests
-  while (this._reads.length > 0 && this._buffer.length) {
-    let read = this._reads[0];
- 
-    Eif (
-      this._buffer.length &&
-      (this._buffer.length >= read.length || read.allowLess)
-    ) {
-      // ok there is any data so that we can satisfy this request
-      this._reads.shift(); // == read
- 
-      let buf = this._buffer;
- 
-      this._buffer = buf.slice(read.length);
- 
-      read.func.call(this, buf.slice(0, read.length));
-    } else {
-      break;
-    }
-  }
- 
-  Iif (this._reads.length > 0) {
-    return new Error("There are some read requests waitng on finished stream");
-  }
- 
-  if (this._buffer.length > 0) {
-    return new Error("unrecognised content at end of stream");
-  }
-};
- 
- -
-
- - - - - - - - - \ No newline at end of file diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov.info b/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov.info deleted file mode 100644 index 1a7a647b8..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/coverage/lcov.info +++ /dev/null @@ -1,2177 +0,0 @@ -TN: -SF:lib\bitmapper.js -FN:7,(anonymous_0) -FN:11,(anonymous_1) -FN:25,(anonymous_2) -FN:39,(anonymous_3) -FN:52,(anonymous_4) -FN:66,(anonymous_5) -FN:70,(anonymous_6) -FN:80,(anonymous_7) -FN:90,(anonymous_8) -FN:99,(anonymous_9) -FN:107,bitRetriever -FN:111,split -FN:153,(anonymous_12) -FN:161,(anonymous_13) -FN:164,(anonymous_14) -FN:172,mapImage8Bit -FN:187,mapImageCustomBit -FN:202,(anonymous_17) -FN:229,(anonymous_18) -FNF:19 -FNH:17 -FNDA:0,(anonymous_0) -FNDA:313632,(anonymous_1) -FNDA:8192,(anonymous_2) -FNDA:1228160,(anonymous_3) -FNDA:272640,(anonymous_4) -FNDA:0,(anonymous_5) -FNDA:1193380,(anonymous_6) -FNDA:8192,(anonymous_7) -FNDA:24576,(anonymous_8) -FNDA:8192,(anonymous_9) -FNDA:209,bitRetriever -FNDA:334250,split -FNDA:1234340,(anonymous_12) -FNDA:8106,(anonymous_13) -FNDA:209,(anonymous_14) -FNDA:210,mapImage8Bit -FNDA:529,mapImageCustomBit -FNDA:335,(anonymous_17) -FNDA:2732114,(anonymous_18) -DA:3,1 -DA:5,1 -DA:12,313632 -DA:13,0 -DA:16,313632 -DA:17,313632 -DA:18,313632 -DA:19,313632 -DA:20,313632 -DA:26,8192 -DA:27,0 -DA:30,8192 -DA:31,8192 -DA:32,8192 -DA:33,8192 -DA:34,8192 -DA:40,1228160 -DA:41,0 -DA:44,1228160 -DA:45,1228160 -DA:46,1228160 -DA:47,1228160 -DA:53,272640 -DA:54,0 -DA:57,272640 -DA:58,272640 -DA:59,272640 -DA:60,272640 -DA:64,1 -DA:71,1193380 -DA:72,1193380 -DA:73,1193380 -DA:74,1193380 -DA:75,1193380 -DA:81,8192 -DA:82,8192 -DA:83,8192 -DA:84,8192 -DA:85,8192 -DA:91,24576 -DA:92,24576 -DA:93,24576 -DA:94,24576 -DA:100,8192 -DA:101,8192 -DA:102,8192 -DA:103,8192 -DA:108,209 -DA:109,209 -DA:112,334250 -DA:113,0 -DA:115,334250 -DA:116,334250 -DA:118,334250 -DA:120,0 -DA:122,149504 -DA:123,149504 -DA:124,149504 -DA:125,149504 -DA:127,49612 -DA:128,49612 -DA:129,49612 -DA:130,49612 -DA:132,2968 -DA:133,2968 -DA:134,2968 -DA:135,2968 -DA:136,2968 -DA:137,2968 -DA:139,132166 -DA:140,132166 -DA:141,132166 -DA:142,132166 -DA:143,132166 -DA:144,132166 -DA:145,132166 -DA:146,132166 -DA:147,132166 -DA:148,132166 -DA:152,209 -DA:154,1234340 -DA:155,334250 -DA:157,1234340 -DA:158,1234340 -DA:159,1234340 -DA:162,8106 -DA:165,209 -DA:166,0 -DA:174,210 -DA:175,210 -DA:176,210 -DA:177,210 -DA:178,7288 -DA:179,1822624 -DA:180,1822624 -DA:181,1822624 -DA:184,210 -DA:189,529 -DA:190,529 -DA:191,529 -DA:192,529 -DA:193,8106 -DA:194,1234340 -DA:195,1234340 -DA:196,1234340 -DA:198,8106 -DA:202,1 -DA:203,335 -DA:204,335 -DA:205,335 -DA:206,335 -DA:207,335 -DA:210,335 -DA:211,209 -DA:214,335 -DA:215,269 -DA:217,66 -DA:219,335 -DA:220,335 -DA:224,335 -DA:225,72 -DA:226,72 -DA:228,263 -DA:229,263 -DA:230,2732114 -DA:231,2732114 -DA:232,2732114 -DA:234,263 -DA:237,335 -DA:238,739 -DA:239,210 -DA:248,529 -DA:258,335 -DA:259,126 -DA:260,0 -DA:263,209 -DA:266,335 -LF:137 -LH:129 -BRDA:12,0,0,0 -BRDA:12,0,1,313632 -BRDA:26,1,0,0 -BRDA:26,1,1,8192 -BRDA:40,2,0,0 -BRDA:40,2,1,1228160 -BRDA:53,3,0,0 -BRDA:53,3,1,272640 -BRDA:112,4,0,0 -BRDA:112,4,1,334250 -BRDA:118,5,0,0 -BRDA:118,5,1,149504 -BRDA:118,5,2,49612 -BRDA:118,5,3,2968 -BRDA:118,5,4,132166 -BRDA:165,6,0,0 -BRDA:165,6,1,209 -BRDA:210,7,0,209 -BRDA:210,7,1,126 -BRDA:214,8,0,269 -BRDA:214,8,1,66 -BRDA:224,9,0,72 -BRDA:224,9,1,263 -BRDA:238,10,0,210 -BRDA:238,10,1,529 -BRDA:258,11,0,126 -BRDA:258,11,1,209 -BRDA:259,12,0,0 -BRDA:259,12,1,126 -BRF:29 -BRH:21 -end_of_record -TN: -SF:lib\bitpacker.js -FN:5,(anonymous_0) -FN:11,(anonymous_1) -FN:52,getRGBA -FNF:3 -FNH:2 -FNDA:325,(anonymous_0) -FNDA:325,(anonymous_1) -FNDA:0,getRGBA -DA:3,1 -DA:5,1 -DA:7,325 -DA:10,325 -DA:11,325 -DA:12,325 -DA:13,325 -DA:15,325 -DA:18,325 -DA:19,325 -DA:24,0 -DA:26,0 -DA:27,0 -DA:28,0 -DA:29,0 -DA:31,0 -DA:32,0 -DA:33,0 -DA:34,0 -DA:36,0 -DA:38,0 -DA:39,0 -DA:41,0 -DA:42,0 -DA:43,0 -DA:45,0 -DA:46,0 -DA:48,0 -DA:49,0 -DA:56,0 -DA:57,0 -DA:59,0 -DA:60,0 -DA:61,0 -DA:62,0 -DA:63,0 -DA:65,0 -DA:66,0 -DA:67,0 -DA:68,0 -DA:70,0 -DA:71,0 -DA:72,0 -DA:73,0 -DA:74,0 -DA:76,0 -DA:77,0 -DA:78,0 -DA:79,0 -DA:81,0 -DA:88,0 -DA:89,0 -DA:90,0 -DA:91,0 -DA:95,0 -DA:99,0 -DA:105,0 -DA:108,0 -DA:109,0 -DA:110,0 -DA:112,0 -DA:115,0 -DA:116,0 -DA:117,0 -DA:118,0 -DA:119,0 -DA:120,0 -DA:123,0 -DA:124,0 -DA:125,0 -DA:126,0 -DA:127,0 -DA:130,0 -DA:134,0 -DA:135,0 -DA:136,0 -DA:137,0 -DA:138,0 -DA:141,0 -DA:142,0 -DA:143,0 -DA:146,0 -DA:149,0 -DA:152,0 -DA:153,0 -DA:157,0 -LF:86 -LH:10 -BRDA:10,0,0,325 -BRDA:10,0,1,0 -BRDA:18,1,0,325 -BRDA:18,1,1,0 -BRDA:18,2,0,325 -BRDA:18,2,1,0 -BRDA:18,2,2,0 -BRDA:24,3,0,0 -BRDA:24,3,1,0 -BRDA:28,4,0,0 -BRDA:28,4,1,0 -BRDA:28,5,0,0 -BRDA:28,5,1,0 -BRDA:32,6,0,0 -BRDA:32,6,1,0 -BRDA:41,7,0,0 -BRDA:41,7,1,0 -BRDA:42,8,0,0 -BRDA:42,8,1,0 -BRDA:45,9,0,0 -BRDA:45,9,1,0 -BRDA:48,10,0,0 -BRDA:48,10,1,0 -BRDA:57,11,0,0 -BRDA:57,11,1,0 -BRDA:57,11,2,0 -BRDA:57,11,3,0 -BRDA:57,11,4,0 -BRDA:88,12,0,0 -BRDA:88,12,1,0 -BRDA:89,13,0,0 -BRDA:89,13,1,0 -BRDA:112,14,0,0 -BRDA:112,14,1,0 -BRDA:112,14,2,0 -BRDA:112,14,3,0 -BRDA:112,14,4,0 -BRDA:115,15,0,0 -BRDA:115,15,1,0 -BRDA:119,16,0,0 -BRDA:119,16,1,0 -BRDA:126,17,0,0 -BRDA:126,17,1,0 -BRDA:135,18,0,0 -BRDA:135,18,1,0 -BRDA:137,19,0,0 -BRDA:137,19,1,0 -BRDA:142,20,0,0 -BRDA:142,20,1,0 -BRF:49 -BRH:3 -end_of_record -TN: -SF:lib\chunkstream.js -FN:6,(anonymous_0) -FN:20,(anonymous_1) -FN:28,(anonymous_2) -FN:41,(anonymous_3) -FN:67,(anonymous_4) -FN:90,(anonymous_5) -FN:98,(anonymous_6) -FN:110,(anonymous_7) -FN:132,(anonymous_8) -FN:163,(anonymous_9) -FNF:10 -FNH:10 -FNDA:529,(anonymous_0) -FNDA:13318,(anonymous_1) -FNDA:13318,(anonymous_2) -FNDA:943,(anonymous_3) -FNDA:311,(anonymous_4) -FNDA:311,(anonymous_5) -FNDA:327,(anonymous_6) -FNDA:741,(anonymous_7) -FNDA:12408,(anonymous_8) -FNDA:14263,(anonymous_9) -DA:3,1 -DA:4,1 -DA:6,1 -DA:7,529 -DA:9,529 -DA:10,529 -DA:12,529 -DA:13,529 -DA:15,529 -DA:16,529 -DA:18,1 -DA:20,1 -DA:21,13318 -DA:27,13318 -DA:29,13318 -DA:32,13318 -DA:33,0 -DA:35,0 -DA:41,1 -DA:42,943 -DA:43,0 -DA:44,0 -DA:48,943 -DA:49,943 -DA:51,0 -DA:54,943 -DA:55,943 -DA:57,943 -DA:60,943 -DA:61,346 -DA:64,943 -DA:67,1 -DA:68,311 -DA:69,0 -DA:72,311 -DA:75,311 -DA:76,0 -DA:80,311 -DA:81,309 -DA:83,2 -DA:84,2 -DA:88,1 -DA:90,1 -DA:91,311 -DA:92,3 -DA:95,311 -DA:98,1 -DA:99,327 -DA:100,0 -DA:103,327 -DA:104,327 -DA:105,327 -DA:107,327 -DA:110,1 -DA:112,741 -DA:115,741 -DA:118,741 -DA:119,568 -DA:120,568 -DA:122,568 -DA:125,173 -DA:126,173 -DA:128,173 -DA:132,1 -DA:133,12408 -DA:135,12408 -DA:136,12408 -DA:137,12408 -DA:140,12408 -DA:141,12617 -DA:142,12617 -DA:144,12617 -DA:145,12617 -DA:148,12617 -DA:149,11863 -DA:154,12408 -DA:155,532 -DA:158,12408 -DA:160,12408 -DA:163,1 -DA:164,14263 -DA:166,14263 -DA:167,15656 -DA:170,15656 -DA:171,741 -DA:172,14915 -DA:175,12408 -DA:179,2507 -DA:183,14263 -DA:184,2 -DA:187,0 -LF:91 -LH:82 -BRDA:32,0,0,0 -BRDA:32,0,1,13318 -BRDA:32,1,0,13318 -BRDA:32,1,1,10215 -BRDA:42,2,0,0 -BRDA:42,2,1,943 -BRDA:48,3,0,943 -BRDA:48,3,1,0 -BRDA:51,4,0,0 -BRDA:51,4,1,0 -BRDA:60,5,0,346 -BRDA:60,5,1,597 -BRDA:60,6,0,943 -BRDA:60,6,1,929 -BRDA:64,7,0,943 -BRDA:64,7,1,929 -BRDA:68,8,0,0 -BRDA:68,8,1,311 -BRDA:75,9,0,0 -BRDA:75,9,1,311 -BRDA:80,10,0,309 -BRDA:80,10,1,2 -BRDA:91,11,0,3 -BRDA:91,11,1,308 -BRDA:99,12,0,0 -BRDA:99,12,1,327 -BRDA:118,13,0,568 -BRDA:118,13,1,173 -BRDA:148,14,0,11863 -BRDA:148,14,1,754 -BRDA:154,15,0,532 -BRDA:154,15,1,11876 -BRDA:166,16,0,27412 -BRDA:166,16,1,15708 -BRDA:166,16,2,15671 -BRDA:170,17,0,741 -BRDA:170,17,1,14915 -BRDA:172,18,0,12408 -BRDA:172,18,1,2507 -BRDA:183,19,0,2 -BRDA:183,19,1,14261 -BRDA:183,20,0,14263 -BRDA:183,20,1,14213 -BRF:43 -BRH:35 -end_of_record -TN: -SF:lib\constants.js -FNF:0 -FNH:0 -DA:3,1 -LF:1 -LH:1 -BRF:0 -BRH:0 -end_of_record -TN: -SF:lib\crc.js -FN:5,(anonymous_0) -FN:19,(anonymous_1) -FN:23,(anonymous_2) -FN:30,(anonymous_3) -FN:34,(anonymous_4) -FNF:5 -FNH:5 -FNDA:1,(anonymous_0) -FNDA:2461,(anonymous_1) -FNDA:4839,(anonymous_2) -FNDA:2195,(anonymous_3) -FNDA:1592,(anonymous_4) -DA:3,1 -DA:5,1 -DA:6,1 -DA:7,256 -DA:8,256 -DA:9,2048 -DA:10,1024 -DA:12,1024 -DA:15,256 -DA:19,1 -DA:20,2461 -DA:23,1 -DA:24,4839 -DA:25,823519 -DA:27,4839 -DA:30,1 -DA:31,2195 -DA:34,1 -DA:35,1592 -DA:36,1592 -DA:37,305287 -DA:39,1592 -LF:22 -LH:22 -BRDA:9,0,0,1024 -BRDA:9,0,1,1024 -BRF:2 -BRH:2 -end_of_record -TN: -SF:lib\filter-pack.js -FN:5,filterNone -FN:11,filterSumNone -FN:21,filterSub -FN:30,filterSumSub -FN:42,filterUp -FN:51,filterSumUp -FN:64,filterAvg -FN:74,filterSumAvg -FN:87,filterPaeth -FN:99,filterSumPaeth -FN:130,(anonymous_10) -FNF:11 -FNH:11 -FNDA:44,filterNone -FNDA:10490,filterSumNone -FNDA:637,filterSub -FNDA:10490,filterSumSub -FNDA:2670,filterUp -FNDA:10490,filterSumUp -FNDA:208,filterAvg -FNDA:10490,filterSumAvg -FNDA:6931,filterPaeth -FNDA:10490,filterSumPaeth -FNDA:325,(anonymous_10) -DA:3,1 -DA:6,44 -DA:7,5136 -DA:12,10490 -DA:13,10490 -DA:15,10490 -DA:16,2776736 -DA:18,10490 -DA:22,637 -DA:23,107032 -DA:24,107032 -DA:26,107032 -DA:31,10490 -DA:32,10490 -DA:33,2776736 -DA:34,2776736 -DA:36,2776736 -DA:39,10490 -DA:43,2670 -DA:44,581344 -DA:45,581344 -DA:47,581344 -DA:52,10490 -DA:53,10490 -DA:54,10490 -DA:55,2776736 -DA:56,2776736 -DA:58,2776736 -DA:61,10490 -DA:65,208 -DA:66,204096 -DA:67,204096 -DA:68,204096 -DA:70,204096 -DA:75,10490 -DA:76,10490 -DA:77,2776736 -DA:78,2776736 -DA:79,2776736 -DA:81,2776736 -DA:84,10490 -DA:88,6931 -DA:89,1879128 -DA:90,1879128 -DA:92,1879128 -DA:93,1879128 -DA:95,1879128 -DA:100,10490 -DA:101,10490 -DA:102,2776736 -DA:103,2776736 -DA:105,2776736 -DA:106,2776736 -DA:108,2776736 -DA:111,10490 -DA:114,1 -DA:122,1 -DA:130,1 -DA:132,325 -DA:133,325 -DA:134,0 -DA:135,0 -DA:137,0 -DA:140,325 -DA:141,0 -DA:143,325 -DA:144,325 -DA:145,325 -DA:146,325 -DA:148,325 -DA:150,325 -DA:151,10490 -DA:153,10490 -DA:155,10490 -DA:156,52450 -DA:157,52450 -DA:158,35370 -DA:159,35370 -DA:164,10490 -DA:165,10490 -DA:166,10490 -DA:167,10490 -DA:168,10490 -DA:170,325 -LF:84 -LH:80 -BRDA:23,0,0,104484 -BRDA:23,0,1,2548 -BRDA:33,1,0,2734776 -BRDA:33,1,1,41960 -BRDA:44,2,0,581344 -BRDA:44,2,1,0 -BRDA:55,3,0,2734120 -BRDA:55,3,1,42616 -BRDA:66,4,0,203264 -BRDA:66,4,1,832 -BRDA:67,5,0,204096 -BRDA:67,5,1,0 -BRDA:77,6,0,2734776 -BRDA:77,6,1,41960 -BRDA:78,7,0,2734120 -BRDA:78,7,1,42616 -BRDA:89,8,0,1851404 -BRDA:89,8,1,27724 -BRDA:90,9,0,1879128 -BRDA:90,9,1,0 -BRDA:92,10,0,1851404 -BRDA:92,10,1,27724 -BRDA:92,11,0,1879128 -BRDA:92,11,1,1879128 -BRDA:102,12,0,2734776 -BRDA:102,12,1,41960 -BRDA:103,13,0,2734120 -BRDA:103,13,1,42616 -BRDA:105,14,0,2693460 -BRDA:105,14,1,83276 -BRDA:105,15,0,2776736 -BRDA:105,15,1,2734120 -BRDA:132,16,0,325 -BRDA:132,16,1,0 -BRDA:132,17,0,325 -BRDA:132,17,1,1 -BRDA:134,18,0,0 -BRDA:134,18,1,0 -BRDA:140,19,0,0 -BRDA:140,19,1,325 -BRDA:151,20,0,10490 -BRDA:151,20,1,0 -BRDA:157,21,0,35370 -BRDA:157,21,1,17080 -BRF:44 -BRH:36 -end_of_record -TN: -SF:lib\filter-parse-async.js -FN:7,(anonymous_0) -FN:14,(anonymous_1) -FN:17,(anonymous_2) -FNF:3 -FNH:3 -FNDA:176,(anonymous_0) -FNDA:9057,(anonymous_1) -FNDA:173,(anonymous_2) -DA:3,1 -DA:4,1 -DA:5,1 -DA:7,1 -DA:8,176 -DA:10,176 -DA:11,176 -DA:12,176 -DA:15,9057 -DA:18,173 -DA:22,176 -DA:24,1 -LF:12 -LH:12 -BRF:0 -BRH:0 -end_of_record -TN: -SF:lib\filter-parse-sync.js -FN:6,(anonymous_0) -FN:11,(anonymous_1) -FN:14,(anonymous_2) -FNF:3 -FNH:3 -FNDA:162,(anonymous_0) -FNDA:6337,(anonymous_1) -FNDA:162,(anonymous_2) -DA:3,1 -DA:4,1 -DA:6,1 -DA:7,162 -DA:8,162 -DA:9,162 -DA:12,6337 -DA:17,162 -DA:18,162 -DA:20,162 -LF:10 -LH:10 -BRF:0 -BRH:0 -end_of_record -TN: -SF:lib\filter-parse.js -FN:6,getByteWidth -FN:14,(anonymous_1) -FN:57,(anonymous_2) -FN:64,(anonymous_3) -FN:79,(anonymous_4) -FN:93,(anonymous_5) -FN:111,(anonymous_6) -FN:130,(anonymous_7) -FNF:8 -FNH:8 -FNDA:742,getByteWidth -FNDA:338,(anonymous_1) -FNDA:338,(anonymous_2) -FNDA:1939,(anonymous_3) -FNDA:800,(anonymous_4) -FNDA:172,(anonymous_5) -FNDA:4165,(anonymous_6) -FNDA:15394,(anonymous_7) -DA:3,1 -DA:4,1 -DA:7,742 -DA:8,742 -DA:9,531 -DA:11,742 -DA:14,1 -DA:15,338 -DA:16,338 -DA:17,338 -DA:18,338 -DA:19,338 -DA:21,338 -DA:22,338 -DA:23,338 -DA:25,338 -DA:26,338 -DA:27,338 -DA:28,72 -DA:29,72 -DA:30,476 -DA:37,266 -DA:48,338 -DA:49,127 -DA:50,211 -DA:51,66 -DA:53,145 -DA:57,1 -DA:58,338 -DA:64,1 -DA:69,1939 -DA:70,1939 -DA:72,1939 -DA:73,3563504 -DA:74,3563504 -DA:75,3563504 -DA:79,1 -DA:84,800 -DA:86,800 -DA:87,330256 -DA:88,330256 -DA:89,330256 -DA:93,1 -DA:98,172 -DA:99,172 -DA:100,172 -DA:102,172 -DA:103,9952 -DA:104,9952 -DA:105,9952 -DA:106,9952 -DA:107,9952 -DA:111,1 -DA:116,4165 -DA:117,4165 -DA:118,4165 -DA:120,4165 -DA:121,1152544 -DA:122,1152544 -DA:123,1152544 -DA:124,1152544 -DA:125,1152544 -DA:126,1152544 -DA:130,1 -DA:131,15394 -DA:133,15394 -DA:134,15394 -DA:136,15394 -DA:137,8318 -DA:139,7076 -DA:141,7076 -DA:143,1939 -DA:144,1939 -DA:146,800 -DA:147,800 -DA:149,172 -DA:150,172 -DA:152,4165 -DA:153,4165 -DA:155,0 -DA:159,15394 -DA:161,15394 -DA:162,15394 -DA:163,739 -DA:164,739 -DA:165,739 -DA:167,14655 -DA:170,15394 -DA:172,15059 -DA:174,335 -DA:175,335 -LF:91 -LH:90 -BRDA:8,0,0,531 -BRDA:8,0,1,211 -BRDA:27,1,0,72 -BRDA:27,1,1,266 -BRDA:48,2,0,127 -BRDA:48,2,1,211 -BRDA:50,3,0,66 -BRDA:50,3,1,145 -BRDA:74,4,0,3557696 -BRDA:74,4,1,5808 -BRDA:88,5,0,330000 -BRDA:88,5,1,256 -BRDA:104,6,0,9536 -BRDA:104,6,1,416 -BRDA:105,7,0,9554 -BRDA:105,7,1,398 -BRDA:122,8,0,1152288 -BRDA:122,8,1,256 -BRDA:123,9,0,1137296 -BRDA:123,9,1,15248 -BRDA:124,10,0,1137048 -BRDA:124,10,1,15496 -BRDA:124,11,0,1152544 -BRDA:124,11,1,1137296 -BRDA:136,12,0,8318 -BRDA:136,12,1,7076 -BRDA:141,13,0,1939 -BRDA:141,13,1,800 -BRDA:141,13,2,172 -BRDA:141,13,3,4165 -BRDA:141,13,4,0 -BRDA:162,14,0,739 -BRDA:162,14,1,14655 -BRDA:170,15,0,15059 -BRDA:170,15,1,335 -BRF:35 -BRH:34 -end_of_record -TN: -SF:lib\format-normaliser.js -FN:3,dePalette -FN:22,replaceTransparentColor -FN:49,scaleDepth -FN:66,(anonymous_3) -FNF:4 -FNH:4 -FNDA:131,dePalette -FNDA:12,replaceTransparentColor -FNDA:106,scaleDepth -FNDA:335,(anonymous_3) -DA:4,131 -DA:6,131 -DA:7,4912 -DA:8,1418436 -DA:10,1418436 -DA:11,0 -DA:14,1418436 -DA:15,5673744 -DA:17,1418436 -DA:23,12 -DA:24,12 -DA:25,384 -DA:26,12288 -DA:28,12288 -DA:29,6144 -DA:30,2762 -DA:32,6144 -DA:37,2718 -DA:39,12288 -DA:40,5480 -DA:41,21920 -DA:44,12288 -DA:50,106 -DA:51,106 -DA:52,106 -DA:54,106 -DA:55,3392 -DA:56,108544 -DA:57,434176 -DA:61,108544 -DA:66,1 -DA:67,335 -DA:68,335 -DA:69,335 -DA:70,335 -DA:71,335 -DA:72,335 -DA:74,335 -DA:76,335 -DA:78,131 -DA:80,204 -DA:81,12 -DA:84,204 -DA:86,106 -DA:87,66 -DA:89,106 -DA:92,335 -LF:47 -LH:46 -BRDA:10,0,0,0 -BRDA:10,0,1,1418436 -BRDA:28,1,0,6144 -BRDA:28,1,1,6144 -BRDA:29,2,0,2762 -BRDA:29,2,1,3382 -BRDA:32,3,0,2718 -BRDA:32,3,1,3426 -BRDA:33,4,0,6144 -BRDA:33,4,1,2718 -BRDA:33,4,2,2718 -BRDA:39,5,0,5480 -BRDA:39,5,1,6808 -BRDA:76,6,0,131 -BRDA:76,6,1,204 -BRDA:80,7,0,12 -BRDA:80,7,1,192 -BRDA:84,8,0,106 -BRDA:84,8,1,98 -BRDA:86,9,0,66 -BRDA:86,9,1,40 -BRF:21 -BRH:20 -end_of_record -TN: -SF:lib\interlace.js -FN:52,(anonymous_0) -FN:83,(anonymous_1) -FN:84,(anonymous_2) -FNF:3 -FNH:3 -FNDA:144,(anonymous_0) -FNDA:72,(anonymous_1) -FNDA:324850,(anonymous_2) -DA:14,1 -DA:52,1 -DA:53,144 -DA:54,144 -DA:55,144 -DA:56,144 -DA:57,144 -DA:58,144 -DA:59,1008 -DA:60,1008 -DA:61,1008 -DA:62,1008 -DA:63,1556 -DA:64,672 -DA:66,884 -DA:69,1008 -DA:70,1360 -DA:71,552 -DA:73,808 -DA:76,1008 -DA:77,952 -DA:80,144 -DA:83,1 -DA:84,72 -DA:85,324850 -DA:87,324850 -DA:89,324850 -DA:91,324850 -DA:93,324850 -LF:29 -LH:29 -BRDA:63,0,0,672 -BRDA:63,0,1,884 -BRDA:70,1,0,552 -BRDA:70,1,1,808 -BRDA:76,2,0,952 -BRDA:76,2,1,56 -BRDA:76,3,0,1008 -BRDA:76,3,1,980 -BRF:8 -BRH:8 -end_of_record -TN: -SF:lib\packer-async.js -FN:8,(anonymous_0) -FN:20,(anonymous_1) -FN:36,(anonymous_2) -FN:43,(anonymous_3) -FNF:4 -FNH:4 -FNDA:353,(anonymous_0) -FNDA:325,(anonymous_1) -FNDA:652,(anonymous_2) -FNDA:325,(anonymous_3) -DA:3,1 -DA:4,1 -DA:5,1 -DA:6,1 -DA:8,1 -DA:9,353 -DA:11,353 -DA:13,353 -DA:14,353 -DA:16,353 -DA:18,1 -DA:20,1 -DA:22,325 -DA:23,325 -DA:25,325 -DA:26,290 -DA:29,325 -DA:32,325 -DA:34,325 -DA:37,652 -DA:41,325 -DA:44,325 -DA:45,325 -DA:49,325 -LF:24 -LH:24 -BRDA:11,0,0,353 -BRDA:11,0,1,0 -BRDA:25,1,0,290 -BRDA:25,1,1,35 -BRF:4 -BRH:3 -end_of_record -TN: -SF:lib\packer-sync.js -FN:11,(anonymous_0) -FNF:1 -FNH:0 -FNDA:0,(anonymous_0) -DA:3,1 -DA:4,1 -DA:5,1 -DA:6,0 -DA:8,1 -DA:9,1 -DA:11,1 -DA:12,0 -DA:13,0 -DA:18,0 -DA:20,0 -DA:22,0 -DA:25,0 -DA:28,0 -DA:30,0 -DA:31,0 -DA:34,0 -DA:41,0 -DA:45,0 -DA:47,0 -DA:48,0 -DA:50,0 -DA:53,0 -DA:55,0 -LF:24 -LH:6 -BRDA:5,0,0,0 -BRDA:5,0,1,1 -BRDA:12,1,0,0 -BRDA:12,1,1,0 -BRDA:18,2,0,0 -BRDA:18,2,1,0 -BRDA:30,3,0,0 -BRDA:30,3,1,0 -BRDA:47,4,0,0 -BRDA:47,4,1,0 -BRDA:47,5,0,0 -BRDA:47,5,1,0 -BRF:12 -BRH:1 -end_of_record -TN: -SF:lib\packer.js -FN:9,(anonymous_0) -FN:64,(anonymous_1) -FN:72,(anonymous_2) -FN:76,(anonymous_3) -FN:86,(anonymous_4) -FN:104,(anonymous_5) -FN:110,(anonymous_6) -FN:123,(anonymous_7) -FN:127,(anonymous_8) -FNF:9 -FNH:9 -FNDA:353,(anonymous_0) -FNDA:353,(anonymous_1) -FNDA:353,(anonymous_2) -FNDA:325,(anonymous_3) -FNDA:1592,(anonymous_4) -FNDA:290,(anonymous_5) -FNDA:325,(anonymous_6) -FNDA:652,(anonymous_7) -FNDA:325,(anonymous_8) -DA:3,1 -DA:4,1 -DA:5,1 -DA:6,1 -DA:7,1 -DA:9,1 -DA:10,353 -DA:12,353 -DA:13,353 -DA:15,353 -DA:17,353 -DA:19,353 -DA:20,353 -DA:22,353 -DA:26,353 -DA:31,353 -DA:39,0 -DA:43,353 -DA:51,0 -DA:57,353 -DA:58,0 -DA:64,1 -DA:65,353 -DA:72,1 -DA:73,353 -DA:76,1 -DA:78,325 -DA:81,325 -DA:82,325 -DA:83,325 -DA:86,1 -DA:87,1592 -DA:88,1592 -DA:90,1592 -DA:91,1592 -DA:93,1592 -DA:94,1267 -DA:97,1592 -DA:101,1592 -DA:104,1 -DA:105,290 -DA:106,290 -DA:107,290 -DA:110,1 -DA:111,325 -DA:112,325 -DA:113,325 -DA:114,325 -DA:115,325 -DA:116,325 -DA:117,325 -DA:118,325 -DA:120,325 -DA:123,1 -DA:124,652 -DA:127,1 -DA:128,325 -LF:57 -LH:54 -BRDA:12,0,0,353 -BRDA:12,0,1,353 -BRDA:14,1,0,0 -BRDA:14,1,1,353 -BRDA:16,2,0,0 -BRDA:16,2,1,353 -BRDA:18,3,0,0 -BRDA:18,3,1,353 -BRDA:19,4,0,353 -BRDA:19,4,1,353 -BRDA:20,5,0,353 -BRDA:20,5,1,353 -BRDA:23,6,0,0 -BRDA:23,6,1,353 -BRDA:27,7,0,0 -BRDA:27,7,1,353 -BRDA:31,8,0,0 -BRDA:31,8,1,353 -BRDA:43,9,0,0 -BRDA:43,9,1,353 -BRDA:57,10,0,0 -BRDA:57,10,1,353 -BRDA:57,11,0,353 -BRDA:57,11,1,0 -BRDA:87,12,0,1267 -BRDA:87,12,1,325 -BRDA:93,13,0,1267 -BRDA:93,13,1,325 -BRF:28 -BRH:19 -end_of_record -TN: -SF:lib\paeth-predictor.js -FN:3,paethPredictor -FNF:1 -FNH:1 -FNDA:5808408,paethPredictor -DA:3,1 -DA:4,5808408 -DA:5,5808408 -DA:6,5808408 -DA:7,5808408 -DA:9,5808408 -DA:10,5156742 -DA:12,651666 -DA:13,539893 -DA:15,111773 -LF:10 -LH:10 -BRDA:9,0,0,5156742 -BRDA:9,0,1,651666 -BRDA:9,1,0,5808408 -BRDA:9,1,1,5231305 -BRDA:12,2,0,539893 -BRDA:12,2,1,111773 -BRF:6 -BRH:6 -end_of_record -TN: -SF:lib\parser-async.js -FN:11,(anonymous_0) -FN:33,(anonymous_1) -FN:49,(anonymous_2) -FN:55,(anonymous_3) -FN:79,(anonymous_4) -FN:89,(anonymous_5) -FN:109,(anonymous_6) -FN:116,(anonymous_7) -FN:120,(anonymous_8) -FN:124,(anonymous_9) -FN:128,(anonymous_10) -FN:134,(anonymous_11) -FN:147,(anonymous_12) -FNF:13 -FNH:11 -FNDA:353,(anonymous_0) -FNDA:14,(anonymous_1) -FNDA:0,(anonymous_2) -FNDA:741,(anonymous_3) -FNDA:0,(anonymous_4) -FNDA:487,(anonymous_5) -FNDA:176,(anonymous_6) -FNDA:7,(anonymous_7) -FNDA:77,(anonymous_8) -FNDA:15,(anonymous_9) -FNDA:174,(anonymous_10) -FNDA:173,(anonymous_11) -FNDA:173,(anonymous_12) -DA:3,1 -DA:4,1 -DA:5,1 -DA:6,1 -DA:7,1 -DA:8,1 -DA:9,1 -DA:11,1 -DA:12,353 -DA:14,353 -DA:26,353 -DA:27,353 -DA:29,353 -DA:31,1 -DA:33,1 -DA:34,14 -DA:36,14 -DA:38,14 -DA:40,14 -DA:41,1 -DA:44,14 -DA:45,2 -DA:49,2 -DA:52,14 -DA:55,1 -DA:56,741 -DA:57,174 -DA:58,36 -DA:60,36 -DA:61,36 -DA:63,36 -DA:66,138 -DA:72,138 -DA:73,138 -DA:75,138 -DA:76,138 -DA:78,138 -DA:79,138 -DA:80,0 -DA:81,0 -DA:84,0 -DA:86,138 -DA:88,138 -DA:89,138 -DA:90,487 -DA:91,0 -DA:94,487 -DA:95,0 -DA:98,487 -DA:100,487 -DA:103,138 -DA:106,741 -DA:109,1 -DA:110,176 -DA:111,176 -DA:113,176 -DA:116,1 -DA:117,7 -DA:120,1 -DA:121,77 -DA:124,1 -DA:125,15 -DA:128,1 -DA:131,174 -DA:134,1 -DA:135,173 -DA:136,0 -DA:139,173 -DA:140,1 -DA:143,172 -DA:147,1 -DA:148,173 -DA:149,0 -DA:154,173 -DA:155,173 -DA:157,173 -DA:158,173 -DA:160,0 -DA:161,0 -DA:164,173 -LF:80 -LH:71 -BRDA:40,0,0,1 -BRDA:40,0,1,13 -BRDA:40,1,0,14 -BRDA:40,1,1,1 -BRDA:44,2,0,2 -BRDA:44,2,1,12 -BRDA:56,3,0,174 -BRDA:56,3,1,567 -BRDA:57,4,0,36 -BRDA:57,4,1,138 -BRDA:80,5,0,0 -BRDA:80,5,1,0 -BRDA:90,6,0,0 -BRDA:90,6,1,487 -BRDA:94,7,0,0 -BRDA:94,7,1,487 -BRDA:135,8,0,0 -BRDA:135,8,1,173 -BRDA:139,9,0,1 -BRDA:139,9,1,172 -BRDA:148,10,0,0 -BRDA:148,10,1,173 -BRF:22 -BRH:16 -end_of_record -TN: -SF:lib\parser-sync.js -FN:15,(anonymous_0) -FN:23,handleError -FN:28,handleMetaData -FN:32,handleTransColor -FN:36,handlePalette -FN:40,handleSimpleTransparency -FN:45,handleGamma -FN:50,handleInflateData -FNF:8 -FNH:8 -FNDA:176,(anonymous_0) -FNDA:13,handleError -FNDA:165,handleMetaData -FNDA:5,handleTransColor -FNDA:73,handlePalette -FNDA:12,handleSimpleTransparency -FNDA:147,handleGamma -FNDA:492,handleInflateData -DA:3,1 -DA:4,1 -DA:5,1 -DA:6,1 -DA:7,0 -DA:9,1 -DA:10,1 -DA:11,1 -DA:12,1 -DA:13,1 -DA:15,1 -DA:16,176 -DA:17,0 -DA:24,13 -DA:29,165 -DA:33,5 -DA:37,73 -DA:41,12 -DA:46,147 -DA:49,176 -DA:51,492 -DA:54,176 -DA:56,176 -DA:67,176 -DA:68,176 -DA:70,176 -DA:71,13 -DA:75,163 -DA:76,163 -DA:79,163 -DA:80,36 -DA:83,127 -DA:84,127 -DA:85,127 -DA:90,162 -DA:92,162 -DA:93,0 -DA:96,162 -DA:97,162 -DA:99,162 -DA:100,162 -DA:102,162 -DA:104,162 -DA:105,162 -DA:107,162 -LF:45 -LH:42 -BRDA:6,0,0,0 -BRDA:6,0,1,1 -BRDA:16,1,0,0 -BRDA:16,1,1,176 -BRDA:70,2,0,13 -BRDA:70,2,1,163 -BRDA:79,3,0,36 -BRDA:79,3,1,127 -BRDA:92,4,0,0 -BRDA:92,4,1,162 -BRDA:92,5,0,162 -BRDA:92,5,1,162 -BRDA:105,6,0,162 -BRDA:105,6,1,17 -BRF:14 -BRH:11 -end_of_record -TN: -SF:lib\parser.js -FN:6,(anonymous_0) -FN:36,(anonymous_1) -FN:39,(anonymous_2) -FN:43,(anonymous_3) -FN:55,(anonymous_4) -FN:93,(anonymous_5) -FN:97,(anonymous_6) -FN:101,(anonymous_7) -FN:116,(anonymous_8) -FN:119,(anonymous_9) -FN:183,(anonymous_10) -FN:186,(anonymous_11) -FN:201,(anonymous_12) -FN:205,(anonymous_13) -FN:241,(anonymous_14) -FN:244,(anonymous_15) -FN:251,(anonymous_16) -FN:258,(anonymous_17) -FN:278,(anonymous_18) -FN:281,(anonymous_19) -FNF:20 -FNH:20 -FNDA:529,(anonymous_0) -FNDA:163,(anonymous_1) -FNDA:529,(anonymous_2) -FNDA:365,(anonymous_3) -FNDA:2461,(anonymous_4) -FNDA:256,(anonymous_5) -FNDA:2195,(anonymous_6) -FNDA:2195,(anonymous_7) -FNDA:351,(anonymous_8) -FNDA:351,(anonymous_9) -FNDA:135,(anonymous_10) -FNDA:135,(anonymous_11) -FNDA:27,(anonymous_12) -FNDA:27,(anonymous_13) -FNDA:296,(anonymous_14) -FNDA:296,(anonymous_15) -FNDA:1233,(anonymous_16) -FNDA:1233,(anonymous_17) -FNDA:336,(anonymous_18) -FNDA:336,(anonymous_19) -DA:3,1 -DA:4,1 -DA:6,1 -DA:7,529 -DA:8,529 -DA:10,529 -DA:11,529 -DA:12,529 -DA:15,529 -DA:16,529 -DA:18,529 -DA:19,529 -DA:20,529 -DA:21,529 -DA:22,529 -DA:23,529 -DA:24,529 -DA:26,529 -DA:27,529 -DA:28,529 -DA:29,529 -DA:30,529 -DA:31,529 -DA:32,529 -DA:33,529 -DA:34,529 -DA:35,529 -DA:36,529 -DA:39,1 -DA:40,529 -DA:43,1 -DA:44,365 -DA:46,365 -DA:47,2867 -DA:48,13 -DA:49,13 -DA:52,352 -DA:55,1 -DA:57,2461 -DA:60,2461 -DA:61,2461 -DA:62,2461 -DA:63,9844 -DA:69,2461 -DA:73,2461 -DA:74,0 -DA:75,0 -DA:78,2461 -DA:79,2461 -DA:81,2461 -DA:82,2205 -DA:85,256 -DA:86,0 -DA:87,0 -DA:90,256 -DA:93,1 -DA:94,256 -DA:97,1 -DA:98,2195 -DA:101,1 -DA:102,2195 -DA:103,2195 -DA:106,2195 -DA:107,4 -DA:108,4 -DA:111,2191 -DA:112,1855 -DA:116,1 -DA:117,351 -DA:119,1 -DA:120,351 -DA:122,351 -DA:123,351 -DA:124,351 -DA:125,351 -DA:126,351 -DA:127,351 -DA:128,351 -DA:135,351 -DA:142,6 -DA:143,6 -DA:145,345 -DA:146,4 -DA:147,4 -DA:149,341 -DA:150,0 -DA:151,0 -DA:153,341 -DA:154,0 -DA:155,0 -DA:157,341 -DA:158,0 -DA:159,0 -DA:162,341 -DA:164,341 -DA:166,341 -DA:168,341 -DA:180,341 -DA:183,1 -DA:184,135 -DA:186,1 -DA:187,135 -DA:189,135 -DA:192,135 -DA:193,7350 -DA:196,135 -DA:198,135 -DA:201,1 -DA:202,27 -DA:203,27 -DA:205,1 -DA:206,27 -DA:209,27 -DA:210,15 -DA:211,0 -DA:212,0 -DA:214,15 -DA:215,0 -DA:216,0 -DA:218,15 -DA:219,529 -DA:221,15 -DA:226,27 -DA:228,6 -DA:230,27 -DA:231,6 -DA:238,27 -DA:241,1 -DA:242,296 -DA:244,1 -DA:245,296 -DA:246,296 -DA:248,296 -DA:251,1 -DA:252,1233 -DA:253,337 -DA:254,337 -DA:256,1233 -DA:258,1 -DA:259,1233 -DA:261,1233 -DA:265,0 -DA:268,1233 -DA:269,1233 -DA:271,1233 -DA:272,173 -DA:274,1060 -DA:278,1 -DA:279,336 -DA:281,1 -DA:282,336 -DA:284,336 -DA:285,336 -DA:287,336 -DA:288,173 -LF:155 -LH:140 -BRDA:36,0,0,529 -BRDA:36,0,1,176 -BRDA:47,1,0,13 -BRDA:47,1,1,2854 -BRDA:73,2,0,0 -BRDA:73,2,1,2461 -BRDA:73,3,0,2461 -BRDA:73,3,1,351 -BRDA:81,4,0,2205 -BRDA:81,4,1,256 -BRDA:85,5,0,0 -BRDA:85,5,1,256 -BRDA:106,6,0,4 -BRDA:106,6,1,2191 -BRDA:106,7,0,2195 -BRDA:106,7,1,2195 -BRDA:111,8,0,1855 -BRDA:111,8,1,336 -BRDA:135,9,0,6 -BRDA:135,9,1,345 -BRDA:136,10,0,351 -BRDA:136,10,1,219 -BRDA:136,10,2,132 -BRDA:136,10,3,101 -BRDA:136,10,4,72 -BRDA:145,11,0,4 -BRDA:145,11,1,341 -BRDA:149,12,0,0 -BRDA:149,12,1,341 -BRDA:153,13,0,0 -BRDA:153,13,1,341 -BRDA:157,14,0,0 -BRDA:157,14,1,341 -BRDA:157,15,0,341 -BRDA:157,15,1,72 -BRDA:209,16,0,15 -BRDA:209,16,1,12 -BRDA:210,17,0,0 -BRDA:210,17,1,15 -BRDA:214,18,0,0 -BRDA:214,18,1,15 -BRDA:226,19,0,6 -BRDA:226,19,1,21 -BRDA:230,20,0,6 -BRDA:230,20,1,21 -BRDA:252,21,0,337 -BRDA:252,21,1,896 -BRDA:261,22,0,0 -BRDA:261,22,1,1233 -BRDA:262,23,0,1233 -BRDA:262,23,1,131 -BRDA:271,24,0,173 -BRDA:271,24,1,1060 -BRDA:287,25,0,173 -BRDA:287,25,1,163 -BRF:55 -BRH:47 -end_of_record -TN: -SF:lib\png-sync.js -FN:6,(anonymous_0) -FN:10,(anonymous_1) -FNF:2 -FNH:1 -FNDA:176,(anonymous_0) -FNDA:0,(anonymous_1) -DA:3,1 -DA:4,1 -DA:6,1 -DA:7,176 -DA:10,1 -DA:11,0 -LF:6 -LH:5 -BRDA:7,0,0,176 -BRDA:7,0,1,176 -BRF:2 -BRH:2 -end_of_record -TN: -SF:lib\png.js -FN:9,(anonymous_0) -FN:38,(anonymous_1) -FN:54,(anonymous_2) -FN:61,(anonymous_3) -FN:69,(anonymous_4) -FN:73,(anonymous_5) -FN:80,(anonymous_6) -FN:94,(anonymous_7) -FN:99,(anonymous_8) -FN:103,(anonymous_9) -FN:110,(anonymous_10) -FN:114,(anonymous_11) -FN:120,(anonymous_12) -FN:160,(anonymous_13) -FN:175,(anonymous_14) -FN:192,(anonymous_15) -FNF:16 -FNH:9 -FNDA:353,(anonymous_0) -FNDA:173,(anonymous_1) -FNDA:325,(anonymous_2) -FNDA:325,(anonymous_3) -FNDA:0,(anonymous_4) -FNDA:0,(anonymous_5) -FNDA:0,(anonymous_6) -FNDA:412,(anonymous_7) -FNDA:175,(anonymous_8) -FNDA:174,(anonymous_9) -FNDA:149,(anonymous_10) -FNDA:378,(anonymous_11) -FNDA:0,(anonymous_12) -FNDA:0,(anonymous_13) -FNDA:0,(anonymous_14) -FNDA:0,(anonymous_15) -DA:3,1 -DA:4,1 -DA:5,1 -DA:6,1 -DA:7,1 -DA:9,1 -DA:10,353 -DA:12,353 -DA:15,353 -DA:16,353 -DA:18,353 -DA:23,353 -DA:24,0 -DA:27,353 -DA:28,353 -DA:30,353 -DA:32,353 -DA:33,353 -DA:34,353 -DA:35,353 -DA:36,353 -DA:39,173 -DA:40,173 -DA:44,353 -DA:45,353 -DA:46,353 -DA:47,353 -DA:48,353 -DA:50,1 -DA:52,1 -DA:54,1 -DA:55,325 -DA:56,0 -DA:57,0 -DA:60,325 -DA:62,325 -DA:66,325 -DA:69,1 -DA:70,0 -DA:73,0 -DA:74,0 -DA:76,0 -DA:77,0 -DA:80,0 -DA:81,0 -DA:83,0 -DA:86,0 -DA:87,0 -DA:90,0 -DA:91,0 -DA:94,1 -DA:95,412 -DA:96,412 -DA:99,1 -DA:100,175 -DA:103,1 -DA:104,174 -DA:105,174 -DA:107,174 -DA:110,1 -DA:111,149 -DA:114,1 -DA:115,378 -DA:116,0 -DA:120,1 -DA:124,0 -DA:125,0 -DA:126,0 -DA:127,0 -DA:128,0 -DA:129,0 -DA:132,0 -DA:138,0 -DA:141,0 -DA:147,0 -DA:150,0 -DA:151,0 -DA:160,1 -DA:171,0 -DA:172,0 -DA:175,1 -DA:176,0 -DA:177,0 -DA:178,0 -DA:179,0 -DA:181,0 -DA:182,0 -DA:183,0 -DA:184,0 -DA:188,0 -DA:192,1 -DA:193,0 -LF:92 -LH:52 -BRDA:12,0,0,353 -BRDA:12,0,1,348 -BRDA:19,1,0,1 -BRDA:19,1,1,352 -BRDA:19,2,0,353 -BRDA:19,2,1,1 -BRDA:23,3,0,0 -BRDA:23,3,1,353 -BRDA:23,4,0,353 -BRDA:23,4,1,0 -BRDA:55,5,0,0 -BRDA:55,5,1,325 -BRDA:55,6,0,325 -BRDA:55,6,1,325 -BRDA:70,7,0,0 -BRDA:70,7,1,0 -BRDA:115,8,0,0 -BRDA:115,8,1,378 -BRDA:115,9,0,378 -BRDA:115,9,1,378 -BRDA:132,10,0,0 -BRDA:132,10,1,0 -BRDA:133,11,0,0 -BRDA:133,11,1,0 -BRDA:133,11,2,0 -BRDA:133,11,3,0 -BRDA:141,12,0,0 -BRDA:141,12,1,0 -BRDA:142,13,0,0 -BRDA:142,13,1,0 -BRDA:142,13,2,0 -BRDA:142,13,3,0 -BRDA:176,14,0,0 -BRDA:176,14,1,0 -BRF:34 -BRH:14 -end_of_record -TN: -SF:lib\sync-inflate.js -FN:9,Inflate -FN:29,createInflate -FN:33,_close -FN:47,(anonymous_3) -FN:63,(anonymous_4) -FN:67,handleChunk -FN:145,zlibBufferSync -FN:161,inflateSync -FNF:8 -FNH:7 -FNDA:127,Inflate -FNDA:0,createInflate -FNDA:126,_close -FNDA:127,(anonymous_3) -FNDA:1,(anonymous_4) -FNDA:126,handleChunk -FNDA:127,zlibBufferSync -FNDA:127,inflateSync -DA:3,1 -DA:4,1 -DA:5,1 -DA:7,1 -DA:10,127 -DA:11,0 -DA:14,127 -DA:15,9 -DA:18,127 -DA:21,127 -DA:22,127 -DA:24,127 -DA:25,127 -DA:30,0 -DA:34,126 -DA:35,0 -DA:39,126 -DA:40,0 -DA:43,126 -DA:44,126 -DA:47,1 -DA:48,127 -DA:49,0 -DA:52,127 -DA:54,127 -DA:55,127 -DA:56,127 -DA:57,127 -DA:59,127 -DA:60,127 -DA:63,127 -DA:64,1 -DA:68,126 -DA:69,0 -DA:72,126 -DA:73,126 -DA:75,126 -DA:76,126 -DA:77,126 -DA:79,126 -DA:80,9 -DA:83,126 -DA:84,126 -DA:85,126 -DA:87,126 -DA:88,126 -DA:92,0 -DA:93,0 -DA:94,0 -DA:95,0 -DA:98,0 -DA:99,0 -DA:100,0 -DA:102,0 -DA:105,0 -DA:108,127 -DA:110,127 -DA:111,127 -DA:121,127 -DA:124,127 -DA:125,1 -DA:128,126 -DA:129,0 -DA:130,0 -DA:137,126 -DA:138,126 -DA:140,126 -DA:143,1 -DA:146,127 -DA:147,0 -DA:149,127 -DA:150,0 -DA:153,127 -DA:154,127 -DA:155,0 -DA:158,127 -DA:162,127 -DA:165,1 -DA:166,1 -DA:167,1 -DA:168,1 -LF:81 -LH:61 -BRDA:10,0,0,0 -BRDA:10,0,1,127 -BRDA:14,1,0,9 -BRDA:14,1,1,118 -BRDA:14,2,0,127 -BRDA:14,2,1,127 -BRDA:21,3,0,127 -BRDA:21,3,1,0 -BRDA:22,4,0,127 -BRDA:22,4,1,127 -BRDA:24,5,0,127 -BRDA:24,5,1,0 -BRDA:24,6,0,127 -BRDA:24,6,1,127 -BRDA:34,7,0,0 -BRDA:34,7,1,126 -BRDA:39,8,0,0 -BRDA:39,8,1,126 -BRDA:48,9,0,0 -BRDA:48,9,1,127 -BRDA:54,10,0,127 -BRDA:54,10,1,127 -BRDA:68,11,0,0 -BRDA:68,11,1,126 -BRDA:75,12,0,126 -BRDA:75,12,1,0 -BRDA:79,13,0,9 -BRDA:79,13,1,117 -BRDA:87,14,0,126 -BRDA:87,14,1,0 -BRDA:92,15,0,0 -BRDA:92,15,1,0 -BRDA:92,16,0,0 -BRDA:92,16,1,0 -BRDA:98,17,0,0 -BRDA:98,17,1,0 -BRDA:122,18,0,127 -BRDA:122,18,1,126 -BRDA:121,19,0,127 -BRDA:121,19,1,127 -BRDA:124,20,0,1 -BRDA:124,20,1,126 -BRDA:128,21,0,0 -BRDA:128,21,1,126 -BRDA:146,22,0,0 -BRDA:146,22,1,127 -BRDA:149,23,0,0 -BRDA:149,23,1,127 -BRDA:154,24,0,0 -BRDA:154,24,1,127 -BRF:50 -BRH:31 -end_of_record -TN: -SF:lib\sync-reader.js -FN:3,(anonymous_0) -FN:8,(anonymous_1) -FN:16,(anonymous_2) -FNF:3 -FNH:3 -FNDA:338,(anonymous_0) -FNDA:9900,(anonymous_1) -FNDA:338,(anonymous_2) -DA:3,1 -DA:4,338 -DA:5,338 -DA:8,1 -DA:9,9900 -DA:16,1 -DA:18,338 -DA:19,9900 -DA:21,9900 -DA:26,9900 -DA:28,9900 -DA:30,9900 -DA:32,9900 -DA:34,0 -DA:38,338 -DA:39,0 -DA:42,338 -DA:43,13 -LF:18 -LH:16 -BRDA:18,0,0,10238 -BRDA:18,0,1,9900 -BRDA:21,1,0,9900 -BRDA:21,1,1,0 -BRDA:22,2,0,9900 -BRDA:22,2,1,9900 -BRDA:22,2,2,0 -BRDA:38,3,0,0 -BRDA:38,3,1,338 -BRDA:42,4,0,13 -BRDA:42,4,1,325 -BRF:11 -BRH:8 -end_of_record diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/bitmapper.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/bitmapper.js deleted file mode 100755 index 18378a02d..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/bitmapper.js +++ /dev/null @@ -1,267 +0,0 @@ -"use strict"; - -let interlaceUtils = require("./interlace"); - -let pixelBppMapper = [ - // 0 - dummy entry - function () {}, - - // 1 - L - // 0: 0, 1: 0, 2: 0, 3: 0xff - function (pxData, data, pxPos, rawPos) { - if (rawPos === data.length) { - throw new Error("Ran out of data"); - } - - let pixel = data[rawPos]; - pxData[pxPos] = pixel; - pxData[pxPos + 1] = pixel; - pxData[pxPos + 2] = pixel; - pxData[pxPos + 3] = 0xff; - }, - - // 2 - LA - // 0: 0, 1: 0, 2: 0, 3: 1 - function (pxData, data, pxPos, rawPos) { - if (rawPos + 1 >= data.length) { - throw new Error("Ran out of data"); - } - - let pixel = data[rawPos]; - pxData[pxPos] = pixel; - pxData[pxPos + 1] = pixel; - pxData[pxPos + 2] = pixel; - pxData[pxPos + 3] = data[rawPos + 1]; - }, - - // 3 - RGB - // 0: 0, 1: 1, 2: 2, 3: 0xff - function (pxData, data, pxPos, rawPos) { - if (rawPos + 2 >= data.length) { - throw new Error("Ran out of data"); - } - - pxData[pxPos] = data[rawPos]; - pxData[pxPos + 1] = data[rawPos + 1]; - pxData[pxPos + 2] = data[rawPos + 2]; - pxData[pxPos + 3] = 0xff; - }, - - // 4 - RGBA - // 0: 0, 1: 1, 2: 2, 3: 3 - function (pxData, data, pxPos, rawPos) { - if (rawPos + 3 >= data.length) { - throw new Error("Ran out of data"); - } - - pxData[pxPos] = data[rawPos]; - pxData[pxPos + 1] = data[rawPos + 1]; - pxData[pxPos + 2] = data[rawPos + 2]; - pxData[pxPos + 3] = data[rawPos + 3]; - }, -]; - -let pixelBppCustomMapper = [ - // 0 - dummy entry - function () {}, - - // 1 - L - // 0: 0, 1: 0, 2: 0, 3: 0xff - function (pxData, pixelData, pxPos, maxBit) { - let pixel = pixelData[0]; - pxData[pxPos] = pixel; - pxData[pxPos + 1] = pixel; - pxData[pxPos + 2] = pixel; - pxData[pxPos + 3] = maxBit; - }, - - // 2 - LA - // 0: 0, 1: 0, 2: 0, 3: 1 - function (pxData, pixelData, pxPos) { - let pixel = pixelData[0]; - pxData[pxPos] = pixel; - pxData[pxPos + 1] = pixel; - pxData[pxPos + 2] = pixel; - pxData[pxPos + 3] = pixelData[1]; - }, - - // 3 - RGB - // 0: 0, 1: 1, 2: 2, 3: 0xff - function (pxData, pixelData, pxPos, maxBit) { - pxData[pxPos] = pixelData[0]; - pxData[pxPos + 1] = pixelData[1]; - pxData[pxPos + 2] = pixelData[2]; - pxData[pxPos + 3] = maxBit; - }, - - // 4 - RGBA - // 0: 0, 1: 1, 2: 2, 3: 3 - function (pxData, pixelData, pxPos) { - pxData[pxPos] = pixelData[0]; - pxData[pxPos + 1] = pixelData[1]; - pxData[pxPos + 2] = pixelData[2]; - pxData[pxPos + 3] = pixelData[3]; - }, -]; - -function bitRetriever(data, depth) { - let leftOver = []; - let i = 0; - - function split() { - if (i === data.length) { - throw new Error("Ran out of data"); - } - let byte = data[i]; - i++; - let byte8, byte7, byte6, byte5, byte4, byte3, byte2, byte1; - switch (depth) { - default: - throw new Error("unrecognised depth"); - case 16: - byte2 = data[i]; - i++; - leftOver.push((byte << 8) + byte2); - break; - case 4: - byte2 = byte & 0x0f; - byte1 = byte >> 4; - leftOver.push(byte1, byte2); - break; - case 2: - byte4 = byte & 3; - byte3 = (byte >> 2) & 3; - byte2 = (byte >> 4) & 3; - byte1 = (byte >> 6) & 3; - leftOver.push(byte1, byte2, byte3, byte4); - break; - case 1: - byte8 = byte & 1; - byte7 = (byte >> 1) & 1; - byte6 = (byte >> 2) & 1; - byte5 = (byte >> 3) & 1; - byte4 = (byte >> 4) & 1; - byte3 = (byte >> 5) & 1; - byte2 = (byte >> 6) & 1; - byte1 = (byte >> 7) & 1; - leftOver.push(byte1, byte2, byte3, byte4, byte5, byte6, byte7, byte8); - break; - } - } - - return { - get: function (count) { - while (leftOver.length < count) { - split(); - } - let returner = leftOver.slice(0, count); - leftOver = leftOver.slice(count); - return returner; - }, - resetAfterLine: function () { - leftOver.length = 0; - }, - end: function () { - if (i !== data.length) { - throw new Error("extra data found"); - } - }, - }; -} - -function mapImage8Bit(image, pxData, getPxPos, bpp, data, rawPos) { - // eslint-disable-line max-params - let imageWidth = image.width; - let imageHeight = image.height; - let imagePass = image.index; - for (let y = 0; y < imageHeight; y++) { - for (let x = 0; x < imageWidth; x++) { - let pxPos = getPxPos(x, y, imagePass); - pixelBppMapper[bpp](pxData, data, pxPos, rawPos); - rawPos += bpp; //eslint-disable-line no-param-reassign - } - } - return rawPos; -} - -function mapImageCustomBit(image, pxData, getPxPos, bpp, bits, maxBit) { - // eslint-disable-line max-params - let imageWidth = image.width; - let imageHeight = image.height; - let imagePass = image.index; - for (let y = 0; y < imageHeight; y++) { - for (let x = 0; x < imageWidth; x++) { - let pixelData = bits.get(bpp); - let pxPos = getPxPos(x, y, imagePass); - pixelBppCustomMapper[bpp](pxData, pixelData, pxPos, maxBit); - } - bits.resetAfterLine(); - } -} - -exports.dataToBitMap = function (data, bitmapInfo) { - let width = bitmapInfo.width; - let height = bitmapInfo.height; - let depth = bitmapInfo.depth; - let bpp = bitmapInfo.bpp; - let interlace = bitmapInfo.interlace; - let bits; - - if (depth !== 8) { - bits = bitRetriever(data, depth); - } - let pxData; - if (depth <= 8) { - pxData = Buffer.alloc(width * height * 4); - } else { - pxData = new Uint16Array(width * height * 4); - } - let maxBit = Math.pow(2, depth) - 1; - let rawPos = 0; - let images; - let getPxPos; - - if (interlace) { - images = interlaceUtils.getImagePasses(width, height); - getPxPos = interlaceUtils.getInterlaceIterator(width, height); - } else { - let nonInterlacedPxPos = 0; - getPxPos = function () { - let returner = nonInterlacedPxPos; - nonInterlacedPxPos += 4; - return returner; - }; - images = [{ width: width, height: height }]; - } - - for (let imageIndex = 0; imageIndex < images.length; imageIndex++) { - if (depth === 8) { - rawPos = mapImage8Bit( - images[imageIndex], - pxData, - getPxPos, - bpp, - data, - rawPos - ); - } else { - mapImageCustomBit( - images[imageIndex], - pxData, - getPxPos, - bpp, - bits, - maxBit - ); - } - } - if (depth === 8) { - if (rawPos !== data.length) { - throw new Error("extra data found"); - } - } else { - bits.end(); - } - - return pxData; -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/bitpacker.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/bitpacker.js deleted file mode 100755 index d7a4e6568..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/bitpacker.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; - -let constants = require("./constants"); - -module.exports = function (dataIn, width, height, options) { - let outHasAlpha = - [constants.COLORTYPE_COLOR_ALPHA, constants.COLORTYPE_ALPHA].indexOf( - options.colorType - ) !== -1; - if (options.colorType === options.inputColorType) { - let bigEndian = (function () { - let buffer = new ArrayBuffer(2); - new DataView(buffer).setInt16(0, 256, true /* littleEndian */); - // Int16Array uses the platform's endianness. - return new Int16Array(buffer)[0] !== 256; - })(); - // If no need to convert to grayscale and alpha is present/absent in both, take a fast route - if (options.bitDepth === 8 || (options.bitDepth === 16 && bigEndian)) { - return dataIn; - } - } - - // map to a UInt16 array if data is 16bit, fix endianness below - let data = options.bitDepth !== 16 ? dataIn : new Uint16Array(dataIn.buffer); - - let maxValue = 255; - let inBpp = constants.COLORTYPE_TO_BPP_MAP[options.inputColorType]; - if (inBpp === 4 && !options.inputHasAlpha) { - inBpp = 3; - } - let outBpp = constants.COLORTYPE_TO_BPP_MAP[options.colorType]; - if (options.bitDepth === 16) { - maxValue = 65535; - outBpp *= 2; - } - let outData = Buffer.alloc(width * height * outBpp); - - let inIndex = 0; - let outIndex = 0; - - let bgColor = options.bgColor || {}; - if (bgColor.red === undefined) { - bgColor.red = maxValue; - } - if (bgColor.green === undefined) { - bgColor.green = maxValue; - } - if (bgColor.blue === undefined) { - bgColor.blue = maxValue; - } - - function getRGBA() { - let red; - let green; - let blue; - let alpha = maxValue; - switch (options.inputColorType) { - case constants.COLORTYPE_COLOR_ALPHA: - alpha = data[inIndex + 3]; - red = data[inIndex]; - green = data[inIndex + 1]; - blue = data[inIndex + 2]; - break; - case constants.COLORTYPE_COLOR: - red = data[inIndex]; - green = data[inIndex + 1]; - blue = data[inIndex + 2]; - break; - case constants.COLORTYPE_ALPHA: - alpha = data[inIndex + 1]; - red = data[inIndex]; - green = red; - blue = red; - break; - case constants.COLORTYPE_GRAYSCALE: - red = data[inIndex]; - green = red; - blue = red; - break; - default: - throw new Error( - "input color type:" + - options.inputColorType + - " is not supported at present" - ); - } - - if (options.inputHasAlpha) { - if (!outHasAlpha) { - alpha /= maxValue; - red = Math.min( - Math.max(Math.round((1 - alpha) * bgColor.red + alpha * red), 0), - maxValue - ); - green = Math.min( - Math.max(Math.round((1 - alpha) * bgColor.green + alpha * green), 0), - maxValue - ); - blue = Math.min( - Math.max(Math.round((1 - alpha) * bgColor.blue + alpha * blue), 0), - maxValue - ); - } - } - return { red: red, green: green, blue: blue, alpha: alpha }; - } - - for (let y = 0; y < height; y++) { - for (let x = 0; x < width; x++) { - let rgba = getRGBA(data, inIndex); - - switch (options.colorType) { - case constants.COLORTYPE_COLOR_ALPHA: - case constants.COLORTYPE_COLOR: - if (options.bitDepth === 8) { - outData[outIndex] = rgba.red; - outData[outIndex + 1] = rgba.green; - outData[outIndex + 2] = rgba.blue; - if (outHasAlpha) { - outData[outIndex + 3] = rgba.alpha; - } - } else { - outData.writeUInt16BE(rgba.red, outIndex); - outData.writeUInt16BE(rgba.green, outIndex + 2); - outData.writeUInt16BE(rgba.blue, outIndex + 4); - if (outHasAlpha) { - outData.writeUInt16BE(rgba.alpha, outIndex + 6); - } - } - break; - case constants.COLORTYPE_ALPHA: - case constants.COLORTYPE_GRAYSCALE: { - // Convert to grayscale and alpha - let grayscale = (rgba.red + rgba.green + rgba.blue) / 3; - if (options.bitDepth === 8) { - outData[outIndex] = grayscale; - if (outHasAlpha) { - outData[outIndex + 1] = rgba.alpha; - } - } else { - outData.writeUInt16BE(grayscale, outIndex); - if (outHasAlpha) { - outData.writeUInt16BE(rgba.alpha, outIndex + 2); - } - } - break; - } - default: - throw new Error("unrecognised color Type " + options.colorType); - } - - inIndex += inBpp; - outIndex += outBpp; - } - } - - return outData; -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/chunkstream.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/chunkstream.js deleted file mode 100755 index 95b46d488..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/chunkstream.js +++ /dev/null @@ -1,189 +0,0 @@ -"use strict"; - -let util = require("util"); -let Stream = require("stream"); - -let ChunkStream = (module.exports = function () { - Stream.call(this); - - this._buffers = []; - this._buffered = 0; - - this._reads = []; - this._paused = false; - - this._encoding = "utf8"; - this.writable = true; -}); -util.inherits(ChunkStream, Stream); - -ChunkStream.prototype.read = function (length, callback) { - this._reads.push({ - length: Math.abs(length), // if length < 0 then at most this length - allowLess: length < 0, - func: callback, - }); - - process.nextTick( - function () { - this._process(); - - // its paused and there is not enought data then ask for more - if (this._paused && this._reads && this._reads.length > 0) { - this._paused = false; - - this.emit("drain"); - } - }.bind(this) - ); -}; - -ChunkStream.prototype.write = function (data, encoding) { - if (!this.writable) { - this.emit("error", new Error("Stream not writable")); - return false; - } - - let dataBuffer; - if (Buffer.isBuffer(data)) { - dataBuffer = data; - } else { - dataBuffer = Buffer.from(data, encoding || this._encoding); - } - - this._buffers.push(dataBuffer); - this._buffered += dataBuffer.length; - - this._process(); - - // ok if there are no more read requests - if (this._reads && this._reads.length === 0) { - this._paused = true; - } - - return this.writable && !this._paused; -}; - -ChunkStream.prototype.end = function (data, encoding) { - if (data) { - this.write(data, encoding); - } - - this.writable = false; - - // already destroyed - if (!this._buffers) { - return; - } - - // enqueue or handle end - if (this._buffers.length === 0) { - this._end(); - } else { - this._buffers.push(null); - this._process(); - } -}; - -ChunkStream.prototype.destroySoon = ChunkStream.prototype.end; - -ChunkStream.prototype._end = function () { - if (this._reads.length > 0) { - this.emit("error", new Error("Unexpected end of input")); - } - - this.destroy(); -}; - -ChunkStream.prototype.destroy = function () { - if (!this._buffers) { - return; - } - - this.writable = false; - this._reads = null; - this._buffers = null; - - this.emit("close"); -}; - -ChunkStream.prototype._processReadAllowingLess = function (read) { - // ok there is any data so that we can satisfy this request - this._reads.shift(); // == read - - // first we need to peek into first buffer - let smallerBuf = this._buffers[0]; - - // ok there is more data than we need - if (smallerBuf.length > read.length) { - this._buffered -= read.length; - this._buffers[0] = smallerBuf.slice(read.length); - - read.func.call(this, smallerBuf.slice(0, read.length)); - } else { - // ok this is less than maximum length so use it all - this._buffered -= smallerBuf.length; - this._buffers.shift(); // == smallerBuf - - read.func.call(this, smallerBuf); - } -}; - -ChunkStream.prototype._processRead = function (read) { - this._reads.shift(); // == read - - let pos = 0; - let count = 0; - let data = Buffer.alloc(read.length); - - // create buffer for all data - while (pos < read.length) { - let buf = this._buffers[count++]; - let len = Math.min(buf.length, read.length - pos); - - buf.copy(data, pos, 0, len); - pos += len; - - // last buffer wasn't used all so just slice it and leave - if (len !== buf.length) { - this._buffers[--count] = buf.slice(len); - } - } - - // remove all used buffers - if (count > 0) { - this._buffers.splice(0, count); - } - - this._buffered -= read.length; - - read.func.call(this, data); -}; - -ChunkStream.prototype._process = function () { - try { - // as long as there is any data and read requests - while (this._buffered > 0 && this._reads && this._reads.length > 0) { - let read = this._reads[0]; - - // read any data (but no more than length) - if (read.allowLess) { - this._processReadAllowingLess(read); - } else if (this._buffered >= read.length) { - // ok we can meet some expectations - - this._processRead(read); - } else { - // not enought data to satisfy first request in queue - // so we need to wait for more - break; - } - } - - if (this._buffers && !this.writable) { - this._end(); - } - } catch (ex) { - this.emit("error", ex); - } -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/constants.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/constants.js deleted file mode 100755 index 21fdad688..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/constants.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; - -module.exports = { - PNG_SIGNATURE: [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a], - - TYPE_IHDR: 0x49484452, - TYPE_IEND: 0x49454e44, - TYPE_IDAT: 0x49444154, - TYPE_PLTE: 0x504c5445, - TYPE_tRNS: 0x74524e53, // eslint-disable-line camelcase - TYPE_gAMA: 0x67414d41, // eslint-disable-line camelcase - - // color-type bits - COLORTYPE_GRAYSCALE: 0, - COLORTYPE_PALETTE: 1, - COLORTYPE_COLOR: 2, - COLORTYPE_ALPHA: 4, // e.g. grayscale and alpha - - // color-type combinations - COLORTYPE_PALETTE_COLOR: 3, - COLORTYPE_COLOR_ALPHA: 6, - - COLORTYPE_TO_BPP_MAP: { - 0: 1, - 2: 3, - 3: 1, - 4: 2, - 6: 4, - }, - - GAMMA_DIVISION: 100000, -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/crc.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/crc.js deleted file mode 100755 index 950ec8aee..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/crc.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; - -let crcTable = []; - -(function () { - for (let i = 0; i < 256; i++) { - let currentCrc = i; - for (let j = 0; j < 8; j++) { - if (currentCrc & 1) { - currentCrc = 0xedb88320 ^ (currentCrc >>> 1); - } else { - currentCrc = currentCrc >>> 1; - } - } - crcTable[i] = currentCrc; - } -})(); - -let CrcCalculator = (module.exports = function () { - this._crc = -1; -}); - -CrcCalculator.prototype.write = function (data) { - for (let i = 0; i < data.length; i++) { - this._crc = crcTable[(this._crc ^ data[i]) & 0xff] ^ (this._crc >>> 8); - } - return true; -}; - -CrcCalculator.prototype.crc32 = function () { - return this._crc ^ -1; -}; - -CrcCalculator.crc32 = function (buf) { - let crc = -1; - for (let i = 0; i < buf.length; i++) { - crc = crcTable[(crc ^ buf[i]) & 0xff] ^ (crc >>> 8); - } - return crc ^ -1; -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-pack.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-pack.js deleted file mode 100755 index 32c85c40f..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-pack.js +++ /dev/null @@ -1,171 +0,0 @@ -"use strict"; - -let paethPredictor = require("./paeth-predictor"); - -function filterNone(pxData, pxPos, byteWidth, rawData, rawPos) { - for (let x = 0; x < byteWidth; x++) { - rawData[rawPos + x] = pxData[pxPos + x]; - } -} - -function filterSumNone(pxData, pxPos, byteWidth) { - let sum = 0; - let length = pxPos + byteWidth; - - for (let i = pxPos; i < length; i++) { - sum += Math.abs(pxData[i]); - } - return sum; -} - -function filterSub(pxData, pxPos, byteWidth, rawData, rawPos, bpp) { - for (let x = 0; x < byteWidth; x++) { - let left = x >= bpp ? pxData[pxPos + x - bpp] : 0; - let val = pxData[pxPos + x] - left; - - rawData[rawPos + x] = val; - } -} - -function filterSumSub(pxData, pxPos, byteWidth, bpp) { - let sum = 0; - for (let x = 0; x < byteWidth; x++) { - let left = x >= bpp ? pxData[pxPos + x - bpp] : 0; - let val = pxData[pxPos + x] - left; - - sum += Math.abs(val); - } - - return sum; -} - -function filterUp(pxData, pxPos, byteWidth, rawData, rawPos) { - for (let x = 0; x < byteWidth; x++) { - let up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0; - let val = pxData[pxPos + x] - up; - - rawData[rawPos + x] = val; - } -} - -function filterSumUp(pxData, pxPos, byteWidth) { - let sum = 0; - let length = pxPos + byteWidth; - for (let x = pxPos; x < length; x++) { - let up = pxPos > 0 ? pxData[x - byteWidth] : 0; - let val = pxData[x] - up; - - sum += Math.abs(val); - } - - return sum; -} - -function filterAvg(pxData, pxPos, byteWidth, rawData, rawPos, bpp) { - for (let x = 0; x < byteWidth; x++) { - let left = x >= bpp ? pxData[pxPos + x - bpp] : 0; - let up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0; - let val = pxData[pxPos + x] - ((left + up) >> 1); - - rawData[rawPos + x] = val; - } -} - -function filterSumAvg(pxData, pxPos, byteWidth, bpp) { - let sum = 0; - for (let x = 0; x < byteWidth; x++) { - let left = x >= bpp ? pxData[pxPos + x - bpp] : 0; - let up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0; - let val = pxData[pxPos + x] - ((left + up) >> 1); - - sum += Math.abs(val); - } - - return sum; -} - -function filterPaeth(pxData, pxPos, byteWidth, rawData, rawPos, bpp) { - for (let x = 0; x < byteWidth; x++) { - let left = x >= bpp ? pxData[pxPos + x - bpp] : 0; - let up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0; - let upleft = - pxPos > 0 && x >= bpp ? pxData[pxPos + x - (byteWidth + bpp)] : 0; - let val = pxData[pxPos + x] - paethPredictor(left, up, upleft); - - rawData[rawPos + x] = val; - } -} - -function filterSumPaeth(pxData, pxPos, byteWidth, bpp) { - let sum = 0; - for (let x = 0; x < byteWidth; x++) { - let left = x >= bpp ? pxData[pxPos + x - bpp] : 0; - let up = pxPos > 0 ? pxData[pxPos + x - byteWidth] : 0; - let upleft = - pxPos > 0 && x >= bpp ? pxData[pxPos + x - (byteWidth + bpp)] : 0; - let val = pxData[pxPos + x] - paethPredictor(left, up, upleft); - - sum += Math.abs(val); - } - - return sum; -} - -let filters = { - 0: filterNone, - 1: filterSub, - 2: filterUp, - 3: filterAvg, - 4: filterPaeth, -}; - -let filterSums = { - 0: filterSumNone, - 1: filterSumSub, - 2: filterSumUp, - 3: filterSumAvg, - 4: filterSumPaeth, -}; - -module.exports = function (pxData, width, height, options, bpp) { - let filterTypes; - if (!("filterType" in options) || options.filterType === -1) { - filterTypes = [0, 1, 2, 3, 4]; - } else if (typeof options.filterType === "number") { - filterTypes = [options.filterType]; - } else { - throw new Error("unrecognised filter types"); - } - - if (options.bitDepth === 16) { - bpp *= 2; - } - let byteWidth = width * bpp; - let rawPos = 0; - let pxPos = 0; - let rawData = Buffer.alloc((byteWidth + 1) * height); - - let sel = filterTypes[0]; - - for (let y = 0; y < height; y++) { - if (filterTypes.length > 1) { - // find best filter for this line (with lowest sum of values) - let min = Infinity; - - for (let i = 0; i < filterTypes.length; i++) { - let sum = filterSums[filterTypes[i]](pxData, pxPos, byteWidth, bpp); - if (sum < min) { - sel = filterTypes[i]; - min = sum; - } - } - } - - rawData[rawPos] = sel; - rawPos++; - filters[sel](pxData, pxPos, byteWidth, rawData, rawPos, bpp); - rawPos += byteWidth; - pxPos += byteWidth; - } - return rawData; -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-parse-async.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-parse-async.js deleted file mode 100755 index 832b86cd5..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-parse-async.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; - -let util = require("util"); -let ChunkStream = require("./chunkstream"); -let Filter = require("./filter-parse"); - -let FilterAsync = (module.exports = function (bitmapInfo) { - ChunkStream.call(this); - - let buffers = []; - let that = this; - this._filter = new Filter(bitmapInfo, { - read: this.read.bind(this), - write: function (buffer) { - buffers.push(buffer); - }, - complete: function () { - that.emit("complete", Buffer.concat(buffers)); - }, - }); - - this._filter.start(); -}); -util.inherits(FilterAsync, ChunkStream); diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-parse-sync.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-parse-sync.js deleted file mode 100755 index 6924d1610..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-parse-sync.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -let SyncReader = require("./sync-reader"); -let Filter = require("./filter-parse"); - -exports.process = function (inBuffer, bitmapInfo) { - let outBuffers = []; - let reader = new SyncReader(inBuffer); - let filter = new Filter(bitmapInfo, { - read: reader.read.bind(reader), - write: function (bufferPart) { - outBuffers.push(bufferPart); - }, - complete: function () {}, - }); - - filter.start(); - reader.process(); - - return Buffer.concat(outBuffers); -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-parse.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-parse.js deleted file mode 100755 index 3a32e5ee8..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/filter-parse.js +++ /dev/null @@ -1,177 +0,0 @@ -"use strict"; - -let interlaceUtils = require("./interlace"); -let paethPredictor = require("./paeth-predictor"); - -function getByteWidth(width, bpp, depth) { - let byteWidth = width * bpp; - if (depth !== 8) { - byteWidth = Math.ceil(byteWidth / (8 / depth)); - } - return byteWidth; -} - -let Filter = (module.exports = function (bitmapInfo, dependencies) { - let width = bitmapInfo.width; - let height = bitmapInfo.height; - let interlace = bitmapInfo.interlace; - let bpp = bitmapInfo.bpp; - let depth = bitmapInfo.depth; - - this.read = dependencies.read; - this.write = dependencies.write; - this.complete = dependencies.complete; - - this._imageIndex = 0; - this._images = []; - if (interlace) { - let passes = interlaceUtils.getImagePasses(width, height); - for (let i = 0; i < passes.length; i++) { - this._images.push({ - byteWidth: getByteWidth(passes[i].width, bpp, depth), - height: passes[i].height, - lineIndex: 0, - }); - } - } else { - this._images.push({ - byteWidth: getByteWidth(width, bpp, depth), - height: height, - lineIndex: 0, - }); - } - - // when filtering the line we look at the pixel to the left - // the spec also says it is done on a byte level regardless of the number of pixels - // so if the depth is byte compatible (8 or 16) we subtract the bpp in order to compare back - // a pixel rather than just a different byte part. However if we are sub byte, we ignore. - if (depth === 8) { - this._xComparison = bpp; - } else if (depth === 16) { - this._xComparison = bpp * 2; - } else { - this._xComparison = 1; - } -}); - -Filter.prototype.start = function () { - this.read( - this._images[this._imageIndex].byteWidth + 1, - this._reverseFilterLine.bind(this) - ); -}; - -Filter.prototype._unFilterType1 = function ( - rawData, - unfilteredLine, - byteWidth -) { - let xComparison = this._xComparison; - let xBiggerThan = xComparison - 1; - - for (let x = 0; x < byteWidth; x++) { - let rawByte = rawData[1 + x]; - let f1Left = x > xBiggerThan ? unfilteredLine[x - xComparison] : 0; - unfilteredLine[x] = rawByte + f1Left; - } -}; - -Filter.prototype._unFilterType2 = function ( - rawData, - unfilteredLine, - byteWidth -) { - let lastLine = this._lastLine; - - for (let x = 0; x < byteWidth; x++) { - let rawByte = rawData[1 + x]; - let f2Up = lastLine ? lastLine[x] : 0; - unfilteredLine[x] = rawByte + f2Up; - } -}; - -Filter.prototype._unFilterType3 = function ( - rawData, - unfilteredLine, - byteWidth -) { - let xComparison = this._xComparison; - let xBiggerThan = xComparison - 1; - let lastLine = this._lastLine; - - for (let x = 0; x < byteWidth; x++) { - let rawByte = rawData[1 + x]; - let f3Up = lastLine ? lastLine[x] : 0; - let f3Left = x > xBiggerThan ? unfilteredLine[x - xComparison] : 0; - let f3Add = Math.floor((f3Left + f3Up) / 2); - unfilteredLine[x] = rawByte + f3Add; - } -}; - -Filter.prototype._unFilterType4 = function ( - rawData, - unfilteredLine, - byteWidth -) { - let xComparison = this._xComparison; - let xBiggerThan = xComparison - 1; - let lastLine = this._lastLine; - - for (let x = 0; x < byteWidth; x++) { - let rawByte = rawData[1 + x]; - let f4Up = lastLine ? lastLine[x] : 0; - let f4Left = x > xBiggerThan ? unfilteredLine[x - xComparison] : 0; - let f4UpLeft = x > xBiggerThan && lastLine ? lastLine[x - xComparison] : 0; - let f4Add = paethPredictor(f4Left, f4Up, f4UpLeft); - unfilteredLine[x] = rawByte + f4Add; - } -}; - -Filter.prototype._reverseFilterLine = function (rawData) { - let filter = rawData[0]; - let unfilteredLine; - let currentImage = this._images[this._imageIndex]; - let byteWidth = currentImage.byteWidth; - - if (filter === 0) { - unfilteredLine = rawData.slice(1, byteWidth + 1); - } else { - unfilteredLine = Buffer.alloc(byteWidth); - - switch (filter) { - case 1: - this._unFilterType1(rawData, unfilteredLine, byteWidth); - break; - case 2: - this._unFilterType2(rawData, unfilteredLine, byteWidth); - break; - case 3: - this._unFilterType3(rawData, unfilteredLine, byteWidth); - break; - case 4: - this._unFilterType4(rawData, unfilteredLine, byteWidth); - break; - default: - throw new Error("Unrecognised filter type - " + filter); - } - } - - this.write(unfilteredLine); - - currentImage.lineIndex++; - if (currentImage.lineIndex >= currentImage.height) { - this._lastLine = null; - this._imageIndex++; - currentImage = this._images[this._imageIndex]; - } else { - this._lastLine = unfilteredLine; - } - - if (currentImage) { - // read, using the byte width that may be from the new current image - this.read(currentImage.byteWidth + 1, this._reverseFilterLine.bind(this)); - } else { - this._lastLine = null; - this.complete(); - } -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/format-normaliser.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/format-normaliser.js deleted file mode 100755 index 634d566c3..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/format-normaliser.js +++ /dev/null @@ -1,93 +0,0 @@ -"use strict"; - -function dePalette(indata, outdata, width, height, palette) { - let pxPos = 0; - // use values from palette - for (let y = 0; y < height; y++) { - for (let x = 0; x < width; x++) { - let color = palette[indata[pxPos]]; - - if (!color) { - throw new Error("index " + indata[pxPos] + " not in palette"); - } - - for (let i = 0; i < 4; i++) { - outdata[pxPos + i] = color[i]; - } - pxPos += 4; - } - } -} - -function replaceTransparentColor(indata, outdata, width, height, transColor) { - let pxPos = 0; - for (let y = 0; y < height; y++) { - for (let x = 0; x < width; x++) { - let makeTrans = false; - - if (transColor.length === 1) { - if (transColor[0] === indata[pxPos]) { - makeTrans = true; - } - } else if ( - transColor[0] === indata[pxPos] && - transColor[1] === indata[pxPos + 1] && - transColor[2] === indata[pxPos + 2] - ) { - makeTrans = true; - } - if (makeTrans) { - for (let i = 0; i < 4; i++) { - outdata[pxPos + i] = 0; - } - } - pxPos += 4; - } - } -} - -function scaleDepth(indata, outdata, width, height, depth) { - let maxOutSample = 255; - let maxInSample = Math.pow(2, depth) - 1; - let pxPos = 0; - - for (let y = 0; y < height; y++) { - for (let x = 0; x < width; x++) { - for (let i = 0; i < 4; i++) { - outdata[pxPos + i] = Math.floor( - (indata[pxPos + i] * maxOutSample) / maxInSample + 0.5 - ); - } - pxPos += 4; - } - } -} - -module.exports = function (indata, imageData) { - let depth = imageData.depth; - let width = imageData.width; - let height = imageData.height; - let colorType = imageData.colorType; - let transColor = imageData.transColor; - let palette = imageData.palette; - - let outdata = indata; // only different for 16 bits - - if (colorType === 3) { - // paletted - dePalette(indata, outdata, width, height, palette); - } else { - if (transColor) { - replaceTransparentColor(indata, outdata, width, height, transColor); - } - // if it needs scaling - if (depth !== 8) { - // if we need to change the buffer size - if (depth === 16) { - outdata = Buffer.alloc(width * height * 4); - } - scaleDepth(indata, outdata, width, height, depth); - } - } - return outdata; -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/interlace.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/interlace.js deleted file mode 100755 index a035cb154..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/interlace.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; - -// Adam 7 -// 0 1 2 3 4 5 6 7 -// 0 x 6 4 6 x 6 4 6 -// 1 7 7 7 7 7 7 7 7 -// 2 5 6 5 6 5 6 5 6 -// 3 7 7 7 7 7 7 7 7 -// 4 3 6 4 6 3 6 4 6 -// 5 7 7 7 7 7 7 7 7 -// 6 5 6 5 6 5 6 5 6 -// 7 7 7 7 7 7 7 7 7 - -let imagePasses = [ - { - // pass 1 - 1px - x: [0], - y: [0], - }, - { - // pass 2 - 1px - x: [4], - y: [0], - }, - { - // pass 3 - 2px - x: [0, 4], - y: [4], - }, - { - // pass 4 - 4px - x: [2, 6], - y: [0, 4], - }, - { - // pass 5 - 8px - x: [0, 2, 4, 6], - y: [2, 6], - }, - { - // pass 6 - 16px - x: [1, 3, 5, 7], - y: [0, 2, 4, 6], - }, - { - // pass 7 - 32px - x: [0, 1, 2, 3, 4, 5, 6, 7], - y: [1, 3, 5, 7], - }, -]; - -exports.getImagePasses = function (width, height) { - let images = []; - let xLeftOver = width % 8; - let yLeftOver = height % 8; - let xRepeats = (width - xLeftOver) / 8; - let yRepeats = (height - yLeftOver) / 8; - for (let i = 0; i < imagePasses.length; i++) { - let pass = imagePasses[i]; - let passWidth = xRepeats * pass.x.length; - let passHeight = yRepeats * pass.y.length; - for (let j = 0; j < pass.x.length; j++) { - if (pass.x[j] < xLeftOver) { - passWidth++; - } else { - break; - } - } - for (let j = 0; j < pass.y.length; j++) { - if (pass.y[j] < yLeftOver) { - passHeight++; - } else { - break; - } - } - if (passWidth > 0 && passHeight > 0) { - images.push({ width: passWidth, height: passHeight, index: i }); - } - } - return images; -}; - -exports.getInterlaceIterator = function (width) { - return function (x, y, pass) { - let outerXLeftOver = x % imagePasses[pass].x.length; - let outerX = - ((x - outerXLeftOver) / imagePasses[pass].x.length) * 8 + - imagePasses[pass].x[outerXLeftOver]; - let outerYLeftOver = y % imagePasses[pass].y.length; - let outerY = - ((y - outerYLeftOver) / imagePasses[pass].y.length) * 8 + - imagePasses[pass].y[outerYLeftOver]; - return outerX * 4 + outerY * width * 4; - }; -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/packer-async.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/packer-async.js deleted file mode 100755 index f3df73aa3..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/packer-async.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; - -let util = require("util"); -let Stream = require("stream"); -let constants = require("./constants"); -let Packer = require("./packer"); - -let PackerAsync = (module.exports = function (opt) { - Stream.call(this); - - let options = opt || {}; - - this._packer = new Packer(options); - this._deflate = this._packer.createDeflate(); - - this.readable = true; -}); -util.inherits(PackerAsync, Stream); - -PackerAsync.prototype.pack = function (data, width, height, gamma) { - // Signature - this.emit("data", Buffer.from(constants.PNG_SIGNATURE)); - this.emit("data", this._packer.packIHDR(width, height)); - - if (gamma) { - this.emit("data", this._packer.packGAMA(gamma)); - } - - let filteredData = this._packer.filterData(data, width, height); - - // compress it - this._deflate.on("error", this.emit.bind(this, "error")); - - this._deflate.on( - "data", - function (compressedData) { - this.emit("data", this._packer.packIDAT(compressedData)); - }.bind(this) - ); - - this._deflate.on( - "end", - function () { - this.emit("data", this._packer.packIEND()); - this.emit("end"); - }.bind(this) - ); - - this._deflate.end(filteredData); -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/packer-sync.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/packer-sync.js deleted file mode 100755 index f5ab0b3df..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/packer-sync.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; - -let hasSyncZlib = true; -let zlib = require("zlib"); -if (!zlib.deflateSync) { - hasSyncZlib = false; -} -let constants = require("./constants"); -let Packer = require("./packer"); - -module.exports = function (metaData, opt) { - if (!hasSyncZlib) { - throw new Error( - "To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0" - ); - } - - let options = opt || {}; - - let packer = new Packer(options); - - let chunks = []; - - // Signature - chunks.push(Buffer.from(constants.PNG_SIGNATURE)); - - // Header - chunks.push(packer.packIHDR(metaData.width, metaData.height)); - - if (metaData.gamma) { - chunks.push(packer.packGAMA(metaData.gamma)); - } - - let filteredData = packer.filterData( - metaData.data, - metaData.width, - metaData.height - ); - - // compress it - let compressedData = zlib.deflateSync( - filteredData, - packer.getDeflateOptions() - ); - filteredData = null; - - if (!compressedData || !compressedData.length) { - throw new Error("bad png - invalid compressed data response"); - } - chunks.push(packer.packIDAT(compressedData)); - - // End - chunks.push(packer.packIEND()); - - return Buffer.concat(chunks); -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/packer.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/packer.js deleted file mode 100755 index 4aba12c8d..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/packer.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; - -let constants = require("./constants"); -let CrcStream = require("./crc"); -let bitPacker = require("./bitpacker"); -let filter = require("./filter-pack"); -let zlib = require("zlib"); - -let Packer = (module.exports = function (options) { - this._options = options; - - options.deflateChunkSize = options.deflateChunkSize || 32 * 1024; - options.deflateLevel = - options.deflateLevel != null ? options.deflateLevel : 9; - options.deflateStrategy = - options.deflateStrategy != null ? options.deflateStrategy : 3; - options.inputHasAlpha = - options.inputHasAlpha != null ? options.inputHasAlpha : true; - options.deflateFactory = options.deflateFactory || zlib.createDeflate; - options.bitDepth = options.bitDepth || 8; - // This is outputColorType - options.colorType = - typeof options.colorType === "number" - ? options.colorType - : constants.COLORTYPE_COLOR_ALPHA; - options.inputColorType = - typeof options.inputColorType === "number" - ? options.inputColorType - : constants.COLORTYPE_COLOR_ALPHA; - - if ( - [ - constants.COLORTYPE_GRAYSCALE, - constants.COLORTYPE_COLOR, - constants.COLORTYPE_COLOR_ALPHA, - constants.COLORTYPE_ALPHA, - ].indexOf(options.colorType) === -1 - ) { - throw new Error( - "option color type:" + options.colorType + " is not supported at present" - ); - } - if ( - [ - constants.COLORTYPE_GRAYSCALE, - constants.COLORTYPE_COLOR, - constants.COLORTYPE_COLOR_ALPHA, - constants.COLORTYPE_ALPHA, - ].indexOf(options.inputColorType) === -1 - ) { - throw new Error( - "option input color type:" + - options.inputColorType + - " is not supported at present" - ); - } - if (options.bitDepth !== 8 && options.bitDepth !== 16) { - throw new Error( - "option bit depth:" + options.bitDepth + " is not supported at present" - ); - } -}); - -Packer.prototype.getDeflateOptions = function () { - return { - chunkSize: this._options.deflateChunkSize, - level: this._options.deflateLevel, - strategy: this._options.deflateStrategy, - }; -}; - -Packer.prototype.createDeflate = function () { - return this._options.deflateFactory(this.getDeflateOptions()); -}; - -Packer.prototype.filterData = function (data, width, height) { - // convert to correct format for filtering (e.g. right bpp and bit depth) - let packedData = bitPacker(data, width, height, this._options); - - // filter pixel data - let bpp = constants.COLORTYPE_TO_BPP_MAP[this._options.colorType]; - let filteredData = filter(packedData, width, height, this._options, bpp); - return filteredData; -}; - -Packer.prototype._packChunk = function (type, data) { - let len = data ? data.length : 0; - let buf = Buffer.alloc(len + 12); - - buf.writeUInt32BE(len, 0); - buf.writeUInt32BE(type, 4); - - if (data) { - data.copy(buf, 8); - } - - buf.writeInt32BE( - CrcStream.crc32(buf.slice(4, buf.length - 4)), - buf.length - 4 - ); - return buf; -}; - -Packer.prototype.packGAMA = function (gamma) { - let buf = Buffer.alloc(4); - buf.writeUInt32BE(Math.floor(gamma * constants.GAMMA_DIVISION), 0); - return this._packChunk(constants.TYPE_gAMA, buf); -}; - -Packer.prototype.packIHDR = function (width, height) { - let buf = Buffer.alloc(13); - buf.writeUInt32BE(width, 0); - buf.writeUInt32BE(height, 4); - buf[8] = this._options.bitDepth; // Bit depth - buf[9] = this._options.colorType; // colorType - buf[10] = 0; // compression - buf[11] = 0; // filter - buf[12] = 0; // interlace - - return this._packChunk(constants.TYPE_IHDR, buf); -}; - -Packer.prototype.packIDAT = function (data) { - return this._packChunk(constants.TYPE_IDAT, data); -}; - -Packer.prototype.packIEND = function () { - return this._packChunk(constants.TYPE_IEND, null); -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/paeth-predictor.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/paeth-predictor.js deleted file mode 100755 index 9634497dc..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/paeth-predictor.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -module.exports = function paethPredictor(left, above, upLeft) { - let paeth = left + above - upLeft; - let pLeft = Math.abs(paeth - left); - let pAbove = Math.abs(paeth - above); - let pUpLeft = Math.abs(paeth - upLeft); - - if (pLeft <= pAbove && pLeft <= pUpLeft) { - return left; - } - if (pAbove <= pUpLeft) { - return above; - } - return upLeft; -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/parser-async.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/parser-async.js deleted file mode 100755 index a69d15339..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/parser-async.js +++ /dev/null @@ -1,165 +0,0 @@ -"use strict"; - -let util = require("util"); -let zlib = require("zlib"); -let ChunkStream = require("./chunkstream"); -let FilterAsync = require("./filter-parse-async"); -let Parser = require("./parser"); -let bitmapper = require("./bitmapper"); -let formatNormaliser = require("./format-normaliser"); - -let ParserAsync = (module.exports = function (options) { - ChunkStream.call(this); - - this._parser = new Parser(options, { - read: this.read.bind(this), - error: this._handleError.bind(this), - metadata: this._handleMetaData.bind(this), - gamma: this.emit.bind(this, "gamma"), - palette: this._handlePalette.bind(this), - transColor: this._handleTransColor.bind(this), - finished: this._finished.bind(this), - inflateData: this._inflateData.bind(this), - simpleTransparency: this._simpleTransparency.bind(this), - headersFinished: this._headersFinished.bind(this), - }); - this._options = options; - this.writable = true; - - this._parser.start(); -}); -util.inherits(ParserAsync, ChunkStream); - -ParserAsync.prototype._handleError = function (err) { - this.emit("error", err); - - this.writable = false; - - this.destroy(); - - if (this._inflate && this._inflate.destroy) { - this._inflate.destroy(); - } - - if (this._filter) { - this._filter.destroy(); - // For backward compatibility with Node 7 and below. - // Suppress errors due to _inflate calling write() even after - // it's destroy()'ed. - this._filter.on("error", function () {}); - } - - this.errord = true; -}; - -ParserAsync.prototype._inflateData = function (data) { - if (!this._inflate) { - if (this._bitmapInfo.interlace) { - this._inflate = zlib.createInflate(); - - this._inflate.on("error", this.emit.bind(this, "error")); - this._filter.on("complete", this._complete.bind(this)); - - this._inflate.pipe(this._filter); - } else { - let rowSize = - ((this._bitmapInfo.width * - this._bitmapInfo.bpp * - this._bitmapInfo.depth + - 7) >> - 3) + - 1; - let imageSize = rowSize * this._bitmapInfo.height; - let chunkSize = Math.max(imageSize, zlib.Z_MIN_CHUNK); - - this._inflate = zlib.createInflate({ chunkSize: chunkSize }); - let leftToInflate = imageSize; - - let emitError = this.emit.bind(this, "error"); - this._inflate.on("error", function (err) { - if (!leftToInflate) { - return; - } - - emitError(err); - }); - this._filter.on("complete", this._complete.bind(this)); - - let filterWrite = this._filter.write.bind(this._filter); - this._inflate.on("data", function (chunk) { - if (!leftToInflate) { - return; - } - - if (chunk.length > leftToInflate) { - chunk = chunk.slice(0, leftToInflate); - } - - leftToInflate -= chunk.length; - - filterWrite(chunk); - }); - - this._inflate.on("end", this._filter.end.bind(this._filter)); - } - } - this._inflate.write(data); -}; - -ParserAsync.prototype._handleMetaData = function (metaData) { - this._metaData = metaData; - this._bitmapInfo = Object.create(metaData); - - this._filter = new FilterAsync(this._bitmapInfo); -}; - -ParserAsync.prototype._handleTransColor = function (transColor) { - this._bitmapInfo.transColor = transColor; -}; - -ParserAsync.prototype._handlePalette = function (palette) { - this._bitmapInfo.palette = palette; -}; - -ParserAsync.prototype._simpleTransparency = function () { - this._metaData.alpha = true; -}; - -ParserAsync.prototype._headersFinished = function () { - // Up until this point, we don't know if we have a tRNS chunk (alpha) - // so we can't emit metadata any earlier - this.emit("metadata", this._metaData); -}; - -ParserAsync.prototype._finished = function () { - if (this.errord) { - return; - } - - if (!this._inflate) { - this.emit("error", "No Inflate block"); - } else { - // no more data to inflate - this._inflate.end(); - } -}; - -ParserAsync.prototype._complete = function (filteredData) { - if (this.errord) { - return; - } - - let normalisedBitmapData; - - try { - let bitmapData = bitmapper.dataToBitMap(filteredData, this._bitmapInfo); - - normalisedBitmapData = formatNormaliser(bitmapData, this._bitmapInfo); - bitmapData = null; - } catch (ex) { - this._handleError(ex); - return; - } - - this.emit("parsed", normalisedBitmapData); -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/parser-sync.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/parser-sync.js deleted file mode 100755 index e79796bbe..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/parser-sync.js +++ /dev/null @@ -1,108 +0,0 @@ -"use strict"; - -let hasSyncZlib = true; -let zlib = require("zlib"); -let inflateSync = require("./sync-inflate"); -if (!zlib.deflateSync) { - hasSyncZlib = false; -} -let SyncReader = require("./sync-reader"); -let FilterSync = require("./filter-parse-sync"); -let Parser = require("./parser"); -let bitmapper = require("./bitmapper"); -let formatNormaliser = require("./format-normaliser"); - -module.exports = function (buffer, options) { - if (!hasSyncZlib) { - throw new Error( - "To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0" - ); - } - - let err; - function handleError(_err_) { - err = _err_; - } - - let metaData; - function handleMetaData(_metaData_) { - metaData = _metaData_; - } - - function handleTransColor(transColor) { - metaData.transColor = transColor; - } - - function handlePalette(palette) { - metaData.palette = palette; - } - - function handleSimpleTransparency() { - metaData.alpha = true; - } - - let gamma; - function handleGamma(_gamma_) { - gamma = _gamma_; - } - - let inflateDataList = []; - function handleInflateData(inflatedData) { - inflateDataList.push(inflatedData); - } - - let reader = new SyncReader(buffer); - - let parser = new Parser(options, { - read: reader.read.bind(reader), - error: handleError, - metadata: handleMetaData, - gamma: handleGamma, - palette: handlePalette, - transColor: handleTransColor, - inflateData: handleInflateData, - simpleTransparency: handleSimpleTransparency, - }); - - parser.start(); - reader.process(); - - if (err) { - throw err; - } - - //join together the inflate datas - let inflateData = Buffer.concat(inflateDataList); - inflateDataList.length = 0; - - let inflatedData; - if (metaData.interlace) { - inflatedData = zlib.inflateSync(inflateData); - } else { - let rowSize = - ((metaData.width * metaData.bpp * metaData.depth + 7) >> 3) + 1; - let imageSize = rowSize * metaData.height; - inflatedData = inflateSync(inflateData, { - chunkSize: imageSize, - maxLength: imageSize, - }); - } - inflateData = null; - - if (!inflatedData || !inflatedData.length) { - throw new Error("bad png - invalid inflate data response"); - } - - let unfilteredData = FilterSync.process(inflatedData, metaData); - inflateData = null; - - let bitmapData = bitmapper.dataToBitMap(unfilteredData, metaData); - unfilteredData = null; - - let normalisedBitmapData = formatNormaliser(bitmapData, metaData); - - metaData.data = normalisedBitmapData; - metaData.gamma = gamma || 0; - - return metaData; -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/parser.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/parser.js deleted file mode 100755 index 51a8f2a5d..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/parser.js +++ /dev/null @@ -1,290 +0,0 @@ -"use strict"; - -let constants = require("./constants"); -let CrcCalculator = require("./crc"); - -let Parser = (module.exports = function (options, dependencies) { - this._options = options; - options.checkCRC = options.checkCRC !== false; - - this._hasIHDR = false; - this._hasIEND = false; - this._emittedHeadersFinished = false; - - // input flags/metadata - this._palette = []; - this._colorType = 0; - - this._chunks = {}; - this._chunks[constants.TYPE_IHDR] = this._handleIHDR.bind(this); - this._chunks[constants.TYPE_IEND] = this._handleIEND.bind(this); - this._chunks[constants.TYPE_IDAT] = this._handleIDAT.bind(this); - this._chunks[constants.TYPE_PLTE] = this._handlePLTE.bind(this); - this._chunks[constants.TYPE_tRNS] = this._handleTRNS.bind(this); - this._chunks[constants.TYPE_gAMA] = this._handleGAMA.bind(this); - - this.read = dependencies.read; - this.error = dependencies.error; - this.metadata = dependencies.metadata; - this.gamma = dependencies.gamma; - this.transColor = dependencies.transColor; - this.palette = dependencies.palette; - this.parsed = dependencies.parsed; - this.inflateData = dependencies.inflateData; - this.finished = dependencies.finished; - this.simpleTransparency = dependencies.simpleTransparency; - this.headersFinished = dependencies.headersFinished || function () {}; -}); - -Parser.prototype.start = function () { - this.read(constants.PNG_SIGNATURE.length, this._parseSignature.bind(this)); -}; - -Parser.prototype._parseSignature = function (data) { - let signature = constants.PNG_SIGNATURE; - - for (let i = 0; i < signature.length; i++) { - if (data[i] !== signature[i]) { - this.error(new Error("Invalid file signature")); - return; - } - } - this.read(8, this._parseChunkBegin.bind(this)); -}; - -Parser.prototype._parseChunkBegin = function (data) { - // chunk content length - let length = data.readUInt32BE(0); - - // chunk type - let type = data.readUInt32BE(4); - let name = ""; - for (let i = 4; i < 8; i++) { - name += String.fromCharCode(data[i]); - } - - //console.log('chunk ', name, length); - - // chunk flags - let ancillary = Boolean(data[4] & 0x20); // or critical - // priv = Boolean(data[5] & 0x20), // or public - // safeToCopy = Boolean(data[7] & 0x20); // or unsafe - - if (!this._hasIHDR && type !== constants.TYPE_IHDR) { - this.error(new Error("Expected IHDR on beggining")); - return; - } - - this._crc = new CrcCalculator(); - this._crc.write(Buffer.from(name)); - - if (this._chunks[type]) { - return this._chunks[type](length); - } - - if (!ancillary) { - this.error(new Error("Unsupported critical chunk type " + name)); - return; - } - - this.read(length + 4, this._skipChunk.bind(this)); -}; - -Parser.prototype._skipChunk = function (/*data*/) { - this.read(8, this._parseChunkBegin.bind(this)); -}; - -Parser.prototype._handleChunkEnd = function () { - this.read(4, this._parseChunkEnd.bind(this)); -}; - -Parser.prototype._parseChunkEnd = function (data) { - let fileCrc = data.readInt32BE(0); - let calcCrc = this._crc.crc32(); - - // check CRC - if (this._options.checkCRC && calcCrc !== fileCrc) { - this.error(new Error("Crc error - " + fileCrc + " - " + calcCrc)); - return; - } - - if (!this._hasIEND) { - this.read(8, this._parseChunkBegin.bind(this)); - } -}; - -Parser.prototype._handleIHDR = function (length) { - this.read(length, this._parseIHDR.bind(this)); -}; -Parser.prototype._parseIHDR = function (data) { - this._crc.write(data); - - let width = data.readUInt32BE(0); - let height = data.readUInt32BE(4); - let depth = data[8]; - let colorType = data[9]; // bits: 1 palette, 2 color, 4 alpha - let compr = data[10]; - let filter = data[11]; - let interlace = data[12]; - - // console.log(' width', width, 'height', height, - // 'depth', depth, 'colorType', colorType, - // 'compr', compr, 'filter', filter, 'interlace', interlace - // ); - - if ( - depth !== 8 && - depth !== 4 && - depth !== 2 && - depth !== 1 && - depth !== 16 - ) { - this.error(new Error("Unsupported bit depth " + depth)); - return; - } - if (!(colorType in constants.COLORTYPE_TO_BPP_MAP)) { - this.error(new Error("Unsupported color type")); - return; - } - if (compr !== 0) { - this.error(new Error("Unsupported compression method")); - return; - } - if (filter !== 0) { - this.error(new Error("Unsupported filter method")); - return; - } - if (interlace !== 0 && interlace !== 1) { - this.error(new Error("Unsupported interlace method")); - return; - } - - this._colorType = colorType; - - let bpp = constants.COLORTYPE_TO_BPP_MAP[this._colorType]; - - this._hasIHDR = true; - - this.metadata({ - width: width, - height: height, - depth: depth, - interlace: Boolean(interlace), - palette: Boolean(colorType & constants.COLORTYPE_PALETTE), - color: Boolean(colorType & constants.COLORTYPE_COLOR), - alpha: Boolean(colorType & constants.COLORTYPE_ALPHA), - bpp: bpp, - colorType: colorType, - }); - - this._handleChunkEnd(); -}; - -Parser.prototype._handlePLTE = function (length) { - this.read(length, this._parsePLTE.bind(this)); -}; -Parser.prototype._parsePLTE = function (data) { - this._crc.write(data); - - let entries = Math.floor(data.length / 3); - // console.log('Palette:', entries); - - for (let i = 0; i < entries; i++) { - this._palette.push([data[i * 3], data[i * 3 + 1], data[i * 3 + 2], 0xff]); - } - - this.palette(this._palette); - - this._handleChunkEnd(); -}; - -Parser.prototype._handleTRNS = function (length) { - this.simpleTransparency(); - this.read(length, this._parseTRNS.bind(this)); -}; -Parser.prototype._parseTRNS = function (data) { - this._crc.write(data); - - // palette - if (this._colorType === constants.COLORTYPE_PALETTE_COLOR) { - if (this._palette.length === 0) { - this.error(new Error("Transparency chunk must be after palette")); - return; - } - if (data.length > this._palette.length) { - this.error(new Error("More transparent colors than palette size")); - return; - } - for (let i = 0; i < data.length; i++) { - this._palette[i][3] = data[i]; - } - this.palette(this._palette); - } - - // for colorType 0 (grayscale) and 2 (rgb) - // there might be one gray/color defined as transparent - if (this._colorType === constants.COLORTYPE_GRAYSCALE) { - // grey, 2 bytes - this.transColor([data.readUInt16BE(0)]); - } - if (this._colorType === constants.COLORTYPE_COLOR) { - this.transColor([ - data.readUInt16BE(0), - data.readUInt16BE(2), - data.readUInt16BE(4), - ]); - } - - this._handleChunkEnd(); -}; - -Parser.prototype._handleGAMA = function (length) { - this.read(length, this._parseGAMA.bind(this)); -}; -Parser.prototype._parseGAMA = function (data) { - this._crc.write(data); - this.gamma(data.readUInt32BE(0) / constants.GAMMA_DIVISION); - - this._handleChunkEnd(); -}; - -Parser.prototype._handleIDAT = function (length) { - if (!this._emittedHeadersFinished) { - this._emittedHeadersFinished = true; - this.headersFinished(); - } - this.read(-length, this._parseIDAT.bind(this, length)); -}; -Parser.prototype._parseIDAT = function (length, data) { - this._crc.write(data); - - if ( - this._colorType === constants.COLORTYPE_PALETTE_COLOR && - this._palette.length === 0 - ) { - throw new Error("Expected palette not found"); - } - - this.inflateData(data); - let leftOverLength = length - data.length; - - if (leftOverLength > 0) { - this._handleIDAT(leftOverLength); - } else { - this._handleChunkEnd(); - } -}; - -Parser.prototype._handleIEND = function (length) { - this.read(length, this._parseIEND.bind(this)); -}; -Parser.prototype._parseIEND = function (data) { - this._crc.write(data); - - this._hasIEND = true; - this._handleChunkEnd(); - - if (this.finished) { - this.finished(); - } -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/png-sync.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/png-sync.js deleted file mode 100755 index 68cac9bc3..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/png-sync.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -let parse = require("./parser-sync"); -let pack = require("./packer-sync"); - -exports.read = function (buffer, options) { - return parse(buffer, options || {}); -}; - -exports.write = function (png, options) { - return pack(png, options); -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/png.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/png.js deleted file mode 100755 index 0b8af3f70..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/png.js +++ /dev/null @@ -1,194 +0,0 @@ -"use strict"; - -let util = require("util"); -let Stream = require("stream"); -let Parser = require("./parser-async"); -let Packer = require("./packer-async"); -let PNGSync = require("./png-sync"); - -let PNG = (exports.PNG = function (options) { - Stream.call(this); - - options = options || {}; // eslint-disable-line no-param-reassign - - // coerce pixel dimensions to integers (also coerces undefined -> 0): - this.width = options.width | 0; - this.height = options.height | 0; - - this.data = - this.width > 0 && this.height > 0 - ? Buffer.alloc(4 * this.width * this.height) - : null; - - if (options.fill && this.data) { - this.data.fill(0); - } - - this.gamma = 0; - this.readable = this.writable = true; - - this._parser = new Parser(options); - - this._parser.on("error", this.emit.bind(this, "error")); - this._parser.on("close", this._handleClose.bind(this)); - this._parser.on("metadata", this._metadata.bind(this)); - this._parser.on("gamma", this._gamma.bind(this)); - this._parser.on( - "parsed", - function (data) { - this.data = data; - this.emit("parsed", data); - }.bind(this) - ); - - this._packer = new Packer(options); - this._packer.on("data", this.emit.bind(this, "data")); - this._packer.on("end", this.emit.bind(this, "end")); - this._parser.on("close", this._handleClose.bind(this)); - this._packer.on("error", this.emit.bind(this, "error")); -}); -util.inherits(PNG, Stream); - -PNG.sync = PNGSync; - -PNG.prototype.pack = function () { - if (!this.data || !this.data.length) { - this.emit("error", "No data provided"); - return this; - } - - process.nextTick( - function () { - this._packer.pack(this.data, this.width, this.height, this.gamma); - }.bind(this) - ); - - return this; -}; - -PNG.prototype.parse = function (data, callback) { - if (callback) { - let onParsed, onError; - - onParsed = function (parsedData) { - this.removeListener("error", onError); - - this.data = parsedData; - callback(null, this); - }.bind(this); - - onError = function (err) { - this.removeListener("parsed", onParsed); - - callback(err, null); - }.bind(this); - - this.once("parsed", onParsed); - this.once("error", onError); - } - - this.end(data); - return this; -}; - -PNG.prototype.write = function (data) { - this._parser.write(data); - return true; -}; - -PNG.prototype.end = function (data) { - this._parser.end(data); -}; - -PNG.prototype._metadata = function (metadata) { - this.width = metadata.width; - this.height = metadata.height; - - this.emit("metadata", metadata); -}; - -PNG.prototype._gamma = function (gamma) { - this.gamma = gamma; -}; - -PNG.prototype._handleClose = function () { - if (!this._parser.writable && !this._packer.readable) { - this.emit("close"); - } -}; - -PNG.bitblt = function (src, dst, srcX, srcY, width, height, deltaX, deltaY) { - // eslint-disable-line max-params - // coerce pixel dimensions to integers (also coerces undefined -> 0): - /* eslint-disable no-param-reassign */ - srcX |= 0; - srcY |= 0; - width |= 0; - height |= 0; - deltaX |= 0; - deltaY |= 0; - /* eslint-enable no-param-reassign */ - - if ( - srcX > src.width || - srcY > src.height || - srcX + width > src.width || - srcY + height > src.height - ) { - throw new Error("bitblt reading outside image"); - } - - if ( - deltaX > dst.width || - deltaY > dst.height || - deltaX + width > dst.width || - deltaY + height > dst.height - ) { - throw new Error("bitblt writing outside image"); - } - - for (let y = 0; y < height; y++) { - src.data.copy( - dst.data, - ((deltaY + y) * dst.width + deltaX) << 2, - ((srcY + y) * src.width + srcX) << 2, - ((srcY + y) * src.width + srcX + width) << 2 - ); - } -}; - -PNG.prototype.bitblt = function ( - dst, - srcX, - srcY, - width, - height, - deltaX, - deltaY -) { - // eslint-disable-line max-params - - PNG.bitblt(this, dst, srcX, srcY, width, height, deltaX, deltaY); - return this; -}; - -PNG.adjustGamma = function (src) { - if (src.gamma) { - for (let y = 0; y < src.height; y++) { - for (let x = 0; x < src.width; x++) { - let idx = (src.width * y + x) << 2; - - for (let i = 0; i < 3; i++) { - let sample = src.data[idx + i] / 255; - sample = Math.pow(sample, 1 / 2.2 / src.gamma); - src.data[idx + i] = Math.round(sample * 255); - } - } - } - src.gamma = 0; - } -}; - -PNG.prototype.adjustGamma = function () { - PNG.adjustGamma(this); -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/sync-inflate.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/sync-inflate.js deleted file mode 100755 index 4da0d5f08..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/sync-inflate.js +++ /dev/null @@ -1,168 +0,0 @@ -"use strict"; - -let assert = require("assert").ok; -let zlib = require("zlib"); -let util = require("util"); - -let kMaxLength = require("buffer").kMaxLength; - -function Inflate(opts) { - if (!(this instanceof Inflate)) { - return new Inflate(opts); - } - - if (opts && opts.chunkSize < zlib.Z_MIN_CHUNK) { - opts.chunkSize = zlib.Z_MIN_CHUNK; - } - - zlib.Inflate.call(this, opts); - - // Node 8 --> 9 compatibility check - this._offset = this._offset === undefined ? this._outOffset : this._offset; - this._buffer = this._buffer || this._outBuffer; - - if (opts && opts.maxLength != null) { - this._maxLength = opts.maxLength; - } -} - -function createInflate(opts) { - return new Inflate(opts); -} - -function _close(engine, callback) { - if (callback) { - process.nextTick(callback); - } - - // Caller may invoke .close after a zlib error (which will null _handle). - if (!engine._handle) { - return; - } - - engine._handle.close(); - engine._handle = null; -} - -Inflate.prototype._processChunk = function (chunk, flushFlag, asyncCb) { - if (typeof asyncCb === "function") { - return zlib.Inflate._processChunk.call(this, chunk, flushFlag, asyncCb); - } - - let self = this; - - let availInBefore = chunk && chunk.length; - let availOutBefore = this._chunkSize - this._offset; - let leftToInflate = this._maxLength; - let inOff = 0; - - let buffers = []; - let nread = 0; - - let error; - this.on("error", function (err) { - error = err; - }); - - function handleChunk(availInAfter, availOutAfter) { - if (self._hadError) { - return; - } - - let have = availOutBefore - availOutAfter; - assert(have >= 0, "have should not go down"); - - if (have > 0) { - let out = self._buffer.slice(self._offset, self._offset + have); - self._offset += have; - - if (out.length > leftToInflate) { - out = out.slice(0, leftToInflate); - } - - buffers.push(out); - nread += out.length; - leftToInflate -= out.length; - - if (leftToInflate === 0) { - return false; - } - } - - if (availOutAfter === 0 || self._offset >= self._chunkSize) { - availOutBefore = self._chunkSize; - self._offset = 0; - self._buffer = Buffer.allocUnsafe(self._chunkSize); - } - - if (availOutAfter === 0) { - inOff += availInBefore - availInAfter; - availInBefore = availInAfter; - - return true; - } - - return false; - } - - assert(this._handle, "zlib binding closed"); - let res; - do { - res = this._handle.writeSync( - flushFlag, - chunk, // in - inOff, // in_off - availInBefore, // in_len - this._buffer, // out - this._offset, //out_off - availOutBefore - ); // out_len - // Node 8 --> 9 compatibility check - res = res || this._writeState; - } while (!this._hadError && handleChunk(res[0], res[1])); - - if (this._hadError) { - throw error; - } - - if (nread >= kMaxLength) { - _close(this); - throw new RangeError( - "Cannot create final Buffer. It would be larger than 0x" + - kMaxLength.toString(16) + - " bytes" - ); - } - - let buf = Buffer.concat(buffers, nread); - _close(this); - - return buf; -}; - -util.inherits(Inflate, zlib.Inflate); - -function zlibBufferSync(engine, buffer) { - if (typeof buffer === "string") { - buffer = Buffer.from(buffer); - } - if (!(buffer instanceof Buffer)) { - throw new TypeError("Not a string or buffer"); - } - - let flushFlag = engine._finishFlushFlag; - if (flushFlag == null) { - flushFlag = zlib.Z_FINISH; - } - - return engine._processChunk(buffer, flushFlag); -} - -function inflateSync(buffer, opts) { - return zlibBufferSync(new Inflate(opts), buffer); -} - -module.exports = exports = inflateSync; -exports.Inflate = Inflate; -exports.createInflate = createInflate; -exports.inflateSync = inflateSync; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/sync-reader.js b/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/sync-reader.js deleted file mode 100755 index 15cbd4cd9..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/lib/sync-reader.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; - -let SyncReader = (module.exports = function (buffer) { - this._buffer = buffer; - this._reads = []; -}); - -SyncReader.prototype.read = function (length, callback) { - this._reads.push({ - length: Math.abs(length), // if length < 0 then at most this length - allowLess: length < 0, - func: callback, - }); -}; - -SyncReader.prototype.process = function () { - // as long as there is any data and read requests - while (this._reads.length > 0 && this._buffer.length) { - let read = this._reads[0]; - - if ( - this._buffer.length && - (this._buffer.length >= read.length || read.allowLess) - ) { - // ok there is any data so that we can satisfy this request - this._reads.shift(); // == read - - let buf = this._buffer; - - this._buffer = buf.slice(read.length); - - read.func.call(this, buf.slice(0, read.length)); - } else { - break; - } - } - - if (this._reads.length > 0) { - return new Error("There are some read requests waitng on finished stream"); - } - - if (this._buffer.length > 0) { - return new Error("unrecognised content at end of stream"); - } -}; diff --git a/WechatBot/node_modules/qrcode/node_modules/pngjs/package.json b/WechatBot/node_modules/qrcode/node_modules/pngjs/package.json deleted file mode 100644 index 12a987151..000000000 --- a/WechatBot/node_modules/qrcode/node_modules/pngjs/package.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "name": "pngjs", - "version": "5.0.0", - "description": "PNG encoder/decoder in pure JS, supporting any bit size & interlace, async & sync with full test suite.", - "contributors": [ - "Alexandre Paré", - "Gaurav Mali", - "Gusts Kaksis", - "Kuba Niegowski", - "Luke Page", - "Pietajan De Potter", - "Steven Sojka", - "liangzeng", - "Michael Vogt", - "Xin-Xin Wang", - "toriningen", - "Eugene Kulabuhov" - ], - "homepage": "https://github.com/lukeapage/pngjs", - "keywords": [ - "PNG", - "decoder", - "encoder", - "js-png", - "node-png", - "parser", - "png", - "png-js", - "png-parse", - "pngjs" - ], - "engines": { - "node": ">=10.13.0" - }, - "main": "./lib/png.js", - "directories": { - "lib": "lib", - "example": "examples", - "test": "test" - }, - "scripts": { - "build": "yarn prepublish", - "prepublish": "yarn browserify", - "browserify": "browserify lib/png.js --standalone png > browser.js", - "coverage": "nyc --reporter=lcov --reporter=text-summary tape test/*-spec.js nolarge", - "test": "yarn lint && yarn prettier:check && tape test/*-spec.js | tap-dot && node test/run-compare", - "lint": "eslint .", - "prettier:write": "prettier --write .", - "prettier:check": "prettier --check ." - }, - "repository": { - "type": "git", - "url": "git://github.com/lukeapage/pngjs.git" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/lukeapage/pngjs/issues" - }, - "devDependencies": { - "browserify": "16.5.1", - "buffer-equal": "1.0.0", - "codecov": "3.6.5", - "connect": "3.7.0", - "eslint": "6.8.0", - "eslint-config-prettier": "6.10.1", - "nyc": "15.0.1", - "prettier": "2.0.4", - "puppeteer": "2.1.1", - "serve-static": "1.14.1", - "tap-dot": "2.0.0", - "tape": "4.13.2" - } -} diff --git a/WechatBot/node_modules/qrcode/package.json b/WechatBot/node_modules/qrcode/package.json deleted file mode 100644 index e59eb915f..000000000 --- a/WechatBot/node_modules/qrcode/package.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "name": "qrcode", - "description": "QRCode / 2d Barcode api with both server side and client side support using canvas", - "version": "1.5.3", - "author": "Ryan Day ", - "contributors": [ - "Vincenzo Greco ", - "Linus Unnebäck " - ], - "keywords": [ - "qr", - "code", - "canvas", - "qrcode" - ], - "main": "./lib/index.js", - "browser": { - "./lib/index.js": "./lib/browser.js", - "fs": false - }, - "files": [ - "bin", - "build", - "lib", - "helper" - ], - "homepage": "http://github.com/soldair/node-qrcode", - "license": "MIT", - "scripts": { - "lint": "standard", - "pretest": "npm run lint", - "test": "node --throw-deprecation test.js", - "build": "rollup -c", - "prepublish": "npm run build", - "browser": "node examples/clientsideserver.js" - }, - "bin": { - "qrcode": "./bin/qrcode" - }, - "dependencies": { - "dijkstrajs": "^1.0.1", - "encode-utf8": "^1.0.3", - "pngjs": "^5.0.0", - "yargs": "^15.3.1" - }, - "devDependencies": { - "@babel/core": "^7.9.0", - "@babel/preset-env": "^7.9.5", - "@rollup/plugin-commonjs": "^11.1.0", - "@rollup/plugin-node-resolve": "^7.1.3", - "browserify": "^16.5.1", - "canvas": "^2.8.0", - "canvasutil": "0.0.4", - "colors": "^1.4.0", - "express": "^4.17.1", - "htmlparser2": "^4.1.0", - "rollup": "^2.6.1", - "rollup-plugin-babel": "^4.4.0", - "rollup-plugin-terser": "^5.3.0", - "sinon": "^9.0.2", - "standard": "^16.0.4", - "tap": "^16.2.0" - }, - "repository": { - "type": "git", - "url": "git://github.com/soldair/node-qrcode.git" - }, - "engines": { - "node": ">=10.13.0" - }, - "standard": { - "ignore": [ - "build/", - "examples/vendors/", - "lib/core/regex.js" - ] - } -} diff --git a/WechatBot/node_modules/rc/LICENSE.APACHE2 b/WechatBot/node_modules/rc/LICENSE.APACHE2 deleted file mode 100644 index 6366c0471..000000000 --- a/WechatBot/node_modules/rc/LICENSE.APACHE2 +++ /dev/null @@ -1,15 +0,0 @@ -Apache License, Version 2.0 - -Copyright (c) 2011 Dominic Tarr - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. diff --git a/WechatBot/node_modules/rc/LICENSE.BSD b/WechatBot/node_modules/rc/LICENSE.BSD deleted file mode 100644 index 96bb796aa..000000000 --- a/WechatBot/node_modules/rc/LICENSE.BSD +++ /dev/null @@ -1,26 +0,0 @@ -Copyright (c) 2013, Dominic Tarr -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions are met: - -1. Redistributions of source code must retain the above copyright notice, this - list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright notice, - this list of conditions and the following disclaimer in the documentation - and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED -WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE -DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR -ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES -(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; -LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND -ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT -(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - -The views and conclusions contained in the software and documentation are those -of the authors and should not be interpreted as representing official policies, -either expressed or implied, of the FreeBSD Project. diff --git a/WechatBot/node_modules/rc/LICENSE.MIT b/WechatBot/node_modules/rc/LICENSE.MIT deleted file mode 100644 index 6eafbd734..000000000 --- a/WechatBot/node_modules/rc/LICENSE.MIT +++ /dev/null @@ -1,24 +0,0 @@ -The MIT License - -Copyright (c) 2011 Dominic Tarr - -Permission is hereby granted, free of charge, -to any person obtaining a copy of this software and -associated documentation files (the "Software"), to -deal in the Software without restriction, including -without limitation the rights to use, copy, modify, -merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom -the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice -shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR -ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/WechatBot/node_modules/rc/README.md b/WechatBot/node_modules/rc/README.md deleted file mode 100644 index e6522e267..000000000 --- a/WechatBot/node_modules/rc/README.md +++ /dev/null @@ -1,227 +0,0 @@ -# rc - -The non-configurable configuration loader for lazy people. - -## Usage - -The only option is to pass rc the name of your app, and your default configuration. - -```javascript -var conf = require('rc')(appname, { - //defaults go here. - port: 2468, - - //defaults which are objects will be merged, not replaced - views: { - engine: 'jade' - } -}); -``` - -`rc` will return your configuration options merged with the defaults you specify. -If you pass in a predefined defaults object, it will be mutated: - -```javascript -var conf = {}; -require('rc')(appname, conf); -``` - -If `rc` finds any config files for your app, the returned config object will have -a `configs` array containing their paths: - -```javascript -var appCfg = require('rc')(appname, conf); -appCfg.configs[0] // /etc/appnamerc -appCfg.configs[1] // /home/dominictarr/.config/appname -appCfg.config // same as appCfg.configs[appCfg.configs.length - 1] -``` - -## Standards - -Given your application name (`appname`), rc will look in all the obvious places for configuration. - - * command line arguments, parsed by minimist _(e.g. `--foo baz`, also nested: `--foo.bar=baz`)_ - * environment variables prefixed with `${appname}_` - * or use "\_\_" to indicate nested properties
_(e.g. `appname_foo__bar__baz` => `foo.bar.baz`)_ - * if you passed an option `--config file` then from that file - * a local `.${appname}rc` or the first found looking in `./ ../ ../../ ../../../` etc. - * `$HOME/.${appname}rc` - * `$HOME/.${appname}/config` - * `$HOME/.config/${appname}` - * `$HOME/.config/${appname}/config` - * `/etc/${appname}rc` - * `/etc/${appname}/config` - * the defaults object you passed in. - -All configuration sources that were found will be flattened into one object, -so that sources **earlier** in this list override later ones. - - -## Configuration File Formats - -Configuration files (e.g. `.appnamerc`) may be in either [json](http://json.org/example) or [ini](http://en.wikipedia.org/wiki/INI_file) format. **No** file extension (`.json` or `.ini`) should be used. The example configurations below are equivalent: - - -#### Formatted as `ini` - -``` -; You can include comments in `ini` format if you want. - -dependsOn=0.10.0 - - -; `rc` has built-in support for ini sections, see? - -[commands] - www = ./commands/www - console = ./commands/repl - - -; You can even do nested sections - -[generators.options] - engine = ejs - -[generators.modules] - new = generate-new - engine = generate-backend - -``` - -#### Formatted as `json` - -```javascript -{ - // You can even comment your JSON, if you want - "dependsOn": "0.10.0", - "commands": { - "www": "./commands/www", - "console": "./commands/repl" - }, - "generators": { - "options": { - "engine": "ejs" - }, - "modules": { - "new": "generate-new", - "backend": "generate-backend" - } - } -} -``` - -Comments are stripped from JSON config via [strip-json-comments](https://github.com/sindresorhus/strip-json-comments). - -> Since ini, and env variables do not have a standard for types, your application needs be prepared for strings. - -To ensure that string representations of booleans and numbers are always converted into their proper types (especially useful if you intend to do strict `===` comparisons), consider using a module such as [parse-strings-in-object](https://github.com/anselanza/parse-strings-in-object) to wrap the config object returned from rc. - - -## Simple example demonstrating precedence -Assume you have an application like this (notice the hard-coded defaults passed to rc): -``` -const conf = require('rc')('myapp', { - port: 12345, - mode: 'test' -}); - -console.log(JSON.stringify(conf, null, 2)); -``` -You also have a file `config.json`, with these contents: -``` -{ - "port": 9000, - "foo": "from config json", - "something": "else" -} -``` -And a file `.myapprc` in the same folder, with these contents: -``` -{ - "port": "3001", - "foo": "bar" -} -``` -Here is the expected output from various commands: - -`node .` -``` -{ - "port": "3001", - "mode": "test", - "foo": "bar", - "_": [], - "configs": [ - "/Users/stephen/repos/conftest/.myapprc" - ], - "config": "/Users/stephen/repos/conftest/.myapprc" -} -``` -*Default `mode` from hard-coded object is retained, but port is overridden by `.myapprc` file (automatically found based on appname match), and `foo` is added.* - - -`node . --foo baz` -``` -{ - "port": "3001", - "mode": "test", - "foo": "baz", - "_": [], - "configs": [ - "/Users/stephen/repos/conftest/.myapprc" - ], - "config": "/Users/stephen/repos/conftest/.myapprc" -} -``` -*Same result as above but `foo` is overridden because command-line arguments take precedence over `.myapprc` file.* - -`node . --foo barbar --config config.json` -``` -{ - "port": 9000, - "mode": "test", - "foo": "barbar", - "something": "else", - "_": [], - "config": "config.json", - "configs": [ - "/Users/stephen/repos/conftest/.myapprc", - "config.json" - ] -} -``` -*Now the `port` comes from the `config.json` file specified (overriding the value from `.myapprc`), and `foo` value is overriden by command-line despite also being specified in the `config.json` file.* - - - -## Advanced Usage - -#### Pass in your own `argv` - -You may pass in your own `argv` as the third argument to `rc`. This is in case you want to [use your own command-line opts parser](https://github.com/dominictarr/rc/pull/12). - -```javascript -require('rc')(appname, defaults, customArgvParser); -``` - -## Pass in your own parser - -If you have a special need to use a non-standard parser, -you can do so by passing in the parser as the 4th argument. -(leave the 3rd as null to get the default args parser) - -```javascript -require('rc')(appname, defaults, null, parser); -``` - -This may also be used to force a more strict format, -such as strict, valid JSON only. - -## Note on Performance - -`rc` is running `fs.statSync`-- so make sure you don't use it in a hot code path (e.g. a request handler) - - -## License - -Multi-licensed under the two-clause BSD License, MIT License, or Apache License, version 2.0 diff --git a/WechatBot/node_modules/rc/browser.js b/WechatBot/node_modules/rc/browser.js deleted file mode 100755 index 8c230c5cd..000000000 --- a/WechatBot/node_modules/rc/browser.js +++ /dev/null @@ -1,7 +0,0 @@ - -// when this is loaded into the browser, -// just use the defaults... - -module.exports = function (name, defaults) { - return defaults -} diff --git a/WechatBot/node_modules/rc/cli.js b/WechatBot/node_modules/rc/cli.js deleted file mode 100755 index ab05b6072..000000000 --- a/WechatBot/node_modules/rc/cli.js +++ /dev/null @@ -1,4 +0,0 @@ -#! /usr/bin/env node -var rc = require('./index') - -console.log(JSON.stringify(rc(process.argv[2]), false, 2)) diff --git a/WechatBot/node_modules/rc/index.js b/WechatBot/node_modules/rc/index.js deleted file mode 100755 index 65eb47afe..000000000 --- a/WechatBot/node_modules/rc/index.js +++ /dev/null @@ -1,53 +0,0 @@ -var cc = require('./lib/utils') -var join = require('path').join -var deepExtend = require('deep-extend') -var etc = '/etc' -var win = process.platform === "win32" -var home = win - ? process.env.USERPROFILE - : process.env.HOME - -module.exports = function (name, defaults, argv, parse) { - if('string' !== typeof name) - throw new Error('rc(name): name *must* be string') - if(!argv) - argv = require('minimist')(process.argv.slice(2)) - defaults = ( - 'string' === typeof defaults - ? cc.json(defaults) : defaults - ) || {} - - parse = parse || cc.parse - - var env = cc.env(name + '_') - - var configs = [defaults] - var configFiles = [] - function addConfigFile (file) { - if (configFiles.indexOf(file) >= 0) return - var fileConfig = cc.file(file) - if (fileConfig) { - configs.push(parse(fileConfig)) - configFiles.push(file) - } - } - - // which files do we look at? - if (!win) - [join(etc, name, 'config'), - join(etc, name + 'rc')].forEach(addConfigFile) - if (home) - [join(home, '.config', name, 'config'), - join(home, '.config', name), - join(home, '.' + name, 'config'), - join(home, '.' + name + 'rc')].forEach(addConfigFile) - addConfigFile(cc.find('.'+name+'rc')) - if (env.config) addConfigFile(env.config) - if (argv.config) addConfigFile(argv.config) - - return deepExtend.apply(null, configs.concat([ - env, - argv, - configFiles.length ? {configs: configFiles, config: configFiles[configFiles.length - 1]} : undefined, - ])) -} diff --git a/WechatBot/node_modules/rc/lib/utils.js b/WechatBot/node_modules/rc/lib/utils.js deleted file mode 100755 index 8b3beffa3..000000000 --- a/WechatBot/node_modules/rc/lib/utils.js +++ /dev/null @@ -1,104 +0,0 @@ -'use strict'; -var fs = require('fs') -var ini = require('ini') -var path = require('path') -var stripJsonComments = require('strip-json-comments') - -var parse = exports.parse = function (content) { - - //if it ends in .json or starts with { then it must be json. - //must be done this way, because ini accepts everything. - //can't just try and parse it and let it throw if it's not ini. - //everything is ini. even json with a syntax error. - - if(/^\s*{/.test(content)) - return JSON.parse(stripJsonComments(content)) - return ini.parse(content) - -} - -var file = exports.file = function () { - var args = [].slice.call(arguments).filter(function (arg) { return arg != null }) - - //path.join breaks if it's a not a string, so just skip this. - for(var i in args) - if('string' !== typeof args[i]) - return - - var file = path.join.apply(null, args) - var content - try { - return fs.readFileSync(file,'utf-8') - } catch (err) { - return - } -} - -var json = exports.json = function () { - var content = file.apply(null, arguments) - return content ? parse(content) : null -} - -var env = exports.env = function (prefix, env) { - env = env || process.env - var obj = {} - var l = prefix.length - for(var k in env) { - if(k.toLowerCase().indexOf(prefix.toLowerCase()) === 0) { - - var keypath = k.substring(l).split('__') - - // Trim empty strings from keypath array - var _emptyStringIndex - while ((_emptyStringIndex=keypath.indexOf('')) > -1) { - keypath.splice(_emptyStringIndex, 1) - } - - var cursor = obj - keypath.forEach(function _buildSubObj(_subkey,i){ - - // (check for _subkey first so we ignore empty strings) - // (check for cursor to avoid assignment to primitive objects) - if (!_subkey || typeof cursor !== 'object') - return - - // If this is the last key, just stuff the value in there - // Assigns actual value from env variable to final key - // (unless it's just an empty string- in that case use the last valid key) - if (i === keypath.length-1) - cursor[_subkey] = env[k] - - - // Build sub-object if nothing already exists at the keypath - if (cursor[_subkey] === undefined) - cursor[_subkey] = {} - - // Increment cursor used to track the object at the current depth - cursor = cursor[_subkey] - - }) - - } - - } - - return obj -} - -var find = exports.find = function () { - var rel = path.join.apply(null, [].slice.call(arguments)) - - function find(start, rel) { - var file = path.join(start, rel) - try { - fs.statSync(file) - return file - } catch (err) { - if(path.dirname(start) !== start) // root - return find(path.dirname(start), rel) - } - } - return find(process.cwd(), rel) -} - - diff --git a/WechatBot/node_modules/rc/package.json b/WechatBot/node_modules/rc/package.json deleted file mode 100644 index 887238fa4..000000000 --- a/WechatBot/node_modules/rc/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "rc", - "version": "1.2.8", - "description": "hardwired configuration loader", - "main": "index.js", - "browser": "browser.js", - "scripts": { - "test": "set -e; node test/test.js; node test/ini.js; node test/nested-env-vars.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/dominictarr/rc.git" - }, - "license": "(BSD-2-Clause OR MIT OR Apache-2.0)", - "keywords": [ - "config", - "rc", - "unix", - "defaults" - ], - "bin": "./cli.js", - "author": "Dominic Tarr (dominictarr.com)", - "dependencies": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - } -} diff --git a/WechatBot/node_modules/rc/test/ini.js b/WechatBot/node_modules/rc/test/ini.js deleted file mode 100755 index e6857f8b3..000000000 --- a/WechatBot/node_modules/rc/test/ini.js +++ /dev/null @@ -1,16 +0,0 @@ -var cc =require('../lib/utils') -var INI = require('ini') -var assert = require('assert') - -function test(obj) { - - var _json, _ini - var json = cc.parse (_json = JSON.stringify(obj)) - var ini = cc.parse (_ini = INI.stringify(obj)) - console.log(_ini, _json) - assert.deepEqual(json, ini) -} - - -test({hello: true}) - diff --git a/WechatBot/node_modules/rc/test/nested-env-vars.js b/WechatBot/node_modules/rc/test/nested-env-vars.js deleted file mode 100755 index 0ecd17634..000000000 --- a/WechatBot/node_modules/rc/test/nested-env-vars.js +++ /dev/null @@ -1,50 +0,0 @@ - -var seed = Math.random(); -var n = 'rc'+ seed; -var N = 'RC'+ seed; -var assert = require('assert') - - -// Basic usage -process.env[n+'_someOpt__a'] = 42 -process.env[n+'_someOpt__x__'] = 99 -process.env[n+'_someOpt__a__b'] = 186 -process.env[n+'_someOpt__a__b__c'] = 243 -process.env[n+'_someOpt__x__y'] = 1862 -process.env[n+'_someOpt__z'] = 186577 - -// Should ignore empty strings from orphaned '__' -process.env[n+'_someOpt__z__x__'] = 18629 -process.env[n+'_someOpt__w__w__'] = 18629 - -// Leading '__' should ignore everything up to 'z' -process.env[n+'___z__i__'] = 9999 - -// should ignore case for config name section. -process.env[N+'_test_upperCase'] = 187 - -function testPrefix(prefix) { - var config = require('../')(prefix, { - option: true - }) - - console.log('\n\n------ nested-env-vars ------\n',{prefix: prefix}, '\n', config); - - assert.equal(config.option, true) - assert.equal(config.someOpt.a, 42) - assert.equal(config.someOpt.x, 99) - // Should not override `a` once it's been set - assert.equal(config.someOpt.a/*.b*/, 42) - // Should not override `x` once it's been set - assert.equal(config.someOpt.x/*.y*/, 99) - assert.equal(config.someOpt.z, 186577) - // Should not override `z` once it's been set - assert.equal(config.someOpt.z/*.x*/, 186577) - assert.equal(config.someOpt.w.w, 18629) - assert.equal(config.z.i, 9999) - - assert.equal(config.test_upperCase, 187) -} - -testPrefix(n); -testPrefix(N); diff --git a/WechatBot/node_modules/rc/test/test.js b/WechatBot/node_modules/rc/test/test.js deleted file mode 100755 index 4f6335189..000000000 --- a/WechatBot/node_modules/rc/test/test.js +++ /dev/null @@ -1,59 +0,0 @@ - -var n = 'rc'+Math.random() -var assert = require('assert') - -process.env[n+'_envOption'] = 42 - -var config = require('../')(n, { - option: true -}) - -console.log(config) - -assert.equal(config.option, true) -assert.equal(config.envOption, 42) - -var customArgv = require('../')(n, { - option: true -}, { // nopt-like argv - option: false, - envOption: 24, - argv: { - remain: [], - cooked: ['--no-option', '--envOption', '24'], - original: ['--no-option', '--envOption=24'] - } -}) - -console.log(customArgv) - -assert.equal(customArgv.option, false) -assert.equal(customArgv.envOption, 24) - -var fs = require('fs') -var path = require('path') -var jsonrc = path.resolve('.' + n + 'rc'); - -fs.writeFileSync(jsonrc, [ - '{', - '// json overrides default', - '"option": false,', - '/* env overrides json */', - '"envOption": 24', - '}' -].join('\n')); - -var commentedJSON = require('../')(n, { - option: true -}) - -fs.unlinkSync(jsonrc); - -console.log(commentedJSON) - -assert.equal(commentedJSON.option, false) -assert.equal(commentedJSON.envOption, 42) - -assert.equal(commentedJSON.config, jsonrc) -assert.equal(commentedJSON.configs.length, 1) -assert.equal(commentedJSON.configs[0], jsonrc) diff --git a/WechatBot/node_modules/readable-stream/CONTRIBUTING.md b/WechatBot/node_modules/readable-stream/CONTRIBUTING.md deleted file mode 100644 index f478d58dc..000000000 --- a/WechatBot/node_modules/readable-stream/CONTRIBUTING.md +++ /dev/null @@ -1,38 +0,0 @@ -# Developer's Certificate of Origin 1.1 - -By making a contribution to this project, I certify that: - -* (a) The contribution was created in whole or in part by me and I - have the right to submit it under the open source license - indicated in the file; or - -* (b) The contribution is based upon previous work that, to the best - of my knowledge, is covered under an appropriate open source - license and I have the right under that license to submit that - work with modifications, whether created in whole or in part - by me, under the same open source license (unless I am - permitted to submit under a different license), as indicated - in the file; or - -* (c) The contribution was provided directly to me by some other - person who certified (a), (b) or (c) and I have not modified - it. - -* (d) I understand and agree that this project and the contribution - are public and that a record of the contribution (including all - personal information I submit with it, including my sign-off) is - maintained indefinitely and may be redistributed consistent with - this project or the open source license(s) involved. - -## Moderation Policy - -The [Node.js Moderation Policy] applies to this WG. - -## Code of Conduct - -The [Node.js Code of Conduct][] applies to this WG. - -[Node.js Code of Conduct]: -https://github.com/nodejs/node/blob/master/CODE_OF_CONDUCT.md -[Node.js Moderation Policy]: -https://github.com/nodejs/TSC/blob/master/Moderation-Policy.md diff --git a/WechatBot/node_modules/readable-stream/GOVERNANCE.md b/WechatBot/node_modules/readable-stream/GOVERNANCE.md deleted file mode 100644 index 16ffb93f2..000000000 --- a/WechatBot/node_modules/readable-stream/GOVERNANCE.md +++ /dev/null @@ -1,136 +0,0 @@ -### Streams Working Group - -The Node.js Streams is jointly governed by a Working Group -(WG) -that is responsible for high-level guidance of the project. - -The WG has final authority over this project including: - -* Technical direction -* Project governance and process (including this policy) -* Contribution policy -* GitHub repository hosting -* Conduct guidelines -* Maintaining the list of additional Collaborators - -For the current list of WG members, see the project -[README.md](./README.md#current-project-team-members). - -### Collaborators - -The readable-stream GitHub repository is -maintained by the WG and additional Collaborators who are added by the -WG on an ongoing basis. - -Individuals making significant and valuable contributions are made -Collaborators and given commit-access to the project. These -individuals are identified by the WG and their addition as -Collaborators is discussed during the WG meeting. - -_Note:_ If you make a significant contribution and are not considered -for commit-access log an issue or contact a WG member directly and it -will be brought up in the next WG meeting. - -Modifications of the contents of the readable-stream repository are -made on -a collaborative basis. Anybody with a GitHub account may propose a -modification via pull request and it will be considered by the project -Collaborators. All pull requests must be reviewed and accepted by a -Collaborator with sufficient expertise who is able to take full -responsibility for the change. In the case of pull requests proposed -by an existing Collaborator, an additional Collaborator is required -for sign-off. Consensus should be sought if additional Collaborators -participate and there is disagreement around a particular -modification. See _Consensus Seeking Process_ below for further detail -on the consensus model used for governance. - -Collaborators may opt to elevate significant or controversial -modifications, or modifications that have not found consensus to the -WG for discussion by assigning the ***WG-agenda*** tag to a pull -request or issue. The WG should serve as the final arbiter where -required. - -For the current list of Collaborators, see the project -[README.md](./README.md#members). - -### WG Membership - -WG seats are not time-limited. There is no fixed size of the WG. -However, the expected target is between 6 and 12, to ensure adequate -coverage of important areas of expertise, balanced with the ability to -make decisions efficiently. - -There is no specific set of requirements or qualifications for WG -membership beyond these rules. - -The WG may add additional members to the WG by unanimous consensus. - -A WG member may be removed from the WG by voluntary resignation, or by -unanimous consensus of all other WG members. - -Changes to WG membership should be posted in the agenda, and may be -suggested as any other agenda item (see "WG Meetings" below). - -If an addition or removal is proposed during a meeting, and the full -WG is not in attendance to participate, then the addition or removal -is added to the agenda for the subsequent meeting. This is to ensure -that all members are given the opportunity to participate in all -membership decisions. If a WG member is unable to attend a meeting -where a planned membership decision is being made, then their consent -is assumed. - -No more than 1/3 of the WG members may be affiliated with the same -employer. If removal or resignation of a WG member, or a change of -employment by a WG member, creates a situation where more than 1/3 of -the WG membership shares an employer, then the situation must be -immediately remedied by the resignation or removal of one or more WG -members affiliated with the over-represented employer(s). - -### WG Meetings - -The WG meets occasionally on a Google Hangout On Air. A designated moderator -approved by the WG runs the meeting. Each meeting should be -published to YouTube. - -Items are added to the WG agenda that are considered contentious or -are modifications of governance, contribution policy, WG membership, -or release process. - -The intention of the agenda is not to approve or review all patches; -that should happen continuously on GitHub and be handled by the larger -group of Collaborators. - -Any community member or contributor can ask that something be added to -the next meeting's agenda by logging a GitHub Issue. Any Collaborator, -WG member or the moderator can add the item to the agenda by adding -the ***WG-agenda*** tag to the issue. - -Prior to each WG meeting the moderator will share the Agenda with -members of the WG. WG members can add any items they like to the -agenda at the beginning of each meeting. The moderator and the WG -cannot veto or remove items. - -The WG may invite persons or representatives from certain projects to -participate in a non-voting capacity. - -The moderator is responsible for summarizing the discussion of each -agenda item and sends it as a pull request after the meeting. - -### Consensus Seeking Process - -The WG follows a -[Consensus -Seeking](http://en.wikipedia.org/wiki/Consensus-seeking_decision-making) -decision-making model. - -When an agenda item has appeared to reach a consensus the moderator -will ask "Does anyone object?" as a final call for dissent from the -consensus. - -If an agenda item cannot reach a consensus a WG member can call for -either a closing vote or a vote to table the issue to the next -meeting. The call for a vote must be seconded by a majority of the WG -or else the discussion will continue. Simple majority wins. - -Note that changes to WG membership require a majority consensus. See -"WG Membership" above. diff --git a/WechatBot/node_modules/readable-stream/LICENSE b/WechatBot/node_modules/readable-stream/LICENSE deleted file mode 100644 index 2873b3b2e..000000000 --- a/WechatBot/node_modules/readable-stream/LICENSE +++ /dev/null @@ -1,47 +0,0 @@ -Node.js is licensed for use as follows: - -""" -Copyright Node.js contributors. All rights reserved. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" - -This license applies to parts of Node.js originating from the -https://github.com/joyent/node repository: - -""" -Copyright Joyent, Inc. and other Node contributors. All rights reserved. -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to -deal in the Software without restriction, including without limitation the -rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -sell copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. -""" diff --git a/WechatBot/node_modules/readable-stream/README.md b/WechatBot/node_modules/readable-stream/README.md deleted file mode 100644 index 19117c1a0..000000000 --- a/WechatBot/node_modules/readable-stream/README.md +++ /dev/null @@ -1,106 +0,0 @@ -# readable-stream - -***Node.js core streams for userland*** [![Build Status](https://travis-ci.com/nodejs/readable-stream.svg?branch=master)](https://travis-ci.com/nodejs/readable-stream) - - -[![NPM](https://nodei.co/npm/readable-stream.png?downloads=true&downloadRank=true)](https://nodei.co/npm/readable-stream/) -[![NPM](https://nodei.co/npm-dl/readable-stream.png?&months=6&height=3)](https://nodei.co/npm/readable-stream/) - - -[![Sauce Test Status](https://saucelabs.com/browser-matrix/readabe-stream.svg)](https://saucelabs.com/u/readabe-stream) - -```bash -npm install --save readable-stream -``` - -This package is a mirror of the streams implementations in Node.js. - -Full documentation may be found on the [Node.js website](https://nodejs.org/dist/v10.18.1/docs/api/stream.html). - -If you want to guarantee a stable streams base, regardless of what version of -Node you, or the users of your libraries are using, use **readable-stream** *only* and avoid the *"stream"* module in Node-core, for background see [this blogpost](http://r.va.gg/2014/06/why-i-dont-use-nodes-core-stream-module.html). - -As of version 2.0.0 **readable-stream** uses semantic versioning. - -## Version 3.x.x - -v3.x.x of `readable-stream` is a cut from Node 10. This version supports Node 6, 8, and 10, as well as evergreen browsers, IE 11 and latest Safari. The breaking changes introduced by v3 are composed by the combined breaking changes in [Node v9](https://nodejs.org/en/blog/release/v9.0.0/) and [Node v10](https://nodejs.org/en/blog/release/v10.0.0/), as follows: - -1. Error codes: https://github.com/nodejs/node/pull/13310, - https://github.com/nodejs/node/pull/13291, - https://github.com/nodejs/node/pull/16589, - https://github.com/nodejs/node/pull/15042, - https://github.com/nodejs/node/pull/15665, - https://github.com/nodejs/readable-stream/pull/344 -2. 'readable' have precedence over flowing - https://github.com/nodejs/node/pull/18994 -3. make virtual methods errors consistent - https://github.com/nodejs/node/pull/18813 -4. updated streams error handling - https://github.com/nodejs/node/pull/18438 -5. writable.end should return this. - https://github.com/nodejs/node/pull/18780 -6. readable continues to read when push('') - https://github.com/nodejs/node/pull/18211 -7. add custom inspect to BufferList - https://github.com/nodejs/node/pull/17907 -8. always defer 'readable' with nextTick - https://github.com/nodejs/node/pull/17979 - -## Version 2.x.x -v2.x.x of `readable-stream` is a cut of the stream module from Node 8 (there have been no semver-major changes from Node 4 to 8). This version supports all Node.js versions from 0.8, as well as evergreen browsers and IE 10 & 11. - -### Big Thanks - -Cross-browser Testing Platform and Open Source <3 Provided by [Sauce Labs][sauce] - -# Usage - -You can swap your `require('stream')` with `require('readable-stream')` -without any changes, if you are just using one of the main classes and -functions. - -```js -const { - Readable, - Writable, - Transform, - Duplex, - pipeline, - finished -} = require('readable-stream') -```` - -Note that `require('stream')` will return `Stream`, while -`require('readable-stream')` will return `Readable`. We discourage using -whatever is exported directly, but rather use one of the properties as -shown in the example above. - -# Streams Working Group - -`readable-stream` is maintained by the Streams Working Group, which -oversees the development and maintenance of the Streams API within -Node.js. The responsibilities of the Streams Working Group include: - -* Addressing stream issues on the Node.js issue tracker. -* Authoring and editing stream documentation within the Node.js project. -* Reviewing changes to stream subclasses within the Node.js project. -* Redirecting changes to streams from the Node.js project to this - project. -* Assisting in the implementation of stream providers within Node.js. -* Recommending versions of `readable-stream` to be included in Node.js. -* Messaging about the future of streams to give the community advance - notice of changes. - - -## Team Members - -* **Calvin Metcalf** ([@calvinmetcalf](https://github.com/calvinmetcalf)) <calvin.metcalf@gmail.com> - - Release GPG key: F3EF5F62A87FC27A22E643F714CE4FF5015AA242 -* **Mathias Buus** ([@mafintosh](https://github.com/mafintosh)) <mathiasbuus@gmail.com> -* **Matteo Collina** ([@mcollina](https://github.com/mcollina)) <matteo.collina@gmail.com> - - Release GPG key: 3ABC01543F22DD2239285CDD818674489FBC127E -* **Irina Shestak** ([@lrlna](https://github.com/lrlna)) <shestak.irina@gmail.com> -* **Yoshua Wyuts** ([@yoshuawuyts](https://github.com/yoshuawuyts)) <yoshuawuyts@gmail.com> - -[sauce]: https://saucelabs.com diff --git a/WechatBot/node_modules/readable-stream/errors-browser.js b/WechatBot/node_modules/readable-stream/errors-browser.js deleted file mode 100755 index fb8e73e18..000000000 --- a/WechatBot/node_modules/readable-stream/errors-browser.js +++ /dev/null @@ -1,127 +0,0 @@ -'use strict'; - -function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; } - -var codes = {}; - -function createErrorType(code, message, Base) { - if (!Base) { - Base = Error; - } - - function getMessage(arg1, arg2, arg3) { - if (typeof message === 'string') { - return message; - } else { - return message(arg1, arg2, arg3); - } - } - - var NodeError = - /*#__PURE__*/ - function (_Base) { - _inheritsLoose(NodeError, _Base); - - function NodeError(arg1, arg2, arg3) { - return _Base.call(this, getMessage(arg1, arg2, arg3)) || this; - } - - return NodeError; - }(Base); - - NodeError.prototype.name = Base.name; - NodeError.prototype.code = code; - codes[code] = NodeError; -} // https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js - - -function oneOf(expected, thing) { - if (Array.isArray(expected)) { - var len = expected.length; - expected = expected.map(function (i) { - return String(i); - }); - - if (len > 2) { - return "one of ".concat(thing, " ").concat(expected.slice(0, len - 1).join(', '), ", or ") + expected[len - 1]; - } else if (len === 2) { - return "one of ".concat(thing, " ").concat(expected[0], " or ").concat(expected[1]); - } else { - return "of ".concat(thing, " ").concat(expected[0]); - } - } else { - return "of ".concat(thing, " ").concat(String(expected)); - } -} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith - - -function startsWith(str, search, pos) { - return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; -} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith - - -function endsWith(str, search, this_len) { - if (this_len === undefined || this_len > str.length) { - this_len = str.length; - } - - return str.substring(this_len - search.length, this_len) === search; -} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes - - -function includes(str, search, start) { - if (typeof start !== 'number') { - start = 0; - } - - if (start + search.length > str.length) { - return false; - } else { - return str.indexOf(search, start) !== -1; - } -} - -createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) { - return 'The value "' + value + '" is invalid for option "' + name + '"'; -}, TypeError); -createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) { - // determiner: 'must be' or 'must not be' - var determiner; - - if (typeof expected === 'string' && startsWith(expected, 'not ')) { - determiner = 'must not be'; - expected = expected.replace(/^not /, ''); - } else { - determiner = 'must be'; - } - - var msg; - - if (endsWith(name, ' argument')) { - // For cases like 'first argument' - msg = "The ".concat(name, " ").concat(determiner, " ").concat(oneOf(expected, 'type')); - } else { - var type = includes(name, '.') ? 'property' : 'argument'; - msg = "The \"".concat(name, "\" ").concat(type, " ").concat(determiner, " ").concat(oneOf(expected, 'type')); - } - - msg += ". Received type ".concat(typeof actual); - return msg; -}, TypeError); -createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF'); -createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) { - return 'The ' + name + ' method is not implemented'; -}); -createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close'); -createErrorType('ERR_STREAM_DESTROYED', function (name) { - return 'Cannot call ' + name + ' after a stream was destroyed'; -}); -createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'); -createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable'); -createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end'); -createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); -createErrorType('ERR_UNKNOWN_ENCODING', function (arg) { - return 'Unknown encoding: ' + arg; -}, TypeError); -createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event'); -module.exports.codes = codes; diff --git a/WechatBot/node_modules/readable-stream/errors.js b/WechatBot/node_modules/readable-stream/errors.js deleted file mode 100755 index 8471526d6..000000000 --- a/WechatBot/node_modules/readable-stream/errors.js +++ /dev/null @@ -1,116 +0,0 @@ -'use strict'; - -const codes = {}; - -function createErrorType(code, message, Base) { - if (!Base) { - Base = Error - } - - function getMessage (arg1, arg2, arg3) { - if (typeof message === 'string') { - return message - } else { - return message(arg1, arg2, arg3) - } - } - - class NodeError extends Base { - constructor (arg1, arg2, arg3) { - super(getMessage(arg1, arg2, arg3)); - } - } - - NodeError.prototype.name = Base.name; - NodeError.prototype.code = code; - - codes[code] = NodeError; -} - -// https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js -function oneOf(expected, thing) { - if (Array.isArray(expected)) { - const len = expected.length; - expected = expected.map((i) => String(i)); - if (len > 2) { - return `one of ${thing} ${expected.slice(0, len - 1).join(', ')}, or ` + - expected[len - 1]; - } else if (len === 2) { - return `one of ${thing} ${expected[0]} or ${expected[1]}`; - } else { - return `of ${thing} ${expected[0]}`; - } - } else { - return `of ${thing} ${String(expected)}`; - } -} - -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith -function startsWith(str, search, pos) { - return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; -} - -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith -function endsWith(str, search, this_len) { - if (this_len === undefined || this_len > str.length) { - this_len = str.length; - } - return str.substring(this_len - search.length, this_len) === search; -} - -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes -function includes(str, search, start) { - if (typeof start !== 'number') { - start = 0; - } - - if (start + search.length > str.length) { - return false; - } else { - return str.indexOf(search, start) !== -1; - } -} - -createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) { - return 'The value "' + value + '" is invalid for option "' + name + '"' -}, TypeError); -createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) { - // determiner: 'must be' or 'must not be' - let determiner; - if (typeof expected === 'string' && startsWith(expected, 'not ')) { - determiner = 'must not be'; - expected = expected.replace(/^not /, ''); - } else { - determiner = 'must be'; - } - - let msg; - if (endsWith(name, ' argument')) { - // For cases like 'first argument' - msg = `The ${name} ${determiner} ${oneOf(expected, 'type')}`; - } else { - const type = includes(name, '.') ? 'property' : 'argument'; - msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, 'type')}`; - } - - msg += `. Received type ${typeof actual}`; - return msg; -}, TypeError); -createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF'); -createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) { - return 'The ' + name + ' method is not implemented' -}); -createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close'); -createErrorType('ERR_STREAM_DESTROYED', function (name) { - return 'Cannot call ' + name + ' after a stream was destroyed'; -}); -createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'); -createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable'); -createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end'); -createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); -createErrorType('ERR_UNKNOWN_ENCODING', function (arg) { - return 'Unknown encoding: ' + arg -}, TypeError); -createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event'); - -module.exports.codes = codes; diff --git a/WechatBot/node_modules/readable-stream/experimentalWarning.js b/WechatBot/node_modules/readable-stream/experimentalWarning.js deleted file mode 100755 index 78e841495..000000000 --- a/WechatBot/node_modules/readable-stream/experimentalWarning.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict' - -var experimentalWarnings = new Set(); - -function emitExperimentalWarning(feature) { - if (experimentalWarnings.has(feature)) return; - var msg = feature + ' is an experimental feature. This feature could ' + - 'change at any time'; - experimentalWarnings.add(feature); - process.emitWarning(msg, 'ExperimentalWarning'); -} - -function noop() {} - -module.exports.emitExperimentalWarning = process.emitWarning - ? emitExperimentalWarning - : noop; diff --git a/WechatBot/node_modules/readable-stream/lib/_stream_duplex.js b/WechatBot/node_modules/readable-stream/lib/_stream_duplex.js deleted file mode 100755 index 19abfa604..000000000 --- a/WechatBot/node_modules/readable-stream/lib/_stream_duplex.js +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// a duplex stream is just a stream that is both readable and writable. -// Since JS doesn't have multiple prototypal inheritance, this class -// prototypally inherits from Readable, and then parasitically from -// Writable. - -'use strict'; - -/**/ -var objectKeys = Object.keys || function (obj) { - var keys = []; - for (var key in obj) keys.push(key); - return keys; -}; -/**/ - -module.exports = Duplex; -var Readable = require('./_stream_readable'); -var Writable = require('./_stream_writable'); -require('inherits')(Duplex, Readable); -{ - // Allow the keys array to be GC'ed. - var keys = objectKeys(Writable.prototype); - for (var v = 0; v < keys.length; v++) { - var method = keys[v]; - if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; - } -} -function Duplex(options) { - if (!(this instanceof Duplex)) return new Duplex(options); - Readable.call(this, options); - Writable.call(this, options); - this.allowHalfOpen = true; - if (options) { - if (options.readable === false) this.readable = false; - if (options.writable === false) this.writable = false; - if (options.allowHalfOpen === false) { - this.allowHalfOpen = false; - this.once('end', onend); - } - } -} -Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState.highWaterMark; - } -}); -Object.defineProperty(Duplex.prototype, 'writableBuffer', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState && this._writableState.getBuffer(); - } -}); -Object.defineProperty(Duplex.prototype, 'writableLength', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState.length; - } -}); - -// the no-half-open enforcer -function onend() { - // If the writable side ended, then we're ok. - if (this._writableState.ended) return; - - // no more data can be written. - // But allow more writes to happen in this tick. - process.nextTick(onEndNT, this); -} -function onEndNT(self) { - self.end(); -} -Object.defineProperty(Duplex.prototype, 'destroyed', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - if (this._readableState === undefined || this._writableState === undefined) { - return false; - } - return this._readableState.destroyed && this._writableState.destroyed; - }, - set: function set(value) { - // we ignore the value if the stream - // has not been initialized yet - if (this._readableState === undefined || this._writableState === undefined) { - return; - } - - // backward compatibility, the user is explicitly - // managing destroyed - this._readableState.destroyed = value; - this._writableState.destroyed = value; - } -}); \ No newline at end of file diff --git a/WechatBot/node_modules/readable-stream/lib/_stream_passthrough.js b/WechatBot/node_modules/readable-stream/lib/_stream_passthrough.js deleted file mode 100755 index 24a6bdde2..000000000 --- a/WechatBot/node_modules/readable-stream/lib/_stream_passthrough.js +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// a passthrough stream. -// basically just the most minimal sort of Transform stream. -// Every written chunk gets output as-is. - -'use strict'; - -module.exports = PassThrough; -var Transform = require('./_stream_transform'); -require('inherits')(PassThrough, Transform); -function PassThrough(options) { - if (!(this instanceof PassThrough)) return new PassThrough(options); - Transform.call(this, options); -} -PassThrough.prototype._transform = function (chunk, encoding, cb) { - cb(null, chunk); -}; \ No newline at end of file diff --git a/WechatBot/node_modules/readable-stream/lib/_stream_readable.js b/WechatBot/node_modules/readable-stream/lib/_stream_readable.js deleted file mode 100755 index df1f608d5..000000000 --- a/WechatBot/node_modules/readable-stream/lib/_stream_readable.js +++ /dev/null @@ -1,1027 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -'use strict'; - -module.exports = Readable; - -/**/ -var Duplex; -/**/ - -Readable.ReadableState = ReadableState; - -/**/ -var EE = require('events').EventEmitter; -var EElistenerCount = function EElistenerCount(emitter, type) { - return emitter.listeners(type).length; -}; -/**/ - -/**/ -var Stream = require('./internal/streams/stream'); -/**/ - -var Buffer = require('buffer').Buffer; -var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; -function _uint8ArrayToBuffer(chunk) { - return Buffer.from(chunk); -} -function _isUint8Array(obj) { - return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; -} - -/**/ -var debugUtil = require('util'); -var debug; -if (debugUtil && debugUtil.debuglog) { - debug = debugUtil.debuglog('stream'); -} else { - debug = function debug() {}; -} -/**/ - -var BufferList = require('./internal/streams/buffer_list'); -var destroyImpl = require('./internal/streams/destroy'); -var _require = require('./internal/streams/state'), - getHighWaterMark = _require.getHighWaterMark; -var _require$codes = require('../errors').codes, - ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, - ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF, - ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, - ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; - -// Lazy loaded to improve the startup performance. -var StringDecoder; -var createReadableStreamAsyncIterator; -var from; -require('inherits')(Readable, Stream); -var errorOrDestroy = destroyImpl.errorOrDestroy; -var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume']; -function prependListener(emitter, event, fn) { - // Sadly this is not cacheable as some libraries bundle their own - // event emitter implementation with them. - if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); - - // This is a hack to make sure that our error handler is attached before any - // userland ones. NEVER DO THIS. This is here only because this code needs - // to continue to work with older versions of Node.js that do not include - // the prependListener() method. The goal is to eventually remove this hack. - if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; -} -function ReadableState(options, stream, isDuplex) { - Duplex = Duplex || require('./_stream_duplex'); - options = options || {}; - - // Duplex streams are both readable and writable, but share - // the same options object. - // However, some cases require setting options to different - // values for the readable and the writable sides of the duplex stream. - // These options can be provided separately as readableXXX and writableXXX. - if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; - - // object stream flag. Used to make read(n) ignore n and to - // make all the buffer merging and length checks go away - this.objectMode = !!options.objectMode; - if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; - - // the point at which it stops calling _read() to fill the buffer - // Note: 0 is a valid value, means "don't call _read preemptively ever" - this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); - - // A linked list is used to store data chunks instead of an array because the - // linked list can remove elements from the beginning faster than - // array.shift() - this.buffer = new BufferList(); - this.length = 0; - this.pipes = null; - this.pipesCount = 0; - this.flowing = null; - this.ended = false; - this.endEmitted = false; - this.reading = false; - - // a flag to be able to tell if the event 'readable'/'data' is emitted - // immediately, or on a later tick. We set this to true at first, because - // any actions that shouldn't happen until "later" should generally also - // not happen before the first read call. - this.sync = true; - - // whenever we return null, then we set a flag to say - // that we're awaiting a 'readable' event emission. - this.needReadable = false; - this.emittedReadable = false; - this.readableListening = false; - this.resumeScheduled = false; - this.paused = true; - - // Should close be emitted on destroy. Defaults to true. - this.emitClose = options.emitClose !== false; - - // Should .destroy() be called after 'end' (and potentially 'finish') - this.autoDestroy = !!options.autoDestroy; - - // has it been destroyed - this.destroyed = false; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // the number of writers that are awaiting a drain event in .pipe()s - this.awaitDrain = 0; - - // if true, a maybeReadMore has been scheduled - this.readingMore = false; - this.decoder = null; - this.encoding = null; - if (options.encoding) { - if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; - this.decoder = new StringDecoder(options.encoding); - this.encoding = options.encoding; - } -} -function Readable(options) { - Duplex = Duplex || require('./_stream_duplex'); - if (!(this instanceof Readable)) return new Readable(options); - - // Checking for a Stream.Duplex instance is faster here instead of inside - // the ReadableState constructor, at least with V8 6.5 - var isDuplex = this instanceof Duplex; - this._readableState = new ReadableState(options, this, isDuplex); - - // legacy - this.readable = true; - if (options) { - if (typeof options.read === 'function') this._read = options.read; - if (typeof options.destroy === 'function') this._destroy = options.destroy; - } - Stream.call(this); -} -Object.defineProperty(Readable.prototype, 'destroyed', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - if (this._readableState === undefined) { - return false; - } - return this._readableState.destroyed; - }, - set: function set(value) { - // we ignore the value if the stream - // has not been initialized yet - if (!this._readableState) { - return; - } - - // backward compatibility, the user is explicitly - // managing destroyed - this._readableState.destroyed = value; - } -}); -Readable.prototype.destroy = destroyImpl.destroy; -Readable.prototype._undestroy = destroyImpl.undestroy; -Readable.prototype._destroy = function (err, cb) { - cb(err); -}; - -// Manually shove something into the read() buffer. -// This returns true if the highWaterMark has not been hit yet, -// similar to how Writable.write() returns true if you should -// write() some more. -Readable.prototype.push = function (chunk, encoding) { - var state = this._readableState; - var skipChunkCheck; - if (!state.objectMode) { - if (typeof chunk === 'string') { - encoding = encoding || state.defaultEncoding; - if (encoding !== state.encoding) { - chunk = Buffer.from(chunk, encoding); - encoding = ''; - } - skipChunkCheck = true; - } - } else { - skipChunkCheck = true; - } - return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); -}; - -// Unshift should *always* be something directly out of read() -Readable.prototype.unshift = function (chunk) { - return readableAddChunk(this, chunk, null, true, false); -}; -function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { - debug('readableAddChunk', chunk); - var state = stream._readableState; - if (chunk === null) { - state.reading = false; - onEofChunk(stream, state); - } else { - var er; - if (!skipChunkCheck) er = chunkInvalid(state, chunk); - if (er) { - errorOrDestroy(stream, er); - } else if (state.objectMode || chunk && chunk.length > 0) { - if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { - chunk = _uint8ArrayToBuffer(chunk); - } - if (addToFront) { - if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true); - } else if (state.ended) { - errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF()); - } else if (state.destroyed) { - return false; - } else { - state.reading = false; - if (state.decoder && !encoding) { - chunk = state.decoder.write(chunk); - if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state); - } else { - addChunk(stream, state, chunk, false); - } - } - } else if (!addToFront) { - state.reading = false; - maybeReadMore(stream, state); - } - } - - // We can push more data if we are below the highWaterMark. - // Also, if we have no data yet, we can stand some more bytes. - // This is to work around cases where hwm=0, such as the repl. - return !state.ended && (state.length < state.highWaterMark || state.length === 0); -} -function addChunk(stream, state, chunk, addToFront) { - if (state.flowing && state.length === 0 && !state.sync) { - state.awaitDrain = 0; - stream.emit('data', chunk); - } else { - // update the buffer info. - state.length += state.objectMode ? 1 : chunk.length; - if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); - if (state.needReadable) emitReadable(stream); - } - maybeReadMore(stream, state); -} -function chunkInvalid(state, chunk) { - var er; - if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { - er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk); - } - return er; -} -Readable.prototype.isPaused = function () { - return this._readableState.flowing === false; -}; - -// backwards compatibility. -Readable.prototype.setEncoding = function (enc) { - if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder; - var decoder = new StringDecoder(enc); - this._readableState.decoder = decoder; - // If setEncoding(null), decoder.encoding equals utf8 - this._readableState.encoding = this._readableState.decoder.encoding; - - // Iterate over current buffer to convert already stored Buffers: - var p = this._readableState.buffer.head; - var content = ''; - while (p !== null) { - content += decoder.write(p.data); - p = p.next; - } - this._readableState.buffer.clear(); - if (content !== '') this._readableState.buffer.push(content); - this._readableState.length = content.length; - return this; -}; - -// Don't raise the hwm > 1GB -var MAX_HWM = 0x40000000; -function computeNewHighWaterMark(n) { - if (n >= MAX_HWM) { - // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE. - n = MAX_HWM; - } else { - // Get the next highest power of 2 to prevent increasing hwm excessively in - // tiny amounts - n--; - n |= n >>> 1; - n |= n >>> 2; - n |= n >>> 4; - n |= n >>> 8; - n |= n >>> 16; - n++; - } - return n; -} - -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function howMuchToRead(n, state) { - if (n <= 0 || state.length === 0 && state.ended) return 0; - if (state.objectMode) return 1; - if (n !== n) { - // Only flow one buffer at a time - if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; - } - // If we're asking for more than the current hwm, then raise the hwm. - if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); - if (n <= state.length) return n; - // Don't have enough - if (!state.ended) { - state.needReadable = true; - return 0; - } - return state.length; -} - -// you can override either this method, or the async _read(n) below. -Readable.prototype.read = function (n) { - debug('read', n); - n = parseInt(n, 10); - var state = this._readableState; - var nOrig = n; - if (n !== 0) state.emittedReadable = false; - - // if we're doing read(0) to trigger a readable event, but we - // already have a bunch of data in the buffer, then just trigger - // the 'readable' event and move on. - if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) { - debug('read: emitReadable', state.length, state.ended); - if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); - return null; - } - n = howMuchToRead(n, state); - - // if we've ended, and we're now clear, then finish it up. - if (n === 0 && state.ended) { - if (state.length === 0) endReadable(this); - return null; - } - - // All the actual chunk generation logic needs to be - // *below* the call to _read. The reason is that in certain - // synthetic stream cases, such as passthrough streams, _read - // may be a completely synchronous operation which may change - // the state of the read buffer, providing enough data when - // before there was *not* enough. - // - // So, the steps are: - // 1. Figure out what the state of things will be after we do - // a read from the buffer. - // - // 2. If that resulting state will trigger a _read, then call _read. - // Note that this may be asynchronous, or synchronous. Yes, it is - // deeply ugly to write APIs this way, but that still doesn't mean - // that the Readable class should behave improperly, as streams are - // designed to be sync/async agnostic. - // Take note if the _read call is sync or async (ie, if the read call - // has returned yet), so that we know whether or not it's safe to emit - // 'readable' etc. - // - // 3. Actually pull the requested chunks out of the buffer and return. - - // if we need a readable event, then we need to do some reading. - var doRead = state.needReadable; - debug('need readable', doRead); - - // if we currently have less than the highWaterMark, then also read some - if (state.length === 0 || state.length - n < state.highWaterMark) { - doRead = true; - debug('length less than watermark', doRead); - } - - // however, if we've ended, then there's no point, and if we're already - // reading, then it's unnecessary. - if (state.ended || state.reading) { - doRead = false; - debug('reading or ended', doRead); - } else if (doRead) { - debug('do read'); - state.reading = true; - state.sync = true; - // if the length is currently zero, then we *need* a readable event. - if (state.length === 0) state.needReadable = true; - // call internal read method - this._read(state.highWaterMark); - state.sync = false; - // If _read pushed data synchronously, then `reading` will be false, - // and we need to re-evaluate how much data we can return to the user. - if (!state.reading) n = howMuchToRead(nOrig, state); - } - var ret; - if (n > 0) ret = fromList(n, state);else ret = null; - if (ret === null) { - state.needReadable = state.length <= state.highWaterMark; - n = 0; - } else { - state.length -= n; - state.awaitDrain = 0; - } - if (state.length === 0) { - // If we have nothing in the buffer, then we want to know - // as soon as we *do* get something into the buffer. - if (!state.ended) state.needReadable = true; - - // If we tried to read() past the EOF, then emit end on the next tick. - if (nOrig !== n && state.ended) endReadable(this); - } - if (ret !== null) this.emit('data', ret); - return ret; -}; -function onEofChunk(stream, state) { - debug('onEofChunk'); - if (state.ended) return; - if (state.decoder) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) { - state.buffer.push(chunk); - state.length += state.objectMode ? 1 : chunk.length; - } - } - state.ended = true; - if (state.sync) { - // if we are sync, wait until next tick to emit the data. - // Otherwise we risk emitting data in the flow() - // the readable code triggers during a read() call - emitReadable(stream); - } else { - // emit 'readable' now to make sure it gets picked up. - state.needReadable = false; - if (!state.emittedReadable) { - state.emittedReadable = true; - emitReadable_(stream); - } - } -} - -// Don't emit readable right away in sync mode, because this can trigger -// another read() call => stack overflow. This way, it might trigger -// a nextTick recursion warning, but that's not so bad. -function emitReadable(stream) { - var state = stream._readableState; - debug('emitReadable', state.needReadable, state.emittedReadable); - state.needReadable = false; - if (!state.emittedReadable) { - debug('emitReadable', state.flowing); - state.emittedReadable = true; - process.nextTick(emitReadable_, stream); - } -} -function emitReadable_(stream) { - var state = stream._readableState; - debug('emitReadable_', state.destroyed, state.length, state.ended); - if (!state.destroyed && (state.length || state.ended)) { - stream.emit('readable'); - state.emittedReadable = false; - } - - // The stream needs another readable event if - // 1. It is not flowing, as the flow mechanism will take - // care of it. - // 2. It is not ended. - // 3. It is below the highWaterMark, so we can schedule - // another readable later. - state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark; - flow(stream); -} - -// at this point, the user has presumably seen the 'readable' event, -// and called read() to consume some data. that may have triggered -// in turn another _read(n) call, in which case reading = true if -// it's in progress. -// However, if we're not ended, or reading, and the length < hwm, -// then go ahead and try to read some more preemptively. -function maybeReadMore(stream, state) { - if (!state.readingMore) { - state.readingMore = true; - process.nextTick(maybeReadMore_, stream, state); - } -} -function maybeReadMore_(stream, state) { - // Attempt to read more data if we should. - // - // The conditions for reading more data are (one of): - // - Not enough data buffered (state.length < state.highWaterMark). The loop - // is responsible for filling the buffer with enough data if such data - // is available. If highWaterMark is 0 and we are not in the flowing mode - // we should _not_ attempt to buffer any extra data. We'll get more data - // when the stream consumer calls read() instead. - // - No data in the buffer, and the stream is in flowing mode. In this mode - // the loop below is responsible for ensuring read() is called. Failing to - // call read here would abort the flow and there's no other mechanism for - // continuing the flow if the stream consumer has just subscribed to the - // 'data' event. - // - // In addition to the above conditions to keep reading data, the following - // conditions prevent the data from being read: - // - The stream has ended (state.ended). - // - There is already a pending 'read' operation (state.reading). This is a - // case where the the stream has called the implementation defined _read() - // method, but they are processing the call asynchronously and have _not_ - // called push() with new data. In this case we skip performing more - // read()s. The execution ends in this method again after the _read() ends - // up calling push() with more data. - while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) { - var len = state.length; - debug('maybeReadMore read 0'); - stream.read(0); - if (len === state.length) - // didn't get any data, stop spinning. - break; - } - state.readingMore = false; -} - -// abstract method. to be overridden in specific implementation classes. -// call cb(er, data) where data is <= n in length. -// for virtual (non-string, non-buffer) streams, "length" is somewhat -// arbitrary, and perhaps not very meaningful. -Readable.prototype._read = function (n) { - errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()')); -}; -Readable.prototype.pipe = function (dest, pipeOpts) { - var src = this; - var state = this._readableState; - switch (state.pipesCount) { - case 0: - state.pipes = dest; - break; - case 1: - state.pipes = [state.pipes, dest]; - break; - default: - state.pipes.push(dest); - break; - } - state.pipesCount += 1; - debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); - var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; - var endFn = doEnd ? onend : unpipe; - if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn); - dest.on('unpipe', onunpipe); - function onunpipe(readable, unpipeInfo) { - debug('onunpipe'); - if (readable === src) { - if (unpipeInfo && unpipeInfo.hasUnpiped === false) { - unpipeInfo.hasUnpiped = true; - cleanup(); - } - } - } - function onend() { - debug('onend'); - dest.end(); - } - - // when the dest drains, it reduces the awaitDrain counter - // on the source. This would be more elegant with a .once() - // handler in flow(), but adding and removing repeatedly is - // too slow. - var ondrain = pipeOnDrain(src); - dest.on('drain', ondrain); - var cleanedUp = false; - function cleanup() { - debug('cleanup'); - // cleanup event handlers once the pipe is broken - dest.removeListener('close', onclose); - dest.removeListener('finish', onfinish); - dest.removeListener('drain', ondrain); - dest.removeListener('error', onerror); - dest.removeListener('unpipe', onunpipe); - src.removeListener('end', onend); - src.removeListener('end', unpipe); - src.removeListener('data', ondata); - cleanedUp = true; - - // if the reader is waiting for a drain event from this - // specific writer, then it would cause it to never start - // flowing again. - // So, if this is awaiting a drain, then we just call it now. - // If we don't know, then assume that we are waiting for one. - if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); - } - src.on('data', ondata); - function ondata(chunk) { - debug('ondata'); - var ret = dest.write(chunk); - debug('dest.write', ret); - if (ret === false) { - // If the user unpiped during `dest.write()`, it is possible - // to get stuck in a permanently paused state if that write - // also returned false. - // => Check whether `dest` is still a piping destination. - if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { - debug('false write response, pause', state.awaitDrain); - state.awaitDrain++; - } - src.pause(); - } - } - - // if the dest has an error, then stop piping into it. - // however, don't suppress the throwing behavior for this. - function onerror(er) { - debug('onerror', er); - unpipe(); - dest.removeListener('error', onerror); - if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er); - } - - // Make sure our error handler is attached before userland ones. - prependListener(dest, 'error', onerror); - - // Both close and finish should trigger unpipe, but only once. - function onclose() { - dest.removeListener('finish', onfinish); - unpipe(); - } - dest.once('close', onclose); - function onfinish() { - debug('onfinish'); - dest.removeListener('close', onclose); - unpipe(); - } - dest.once('finish', onfinish); - function unpipe() { - debug('unpipe'); - src.unpipe(dest); - } - - // tell the dest that it's being piped to - dest.emit('pipe', src); - - // start the flow if it hasn't been started already. - if (!state.flowing) { - debug('pipe resume'); - src.resume(); - } - return dest; -}; -function pipeOnDrain(src) { - return function pipeOnDrainFunctionResult() { - var state = src._readableState; - debug('pipeOnDrain', state.awaitDrain); - if (state.awaitDrain) state.awaitDrain--; - if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { - state.flowing = true; - flow(src); - } - }; -} -Readable.prototype.unpipe = function (dest) { - var state = this._readableState; - var unpipeInfo = { - hasUnpiped: false - }; - - // if we're not piping anywhere, then do nothing. - if (state.pipesCount === 0) return this; - - // just one destination. most common case. - if (state.pipesCount === 1) { - // passed in one, but it's not the right one. - if (dest && dest !== state.pipes) return this; - if (!dest) dest = state.pipes; - - // got a match. - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - if (dest) dest.emit('unpipe', this, unpipeInfo); - return this; - } - - // slow case. multiple pipe destinations. - - if (!dest) { - // remove all. - var dests = state.pipes; - var len = state.pipesCount; - state.pipes = null; - state.pipesCount = 0; - state.flowing = false; - for (var i = 0; i < len; i++) dests[i].emit('unpipe', this, { - hasUnpiped: false - }); - return this; - } - - // try to find the right one. - var index = indexOf(state.pipes, dest); - if (index === -1) return this; - state.pipes.splice(index, 1); - state.pipesCount -= 1; - if (state.pipesCount === 1) state.pipes = state.pipes[0]; - dest.emit('unpipe', this, unpipeInfo); - return this; -}; - -// set up data events if they are asked for -// Ensure readable listeners eventually get something -Readable.prototype.on = function (ev, fn) { - var res = Stream.prototype.on.call(this, ev, fn); - var state = this._readableState; - if (ev === 'data') { - // update readableListening so that resume() may be a no-op - // a few lines down. This is needed to support once('readable'). - state.readableListening = this.listenerCount('readable') > 0; - - // Try start flowing on next tick if stream isn't explicitly paused - if (state.flowing !== false) this.resume(); - } else if (ev === 'readable') { - if (!state.endEmitted && !state.readableListening) { - state.readableListening = state.needReadable = true; - state.flowing = false; - state.emittedReadable = false; - debug('on readable', state.length, state.reading); - if (state.length) { - emitReadable(this); - } else if (!state.reading) { - process.nextTick(nReadingNextTick, this); - } - } - } - return res; -}; -Readable.prototype.addListener = Readable.prototype.on; -Readable.prototype.removeListener = function (ev, fn) { - var res = Stream.prototype.removeListener.call(this, ev, fn); - if (ev === 'readable') { - // We need to check if there is someone still listening to - // readable and reset the state. However this needs to happen - // after readable has been emitted but before I/O (nextTick) to - // support once('readable', fn) cycles. This means that calling - // resume within the same tick will have no - // effect. - process.nextTick(updateReadableListening, this); - } - return res; -}; -Readable.prototype.removeAllListeners = function (ev) { - var res = Stream.prototype.removeAllListeners.apply(this, arguments); - if (ev === 'readable' || ev === undefined) { - // We need to check if there is someone still listening to - // readable and reset the state. However this needs to happen - // after readable has been emitted but before I/O (nextTick) to - // support once('readable', fn) cycles. This means that calling - // resume within the same tick will have no - // effect. - process.nextTick(updateReadableListening, this); - } - return res; -}; -function updateReadableListening(self) { - var state = self._readableState; - state.readableListening = self.listenerCount('readable') > 0; - if (state.resumeScheduled && !state.paused) { - // flowing needs to be set to true now, otherwise - // the upcoming resume will not flow. - state.flowing = true; - - // crude way to check if we should resume - } else if (self.listenerCount('data') > 0) { - self.resume(); - } -} -function nReadingNextTick(self) { - debug('readable nexttick read 0'); - self.read(0); -} - -// pause() and resume() are remnants of the legacy readable stream API -// If the user uses them, then switch into old mode. -Readable.prototype.resume = function () { - var state = this._readableState; - if (!state.flowing) { - debug('resume'); - // we flow only if there is no one listening - // for readable, but we still have to call - // resume() - state.flowing = !state.readableListening; - resume(this, state); - } - state.paused = false; - return this; -}; -function resume(stream, state) { - if (!state.resumeScheduled) { - state.resumeScheduled = true; - process.nextTick(resume_, stream, state); - } -} -function resume_(stream, state) { - debug('resume', state.reading); - if (!state.reading) { - stream.read(0); - } - state.resumeScheduled = false; - stream.emit('resume'); - flow(stream); - if (state.flowing && !state.reading) stream.read(0); -} -Readable.prototype.pause = function () { - debug('call pause flowing=%j', this._readableState.flowing); - if (this._readableState.flowing !== false) { - debug('pause'); - this._readableState.flowing = false; - this.emit('pause'); - } - this._readableState.paused = true; - return this; -}; -function flow(stream) { - var state = stream._readableState; - debug('flow', state.flowing); - while (state.flowing && stream.read() !== null); -} - -// wrap an old-style stream as the async data source. -// This is *not* part of the readable stream interface. -// It is an ugly unfortunate mess of history. -Readable.prototype.wrap = function (stream) { - var _this = this; - var state = this._readableState; - var paused = false; - stream.on('end', function () { - debug('wrapped end'); - if (state.decoder && !state.ended) { - var chunk = state.decoder.end(); - if (chunk && chunk.length) _this.push(chunk); - } - _this.push(null); - }); - stream.on('data', function (chunk) { - debug('wrapped data'); - if (state.decoder) chunk = state.decoder.write(chunk); - - // don't skip over falsy values in objectMode - if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; - var ret = _this.push(chunk); - if (!ret) { - paused = true; - stream.pause(); - } - }); - - // proxy all the other methods. - // important when wrapping filters and duplexes. - for (var i in stream) { - if (this[i] === undefined && typeof stream[i] === 'function') { - this[i] = function methodWrap(method) { - return function methodWrapReturnFunction() { - return stream[method].apply(stream, arguments); - }; - }(i); - } - } - - // proxy certain important events. - for (var n = 0; n < kProxyEvents.length; n++) { - stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); - } - - // when we try to consume some more bytes, simply unpause the - // underlying stream. - this._read = function (n) { - debug('wrapped _read', n); - if (paused) { - paused = false; - stream.resume(); - } - }; - return this; -}; -if (typeof Symbol === 'function') { - Readable.prototype[Symbol.asyncIterator] = function () { - if (createReadableStreamAsyncIterator === undefined) { - createReadableStreamAsyncIterator = require('./internal/streams/async_iterator'); - } - return createReadableStreamAsyncIterator(this); - }; -} -Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._readableState.highWaterMark; - } -}); -Object.defineProperty(Readable.prototype, 'readableBuffer', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._readableState && this._readableState.buffer; - } -}); -Object.defineProperty(Readable.prototype, 'readableFlowing', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._readableState.flowing; - }, - set: function set(state) { - if (this._readableState) { - this._readableState.flowing = state; - } - } -}); - -// exposed for testing purposes only. -Readable._fromList = fromList; -Object.defineProperty(Readable.prototype, 'readableLength', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._readableState.length; - } -}); - -// Pluck off n bytes from an array of buffers. -// Length is the combined lengths of all the buffers in the list. -// This function is designed to be inlinable, so please take care when making -// changes to the function body. -function fromList(n, state) { - // nothing buffered - if (state.length === 0) return null; - var ret; - if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { - // read it all, truncate the list - if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length); - state.buffer.clear(); - } else { - // read part of list - ret = state.buffer.consume(n, state.decoder); - } - return ret; -} -function endReadable(stream) { - var state = stream._readableState; - debug('endReadable', state.endEmitted); - if (!state.endEmitted) { - state.ended = true; - process.nextTick(endReadableNT, state, stream); - } -} -function endReadableNT(state, stream) { - debug('endReadableNT', state.endEmitted, state.length); - - // Check that we didn't get one last unshift. - if (!state.endEmitted && state.length === 0) { - state.endEmitted = true; - stream.readable = false; - stream.emit('end'); - if (state.autoDestroy) { - // In case of duplex streams we need a way to detect - // if the writable side is ready for autoDestroy as well - var wState = stream._writableState; - if (!wState || wState.autoDestroy && wState.finished) { - stream.destroy(); - } - } - } -} -if (typeof Symbol === 'function') { - Readable.from = function (iterable, opts) { - if (from === undefined) { - from = require('./internal/streams/from'); - } - return from(Readable, iterable, opts); - }; -} -function indexOf(xs, x) { - for (var i = 0, l = xs.length; i < l; i++) { - if (xs[i] === x) return i; - } - return -1; -} \ No newline at end of file diff --git a/WechatBot/node_modules/readable-stream/lib/_stream_transform.js b/WechatBot/node_modules/readable-stream/lib/_stream_transform.js deleted file mode 100755 index 1ccb7157b..000000000 --- a/WechatBot/node_modules/readable-stream/lib/_stream_transform.js +++ /dev/null @@ -1,190 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// a transform stream is a readable/writable stream where you do -// something with the data. Sometimes it's called a "filter", -// but that's not a great name for it, since that implies a thing where -// some bits pass through, and others are simply ignored. (That would -// be a valid example of a transform, of course.) -// -// While the output is causally related to the input, it's not a -// necessarily symmetric or synchronous transformation. For example, -// a zlib stream might take multiple plain-text writes(), and then -// emit a single compressed chunk some time in the future. -// -// Here's how this works: -// -// The Transform stream has all the aspects of the readable and writable -// stream classes. When you write(chunk), that calls _write(chunk,cb) -// internally, and returns false if there's a lot of pending writes -// buffered up. When you call read(), that calls _read(n) until -// there's enough pending readable data buffered up. -// -// In a transform stream, the written data is placed in a buffer. When -// _read(n) is called, it transforms the queued up data, calling the -// buffered _write cb's as it consumes chunks. If consuming a single -// written chunk would result in multiple output chunks, then the first -// outputted bit calls the readcb, and subsequent chunks just go into -// the read buffer, and will cause it to emit 'readable' if necessary. -// -// This way, back-pressure is actually determined by the reading side, -// since _read has to be called to start processing a new chunk. However, -// a pathological inflate type of transform can cause excessive buffering -// here. For example, imagine a stream where every byte of input is -// interpreted as an integer from 0-255, and then results in that many -// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in -// 1kb of data being output. In this case, you could write a very small -// amount of input, and end up with a very large amount of output. In -// such a pathological inflating mechanism, there'd be no way to tell -// the system to stop doing the transform. A single 4MB write could -// cause the system to run out of memory. -// -// However, even in such a pathological case, only a single written chunk -// would be consumed, and then the rest would wait (un-transformed) until -// the results of the previous transformed chunk were consumed. - -'use strict'; - -module.exports = Transform; -var _require$codes = require('../errors').codes, - ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, - ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, - ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING, - ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0; -var Duplex = require('./_stream_duplex'); -require('inherits')(Transform, Duplex); -function afterTransform(er, data) { - var ts = this._transformState; - ts.transforming = false; - var cb = ts.writecb; - if (cb === null) { - return this.emit('error', new ERR_MULTIPLE_CALLBACK()); - } - ts.writechunk = null; - ts.writecb = null; - if (data != null) - // single equals check for both `null` and `undefined` - this.push(data); - cb(er); - var rs = this._readableState; - rs.reading = false; - if (rs.needReadable || rs.length < rs.highWaterMark) { - this._read(rs.highWaterMark); - } -} -function Transform(options) { - if (!(this instanceof Transform)) return new Transform(options); - Duplex.call(this, options); - this._transformState = { - afterTransform: afterTransform.bind(this), - needTransform: false, - transforming: false, - writecb: null, - writechunk: null, - writeencoding: null - }; - - // start out asking for a readable event once data is transformed. - this._readableState.needReadable = true; - - // we have implemented the _read method, and done the other things - // that Readable wants before the first _read call, so unset the - // sync guard flag. - this._readableState.sync = false; - if (options) { - if (typeof options.transform === 'function') this._transform = options.transform; - if (typeof options.flush === 'function') this._flush = options.flush; - } - - // When the writable side finishes, then flush out anything remaining. - this.on('prefinish', prefinish); -} -function prefinish() { - var _this = this; - if (typeof this._flush === 'function' && !this._readableState.destroyed) { - this._flush(function (er, data) { - done(_this, er, data); - }); - } else { - done(this, null, null); - } -} -Transform.prototype.push = function (chunk, encoding) { - this._transformState.needTransform = false; - return Duplex.prototype.push.call(this, chunk, encoding); -}; - -// This is the part where you do stuff! -// override this function in implementation classes. -// 'chunk' is an input chunk. -// -// Call `push(newChunk)` to pass along transformed output -// to the readable side. You may call 'push' zero or more times. -// -// Call `cb(err)` when you are done with this chunk. If you pass -// an error, then that'll put the hurt on the whole operation. If you -// never call cb(), then you'll never get another chunk. -Transform.prototype._transform = function (chunk, encoding, cb) { - cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()')); -}; -Transform.prototype._write = function (chunk, encoding, cb) { - var ts = this._transformState; - ts.writecb = cb; - ts.writechunk = chunk; - ts.writeencoding = encoding; - if (!ts.transforming) { - var rs = this._readableState; - if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); - } -}; - -// Doesn't matter what the args are here. -// _transform does all the work. -// That we got here means that the readable side wants more data. -Transform.prototype._read = function (n) { - var ts = this._transformState; - if (ts.writechunk !== null && !ts.transforming) { - ts.transforming = true; - this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); - } else { - // mark that we need a transform, so that any data that comes in - // will get processed, now that we've asked for it. - ts.needTransform = true; - } -}; -Transform.prototype._destroy = function (err, cb) { - Duplex.prototype._destroy.call(this, err, function (err2) { - cb(err2); - }); -}; -function done(stream, er, data) { - if (er) return stream.emit('error', er); - if (data != null) - // single equals check for both `null` and `undefined` - stream.push(data); - - // TODO(BridgeAR): Write a test for these two error cases - // if there's nothing in the write buffer, then that means - // that nothing more will ever be provided - if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0(); - if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING(); - return stream.push(null); -} \ No newline at end of file diff --git a/WechatBot/node_modules/readable-stream/lib/_stream_writable.js b/WechatBot/node_modules/readable-stream/lib/_stream_writable.js deleted file mode 100755 index 292415e23..000000000 --- a/WechatBot/node_modules/readable-stream/lib/_stream_writable.js +++ /dev/null @@ -1,641 +0,0 @@ -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. - -// A bit simpler than readable streams. -// Implement an async ._write(chunk, encoding, cb), and it'll handle all -// the drain event emission and buffering. - -'use strict'; - -module.exports = Writable; - -/* */ -function WriteReq(chunk, encoding, cb) { - this.chunk = chunk; - this.encoding = encoding; - this.callback = cb; - this.next = null; -} - -// It seems a linked list but it is not -// there will be only 2 of these for each stream -function CorkedRequest(state) { - var _this = this; - this.next = null; - this.entry = null; - this.finish = function () { - onCorkedFinish(_this, state); - }; -} -/* */ - -/**/ -var Duplex; -/**/ - -Writable.WritableState = WritableState; - -/**/ -var internalUtil = { - deprecate: require('util-deprecate') -}; -/**/ - -/**/ -var Stream = require('./internal/streams/stream'); -/**/ - -var Buffer = require('buffer').Buffer; -var OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {}; -function _uint8ArrayToBuffer(chunk) { - return Buffer.from(chunk); -} -function _isUint8Array(obj) { - return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; -} -var destroyImpl = require('./internal/streams/destroy'); -var _require = require('./internal/streams/state'), - getHighWaterMark = _require.getHighWaterMark; -var _require$codes = require('../errors').codes, - ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, - ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, - ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, - ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE, - ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED, - ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES, - ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END, - ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING; -var errorOrDestroy = destroyImpl.errorOrDestroy; -require('inherits')(Writable, Stream); -function nop() {} -function WritableState(options, stream, isDuplex) { - Duplex = Duplex || require('./_stream_duplex'); - options = options || {}; - - // Duplex streams are both readable and writable, but share - // the same options object. - // However, some cases require setting options to different - // values for the readable and the writable sides of the duplex stream, - // e.g. options.readableObjectMode vs. options.writableObjectMode, etc. - if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; - - // object stream flag to indicate whether or not this stream - // contains buffers or objects. - this.objectMode = !!options.objectMode; - if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; - - // the point at which write() starts returning false - // Note: 0 is a valid value, means that we always return false if - // the entire buffer is not flushed immediately on write() - this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); - - // if _final has been called - this.finalCalled = false; - - // drain event flag. - this.needDrain = false; - // at the start of calling end() - this.ending = false; - // when end() has been called, and returned - this.ended = false; - // when 'finish' is emitted - this.finished = false; - - // has it been destroyed - this.destroyed = false; - - // should we decode strings into buffers before passing to _write? - // this is here so that some node-core streams can optimize string - // handling at a lower level. - var noDecode = options.decodeStrings === false; - this.decodeStrings = !noDecode; - - // Crypto is kind of old and crusty. Historically, its default string - // encoding is 'binary' so we have to make this configurable. - // Everything else in the universe uses 'utf8', though. - this.defaultEncoding = options.defaultEncoding || 'utf8'; - - // not an actual buffer we keep track of, but a measurement - // of how much we're waiting to get pushed to some underlying - // socket or file. - this.length = 0; - - // a flag to see when we're in the middle of a write. - this.writing = false; - - // when true all writes will be buffered until .uncork() call - this.corked = 0; - - // a flag to be able to tell if the onwrite cb is called immediately, - // or on a later tick. We set this to true at first, because any - // actions that shouldn't happen until "later" should generally also - // not happen before the first write call. - this.sync = true; - - // a flag to know if we're processing previously buffered items, which - // may call the _write() callback in the same tick, so that we don't - // end up in an overlapped onwrite situation. - this.bufferProcessing = false; - - // the callback that's passed to _write(chunk,cb) - this.onwrite = function (er) { - onwrite(stream, er); - }; - - // the callback that the user supplies to write(chunk,encoding,cb) - this.writecb = null; - - // the amount that is being written when _write is called. - this.writelen = 0; - this.bufferedRequest = null; - this.lastBufferedRequest = null; - - // number of pending user-supplied write callbacks - // this must be 0 before 'finish' can be emitted - this.pendingcb = 0; - - // emit prefinish if the only thing we're waiting for is _write cbs - // This is relevant for synchronous Transform streams - this.prefinished = false; - - // True if the error was already emitted and should not be thrown again - this.errorEmitted = false; - - // Should close be emitted on destroy. Defaults to true. - this.emitClose = options.emitClose !== false; - - // Should .destroy() be called after 'finish' (and potentially 'end') - this.autoDestroy = !!options.autoDestroy; - - // count buffered requests - this.bufferedRequestCount = 0; - - // allocate the first CorkedRequest, there is always - // one allocated and free to use, and we maintain at most two - this.corkedRequestsFree = new CorkedRequest(this); -} -WritableState.prototype.getBuffer = function getBuffer() { - var current = this.bufferedRequest; - var out = []; - while (current) { - out.push(current); - current = current.next; - } - return out; -}; -(function () { - try { - Object.defineProperty(WritableState.prototype, 'buffer', { - get: internalUtil.deprecate(function writableStateBufferGetter() { - return this.getBuffer(); - }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003') - }); - } catch (_) {} -})(); - -// Test _writableState for inheritance to account for Duplex streams, -// whose prototype chain only points to Readable. -var realHasInstance; -if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { - realHasInstance = Function.prototype[Symbol.hasInstance]; - Object.defineProperty(Writable, Symbol.hasInstance, { - value: function value(object) { - if (realHasInstance.call(this, object)) return true; - if (this !== Writable) return false; - return object && object._writableState instanceof WritableState; - } - }); -} else { - realHasInstance = function realHasInstance(object) { - return object instanceof this; - }; -} -function Writable(options) { - Duplex = Duplex || require('./_stream_duplex'); - - // Writable ctor is applied to Duplexes, too. - // `realHasInstance` is necessary because using plain `instanceof` - // would return false, as no `_writableState` property is attached. - - // Trying to use the custom `instanceof` for Writable here will also break the - // Node.js LazyTransform implementation, which has a non-trivial getter for - // `_writableState` that would lead to infinite recursion. - - // Checking for a Stream.Duplex instance is faster here instead of inside - // the WritableState constructor, at least with V8 6.5 - var isDuplex = this instanceof Duplex; - if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options); - this._writableState = new WritableState(options, this, isDuplex); - - // legacy. - this.writable = true; - if (options) { - if (typeof options.write === 'function') this._write = options.write; - if (typeof options.writev === 'function') this._writev = options.writev; - if (typeof options.destroy === 'function') this._destroy = options.destroy; - if (typeof options.final === 'function') this._final = options.final; - } - Stream.call(this); -} - -// Otherwise people can pipe Writable streams, which is just wrong. -Writable.prototype.pipe = function () { - errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE()); -}; -function writeAfterEnd(stream, cb) { - var er = new ERR_STREAM_WRITE_AFTER_END(); - // TODO: defer error events consistently everywhere, not just the cb - errorOrDestroy(stream, er); - process.nextTick(cb, er); -} - -// Checks that a user-supplied chunk is valid, especially for the particular -// mode the stream is in. Currently this means that `null` is never accepted -// and undefined/non-string values are only allowed in object mode. -function validChunk(stream, state, chunk, cb) { - var er; - if (chunk === null) { - er = new ERR_STREAM_NULL_VALUES(); - } else if (typeof chunk !== 'string' && !state.objectMode) { - er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk); - } - if (er) { - errorOrDestroy(stream, er); - process.nextTick(cb, er); - return false; - } - return true; -} -Writable.prototype.write = function (chunk, encoding, cb) { - var state = this._writableState; - var ret = false; - var isBuf = !state.objectMode && _isUint8Array(chunk); - if (isBuf && !Buffer.isBuffer(chunk)) { - chunk = _uint8ArrayToBuffer(chunk); - } - if (typeof encoding === 'function') { - cb = encoding; - encoding = null; - } - if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; - if (typeof cb !== 'function') cb = nop; - if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) { - state.pendingcb++; - ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); - } - return ret; -}; -Writable.prototype.cork = function () { - this._writableState.corked++; -}; -Writable.prototype.uncork = function () { - var state = this._writableState; - if (state.corked) { - state.corked--; - if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); - } -}; -Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { - // node::ParseEncoding() requires lower case. - if (typeof encoding === 'string') encoding = encoding.toLowerCase(); - if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding); - this._writableState.defaultEncoding = encoding; - return this; -}; -Object.defineProperty(Writable.prototype, 'writableBuffer', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState && this._writableState.getBuffer(); - } -}); -function decodeChunk(state, chunk, encoding) { - if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { - chunk = Buffer.from(chunk, encoding); - } - return chunk; -} -Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState.highWaterMark; - } -}); - -// if we're already writing something, then just put this -// in the queue, and wait our turn. Otherwise, call _write -// If we return false, then we need a drain event, so set that flag. -function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { - if (!isBuf) { - var newChunk = decodeChunk(state, chunk, encoding); - if (chunk !== newChunk) { - isBuf = true; - encoding = 'buffer'; - chunk = newChunk; - } - } - var len = state.objectMode ? 1 : chunk.length; - state.length += len; - var ret = state.length < state.highWaterMark; - // we must ensure that previous needDrain will not be reset to false. - if (!ret) state.needDrain = true; - if (state.writing || state.corked) { - var last = state.lastBufferedRequest; - state.lastBufferedRequest = { - chunk: chunk, - encoding: encoding, - isBuf: isBuf, - callback: cb, - next: null - }; - if (last) { - last.next = state.lastBufferedRequest; - } else { - state.bufferedRequest = state.lastBufferedRequest; - } - state.bufferedRequestCount += 1; - } else { - doWrite(stream, state, false, len, chunk, encoding, cb); - } - return ret; -} -function doWrite(stream, state, writev, len, chunk, encoding, cb) { - state.writelen = len; - state.writecb = cb; - state.writing = true; - state.sync = true; - if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); - state.sync = false; -} -function onwriteError(stream, state, sync, er, cb) { - --state.pendingcb; - if (sync) { - // defer the callback if we are being called synchronously - // to avoid piling up things on the stack - process.nextTick(cb, er); - // this can emit finish, and it will always happen - // after error - process.nextTick(finishMaybe, stream, state); - stream._writableState.errorEmitted = true; - errorOrDestroy(stream, er); - } else { - // the caller expect this to happen before if - // it is async - cb(er); - stream._writableState.errorEmitted = true; - errorOrDestroy(stream, er); - // this can emit finish, but finish must - // always follow error - finishMaybe(stream, state); - } -} -function onwriteStateUpdate(state) { - state.writing = false; - state.writecb = null; - state.length -= state.writelen; - state.writelen = 0; -} -function onwrite(stream, er) { - var state = stream._writableState; - var sync = state.sync; - var cb = state.writecb; - if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK(); - onwriteStateUpdate(state); - if (er) onwriteError(stream, state, sync, er, cb);else { - // Check if we're actually ready to finish, but don't emit yet - var finished = needFinish(state) || stream.destroyed; - if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { - clearBuffer(stream, state); - } - if (sync) { - process.nextTick(afterWrite, stream, state, finished, cb); - } else { - afterWrite(stream, state, finished, cb); - } - } -} -function afterWrite(stream, state, finished, cb) { - if (!finished) onwriteDrain(stream, state); - state.pendingcb--; - cb(); - finishMaybe(stream, state); -} - -// Must force callback to be called on nextTick, so that we don't -// emit 'drain' before the write() consumer gets the 'false' return -// value, and has a chance to attach a 'drain' listener. -function onwriteDrain(stream, state) { - if (state.length === 0 && state.needDrain) { - state.needDrain = false; - stream.emit('drain'); - } -} - -// if there's something in the buffer waiting, then process it -function clearBuffer(stream, state) { - state.bufferProcessing = true; - var entry = state.bufferedRequest; - if (stream._writev && entry && entry.next) { - // Fast case, write everything using _writev() - var l = state.bufferedRequestCount; - var buffer = new Array(l); - var holder = state.corkedRequestsFree; - holder.entry = entry; - var count = 0; - var allBuffers = true; - while (entry) { - buffer[count] = entry; - if (!entry.isBuf) allBuffers = false; - entry = entry.next; - count += 1; - } - buffer.allBuffers = allBuffers; - doWrite(stream, state, true, state.length, buffer, '', holder.finish); - - // doWrite is almost always async, defer these to save a bit of time - // as the hot path ends with doWrite - state.pendingcb++; - state.lastBufferedRequest = null; - if (holder.next) { - state.corkedRequestsFree = holder.next; - holder.next = null; - } else { - state.corkedRequestsFree = new CorkedRequest(state); - } - state.bufferedRequestCount = 0; - } else { - // Slow case, write chunks one-by-one - while (entry) { - var chunk = entry.chunk; - var encoding = entry.encoding; - var cb = entry.callback; - var len = state.objectMode ? 1 : chunk.length; - doWrite(stream, state, false, len, chunk, encoding, cb); - entry = entry.next; - state.bufferedRequestCount--; - // if we didn't call the onwrite immediately, then - // it means that we need to wait until it does. - // also, that means that the chunk and cb are currently - // being processed, so move the buffer counter past them. - if (state.writing) { - break; - } - } - if (entry === null) state.lastBufferedRequest = null; - } - state.bufferedRequest = entry; - state.bufferProcessing = false; -} -Writable.prototype._write = function (chunk, encoding, cb) { - cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()')); -}; -Writable.prototype._writev = null; -Writable.prototype.end = function (chunk, encoding, cb) { - var state = this._writableState; - if (typeof chunk === 'function') { - cb = chunk; - chunk = null; - encoding = null; - } else if (typeof encoding === 'function') { - cb = encoding; - encoding = null; - } - if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); - - // .end() fully uncorks - if (state.corked) { - state.corked = 1; - this.uncork(); - } - - // ignore unnecessary end() calls. - if (!state.ending) endWritable(this, state, cb); - return this; -}; -Object.defineProperty(Writable.prototype, 'writableLength', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - return this._writableState.length; - } -}); -function needFinish(state) { - return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; -} -function callFinal(stream, state) { - stream._final(function (err) { - state.pendingcb--; - if (err) { - errorOrDestroy(stream, err); - } - state.prefinished = true; - stream.emit('prefinish'); - finishMaybe(stream, state); - }); -} -function prefinish(stream, state) { - if (!state.prefinished && !state.finalCalled) { - if (typeof stream._final === 'function' && !state.destroyed) { - state.pendingcb++; - state.finalCalled = true; - process.nextTick(callFinal, stream, state); - } else { - state.prefinished = true; - stream.emit('prefinish'); - } - } -} -function finishMaybe(stream, state) { - var need = needFinish(state); - if (need) { - prefinish(stream, state); - if (state.pendingcb === 0) { - state.finished = true; - stream.emit('finish'); - if (state.autoDestroy) { - // In case of duplex streams we need a way to detect - // if the readable side is ready for autoDestroy as well - var rState = stream._readableState; - if (!rState || rState.autoDestroy && rState.endEmitted) { - stream.destroy(); - } - } - } - } - return need; -} -function endWritable(stream, state, cb) { - state.ending = true; - finishMaybe(stream, state); - if (cb) { - if (state.finished) process.nextTick(cb);else stream.once('finish', cb); - } - state.ended = true; - stream.writable = false; -} -function onCorkedFinish(corkReq, state, err) { - var entry = corkReq.entry; - corkReq.entry = null; - while (entry) { - var cb = entry.callback; - state.pendingcb--; - cb(err); - entry = entry.next; - } - - // reuse the free corkReq. - state.corkedRequestsFree.next = corkReq; -} -Object.defineProperty(Writable.prototype, 'destroyed', { - // making it explicit this property is not enumerable - // because otherwise some prototype manipulation in - // userland will fail - enumerable: false, - get: function get() { - if (this._writableState === undefined) { - return false; - } - return this._writableState.destroyed; - }, - set: function set(value) { - // we ignore the value if the stream - // has not been initialized yet - if (!this._writableState) { - return; - } - - // backward compatibility, the user is explicitly - // managing destroyed - this._writableState.destroyed = value; - } -}); -Writable.prototype.destroy = destroyImpl.destroy; -Writable.prototype._undestroy = destroyImpl.undestroy; -Writable.prototype._destroy = function (err, cb) { - cb(err); -}; \ No newline at end of file diff --git a/WechatBot/node_modules/readable-stream/lib/internal/streams/async_iterator.js b/WechatBot/node_modules/readable-stream/lib/internal/streams/async_iterator.js deleted file mode 100755 index 742c5a467..000000000 --- a/WechatBot/node_modules/readable-stream/lib/internal/streams/async_iterator.js +++ /dev/null @@ -1,180 +0,0 @@ -'use strict'; - -var _Object$setPrototypeO; -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -var finished = require('./end-of-stream'); -var kLastResolve = Symbol('lastResolve'); -var kLastReject = Symbol('lastReject'); -var kError = Symbol('error'); -var kEnded = Symbol('ended'); -var kLastPromise = Symbol('lastPromise'); -var kHandlePromise = Symbol('handlePromise'); -var kStream = Symbol('stream'); -function createIterResult(value, done) { - return { - value: value, - done: done - }; -} -function readAndResolve(iter) { - var resolve = iter[kLastResolve]; - if (resolve !== null) { - var data = iter[kStream].read(); - // we defer if data is null - // we can be expecting either 'end' or - // 'error' - if (data !== null) { - iter[kLastPromise] = null; - iter[kLastResolve] = null; - iter[kLastReject] = null; - resolve(createIterResult(data, false)); - } - } -} -function onReadable(iter) { - // we wait for the next tick, because it might - // emit an error with process.nextTick - process.nextTick(readAndResolve, iter); -} -function wrapForNext(lastPromise, iter) { - return function (resolve, reject) { - lastPromise.then(function () { - if (iter[kEnded]) { - resolve(createIterResult(undefined, true)); - return; - } - iter[kHandlePromise](resolve, reject); - }, reject); - }; -} -var AsyncIteratorPrototype = Object.getPrototypeOf(function () {}); -var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = { - get stream() { - return this[kStream]; - }, - next: function next() { - var _this = this; - // if we have detected an error in the meanwhile - // reject straight away - var error = this[kError]; - if (error !== null) { - return Promise.reject(error); - } - if (this[kEnded]) { - return Promise.resolve(createIterResult(undefined, true)); - } - if (this[kStream].destroyed) { - // We need to defer via nextTick because if .destroy(err) is - // called, the error will be emitted via nextTick, and - // we cannot guarantee that there is no error lingering around - // waiting to be emitted. - return new Promise(function (resolve, reject) { - process.nextTick(function () { - if (_this[kError]) { - reject(_this[kError]); - } else { - resolve(createIterResult(undefined, true)); - } - }); - }); - } - - // if we have multiple next() calls - // we will wait for the previous Promise to finish - // this logic is optimized to support for await loops, - // where next() is only called once at a time - var lastPromise = this[kLastPromise]; - var promise; - if (lastPromise) { - promise = new Promise(wrapForNext(lastPromise, this)); - } else { - // fast path needed to support multiple this.push() - // without triggering the next() queue - var data = this[kStream].read(); - if (data !== null) { - return Promise.resolve(createIterResult(data, false)); - } - promise = new Promise(this[kHandlePromise]); - } - this[kLastPromise] = promise; - return promise; - } -}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () { - return this; -}), _defineProperty(_Object$setPrototypeO, "return", function _return() { - var _this2 = this; - // destroy(err, cb) is a private API - // we can guarantee we have that here, because we control the - // Readable class this is attached to - return new Promise(function (resolve, reject) { - _this2[kStream].destroy(null, function (err) { - if (err) { - reject(err); - return; - } - resolve(createIterResult(undefined, true)); - }); - }); -}), _Object$setPrototypeO), AsyncIteratorPrototype); -var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) { - var _Object$create; - var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, { - value: stream, - writable: true - }), _defineProperty(_Object$create, kLastResolve, { - value: null, - writable: true - }), _defineProperty(_Object$create, kLastReject, { - value: null, - writable: true - }), _defineProperty(_Object$create, kError, { - value: null, - writable: true - }), _defineProperty(_Object$create, kEnded, { - value: stream._readableState.endEmitted, - writable: true - }), _defineProperty(_Object$create, kHandlePromise, { - value: function value(resolve, reject) { - var data = iterator[kStream].read(); - if (data) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - resolve(createIterResult(data, false)); - } else { - iterator[kLastResolve] = resolve; - iterator[kLastReject] = reject; - } - }, - writable: true - }), _Object$create)); - iterator[kLastPromise] = null; - finished(stream, function (err) { - if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') { - var reject = iterator[kLastReject]; - // reject if we are waiting for data in the Promise - // returned by next() and store the error - if (reject !== null) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - reject(err); - } - iterator[kError] = err; - return; - } - var resolve = iterator[kLastResolve]; - if (resolve !== null) { - iterator[kLastPromise] = null; - iterator[kLastResolve] = null; - iterator[kLastReject] = null; - resolve(createIterResult(undefined, true)); - } - iterator[kEnded] = true; - }); - stream.on('readable', onReadable.bind(null, iterator)); - return iterator; -}; -module.exports = createReadableStreamAsyncIterator; \ No newline at end of file diff --git a/WechatBot/node_modules/readable-stream/lib/internal/streams/buffer_list.js b/WechatBot/node_modules/readable-stream/lib/internal/streams/buffer_list.js deleted file mode 100755 index 69bda497d..000000000 --- a/WechatBot/node_modules/readable-stream/lib/internal/streams/buffer_list.js +++ /dev/null @@ -1,183 +0,0 @@ -'use strict'; - -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -var _require = require('buffer'), - Buffer = _require.Buffer; -var _require2 = require('util'), - inspect = _require2.inspect; -var custom = inspect && inspect.custom || 'inspect'; -function copyBuffer(src, target, offset) { - Buffer.prototype.copy.call(src, target, offset); -} -module.exports = /*#__PURE__*/function () { - function BufferList() { - _classCallCheck(this, BufferList); - this.head = null; - this.tail = null; - this.length = 0; - } - _createClass(BufferList, [{ - key: "push", - value: function push(v) { - var entry = { - data: v, - next: null - }; - if (this.length > 0) this.tail.next = entry;else this.head = entry; - this.tail = entry; - ++this.length; - } - }, { - key: "unshift", - value: function unshift(v) { - var entry = { - data: v, - next: this.head - }; - if (this.length === 0) this.tail = entry; - this.head = entry; - ++this.length; - } - }, { - key: "shift", - value: function shift() { - if (this.length === 0) return; - var ret = this.head.data; - if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; - --this.length; - return ret; - } - }, { - key: "clear", - value: function clear() { - this.head = this.tail = null; - this.length = 0; - } - }, { - key: "join", - value: function join(s) { - if (this.length === 0) return ''; - var p = this.head; - var ret = '' + p.data; - while (p = p.next) ret += s + p.data; - return ret; - } - }, { - key: "concat", - value: function concat(n) { - if (this.length === 0) return Buffer.alloc(0); - var ret = Buffer.allocUnsafe(n >>> 0); - var p = this.head; - var i = 0; - while (p) { - copyBuffer(p.data, ret, i); - i += p.data.length; - p = p.next; - } - return ret; - } - - // Consumes a specified amount of bytes or characters from the buffered data. - }, { - key: "consume", - value: function consume(n, hasStrings) { - var ret; - if (n < this.head.data.length) { - // `slice` is the same for buffers and strings. - ret = this.head.data.slice(0, n); - this.head.data = this.head.data.slice(n); - } else if (n === this.head.data.length) { - // First chunk is a perfect match. - ret = this.shift(); - } else { - // Result spans more than one buffer. - ret = hasStrings ? this._getString(n) : this._getBuffer(n); - } - return ret; - } - }, { - key: "first", - value: function first() { - return this.head.data; - } - - // Consumes a specified amount of characters from the buffered data. - }, { - key: "_getString", - value: function _getString(n) { - var p = this.head; - var c = 1; - var ret = p.data; - n -= ret.length; - while (p = p.next) { - var str = p.data; - var nb = n > str.length ? str.length : n; - if (nb === str.length) ret += str;else ret += str.slice(0, n); - n -= nb; - if (n === 0) { - if (nb === str.length) { - ++c; - if (p.next) this.head = p.next;else this.head = this.tail = null; - } else { - this.head = p; - p.data = str.slice(nb); - } - break; - } - ++c; - } - this.length -= c; - return ret; - } - - // Consumes a specified amount of bytes from the buffered data. - }, { - key: "_getBuffer", - value: function _getBuffer(n) { - var ret = Buffer.allocUnsafe(n); - var p = this.head; - var c = 1; - p.data.copy(ret); - n -= p.data.length; - while (p = p.next) { - var buf = p.data; - var nb = n > buf.length ? buf.length : n; - buf.copy(ret, ret.length - n, 0, nb); - n -= nb; - if (n === 0) { - if (nb === buf.length) { - ++c; - if (p.next) this.head = p.next;else this.head = this.tail = null; - } else { - this.head = p; - p.data = buf.slice(nb); - } - break; - } - ++c; - } - this.length -= c; - return ret; - } - - // Make sure the linked list only shows the minimal necessary information. - }, { - key: custom, - value: function value(_, options) { - return inspect(this, _objectSpread(_objectSpread({}, options), {}, { - // Only inspect one level. - depth: 0, - // It should not recurse. - customInspect: false - })); - } - }]); - return BufferList; -}(); \ No newline at end of file diff --git a/WechatBot/node_modules/readable-stream/lib/internal/streams/destroy.js b/WechatBot/node_modules/readable-stream/lib/internal/streams/destroy.js deleted file mode 100755 index 31a17c4dc..000000000 --- a/WechatBot/node_modules/readable-stream/lib/internal/streams/destroy.js +++ /dev/null @@ -1,96 +0,0 @@ -'use strict'; - -// undocumented cb() API, needed for core, not for public API -function destroy(err, cb) { - var _this = this; - var readableDestroyed = this._readableState && this._readableState.destroyed; - var writableDestroyed = this._writableState && this._writableState.destroyed; - if (readableDestroyed || writableDestroyed) { - if (cb) { - cb(err); - } else if (err) { - if (!this._writableState) { - process.nextTick(emitErrorNT, this, err); - } else if (!this._writableState.errorEmitted) { - this._writableState.errorEmitted = true; - process.nextTick(emitErrorNT, this, err); - } - } - return this; - } - - // we set destroyed to true before firing error callbacks in order - // to make it re-entrance safe in case destroy() is called within callbacks - - if (this._readableState) { - this._readableState.destroyed = true; - } - - // if this is a duplex stream mark the writable part as destroyed as well - if (this._writableState) { - this._writableState.destroyed = true; - } - this._destroy(err || null, function (err) { - if (!cb && err) { - if (!_this._writableState) { - process.nextTick(emitErrorAndCloseNT, _this, err); - } else if (!_this._writableState.errorEmitted) { - _this._writableState.errorEmitted = true; - process.nextTick(emitErrorAndCloseNT, _this, err); - } else { - process.nextTick(emitCloseNT, _this); - } - } else if (cb) { - process.nextTick(emitCloseNT, _this); - cb(err); - } else { - process.nextTick(emitCloseNT, _this); - } - }); - return this; -} -function emitErrorAndCloseNT(self, err) { - emitErrorNT(self, err); - emitCloseNT(self); -} -function emitCloseNT(self) { - if (self._writableState && !self._writableState.emitClose) return; - if (self._readableState && !self._readableState.emitClose) return; - self.emit('close'); -} -function undestroy() { - if (this._readableState) { - this._readableState.destroyed = false; - this._readableState.reading = false; - this._readableState.ended = false; - this._readableState.endEmitted = false; - } - if (this._writableState) { - this._writableState.destroyed = false; - this._writableState.ended = false; - this._writableState.ending = false; - this._writableState.finalCalled = false; - this._writableState.prefinished = false; - this._writableState.finished = false; - this._writableState.errorEmitted = false; - } -} -function emitErrorNT(self, err) { - self.emit('error', err); -} -function errorOrDestroy(stream, err) { - // We have tests that rely on errors being emitted - // in the same tick, so changing this is semver major. - // For now when you opt-in to autoDestroy we allow - // the error to be emitted nextTick. In a future - // semver major update we should change the default to this. - - var rState = stream._readableState; - var wState = stream._writableState; - if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err); -} -module.exports = { - destroy: destroy, - undestroy: undestroy, - errorOrDestroy: errorOrDestroy -}; \ No newline at end of file diff --git a/WechatBot/node_modules/readable-stream/lib/internal/streams/end-of-stream.js b/WechatBot/node_modules/readable-stream/lib/internal/streams/end-of-stream.js deleted file mode 100755 index 59c671b5a..000000000 --- a/WechatBot/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +++ /dev/null @@ -1,86 +0,0 @@ -// Ported from https://github.com/mafintosh/end-of-stream with -// permission from the author, Mathias Buus (@mafintosh). - -'use strict'; - -var ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE; -function once(callback) { - var called = false; - return function () { - if (called) return; - called = true; - for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { - args[_key] = arguments[_key]; - } - callback.apply(this, args); - }; -} -function noop() {} -function isRequest(stream) { - return stream.setHeader && typeof stream.abort === 'function'; -} -function eos(stream, opts, callback) { - if (typeof opts === 'function') return eos(stream, null, opts); - if (!opts) opts = {}; - callback = once(callback || noop); - var readable = opts.readable || opts.readable !== false && stream.readable; - var writable = opts.writable || opts.writable !== false && stream.writable; - var onlegacyfinish = function onlegacyfinish() { - if (!stream.writable) onfinish(); - }; - var writableEnded = stream._writableState && stream._writableState.finished; - var onfinish = function onfinish() { - writable = false; - writableEnded = true; - if (!readable) callback.call(stream); - }; - var readableEnded = stream._readableState && stream._readableState.endEmitted; - var onend = function onend() { - readable = false; - readableEnded = true; - if (!writable) callback.call(stream); - }; - var onerror = function onerror(err) { - callback.call(stream, err); - }; - var onclose = function onclose() { - var err; - if (readable && !readableEnded) { - if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); - return callback.call(stream, err); - } - if (writable && !writableEnded) { - if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); - return callback.call(stream, err); - } - }; - var onrequest = function onrequest() { - stream.req.on('finish', onfinish); - }; - if (isRequest(stream)) { - stream.on('complete', onfinish); - stream.on('abort', onclose); - if (stream.req) onrequest();else stream.on('request', onrequest); - } else if (writable && !stream._writableState) { - // legacy streams - stream.on('end', onlegacyfinish); - stream.on('close', onlegacyfinish); - } - stream.on('end', onend); - stream.on('finish', onfinish); - if (opts.error !== false) stream.on('error', onerror); - stream.on('close', onclose); - return function () { - stream.removeListener('complete', onfinish); - stream.removeListener('abort', onclose); - stream.removeListener('request', onrequest); - if (stream.req) stream.req.removeListener('finish', onfinish); - stream.removeListener('end', onlegacyfinish); - stream.removeListener('close', onlegacyfinish); - stream.removeListener('finish', onfinish); - stream.removeListener('end', onend); - stream.removeListener('error', onerror); - stream.removeListener('close', onclose); - }; -} -module.exports = eos; \ No newline at end of file diff --git a/WechatBot/node_modules/readable-stream/lib/internal/streams/from-browser.js b/WechatBot/node_modules/readable-stream/lib/internal/streams/from-browser.js deleted file mode 100755 index a4ce56f3c..000000000 --- a/WechatBot/node_modules/readable-stream/lib/internal/streams/from-browser.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = function () { - throw new Error('Readable.from is not available in the browser') -}; diff --git a/WechatBot/node_modules/readable-stream/lib/internal/streams/from.js b/WechatBot/node_modules/readable-stream/lib/internal/streams/from.js deleted file mode 100755 index 0a34ee92e..000000000 --- a/WechatBot/node_modules/readable-stream/lib/internal/streams/from.js +++ /dev/null @@ -1,52 +0,0 @@ -'use strict'; - -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; } -function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; } -function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } -function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); } -function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } -var ERR_INVALID_ARG_TYPE = require('../../../errors').codes.ERR_INVALID_ARG_TYPE; -function from(Readable, iterable, opts) { - var iterator; - if (iterable && typeof iterable.next === 'function') { - iterator = iterable; - } else if (iterable && iterable[Symbol.asyncIterator]) iterator = iterable[Symbol.asyncIterator]();else if (iterable && iterable[Symbol.iterator]) iterator = iterable[Symbol.iterator]();else throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable); - var readable = new Readable(_objectSpread({ - objectMode: true - }, opts)); - // Reading boolean to protect against _read - // being called before last iteration completion. - var reading = false; - readable._read = function () { - if (!reading) { - reading = true; - next(); - } - }; - function next() { - return _next2.apply(this, arguments); - } - function _next2() { - _next2 = _asyncToGenerator(function* () { - try { - var _yield$iterator$next = yield iterator.next(), - value = _yield$iterator$next.value, - done = _yield$iterator$next.done; - if (done) { - readable.push(null); - } else if (readable.push(yield value)) { - next(); - } else { - reading = false; - } - } catch (err) { - readable.destroy(err); - } - }); - return _next2.apply(this, arguments); - } - return readable; -} -module.exports = from; diff --git a/WechatBot/node_modules/readable-stream/lib/internal/streams/pipeline.js b/WechatBot/node_modules/readable-stream/lib/internal/streams/pipeline.js deleted file mode 100755 index e6f39241f..000000000 --- a/WechatBot/node_modules/readable-stream/lib/internal/streams/pipeline.js +++ /dev/null @@ -1,86 +0,0 @@ -// Ported from https://github.com/mafintosh/pump with -// permission from the author, Mathias Buus (@mafintosh). - -'use strict'; - -var eos; -function once(callback) { - var called = false; - return function () { - if (called) return; - called = true; - callback.apply(void 0, arguments); - }; -} -var _require$codes = require('../../../errors').codes, - ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, - ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; -function noop(err) { - // Rethrow the error if it exists to avoid swallowing it - if (err) throw err; -} -function isRequest(stream) { - return stream.setHeader && typeof stream.abort === 'function'; -} -function destroyer(stream, reading, writing, callback) { - callback = once(callback); - var closed = false; - stream.on('close', function () { - closed = true; - }); - if (eos === undefined) eos = require('./end-of-stream'); - eos(stream, { - readable: reading, - writable: writing - }, function (err) { - if (err) return callback(err); - closed = true; - callback(); - }); - var destroyed = false; - return function (err) { - if (closed) return; - if (destroyed) return; - destroyed = true; - - // request.destroy just do .end - .abort is what we want - if (isRequest(stream)) return stream.abort(); - if (typeof stream.destroy === 'function') return stream.destroy(); - callback(err || new ERR_STREAM_DESTROYED('pipe')); - }; -} -function call(fn) { - fn(); -} -function pipe(from, to) { - return from.pipe(to); -} -function popCallback(streams) { - if (!streams.length) return noop; - if (typeof streams[streams.length - 1] !== 'function') return noop; - return streams.pop(); -} -function pipeline() { - for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) { - streams[_key] = arguments[_key]; - } - var callback = popCallback(streams); - if (Array.isArray(streams[0])) streams = streams[0]; - if (streams.length < 2) { - throw new ERR_MISSING_ARGS('streams'); - } - var error; - var destroys = streams.map(function (stream, i) { - var reading = i < streams.length - 1; - var writing = i > 0; - return destroyer(stream, reading, writing, function (err) { - if (!error) error = err; - if (err) destroys.forEach(call); - if (reading) return; - destroys.forEach(call); - callback(error); - }); - }); - return streams.reduce(pipe); -} -module.exports = pipeline; \ No newline at end of file diff --git a/WechatBot/node_modules/readable-stream/lib/internal/streams/state.js b/WechatBot/node_modules/readable-stream/lib/internal/streams/state.js deleted file mode 100755 index 3fbf8927e..000000000 --- a/WechatBot/node_modules/readable-stream/lib/internal/streams/state.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -var ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE; -function highWaterMarkFrom(options, isDuplex, duplexKey) { - return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; -} -function getHighWaterMark(state, options, duplexKey, isDuplex) { - var hwm = highWaterMarkFrom(options, isDuplex, duplexKey); - if (hwm != null) { - if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) { - var name = isDuplex ? duplexKey : 'highWaterMark'; - throw new ERR_INVALID_OPT_VALUE(name, hwm); - } - return Math.floor(hwm); - } - - // Default value - return state.objectMode ? 16 : 16 * 1024; -} -module.exports = { - getHighWaterMark: getHighWaterMark -}; \ No newline at end of file diff --git a/WechatBot/node_modules/readable-stream/lib/internal/streams/stream-browser.js b/WechatBot/node_modules/readable-stream/lib/internal/streams/stream-browser.js deleted file mode 100755 index 9332a3fda..000000000 --- a/WechatBot/node_modules/readable-stream/lib/internal/streams/stream-browser.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('events').EventEmitter; diff --git a/WechatBot/node_modules/readable-stream/lib/internal/streams/stream.js b/WechatBot/node_modules/readable-stream/lib/internal/streams/stream.js deleted file mode 100755 index ce2ad5b6e..000000000 --- a/WechatBot/node_modules/readable-stream/lib/internal/streams/stream.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = require('stream'); diff --git a/WechatBot/node_modules/readable-stream/package.json b/WechatBot/node_modules/readable-stream/package.json deleted file mode 100644 index ade59e71a..000000000 --- a/WechatBot/node_modules/readable-stream/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "name": "readable-stream", - "version": "3.6.2", - "description": "Streams3, a user-land copy of the stream library from Node.js", - "main": "readable.js", - "engines": { - "node": ">= 6" - }, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "devDependencies": { - "@babel/cli": "^7.2.0", - "@babel/core": "^7.2.0", - "@babel/polyfill": "^7.0.0", - "@babel/preset-env": "^7.2.0", - "airtap": "0.0.9", - "assert": "^1.4.0", - "bl": "^2.0.0", - "deep-strict-equal": "^0.2.0", - "events.once": "^2.0.2", - "glob": "^7.1.2", - "gunzip-maybe": "^1.4.1", - "hyperquest": "^2.1.3", - "lolex": "^2.6.0", - "nyc": "^11.0.0", - "pump": "^3.0.0", - "rimraf": "^2.6.2", - "tap": "^12.0.0", - "tape": "^4.9.0", - "tar-fs": "^1.16.2", - "util-promisify": "^2.1.0" - }, - "scripts": { - "test": "tap -J --no-esm test/parallel/*.js test/ours/*.js", - "ci": "TAP=1 tap --no-esm test/parallel/*.js test/ours/*.js | tee test.tap", - "test-browsers": "airtap --sauce-connect --loopback airtap.local -- test/browser.js", - "test-browser-local": "airtap --open --local -- test/browser.js", - "cover": "nyc npm test", - "report": "nyc report --reporter=lcov", - "update-browser-errors": "babel -o errors-browser.js errors.js" - }, - "repository": { - "type": "git", - "url": "git://github.com/nodejs/readable-stream" - }, - "keywords": [ - "readable", - "stream", - "pipe" - ], - "browser": { - "util": false, - "worker_threads": false, - "./errors": "./errors-browser.js", - "./readable.js": "./readable-browser.js", - "./lib/internal/streams/from.js": "./lib/internal/streams/from-browser.js", - "./lib/internal/streams/stream.js": "./lib/internal/streams/stream-browser.js" - }, - "nyc": { - "include": [ - "lib/**.js" - ] - }, - "license": "MIT" -} diff --git a/WechatBot/node_modules/readable-stream/readable-browser.js b/WechatBot/node_modules/readable-stream/readable-browser.js deleted file mode 100755 index adbf60de8..000000000 --- a/WechatBot/node_modules/readable-stream/readable-browser.js +++ /dev/null @@ -1,9 +0,0 @@ -exports = module.exports = require('./lib/_stream_readable.js'); -exports.Stream = exports; -exports.Readable = exports; -exports.Writable = require('./lib/_stream_writable.js'); -exports.Duplex = require('./lib/_stream_duplex.js'); -exports.Transform = require('./lib/_stream_transform.js'); -exports.PassThrough = require('./lib/_stream_passthrough.js'); -exports.finished = require('./lib/internal/streams/end-of-stream.js'); -exports.pipeline = require('./lib/internal/streams/pipeline.js'); diff --git a/WechatBot/node_modules/readable-stream/readable.js b/WechatBot/node_modules/readable-stream/readable.js deleted file mode 100755 index 9e0ca120d..000000000 --- a/WechatBot/node_modules/readable-stream/readable.js +++ /dev/null @@ -1,16 +0,0 @@ -var Stream = require('stream'); -if (process.env.READABLE_STREAM === 'disable' && Stream) { - module.exports = Stream.Readable; - Object.assign(module.exports, Stream); - module.exports.Stream = Stream; -} else { - exports = module.exports = require('./lib/_stream_readable.js'); - exports.Stream = Stream || exports; - exports.Readable = exports; - exports.Writable = require('./lib/_stream_writable.js'); - exports.Duplex = require('./lib/_stream_duplex.js'); - exports.Transform = require('./lib/_stream_transform.js'); - exports.PassThrough = require('./lib/_stream_passthrough.js'); - exports.finished = require('./lib/internal/streams/end-of-stream.js'); - exports.pipeline = require('./lib/internal/streams/pipeline.js'); -} diff --git a/WechatBot/node_modules/readable-web-to-node-stream/README.md b/WechatBot/node_modules/readable-web-to-node-stream/README.md deleted file mode 100644 index 4a717d861..000000000 --- a/WechatBot/node_modules/readable-web-to-node-stream/README.md +++ /dev/null @@ -1,71 +0,0 @@ -![Karma CI](https://github.com/Borewit/readable-web-to-node-stream/workflows/Karma%20CI/badge.svg) -[![NPM version](https://badge.fury.io/js/readable-web-to-node-stream.svg)](https://npmjs.org/package/readable-web-to-node-stream) -[![npm downloads](http://img.shields.io/npm/dm/readable-web-to-node-stream.svg)](https://npmcharts.com/compare/readable-web-to-node-stream) -[![dependencies Status](https://david-dm.org/Borewit/readable-web-to-node-stream/status.svg)](https://david-dm.org/Borewit/readable-web-to-node-stream) -[![Known Vulnerabilities](https://snyk.io/test/github/Borewit/readable-web-to-node-stream/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Borewit/readable-web-to-node-stream?targetFile=package.json) -[![Codacy Badge](https://app.codacy.com/project/badge/Grade/d4b511481b3a4634b6ca5c0724407eb9)](https://www.codacy.com/gh/Borewit/peek-readable/dashboard?utm_source=github.com&utm_medium=referral&utm_content=Borewit/peek-readable&utm_campaign=Badge_Grade) -[![Coverage Status](https://coveralls.io/repos/github/Borewit/readable-web-to-node-stream/badge.svg?branch=master)](https://coveralls.io/github/Borewit/readable-web-to-node-stream?branch=master) -[![Minified size](https://badgen.net/bundlephobia/min/readable-web-to-node-stream)](https://bundlephobia.com/result?p=readable-web-to-node-stream) - -# readable-web-to-node-stream - -Converts a [Web-API readable stream](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader) into a [Node.js readable stream](https://nodejs.org/api/stream.html#stream_readable_streams). - -## Installation -Install via [npm](http://npmjs.org/): - -```bash -npm install readable-web-to-node-stream -``` -or or [yarn](https://yarnpkg.com/): -```bash -yarn add readable-web-to-node-stream -``` - -## Compatibility - -Source is written in TypeScript and compiled to ECMAScript 2017 (ES8). - -Unit tests are performed on the following browsers: - -* Google Chrome 74.0 -* Firefox 68.0 -* Safari 12.0 -* Opera 60.0 - -## Example - -Import readable-web-stream-to-node in JavaScript: -```js -const {ReadableWebToNodeStream} = require('readable-web-to-node-stream'); - -async function download(url) { - const response = await fetch(url); - const readableWebStream = response.body; - const nodeStream = new ReadableWebToNodeStream(readableWebStream); -} -``` - -## API - -**constructor(stream: ReadableStream): Promise** - -`stream: ReadableStream`: the [Web-API readable stream](https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader). - -**close(): Promise** -Will cancel close the Readable-node stream, and will release Web-API-readable-stream. - -**waitForReadToComplete(): Promise** -If there is no unresolved read call to Web-API Readable​Stream immediately returns, otherwise it will wait until the read is resolved. - -## Licence - -(The MIT License) - -Copyright (c) 2019 Borewit - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/WechatBot/node_modules/readable-web-to-node-stream/lib/index.d.ts b/WechatBot/node_modules/readable-web-to-node-stream/lib/index.d.ts deleted file mode 100644 index 7d7145bd7..000000000 --- a/WechatBot/node_modules/readable-web-to-node-stream/lib/index.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Readable } from 'readable-stream'; -/** - * Converts a Web-API stream into Node stream.Readable class - * Node stream readable: https://nodejs.org/api/stream.html#stream_readable_streams - * Web API readable-stream: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream - * Node readable stream: https://nodejs.org/api/stream.html#stream_readable_streams - */ -export declare class ReadableWebToNodeStream extends Readable { - bytesRead: number; - released: boolean; - /** - * Default web API stream reader - * https://developer.mozilla.org/en-US/docs/Web/API/ReadableStreamDefaultReader - */ - private reader; - private pendingRead; - /** - * - * @param stream Readable​Stream: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream - */ - constructor(stream: ReadableStream); - /** - * Implementation of readable._read(size). - * When readable._read() is called, if data is available from the resource, - * the implementation should begin pushing that data into the read queue - * https://nodejs.org/api/stream.html#stream_readable_read_size_1 - */ - _read(): Promise; - /** - * If there is no unresolved read call to Web-API Readable​Stream immediately returns; - * otherwise will wait until the read is resolved. - */ - waitForReadToComplete(): Promise; - /** - * Close wrapper - */ - close(): Promise; - private syncAndRelease; -} diff --git a/WechatBot/node_modules/readable-web-to-node-stream/lib/index.js b/WechatBot/node_modules/readable-web-to-node-stream/lib/index.js deleted file mode 100755 index 1efaea174..000000000 --- a/WechatBot/node_modules/readable-web-to-node-stream/lib/index.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ReadableWebToNodeStream = void 0; -const readable_stream_1 = require("readable-stream"); -/** - * Converts a Web-API stream into Node stream.Readable class - * Node stream readable: https://nodejs.org/api/stream.html#stream_readable_streams - * Web API readable-stream: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream - * Node readable stream: https://nodejs.org/api/stream.html#stream_readable_streams - */ -class ReadableWebToNodeStream extends readable_stream_1.Readable { - /** - * - * @param stream Readable​Stream: https://developer.mozilla.org/en-US/docs/Web/API/ReadableStream - */ - constructor(stream) { - super(); - this.bytesRead = 0; - this.released = false; - this.reader = stream.getReader(); - } - /** - * Implementation of readable._read(size). - * When readable._read() is called, if data is available from the resource, - * the implementation should begin pushing that data into the read queue - * https://nodejs.org/api/stream.html#stream_readable_read_size_1 - */ - async _read() { - // Should start pushing data into the queue - // Read data from the underlying Web-API-readable-stream - if (this.released) { - this.push(null); // Signal EOF - return; - } - this.pendingRead = this.reader.read(); - const data = await this.pendingRead; - // clear the promise before pushing pushing new data to the queue and allow sequential calls to _read() - delete this.pendingRead; - if (data.done || this.released) { - this.push(null); // Signal EOF - } - else { - this.bytesRead += data.value.length; - this.push(data.value); // Push new data to the queue - } - } - /** - * If there is no unresolved read call to Web-API Readable​Stream immediately returns; - * otherwise will wait until the read is resolved. - */ - async waitForReadToComplete() { - if (this.pendingRead) { - await this.pendingRead; - } - } - /** - * Close wrapper - */ - async close() { - await this.syncAndRelease(); - } - async syncAndRelease() { - this.released = true; - await this.waitForReadToComplete(); - await this.reader.releaseLock(); - } -} -exports.ReadableWebToNodeStream = ReadableWebToNodeStream; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/readable-web-to-node-stream/lib/index.spec.js b/WechatBot/node_modules/readable-web-to-node-stream/lib/index.spec.js deleted file mode 100755 index 98ddd4e56..000000000 --- a/WechatBot/node_modules/readable-web-to-node-stream/lib/index.spec.js +++ /dev/null @@ -1,147 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseReadableStream = void 0; -localStorage.debug = 'readable-web-to-node-stream'; -const assert = require("assert"); -const mmb = require("music-metadata-browser"); -const index_1 = require("./index"); -async function httpGetByUrl(url) { - const response = await fetch(url); - const headers = []; - response.headers.forEach(header => { - headers.push(header); - }); - assert.ok(response.ok, `HTTP error status=${response.status}: ${response.statusText}`); - assert.ok(response.body, 'HTTP-stream'); - return response; -} -async function parseReadableStream(stream, fileInfo, options) { - const ns = new index_1.ReadableWebToNodeStream(stream); - const res = await mmb.parseNodeStream(ns, fileInfo, options); - await ns.close(); - return res; -} -exports.parseReadableStream = parseReadableStream; -const tiuqottigeloot_vol24_Tracks = [ - { - url: '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/01%20-%20Diablo%20Swing%20Orchestra%20-%20Heroines.mp3', - duration: 322.612245, - metaData: { - title: 'Heroines', - artist: 'Diablo Swing Orchestra' - } - }, - { - url: '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/02%20-%20Eclectek%20-%20We%20Are%20Going%20To%20Eclecfunk%20Your%20Ass.mp3', - duration: 190.093061, - metaData: { - title: 'We Are Going to Eclecfunk Your Ass', - artist: 'Eclectek' - } - } /* , - { - url: - '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/03%20-%20Auto-Pilot%20-%20Seventeen.mp3', - duration: 214.622041, - metaData: { - title: 'Seventeen', - artist: 'Auto-Pilot' - } - }, - { - url: - '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/04%20-%20Muha%20-%20Microphone.mp3', - duration: 181.838367, - metaData: { - title: 'Microphone', - artist: 'Muha' - } - }, - { - url: - '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/05%20-%20Just%20Plain%20Ant%20-%20Stumble.mp3', - duration: 86.047347, - metaData: { - title: 'Stumble', - artist: 'Just Plain Ant' - } - }, - { - url: - '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/06%20-%20Sleaze%20-%20God%20Damn.mp3', - duration: 226.795102, - metaData: { - title: 'God Damn', - artist: 'Sleaze' - } - }, - { - url: - '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/07%20-%20Juanitos%20-%20Hola%20Hola%20Bossa%20Nova.mp3', - duration: 207.072653, - metaData: { - title: 'Hola Hola Bossa Nova', - artist: 'Juanitos' - } - }, - { - url: - '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/08%20-%20Entertainment%20For%20The%20Braindead%20-%20Resolutions%20(Chris%20Summer%20Remix).mp3', - duration: 314.331429, - metaData: { - title: 'Resolutions (Chris Summer remix)', - artist: 'Entertainment for the Braindead' - } - }, - { - url: - '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/09%20-%20Nobara%20Hayakawa%20-%20Trail.mp3', - duration: 204.042449, - metaData: { - title: 'Trail', - artist: 'Nobara Hayakawa' - } - }, - { - url: - '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/10%20-%20Paper%20Navy%20-%20Tongue%20Tied.mp3', - duration: 201.116735, - metaData: { - title: 'Tongue Tied', - artist: 'Paper Navy' - } - }, - { - url: - '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/11%20-%2060%20Tigres%20-%20Garage.mp3', - duration: 245.394286, - metaData: { - title: 'Garage', - artist: '60 Tigres' - } - }, - { - url: - '/Various%20Artists%20-%202009%20-%20netBloc%20Vol%2024_%20tiuqottigeloot%20%5BMP3-V2%5D/12%20-%20CM%20aka%20Creative%20-%20The%20Cycle%20(Featuring%20Mista%20Mista).mp3', - duration: 221.44, - metaData: { - title: 'The Cycle (feat. Mista Mista)', - artist: 'CM aka Creative' - } - } */ -]; -describe('Parse WebAmp tracks', () => { - tiuqottigeloot_vol24_Tracks.forEach(track => { - it(`track ${track.metaData.artist} - ${track.metaData.title}`, async () => { - const url = 'https://raw.githubusercontent.com/Borewit/test-audio/958e057' + track.url; - const response = await httpGetByUrl(url); - const metadata = await parseReadableStream(response.body, { - size: parseInt(response.headers.get('Content-Length'), 10), - mimeType: response.headers.get('Content-Type') - }); - expect(metadata.common.artist).toEqual(track.metaData.artist); - expect(metadata.common.title).toEqual(track.metaData.title); - }, 20000); - }); -}); -//# sourceMappingURL=index.spec.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/readable-web-to-node-stream/package.json b/WechatBot/node_modules/readable-web-to-node-stream/package.json deleted file mode 100644 index 057c39f84..000000000 --- a/WechatBot/node_modules/readable-web-to-node-stream/package.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "name": "readable-web-to-node-stream", - "version": "3.0.2", - "description": "Converts a Web-API readable-stream into a Node readable-stream.", - "main": "lib/index.js", - "files": [ - "lib/**/*.js", - "lib/**/*.d.ts" - ], - "engines": { - "node": ">=8" - }, - "types": "lib/index.d.ts", - "scripts": { - "clean": "del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts coverage", - "compile-lib": "tsc -p lib/tsconfig.json", - "compile-test": "tsc -p lib/tsconfig.spec.json", - "prepublishOnly": "yarn run build", - "build": "npm run compile-lib && npm run compile-test", - "tslint": "tslint 'lib/**/*.ts' --exclude 'lib/**/*.d.ts'", - "eslint": "eslint karma.conf.js", - "lint": "npm run tslint && npm run eslint", - "test": "karma start --single-run", - "karma": "karma start", - "karma-firefox": "karma start --browsers Firefox", - "karma-once": "karma start --browsers Chrome --single-run", - "travis-karma": "karma start --browsers Firefox --single-run --reporters coverage-istanbul,spec", - "browserstack": "karma start --browsers bs_win_chrome,bs_win_firefox,bs_osx_safari --single-run --reporters coverage-istanbul,spec", - "travis-karma-browserstack": "karma start --browsers bs_win_chrome,bs_win_firefox,bs_osx_safari --single-run --reporters coverage-istanbul,spec,BrowserStack", - "post-coveralls": "coveralls < coverage/lcov.info", - "post-codacy": " codacy-coverage < coverage/lcov.info" - }, - "keywords": [ - "stream.readable", - "web", - "node", - "browser", - "stream", - "covert", - "coverter", - "readable", - "readablestream" - ], - "repository": "https://github.com/Borewit/readable-web-to-node-stream.git", - "author": { - "name": "Borewit", - "url": "https://github.com/Borewit" - }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/Borewit" - }, - "license": "MIT", - "bugs": { - "url": "https://github.com/Borewit/readable-web-to-node-stream/issues" - }, - "dependencies": { - "readable-stream": "^3.6.0" - }, - "devDependencies": { - "@types/jasmine": "^3.8.1", - "@types/node": "^16.3.1", - "@types/readable-stream": "^2.3.9", - "coveralls": "^3.1.0", - "del-cli": "^3.0.1", - "eslint": "^7.18.0", - "istanbul-instrumenter-loader": "^3.0.1", - "jasmine-core": "^3.8.0", - "karma": "^6.3.4", - "karma-browserstack-launcher": "^1.6.0", - "karma-chrome-launcher": "^3.1.0", - "karma-coverage-istanbul-reporter": "^3.0.3", - "karma-firefox-launcher": "^2.1.0", - "karma-jasmine": "^4.0.1", - "karma-jasmine-html-reporter": "^1.7.0", - "karma-spec-reporter": "^0.0.32", - "karma-webpack": "^5.0.0", - "music-metadata-browser": "^2.2.7", - "ts-loader": "^8.0.14", - "tslint": "^6.1.3", - "typescript": "^4.3.5", - "webpack": "^4.46.0" - } -} diff --git a/WechatBot/node_modules/reflect-metadata/AUTHORS.md b/WechatBot/node_modules/reflect-metadata/AUTHORS.md deleted file mode 100644 index ecaee34d4..000000000 --- a/WechatBot/node_modules/reflect-metadata/AUTHORS.md +++ /dev/null @@ -1,5 +0,0 @@ -reflect-metadata is authored by: -* Cy Brown -* Oleh Dokuka -* Ron Buckton -* William Buchwalter \ No newline at end of file diff --git a/WechatBot/node_modules/reflect-metadata/CopyrightNotice.txt b/WechatBot/node_modules/reflect-metadata/CopyrightNotice.txt deleted file mode 100644 index 0f6db1f75..000000000 --- a/WechatBot/node_modules/reflect-metadata/CopyrightNotice.txt +++ /dev/null @@ -1,15 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. All rights reserved. -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 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - diff --git a/WechatBot/node_modules/reflect-metadata/LICENSE b/WechatBot/node_modules/reflect-metadata/LICENSE deleted file mode 100644 index e7259f843..000000000 --- a/WechatBot/node_modules/reflect-metadata/LICENSE +++ /dev/null @@ -1,55 +0,0 @@ -Apache License - -Version 2.0, January 2004 - -http://www.apache.org/licenses/ - -TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - -1. Definitions. - -"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. - -"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. - -"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. - -"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. - -"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. - -"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. - -"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). - -"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. - -"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." - -"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. - -2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. - -3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. - -4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: - -You must give any other recipients of the Work or Derivative Works a copy of this License; and - -You must cause any modified files to carry prominent notices stating that You changed the files; and - -You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and - -If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. - -5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. - -6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. - -7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. - -8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. - -9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. - -END OF TERMS AND CONDITIONS \ No newline at end of file diff --git a/WechatBot/node_modules/reflect-metadata/README.md b/WechatBot/node_modules/reflect-metadata/README.md deleted file mode 100644 index be056dcfd..000000000 --- a/WechatBot/node_modules/reflect-metadata/README.md +++ /dev/null @@ -1,178 +0,0 @@ -# Metadata Reflection API - -* [Detailed proposal][Metadata-Spec] - -## Installation - -``` -npm install reflect-metadata -``` - -## Background - -* Decorators add the ability to augment a class and its members as the class is defined, through a declarative syntax. -* Traceur attaches annotations to a static property on the class. -* Languages like C# (.NET), and Java support attributes or annotations that add metadata to types, along with a reflective API for reading metadata. - -## Goals - -* A number of use cases (Composition/Dependency Injection, Runtime Type Assertions, Reflection/Mirroring, Testing) want the ability to add additional metadata to a class in a consistent manner. -* A consistent approach is needed for various tools and libraries to be able to reason over metadata. -* Metadata-producing decorators (nee. "Annotations") need to be generally composable with mutating decorators. -* Metadata should be available not only on an object but also through a Proxy, with related traps. -* Defining new metadata-producing decorators should not be arduous or over-complex for a developer. -* Metadata should be consistent with other language and runtime features of ECMAScript. - -## Syntax - -* Declarative definition of metadata: -```JavaScript -class C { - @Reflect.metadata(metadataKey, metadataValue) - method() { - } -} -``` - -* Imperative definition of metadata: -```JavaScript -Reflect.defineMetadata(metadataKey, metadataValue, C.prototype, "method"); -``` - -* Imperative introspection of metadata: -```JavaScript -let obj = new C(); -let metadataValue = Reflect.getMetadata(metadataKey, obj, "method"); -``` - -## Semantics - -* Object has a new \[\[Metadata\]\] internal property that will contain a Map whose keys are property keys (or **undefined**) and whose values are Maps of metadata keys to metadata values. -* Object will have a number of new internal methods for \[\[DefineOwnMetadata\]\], \[\[GetOwnMetadata\]\], \[\[HasOwnMetadata\]\], etc. - * These internal methods can be overridden by a Proxy to support additional traps. - * These internal methods will by default call a set of abstract operations to define and read metadata. -* The Reflect object will expose the MOP operations to allow imperative access to metadata. -* Metadata defined on class declaration *C* is stored in *C*.\[\[Metadata\]\], with **undefined** as the key. -* Metadata defined on static members of class declaration *C* are stored in *C*.\[\[Metadata\]\], with the property key as the key. -* Metadata defined on instance members of class declaration *C* are stored in *C*.prototype.\[\[Metadata\]\], with the property key as the key. - -## API - -```JavaScript -// define metadata on an object or property -Reflect.defineMetadata(metadataKey, metadataValue, target); -Reflect.defineMetadata(metadataKey, metadataValue, target, propertyKey); - -// check for presence of a metadata key on the prototype chain of an object or property -let result = Reflect.hasMetadata(metadataKey, target); -let result = Reflect.hasMetadata(metadataKey, target, propertyKey); - -// check for presence of an own metadata key of an object or property -let result = Reflect.hasOwnMetadata(metadataKey, target); -let result = Reflect.hasOwnMetadata(metadataKey, target, propertyKey); - -// get metadata value of a metadata key on the prototype chain of an object or property -let result = Reflect.getMetadata(metadataKey, target); -let result = Reflect.getMetadata(metadataKey, target, propertyKey); - -// get metadata value of an own metadata key of an object or property -let result = Reflect.getOwnMetadata(metadataKey, target); -let result = Reflect.getOwnMetadata(metadataKey, target, propertyKey); - -// get all metadata keys on the prototype chain of an object or property -let result = Reflect.getMetadataKeys(target); -let result = Reflect.getMetadataKeys(target, propertyKey); - -// get all own metadata keys of an object or property -let result = Reflect.getOwnMetadataKeys(target); -let result = Reflect.getOwnMetadataKeys(target, propertyKey); - -// delete metadata from an object or property -let result = Reflect.deleteMetadata(metadataKey, target); -let result = Reflect.deleteMetadata(metadataKey, target, propertyKey); - -// apply metadata via a decorator to a constructor -@Reflect.metadata(metadataKey, metadataValue) -class C { - // apply metadata via a decorator to a method (property) - @Reflect.metadata(metadataKey, metadataValue) - method() { - } -} -``` - -## Alternatives - -* Use properties rather than a separate API. - * Obvious downside is that this can be a lot of code: -```JavaScript -function ParamTypes(...types) { - return (target, propertyKey) => { - const symParamTypes = Symbol.for("design:paramtypes"); - if (propertyKey === undefined) { - target[symParamTypes] = types; - } - else { - const symProperties = Symbol.for("design:properties"); - let properties, property; - if (Object.prototype.hasOwnProperty.call(target, symProperties)) { - properties = target[symProperties]; - } - else { - properties = target[symProperties] = {}; - } - if (Object.prototype.hasOwnProperty.call(properties, propertyKey)) { - property = properties[propertyKey]; - } - else { - property = properties[propertyKey] = {}; - } - property[symParamTypes] = types; - } - }; -} -``` - -## Notes -* Though it may seem counterintuitive, the methods on Reflect place the parameters for the metadata key and metadata value before the target or property key. This is due to the fact that the property key is the only optional parameter in the argument list. This also makes the methods easier to curry with Function#bind. This also helps reduce the overall footprint and complexity of a metadata-producing decorator that could target both a class or a property: - -```JavaScript -function ParamTypes(...types) { - // as propertyKey is effectively optional, its easier to use here - return (target, propertyKey) => { Reflect.defineMetadata("design:paramtypes", types, target, propertyKey); } - - // vs. having multiple overloads with the target and key in the front: - // - // return (target, propertyKey) => { - // if (propertyKey === undefined) { - // Reflect.defineMetadata(target, "design:paramtypes", types); - // } - // else { - // Reflect.defineMetadata(target, propertyKey, "design:paramtypes", types); - // } - // } - // - // vs. having a different methods for the class or a property: - // - // return (target, propertyKey) => { - // if (propertyKey === undefined) { - // Reflect.defineMetadata(target, "design:paramtypes", types); - // } - // else { - // Reflect.definePropertyMetadata(target, propertyKey, "design:paramtypes", types); - // } - // } -} -``` - -* To enable experimental support for metadata decorators in your TypeScript project, you must add `"experimentalDecorators": true` to your tsconfig.json file. -* To enable experimental support for auto-generated type metadata in your TypeScript project, you must add `"emitDecoratorMetadata": true` to your tsconfig.json file. - * Please note that auto-generated type metadata may have issues with circular or forward references for types. - -## Issues - -* A poorly written mutating decorator for a class constructor could cause metadata to become lost if the prototype chain is not maintained. Though, not maintaining the prototype chain in a mutating decorator for a class constructor would have other negative side effects as well. @rbuckton - * This is mitigated if the mutating decorator returns a class expression that extends from the target, or returns a proxy for the decorator. @rbuckton -* Metadata for a method is attached to the class (or prototype) via the property key. It would not then be available if trying to read metadata on the function of the method (e.g. "tearing-off" the method from the class). @rbuckton - -[Metadata-Spec]: https://rbuckton.github.io/reflect-metadata \ No newline at end of file diff --git a/WechatBot/node_modules/reflect-metadata/Reflect.d.ts b/WechatBot/node_modules/reflect-metadata/Reflect.d.ts deleted file mode 100644 index 7cce59f7a..000000000 --- a/WechatBot/node_modules/reflect-metadata/Reflect.d.ts +++ /dev/null @@ -1,494 +0,0 @@ -/*! ***************************************************************************** -Copyright (C) Microsoft. All rights reserved. -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 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - -// NOTE: This file is obsolete and may be removed in a later release. -// For CommonJS/AMD/UMD/SystemJS declarations please use 'index.d.ts'. -// For standalone browser declarations, please use 'standalone.d.ts'. - -declare module "reflect-metadata" { - // The "reflect-metadata" module has no imports or exports, but can be used by modules to load the polyfill. -} - -declare namespace Reflect { - /** - * Applies a set of decorators to a target object. - * @param decorators An array of decorators. - * @param target The target object. - * @returns The result of applying the provided decorators. - * @remarks Decorators are applied in reverse order of their positions in the array. - * @example - * - * class Example { } - * - * // constructor - * Example = Reflect.decorate(decoratorsArray, Example); - * - */ - function decorate(decorators: ClassDecorator[], target: Function): Function; - /** - * Applies a set of decorators to a property of a target object. - * @param decorators An array of decorators. - * @param target The target object. - * @param targetKey The property key to decorate. - * @param descriptor A property descriptor - * @remarks Decorators are applied in reverse order. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod() { } - * method() { } - * } - * - * // property (on constructor) - * Reflect.decorate(decoratorsArray, Example, "staticProperty"); - * - * // property (on prototype) - * Reflect.decorate(decoratorsArray, Example.prototype, "property"); - * - * // method (on constructor) - * Object.defineProperty(Example, "staticMethod", - * Reflect.decorate(decoratorsArray, Example, "staticMethod", - * Object.getOwnPropertyDescriptor(Example, "staticMethod"))); - * - * // method (on prototype) - * Object.defineProperty(Example.prototype, "method", - * Reflect.decorate(decoratorsArray, Example.prototype, "method", - * Object.getOwnPropertyDescriptor(Example.prototype, "method"))); - * - */ - function decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: Object, targetKey: string | symbol, descriptor?: PropertyDescriptor): PropertyDescriptor; - /** - * A default metadata decorator factory that can be used on a class, class member, or parameter. - * @param metadataKey The key for the metadata entry. - * @param metadataValue The value for the metadata entry. - * @returns A decorator function. - * @remarks - * If `metadataKey` is already defined for the target and target key, the - * metadataValue for that key will be overwritten. - * @example - * - * // constructor - * @Reflect.metadata(key, value) - * class Example { - * } - * - * // property (on constructor, TypeScript only) - * class Example { - * @Reflect.metadata(key, value) - * static staticProperty; - * } - * - * // property (on prototype, TypeScript only) - * class Example { - * @Reflect.metadata(key, value) - * property; - * } - * - * // method (on constructor) - * class Example { - * @Reflect.metadata(key, value) - * static staticMethod() { } - * } - * - * // method (on prototype) - * class Example { - * @Reflect.metadata(key, value) - * method() { } - * } - * - */ - function metadata(metadataKey: any, metadataValue: any): { - (target: Function): void; - (target: Object, targetKey: string | symbol): void; - }; - /** - * Define a unique metadata entry on the target. - * @param metadataKey A key used to store and retrieve metadata. - * @param metadataValue A value that contains attached metadata. - * @param target The target object on which to define metadata. - * @example - * - * class Example { - * } - * - * // constructor - * Reflect.defineMetadata("custom:annotation", options, Example); - * - * // decorator factory as metadata-producing annotation. - * function MyAnnotation(options): ClassDecorator { - * return target => Reflect.defineMetadata("custom:annotation", options, target); - * } - * - */ - function defineMetadata(metadataKey: any, metadataValue: any, target: Object): void; - /** - * Define a unique metadata entry on the target. - * @param metadataKey A key used to store and retrieve metadata. - * @param metadataValue A value that contains attached metadata. - * @param target The target object on which to define metadata. - * @param targetKey The property key for the target. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * Reflect.defineMetadata("custom:annotation", Number, Example, "staticProperty"); - * - * // property (on prototype) - * Reflect.defineMetadata("custom:annotation", Number, Example.prototype, "property"); - * - * // method (on constructor) - * Reflect.defineMetadata("custom:annotation", Number, Example, "staticMethod"); - * - * // method (on prototype) - * Reflect.defineMetadata("custom:annotation", Number, Example.prototype, "method"); - * - * // decorator factory as metadata-producing annotation. - * function MyAnnotation(options): PropertyDecorator { - * return (target, key) => Reflect.defineMetadata("custom:annotation", options, target, key); - * } - * - */ - function defineMetadata(metadataKey: any, metadataValue: any, target: Object, targetKey: string | symbol): void; - /** - * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.hasMetadata("custom:annotation", Example); - * - */ - function hasMetadata(metadataKey: any, target: Object): boolean; - /** - * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param targetKey The property key for the target. - * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.hasMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.hasMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function hasMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean; - /** - * Gets a value indicating whether the target object has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns `true` if the metadata key was defined on the target object; otherwise, `false`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.hasOwnMetadata("custom:annotation", Example); - * - */ - function hasOwnMetadata(metadataKey: any, target: Object): boolean; - /** - * Gets a value indicating whether the target object has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param targetKey The property key for the target. - * @returns `true` if the metadata key was defined on the target object; otherwise, `false`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function hasOwnMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean; - /** - * Gets the metadata value for the provided metadata key on the target object or its prototype chain. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getMetadata("custom:annotation", Example); - * - */ - function getMetadata(metadataKey: any, target: Object): any; - /** - * Gets the metadata value for the provided metadata key on the target object or its prototype chain. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param targetKey The property key for the target. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function getMetadata(metadataKey: any, target: Object, targetKey: string | symbol): any; - /** - * Gets the metadata value for the provided metadata key on the target object. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getOwnMetadata("custom:annotation", Example); - * - */ - function getOwnMetadata(metadataKey: any, target: Object): any; - /** - * Gets the metadata value for the provided metadata key on the target object. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param targetKey The property key for the target. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function getOwnMetadata(metadataKey: any, target: Object, targetKey: string | symbol): any; - /** - * Gets the metadata keys defined on the target object or its prototype chain. - * @param target The target object on which the metadata is defined. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getMetadataKeys(Example); - * - */ - function getMetadataKeys(target: Object): any[]; - /** - * Gets the metadata keys defined on the target object or its prototype chain. - * @param target The target object on which the metadata is defined. - * @param targetKey The property key for the target. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getMetadataKeys(Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getMetadataKeys(Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getMetadataKeys(Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getMetadataKeys(Example.prototype, "method"); - * - */ - function getMetadataKeys(target: Object, targetKey: string | symbol): any[]; - /** - * Gets the unique metadata keys defined on the target object. - * @param target The target object on which the metadata is defined. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getOwnMetadataKeys(Example); - * - */ - function getOwnMetadataKeys(target: Object): any[]; - /** - * Gets the unique metadata keys defined on the target object. - * @param target The target object on which the metadata is defined. - * @param targetKey The property key for the target. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getOwnMetadataKeys(Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getOwnMetadataKeys(Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getOwnMetadataKeys(Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getOwnMetadataKeys(Example.prototype, "method"); - * - */ - function getOwnMetadataKeys(target: Object, targetKey: string | symbol): any[]; - /** - * Deletes the metadata entry from the target object with the provided key. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns `true` if the metadata entry was found and deleted; otherwise, false. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.deleteMetadata("custom:annotation", Example); - * - */ - function deleteMetadata(metadataKey: any, target: Object): boolean; - /** - * Deletes the metadata entry from the target object with the provided key. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param targetKey The property key for the target. - * @returns `true` if the metadata entry was found and deleted; otherwise, false. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.deleteMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.deleteMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function deleteMetadata(metadataKey: any, target: Object, targetKey: string | symbol): boolean; -} \ No newline at end of file diff --git a/WechatBot/node_modules/reflect-metadata/Reflect.js b/WechatBot/node_modules/reflect-metadata/Reflect.js deleted file mode 100755 index 4afbb5254..000000000 --- a/WechatBot/node_modules/reflect-metadata/Reflect.js +++ /dev/null @@ -1,1131 +0,0 @@ -/*! ***************************************************************************** -Copyright (C) Microsoft. All rights reserved. -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 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ -var Reflect; -(function (Reflect) { - // Metadata Proposal - // https://rbuckton.github.io/reflect-metadata/ - (function (factory) { - var root = typeof global === "object" ? global : - typeof self === "object" ? self : - typeof this === "object" ? this : - Function("return this;")(); - var exporter = makeExporter(Reflect); - if (typeof root.Reflect === "undefined") { - root.Reflect = Reflect; - } - else { - exporter = makeExporter(root.Reflect, exporter); - } - factory(exporter); - function makeExporter(target, previous) { - return function (key, value) { - if (typeof target[key] !== "function") { - Object.defineProperty(target, key, { configurable: true, writable: true, value: value }); - } - if (previous) - previous(key, value); - }; - } - })(function (exporter) { - var hasOwn = Object.prototype.hasOwnProperty; - // feature test for Symbol support - var supportsSymbol = typeof Symbol === "function"; - var toPrimitiveSymbol = supportsSymbol && typeof Symbol.toPrimitive !== "undefined" ? Symbol.toPrimitive : "@@toPrimitive"; - var iteratorSymbol = supportsSymbol && typeof Symbol.iterator !== "undefined" ? Symbol.iterator : "@@iterator"; - var supportsCreate = typeof Object.create === "function"; // feature test for Object.create support - var supportsProto = { __proto__: [] } instanceof Array; // feature test for __proto__ support - var downLevel = !supportsCreate && !supportsProto; - var HashMap = { - // create an object in dictionary mode (a.k.a. "slow" mode in v8) - create: supportsCreate - ? function () { return MakeDictionary(Object.create(null)); } - : supportsProto - ? function () { return MakeDictionary({ __proto__: null }); } - : function () { return MakeDictionary({}); }, - has: downLevel - ? function (map, key) { return hasOwn.call(map, key); } - : function (map, key) { return key in map; }, - get: downLevel - ? function (map, key) { return hasOwn.call(map, key) ? map[key] : undefined; } - : function (map, key) { return map[key]; }, - }; - // Load global or shim versions of Map, Set, and WeakMap - var functionPrototype = Object.getPrototypeOf(Function); - var usePolyfill = typeof process === "object" && process.env && process.env["REFLECT_METADATA_USE_MAP_POLYFILL"] === "true"; - var _Map = !usePolyfill && typeof Map === "function" && typeof Map.prototype.entries === "function" ? Map : CreateMapPolyfill(); - var _Set = !usePolyfill && typeof Set === "function" && typeof Set.prototype.entries === "function" ? Set : CreateSetPolyfill(); - var _WeakMap = !usePolyfill && typeof WeakMap === "function" ? WeakMap : CreateWeakMapPolyfill(); - // [[Metadata]] internal slot - // https://rbuckton.github.io/reflect-metadata/#ordinary-object-internal-methods-and-internal-slots - var Metadata = new _WeakMap(); - /** - * Applies a set of decorators to a property of a target object. - * @param decorators An array of decorators. - * @param target The target object. - * @param propertyKey (Optional) The property key to decorate. - * @param attributes (Optional) The property descriptor for the target key. - * @remarks Decorators are applied in reverse order. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * constructor(p) { } - * static staticMethod(p) { } - * method(p) { } - * } - * - * // constructor - * Example = Reflect.decorate(decoratorsArray, Example); - * - * // property (on constructor) - * Reflect.decorate(decoratorsArray, Example, "staticProperty"); - * - * // property (on prototype) - * Reflect.decorate(decoratorsArray, Example.prototype, "property"); - * - * // method (on constructor) - * Object.defineProperty(Example, "staticMethod", - * Reflect.decorate(decoratorsArray, Example, "staticMethod", - * Object.getOwnPropertyDescriptor(Example, "staticMethod"))); - * - * // method (on prototype) - * Object.defineProperty(Example.prototype, "method", - * Reflect.decorate(decoratorsArray, Example.prototype, "method", - * Object.getOwnPropertyDescriptor(Example.prototype, "method"))); - * - */ - function decorate(decorators, target, propertyKey, attributes) { - if (!IsUndefined(propertyKey)) { - if (!IsArray(decorators)) - throw new TypeError(); - if (!IsObject(target)) - throw new TypeError(); - if (!IsObject(attributes) && !IsUndefined(attributes) && !IsNull(attributes)) - throw new TypeError(); - if (IsNull(attributes)) - attributes = undefined; - propertyKey = ToPropertyKey(propertyKey); - return DecorateProperty(decorators, target, propertyKey, attributes); - } - else { - if (!IsArray(decorators)) - throw new TypeError(); - if (!IsConstructor(target)) - throw new TypeError(); - return DecorateConstructor(decorators, target); - } - } - exporter("decorate", decorate); - // 4.1.2 Reflect.metadata(metadataKey, metadataValue) - // https://rbuckton.github.io/reflect-metadata/#reflect.metadata - /** - * A default metadata decorator factory that can be used on a class, class member, or parameter. - * @param metadataKey The key for the metadata entry. - * @param metadataValue The value for the metadata entry. - * @returns A decorator function. - * @remarks - * If `metadataKey` is already defined for the target and target key, the - * metadataValue for that key will be overwritten. - * @example - * - * // constructor - * @Reflect.metadata(key, value) - * class Example { - * } - * - * // property (on constructor, TypeScript only) - * class Example { - * @Reflect.metadata(key, value) - * static staticProperty; - * } - * - * // property (on prototype, TypeScript only) - * class Example { - * @Reflect.metadata(key, value) - * property; - * } - * - * // method (on constructor) - * class Example { - * @Reflect.metadata(key, value) - * static staticMethod() { } - * } - * - * // method (on prototype) - * class Example { - * @Reflect.metadata(key, value) - * method() { } - * } - * - */ - function metadata(metadataKey, metadataValue) { - function decorator(target, propertyKey) { - if (!IsObject(target)) - throw new TypeError(); - if (!IsUndefined(propertyKey) && !IsPropertyKey(propertyKey)) - throw new TypeError(); - OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey); - } - return decorator; - } - exporter("metadata", metadata); - /** - * Define a unique metadata entry on the target. - * @param metadataKey A key used to store and retrieve metadata. - * @param metadataValue A value that contains attached metadata. - * @param target The target object on which to define metadata. - * @param propertyKey (Optional) The property key for the target. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * constructor(p) { } - * static staticMethod(p) { } - * method(p) { } - * } - * - * // constructor - * Reflect.defineMetadata("custom:annotation", options, Example); - * - * // property (on constructor) - * Reflect.defineMetadata("custom:annotation", options, Example, "staticProperty"); - * - * // property (on prototype) - * Reflect.defineMetadata("custom:annotation", options, Example.prototype, "property"); - * - * // method (on constructor) - * Reflect.defineMetadata("custom:annotation", options, Example, "staticMethod"); - * - * // method (on prototype) - * Reflect.defineMetadata("custom:annotation", options, Example.prototype, "method"); - * - * // decorator factory as metadata-producing annotation. - * function MyAnnotation(options): Decorator { - * return (target, key?) => Reflect.defineMetadata("custom:annotation", options, target, key); - * } - * - */ - function defineMetadata(metadataKey, metadataValue, target, propertyKey) { - if (!IsObject(target)) - throw new TypeError(); - if (!IsUndefined(propertyKey)) - propertyKey = ToPropertyKey(propertyKey); - return OrdinaryDefineOwnMetadata(metadataKey, metadataValue, target, propertyKey); - } - exporter("defineMetadata", defineMetadata); - /** - * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey (Optional) The property key for the target. - * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * constructor(p) { } - * static staticMethod(p) { } - * method(p) { } - * } - * - * // constructor - * result = Reflect.hasMetadata("custom:annotation", Example); - * - * // property (on constructor) - * result = Reflect.hasMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.hasMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function hasMetadata(metadataKey, target, propertyKey) { - if (!IsObject(target)) - throw new TypeError(); - if (!IsUndefined(propertyKey)) - propertyKey = ToPropertyKey(propertyKey); - return OrdinaryHasMetadata(metadataKey, target, propertyKey); - } - exporter("hasMetadata", hasMetadata); - /** - * Gets a value indicating whether the target object has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey (Optional) The property key for the target. - * @returns `true` if the metadata key was defined on the target object; otherwise, `false`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * constructor(p) { } - * static staticMethod(p) { } - * method(p) { } - * } - * - * // constructor - * result = Reflect.hasOwnMetadata("custom:annotation", Example); - * - * // property (on constructor) - * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function hasOwnMetadata(metadataKey, target, propertyKey) { - if (!IsObject(target)) - throw new TypeError(); - if (!IsUndefined(propertyKey)) - propertyKey = ToPropertyKey(propertyKey); - return OrdinaryHasOwnMetadata(metadataKey, target, propertyKey); - } - exporter("hasOwnMetadata", hasOwnMetadata); - /** - * Gets the metadata value for the provided metadata key on the target object or its prototype chain. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey (Optional) The property key for the target. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * constructor(p) { } - * static staticMethod(p) { } - * method(p) { } - * } - * - * // constructor - * result = Reflect.getMetadata("custom:annotation", Example); - * - * // property (on constructor) - * result = Reflect.getMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function getMetadata(metadataKey, target, propertyKey) { - if (!IsObject(target)) - throw new TypeError(); - if (!IsUndefined(propertyKey)) - propertyKey = ToPropertyKey(propertyKey); - return OrdinaryGetMetadata(metadataKey, target, propertyKey); - } - exporter("getMetadata", getMetadata); - /** - * Gets the metadata value for the provided metadata key on the target object. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey (Optional) The property key for the target. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * constructor(p) { } - * static staticMethod(p) { } - * method(p) { } - * } - * - * // constructor - * result = Reflect.getOwnMetadata("custom:annotation", Example); - * - * // property (on constructor) - * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function getOwnMetadata(metadataKey, target, propertyKey) { - if (!IsObject(target)) - throw new TypeError(); - if (!IsUndefined(propertyKey)) - propertyKey = ToPropertyKey(propertyKey); - return OrdinaryGetOwnMetadata(metadataKey, target, propertyKey); - } - exporter("getOwnMetadata", getOwnMetadata); - /** - * Gets the metadata keys defined on the target object or its prototype chain. - * @param target The target object on which the metadata is defined. - * @param propertyKey (Optional) The property key for the target. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * constructor(p) { } - * static staticMethod(p) { } - * method(p) { } - * } - * - * // constructor - * result = Reflect.getMetadataKeys(Example); - * - * // property (on constructor) - * result = Reflect.getMetadataKeys(Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getMetadataKeys(Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getMetadataKeys(Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getMetadataKeys(Example.prototype, "method"); - * - */ - function getMetadataKeys(target, propertyKey) { - if (!IsObject(target)) - throw new TypeError(); - if (!IsUndefined(propertyKey)) - propertyKey = ToPropertyKey(propertyKey); - return OrdinaryMetadataKeys(target, propertyKey); - } - exporter("getMetadataKeys", getMetadataKeys); - /** - * Gets the unique metadata keys defined on the target object. - * @param target The target object on which the metadata is defined. - * @param propertyKey (Optional) The property key for the target. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * constructor(p) { } - * static staticMethod(p) { } - * method(p) { } - * } - * - * // constructor - * result = Reflect.getOwnMetadataKeys(Example); - * - * // property (on constructor) - * result = Reflect.getOwnMetadataKeys(Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getOwnMetadataKeys(Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getOwnMetadataKeys(Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getOwnMetadataKeys(Example.prototype, "method"); - * - */ - function getOwnMetadataKeys(target, propertyKey) { - if (!IsObject(target)) - throw new TypeError(); - if (!IsUndefined(propertyKey)) - propertyKey = ToPropertyKey(propertyKey); - return OrdinaryOwnMetadataKeys(target, propertyKey); - } - exporter("getOwnMetadataKeys", getOwnMetadataKeys); - /** - * Deletes the metadata entry from the target object with the provided key. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey (Optional) The property key for the target. - * @returns `true` if the metadata entry was found and deleted; otherwise, false. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * constructor(p) { } - * static staticMethod(p) { } - * method(p) { } - * } - * - * // constructor - * result = Reflect.deleteMetadata("custom:annotation", Example); - * - * // property (on constructor) - * result = Reflect.deleteMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.deleteMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function deleteMetadata(metadataKey, target, propertyKey) { - if (!IsObject(target)) - throw new TypeError(); - if (!IsUndefined(propertyKey)) - propertyKey = ToPropertyKey(propertyKey); - var metadataMap = GetOrCreateMetadataMap(target, propertyKey, /*Create*/ false); - if (IsUndefined(metadataMap)) - return false; - if (!metadataMap.delete(metadataKey)) - return false; - if (metadataMap.size > 0) - return true; - var targetMetadata = Metadata.get(target); - targetMetadata.delete(propertyKey); - if (targetMetadata.size > 0) - return true; - Metadata.delete(target); - return true; - } - exporter("deleteMetadata", deleteMetadata); - function DecorateConstructor(decorators, target) { - for (var i = decorators.length - 1; i >= 0; --i) { - var decorator = decorators[i]; - var decorated = decorator(target); - if (!IsUndefined(decorated) && !IsNull(decorated)) { - if (!IsConstructor(decorated)) - throw new TypeError(); - target = decorated; - } - } - return target; - } - function DecorateProperty(decorators, target, propertyKey, descriptor) { - for (var i = decorators.length - 1; i >= 0; --i) { - var decorator = decorators[i]; - var decorated = decorator(target, propertyKey, descriptor); - if (!IsUndefined(decorated) && !IsNull(decorated)) { - if (!IsObject(decorated)) - throw new TypeError(); - descriptor = decorated; - } - } - return descriptor; - } - function GetOrCreateMetadataMap(O, P, Create) { - var targetMetadata = Metadata.get(O); - if (IsUndefined(targetMetadata)) { - if (!Create) - return undefined; - targetMetadata = new _Map(); - Metadata.set(O, targetMetadata); - } - var metadataMap = targetMetadata.get(P); - if (IsUndefined(metadataMap)) { - if (!Create) - return undefined; - metadataMap = new _Map(); - targetMetadata.set(P, metadataMap); - } - return metadataMap; - } - // 3.1.1.1 OrdinaryHasMetadata(MetadataKey, O, P) - // https://rbuckton.github.io/reflect-metadata/#ordinaryhasmetadata - function OrdinaryHasMetadata(MetadataKey, O, P) { - var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P); - if (hasOwn) - return true; - var parent = OrdinaryGetPrototypeOf(O); - if (!IsNull(parent)) - return OrdinaryHasMetadata(MetadataKey, parent, P); - return false; - } - // 3.1.2.1 OrdinaryHasOwnMetadata(MetadataKey, O, P) - // https://rbuckton.github.io/reflect-metadata/#ordinaryhasownmetadata - function OrdinaryHasOwnMetadata(MetadataKey, O, P) { - var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false); - if (IsUndefined(metadataMap)) - return false; - return ToBoolean(metadataMap.has(MetadataKey)); - } - // 3.1.3.1 OrdinaryGetMetadata(MetadataKey, O, P) - // https://rbuckton.github.io/reflect-metadata/#ordinarygetmetadata - function OrdinaryGetMetadata(MetadataKey, O, P) { - var hasOwn = OrdinaryHasOwnMetadata(MetadataKey, O, P); - if (hasOwn) - return OrdinaryGetOwnMetadata(MetadataKey, O, P); - var parent = OrdinaryGetPrototypeOf(O); - if (!IsNull(parent)) - return OrdinaryGetMetadata(MetadataKey, parent, P); - return undefined; - } - // 3.1.4.1 OrdinaryGetOwnMetadata(MetadataKey, O, P) - // https://rbuckton.github.io/reflect-metadata/#ordinarygetownmetadata - function OrdinaryGetOwnMetadata(MetadataKey, O, P) { - var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false); - if (IsUndefined(metadataMap)) - return undefined; - return metadataMap.get(MetadataKey); - } - // 3.1.5.1 OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) - // https://rbuckton.github.io/reflect-metadata/#ordinarydefineownmetadata - function OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) { - var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ true); - metadataMap.set(MetadataKey, MetadataValue); - } - // 3.1.6.1 OrdinaryMetadataKeys(O, P) - // https://rbuckton.github.io/reflect-metadata/#ordinarymetadatakeys - function OrdinaryMetadataKeys(O, P) { - var ownKeys = OrdinaryOwnMetadataKeys(O, P); - var parent = OrdinaryGetPrototypeOf(O); - if (parent === null) - return ownKeys; - var parentKeys = OrdinaryMetadataKeys(parent, P); - if (parentKeys.length <= 0) - return ownKeys; - if (ownKeys.length <= 0) - return parentKeys; - var set = new _Set(); - var keys = []; - for (var _i = 0, ownKeys_1 = ownKeys; _i < ownKeys_1.length; _i++) { - var key = ownKeys_1[_i]; - var hasKey = set.has(key); - if (!hasKey) { - set.add(key); - keys.push(key); - } - } - for (var _a = 0, parentKeys_1 = parentKeys; _a < parentKeys_1.length; _a++) { - var key = parentKeys_1[_a]; - var hasKey = set.has(key); - if (!hasKey) { - set.add(key); - keys.push(key); - } - } - return keys; - } - // 3.1.7.1 OrdinaryOwnMetadataKeys(O, P) - // https://rbuckton.github.io/reflect-metadata/#ordinaryownmetadatakeys - function OrdinaryOwnMetadataKeys(O, P) { - var keys = []; - var metadataMap = GetOrCreateMetadataMap(O, P, /*Create*/ false); - if (IsUndefined(metadataMap)) - return keys; - var keysObj = metadataMap.keys(); - var iterator = GetIterator(keysObj); - var k = 0; - while (true) { - var next = IteratorStep(iterator); - if (!next) { - keys.length = k; - return keys; - } - var nextValue = IteratorValue(next); - try { - keys[k] = nextValue; - } - catch (e) { - try { - IteratorClose(iterator); - } - finally { - throw e; - } - } - k++; - } - } - // 6 ECMAScript Data Typ0es and Values - // https://tc39.github.io/ecma262/#sec-ecmascript-data-types-and-values - function Type(x) { - if (x === null) - return 1 /* Null */; - switch (typeof x) { - case "undefined": return 0 /* Undefined */; - case "boolean": return 2 /* Boolean */; - case "string": return 3 /* String */; - case "symbol": return 4 /* Symbol */; - case "number": return 5 /* Number */; - case "object": return x === null ? 1 /* Null */ : 6 /* Object */; - default: return 6 /* Object */; - } - } - // 6.1.1 The Undefined Type - // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-undefined-type - function IsUndefined(x) { - return x === undefined; - } - // 6.1.2 The Null Type - // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-null-type - function IsNull(x) { - return x === null; - } - // 6.1.5 The Symbol Type - // https://tc39.github.io/ecma262/#sec-ecmascript-language-types-symbol-type - function IsSymbol(x) { - return typeof x === "symbol"; - } - // 6.1.7 The Object Type - // https://tc39.github.io/ecma262/#sec-object-type - function IsObject(x) { - return typeof x === "object" ? x !== null : typeof x === "function"; - } - // 7.1 Type Conversion - // https://tc39.github.io/ecma262/#sec-type-conversion - // 7.1.1 ToPrimitive(input [, PreferredType]) - // https://tc39.github.io/ecma262/#sec-toprimitive - function ToPrimitive(input, PreferredType) { - switch (Type(input)) { - case 0 /* Undefined */: return input; - case 1 /* Null */: return input; - case 2 /* Boolean */: return input; - case 3 /* String */: return input; - case 4 /* Symbol */: return input; - case 5 /* Number */: return input; - } - var hint = PreferredType === 3 /* String */ ? "string" : PreferredType === 5 /* Number */ ? "number" : "default"; - var exoticToPrim = GetMethod(input, toPrimitiveSymbol); - if (exoticToPrim !== undefined) { - var result = exoticToPrim.call(input, hint); - if (IsObject(result)) - throw new TypeError(); - return result; - } - return OrdinaryToPrimitive(input, hint === "default" ? "number" : hint); - } - // 7.1.1.1 OrdinaryToPrimitive(O, hint) - // https://tc39.github.io/ecma262/#sec-ordinarytoprimitive - function OrdinaryToPrimitive(O, hint) { - if (hint === "string") { - var toString_1 = O.toString; - if (IsCallable(toString_1)) { - var result = toString_1.call(O); - if (!IsObject(result)) - return result; - } - var valueOf = O.valueOf; - if (IsCallable(valueOf)) { - var result = valueOf.call(O); - if (!IsObject(result)) - return result; - } - } - else { - var valueOf = O.valueOf; - if (IsCallable(valueOf)) { - var result = valueOf.call(O); - if (!IsObject(result)) - return result; - } - var toString_2 = O.toString; - if (IsCallable(toString_2)) { - var result = toString_2.call(O); - if (!IsObject(result)) - return result; - } - } - throw new TypeError(); - } - // 7.1.2 ToBoolean(argument) - // https://tc39.github.io/ecma262/2016/#sec-toboolean - function ToBoolean(argument) { - return !!argument; - } - // 7.1.12 ToString(argument) - // https://tc39.github.io/ecma262/#sec-tostring - function ToString(argument) { - return "" + argument; - } - // 7.1.14 ToPropertyKey(argument) - // https://tc39.github.io/ecma262/#sec-topropertykey - function ToPropertyKey(argument) { - var key = ToPrimitive(argument, 3 /* String */); - if (IsSymbol(key)) - return key; - return ToString(key); - } - // 7.2 Testing and Comparison Operations - // https://tc39.github.io/ecma262/#sec-testing-and-comparison-operations - // 7.2.2 IsArray(argument) - // https://tc39.github.io/ecma262/#sec-isarray - function IsArray(argument) { - return Array.isArray - ? Array.isArray(argument) - : argument instanceof Object - ? argument instanceof Array - : Object.prototype.toString.call(argument) === "[object Array]"; - } - // 7.2.3 IsCallable(argument) - // https://tc39.github.io/ecma262/#sec-iscallable - function IsCallable(argument) { - // NOTE: This is an approximation as we cannot check for [[Call]] internal method. - return typeof argument === "function"; - } - // 7.2.4 IsConstructor(argument) - // https://tc39.github.io/ecma262/#sec-isconstructor - function IsConstructor(argument) { - // NOTE: This is an approximation as we cannot check for [[Construct]] internal method. - return typeof argument === "function"; - } - // 7.2.7 IsPropertyKey(argument) - // https://tc39.github.io/ecma262/#sec-ispropertykey - function IsPropertyKey(argument) { - switch (Type(argument)) { - case 3 /* String */: return true; - case 4 /* Symbol */: return true; - default: return false; - } - } - // 7.3 Operations on Objects - // https://tc39.github.io/ecma262/#sec-operations-on-objects - // 7.3.9 GetMethod(V, P) - // https://tc39.github.io/ecma262/#sec-getmethod - function GetMethod(V, P) { - var func = V[P]; - if (func === undefined || func === null) - return undefined; - if (!IsCallable(func)) - throw new TypeError(); - return func; - } - // 7.4 Operations on Iterator Objects - // https://tc39.github.io/ecma262/#sec-operations-on-iterator-objects - function GetIterator(obj) { - var method = GetMethod(obj, iteratorSymbol); - if (!IsCallable(method)) - throw new TypeError(); // from Call - var iterator = method.call(obj); - if (!IsObject(iterator)) - throw new TypeError(); - return iterator; - } - // 7.4.4 IteratorValue(iterResult) - // https://tc39.github.io/ecma262/2016/#sec-iteratorvalue - function IteratorValue(iterResult) { - return iterResult.value; - } - // 7.4.5 IteratorStep(iterator) - // https://tc39.github.io/ecma262/#sec-iteratorstep - function IteratorStep(iterator) { - var result = iterator.next(); - return result.done ? false : result; - } - // 7.4.6 IteratorClose(iterator, completion) - // https://tc39.github.io/ecma262/#sec-iteratorclose - function IteratorClose(iterator) { - var f = iterator["return"]; - if (f) - f.call(iterator); - } - // 9.1 Ordinary Object Internal Methods and Internal Slots - // https://tc39.github.io/ecma262/#sec-ordinary-object-internal-methods-and-internal-slots - // 9.1.1.1 OrdinaryGetPrototypeOf(O) - // https://tc39.github.io/ecma262/#sec-ordinarygetprototypeof - function OrdinaryGetPrototypeOf(O) { - var proto = Object.getPrototypeOf(O); - if (typeof O !== "function" || O === functionPrototype) - return proto; - // TypeScript doesn't set __proto__ in ES5, as it's non-standard. - // Try to determine the superclass constructor. Compatible implementations - // must either set __proto__ on a subclass constructor to the superclass constructor, - // or ensure each class has a valid `constructor` property on its prototype that - // points back to the constructor. - // If this is not the same as Function.[[Prototype]], then this is definately inherited. - // This is the case when in ES6 or when using __proto__ in a compatible browser. - if (proto !== functionPrototype) - return proto; - // If the super prototype is Object.prototype, null, or undefined, then we cannot determine the heritage. - var prototype = O.prototype; - var prototypeProto = prototype && Object.getPrototypeOf(prototype); - if (prototypeProto == null || prototypeProto === Object.prototype) - return proto; - // If the constructor was not a function, then we cannot determine the heritage. - var constructor = prototypeProto.constructor; - if (typeof constructor !== "function") - return proto; - // If we have some kind of self-reference, then we cannot determine the heritage. - if (constructor === O) - return proto; - // we have a pretty good guess at the heritage. - return constructor; - } - // naive Map shim - function CreateMapPolyfill() { - var cacheSentinel = {}; - var arraySentinel = []; - var MapIterator = /** @class */ (function () { - function MapIterator(keys, values, selector) { - this._index = 0; - this._keys = keys; - this._values = values; - this._selector = selector; - } - MapIterator.prototype["@@iterator"] = function () { return this; }; - MapIterator.prototype[iteratorSymbol] = function () { return this; }; - MapIterator.prototype.next = function () { - var index = this._index; - if (index >= 0 && index < this._keys.length) { - var result = this._selector(this._keys[index], this._values[index]); - if (index + 1 >= this._keys.length) { - this._index = -1; - this._keys = arraySentinel; - this._values = arraySentinel; - } - else { - this._index++; - } - return { value: result, done: false }; - } - return { value: undefined, done: true }; - }; - MapIterator.prototype.throw = function (error) { - if (this._index >= 0) { - this._index = -1; - this._keys = arraySentinel; - this._values = arraySentinel; - } - throw error; - }; - MapIterator.prototype.return = function (value) { - if (this._index >= 0) { - this._index = -1; - this._keys = arraySentinel; - this._values = arraySentinel; - } - return { value: value, done: true }; - }; - return MapIterator; - }()); - return /** @class */ (function () { - function Map() { - this._keys = []; - this._values = []; - this._cacheKey = cacheSentinel; - this._cacheIndex = -2; - } - Object.defineProperty(Map.prototype, "size", { - get: function () { return this._keys.length; }, - enumerable: true, - configurable: true - }); - Map.prototype.has = function (key) { return this._find(key, /*insert*/ false) >= 0; }; - Map.prototype.get = function (key) { - var index = this._find(key, /*insert*/ false); - return index >= 0 ? this._values[index] : undefined; - }; - Map.prototype.set = function (key, value) { - var index = this._find(key, /*insert*/ true); - this._values[index] = value; - return this; - }; - Map.prototype.delete = function (key) { - var index = this._find(key, /*insert*/ false); - if (index >= 0) { - var size = this._keys.length; - for (var i = index + 1; i < size; i++) { - this._keys[i - 1] = this._keys[i]; - this._values[i - 1] = this._values[i]; - } - this._keys.length--; - this._values.length--; - if (key === this._cacheKey) { - this._cacheKey = cacheSentinel; - this._cacheIndex = -2; - } - return true; - } - return false; - }; - Map.prototype.clear = function () { - this._keys.length = 0; - this._values.length = 0; - this._cacheKey = cacheSentinel; - this._cacheIndex = -2; - }; - Map.prototype.keys = function () { return new MapIterator(this._keys, this._values, getKey); }; - Map.prototype.values = function () { return new MapIterator(this._keys, this._values, getValue); }; - Map.prototype.entries = function () { return new MapIterator(this._keys, this._values, getEntry); }; - Map.prototype["@@iterator"] = function () { return this.entries(); }; - Map.prototype[iteratorSymbol] = function () { return this.entries(); }; - Map.prototype._find = function (key, insert) { - if (this._cacheKey !== key) { - this._cacheIndex = this._keys.indexOf(this._cacheKey = key); - } - if (this._cacheIndex < 0 && insert) { - this._cacheIndex = this._keys.length; - this._keys.push(key); - this._values.push(undefined); - } - return this._cacheIndex; - }; - return Map; - }()); - function getKey(key, _) { - return key; - } - function getValue(_, value) { - return value; - } - function getEntry(key, value) { - return [key, value]; - } - } - // naive Set shim - function CreateSetPolyfill() { - return /** @class */ (function () { - function Set() { - this._map = new _Map(); - } - Object.defineProperty(Set.prototype, "size", { - get: function () { return this._map.size; }, - enumerable: true, - configurable: true - }); - Set.prototype.has = function (value) { return this._map.has(value); }; - Set.prototype.add = function (value) { return this._map.set(value, value), this; }; - Set.prototype.delete = function (value) { return this._map.delete(value); }; - Set.prototype.clear = function () { this._map.clear(); }; - Set.prototype.keys = function () { return this._map.keys(); }; - Set.prototype.values = function () { return this._map.values(); }; - Set.prototype.entries = function () { return this._map.entries(); }; - Set.prototype["@@iterator"] = function () { return this.keys(); }; - Set.prototype[iteratorSymbol] = function () { return this.keys(); }; - return Set; - }()); - } - // naive WeakMap shim - function CreateWeakMapPolyfill() { - var UUID_SIZE = 16; - var keys = HashMap.create(); - var rootKey = CreateUniqueKey(); - return /** @class */ (function () { - function WeakMap() { - this._key = CreateUniqueKey(); - } - WeakMap.prototype.has = function (target) { - var table = GetOrCreateWeakMapTable(target, /*create*/ false); - return table !== undefined ? HashMap.has(table, this._key) : false; - }; - WeakMap.prototype.get = function (target) { - var table = GetOrCreateWeakMapTable(target, /*create*/ false); - return table !== undefined ? HashMap.get(table, this._key) : undefined; - }; - WeakMap.prototype.set = function (target, value) { - var table = GetOrCreateWeakMapTable(target, /*create*/ true); - table[this._key] = value; - return this; - }; - WeakMap.prototype.delete = function (target) { - var table = GetOrCreateWeakMapTable(target, /*create*/ false); - return table !== undefined ? delete table[this._key] : false; - }; - WeakMap.prototype.clear = function () { - // NOTE: not a real clear, just makes the previous data unreachable - this._key = CreateUniqueKey(); - }; - return WeakMap; - }()); - function CreateUniqueKey() { - var key; - do - key = "@@WeakMap@@" + CreateUUID(); - while (HashMap.has(keys, key)); - keys[key] = true; - return key; - } - function GetOrCreateWeakMapTable(target, create) { - if (!hasOwn.call(target, rootKey)) { - if (!create) - return undefined; - Object.defineProperty(target, rootKey, { value: HashMap.create() }); - } - return target[rootKey]; - } - function FillRandomBytes(buffer, size) { - for (var i = 0; i < size; ++i) - buffer[i] = Math.random() * 0xff | 0; - return buffer; - } - function GenRandomBytes(size) { - if (typeof Uint8Array === "function") { - if (typeof crypto !== "undefined") - return crypto.getRandomValues(new Uint8Array(size)); - if (typeof msCrypto !== "undefined") - return msCrypto.getRandomValues(new Uint8Array(size)); - return FillRandomBytes(new Uint8Array(size), size); - } - return FillRandomBytes(new Array(size), size); - } - function CreateUUID() { - var data = GenRandomBytes(UUID_SIZE); - // mark as random - RFC 4122 § 4.4 - data[6] = data[6] & 0x4f | 0x40; - data[8] = data[8] & 0xbf | 0x80; - var result = ""; - for (var offset = 0; offset < UUID_SIZE; ++offset) { - var byte = data[offset]; - if (offset === 4 || offset === 6 || offset === 8) - result += "-"; - if (byte < 16) - result += "0"; - result += byte.toString(16).toLowerCase(); - } - return result; - } - } - // uses a heuristic used by v8 and chakra to force an object into dictionary mode. - function MakeDictionary(obj) { - obj.__ = undefined; - delete obj.__; - return obj; - } - }); -})(Reflect || (Reflect = {})); diff --git a/WechatBot/node_modules/reflect-metadata/docs/ecmarkup.css b/WechatBot/node_modules/reflect-metadata/docs/ecmarkup.css deleted file mode 100644 index cb554c728..000000000 --- a/WechatBot/node_modules/reflect-metadata/docs/ecmarkup.css +++ /dev/null @@ -1,909 +0,0 @@ -body { - display: flex; - font-size: 18px; - line-height: 1.5; - font-family: Cambria, Palatino Linotype, Palatino, Liberation Serif, serif; - padding: 0; - margin: 0; - color: #111; -} - -#spec-container { - padding: 0 20px; - flex-grow: 1; - flex-basis: 66%; - box-sizing: border-box; - overflow: hidden; -} - -body.oldtoc { - margin: 0 auto; -} - -a { - text-decoration: none; - color: #206ca7; -} - -a:visited { - color: #206ca7; -} - -a:hover { - text-decoration: underline; - color: #239dee; -} - - -code { - font-weight: bold; - font-family: Consolas, Monaco, monospace; - white-space: pre; -} - -pre code { - font-weight: inherit; -} - -pre code.hljs { - background-color: #fff; - margin: 0; - padding: 0; -} - -ol.toc { - list-style: none; - padding-left: 0; -} - -ol.toc ol.toc { - padding-left: 2ex; - list-style: none; -} - -var { - color: #2aa198; - transition: background-color 0.25s ease; - cursor: pointer; -} - -var.referenced { - background-color: #ffff33; -} - -emu-const { - font-family: sans-serif; -} - -emu-val { - font-weight: bold; -} -emu-alg ol, emu-alg ol ol ol ol { - list-style-type: decimal; -} - -emu-alg ol ol, emu-alg ol ol ol ol ol { - list-style-type: lower-alpha; -} - -emu-alg ol ol ol, ol ol ol ol ol ol { - list-style-type: lower-roman; -} - -emu-eqn { - display: block; - margin-left: 4em; -} - -emu-eqn.inline { - display: inline; - margin: 0; -} - -emu-eqn div:first-child { - margin-left: -2em; -} - -emu-note { - margin: 1em 0; - color: #666; - border-left: 5px solid #ccc; - display: flex; - flex-direction: row; -} - -emu-note > span.note { - flex-basis: 100px; - min-width: 100px; - flex-grow: 0; - flex-shrink: 1; - text-transform: uppercase; - padding-left: 5px; -} - -emu-note[type=editor] { - border-left-color: #faa; -} - -emu-note > div.note-contents { - flex-grow: 1; - flex-shrink: 1; -} - -emu-note > div.note-contents > p:first-of-type { - margin-top: 0; -} - -emu-note > div.note-contents > p:last-of-type { - margin-bottom: 0; -} - -emu-figure { - display: block; -} - -emu-example { - display: block; - margin: 1em 3em; -} - -emu-example figure figcaption { - margin-top: 0.5em; - text-align: left; -} - -emu-figure figure, -emu-example figure, -emu-table figure { - display: flex; - flex-direction: column; - align-items: center; -} - -emu-production { - display: block; - margin-top: 1em; - margin-bottom: 1em; - margin-left: 5ex; -} - -emu-grammar.inline, emu-production.inline, -emu-grammar.inline emu-production emu-rhs, emu-production.inline emu-rhs, -emu-grammar[collapsed] emu-production emu-rhs, emu-production[collapsed] emu-rhs { - display: inline; - padding-left: 1ex; - margin-left: 0; -} - -emu-grammar[collapsed] emu-production, emu-production[collapsed] { - margin: 0; -} - -emu-constraints { - font-size: .75em; - margin-right: 1ex; -} - -emu-gann { - margin-right: 1ex; -} - -emu-gann emu-t:last-child, -emu-gann emu-nt:last-child { - margin-right: 0; -} - -emu-geq { - margin-left: 1ex; - font-weight: bold; -} - -emu-oneof { - font-weight: bold; - margin-left: 1ex; -} - -emu-nt { - display: inline-block; - font-style: italic; - white-space: nowrap; - text-indent: 0; -} - -emu-nt a, emu-nt a:visited { - color: #333; -} - -emu-rhs emu-nt { - margin-right: 1ex; -} - -emu-t { - display: inline-block; - font-family: monospace; - font-weight: bold; - white-space: nowrap; - text-indent: 0; -} - -emu-production emu-t { - margin-right: 1ex; -} - -emu-rhs { - display: block; - padding-left: 75px; - text-indent: -25px; -} - -emu-mods { - font-size: .85em; - vertical-align: sub; - font-style: normal; - font-weight: normal; -} - -emu-production[collapsed] emu-mods { - display: none; -} - -emu-params, emu-opt { - margin-right: 1ex; - font-family: monospace; -} - -emu-params, emu-constraints { - color: #2aa198; -} - -emu-opt { - color: #b58900; -} - -emu-gprose { - font-size: 0.9em; - font-family: Helvetica, Arial, sans-serif; -} - -h1.shortname { - color: #f60; - font-size: 1.5em; - margin: 0; -} - -h1.version { - color: #f60; - font-size: 1.5em; - margin: 0; -} - -h1.title { - margin-top: 0; - color: #f60; -} - -h1.first { - margin-top: 0; -} - -h1, h2, h3, h4, h5, h6 { - position: relative; -} - -h1 .secnum { - text-decoration: none; - margin-right: 10px; -} - -h1 span.title { - order: 2; -} - - -h1 { font-size: 2.67em; margin-top: 2em; margin-bottom: 0; line-height: 1em;} -h2 { font-size: 2em; } -h3 { font-size: 1.56em; } -h4 { font-size: 1.25em; } -h5 { font-size: 1.11em; } -h6 { font-size: 1em; } - -h1:hover span.utils { - display: block; -} - -span.utils { - font-size: 18px; - line-height: 18px; - display: none; - position: absolute; - top: 100%; - left: 0; - right: 0; - font-weight: normal; -} - -span.utils:before { - content: "⤷"; - display: inline-block; - padding: 0 5px; -} - -span.utils > * { - display: inline-block; - margin-right: 20px; -} - -h1 span.utils span.anchor a, -h2 span.utils span.anchor a, -h3 span.utils span.anchor a, -h4 span.utils span.anchor a, -h5 span.utils span.anchor a, -h6 span.utils span.anchor a { - text-decoration: none; - font-variant: small-caps; -} - -h1 span.utils span.anchor a:hover, -h2 span.utils span.anchor a:hover, -h3 span.utils span.anchor a:hover, -h4 span.utils span.anchor a:hover, -h5 span.utils span.anchor a:hover, -h6 span.utils span.anchor a:hover { - color: #333; -} - -emu-intro h1, emu-clause h1, emu-annex h1 { font-size: 2em; } -emu-intro h2, emu-clause h2, emu-annex h2 { font-size: 1.56em; } -emu-intro h3, emu-clause h3, emu-annex h3 { font-size: 1.25em; } -emu-intro h4, emu-clause h4, emu-annex h4 { font-size: 1.11em; } -emu-intro h5, emu-clause h5, emu-annex h5 { font-size: 1em; } -emu-intro h6, emu-clause h6, emu-annex h6 { font-size: 0.9em; } -emu-intro emu-intro h1, emu-clause emu-clause h1, emu-annex emu-annex h1 { font-size: 1.56em; } -emu-intro emu-intro h2, emu-clause emu-clause h2, emu-annex emu-annex h2 { font-size: 1.25em; } -emu-intro emu-intro h3, emu-clause emu-clause h3, emu-annex emu-annex h3 { font-size: 1.11em; } -emu-intro emu-intro h4, emu-clause emu-clause h4, emu-annex emu-annex h4 { font-size: 1em; } -emu-intro emu-intro h5, emu-clause emu-clause h5, emu-annex emu-annex h5 { font-size: 0.9em; } -emu-intro emu-intro emu-intro h1, emu-clause emu-clause emu-clause h1, emu-annex emu-annex emu-annex h1 { font-size: 1.25em; } -emu-intro emu-intro emu-intro h2, emu-clause emu-clause emu-clause h2, emu-annex emu-annex emu-annex h2 { font-size: 1.11em; } -emu-intro emu-intro emu-intro h3, emu-clause emu-clause emu-clause h3, emu-annex emu-annex emu-annex h3 { font-size: 1em; } -emu-intro emu-intro emu-intro h4, emu-clause emu-clause emu-clause h4, emu-annex emu-annex emu-annex h4 { font-size: 0.9em; } -emu-intro emu-intro emu-intro emu-intro h1, emu-clause emu-clause emu-clause emu-clause h1, emu-annex emu-annex emu-annex emu-annex h1 { font-size: 1.11em; } -emu-intro emu-intro emu-intro emu-intro h2, emu-clause emu-clause emu-clause emu-clause h2, emu-annex emu-annex emu-annex emu-annex h2 { font-size: 1em; } -emu-intro emu-intro emu-intro emu-intro h3, emu-clause emu-clause emu-clause emu-clause h3, emu-annex emu-annex emu-annex emu-annex h3 { font-size: 0.9em; } -emu-intro emu-intro emu-intro emu-intro emu-intro h1, emu-clause emu-clause emu-clause emu-clause emu-clause h1, emu-annex emu-annex emu-annex emu-annex emu-annex h1 { font-size: 1em; } -emu-intro emu-intro emu-intro emu-intro emu-intro h2, emu-clause emu-clause emu-clause emu-clause emu-clause h2, emu-annex emu-annex emu-annex emu-annex emu-annex h2 { font-size: 0.9em; } -emu-intro emu-intro emu-intro emu-intro emu-intro emu-intro h1, emu-clause emu-clause emu-clause emu-clause emu-clause emu-clause h1, emu-annex emu-annex emu-annex emu-annex emu-annex emu-annex h1 { font-size: 0.9em } - -emu-clause, emu-intro, emu-annex { - display: block; -} - -/* Figures and tables */ -figure { display: block; margin: 1em 0 3em 0; } -figure object { display: block; margin: 0 auto; } -figure table.real-table { margin: 0 auto; } -figure figcaption { - display: block; - color: #555555; - font-weight: bold; - text-align: center; -} - -emu-table table { - margin: 0 auto; -} - -emu-table table, table.real-table { - border-collapse: collapse; -} - -emu-table td, emu-table th, table.real-table td, table.real-table th { - border: 1px solid black; - padding: 0.4em; - vertical-align: baseline; -} -emu-table th, emu-table thead td, table.real-table th { - background-color: #eeeeee; -} - -/* Note: the left content edges of table.lightweight-table >tbody >tr >td - and div.display line up. */ -table.lightweight-table { - border-collapse: collapse; - margin: 0 0 0 1.5em; -} -table.lightweight-table td, table.lightweight-table th { - border: none; - padding: 0 0.5em; - vertical-align: baseline; -} - -/* diff styles */ -ins { - background-color: #e0f8e0; - text-decoration: none; - border-bottom: 1px solid #396; -} - -del { - background-color: #fee; -} - -ins.block, del.block, -emu-production > ins, emu-production > del, -emu-grammar > ins, emu-grammar > del { - display: block; -} -emu-rhs > ins, emu-rhs > del { - display: inline; -} - -tr.ins > td > ins { - border-bottom: none; -} - -tr.ins > td { - background-color: #e0f8e0; -} - -tr.del > td { - background-color: #fee; -} - -/* Menu Styles */ -#menu-toggle { - font-size: 2em; - - position: fixed; - top: 0; - left: 0; - width: 1.5em; - height: 1.5em; - z-index: 3; - visibility: hidden; - color: #1567a2; - background-color: #fff; - - line-height: 1.5em; - text-align: center; - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none;; - - cursor: pointer; -} - -#menu { - display: flex; - flex-direction: column; - width: 33%; height: 100vh; - max-width: 500px; - box-sizing: border-box; - background-color: #ddd; - overflow: hidden; - transition: opacity 0.1s linear; - padding: 0 5px; - position: fixed; - left: 0; top: 0; - border-right: 2px solid #bbb; - - z-index: 2; -} - -#menu-spacer { - flex-basis: 33%; - max-width: 500px; - flex-grow: 0; - flex-shrink: 0; -} - -#menu a { - color: #1567a2; -} - -#menu.active { - display: flex; - opacity: 1; - z-index: 2; -} - -#menu-pins { - flex-grow: 1; - display: none; -} - -#menu-pins.active { - display: block; -} - -#menu-pins-list { - margin: 0; - padding: 0; - counter-reset: pins-counter; -} - -#menu-pins-list > li:before { - content: counter(pins-counter); - counter-increment: pins-counter; - display: inline-block; - width: 25px; - text-align: center; - border: 1px solid #bbb; - padding: 2px; - margin: 4px; - box-sizing: border-box; - line-height: 1em; - background-color: #ccc; - border-radius: 4px; -} -#menu-toc > ol { - padding: 0; - flex-grow: 1; -} - -#menu-toc > ol li { - padding: 0; -} - -#menu-toc > ol , #menu-toc > ol ol { - list-style-type: none; - margin: 0; - padding: 0; -} - -#menu-toc > ol ol { - padding-left: 0.75em; -} - -#menu-toc li { - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; -} - -#menu-toc .item-toggle { - display: inline-block; - transform: rotate(-45deg) translate(-5px, -5px); - transition: transform 0.1s ease; - text-align: center; - width: 20px; - - color: #aab; - - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none;; - - cursor: pointer; -} - -#menu-toc .item-toggle-none { - display: inline-block; - width: 20px; -} - -#menu-toc li.active > .item-toggle { - transform: rotate(45deg) translate(-5px, -5px); -} - -#menu-toc li > ol { - display: none; -} - -#menu-toc li.active > ol { - display: block; -} - -#menu-toc li.revealed > a { - background-color: #bbb; - font-weight: bold; - /* - background-color: #222; - color: #c6d8e4; - */ -} - -#menu-toc li.revealed-leaf> a { - color: #206ca7; - /* - background-color: #222; - color: #c6d8e4; - */ -} - -#menu-toc li.revealed > .item-toggle { - transform: rotate(45deg) translate(-5px, -5px); -} - -#menu-toc li.revealed > ol { - display: block; -} - -#menu-toc li > a { - padding: 2px 5px; -} - -#menu > * { - margin-bottom: 5px; -} - -.menu-pane-header { - padding: 0 5px; - text-transform: uppercase; - background-color: #aaa; - color: #335; - font-weight: bold; - letter-spacing: 2px; - flex-grow: 0; - flex-shrink: 0; - font-size: 0.8em; -} - -#menu-toc { - display: flex; - flex-direction: column; - width: 100%; - overflow: hidden; - flex-grow: 1; -} - -#menu-toc ol.toc { - overflow-x: hidden; - overflow-y: auto; -} - -#menu-search { - position: relative; - flex-grow: 0; - flex-shrink: 0; - width: 100%; - - display: flex; - flex-direction: column; - - max-height: 300px; -} - -#menu-trace-list { - display: none; -} - -#menu-search-box { - box-sizing: border-box; - display: block; - width: 100%; - margin: 5px 0 0 0; - font-size: 1em; - padding: 2px; - background-color: #bbb; - border: 1px solid #999; -} - -#menu-search-results { - overflow-x: hidden; - overflow-y: auto; -} - -li.menu-search-result-clause:before { - content: 'clause'; - width: 40px; - display: inline-block; - text-align: right; - padding-right: 1ex; - color: #666; - font-size: 75%; -} -li.menu-search-result-op:before { - content: 'op'; - width: 40px; - display: inline-block; - text-align: right; - padding-right: 1ex; - color: #666; - font-size: 75%; -} - -li.menu-search-result-prod:before { - content: 'prod'; - width: 40px; - display: inline-block; - text-align: right; - padding-right: 1ex; - color: #666; - font-size: 75% -} - - -li.menu-search-result-term:before { - content: 'term'; - width: 40px; - display: inline-block; - text-align: right; - padding-right: 1ex; - color: #666; - font-size: 75% -} - -#menu-search-results ul { - padding: 0 5px; - margin: 0; -} - -#menu-search-results li { - white-space: nowrap; - text-overflow: ellipsis; -} - - -#menu-trace-list { - counter-reset: item; - margin: 0 0 0 20px; - padding: 0; -} -#menu-trace-list li { - display: block; - white-space: nowrap; -} - -#menu-trace-list li .secnum:after { - content: " "; -} -#menu-trace-list li:before { - content: counter(item) " "; - background-color: #222; - counter-increment: item; - color: #999; - width: 20px; - height: 20px; - line-height: 20px; - display: inline-block; - text-align: center; - margin: 2px 4px 2px 0; -} - -@media (max-width: 1000px) { - body { - margin: 0; - display: block; - } - - #menu { - display: none; - padding-top: 3em; - width: 450px; - } - - #menu.active { - position: fixed; - height: 100%; - left: 0; - top: 0; - right: 300px; - } - - #menu-toggle { - visibility: visible; - } - - #spec-container { - padding: 0 5px; - } - - #references-pane-spacer { - display: none; - } -} - -@media only screen and (max-width: 800px) { - #menu { - width: 100%; - } - - h1 .secnum:empty { - margin: 0; padding: 0; - } -} - - -/* Toolbox */ -.toolbox { - position: absolute; - background: #ddd; - border: 1px solid #aaa; - display: none; - color: #eee; - padding: 5px; - border-radius: 3px; -} - -.toolbox.active { - display: inline-block; -} - -.toolbox a { - text-decoration: none; - padding: 0 5px; -} - -.toolbox a:hover { - text-decoration: underline; -} - -.toolbox:after, .toolbox:before { - top: 100%; - left: 15px; - border: solid transparent; - content: " "; - height: 0; - width: 0; - position: absolute; - pointer-events: none; -} - -.toolbox:after { - border-color: rgba(0, 0, 0, 0); - border-top-color: #ddd; - border-width: 10px; - margin-left: -10px; -} -.toolbox:before { - border-color: rgba(204, 204, 204, 0); - border-top-color: #aaa; - border-width: 12px; - margin-left: -12px; -} - -#references-pane-container { - position: fixed; - bottom: 0; - left: 0; - right: 0; - height: 250px; - display: none; - background-color: #ddd; - z-index: 1; -} - -#references-pane-table-container { - overflow-x: hidden; - overflow-y: auto; -} - -#references-pane-spacer { - flex-basis: 33%; - max-width: 500px; -} - -#references-pane { - flex-grow: 1; - overflow: hidden; - display: flex; - flex-direction: column; -} - -#references-pane-container.active { - display: flex; -} - -#references-pane-close:after { - content: '✖'; - float: right; - cursor: pointer; -} - -#references-pane table tr td:first-child { - text-align: right; - padding-right: 5px; -} - -@media print { - #menu-toggle { - display: none; - } -} diff --git a/WechatBot/node_modules/reflect-metadata/docs/ecmarkup.js b/WechatBot/node_modules/reflect-metadata/docs/ecmarkup.js deleted file mode 100755 index 6ad1a1f9c..000000000 --- a/WechatBot/node_modules/reflect-metadata/docs/ecmarkup.js +++ /dev/null @@ -1,893 +0,0 @@ -"use strict"; - -function Search(menu) { - this.menu = menu; - this.$search = document.getElementById('menu-search'); - this.$searchBox = document.getElementById('menu-search-box'); - this.$searchResults = document.getElementById('menu-search-results'); - - this.loadBiblio(); - - document.addEventListener('keydown', this.documentKeydown.bind(this)); - - this.$searchBox.addEventListener('keydown', debounce(this.searchBoxKeydown.bind(this), { stopPropagation: true })); - this.$searchBox.addEventListener('keyup', debounce(this.searchBoxKeyup.bind(this), { stopPropagation: true })); -} - -Search.prototype.loadBiblio = function () { - var $biblio = document.getElementById('menu-search-biblio'); - if (!$biblio) { - this.biblio = []; - } else { - this.biblio = JSON.parse($biblio.textContent); - this.biblio.clauses = this.biblio.filter(function (e) { return e.type === 'clause' }); - this.biblio.byId = this.biblio.reduce(function (map, entry) { - map[entry.id] = entry; - return map; - }, {}); - } -} - -Search.prototype.documentKeydown = function (e) { - if (e.keyCode === 191) { - e.preventDefault(); - e.stopPropagation(); - this.triggerSearch(); - } -} - -Search.prototype.searchBoxKeydown = function (e) { - e.stopPropagation(); - e.preventDefault(); - if (e.keyCode === 191 && e.target.value.length === 0) { - e.preventDefault(); - } else if (e.keyCode === 13) { - e.preventDefault(); - this.selectResult(); - } -} - -Search.prototype.searchBoxKeyup = function (e) { - if (e.keyCode === 13 || e.keyCode === 9) { - return; - } - - this.search(e.target.value); -} - - -Search.prototype.triggerSearch = function (e) { - if (this.menu.isVisible()) { - this._closeAfterSearch = false; - } else { - this._closeAfterSearch = true; - this.menu.show(); - } - - this.$searchBox.focus(); - this.$searchBox.select(); -} -// bit 12 - Set if the result starts with searchString -// bits 8-11: 8 - number of chunks multiplied by 2 if cases match, otherwise 1. -// bits 1-7: 127 - length of the entry -// General scheme: prefer case sensitive matches with fewer chunks, and otherwise -// prefer shorter matches. -function relevance(result, searchString) { - var relevance = 0; - - relevance = Math.max(0, 8 - result.match.chunks) << 7; - - if (result.match.caseMatch) { - relevance *= 2; - } - - if (result.match.prefix) { - relevance += 2048 - } - - relevance += Math.max(0, 255 - result.entry.key.length); - - return relevance; -} - -Search.prototype.search = function (searchString) { - var s = Date.now(); - - if (searchString === '') { - this.displayResults([]); - this.hideSearch(); - return; - } else { - this.showSearch(); - } - - if (searchString.length === 1) { - this.displayResults([]); - return; - } - - var results; - - if (/^[\d\.]*$/.test(searchString)) { - results = this.biblio.clauses.filter(function (clause) { - return clause.number.substring(0, searchString.length) === searchString; - }).map(function (clause) { - return { entry: clause }; - }); - } else { - results = []; - - for (var i = 0; i < this.biblio.length; i++) { - var entry = this.biblio[i]; - if (!entry.key) { - // biblio entries without a key aren't searchable - continue; - } - - var match = fuzzysearch(searchString, entry.key); - if (match) { - results.push({ entry: entry, match: match }); - } - } - - results.forEach(function (result) { - result.relevance = relevance(result, searchString); - }); - - results = results.sort(function (a, b) { return b.relevance - a.relevance }); - - } - - if (results.length > 50) { - results = results.slice(0, 50); - } - - this.displayResults(results); -} -Search.prototype.hideSearch = function () { - this.$search.classList.remove('active'); -} - -Search.prototype.showSearch = function () { - this.$search.classList.add('active'); -} - -Search.prototype.selectResult = function () { - var $first = this.$searchResults.querySelector('li:first-child a'); - - if ($first) { - document.location = $first.getAttribute('href'); - } - - this.$searchBox.value = ''; - this.$searchBox.blur(); - this.displayResults([]); - this.hideSearch(); - - if (this._closeAfterSearch) { - this.menu.hide(); - } -} - -Search.prototype.displayResults = function (results) { - if (results.length > 0) { - this.$searchResults.classList.remove('no-results'); - - var html = '
    '; - - results.forEach(function (result) { - var entry = result.entry; - var id = entry.id; - var cssClass = ''; - var text = ''; - - if (entry.type === 'clause') { - var number = entry.number ? entry.number + ' ' : ''; - text = number + entry.key; - cssClass = 'clause'; - id = entry.id; - } else if (entry.type === 'production') { - text = entry.key; - cssClass = 'prod'; - id = entry.id; - } else if (entry.type === 'op') { - text = entry.key; - cssClass = 'op'; - id = entry.id || entry.refId; - } else if (entry.type === 'term') { - text = entry.key; - cssClass = 'term'; - id = entry.id || entry.refId; - } - - if (text) { - html += '' - } - }); - - html += '
' - - this.$searchResults.innerHTML = html; - } else { - this.$searchResults.innerHTML = ''; - this.$searchResults.classList.add('no-results'); - } -} - - -function Menu() { - this.$toggle = document.getElementById('menu-toggle'); - this.$menu = document.getElementById('menu'); - this.$toc = document.querySelector('menu-toc > ol'); - this.$pins = document.querySelector('#menu-pins'); - this.$pinList = document.getElementById('menu-pins-list'); - this.$toc = document.querySelector('#menu-toc > ol'); - this.$specContainer = document.getElementById('spec-container'); - this.search = new Search(this); - - this._pinnedIds = {}; - this.loadPinEntries(); - - // toggle menu - this.$toggle.addEventListener('click', this.toggle.bind(this)); - - // keydown events for pinned clauses - document.addEventListener('keydown', this.documentKeydown.bind(this)); - - // toc expansion - var tocItems = this.$menu.querySelectorAll('#menu-toc li'); - for (var i = 0; i < tocItems.length; i++) { - var $item = tocItems[i]; - $item.addEventListener('click', function($item, event) { - $item.classList.toggle('active'); - event.stopPropagation(); - }.bind(null, $item)); - } - - // close toc on toc item selection - var tocLinks = this.$menu.querySelectorAll('#menu-toc li > a'); - for (var i = 0; i < tocLinks.length; i++) { - var $link = tocLinks[i]; - $link.addEventListener('click', function(event) { - this.toggle(); - event.stopPropagation(); - }.bind(this)); - } - - // update active clause on scroll - window.addEventListener('scroll', debounce(this.updateActiveClause.bind(this))); - this.updateActiveClause(); - - // prevent menu scrolling from scrolling the body - this.$toc.addEventListener('wheel', function (e) { - var target = e.currentTarget; - var offTop = e.deltaY < 0 && target.scrollTop === 0; - if (offTop) { - e.preventDefault(); - } - var offBottom = e.deltaY > 0 - && target.offsetHeight + target.scrollTop >= target.scrollHeight; - - if (offBottom) { - e.preventDefault(); - } - }) -} - -Menu.prototype.documentKeydown = function (e) { - e.stopPropagation(); - if (e.keyCode === 80) { - this.togglePinEntry(); - } else if (e.keyCode > 48 && e.keyCode < 58) { - this.selectPin(e.keyCode - 49); - } -} - -Menu.prototype.updateActiveClause = function () { - this.setActiveClause(findActiveClause(this.$specContainer)) -} - -Menu.prototype.setActiveClause = function (clause) { - this.$activeClause = clause; - this.revealInToc(this.$activeClause); -} - -Menu.prototype.revealInToc = function (path) { - var current = this.$toc.querySelectorAll('li.revealed'); - for (var i = 0; i < current.length; i++) { - current[i].classList.remove('revealed'); - current[i].classList.remove('revealed-leaf'); - } - - var current = this.$toc; - var index = 0; - while (index < path.length) { - var children = current.children; - for (var i = 0; i < children.length; i++) { - if ('#' + path[index].id === children[i].children[1].getAttribute('href') ) { - children[i].classList.add('revealed'); - if (index === path.length - 1) { - children[i].classList.add('revealed-leaf'); - var rect = children[i].getBoundingClientRect(); - this.$toc.getBoundingClientRect().top - var tocRect = this.$toc.getBoundingClientRect(); - if (rect.top + 10 > tocRect.bottom) { - this.$toc.scrollTop = this.$toc.scrollTop + (rect.top - tocRect.bottom) + (rect.bottom - rect.top); - } else if (rect.top < tocRect.top) { - this.$toc.scrollTop = this.$toc.scrollTop - (tocRect.top - rect.top); - } - } - current = children[i].querySelector('ol'); - index++; - break; - } - } - - } -} - -function findActiveClause(root, path) { - var clauses = new ClauseWalker(root); - var $clause; - var found = false; - var path = path || []; - - while ($clause = clauses.nextNode()) { - var rect = $clause.getBoundingClientRect(); - var $header = $clause.children[0]; - var marginTop = parseInt(getComputedStyle($header)["margin-top"]); - - if ((rect.top - marginTop) <= 0 && rect.bottom > 0) { - found = true; - return findActiveClause($clause, path.concat($clause)) || path; - } - } - - return path; -} - -function ClauseWalker(root) { - var previous; - var treeWalker = document.createTreeWalker( - root, - NodeFilter.SHOW_ELEMENT, - { - acceptNode: function (node) { - if (previous === node.parentNode) { - return NodeFilter.FILTER_REJECT; - } else { - previous = node; - } - if (node.nodeName === 'EMU-CLAUSE' || node.nodeName === 'EMU-INTRO' || node.nodeName === 'EMU-ANNEX') { - return NodeFilter.FILTER_ACCEPT; - } else { - return NodeFilter.FILTER_SKIP; - } - } - }, - false - ); - - return treeWalker; -} - -Menu.prototype.toggle = function () { - this.$menu.classList.toggle('active'); -} - -Menu.prototype.show = function () { - this.$menu.classList.add('active'); -} - -Menu.prototype.hide = function () { - this.$menu.classList.remove('active'); -} - -Menu.prototype.isVisible = function() { - return this.$menu.classList.contains('active'); -} - -Menu.prototype.showPins = function () { - this.$pins.classList.add('active'); -} - -Menu.prototype.hidePins = function () { - this.$pins.classList.remove('active'); -} - -Menu.prototype.addPinEntry = function (id) { - var entry = this.search.biblio.byId[id]; - if (!entry) { - // id was deleted after pin (or something) so remove it - delete this._pinnedIds[id]; - this.persistPinEntries(); - return; - } - - if (entry.type === 'clause') { - var prefix; - if (entry.number) { - prefix = entry.number + ' '; - } else { - prefix = ''; - } - this.$pinList.innerHTML += '
  • ' + prefix + entry.titleHTML + '
  • '; - } else { - this.$pinList.innerHTML += '
  • ' + entry.key + '
  • '; - } - - if (Object.keys(this._pinnedIds).length === 0) { - this.showPins(); - } - this._pinnedIds[id] = true; - this.persistPinEntries(); -} - -Menu.prototype.removePinEntry = function (id) { - var item = this.$pinList.querySelector('a[href="#' + id + '"]').parentNode; - this.$pinList.removeChild(item); - delete this._pinnedIds[id]; - if (Object.keys(this._pinnedIds).length === 0) { - this.hidePins(); - } - - this.persistPinEntries(); -} - -Menu.prototype.persistPinEntries = function () { - try { - if (!window.localStorage) return; - } catch (e) { - return; - } - - localStorage.pinEntries = JSON.stringify(Object.keys(this._pinnedIds)); -} - -Menu.prototype.loadPinEntries = function () { - try { - if (!window.localStorage) return; - } catch (e) { - return; - } - - var pinsString = window.localStorage.pinEntries; - if (!pinsString) return; - var pins = JSON.parse(pinsString); - for(var i = 0; i < pins.length; i++) { - this.addPinEntry(pins[i]); - } -} - -Menu.prototype.togglePinEntry = function (id) { - if (!id) { - id = this.$activeClause[this.$activeClause.length - 1].id; - } - - if (this._pinnedIds[id]) { - this.removePinEntry(id); - } else { - this.addPinEntry(id); - } -} - -Menu.prototype.selectPin = function (num) { - document.location = this.$pinList.children[num].children[0].href; -} - -var menu; -function init() { - menu = new Menu(); - var $container = document.getElementById('spec-container'); - $container.addEventListener('mouseover', debounce(function (e) { - Toolbox.activateIfMouseOver(e); - })); -} - -document.addEventListener('DOMContentLoaded', init); - -function debounce(fn, opts) { - opts = opts || {}; - var timeout; - return function(e) { - if (opts.stopPropagation) { - e.stopPropagation(); - } - var args = arguments; - if (timeout) { - clearTimeout(timeout); - } - timeout = setTimeout(function() { - timeout = null; - fn.apply(this, args); - }.bind(this), 150); - } -} - -var CLAUSE_NODES = ['EMU-CLAUSE', 'EMU-INTRO', 'EMU-ANNEX']; -function findLocalReferences ($elem) { - var name = $elem.innerHTML; - var references = []; - - var parentClause = $elem.parentNode; - while (parentClause && CLAUSE_NODES.indexOf(parentClause.nodeName) === -1) { - parentClause = parentClause.parentNode; - } - - if(!parentClause) return; - - var vars = parentClause.querySelectorAll('var'); - - for (var i = 0; i < vars.length; i++) { - var $var = vars[i]; - - if ($var.innerHTML === name) { - references.push($var); - } - } - - return references; -} - -function toggleFindLocalReferences($elem) { - var references = findLocalReferences($elem); - if ($elem.classList.contains('referenced')) { - references.forEach(function ($reference) { - $reference.classList.remove('referenced'); - }); - } else { - references.forEach(function ($reference) { - $reference.classList.add('referenced'); - }); - } -} - -function installFindLocalReferences () { - document.addEventListener('click', function (e) { - if (e.target.nodeName === 'VAR') { - toggleFindLocalReferences(e.target); - } - }); -} - -document.addEventListener('DOMContentLoaded', installFindLocalReferences); - - - - -// The following license applies to the fuzzysearch function -// The MIT License (MIT) -// Copyright © 2015 Nicolas Bevacqua -// Copyright © 2016 Brian Terlson -// Permission is hereby granted, free of charge, to any person obtaining a copy of -// this software and associated documentation files (the "Software"), to deal in -// the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do so, -// subject to the following conditions: - -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. - -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -function fuzzysearch (searchString, haystack, caseInsensitive) { - var tlen = haystack.length; - var qlen = searchString.length; - var chunks = 1; - var finding = false; - var prefix = true; - - if (qlen > tlen) { - return false; - } - - if (qlen === tlen) { - if (searchString === haystack) { - return { caseMatch: true, chunks: 1, prefix: true }; - } else if (searchString.toLowerCase() === haystack.toLowerCase()) { - return { caseMatch: false, chunks: 1, prefix: true }; - } else { - return false; - } - } - - outer: for (var i = 0, j = 0; i < qlen; i++) { - var nch = searchString[i]; - while (j < tlen) { - var targetChar = haystack[j++]; - if (targetChar === nch) { - finding = true; - continue outer; - } - if (finding) { - chunks++; - finding = false; - } - } - - if (caseInsensitive) { return false } - - return fuzzysearch(searchString.toLowerCase(), haystack.toLowerCase(), true); - } - - return { caseMatch: !caseInsensitive, chunks: chunks, prefix: j <= qlen }; -} - -var Toolbox = { - init: function () { - this.$container = document.createElement('div'); - this.$container.classList.add('toolbox'); - this.$permalink = document.createElement('a'); - this.$permalink.textContent = 'Permalink'; - this.$pinLink = document.createElement('a'); - this.$pinLink.textContent = 'Pin'; - this.$pinLink.setAttribute('href', '#'); - this.$pinLink.addEventListener('click', function (e) { - e.preventDefault(); - e.stopPropagation(); - menu.togglePinEntry(this.entry.id); - }.bind(this)); - - this.$refsLink = document.createElement('a'); - this.$refsLink.setAttribute('href', '#'); - this.$refsLink.addEventListener('click', function (e) { - e.preventDefault(); - e.stopPropagation(); - referencePane.showReferencesFor(this.entry); - }.bind(this)); - this.$container.appendChild(this.$permalink); - this.$container.appendChild(this.$pinLink); - this.$container.appendChild(this.$refsLink); - document.body.appendChild(this.$container); - }, - - activate: function (el, entry, target) { - if (el === this._activeEl) return; - this.active = true; - this.entry = entry; - this.$container.classList.add('active'); - this.top = el.offsetTop - this.$container.offsetHeight - 10; - this.left = el.offsetLeft; - this.$container.setAttribute('style', 'left: ' + this.left + 'px; top: ' + this.top + 'px'); - this.updatePermalink(); - this.updateReferences(); - this._activeEl = el; - if (this.top < document.body.scrollTop && el === target) { - // don't scroll unless it's a small thing (< 200px) - this.$container.scrollIntoView(); - } - }, - - updatePermalink: function () { - this.$permalink.setAttribute('href', '#' + this.entry.id); - }, - - updateReferences: function () { - this.$refsLink.textContent = 'References (' + this.entry.referencingIds.length + ')'; - }, - - activateIfMouseOver: function (e) { - var ref = this.findReferenceUnder(e.target); - if (ref && (!this.active || e.pageY > this._activeEl.offsetTop)) { - var entry = menu.search.biblio.byId[ref.id]; - this.activate(ref.element, entry, e.target); - } else if (this.active && ((e.pageY < this.top) || e.pageY > (this._activeEl.offsetTop + this._activeEl.offsetHeight))) { - this.deactivate(); - } - }, - - findReferenceUnder: function (el) { - while (el) { - var parent = el.parentNode; - if (el.nodeName === 'H1' && parent.nodeName.match(/EMU-CLAUSE|EMU-ANNEX|EMU-INTRO/) && parent.id) { - return { element: el, id: parent.id }; - } else if (el.nodeName.match(/EMU-(?!CLAUSE|XREF|ANNEX|INTRO)|DFN/) && - el.id && el.id[0] !== '_') { - if (el.nodeName === 'EMU-FIGURE' || el.nodeName === 'EMU-TABLE' || el.nodeName === 'EMU-EXAMPLE') { - // return the figcaption element - return { element: el.children[0].children[0], id: el.id }; - } else if (el.nodeName === 'EMU-PRODUCTION') { - // return the LHS non-terminal element - return { element: el.children[0], id: el.id }; - } else { - return { element: el, id: el.id }; - } - } - el = parent; - } - }, - - deactivate: function () { - this.$container.classList.remove('active'); - this._activeEl = null; - this.activeElBounds = null; - this.active = false; - } -} - -var referencePane = { - init: function() { - this.$container = document.createElement('div'); - this.$container.setAttribute('id', 'references-pane-container'); - - var $spacer = document.createElement('div'); - $spacer.setAttribute('id', 'references-pane-spacer'); - - this.$pane = document.createElement('div'); - this.$pane.setAttribute('id', 'references-pane'); - - this.$container.appendChild($spacer); - this.$container.appendChild(this.$pane); - - this.$header = document.createElement('div'); - this.$header.classList.add('menu-pane-header'); - this.$header.textContent = 'References to '; - this.$headerRefId = document.createElement('a'); - this.$header.appendChild(this.$headerRefId); - this.$closeButton = document.createElement('span'); - this.$closeButton.setAttribute('id', 'references-pane-close'); - this.$closeButton.addEventListener('click', function (e) { - this.deactivate(); - }.bind(this)); - this.$header.appendChild(this.$closeButton); - - this.$pane.appendChild(this.$header); - var tableContainer = document.createElement('div'); - tableContainer.setAttribute('id', 'references-pane-table-container'); - - this.$table = document.createElement('table'); - this.$table.setAttribute('id', 'references-pane-table'); - - this.$tableBody = this.$table.createTBody(); - - tableContainer.appendChild(this.$table); - this.$pane.appendChild(tableContainer); - - menu.$specContainer.appendChild(this.$container); - }, - - activate: function () { - this.$container.classList.add('active'); - }, - - deactivate: function () { - this.$container.classList.remove('active'); - }, - - showReferencesFor(entry) { - this.activate(); - var newBody = document.createElement('tbody'); - var previousId; - var previousCell; - var dupCount = 0; - this.$headerRefId.textContent = '#' + entry.id; - this.$headerRefId.setAttribute('href', '#' + entry.id); - entry.referencingIds.map(function (id) { - var target = document.getElementById(id); - var cid = findParentClauseId(target); - var clause = menu.search.biblio.byId[cid]; - var dupCount = 0; - return { id: id, clause: clause } - }).sort(function (a, b) { - return sortByClauseNumber(a.clause, b.clause); - }).forEach(function (record, i) { - if (previousId === record.clause.id) { - previousCell.innerHTML += ' (' + (dupCount + 2) + ')'; - dupCount++; - } else { - var row = newBody.insertRow(); - var cell = row.insertCell(); - cell.innerHTML = record.clause.number; - cell = row.insertCell(); - cell.innerHTML = '' + record.clause.titleHTML + ''; - previousCell = cell; - previousId = record.clause.id; - dupCount = 0; - } - }, this); - this.$table.removeChild(this.$tableBody); - this.$tableBody = newBody; - this.$table.appendChild(this.$tableBody); - } -} -function findParentClauseId(node) { - while (node && node.nodeName !== 'EMU-CLAUSE' && node.nodeName !== 'EMU-INTRO' && node.nodeName !== 'EMU-ANNEX') { - node = node.parentNode; - } - if (!node) return null; - return node.getAttribute('id'); -} - -function sortByClauseNumber(c1, c2) { - var c1c = c1.number.split('.'); - var c2c = c2.number.split('.'); - - for (var i = 0; i < c1c.length; i++) { - if (i >= c2c.length) { - return 1; - } - - var c1 = c1c[i]; - var c2 = c2c[i]; - var c1cn = Number(c1); - var c2cn = Number(c2); - - if (Number.isNaN(c1cn) && Number.isNaN(c2cn)) { - if (c1 > c2) { - return 1; - } else if (c1 < c2) { - return -1; - } - } else if (!Number.isNaN(c1cn) && Number.isNaN(c2cn)) { - return -1; - } else if (Number.isNaN(c1cn) && !Number.isNaN(c2cn)) { - return 1; - } else if(c1cn > c2cn) { - return 1; - } else if (c1cn < c2cn) { - return -1; - } - } - - if (c1c.length === c2c.length) { - return 0; - } - return -1; -} - -document.addEventListener('DOMContentLoaded', function () { - Toolbox.init(); - referencePane.init(); -}) -var CLAUSE_NODES = ['EMU-CLAUSE', 'EMU-INTRO', 'EMU-ANNEX']; -function findLocalReferences ($elem) { - var name = $elem.innerHTML; - var references = []; - - var parentClause = $elem.parentNode; - while (parentClause && CLAUSE_NODES.indexOf(parentClause.nodeName) === -1) { - parentClause = parentClause.parentNode; - } - - if(!parentClause) return; - - var vars = parentClause.querySelectorAll('var'); - - for (var i = 0; i < vars.length; i++) { - var $var = vars[i]; - - if ($var.innerHTML === name) { - references.push($var); - } - } - - return references; -} - -function toggleFindLocalReferences($elem) { - var references = findLocalReferences($elem); - if ($elem.classList.contains('referenced')) { - references.forEach(function ($reference) { - $reference.classList.remove('referenced'); - }); - } else { - references.forEach(function ($reference) { - $reference.classList.add('referenced'); - }); - } -} - -function installFindLocalReferences () { - document.addEventListener('click', function (e) { - if (e.target.nodeName === 'VAR') { - toggleFindLocalReferences(e.target); - } - }); -} - -document.addEventListener('DOMContentLoaded', installFindLocalReferences); diff --git a/WechatBot/node_modules/reflect-metadata/docs/index.html b/WechatBot/node_modules/reflect-metadata/docs/index.html deleted file mode 100644 index 1afdd8df7..000000000 --- a/WechatBot/node_modules/reflect-metadata/docs/index.html +++ /dev/null @@ -1,2088 +0,0 @@ - - -Metadata Proposal - ECMAScript - - - - -
    - - -

    Metadata Proposal - ECMAScript

    - Note
    A shim for this API can be found here: https://github.com/rbuckton/ReflectDecorators
    -

    Proposal to add Metadata to ECMAScript.

    -
    - - -

    1Syntax

    - Note
    This section is non-normative.
    -
    // define metadata on an object or property
    -Reflect.defineMetadata(metadataKey, metadataValue, target);
    -Reflect.defineMetadata(metadataKey, metadataValue, target, propertyKey);
    -
    -// check for presence of a metadata key on the prototype chain of an object or property
    -let result = Reflect.hasMetadata(metadataKey, target);
    -let result = Reflect.hasMetadata(metadataKey, target, propertyKey);
    -
    -// check for presence of an own metadata key of an object or property
    -let result = Reflect.hasOwnMetadata(metadataKey, target);
    -let result = Reflect.hasOwnMetadata(metadataKey, target, propertyKey);
    -
    -// get metadata value of a metadata key on the prototype chain of an object or property
    -let result = Reflect.getMetadata(metadataKey, target);
    -let result = Reflect.getMetadata(metadataKey, target, propertyKey);
    -
    -// get metadata value of an own metadata key of an object or property
    -let result = Reflect.getOwnMetadata(metadataKey, target);
    -let result = Reflect.getOwnMetadata(metadataKey, target, propertyKey);
    -
    -// get all metadata keys on the prototype chain of an object or property
    -let result = Reflect.getMetadataKeys(target);
    -let result = Reflect.getMetadataKeys(target, propertyKey);
    -
    -// get all own metadata keys of an object or property
    -let result = Reflect.getOwnMetadataKeys(target);
    -let result = Reflect.getOwnMetadataKeys(target, propertyKey);
    -
    -// delete metadata from an object or property
    -let result = Reflect.deleteMetadata(metadataKey, target);
    -let result = Reflect.deleteMetadata(metadataKey, target, propertyKey);
    -
    -// apply metadata via a decorator to a constructor
    -@Reflect.metadata(metadataKey, metadataValue)
    -class C {
    -  // apply metadata via a decorator to a method (property)
    -  @Reflect.metadata(metadataKey, metadataValue)
    -  method() {
    -  }
    -}
    -
    -// Design-time type annotations
    -function Type(type) { return Reflect.metadata("design:type", type); }
    -function ParamTypes(...types) { return Reflect.metadata("design:paramtypes", types); }
    -function ReturnType(type) { return Reflect.metadata("design:returntype", type); }
    -
    -// Decorator application
    -@ParamTypes(String, Number)
    -class C {
    -  constructor(text, i) {
    -  }
    -
    -  @Type(String)
    -  get name() { return "text"; }
    -
    -  @Type(Function)
    -  @ParamTypes(Number, Number)
    -  @ReturnType(Number)
    -  add(x, y) {
    -    return x + y;
    -  }
    -}
    -
    -// Metadata introspection
    -let obj = new C("a", 1);
    -let paramTypes = Reflect.getMetadata("design:paramtypes", inst, "add"); // [Number, Number]
    -
    - - -

    2Abstract Operations

    - -

    2.1Operations on Objects

    - -

    2.1.1GetOrCreateMetadataMap ( O, P, Create )

    -

    When the abstract operation GetOrCreateMetadataMap is called with Object O, property key P, and Boolean Create the following steps are taken:

    -
    1. Assert: P is undefined or IsPropertyKey(P) is true.
    2. Let targetMetadata be the value of O's [[Metadata]] internal slot.
    3. If targetMetadata is undefined, then
      1. If Create is false, return undefined.
      2. Set targetMetadata to be a newly created Map object.
      3. Set the [[Metadata]] internal slot of O to targetMetadata.
    4. Let metadataMap be ? Invoke(targetMetadata, "get", P).
    5. If metadataMap is undefined, then
      1. If Create is false, return undefined.
      2. Set metadataMap to be a newly created Map object.
      3. Perform ? Invoke(targetMetadata, "set", P, metadataMap).
    6. Return metadataMap. -
    -
    -
    -
    - - -

    3Ordinary and Exotic Objects Behaviors

    - - -

    3.1Ordinary Object Internal Methods and Internal Slots

    -

    All ordinary objects have an internal slot called [[Metadata]]. The value of this internal slot is either null or a Map object and is used for storing metadata for an object.

    - -

    3.1.1[[HasMetadata]] ( MetadataKey, P )

    -

    When the [[HasMetadata]] internal method of O is called with ECMAScript language value MetadataKey and property key P, the following steps are taken:

    -
    1. Return ? OrdinaryHasMetadata(MetadataKey, O, P). -
    - -

    3.1.1.1OrdinaryHasMetadata ( MetadataKey, O, P )

    -

    When the abstract operation OrdinaryHasMetadata is called with ECMAScript language value MetadataKey, Object O, and property key P, the following steps are taken:

    -
    1. Assert: P is undefined or IsPropertyKey(P) is true.
    2. Let hasOwn be ? OrdinaryHasOwnMetadata(MetadataKey, O, P).
    3. If hasOwn is true, return true.
    4. Let parent be ? O.[[GetPrototypeOf]]().
    5. If parent is not null, Return ? parent.[[HasMetadata]](MetadataKey, P).
    6. Return false. -
    -
    -
    - - -

    3.1.2[[HasOwnMetadata]] ( MetadataKey, P )

    -

    When the [[HasOwnMetadata]] internal method of O is called with ECMAScript language value MetadataKey and property key P, the following steps are taken:

    -
    1. Return ? OrdinaryHasOwnMetadata(MetadataKey, O, P). -
    - -

    3.1.2.1OrdinaryHasOwnMetadata ( MetadataKey, O, P )

    -

    When the abstract operation OrdinaryHasOwnMetadata is called with ECMAScript language value MetadataKey, Object O, and property key P, the following steps are taken:

    -
    1. Assert: P is undefined or IsPropertyKey(P) is true.
    2. Let metadataMap be ? GetOrCreateMetadataMap(O, P, false).
    3. If metadataMap is undefined, return false.
    4. Return ? ToBoolean(? Invoke(metadataMap, "has", MetadataKey)). -
    -
    -
    - - -

    3.1.3[[GetMetadata]] ( MetadataKey, P )

    -

    When the [[GetMatadata]] internal method of O is called with ECMAScript language value MetadataKey and property key P, the following steps are taken:

    -
    1. Return ? OrdinaryGetMetadata(MetadataKey, O, P). -
    - -

    3.1.3.1OrdinaryGetMetadata ( MetadataKey, O, P )

    -

    When the abstract operation OrdinaryGetMetadata is called with ECMAScript language value MetadataKey, Object O, and property key P, the following steps are taken:

    -
    1. Assert: P is undefined or IsPropertyKey(P) is true.
    2. Let hasOwn be ? OrdinaryHasOwnMetadata(MetadataKey, O, P).
    3. If hasOwn is true, return ? OrdinaryGetOwnMetadata(MetadataKey, O, P).
    4. Let parent be ? O.[[GetPrototypeOf]]().
    5. If parent is not null, return ? parent.[[GetMetadata]](MetadataKey, P).
    6. Return undefined. -
    -
    -
    - - -

    3.1.4[[GetOwnMetadata]] ( MetadataKey, P, ParamIndex )

    -

    When the [[GetOwnMetadata]] internal method of O is called with ECMAScript language value MetadataKey and property key P, the following steps are taken:

    -
    1. Return ? OrdinaryGetOwnMetadata(MetadataKey, O, P). -
    - -

    3.1.4.1OrdinaryGetOwnMetadata ( MetadataKey, O, P )

    -

    When the abstract operation OrdinaryGetOwnMetadata is called with ECMAScript language value MetadataKey, Object O, and property key P, the following steps are taken:

    -
    1. Assert: P is undefined or IsPropertyKey(P) is true.
    2. Let metadataMap be ? GetOrCreateMetadataMap(O, P, false).
    3. If metadataMap is undefined, return undefined.
    4. Return ? Invoke(metadataMap, "get", MetadataKey). -
    -
    -
    - - -

    3.1.5[[DefineOwnMetadata]] ( MetadataKey, MetadataValue, P )

    -

    When the [[DefineOwnMetadata]] internal method of O is called with ECMAScript language value MetadataKey, ECMAScript language value MetadataValue, and property key P, the following steps are taken:

    -
    1. Return ? OrdinaryDefineOwnMetadata(MetadataKey, MetadataValue, O, P) -
    - -

    3.1.5.1OrdinaryDefineOwnMetadata ( MetadataKey, MetadataValue, O, P )

    -

    When the abstract operation OrdinaryDefineOwnProperty is called with ECMAScript language value MetadataKey, ECMAScript language value MetadataValue, Object O, and property key P, the following steps are taken:

    -
    1. Assert: P is undefined or IsPropertyKey(P) is true.
    2. Let metadataMap be ? GetOrCreateMetadataMap(O, P, true).
    3. Return ? Invoke(metadataMap, "set", MetadataKey, MetadataValue). -
    -
    -
    - - -

    3.1.6[[MetadataKeys]] ( P )

    -

    When the [[MetadataKeys]] internal method of O is called with property key P the following steps are taken:

    -
    1. Return ? OrdinaryMetadataKeys(O, P). -
    - -

    3.1.6.1OrdinaryMetadataKeys ( O, P )

    -

    When the abstract operation OrdinaryMetadataKeys is called with Object O and property key P the following steps are taken:

    -
    1. Assert: P is undefined or IsPropertyKey(P) is true.
    2. Let ownKeys be ? OrdinaryOwnMetadataKeys(O, P).
    3. Let parent be ? O.[[GetPrototypeOf]]().
    4. If parent is null, then return ownKeys.
    5. Let parentKeys be ? O.[[OrdinaryMetadataKeys]](P).
    6. Let ownKeysLen = ? Get(ownKeys, "length").
    7. If ownKeysLen is 0, return parentKeys.
    8. Let parentKeysLen = ? Get(parentKeys, "length").
    9. If parentKeysLen is 0, return ownKeys.
    10. Let set be a newly created Set object.
    11. Let keys be ? ArrayCreate(0).
    12. Let k be 0.
    13. For each element key of ownKeys
      1. Let hasKey be ? Invoke(set, "has", key).
      2. If hasKey is false, then
        1. Let Pk be ! ToString(k).
        2. Perform ? Invoke(set, "add", key).
        3. Let defineStatus be CreateDataProperty(keys, Pk, key).
        4. Assert: defineStatus is true.
        5. Increase k by 1.
    14. For each element key of parentKeys
      1. Let hasKey be ? Invoke(set, "has", key).
      2. If hasKey is false, then
        1. Let Pk be ! ToString(k).
        2. Perform ? Invoke(set, "add", key).
        3. Let defineStatus be CreateDataProperty(keys, Pk, key).
        4. Assert: defineStatus is true.
        5. Increase k by 1.
    15. Perform ? Set(keys, "length", k).
    16. return keys. -
    -
    -
    - - -

    3.1.7[[OwnMetadataKeys]] ( P )

    -

    When the [[OwnMetadataKeys]] internal method of O is called with property key P the following steps are taken:

    -
    1. Return OrdinaryOwnMetadataKeys(O, P). -
    - -

    3.1.7.1OrdinaryOwnMetadataKeys ( O, P )

    -

    When the abstract operation OrdinaryOwnMetadataKeys is called with Object O and property key P the following steps are taken:

    -
    1. Assert: P is undefined or IsPropertyKey(P) is true.
    2. Let keys be ? ArrayCreate(0).
    3. Let metadataMap be ? GetOrCreateMetadataMap(O, P, false).
    4. If metadataMap is undefined, return keys.
    5. Let keysObj be ? Invoke(metadataMap, "keys").
    6. Let iterator be ? GetIterator(keysObj).
    7. Let k be 0.
    8. Repeat
      1. Let Pk be ! ToString(k).
      2. Let next be ? IteratorStep(iterator).
      3. If next is false, then
        1. Let setStatus be ? Set(keys, "length", k, true).
        2. Assert: setStatus is true.
        3. Return keys.
      4. Let nextValue be ? IteratorValue(next).
      5. Let defineStatus be CreateDataPropertyOrThrow(keys, Pk, nextValue).
      6. If defineStatus is an abrupt completion, return ? IteratorClose(iterator, defineStatus).
      7. Increase k by 1. -
    -
    -
    - - -

    3.1.8[[DeleteMetadata]]( MetadataKey, P )

    -

    When the [[DeleteMetadata]] internal method of O is called with ECMAScript language value MetadataKey and property key P the following steps are taken:

    -
    1. Assert: P is undefined or IsPropertyKey(P) is true.
    2. Let metadataMap be ? GetOrCreateMetadataMap(O, P, false).
    3. If metadataMap is undefined, return false.
    4. Return ? Invoke(metadataMap, "delete", MetadataKey). -
    -
    -
    -
    - - -

    4Reflection

    - -

    4.1The Reflect Object

    -

    This section contains amendments to the Reflect object.

    - -

    4.1.1Metadata Decorator Functions

    -

    A metadata decorator function is an anonymous built-in function that has [[MetadataKey]] and [[MetadataValue]] internal slots.

    -

    When a metadata decorator function F is called with arguments target and key, the following steps are taken:

    -
    1. Assert: F has a [[MetadataKey]] internal slot whose value is an ECMAScript language value, or undefined.
    2. Assert: F has a [[MetadataValue]] internal slot whose value is an ECMAScript language value, or undefined.
    3. If Type(target) is not Object, throw a TypeError exception.
    4. If key is not undefined and IsPropertyKey(key) is false, throw a TypeError exception.
    5. Let metadataKey be the value of F's [[MetadataKey]] internal slot.
    6. Let metadataValue be the value of F's [[MetadataValue]] internal slot.
    7. Perform ? target.[[DefineMetadata]](metadataKey, metadataValue, target, key).
    8. Return undefined. -
    -
    - - -

    4.1.2Reflect.metadata ( metadataKey, metadataValue )

    -

    When the metadata function is called with arguments metadataKey and metadataValue, the following steps are taken:

    -
    1. Let decorator be a new built-in function object as defined in Metadata Decorator Functions.
    2. Set the [[MetadataKey]] internal slot of decorator to metadataKey.
    3. Set the [[MetadataValue]] internal slot of decorator to metadataValue.
    4. Return decorator. -
    -
    - - -

    4.1.3Reflect.defineMetadata ( metadataKey, metadataValue, target [, propertyKey] )

    -

    When the defineMetadata function is called with arguments metadataKey, metadataValue, target, and propertyKey, the following steps are taken:

    -
    1. If Type(target) is not Object, throw a TypeError exception.
    2. Return ? target.[[DefineMetadata]](metadataKey, metadataValue, propertyKey). -
    -
    - - -

    4.1.4Reflect.hasMetadata ( metadataKey, target [, propertyKey] )

    -

    When the hasMetadata function is called with arguments metadataKey, target, and propertyKey, the following steps are taken:

    -
    1. If Type(target) is not Object, throw a TypeError exception.
    2. Return ? target.[[HasMetadata]](metadataKey, propertyKey). -
    -
    - - -

    4.1.5Reflect.hasOwnMetadata ( metadataKey, target [, propertyKey] )

    -

    When the hasOwnMetadata function is called with arguments metadataKey, target, and propertyKey, the following steps are taken:

    -
    1. If Type(target) is not Object, throw a TypeError exception.
    2. Return ? target.[[HasOwn]](metadataKey, propertyKey). -
    -
    - - -

    4.1.6Reflect.getMetadata ( metadataKey, target [, propertyKey] )

    -

    When the getMetadata function is called with arguments metadataKey, target, and propertyKey, the following steps are taken:

    -
    1. If Type(target) is not Object, throw a TypeError exception.
    2. Return ? target.[[GetMetadata]](metadataKey, propertyKey). -
    -
    - - -

    4.1.7Reflect.getOwnMetadata ( metadataKey, target [, propertyKey] )

    -

    When the getOwnMetadata function is called with arguments metadataKey, target, and propertyKey, the following steps are taken:

    -
    1. If Type(target) is not Object, throw a TypeError exception.
    2. Return ? target.[[GetOwnMetadata]](metadataKey, propertyKey). -
    -
    - - -

    4.1.8Reflect.getMetadataKeys ( target [, propertyKey] )

    -

    When the getMetadataKeys function is called with arguments target and propertyKey, the following steps are taken:

    -
    1. If Type(target) is not Object, throw a TypeError exception.
    2. Return ? target.[[GetMetadataKeys]](propertyKey). -
    -
    - - -

    4.1.9Reflect.getOwnMetadataKeys ( target [, propertyKey] )

    -

    When the getOwnMetadataKeys function is called with arguments target and propertyKey, the following steps are taken:

    -
    1. If Type(target) is not Object, throw a TypeError exception.
    2. Return ? target.[[GetOwnMetadataKeys]](propertyKey). -
    -
    - - -

    4.1.10Reflect.deleteMetadata ( metadataKey, target [, propertyKey] )

    -

    When the deleteMetadata function is called with arguments metadataKey, target, and propertyKey, the following steps are taken:

    -
    1. If Type(target) is not Object, throw a TypeError exception.
    2. Return ? target.[[DeleteMetadata]](metadataKey, propertyKey). -
    -
    -
    -
    \ No newline at end of file diff --git a/WechatBot/node_modules/reflect-metadata/docs/spec.biblio.json b/WechatBot/node_modules/reflect-metadata/docs/spec.biblio.json deleted file mode 100644 index 15e768289..000000000 --- a/WechatBot/node_modules/reflect-metadata/docs/spec.biblio.json +++ /dev/null @@ -1 +0,0 @@ -{"https://rbuckton.github.io/reflect-metadata":[{"type":"clause","id":"introduction","aoid":null,"title":"Metadata Proposal - ECMAScript","titleHTML":"Metadata Proposal - ECMAScript","number":"","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Metadata Proposal - ECMAScript"},{"type":"clause","id":"syntax","aoid":null,"title":"Syntax","titleHTML":"Syntax","number":"1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Syntax"},{"type":"op","aoid":"GetOrCreateMetadataMap","refId":"getorcreatemetadatamap","location":"","referencingIds":[],"key":"GetOrCreateMetadataMap"},{"type":"clause","id":"getorcreatemetadatamap","aoid":"GetOrCreateMetadataMap","title":"GetOrCreateMetadataMap ( O, P, Create )","titleHTML":"GetOrCreateMetadataMap ( O, P, Create )","number":"2.1.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":["_ref_8","_ref_17","_ref_22","_ref_42","_ref_52"],"key":"GetOrCreateMetadataMap ( O, P, Create )"},{"type":"clause","id":"operations-on-objects","aoid":null,"title":"Operations on Objects","titleHTML":"Operations on Objects","number":"2.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Operations on Objects"},{"type":"clause","id":"abstract-operations","aoid":null,"title":"Abstract Operations","titleHTML":"Abstract Operations","number":"2","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Abstract Operations"},{"type":"op","aoid":"OrdinaryHasMetadata","refId":"ordinaryhasmetadata","location":"","referencingIds":[],"key":"OrdinaryHasMetadata"},{"type":"clause","id":"ordinaryhasmetadata","aoid":"OrdinaryHasMetadata","title":"OrdinaryHasMetadata ( MetadataKey, O, P )","titleHTML":"OrdinaryHasMetadata ( MetadataKey, O, P )","number":"3.1.1.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":["_ref_3"],"key":"OrdinaryHasMetadata ( MetadataKey, O, P )"},{"type":"clause","id":"ordinary-object-internal-methods-and-internal-slots-hasmetadata","aoid":null,"title":"[[HasMetadata]] ( MetadataKey, P )","titleHTML":"[[HasMetadata]] ( MetadataKey, P )","number":"3.1.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"[[HasMetadata]] ( MetadataKey, P )"},{"type":"op","aoid":"OrdinaryHasOwnMetadata","refId":"ordinaryhasownmetadata","location":"","referencingIds":[],"key":"OrdinaryHasOwnMetadata"},{"type":"clause","id":"ordinaryhasownmetadata","aoid":"OrdinaryHasOwnMetadata","title":"OrdinaryHasOwnMetadata ( MetadataKey, O, P )","titleHTML":"OrdinaryHasOwnMetadata ( MetadataKey, O, P )","number":"3.1.2.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":["_ref_5","_ref_6","_ref_13"],"key":"OrdinaryHasOwnMetadata ( MetadataKey, O, P )"},{"type":"clause","id":"ordinary-object-internal-methods-and-internal-slots-hasownmetadata","aoid":null,"title":"[[HasOwnMetadata]] ( MetadataKey, P )","titleHTML":"[[HasOwnMetadata]] ( MetadataKey, P )","number":"3.1.2","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"[[HasOwnMetadata]] ( MetadataKey, P )"},{"type":"op","aoid":"OrdinaryGetMetadata","refId":"ordinarygetmetadata","location":"","referencingIds":[],"key":"OrdinaryGetMetadata"},{"type":"clause","id":"ordinarygetmetadata","aoid":"OrdinaryGetMetadata","title":"OrdinaryGetMetadata ( MetadataKey, O, P )","titleHTML":"OrdinaryGetMetadata ( MetadataKey, O, P )","number":"3.1.3.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":["_ref_11"],"key":"OrdinaryGetMetadata ( MetadataKey, O, P )"},{"type":"clause","id":"ordinary-object-internal-methods-and-internal-slots-getmetadata","aoid":null,"title":"[[GetMetadata]] ( MetadataKey, P )","titleHTML":"[[GetMetadata]] ( MetadataKey, P )","number":"3.1.3","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"[[GetMetadata]] ( MetadataKey, P )"},{"type":"op","aoid":"OrdinaryGetOwnMetadata","refId":"ordinarygetownmetadata","location":"","referencingIds":[],"key":"OrdinaryGetOwnMetadata"},{"type":"clause","id":"ordinarygetownmetadata","aoid":"OrdinaryGetOwnMetadata","title":"OrdinaryGetOwnMetadata ( MetadataKey, O, P )","titleHTML":"OrdinaryGetOwnMetadata ( MetadataKey, O, P )","number":"3.1.4.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":["_ref_14","_ref_15"],"key":"OrdinaryGetOwnMetadata ( MetadataKey, O, P )"},{"type":"clause","id":"ordinary-object-internal-methods-and-internal-slots-getownmetadata","aoid":null,"title":"[[GetOwnMetadata]] ( MetadataKey, P, ParamIndex )","titleHTML":"[[GetOwnMetadata]] ( MetadataKey, P, ParamIndex )","number":"3.1.4","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"[[GetOwnMetadata]] ( MetadataKey, P, ParamIndex )"},{"type":"op","aoid":"OrdinaryDefineOwnMetadata","refId":"ordinarydefineownmetadata","location":"","referencingIds":[],"key":"OrdinaryDefineOwnMetadata"},{"type":"clause","id":"ordinarydefineownmetadata","aoid":"OrdinaryDefineOwnMetadata","title":"OrdinaryDefineOwnMetadata ( MetadataKey, MetadataValue, O, P )","titleHTML":"OrdinaryDefineOwnMetadata ( MetadataKey, MetadataValue, O, P )","number":"3.1.5.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":["_ref_19"],"key":"OrdinaryDefineOwnMetadata ( MetadataKey, MetadataValue, O, P )"},{"type":"clause","id":"ordinary-object-internal-methods-and-internal-slots-defineownmetadata","aoid":null,"title":"[[DefineOwnMetadata]] ( MetadataKey, MetadataValue, P )","titleHTML":"[[DefineOwnMetadata]] ( MetadataKey, MetadataValue, P )","number":"3.1.5","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"[[DefineOwnMetadata]] ( MetadataKey, MetadataValue, P )"},{"type":"op","aoid":"OrdinaryMetadataKeys","refId":"ordinarymetadatakeys","location":"","referencingIds":[],"key":"OrdinaryMetadataKeys"},{"type":"clause","id":"ordinarymetadatakeys","aoid":"OrdinaryMetadataKeys","title":"OrdinaryMetadataKeys ( O, P )","titleHTML":"OrdinaryMetadataKeys ( O, P )","number":"3.1.6.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":["_ref_24"],"key":"OrdinaryMetadataKeys ( O, P )"},{"type":"clause","id":"ordinary-object-internal-methods-and-internal-slots-metadatakeys","aoid":null,"title":"[[MetadataKeys]] ( P )","titleHTML":"[[MetadataKeys]] ( P )","number":"3.1.6","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"[[MetadataKeys]] ( P )"},{"type":"op","aoid":"OrdinaryOwnMetadataKeys","refId":"ordinaryownmetadatakeys","location":"","referencingIds":[],"key":"OrdinaryOwnMetadataKeys"},{"type":"clause","id":"ordinaryownmetadatakeys","aoid":"OrdinaryOwnMetadataKeys","title":"OrdinaryOwnMetadataKeys ( O, P )","titleHTML":"OrdinaryOwnMetadataKeys ( O, P )","number":"3.1.7.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":["_ref_26","_ref_39"],"key":"OrdinaryOwnMetadataKeys ( O, P )"},{"type":"clause","id":"ordinary-object-internal-methods-and-internal-slots-ownmetadatakeys","aoid":null,"title":"[[OwnMetadataKeys]] ( P )","titleHTML":"[[OwnMetadataKeys]] ( P )","number":"3.1.7","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"[[OwnMetadataKeys]] ( P )"},{"type":"clause","id":"ordinary-object-internal-methods-and-internal-slots-deletemetadata","aoid":null,"title":"[[DeleteMetadata]]( MetadataKey, P )","titleHTML":"[[DeleteMetadata]]( MetadataKey, P )","number":"3.1.8","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"[[DeleteMetadata]]( MetadataKey, P )"},{"type":"clause","id":"ordinary-object-internal-methods-and-internal-slots","aoid":null,"title":"Ordinary Object Internal Methods and Internal Slots","titleHTML":"Ordinary Object Internal Methods and Internal Slots","number":"3.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Ordinary Object Internal Methods and Internal Slots"},{"type":"clause","id":"ordinary-and-exotic-objects-behaviors","aoid":null,"title":"Ordinary and Exotic Objects Behaviors","titleHTML":"Ordinary and Exotic Objects Behaviors","number":"3","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Ordinary and Exotic Objects Behaviors"},{"type":"clause","id":"reflect-metadatadecoratorfunctions","aoid":null,"title":"Metadata Decorator Functions","titleHTML":"Metadata Decorator Functions","number":"4.1.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Metadata Decorator Functions"},{"type":"clause","id":"reflect.metadata","aoid":null,"title":"Reflect.metadata ( metadataKey, metadataValue )","titleHTML":"Reflect.metadata ( metadataKey, metadataValue )","number":"4.1.2","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Reflect.metadata ( metadataKey, metadataValue )"},{"type":"clause","id":"reflect.definemetadata","aoid":null,"title":"Reflect.defineMetadata ( metadataKey, metadataValue, target [, propertyKey] )","titleHTML":"Reflect.defineMetadata ( metadataKey, metadataValue, target [, propertyKey] )","number":"4.1.3","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Reflect.defineMetadata ( metadataKey, metadataValue, target [, propertyKey] )"},{"type":"clause","id":"reflect.hasmetadata","aoid":null,"title":"Reflect.hasMetadata ( metadataKey, target [, propertyKey] )","titleHTML":"Reflect.hasMetadata ( metadataKey, target [, propertyKey] )","number":"4.1.4","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Reflect.hasMetadata ( metadataKey, target [, propertyKey] )"},{"type":"clause","id":"reflect.hasownmetadata","aoid":null,"title":"Reflect.hasOwnMetadata ( metadataKey, target [, propertyKey] )","titleHTML":"Reflect.hasOwnMetadata ( metadataKey, target [, propertyKey] )","number":"4.1.5","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Reflect.hasOwnMetadata ( metadataKey, target [, propertyKey] )"},{"type":"clause","id":"reflect.getmetadata","aoid":null,"title":"Reflect.getMetadata ( metadataKey, target [, propertyKey] )","titleHTML":"Reflect.getMetadata ( metadataKey, target [, propertyKey] )","number":"4.1.6","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Reflect.getMetadata ( metadataKey, target [, propertyKey] )"},{"type":"clause","id":"reflect.getownmetadata","aoid":null,"title":"Reflect.getOwnMetadata ( metadataKey, target [, propertyKey] )","titleHTML":"Reflect.getOwnMetadata ( metadataKey, target [, propertyKey] )","number":"4.1.7","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Reflect.getOwnMetadata ( metadataKey, target [, propertyKey] )"},{"type":"clause","id":"reflect.getmetadatakeys","aoid":null,"title":"Reflect.getMetadataKeys ( target [, propertyKey] )","titleHTML":"Reflect.getMetadataKeys ( target [, propertyKey] )","number":"4.1.8","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Reflect.getMetadataKeys ( target [, propertyKey] )"},{"type":"clause","id":"reflect.getownmetadatakeys","aoid":null,"title":"Reflect.getOwnMetadataKeys ( target [, propertyKey] )","titleHTML":"Reflect.getOwnMetadataKeys ( target [, propertyKey] )","number":"4.1.9","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Reflect.getOwnMetadataKeys ( target [, propertyKey] )"},{"type":"clause","id":"reflect.deletemetadata","aoid":null,"title":"Reflect.deleteMetadata ( metadataKey, target [, propertyKey] )","titleHTML":"Reflect.deleteMetadata ( metadataKey, target [, propertyKey] )","number":"4.1.10","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Reflect.deleteMetadata ( metadataKey, target [, propertyKey] )"},{"type":"clause","id":"reflect","aoid":null,"title":"The Reflect Object","titleHTML":"The Reflect Object","number":"4.1","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"The Reflect Object"},{"type":"clause","id":"reflection","aoid":null,"title":"Reflection","titleHTML":"Reflection","number":"4","namespace":"https://rbuckton.github.io/reflect-metadata","location":"","referencingIds":[],"key":"Reflection"}]} \ No newline at end of file diff --git a/WechatBot/node_modules/reflect-metadata/index.d.ts b/WechatBot/node_modules/reflect-metadata/index.d.ts deleted file mode 100644 index 47fc8c501..000000000 --- a/WechatBot/node_modules/reflect-metadata/index.d.ts +++ /dev/null @@ -1,491 +0,0 @@ -/*! ***************************************************************************** -Copyright (C) Microsoft. All rights reserved. -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 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - -// The "reflect-metadata" module has no imports or exports, but can be imported by modules to load the polyfill. -export { }; - -declare global { - namespace Reflect { - /** - * Applies a set of decorators to a target object. - * @param decorators An array of decorators. - * @param target The target object. - * @returns The result of applying the provided decorators. - * @remarks Decorators are applied in reverse order of their positions in the array. - * @example - * - * class Example { } - * - * // constructor - * Example = Reflect.decorate(decoratorsArray, Example); - * - */ - function decorate(decorators: ClassDecorator[], target: Function): Function; - /** - * Applies a set of decorators to a property of a target object. - * @param decorators An array of decorators. - * @param target The target object. - * @param propertyKey The property key to decorate. - * @param attributes A property descriptor. - * @remarks Decorators are applied in reverse order. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod() { } - * method() { } - * } - * - * // property (on constructor) - * Reflect.decorate(decoratorsArray, Example, "staticProperty"); - * - * // property (on prototype) - * Reflect.decorate(decoratorsArray, Example.prototype, "property"); - * - * // method (on constructor) - * Object.defineProperty(Example, "staticMethod", - * Reflect.decorate(decoratorsArray, Example, "staticMethod", - * Object.getOwnPropertyDescriptor(Example, "staticMethod"))); - * - * // method (on prototype) - * Object.defineProperty(Example.prototype, "method", - * Reflect.decorate(decoratorsArray, Example.prototype, "method", - * Object.getOwnPropertyDescriptor(Example.prototype, "method"))); - * - */ - function decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: Object, propertyKey: string | symbol, attributes?: PropertyDescriptor): PropertyDescriptor; - /** - * A default metadata decorator factory that can be used on a class, class member, or parameter. - * @param metadataKey The key for the metadata entry. - * @param metadataValue The value for the metadata entry. - * @returns A decorator function. - * @remarks - * If `metadataKey` is already defined for the target and target key, the - * metadataValue for that key will be overwritten. - * @example - * - * // constructor - * @Reflect.metadata(key, value) - * class Example { - * } - * - * // property (on constructor, TypeScript only) - * class Example { - * @Reflect.metadata(key, value) - * static staticProperty; - * } - * - * // property (on prototype, TypeScript only) - * class Example { - * @Reflect.metadata(key, value) - * property; - * } - * - * // method (on constructor) - * class Example { - * @Reflect.metadata(key, value) - * static staticMethod() { } - * } - * - * // method (on prototype) - * class Example { - * @Reflect.metadata(key, value) - * method() { } - * } - * - */ - function metadata(metadataKey: any, metadataValue: any): { - (target: Function): void; - (target: Object, propertyKey: string | symbol): void; - }; - /** - * Define a unique metadata entry on the target. - * @param metadataKey A key used to store and retrieve metadata. - * @param metadataValue A value that contains attached metadata. - * @param target The target object on which to define metadata. - * @example - * - * class Example { - * } - * - * // constructor - * Reflect.defineMetadata("custom:annotation", options, Example); - * - * // decorator factory as metadata-producing annotation. - * function MyAnnotation(options): ClassDecorator { - * return target => Reflect.defineMetadata("custom:annotation", options, target); - * } - * - */ - function defineMetadata(metadataKey: any, metadataValue: any, target: Object): void; - /** - * Define a unique metadata entry on the target. - * @param metadataKey A key used to store and retrieve metadata. - * @param metadataValue A value that contains attached metadata. - * @param target The target object on which to define metadata. - * @param propertyKey The property key for the target. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * Reflect.defineMetadata("custom:annotation", Number, Example, "staticProperty"); - * - * // property (on prototype) - * Reflect.defineMetadata("custom:annotation", Number, Example.prototype, "property"); - * - * // method (on constructor) - * Reflect.defineMetadata("custom:annotation", Number, Example, "staticMethod"); - * - * // method (on prototype) - * Reflect.defineMetadata("custom:annotation", Number, Example.prototype, "method"); - * - * // decorator factory as metadata-producing annotation. - * function MyAnnotation(options): PropertyDecorator { - * return (target, key) => Reflect.defineMetadata("custom:annotation", options, target, key); - * } - * - */ - function defineMetadata(metadataKey: any, metadataValue: any, target: Object, propertyKey: string | symbol): void; - /** - * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.hasMetadata("custom:annotation", Example); - * - */ - function hasMetadata(metadataKey: any, target: Object): boolean; - /** - * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.hasMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.hasMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function hasMetadata(metadataKey: any, target: Object, propertyKey: string | symbol): boolean; - /** - * Gets a value indicating whether the target object has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns `true` if the metadata key was defined on the target object; otherwise, `false`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.hasOwnMetadata("custom:annotation", Example); - * - */ - function hasOwnMetadata(metadataKey: any, target: Object): boolean; - /** - * Gets a value indicating whether the target object has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns `true` if the metadata key was defined on the target object; otherwise, `false`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function hasOwnMetadata(metadataKey: any, target: Object, propertyKey: string | symbol): boolean; - /** - * Gets the metadata value for the provided metadata key on the target object or its prototype chain. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getMetadata("custom:annotation", Example); - * - */ - function getMetadata(metadataKey: any, target: Object): any; - /** - * Gets the metadata value for the provided metadata key on the target object or its prototype chain. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function getMetadata(metadataKey: any, target: Object, propertyKey: string | symbol): any; - /** - * Gets the metadata value for the provided metadata key on the target object. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getOwnMetadata("custom:annotation", Example); - * - */ - function getOwnMetadata(metadataKey: any, target: Object): any; - /** - * Gets the metadata value for the provided metadata key on the target object. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function getOwnMetadata(metadataKey: any, target: Object, propertyKey: string | symbol): any; - /** - * Gets the metadata keys defined on the target object or its prototype chain. - * @param target The target object on which the metadata is defined. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getMetadataKeys(Example); - * - */ - function getMetadataKeys(target: Object): any[]; - /** - * Gets the metadata keys defined on the target object or its prototype chain. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getMetadataKeys(Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getMetadataKeys(Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getMetadataKeys(Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getMetadataKeys(Example.prototype, "method"); - * - */ - function getMetadataKeys(target: Object, propertyKey: string | symbol): any[]; - /** - * Gets the unique metadata keys defined on the target object. - * @param target The target object on which the metadata is defined. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getOwnMetadataKeys(Example); - * - */ - function getOwnMetadataKeys(target: Object): any[]; - /** - * Gets the unique metadata keys defined on the target object. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getOwnMetadataKeys(Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getOwnMetadataKeys(Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getOwnMetadataKeys(Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getOwnMetadataKeys(Example.prototype, "method"); - * - */ - function getOwnMetadataKeys(target: Object, propertyKey: string | symbol): any[]; - /** - * Deletes the metadata entry from the target object with the provided key. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns `true` if the metadata entry was found and deleted; otherwise, false. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.deleteMetadata("custom:annotation", Example); - * - */ - function deleteMetadata(metadataKey: any, target: Object): boolean; - /** - * Deletes the metadata entry from the target object with the provided key. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns `true` if the metadata entry was found and deleted; otherwise, false. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.deleteMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.deleteMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function deleteMetadata(metadataKey: any, target: Object, propertyKey: string | symbol): boolean; - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/reflect-metadata/package.json b/WechatBot/node_modules/reflect-metadata/package.json deleted file mode 100644 index 11d979c00..000000000 --- a/WechatBot/node_modules/reflect-metadata/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "reflect-metadata", - "version": "0.1.13", - "description": "Polyfill for Metadata Reflection API", - "main": "Reflect.js", - "types": "index.d.ts", - "typescript": { - "definition": "Reflect.d.ts" - }, - "scripts": { - "prepublishOnly": "gulp prepublish", - "build": "gulp build", - "test": "gulp test", - "start": "gulp start" - }, - "repository": { - "type": "git", - "url": "https://github.com/rbuckton/reflect-metadata.git" - }, - "keywords": [ - "decorator", - "metadata", - "javascript", - "reflect" - ], - "author": { - "name": "Ron Buckton", - "email": "ron.buckton@microsoft.com", - "url": "http://github.com/rbuckton" - }, - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/rbuckton/reflect-metadata/issues" - }, - "homepage": "http://rbuckton.github.io/reflect-metadata", - "dependencies": {}, - "devDependencies": { - "@types/chai": "^3.4.34", - "@types/mocha": "^2.2.34", - "@types/node": "^6.0.52", - "chai": "^3.5.0", - "del": "^2.2.2", - "ecmarkup": "^3.9.3", - "gulp": "^3.9.1", - "gulp-emu": "^1.1.0", - "gulp-live-server": "0.0.30", - "gulp-mocha": "^3.0.1", - "gulp-rename": "^1.2.2", - "gulp-sequence": "^0.4.6", - "gulp-tsb": "^2.0.3", - "mocha": "^3.2.0", - "typescript": "^2.1.4" - } -} diff --git a/WechatBot/node_modules/reflect-metadata/reflect-metadata.d.ts b/WechatBot/node_modules/reflect-metadata/reflect-metadata.d.ts deleted file mode 100644 index 2f342cea3..000000000 --- a/WechatBot/node_modules/reflect-metadata/reflect-metadata.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/*! ***************************************************************************** -Copyright (C) Microsoft. All rights reserved. -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 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - -// NOTE: This file is obsolete and may be removed in a later release. -// For CommonJS/AMD/UMD/SystemJS declarations please use 'index.d.ts'. -// For standalone browser declarations, please use 'standalone.d.ts'. - -/// \ No newline at end of file diff --git a/WechatBot/node_modules/reflect-metadata/standalone.d.ts b/WechatBot/node_modules/reflect-metadata/standalone.d.ts deleted file mode 100644 index 1b369276c..000000000 --- a/WechatBot/node_modules/reflect-metadata/standalone.d.ts +++ /dev/null @@ -1,485 +0,0 @@ -/*! ***************************************************************************** -Copyright (C) Microsoft. All rights reserved. -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 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ -declare namespace Reflect { - /** - * Applies a set of decorators to a target object. - * @param decorators An array of decorators. - * @param target The target object. - * @returns The result of applying the provided decorators. - * @remarks Decorators are applied in reverse order of their positions in the array. - * @example - * - * class Example { } - * - * // constructor - * Example = Reflect.decorate(decoratorsArray, Example); - * - */ - function decorate(decorators: ClassDecorator[], target: Function): Function; - /** - * Applies a set of decorators to a property of a target object. - * @param decorators An array of decorators. - * @param target The target object. - * @param propertyKey The property key to decorate. - * @param attributes A property descriptor. - * @remarks Decorators are applied in reverse order. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod() { } - * method() { } - * } - * - * // property (on constructor) - * Reflect.decorate(decoratorsArray, Example, "staticProperty"); - * - * // property (on prototype) - * Reflect.decorate(decoratorsArray, Example.prototype, "property"); - * - * // method (on constructor) - * Object.defineProperty(Example, "staticMethod", - * Reflect.decorate(decoratorsArray, Example, "staticMethod", - * Object.getOwnPropertyDescriptor(Example, "staticMethod"))); - * - * // method (on prototype) - * Object.defineProperty(Example.prototype, "method", - * Reflect.decorate(decoratorsArray, Example.prototype, "method", - * Object.getOwnPropertyDescriptor(Example.prototype, "method"))); - * - */ - function decorate(decorators: (PropertyDecorator | MethodDecorator)[], target: Object, propertyKey: string | symbol, attributes?: PropertyDescriptor): PropertyDescriptor; - /** - * A default metadata decorator factory that can be used on a class, class member, or parameter. - * @param metadataKey The key for the metadata entry. - * @param metadataValue The value for the metadata entry. - * @returns A decorator function. - * @remarks - * If `metadataKey` is already defined for the target and target key, the - * metadataValue for that key will be overwritten. - * @example - * - * // constructor - * @Reflect.metadata(key, value) - * class Example { - * } - * - * // property (on constructor, TypeScript only) - * class Example { - * @Reflect.metadata(key, value) - * static staticProperty; - * } - * - * // property (on prototype, TypeScript only) - * class Example { - * @Reflect.metadata(key, value) - * property; - * } - * - * // method (on constructor) - * class Example { - * @Reflect.metadata(key, value) - * static staticMethod() { } - * } - * - * // method (on prototype) - * class Example { - * @Reflect.metadata(key, value) - * method() { } - * } - * - */ - function metadata(metadataKey: any, metadataValue: any): { - (target: Function): void; - (target: Object, propertyKey: string | symbol): void; - }; - /** - * Define a unique metadata entry on the target. - * @param metadataKey A key used to store and retrieve metadata. - * @param metadataValue A value that contains attached metadata. - * @param target The target object on which to define metadata. - * @example - * - * class Example { - * } - * - * // constructor - * Reflect.defineMetadata("custom:annotation", options, Example); - * - * // decorator factory as metadata-producing annotation. - * function MyAnnotation(options): ClassDecorator { - * return target => Reflect.defineMetadata("custom:annotation", options, target); - * } - * - */ - function defineMetadata(metadataKey: any, metadataValue: any, target: Object): void; - /** - * Define a unique metadata entry on the target. - * @param metadataKey A key used to store and retrieve metadata. - * @param metadataValue A value that contains attached metadata. - * @param target The target object on which to define metadata. - * @param propertyKey The property key for the target. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * Reflect.defineMetadata("custom:annotation", Number, Example, "staticProperty"); - * - * // property (on prototype) - * Reflect.defineMetadata("custom:annotation", Number, Example.prototype, "property"); - * - * // method (on constructor) - * Reflect.defineMetadata("custom:annotation", Number, Example, "staticMethod"); - * - * // method (on prototype) - * Reflect.defineMetadata("custom:annotation", Number, Example.prototype, "method"); - * - * // decorator factory as metadata-producing annotation. - * function MyAnnotation(options): PropertyDecorator { - * return (target, key) => Reflect.defineMetadata("custom:annotation", options, target, key); - * } - * - */ - function defineMetadata(metadataKey: any, metadataValue: any, target: Object, propertyKey: string | symbol): void; - /** - * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.hasMetadata("custom:annotation", Example); - * - */ - function hasMetadata(metadataKey: any, target: Object): boolean; - /** - * Gets a value indicating whether the target object or its prototype chain has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns `true` if the metadata key was defined on the target object or its prototype chain; otherwise, `false`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.hasMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.hasMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.hasMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function hasMetadata(metadataKey: any, target: Object, propertyKey: string | symbol): boolean; - /** - * Gets a value indicating whether the target object has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns `true` if the metadata key was defined on the target object; otherwise, `false`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.hasOwnMetadata("custom:annotation", Example); - * - */ - function hasOwnMetadata(metadataKey: any, target: Object): boolean; - /** - * Gets a value indicating whether the target object has the provided metadata key defined. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns `true` if the metadata key was defined on the target object; otherwise, `false`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.hasOwnMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.hasOwnMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function hasOwnMetadata(metadataKey: any, target: Object, propertyKey: string | symbol): boolean; - /** - * Gets the metadata value for the provided metadata key on the target object or its prototype chain. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getMetadata("custom:annotation", Example); - * - */ - function getMetadata(metadataKey: any, target: Object): any; - /** - * Gets the metadata value for the provided metadata key on the target object or its prototype chain. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function getMetadata(metadataKey: any, target: Object, propertyKey: string | symbol): any; - /** - * Gets the metadata value for the provided metadata key on the target object. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getOwnMetadata("custom:annotation", Example); - * - */ - function getOwnMetadata(metadataKey: any, target: Object): any; - /** - * Gets the metadata value for the provided metadata key on the target object. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns The metadata value for the metadata key if found; otherwise, `undefined`. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getOwnMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getOwnMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function getOwnMetadata(metadataKey: any, target: Object, propertyKey: string | symbol): any; - /** - * Gets the metadata keys defined on the target object or its prototype chain. - * @param target The target object on which the metadata is defined. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getMetadataKeys(Example); - * - */ - function getMetadataKeys(target: Object): any[]; - /** - * Gets the metadata keys defined on the target object or its prototype chain. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getMetadataKeys(Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getMetadataKeys(Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getMetadataKeys(Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getMetadataKeys(Example.prototype, "method"); - * - */ - function getMetadataKeys(target: Object, propertyKey: string | symbol): any[]; - /** - * Gets the unique metadata keys defined on the target object. - * @param target The target object on which the metadata is defined. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.getOwnMetadataKeys(Example); - * - */ - function getOwnMetadataKeys(target: Object): any[]; - /** - * Gets the unique metadata keys defined on the target object. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns An array of unique metadata keys. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.getOwnMetadataKeys(Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.getOwnMetadataKeys(Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.getOwnMetadataKeys(Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.getOwnMetadataKeys(Example.prototype, "method"); - * - */ - function getOwnMetadataKeys(target: Object, propertyKey: string | symbol): any[]; - /** - * Deletes the metadata entry from the target object with the provided key. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @returns `true` if the metadata entry was found and deleted; otherwise, false. - * @example - * - * class Example { - * } - * - * // constructor - * result = Reflect.deleteMetadata("custom:annotation", Example); - * - */ - function deleteMetadata(metadataKey: any, target: Object): boolean; - /** - * Deletes the metadata entry from the target object with the provided key. - * @param metadataKey A key used to store and retrieve metadata. - * @param target The target object on which the metadata is defined. - * @param propertyKey The property key for the target. - * @returns `true` if the metadata entry was found and deleted; otherwise, false. - * @example - * - * class Example { - * // property declarations are not part of ES6, though they are valid in TypeScript: - * // static staticProperty; - * // property; - * - * static staticMethod(p) { } - * method(p) { } - * } - * - * // property (on constructor) - * result = Reflect.deleteMetadata("custom:annotation", Example, "staticProperty"); - * - * // property (on prototype) - * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "property"); - * - * // method (on constructor) - * result = Reflect.deleteMetadata("custom:annotation", Example, "staticMethod"); - * - * // method (on prototype) - * result = Reflect.deleteMetadata("custom:annotation", Example.prototype, "method"); - * - */ - function deleteMetadata(metadataKey: any, target: Object, propertyKey: string | symbol): boolean; -} \ No newline at end of file diff --git a/WechatBot/node_modules/reflect-metadata/typings.d.ts b/WechatBot/node_modules/reflect-metadata/typings.d.ts deleted file mode 100644 index d19ee2ce1..000000000 --- a/WechatBot/node_modules/reflect-metadata/typings.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/*! ***************************************************************************** -Copyright (C) Microsoft. All rights reserved. -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 - -THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED -WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, -MERCHANTABLITY OR NON-INFRINGEMENT. - -See the Apache Version 2.0 License for specific language governing permissions -and limitations under the License. -***************************************************************************** */ - -// NOTE: This file is obsolete and may be removed in a later release. -// For CommonJS/AMD/UMD/SystemJS declarations please use 'index.d.ts'. -// For standalone browser declarations, please use 'standalone.d.ts'. - -import "./reflect-metadata"; \ No newline at end of file diff --git a/WechatBot/node_modules/regenerator-runtime/LICENSE b/WechatBot/node_modules/regenerator-runtime/LICENSE deleted file mode 100644 index cde61b6c5..000000000 --- a/WechatBot/node_modules/regenerator-runtime/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2014-present, Facebook, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/WechatBot/node_modules/regenerator-runtime/README.md b/WechatBot/node_modules/regenerator-runtime/README.md deleted file mode 100644 index e8702babf..000000000 --- a/WechatBot/node_modules/regenerator-runtime/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# regenerator-runtime - -Standalone runtime for -[Regenerator](https://github.com/facebook/regenerator)-compiled generator -and `async` functions. - -To import the runtime as a module (recommended), either of the following -import styles will work: -```js -// CommonJS -const regeneratorRuntime = require("regenerator-runtime"); - -// ECMAScript 2015 -import regeneratorRuntime from "regenerator-runtime"; -``` - -To ensure that `regeneratorRuntime` is defined globally, either of the -following styles will work: -```js -// CommonJS -require("regenerator-runtime/runtime"); - -// ECMAScript 2015 -import "regenerator-runtime/runtime.js"; -``` - -To get the absolute file system path of `runtime.js`, evaluate the -following expression: -```js -require("regenerator-runtime/path").path -``` diff --git a/WechatBot/node_modules/regenerator-runtime/package.json b/WechatBot/node_modules/regenerator-runtime/package.json deleted file mode 100644 index 5f70491cd..000000000 --- a/WechatBot/node_modules/regenerator-runtime/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "regenerator-runtime", - "author": "Ben Newman ", - "description": "Runtime for Regenerator-compiled generator and async functions.", - "version": "0.13.11", - "main": "runtime.js", - "keywords": [ - "regenerator", - "runtime", - "generator", - "async" - ], - "sideEffects": true, - "repository": { - "type": "git", - "url": "https://github.com/facebook/regenerator/tree/main/packages/runtime" - }, - "license": "MIT" -} diff --git a/WechatBot/node_modules/regenerator-runtime/path.js b/WechatBot/node_modules/regenerator-runtime/path.js deleted file mode 100755 index ced878b88..000000000 --- a/WechatBot/node_modules/regenerator-runtime/path.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Copyright (c) 2014-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -exports.path = require("path").join( - __dirname, - "runtime.js" -); diff --git a/WechatBot/node_modules/regenerator-runtime/runtime.js b/WechatBot/node_modules/regenerator-runtime/runtime.js deleted file mode 100755 index 1ea704e90..000000000 --- a/WechatBot/node_modules/regenerator-runtime/runtime.js +++ /dev/null @@ -1,761 +0,0 @@ -/** - * Copyright (c) 2014-present, Facebook, Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -var runtime = (function (exports) { - "use strict"; - - var Op = Object.prototype; - var hasOwn = Op.hasOwnProperty; - var defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }; - var undefined; // More compressible than void 0. - var $Symbol = typeof Symbol === "function" ? Symbol : {}; - var iteratorSymbol = $Symbol.iterator || "@@iterator"; - var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator"; - var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; - - function define(obj, key, value) { - Object.defineProperty(obj, key, { - value: value, - enumerable: true, - configurable: true, - writable: true - }); - return obj[key]; - } - try { - // IE 8 has a broken Object.defineProperty that only works on DOM objects. - define({}, ""); - } catch (err) { - define = function(obj, key, value) { - return obj[key] = value; - }; - } - - function wrap(innerFn, outerFn, self, tryLocsList) { - // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator. - var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator; - var generator = Object.create(protoGenerator.prototype); - var context = new Context(tryLocsList || []); - - // The ._invoke method unifies the implementations of the .next, - // .throw, and .return methods. - defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }); - - return generator; - } - exports.wrap = wrap; - - // Try/catch helper to minimize deoptimizations. Returns a completion - // record like context.tryEntries[i].completion. This interface could - // have been (and was previously) designed to take a closure to be - // invoked without arguments, but in all the cases we care about we - // already have an existing method we want to call, so there's no need - // to create a new function object. We can even get away with assuming - // the method takes exactly one argument, since that happens to be true - // in every case, so we don't have to touch the arguments object. The - // only additional allocation required is the completion record, which - // has a stable shape and so hopefully should be cheap to allocate. - function tryCatch(fn, obj, arg) { - try { - return { type: "normal", arg: fn.call(obj, arg) }; - } catch (err) { - return { type: "throw", arg: err }; - } - } - - var GenStateSuspendedStart = "suspendedStart"; - var GenStateSuspendedYield = "suspendedYield"; - var GenStateExecuting = "executing"; - var GenStateCompleted = "completed"; - - // Returning this object from the innerFn has the same effect as - // breaking out of the dispatch switch statement. - var ContinueSentinel = {}; - - // Dummy constructor functions that we use as the .constructor and - // .constructor.prototype properties for functions that return Generator - // objects. For full spec compliance, you may wish to configure your - // minifier not to mangle the names of these two functions. - function Generator() {} - function GeneratorFunction() {} - function GeneratorFunctionPrototype() {} - - // This is a polyfill for %IteratorPrototype% for environments that - // don't natively support it. - var IteratorPrototype = {}; - define(IteratorPrototype, iteratorSymbol, function () { - return this; - }); - - var getProto = Object.getPrototypeOf; - var NativeIteratorPrototype = getProto && getProto(getProto(values([]))); - if (NativeIteratorPrototype && - NativeIteratorPrototype !== Op && - hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) { - // This environment has a native %IteratorPrototype%; use it instead - // of the polyfill. - IteratorPrototype = NativeIteratorPrototype; - } - - var Gp = GeneratorFunctionPrototype.prototype = - Generator.prototype = Object.create(IteratorPrototype); - GeneratorFunction.prototype = GeneratorFunctionPrototype; - defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: true }); - defineProperty( - GeneratorFunctionPrototype, - "constructor", - { value: GeneratorFunction, configurable: true } - ); - GeneratorFunction.displayName = define( - GeneratorFunctionPrototype, - toStringTagSymbol, - "GeneratorFunction" - ); - - // Helper for defining the .next, .throw, and .return methods of the - // Iterator interface in terms of a single ._invoke method. - function defineIteratorMethods(prototype) { - ["next", "throw", "return"].forEach(function(method) { - define(prototype, method, function(arg) { - return this._invoke(method, arg); - }); - }); - } - - exports.isGeneratorFunction = function(genFun) { - var ctor = typeof genFun === "function" && genFun.constructor; - return ctor - ? ctor === GeneratorFunction || - // For the native GeneratorFunction constructor, the best we can - // do is to check its .name property. - (ctor.displayName || ctor.name) === "GeneratorFunction" - : false; - }; - - exports.mark = function(genFun) { - if (Object.setPrototypeOf) { - Object.setPrototypeOf(genFun, GeneratorFunctionPrototype); - } else { - genFun.__proto__ = GeneratorFunctionPrototype; - define(genFun, toStringTagSymbol, "GeneratorFunction"); - } - genFun.prototype = Object.create(Gp); - return genFun; - }; - - // Within the body of any async function, `await x` is transformed to - // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test - // `hasOwn.call(value, "__await")` to determine if the yielded value is - // meant to be awaited. - exports.awrap = function(arg) { - return { __await: arg }; - }; - - function AsyncIterator(generator, PromiseImpl) { - function invoke(method, arg, resolve, reject) { - var record = tryCatch(generator[method], generator, arg); - if (record.type === "throw") { - reject(record.arg); - } else { - var result = record.arg; - var value = result.value; - if (value && - typeof value === "object" && - hasOwn.call(value, "__await")) { - return PromiseImpl.resolve(value.__await).then(function(value) { - invoke("next", value, resolve, reject); - }, function(err) { - invoke("throw", err, resolve, reject); - }); - } - - return PromiseImpl.resolve(value).then(function(unwrapped) { - // When a yielded Promise is resolved, its final value becomes - // the .value of the Promise<{value,done}> result for the - // current iteration. - result.value = unwrapped; - resolve(result); - }, function(error) { - // If a rejected Promise was yielded, throw the rejection back - // into the async generator function so it can be handled there. - return invoke("throw", error, resolve, reject); - }); - } - } - - var previousPromise; - - function enqueue(method, arg) { - function callInvokeWithMethodAndArg() { - return new PromiseImpl(function(resolve, reject) { - invoke(method, arg, resolve, reject); - }); - } - - return previousPromise = - // If enqueue has been called before, then we want to wait until - // all previous Promises have been resolved before calling invoke, - // so that results are always delivered in the correct order. If - // enqueue has not been called before, then it is important to - // call invoke immediately, without waiting on a callback to fire, - // so that the async generator function has the opportunity to do - // any necessary setup in a predictable way. This predictability - // is why the Promise constructor synchronously invokes its - // executor callback, and why async functions synchronously - // execute code before the first await. Since we implement simple - // async functions in terms of async generators, it is especially - // important to get this right, even though it requires care. - previousPromise ? previousPromise.then( - callInvokeWithMethodAndArg, - // Avoid propagating failures to Promises returned by later - // invocations of the iterator. - callInvokeWithMethodAndArg - ) : callInvokeWithMethodAndArg(); - } - - // Define the unified helper method that is used to implement .next, - // .throw, and .return (see defineIteratorMethods). - defineProperty(this, "_invoke", { value: enqueue }); - } - - defineIteratorMethods(AsyncIterator.prototype); - define(AsyncIterator.prototype, asyncIteratorSymbol, function () { - return this; - }); - exports.AsyncIterator = AsyncIterator; - - // Note that simple async functions are implemented on top of - // AsyncIterator objects; they just return a Promise for the value of - // the final result produced by the iterator. - exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) { - if (PromiseImpl === void 0) PromiseImpl = Promise; - - var iter = new AsyncIterator( - wrap(innerFn, outerFn, self, tryLocsList), - PromiseImpl - ); - - return exports.isGeneratorFunction(outerFn) - ? iter // If outerFn is a generator, return the full iterator. - : iter.next().then(function(result) { - return result.done ? result.value : iter.next(); - }); - }; - - function makeInvokeMethod(innerFn, self, context) { - var state = GenStateSuspendedStart; - - return function invoke(method, arg) { - if (state === GenStateExecuting) { - throw new Error("Generator is already running"); - } - - if (state === GenStateCompleted) { - if (method === "throw") { - throw arg; - } - - // Be forgiving, per 25.3.3.3.3 of the spec: - // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume - return doneResult(); - } - - context.method = method; - context.arg = arg; - - while (true) { - var delegate = context.delegate; - if (delegate) { - var delegateResult = maybeInvokeDelegate(delegate, context); - if (delegateResult) { - if (delegateResult === ContinueSentinel) continue; - return delegateResult; - } - } - - if (context.method === "next") { - // Setting context._sent for legacy support of Babel's - // function.sent implementation. - context.sent = context._sent = context.arg; - - } else if (context.method === "throw") { - if (state === GenStateSuspendedStart) { - state = GenStateCompleted; - throw context.arg; - } - - context.dispatchException(context.arg); - - } else if (context.method === "return") { - context.abrupt("return", context.arg); - } - - state = GenStateExecuting; - - var record = tryCatch(innerFn, self, context); - if (record.type === "normal") { - // If an exception is thrown from innerFn, we leave state === - // GenStateExecuting and loop back for another invocation. - state = context.done - ? GenStateCompleted - : GenStateSuspendedYield; - - if (record.arg === ContinueSentinel) { - continue; - } - - return { - value: record.arg, - done: context.done - }; - - } else if (record.type === "throw") { - state = GenStateCompleted; - // Dispatch the exception by looping back around to the - // context.dispatchException(context.arg) call above. - context.method = "throw"; - context.arg = record.arg; - } - } - }; - } - - // Call delegate.iterator[context.method](context.arg) and handle the - // result, either by returning a { value, done } result from the - // delegate iterator, or by modifying context.method and context.arg, - // setting context.delegate to null, and returning the ContinueSentinel. - function maybeInvokeDelegate(delegate, context) { - var methodName = context.method; - var method = delegate.iterator[methodName]; - if (method === undefined) { - // A .throw or .return when the delegate iterator has no .throw - // method, or a missing .next mehtod, always terminate the - // yield* loop. - context.delegate = null; - - // Note: ["return"] must be used for ES3 parsing compatibility. - if (methodName === "throw" && delegate.iterator["return"]) { - // If the delegate iterator has a return method, give it a - // chance to clean up. - context.method = "return"; - context.arg = undefined; - maybeInvokeDelegate(delegate, context); - - if (context.method === "throw") { - // If maybeInvokeDelegate(context) changed context.method from - // "return" to "throw", let that override the TypeError below. - return ContinueSentinel; - } - } - if (methodName !== "return") { - context.method = "throw"; - context.arg = new TypeError( - "The iterator does not provide a '" + methodName + "' method"); - } - - return ContinueSentinel; - } - - var record = tryCatch(method, delegate.iterator, context.arg); - - if (record.type === "throw") { - context.method = "throw"; - context.arg = record.arg; - context.delegate = null; - return ContinueSentinel; - } - - var info = record.arg; - - if (! info) { - context.method = "throw"; - context.arg = new TypeError("iterator result is not an object"); - context.delegate = null; - return ContinueSentinel; - } - - if (info.done) { - // Assign the result of the finished delegate to the temporary - // variable specified by delegate.resultName (see delegateYield). - context[delegate.resultName] = info.value; - - // Resume execution at the desired location (see delegateYield). - context.next = delegate.nextLoc; - - // If context.method was "throw" but the delegate handled the - // exception, let the outer generator proceed normally. If - // context.method was "next", forget context.arg since it has been - // "consumed" by the delegate iterator. If context.method was - // "return", allow the original .return call to continue in the - // outer generator. - if (context.method !== "return") { - context.method = "next"; - context.arg = undefined; - } - - } else { - // Re-yield the result returned by the delegate method. - return info; - } - - // The delegate iterator is finished, so forget it and continue with - // the outer generator. - context.delegate = null; - return ContinueSentinel; - } - - // Define Generator.prototype.{next,throw,return} in terms of the - // unified ._invoke helper method. - defineIteratorMethods(Gp); - - define(Gp, toStringTagSymbol, "Generator"); - - // A Generator should always return itself as the iterator object when the - // @@iterator function is called on it. Some browsers' implementations of the - // iterator prototype chain incorrectly implement this, causing the Generator - // object to not be returned from this call. This ensures that doesn't happen. - // See https://github.com/facebook/regenerator/issues/274 for more details. - define(Gp, iteratorSymbol, function() { - return this; - }); - - define(Gp, "toString", function() { - return "[object Generator]"; - }); - - function pushTryEntry(locs) { - var entry = { tryLoc: locs[0] }; - - if (1 in locs) { - entry.catchLoc = locs[1]; - } - - if (2 in locs) { - entry.finallyLoc = locs[2]; - entry.afterLoc = locs[3]; - } - - this.tryEntries.push(entry); - } - - function resetTryEntry(entry) { - var record = entry.completion || {}; - record.type = "normal"; - delete record.arg; - entry.completion = record; - } - - function Context(tryLocsList) { - // The root entry object (effectively a try statement without a catch - // or a finally block) gives us a place to store values thrown from - // locations where there is no enclosing try statement. - this.tryEntries = [{ tryLoc: "root" }]; - tryLocsList.forEach(pushTryEntry, this); - this.reset(true); - } - - exports.keys = function(val) { - var object = Object(val); - var keys = []; - for (var key in object) { - keys.push(key); - } - keys.reverse(); - - // Rather than returning an object with a next method, we keep - // things simple and return the next function itself. - return function next() { - while (keys.length) { - var key = keys.pop(); - if (key in object) { - next.value = key; - next.done = false; - return next; - } - } - - // To avoid creating an additional object, we just hang the .value - // and .done properties off the next function object itself. This - // also ensures that the minifier will not anonymize the function. - next.done = true; - return next; - }; - }; - - function values(iterable) { - if (iterable) { - var iteratorMethod = iterable[iteratorSymbol]; - if (iteratorMethod) { - return iteratorMethod.call(iterable); - } - - if (typeof iterable.next === "function") { - return iterable; - } - - if (!isNaN(iterable.length)) { - var i = -1, next = function next() { - while (++i < iterable.length) { - if (hasOwn.call(iterable, i)) { - next.value = iterable[i]; - next.done = false; - return next; - } - } - - next.value = undefined; - next.done = true; - - return next; - }; - - return next.next = next; - } - } - - // Return an iterator with no values. - return { next: doneResult }; - } - exports.values = values; - - function doneResult() { - return { value: undefined, done: true }; - } - - Context.prototype = { - constructor: Context, - - reset: function(skipTempReset) { - this.prev = 0; - this.next = 0; - // Resetting context._sent for legacy support of Babel's - // function.sent implementation. - this.sent = this._sent = undefined; - this.done = false; - this.delegate = null; - - this.method = "next"; - this.arg = undefined; - - this.tryEntries.forEach(resetTryEntry); - - if (!skipTempReset) { - for (var name in this) { - // Not sure about the optimal order of these conditions: - if (name.charAt(0) === "t" && - hasOwn.call(this, name) && - !isNaN(+name.slice(1))) { - this[name] = undefined; - } - } - } - }, - - stop: function() { - this.done = true; - - var rootEntry = this.tryEntries[0]; - var rootRecord = rootEntry.completion; - if (rootRecord.type === "throw") { - throw rootRecord.arg; - } - - return this.rval; - }, - - dispatchException: function(exception) { - if (this.done) { - throw exception; - } - - var context = this; - function handle(loc, caught) { - record.type = "throw"; - record.arg = exception; - context.next = loc; - - if (caught) { - // If the dispatched exception was caught by a catch block, - // then let that catch block handle the exception normally. - context.method = "next"; - context.arg = undefined; - } - - return !! caught; - } - - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - var record = entry.completion; - - if (entry.tryLoc === "root") { - // Exception thrown outside of any try block that could handle - // it, so set the completion value of the entire function to - // throw the exception. - return handle("end"); - } - - if (entry.tryLoc <= this.prev) { - var hasCatch = hasOwn.call(entry, "catchLoc"); - var hasFinally = hasOwn.call(entry, "finallyLoc"); - - if (hasCatch && hasFinally) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } else if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - - } else if (hasCatch) { - if (this.prev < entry.catchLoc) { - return handle(entry.catchLoc, true); - } - - } else if (hasFinally) { - if (this.prev < entry.finallyLoc) { - return handle(entry.finallyLoc); - } - - } else { - throw new Error("try statement without catch or finally"); - } - } - } - }, - - abrupt: function(type, arg) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc <= this.prev && - hasOwn.call(entry, "finallyLoc") && - this.prev < entry.finallyLoc) { - var finallyEntry = entry; - break; - } - } - - if (finallyEntry && - (type === "break" || - type === "continue") && - finallyEntry.tryLoc <= arg && - arg <= finallyEntry.finallyLoc) { - // Ignore the finally entry if control is not jumping to a - // location outside the try/catch block. - finallyEntry = null; - } - - var record = finallyEntry ? finallyEntry.completion : {}; - record.type = type; - record.arg = arg; - - if (finallyEntry) { - this.method = "next"; - this.next = finallyEntry.finallyLoc; - return ContinueSentinel; - } - - return this.complete(record); - }, - - complete: function(record, afterLoc) { - if (record.type === "throw") { - throw record.arg; - } - - if (record.type === "break" || - record.type === "continue") { - this.next = record.arg; - } else if (record.type === "return") { - this.rval = this.arg = record.arg; - this.method = "return"; - this.next = "end"; - } else if (record.type === "normal" && afterLoc) { - this.next = afterLoc; - } - - return ContinueSentinel; - }, - - finish: function(finallyLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.finallyLoc === finallyLoc) { - this.complete(entry.completion, entry.afterLoc); - resetTryEntry(entry); - return ContinueSentinel; - } - } - }, - - "catch": function(tryLoc) { - for (var i = this.tryEntries.length - 1; i >= 0; --i) { - var entry = this.tryEntries[i]; - if (entry.tryLoc === tryLoc) { - var record = entry.completion; - if (record.type === "throw") { - var thrown = record.arg; - resetTryEntry(entry); - } - return thrown; - } - } - - // The context.catch method must only be called with a location - // argument that corresponds to a known catch block. - throw new Error("illegal catch attempt"); - }, - - delegateYield: function(iterable, resultName, nextLoc) { - this.delegate = { - iterator: values(iterable), - resultName: resultName, - nextLoc: nextLoc - }; - - if (this.method === "next") { - // Deliberately forget the last sent value so that we don't - // accidentally pass it on to the delegate. - this.arg = undefined; - } - - return ContinueSentinel; - } - }; - - // Regardless of whether this script is executing as a CommonJS module - // or not, return the runtime object so that we can declare the variable - // regeneratorRuntime in the outer scope, which allows this module to be - // injected easily by `bin/regenerator --include-runtime script.js`. - return exports; - -}( - // If this script is executing as a CommonJS module, use module.exports - // as the regeneratorRuntime namespace. Otherwise create a new empty - // object. Either way, the resulting object will be used to initialize - // the regeneratorRuntime variable at the top of this file. - typeof module === "object" ? module.exports : {} -)); - -try { - regeneratorRuntime = runtime; -} catch (accidentalStrictMode) { - // This module should not be running in strict mode, so the above - // assignment should always work unless something is misconfigured. Just - // in case runtime.js accidentally runs in strict mode, in modern engines - // we can explicitly access globalThis. In older engines we can escape - // strict mode using a global Function call. This could conceivably fail - // if a Content Security Policy forbids using Function, but in that case - // the proper solution is to fix the accidental strict mode problem. If - // you've misconfigured your bundler to force strict mode and applied a - // CSP to forbid Function, and you're not willing to fix either of those - // problems, please detail your unique predicament in a GitHub issue. - if (typeof globalThis === "object") { - globalThis.regeneratorRuntime = runtime; - } else { - Function("r", "regeneratorRuntime = r")(runtime); - } -} diff --git a/WechatBot/node_modules/require-directory/.jshintrc b/WechatBot/node_modules/require-directory/.jshintrc deleted file mode 100644 index e14e4dcbd..000000000 --- a/WechatBot/node_modules/require-directory/.jshintrc +++ /dev/null @@ -1,67 +0,0 @@ -{ - "maxerr" : 50, - "bitwise" : true, - "camelcase" : true, - "curly" : true, - "eqeqeq" : true, - "forin" : true, - "immed" : true, - "indent" : 2, - "latedef" : true, - "newcap" : true, - "noarg" : true, - "noempty" : true, - "nonew" : true, - "plusplus" : true, - "quotmark" : true, - "undef" : true, - "unused" : true, - "strict" : true, - "trailing" : true, - "maxparams" : false, - "maxdepth" : false, - "maxstatements" : false, - "maxcomplexity" : false, - "maxlen" : false, - "asi" : false, - "boss" : false, - "debug" : false, - "eqnull" : true, - "es5" : false, - "esnext" : false, - "moz" : false, - "evil" : false, - "expr" : true, - "funcscope" : true, - "globalstrict" : true, - "iterator" : true, - "lastsemic" : false, - "laxbreak" : false, - "laxcomma" : false, - "loopfunc" : false, - "multistr" : false, - "proto" : false, - "scripturl" : false, - "smarttabs" : false, - "shadow" : false, - "sub" : false, - "supernew" : false, - "validthis" : false, - "browser" : true, - "couch" : false, - "devel" : true, - "dojo" : false, - "jquery" : false, - "mootools" : false, - "node" : true, - "nonstandard" : false, - "prototypejs" : false, - "rhino" : false, - "worker" : false, - "wsh" : false, - "yui" : false, - "nomen" : true, - "onevar" : true, - "passfail" : false, - "white" : true -} diff --git a/WechatBot/node_modules/require-directory/.npmignore b/WechatBot/node_modules/require-directory/.npmignore deleted file mode 100644 index 47cf365a0..000000000 --- a/WechatBot/node_modules/require-directory/.npmignore +++ /dev/null @@ -1 +0,0 @@ -test/** diff --git a/WechatBot/node_modules/require-directory/.travis.yml b/WechatBot/node_modules/require-directory/.travis.yml deleted file mode 100644 index 20fd86b6a..000000000 --- a/WechatBot/node_modules/require-directory/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - 0.10 diff --git a/WechatBot/node_modules/require-directory/LICENSE b/WechatBot/node_modules/require-directory/LICENSE deleted file mode 100644 index a70f253aa..000000000 --- a/WechatBot/node_modules/require-directory/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2011 Troy Goode - -Permission is hereby granted, free of charge, to any person obtaining a -copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be included -in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/WechatBot/node_modules/require-directory/README.markdown b/WechatBot/node_modules/require-directory/README.markdown deleted file mode 100644 index 926a063ed..000000000 --- a/WechatBot/node_modules/require-directory/README.markdown +++ /dev/null @@ -1,184 +0,0 @@ -# require-directory - -Recursively iterates over specified directory, `require()`'ing each file, and returning a nested hash structure containing those modules. - -**[Follow me (@troygoode) on Twitter!](https://twitter.com/intent/user?screen_name=troygoode)** - -[![NPM](https://nodei.co/npm/require-directory.png?downloads=true&stars=true)](https://nodei.co/npm/require-directory/) - -[![build status](https://secure.travis-ci.org/troygoode/node-require-directory.png)](http://travis-ci.org/troygoode/node-require-directory) - -## How To Use - -### Installation (via [npm](https://npmjs.org/package/require-directory)) - -```bash -$ npm install require-directory -``` - -### Usage - -A common pattern in node.js is to include an index file which creates a hash of the files in its current directory. Given a directory structure like so: - -* app.js -* routes/ - * index.js - * home.js - * auth/ - * login.js - * logout.js - * register.js - -`routes/index.js` uses `require-directory` to build the hash (rather than doing so manually) like so: - -```javascript -var requireDirectory = require('require-directory'); -module.exports = requireDirectory(module); -``` - -`app.js` references `routes/index.js` like any other module, but it now has a hash/tree of the exports from the `./routes/` directory: - -```javascript -var routes = require('./routes'); - -// snip - -app.get('/', routes.home); -app.get('/register', routes.auth.register); -app.get('/login', routes.auth.login); -app.get('/logout', routes.auth.logout); -``` - -The `routes` variable above is the equivalent of this: - -```javascript -var routes = { - home: require('routes/home.js'), - auth: { - login: require('routes/auth/login.js'), - logout: require('routes/auth/logout.js'), - register: require('routes/auth/register.js') - } -}; -``` - -*Note that `routes.index` will be `undefined` as you would hope.* - -### Specifying Another Directory - -You can specify which directory you want to build a tree of (if it isn't the current directory for whatever reason) by passing it as the second parameter. Not specifying the path (`requireDirectory(module)`) is the equivelant of `requireDirectory(module, __dirname)`: - -```javascript -var requireDirectory = require('require-directory'); -module.exports = requireDirectory(module, './some/subdirectory'); -``` - -For example, in the [example in the Usage section](#usage) we could have avoided creating `routes/index.js` and instead changed the first lines of `app.js` to: - -```javascript -var requireDirectory = require('require-directory'); -var routes = requireDirectory(module, './routes'); -``` - -## Options - -You can pass an options hash to `require-directory` as the 2nd parameter (or 3rd if you're passing the path to another directory as the 2nd parameter already). Here are the available options: - -### Whitelisting - -Whitelisting (either via RegExp or function) allows you to specify that only certain files be loaded. - -```javascript -var requireDirectory = require('require-directory'), - whitelist = /onlyinclude.js$/, - hash = requireDirectory(module, {include: whitelist}); -``` - -```javascript -var requireDirectory = require('require-directory'), - check = function(path){ - if(/onlyinclude.js$/.test(path)){ - return true; // don't include - }else{ - return false; // go ahead and include - } - }, - hash = requireDirectory(module, {include: check}); -``` - -### Blacklisting - -Blacklisting (either via RegExp or function) allows you to specify that all but certain files should be loaded. - -```javascript -var requireDirectory = require('require-directory'), - blacklist = /dontinclude\.js$/, - hash = requireDirectory(module, {exclude: blacklist}); -``` - -```javascript -var requireDirectory = require('require-directory'), - check = function(path){ - if(/dontinclude\.js$/.test(path)){ - return false; // don't include - }else{ - return true; // go ahead and include - } - }, - hash = requireDirectory(module, {exclude: check}); -``` - -### Visiting Objects As They're Loaded - -`require-directory` takes a function as the `visit` option that will be called for each module that is added to module.exports. - -```javascript -var requireDirectory = require('require-directory'), - visitor = function(obj) { - console.log(obj); // will be called for every module that is loaded - }, - hash = requireDirectory(module, {visit: visitor}); -``` - -The visitor can also transform the objects by returning a value: - -```javascript -var requireDirectory = require('require-directory'), - visitor = function(obj) { - return obj(new Date()); - }, - hash = requireDirectory(module, {visit: visitor}); -``` - -### Renaming Keys - -```javascript -var requireDirectory = require('require-directory'), - renamer = function(name) { - return name.toUpperCase(); - }, - hash = requireDirectory(module, {rename: renamer}); -``` - -### No Recursion - -```javascript -var requireDirectory = require('require-directory'), - hash = requireDirectory(module, {recurse: false}); -``` - -## Run Unit Tests - -```bash -$ npm run lint -$ npm test -``` - -## License - -[MIT License](http://www.opensource.org/licenses/mit-license.php) - -## Author - -[Troy Goode](https://github.com/TroyGoode) ([troygoode@gmail.com](mailto:troygoode@gmail.com)) - diff --git a/WechatBot/node_modules/require-directory/index.js b/WechatBot/node_modules/require-directory/index.js deleted file mode 100755 index cd37da7ea..000000000 --- a/WechatBot/node_modules/require-directory/index.js +++ /dev/null @@ -1,86 +0,0 @@ -'use strict'; - -var fs = require('fs'), - join = require('path').join, - resolve = require('path').resolve, - dirname = require('path').dirname, - defaultOptions = { - extensions: ['js', 'json', 'coffee'], - recurse: true, - rename: function (name) { - return name; - }, - visit: function (obj) { - return obj; - } - }; - -function checkFileInclusion(path, filename, options) { - return ( - // verify file has valid extension - (new RegExp('\\.(' + options.extensions.join('|') + ')$', 'i').test(filename)) && - - // if options.include is a RegExp, evaluate it and make sure the path passes - !(options.include && options.include instanceof RegExp && !options.include.test(path)) && - - // if options.include is a function, evaluate it and make sure the path passes - !(options.include && typeof options.include === 'function' && !options.include(path, filename)) && - - // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass - !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path)) && - - // if options.exclude is a function, evaluate it and make sure the path doesn't pass - !(options.exclude && typeof options.exclude === 'function' && options.exclude(path, filename)) - ); -} - -function requireDirectory(m, path, options) { - var retval = {}; - - // path is optional - if (path && !options && typeof path !== 'string') { - options = path; - path = null; - } - - // default options - options = options || {}; - for (var prop in defaultOptions) { - if (typeof options[prop] === 'undefined') { - options[prop] = defaultOptions[prop]; - } - } - - // if no path was passed in, assume the equivelant of __dirname from caller - // otherwise, resolve path relative to the equivalent of __dirname - path = !path ? dirname(m.filename) : resolve(dirname(m.filename), path); - - // get the path of each file in specified directory, append to current tree node, recurse - fs.readdirSync(path).forEach(function (filename) { - var joined = join(path, filename), - files, - key, - obj; - - if (fs.statSync(joined).isDirectory() && options.recurse) { - // this node is a directory; recurse - files = requireDirectory(m, joined, options); - // exclude empty directories - if (Object.keys(files).length) { - retval[options.rename(filename, joined, filename)] = files; - } - } else { - if (joined !== m.filename && checkFileInclusion(joined, filename, options)) { - // hash node key shouldn't include file extension - key = filename.substring(0, filename.lastIndexOf('.')); - obj = m.require(joined); - retval[options.rename(key, joined, filename)] = options.visit(obj, joined, filename) || obj; - } - } - }); - - return retval; -} - -module.exports = requireDirectory; -module.exports.defaults = defaultOptions; diff --git a/WechatBot/node_modules/require-directory/package.json b/WechatBot/node_modules/require-directory/package.json deleted file mode 100644 index 25ece4b31..000000000 --- a/WechatBot/node_modules/require-directory/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "author": "Troy Goode (http://github.com/troygoode/)", - "name": "require-directory", - "version": "2.1.1", - "description": "Recursively iterates over specified directory, require()'ing each file, and returning a nested hash structure containing those modules.", - "keywords": [ - "require", - "directory", - "library", - "recursive" - ], - "homepage": "https://github.com/troygoode/node-require-directory/", - "main": "index.js", - "repository": { - "type": "git", - "url": "git://github.com/troygoode/node-require-directory.git" - }, - "contributors": [ - { - "name": "Troy Goode", - "email": "troygoode@gmail.com", - "web": "http://github.com/troygoode/" - } - ], - "license": "MIT", - "bugs": { - "url": "http://github.com/troygoode/node-require-directory/issues/" - }, - "engines": { - "node": ">=0.10.0" - }, - "devDependencies": { - "jshint": "^2.6.0", - "mocha": "^2.1.0" - }, - "scripts": { - "test": "mocha", - "lint": "jshint index.js test/test.js" - } -} diff --git a/WechatBot/node_modules/require-main-filename/CHANGELOG.md b/WechatBot/node_modules/require-main-filename/CHANGELOG.md deleted file mode 100644 index 717d59e35..000000000 --- a/WechatBot/node_modules/require-main-filename/CHANGELOG.md +++ /dev/null @@ -1,26 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - - -# [2.0.0](https://github.com/yargs/require-main-filename/compare/v1.0.2...v2.0.0) (2019-01-28) - - -### Chores - -* drop support for Node 0.10 ([#11](https://github.com/yargs/require-main-filename/issues/11)) ([87f4e13](https://github.com/yargs/require-main-filename/commit/87f4e13)) - - -### BREAKING CHANGES - -* drop support for Node 0.10/0.12 - - - - -## [1.0.2](https://github.com/yargs/require-main-filename/compare/v1.0.1...v1.0.2) (2017-06-16) - - -### Bug Fixes - -* add files to package.json ([#4](https://github.com/yargs/require-main-filename/issues/4)) ([fa29988](https://github.com/yargs/require-main-filename/commit/fa29988)) diff --git a/WechatBot/node_modules/require-main-filename/LICENSE.txt b/WechatBot/node_modules/require-main-filename/LICENSE.txt deleted file mode 100644 index 836440bef..000000000 --- a/WechatBot/node_modules/require-main-filename/LICENSE.txt +++ /dev/null @@ -1,14 +0,0 @@ -Copyright (c) 2016, Contributors - -Permission to use, copy, modify, and/or distribute this software -for any purpose with or without fee is hereby granted, provided -that the above copyright notice and this permission notice -appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES -OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE -LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES -OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, -WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, -ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/WechatBot/node_modules/require-main-filename/README.md b/WechatBot/node_modules/require-main-filename/README.md deleted file mode 100644 index 820d9f589..000000000 --- a/WechatBot/node_modules/require-main-filename/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# require-main-filename - -[![Build Status](https://travis-ci.org/yargs/require-main-filename.png)](https://travis-ci.org/yargs/require-main-filename) -[![Coverage Status](https://coveralls.io/repos/yargs/require-main-filename/badge.svg?branch=master)](https://coveralls.io/r/yargs/require-main-filename?branch=master) -[![NPM version](https://img.shields.io/npm/v/require-main-filename.svg)](https://www.npmjs.com/package/require-main-filename) - -`require.main.filename` is great for figuring out the entry -point for the current application. This can be combined with a module like -[pkg-conf](https://www.npmjs.com/package/pkg-conf) to, _as if by magic_, load -top-level configuration. - -Unfortunately, `require.main.filename` sometimes fails when an application is -executed with an alternative process manager, e.g., [iisnode](https://github.com/tjanczuk/iisnode). - -`require-main-filename` is a shim that addresses this problem. - -## Usage - -```js -var main = require('require-main-filename')() -// use main as an alternative to require.main.filename. -``` - -## License - -ISC diff --git a/WechatBot/node_modules/require-main-filename/index.js b/WechatBot/node_modules/require-main-filename/index.js deleted file mode 100755 index dca7f0cc1..000000000 --- a/WechatBot/node_modules/require-main-filename/index.js +++ /dev/null @@ -1,18 +0,0 @@ -module.exports = function (_require) { - _require = _require || require - var main = _require.main - if (main && isIISNode(main)) return handleIISNode(main) - else return main ? main.filename : process.cwd() -} - -function isIISNode (main) { - return /\\iisnode\\/.test(main.filename) -} - -function handleIISNode (main) { - if (!main.children.length) { - return main.filename - } else { - return main.children[0].filename - } -} diff --git a/WechatBot/node_modules/require-main-filename/package.json b/WechatBot/node_modules/require-main-filename/package.json deleted file mode 100644 index a549822d6..000000000 --- a/WechatBot/node_modules/require-main-filename/package.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "name": "require-main-filename", - "version": "2.0.0", - "description": "shim for require.main.filename() that works in as many environments as possible", - "main": "index.js", - "scripts": { - "pretest": "standard", - "test": "tap --coverage test.js", - "release": "standard-version" - }, - "repository": { - "type": "git", - "url": "git+ssh://git@github.com/yargs/require-main-filename.git" - }, - "keywords": [ - "require", - "shim", - "iisnode" - ], - "files": [ - "index.js" - ], - "author": "Ben Coe ", - "license": "ISC", - "bugs": { - "url": "https://github.com/yargs/require-main-filename/issues" - }, - "homepage": "https://github.com/yargs/require-main-filename#readme", - "devDependencies": { - "chai": "^4.0.0", - "standard": "^10.0.3", - "standard-version": "^4.0.0", - "tap": "^11.0.0" - } -} diff --git a/WechatBot/node_modules/rxjs/CHANGELOG.md b/WechatBot/node_modules/rxjs/CHANGELOG.md deleted file mode 100644 index 8f6c7283e..000000000 --- a/WechatBot/node_modules/rxjs/CHANGELOG.md +++ /dev/null @@ -1,2742 +0,0 @@ -## [7.8.1](https://github.com/reactivex/rxjs/compare/7.8.0...7.8.1) (2023-04-26) - -### Bug Fixes - -- **asapScheduler:** No longer stops after scheduling twice during flush ([#7198](https://github.com/reactivex/rxjs/issues/7198)) ([1b52405](https://github.com/reactivex/rxjs/commit/1b524057b4db157814bfd04ad7d10c999afdccfa)), closes [ReactiveX#7196](https://github.com/ReactiveX/issues/7196) -- **throttle:** properly handle default ThrottleConfig values ([#7176](https://github.com/reactivex/rxjs/issues/7176)) ([ceb821c](https://github.com/reactivex/rxjs/commit/ceb821cfd81ca29b0d764b86a03f1e9f1eaa0999)) - -# [7.8.0](https://github.com/reactivex/rxjs/compare/7.7.0...7.8.0) (2022-12-15) - -### Features - -- **buffer:** `closingNotifier` now supports any `ObservableInput` ([#7073](https://github.com/reactivex/rxjs/issues/7073)) ([61b877a](https://github.com/reactivex/rxjs/commit/61b877a50c2557196a45e12622305c5a84fc3f0a)) -- **delayWhen:** `delayWhen`'s `delayDurationSelector` now supports any `ObservableInput` ([#7049](https://github.com/reactivex/rxjs/issues/7049)) ([dfd95db](https://github.com/reactivex/rxjs/commit/dfd95db952a6772d35d11bdd1974f2c4b4d68b25)) -- **sequenceEqual:** `compareTo` now supports any `ObservableInput` ([#7102](https://github.com/reactivex/rxjs/issues/7102)) ([d501961](https://github.com/reactivex/rxjs/commit/d50196187710c7a0cad50703b2071fc3f2cabd3c)) -- **share:** `ShareConfig` factory properties now supports any `ObservableInput` ([#7093](https://github.com/reactivex/rxjs/issues/7093)) ([cc3995a](https://github.com/reactivex/rxjs/commit/cc3995a6f6baf9456ec11f749fe89bf61b9e2d62)) -- **skipUntil:** `notifier` now supports any `ObservableInput` ([#7091](https://github.com/reactivex/rxjs/issues/7091)) ([60d6c40](https://github.com/reactivex/rxjs/commit/60d6c40fb484903286feca2bbfa9fcb2cde720e2)) -- **window:** `windowBoundaries` now supports any `ObservableInput` ([#7088](https://github.com/reactivex/rxjs/issues/7088)) ([8c4347c](https://github.com/reactivex/rxjs/commit/8c4347c48f2432d7399c911d329fa74e0d6c6e8d)) - -# [7.7.0](https://github.com/reactivex/rxjs/compare/7.6.0...7.7.0) (2022-12-15) - -### Features - -- **distinct:** `flush` argument now supports any `ObservableInput` ([#7081](https://github.com/reactivex/rxjs/issues/7081)) ([74c9ebd](https://github.com/reactivex/rxjs/commit/74c9ebd818113f9f25f1fb2b9fee4a0eac121ae0)) -- **repeatWhen:** `notifier` supports `ObservableInput` ([#7103](https://github.com/reactivex/rxjs/issues/7103)) ([8f1b976](https://github.com/reactivex/rxjs/commit/8f1b976125c55a5e884317c2b463fd019662e6af)) -- **retryWhen:** `notifier` now supports any `ObservableInput` ([#7105](https://github.com/reactivex/rxjs/issues/7105)) ([794f806](https://github.com/reactivex/rxjs/commit/794f8064cf8fe754e9dfebeee0ffef0ac1562252)) -- **sample:** `notifier` now supports any `ObservableInput` ([#7104](https://github.com/reactivex/rxjs/issues/7104)) ([b18c2eb](https://github.com/reactivex/rxjs/commit/b18c2eb2bc8dc1a717c927f998028316eec83937)) - -# [7.6.0](https://github.com/reactivex/rxjs/compare/7.5.7...7.6.0) (2022-12-03) - -### Bug Fixes - -- **schedulers:** no longer cause TypeScript build failures when Node types aren't included ([c1a07b7](https://github.com/reactivex/rxjs/commit/c1a07b71ac050ab36b371ff7f18dc9a924fffc9f)) -- **types:** Improved subscribe and tap type overloads ([#6718](https://github.com/reactivex/rxjs/issues/6718)) ([af1a9f4](https://github.com/reactivex/rxjs/commit/af1a9f446a860883abaa36ace21345dc923e7e53)), closes [#6717](https://github.com/reactivex/rxjs/issues/6717) - -### Features - -- **onErrorResumeNextWith:** renamed `onErrorResumeNext` and exported from the top level. (`onErrorResumeNext` operator is stil available, but deprecated) ([#6755](https://github.com/reactivex/rxjs/issues/6755)) ([51e3b2c](https://github.com/reactivex/rxjs/commit/51e3b2c8ec28b5d30bca4c63ad69ce6942c2cdcc)) - -## [7.5.7](https://github.com/reactivex/rxjs/compare/7.5.6...7.5.7) (2022-09-25) - -### Bug Fixes - -- **schedulers:** improve performance of animationFrameScheduler and asapScheduler ([#7059](https://github.com/reactivex/rxjs/issues/7059)) ([c93aa60](https://github.com/reactivex/rxjs/commit/c93aa60e9f073297d959fa1fff9323e48872d47e)), closes [#7017](https://github.com/reactivex/rxjs/issues/7017), related to [#7018](https://github.com/reactivex/rxjs/issues/7018) and [#6674](https://github.com/reactivex/rxjs/issues/6674) - -### Performance Improvements - -- **animationFrames:** uses fewer Subscription instances ([#7060](https://github.com/reactivex/rxjs/issues/7060)) ([2d57b38](https://github.com/reactivex/rxjs/commit/2d57b38ec9f7ada838ee130ab75cd795b156c182)), closes [#7018](https://github.com/reactivex/rxjs/issues/7018) - -## [7.5.6](https://github.com/reactivex/rxjs/compare/7.5.5...7.5.6) (2022-07-11) - -### Bug Fixes - -- **share:** No longer results in a bad-state observable in an edge case where a synchronous source was shared and refCounted, and the result is subscribed to twice in a row synchronously. ([#7005](https://github.com/reactivex/rxjs/issues/7005)) ([5d4c1d9](https://github.com/reactivex/rxjs/commit/5d4c1d9a37b1347217223adb0d9e166fd85f67a9)) -- **share & connect:** `share` and `connect` no longer bundle scheduling code by default ([#6873](https://github.com/reactivex/rxjs/issues/6873)) ([9948dc2](https://github.com/reactivex/rxjs/commit/9948dc2f5577eaa4013de234f3552508918518c7)), closes [#6872](https://github.com/reactivex/rxjs/issues/6872) -- **exhaustAll:** Result will now complete properly when flattening all synchronous observables. ([#6911](https://github.com/reactivex/rxjs/issues/6911)) ([3c1c6b8](https://github.com/reactivex/rxjs/commit/3c1c6b8303028eebc7af31cfc5e5bad42a5b2da4)), closes [#6910](https://github.com/reactivex/rxjs/issues/6910) -- **TypeScript:** Now compatible with TypeScript 4.6 type checks ([#6895](https://github.com/reactivex/rxjs/issues/6895)) ([fce9aa1](https://github.com/reactivex/rxjs/commit/fce9aa12931796892673581761bba1f7ceafabff)) - -## [7.5.5](https://github.com/reactivex/rxjs/compare/7.5.4...7.5.5) (2022-03-08) - -### Bug Fixes - -- **package:** add types to exports ([#6802](https://github.com/reactivex/rxjs/issues/6802)) ([3750f75](https://github.com/reactivex/rxjs/commit/3750f75104bb82d870c53c0605c942e41245d79c)) -- **package:** add `require` export condition ([#6821](https://github.com/reactivex/rxjs/issues/6821)) ([c8955e4](https://github.com/reactivex/rxjs/commit/c8955e4c6a972135030fdfddc18a7a48337ae9c7)) -- **timeout:** no longer will timeout when receiving the first value synchronously ([#6865](https://github.com/reactivex/rxjs/issues/6865)) ([2330c96](https://github.com/reactivex/rxjs/commit/2330c9660b20f2e0cda0c4eeb36bb582b4a85186)), closes [#6862](https://github.com/reactivex/rxjs/issues/6862) - -### Performance Improvements - -- Don't clone observers unless you have to ([#6842](https://github.com/reactivex/rxjs/issues/6842)) ([3289d20](https://github.com/reactivex/rxjs/commit/3289d20ddc3a84d2aede8e3ab9962a8ef5d43c83)) - -## [7.5.4](https://github.com/reactivex/rxjs/compare/7.5.3...7.5.4) (2022-02-09) - -### Performance Improvements - -- removed code that would `bind` functions passed with observers to `subscribe`. ([#6815](https://github.com/reactivex/rxjs/issues/6815)) ([fb375a0](https://github.com/reactivex/rxjs/commit/fb375a0c5befd6852cd63d3c310448e42fa9580e)), closes [#6783](https://github.com/reactivex/rxjs/issues/6783) - -## [7.5.3](https://github.com/reactivex/rxjs/compare/7.5.2...7.5.3) (2022-02-08) - -### Bug Fixes - -- **subscribe:** allow interop with Monio and other libraries that patch function bind ([0ab91eb](https://github.com/reactivex/rxjs/commit/0ab91eb4c1da914efbf03a2732629914cd3398dc)), closes [#6783](https://github.com/reactivex/rxjs/issues/6783) - -## [7.5.2](https://github.com/reactivex/rxjs/compare/7.5.1...7.5.2) (2022-01-11) - -### Bug Fixes - -- operators that ignore input values now use `unknown` rather than `any`, which should resolve issues with eslint no-unsafe-argument ([#6738](https://github.com/reactivex/rxjs/issues/6738)) ([67cb317](https://github.com/reactivex/rxjs/commit/67cb317a7a6b9fdbd3d2e8fdbc2ac9ac7e57179c)), closes [#6536](https://github.com/reactivex/rxjs/issues/6536) -- **ajax:** crossDomain flag deprecated and properly reported to consumers ([#6710](https://github.com/reactivex/rxjs/issues/6710)) ([7fd0575](https://github.com/reactivex/rxjs/commit/7fd05756c595dddb288b732b00a90fcfb2a9080a)), closes [#6663](https://github.com/reactivex/rxjs/issues/6663) - -## [7.5.1](https://github.com/reactivex/rxjs/compare/7.5.0...7.5.1) (2021-12-28) - -### Bug Fixes - -- export supporting interfaces from top-level `rxjs` site. ([#6733](https://github.com/reactivex/rxjs/issues/6733)) ([299a1e1](https://github.com/reactivex/rxjs/commit/299a1e16f725edfc2e333c430e3a7dfc75dd94e7)) - -# [7.5.0](https://github.com/reactivex/rxjs/compare/7.4.0...7.5.0) (2021-12-27) - -### Bug Fixes - -- **takeWhile:** Now returns proper types when passed a `Boolean` constructor. ([#6633](https://github.com/reactivex/rxjs/issues/6633)) ([081ca2b](https://github.com/reactivex/rxjs/commit/081ca2ba7290aa3084c1477a6d4bcc573bf478f6)) -- **forEach:** properly unsubs after error in next handler ([#6677](https://github.com/reactivex/rxjs/issues/6677)) ([b9ab67d](https://github.com/reactivex/rxjs/commit/b9ab67d21ca9d227fcd1123bf80ab87ca9296af9)), closes [#6676](https://github.com/reactivex/rxjs/issues/6676) -- **WebSocketSubject:** handle slow WebSocket close ([#6708](https://github.com/reactivex/rxjs/issues/6708)) ([8cb201c](https://github.com/reactivex/rxjs/commit/8cb201cd42dd751b4185b94fe2d36c6bfda02fe2)), closes [#4650](https://github.com/reactivex/rxjs/issues/4650) [#3935](https://github.com/reactivex/rxjs/issues/3935) -- RxJS now supports tslib 2.x, rather than just 2.1.x ([#6692](https://github.com/reactivex/rxjs/issues/6692)) ([0b2495f](https://github.com/reactivex/rxjs/commit/0b2495f72e76627fdd19dd7a670dd74847d6449c)), closes [#6689](https://github.com/reactivex/rxjs/issues/6689) -- schedulers will no longer error while rescheduling and unsubscribing during flushes ([e35f589](https://github.com/reactivex/rxjs/commit/e35f589e2ca10ab2d2d69f7e9fe60727edc4c53d)), closes [#6672](https://github.com/reactivex/rxjs/issues/6672) - -### Features - -- **repeat:** now has configurable delay ([#6640](https://github.com/reactivex/rxjs/issues/6640)) ([6b7a534](https://github.com/reactivex/rxjs/commit/6b7a534f579f95f97f47eff74bdea9991ee85712)) - -# [7.4.0](https://github.com/reactivex/rxjs/compare/7.3.1...7.4.0) (2021-10-06) - -### Features - -- Add es2015 entries to the exports declaration to support Angular ([#6614](https://github.com/reactivex/rxjs/issues/6614)) ([268777b](https://github.com/reactivex/rxjs/commit/268777bc3a4fd0cf76882683b51809771741ddc3)), closes [/github.com/ReactiveX/rxjs/pull/6613#discussion_r716958551](https://github.com//github.com/ReactiveX/rxjs/pull/6613/issues/discussion_r716958551) - -## [7.3.1](https://github.com/reactivex/rxjs/compare/7.3.0...7.3.1) (2021-10-01) - -### Bug Fixes - -- **Schedulers:** Throwing a falsy error in a scheduled function no longer results in strange error objects. ([#6594](https://github.com/reactivex/rxjs/issues/6594)) ([c70fcc0](https://github.com/reactivex/rxjs/commit/c70fcc02b4b737709aba559bf36b030a47902ee4)) -- scheduling with Rx-provided schedulers will no longer leak action references ([#6562](https://github.com/reactivex/rxjs/issues/6562)) ([ff5a748](https://github.com/reactivex/rxjs/commit/ff5a748b31ee73a6517e2f4220c920c73fbdd1fc)), closes [#6561](https://github.com/reactivex/rxjs/issues/6561) -- **forkJoin:** now finalizes sources before emitting ([#6546](https://github.com/reactivex/rxjs/issues/6546)) ([c52ff2e](https://github.com/reactivex/rxjs/commit/c52ff2e3aae19cd0877adb63182c03b79427de96)), closes [#4914](https://github.com/reactivex/rxjs/issues/4914) -- **observeOn:** release action references on teardown ([321d205](https://github.com/reactivex/rxjs/commit/321d2052696a7c366786c1ef3be7ad2a98a55f62)) -- **types:** update schedule signature overload ([c61e57c](https://github.com/reactivex/rxjs/commit/c61e57c9c64a1525d034aea641f1b846737e1eee)) - -# [7.3.0](https://github.com/reactivex/rxjs/compare/7.2.0...7.3.0) (2021-07-28) - -### Bug Fixes - -- Expose `Connectable`, the return type of `connectable` ([#6531](https://github.com/reactivex/rxjs/issues/6531)) ([69f5bfa](https://github.com/reactivex/rxjs/commit/69f5bfae0eb2880a3d5cfb34db3a182182b325de)), closes [#6529](https://github.com/reactivex/rxjs/issues/6529) -- **AsyncSubject:** properly emits values during reentrant subscriptions ([#6522](https://github.com/reactivex/rxjs/issues/6522)) ([dd8bdf3](https://github.com/reactivex/rxjs/commit/dd8bdf3b18b596155b66029ef16ebabf989360c5)), closes [#6520](https://github.com/reactivex/rxjs/issues/6520) - -### Features - -- **retry:** Now supports configurable delay as a named argument ([#6421](https://github.com/reactivex/rxjs/issues/6421)) ([5f69795](https://github.com/reactivex/rxjs/commit/5f69795f4be035499cf223bf9a3d7352c4975291)) -- **tap:** Now supports subscribe, unsubscribe, and finalize handlers ([#6527](https://github.com/reactivex/rxjs/issues/6527)) ([eb26cbc](https://github.com/reactivex/rxjs/commit/eb26cbc4488c9953cdde565b598b1dbdeeeee9ea)) - -# [7.2.0](https://github.com/reactivex/rxjs/compare/7.1.0...7.2.0) (2021-07-05) - -### Bug Fixes - -- **debounceTime:** unschedule dangling task on unsubscribe before complete ([#6464](https://github.com/reactivex/rxjs/issues/6464)) ([7ab0a4c](https://github.com/reactivex/rxjs/commit/7ab0a4c649b1b54e763a726c4ffdc183b0b45b23)) -- **fromEvent:** Types now properly infer when resultSelector is provided ([#6447](https://github.com/reactivex/rxjs/issues/6447)) ([39b9d81](https://github.com/reactivex/rxjs/commit/39b9d818ef6ea033dc8e53800e3a220d56c76b4a)) - -### Features - -- Operators are all exported at the top level, from "rxjs". From here on out, we encourage top-level imports with RxJS. Importing from `rxjs/operators` will be deprecated soon. ([#6488](https://github.com/reactivex/rxjs/issues/6488)) ([512adc2](https://github.com/reactivex/rxjs/commit/512adc25f350660113275d8277d16b7f3eec1d49)), closes [#6242](https://github.com/reactivex/rxjs/issues/6242) - -# [7.1.0](https://github.com/reactivex/rxjs/compare/7.0.1...7.1.0) (2021-05-21) - -### Bug Fixes - -- returned operator functions from multicast operators `share`, `publish`, `publishReplay` are now referentially transparent. Meaning if you take the result of calling `publishReplay(3)` and pass it to more than one observable's `pipe` method, it will behave the same in each case, rather than having a cumulative effect, which was a regression introduced sometime in version 6. If you required this broken behavior, there is a workaround posted [here](https://github.com/ReactiveX/rxjs/pull/6410#issuecomment-846087374) ([#6410](https://github.com/reactivex/rxjs/issues/6410)) ([e2f2e51](https://github.com/reactivex/rxjs/commit/e2f2e516514bdeb76229e69c639f10f21bccafad)), closes [/github.com/ReactiveX/rxjs/pull/6410#issuecomment-846087374](https://github.com//github.com/ReactiveX/rxjs/pull/6410/issues/issuecomment-846087374) [#5411](https://github.com/reactivex/rxjs/issues/5411) - -### Features - -- All subjects now have an `observed` property. This will allow users to check whether a subject has current subscribers without us allowing access to the `observers` array, which is going to be made private in future versions. ([#6405](https://github.com/reactivex/rxjs/issues/6405)) ([f47425d](https://github.com/reactivex/rxjs/commit/f47425d349475231c0f3542bb6ecef16a63e933a)) -- **groupBy:** Support named arguments, support ObservableInputs for duration selector ([#5679](https://github.com/reactivex/rxjs/issues/5679)) ([7a99397](https://github.com/reactivex/rxjs/commit/7a9939773802c4f7948c6d868a8f75facdea9f37)) -- **share:** use another observable to control resets ([#6169](https://github.com/reactivex/rxjs/issues/6169)) ([12c3716](https://github.com/reactivex/rxjs/commit/12c3716cecbf01f353c980488bf18845177b37b6)) - -## [7.0.1](https://github.com/reactivex/rxjs/compare/7.0.0...7.0.1) (2021-05-12) - -### Bug Fixes - -- **bindCallback:** resulting function now recreated underlying Subject and is reusable once again. ([#6369](https://github.com/reactivex/rxjs/issues/6369)) ([abf2bc1](https://github.com/reactivex/rxjs/commit/abf2bc13e38406717127159c8c373b910223b562)) -- **retry:** properly handles retry counts smaller than `1`. ([#6359](https://github.com/reactivex/rxjs/issues/6359)) ([e797bd7](https://github.com/reactivex/rxjs/commit/e797bd70b1368e189df00d697504304a3a5ef1a8)) -- **share:** properly closes synchronous "firehose" sources. ([#6370](https://github.com/reactivex/rxjs/issues/6370)) ([2271a91](https://github.com/reactivex/rxjs/commit/2271a9180131a0becdbf789c1429ef741ace4b2f)) -- Observable teardowns now properly called if `useDeprecatedSynchronousErrorHandling` is `true`. ([#6365](https://github.com/reactivex/rxjs/issues/6365)) ([e19e104](https://github.com/reactivex/rxjs/commit/e19e104d011233d83bc10c37f1ee0b3ac6e15612)), closes [#6364](https://github.com/reactivex/rxjs/issues/6364) -- **Subscription:** properly release parent subscriptions when unsubscribed. ([#6352](https://github.com/reactivex/rxjs/issues/6352)) ([88331d2](https://github.com/reactivex/rxjs/commit/88331d2ecdcf0f81a0712b315ed810d4da7d4b97)), closes [#6351](https://github.com/reactivex/rxjs/issues/6351) [#6351](https://github.com/reactivex/rxjs/issues/6351) -- **node**: do not reference DOM-related imports to assist in node usage. ([#6305](https://github.com/reactivex/rxjs/issues/6305)) ([b24818e](https://github.com/reactivex/rxjs/commit/b24818e96775045c7485932bf33349471e8f1363)), closes [#6297](https://github.com/reactivex/rxjs/issues/6297) - -# [7.0.0](https://github.com/reactivex/rxjs/compare/7.0.0-rc.3...7.0.0) (2021-04-29) - -### Bug Fixes - -- VS code will now properly auto-import operators, et al ([#6276](https://github.com/reactivex/rxjs/issues/6276)) ([f43c728](https://github.com/reactivex/rxjs/commit/f43c72815f9ebe5ee3a8ed11513be0f541c9517d)), closes [#6067](https://github.com/reactivex/rxjs/issues/6067) -- **AjaxResponse:** add stricter `type` (`AjaxResponseType`) ([#6279](https://github.com/reactivex/rxjs/issues/6279)) ([839e192](https://github.com/reactivex/rxjs/commit/839e192b7d826d833d7ce941be97c3735bd19c0a)) - -# [7.0.0-rc.3](https://github.com/reactivex/rxjs/compare/7.0.0-rc.2...7.0.0-rc.3) (2021-04-28) - -### Bug Fixes - -- finalize behaves well with useDeprecatedSynchronousErrorHandling ([#6251](https://github.com/reactivex/rxjs/issues/6251)) ([e4bed2a](https://github.com/reactivex/rxjs/commit/e4bed2a2bad994f05a39246707d4f203412cebbd)), closes [#6250](https://github.com/reactivex/rxjs/issues/6250) -- resolve run-time errors when using deprecated sync error handling ([#6272](https://github.com/reactivex/rxjs/issues/6272)) ([35daaf7](https://github.com/reactivex/rxjs/commit/35daaf77d3a9a909a7ec22c362c97ac42a597f79)), closes [#6271](https://github.com/reactivex/rxjs/issues/6271) -- resolve issue that made users unable to assert `instanceof AjaxError`. ([#6275](https://github.com/reactivex/rxjs/issues/6275)) ([a7c2d29](https://github.com/reactivex/rxjs/commit/a7c2d297ad6b2f405ac312b38f6360e9a645d890)) - -### Features - -- add config object to connectable ([#6267](https://github.com/reactivex/rxjs/issues/6267)) ([4d98b40](https://github.com/reactivex/rxjs/commit/4d98b40f969d5f55381f9a178ef3c18e6850cf47)) - -### BREAKING CHANGES - -- Our very new creation function, `connectable`, now takes a configuration object instead of just the `Subject` instance. This was necessary to make sure it covered all use cases for what we were trying to replace in the deprecated multicasting operators. Apologies for the late-in-the-game change, but we know it's not widely used yet (it's new in v7), and we want to get it right. - -# [7.0.0-rc.2](https://github.com/reactivex/rxjs/compare/7.0.0-rc.1...7.0.0-rc.2) (2021-04-20) - -### Bug Fixes - -- **webSocket:** return the correct type for `WebSocketSubject` `multiplex` method([#6232](https://github.com/reactivex/rxjs/issues/6232)) ([33383b8](https://github.com/reactivex/rxjs/commit/33383b884d895fa77866362b8b00fd2e2c3597e6)) - -### Reverts - -- Revert "chore: Add typesVersions to package.json (#6229)" (#6241) ([304f3a7](https://github.com/reactivex/rxjs/commit/304f3a73e67871f9b37f39675e503174d3dcc23a)), closes [#6229](https://github.com/reactivex/rxjs/issues/6229) [#6241](https://github.com/reactivex/rxjs/issues/6241) - -# [7.0.0-rc.1](https://github.com/reactivex/rxjs/compare/7.0.0-rc.0...7.0.0-rc.1) (2021-04-19) - -### Bug Fixes - -- **TypeScript:** Add typesVersions definition to package.json in order to help VS Code find automatic imports. ([#6067](https://github.com/reactivex/rxjs/issues/6067)) ([659a623](https://github.com/reactivex/rxjs/commit/659a623c94bd6b210e9beb6bb6061be540b05538)) - -# [7.0.0-rc.0](https://github.com/reactivex/rxjs/compare/7.0.0-beta.15...7.0.0-rc.0) (2021-04-19) - -### Bug Fixes - -- **symbol:** revert unique symbol in [#5874](https://github.com/reactivex/rxjs/issues/5874) ([#6224](https://github.com/reactivex/rxjs/issues/6224)) ([3c49429](https://github.com/reactivex/rxjs/commit/3c49429fadc31ebaddd143d4412907edc50e32be)), closes [#5919](https://github.com/reactivex/rxjs/issues/5919) [#6178](https://github.com/reactivex/rxjs/issues/6178) [#6175](https://github.com/reactivex/rxjs/issues/6175) -- forkJoin/combineLatest return Observable if passed any ([#6227](https://github.com/reactivex/rxjs/issues/6227)) ([ce0a2fa](https://github.com/reactivex/rxjs/commit/ce0a2fa975e7c08de2bbf893010f2c25c090b1ca)), closes [#6226](https://github.com/reactivex/rxjs/issues/6226) -- **fromEvent:** match targets properly; fix result selector type ([#6208](https://github.com/reactivex/rxjs/issues/6208)) ([8412c73](https://github.com/reactivex/rxjs/commit/8412c739bb47cc45ec3f38327115301b4fcc0118)) -- **merge:** single array is not an array of sources ([#6211](https://github.com/reactivex/rxjs/issues/6211)) ([4e900dc](https://github.com/reactivex/rxjs/commit/4e900dc745b5fbd7659b104c49fb0fce4ae84707)) -- **pipe:** Ensure that `unknown` is inferred for 9+ arguments. ([#6212](https://github.com/reactivex/rxjs/issues/6212)) ([6fa819b](https://github.com/reactivex/rxjs/commit/6fa819beb91ba99dadd6262d6c13f7ddfd9470c5)) - -### Features - -- add (optional) defaultValue configuration to firstValueFrom and lastValueFrom ([#6204](https://github.com/reactivex/rxjs/issues/6204)) ([df51b04](https://github.com/reactivex/rxjs/commit/df51b04d7ec68a72b3a4b0d69c3bb29264c72611)) - -# [7.0.0-beta.15](https://github.com/reactivex/rxjs/compare/7.0.0-beta.14...7.0.0-beta.15) (2021-03-31) - -### Bug Fixes - -- **esm:** duplicate directory in export path ([#6194](https://github.com/reactivex/rxjs/issues/6194)) ([aa41462](https://github.com/reactivex/rxjs/commit/aa4146288ec6542754f41ffd260fa4d6936a4d22)) - -# [7.0.0-beta.14](https://github.com/reactivex/rxjs/compare/7.0.0-beta.13...7.0.0-beta.14) (2021-03-30) - -### Bug Fixes - -- **share:** No longer throws errors for reentrant observables ([#6151](https://github.com/reactivex/rxjs/issues/6151)) ([fc728cd](https://github.com/reactivex/rxjs/commit/fc728cdf2f395620cca347602e66f3d173c057b5)), closes [#6144](https://github.com/reactivex/rxjs/issues/6144) - -### Features - -- **ajax:** Now allows configuration of query string parameters, via a `params` option in the request configuration ([#6174](https://github.com/reactivex/rxjs/issues/6174)) ([980f4d4](https://github.com/reactivex/rxjs/commit/980f4d4bb6a3bc1513a4335ed124f4d11b93d251)) -- **esm:** Added exports within package.json to enable scoped package loading. ([#6192](https://github.com/reactivex/rxjs/issues/6192)) ([33a9f06](https://github.com/reactivex/rxjs/commit/33a9f06f2c59c8aef3bb583bdb7d61d08ab597a0)), closes [sveltejs/kit#612](https://github.com/sveltejs/kit/issues/612) [nodejs/node#27408](https://github.com/nodejs/node/issues/27408) -- **ReadableStreams:** RxJS now supports conversions for ReadableStreams e.g. `from(readableStream)`. ([#6163](https://github.com/reactivex/rxjs/issues/6163)) ([19d6502](https://github.com/reactivex/rxjs/commit/19d650223cf0e1964e893baca19f264154422a7d)) - -# [7.0.0-beta.13](https://github.com/reactivex/rxjs/compare/7.0.0-beta.12...7.0.0-beta.13) (2021-03-15) - -### Bug Fixes - -- **fromEvent:** throw if passed invalid target ([#6136](https://github.com/reactivex/rxjs/issues/6136)) ([317ba0c](https://github.com/reactivex/rxjs/commit/317ba0c9254e447385414e2c57e1d81760f88aa6)), closes [#5823](https://github.com/reactivex/rxjs/issues/5823) -- remove misused type parameter from static pipe ([#6119](https://github.com/reactivex/rxjs/issues/6119)) ([8dc7d17](https://github.com/reactivex/rxjs/commit/8dc7d1793b4067d9eedc42b28d49ace8296672f5)), closes [#5557](https://github.com/reactivex/rxjs/issues/5557) -- **Subscriber:** don't leak destination ([#6116](https://github.com/reactivex/rxjs/issues/6116)) ([5bba36c](https://github.com/reactivex/rxjs/commit/5bba36c6dde5b1b4b7e434104e716b233e5f402c)) -- **combineLatest:** POJO signature should match only ObservableInput values ([#6103](https://github.com/reactivex/rxjs/issues/6103)) ([d633494](https://github.com/reactivex/rxjs/commit/d633494dcdcabecda2c64ee84b8b6ceeaa2cb3d8)) -- **forkJoin:** POJO signature should match only ObservableInput values ([#6095](https://github.com/reactivex/rxjs/issues/6095)) ([566427e](https://github.com/reactivex/rxjs/commit/566427e88e597589f21b8cfb057dd13d5c61e0f2)) -- predicates that return `any` will now behave property with findIndex ([#6097](https://github.com/reactivex/rxjs/issues/6097)) ([c6f73d6](https://github.com/reactivex/rxjs/commit/c6f73d687e6b2142da4cab2a66047cc6dd123bf9)) -- remove misused type parameter from isObservable ([#6083](https://github.com/reactivex/rxjs/issues/6083)) ([f16b634](https://github.com/reactivex/rxjs/commit/f16b6341eef85009fc16de13623dc860d8d87778)) -- unhandled errors in observers correctly scheduled ([#6118](https://github.com/reactivex/rxjs/issues/6118)) ([c02ceb7](https://github.com/reactivex/rxjs/commit/c02ceb75e3de12fedbe270d5d323f508171f9cfd)) -- **defaultIfEmpty:** Allow `undefined` as an argument, require an argument ([4983760](https://github.com/reactivex/rxjs/commit/4983760b9179da27ddfcbf419ac5975cff9447c9)), closes [#6064](https://github.com/reactivex/rxjs/issues/6064) -- **elementAt:** Allow `defaultValue` of `undefined`. ([5bc1b3e](https://github.com/reactivex/rxjs/commit/5bc1b3e22deceb5ea5f1882c0f92f061c1c4792d)) -- **first:** Allow `defaultValue` of `undefined`. ([62a6bbe](https://github.com/reactivex/rxjs/commit/62a6bbe1c3c51468c57e4e8f754c1c09da2db51b)) -- **last:** Allow `defaultValue` of `undefined`. ([ef3e721](https://github.com/reactivex/rxjs/commit/ef3e721f440132cf199f662b6a987349a0a70418)) - -### Features - -- rename and alias `combineLatest` as `combineLatestAll` for consistency ([#6079](https://github.com/reactivex/rxjs/issues/6079)) ([42cee80](https://github.com/reactivex/rxjs/commit/42cee8045594779e8802b370c7244e6bbeeccaa3)), closes [#4590](https://github.com/reactivex/rxjs/issues/4590) - -### BREAKING CHANGES - -- **defaultIfEmpty:** `defaultIfEmpty` requires a value be passed. Will no longer convert `undefined` to `null` for no good reason. - -# [7.0.0-beta.12](https://github.com/reactivex/rxjs/compare/7.0.0-beta.11...7.0.0-beta.12) (2021-02-27) - -5bc8e3361 Fix/6052 ajax responseType should default to "json" (#6056) - -### Bug Fixes - -- **ajax**: `responseType` is now properly defaulted to `"json"` again. ([#6056](https://github.com/reactivex/rxjs/issues/6056)) ([5bc8e3361](https://github.com/reactivex/rxjs/commit/5bc8e3361)) -- Corner case resolved where an error thrown in a completion handler might delay teardown if it happened to be after a completing operator like `take`. ([#6062](https://github.com/reactivex/rxjs/issues/6062)) ([a2b9563](https://github.com/reactivex/rxjs/commit/a2b95631be882d2cf0fd87f43804d1ed699591d7)) -- **AsyncGenerator support**: consumed async generators are now properly finalized. ([#6062](https://github.com/reactivex/rxjs/issues/6062)) ([a2b9563](https://github.com/reactivex/rxjs/commit/a2b95631be882d2cf0fd87f43804d1ed699591d7)), closes [#5998](https://github.com/reactivex/rxjs/issues/5998) -- **throttle:** no longer emits more than necessary in sync/sync trailing case ([#6059](https://github.com/reactivex/rxjs/issues/6059)) ([9da638a](https://github.com/reactivex/rxjs/commit/9da638a70d5abb862439ab4ee6a55368228811b0)), closes [#6058](https://github.com/reactivex/rxjs/issues/6058) - -# [7.0.0-beta.11](https://github.com/reactivex/rxjs/compare/7.0.0-beta.10...7.0.0-beta.11) (2021-02-24) - -### Bug Fixes - -- **ajax:** now errors on forced abort ([#6041](https://github.com/reactivex/rxjs/issues/6041)) ([d950921](https://github.com/reactivex/rxjs/commit/d95092143c1860eef054d27f2a1e50cb98b0ef58)), closes [#4251](https://github.com/reactivex/rxjs/issues/4251) -- **buffer:** closingNotifier completion does not complete resulting observable ([358ae84](https://github.com/reactivex/rxjs/commit/358ae84cb9d59170216e7e0845c192eb3e1dcb51)) -- **buffer:** Remaining buffer will correctly be emitted on source close. ([0c667d5](https://github.com/reactivex/rxjs/commit/0c667d596d4a14002ffe9d4db319ed7cd7442ada)), closes [#3990](https://github.com/reactivex/rxjs/issues/3990) [#6035](https://github.com/reactivex/rxjs/issues/6035) -- **debounceTime:** improves performance on quick succession of emits ([#6049](https://github.com/reactivex/rxjs/issues/6049)) ([9b70861](https://github.com/reactivex/rxjs/commit/9b708613cb7687647dc43c5e15b821e17ccc23ef)) -- **distinctUntilChanged:** Ensure reentrant code is compared properly ([#6014](https://github.com/reactivex/rxjs/issues/6014)) ([0ebcf17](https://github.com/reactivex/rxjs/commit/0ebcf1751a5359072b137ff197789570be4d7ead)) -- **share:** Ensure proper memory clean up ([1aa400a](https://github.com/reactivex/rxjs/commit/1aa400a5214325bc843a74602022a7912da20166)) -- **window:** final window stays open until source complete ([e8b05ef](https://github.com/reactivex/rxjs/commit/e8b05ef090d33af5b883e8020b8b7a3c4c8fa30e)) -- **concat/merge:** operators will finalize inners before moving to the next ([#6010](https://github.com/reactivex/rxjs/issues/6010)) ([5249a23](https://github.com/reactivex/rxjs/commit/5249a23b38bdda4639e9d669afd62a624172f89c)), closes [#3338](https://github.com/reactivex/rxjs/issues/3338) -- predicates that return `any` will now behave property in TS ([#5987](https://github.com/reactivex/rxjs/issues/5987)) ([f5ae97d](https://github.com/reactivex/rxjs/commit/f5ae97d49a35b9f99ac59f79dd244a6d8d6c8a7b)), closes [#5986](https://github.com/reactivex/rxjs/issues/5986) -- `publish` variants returning `ConnectableObservable` not properly utilizing lift ([#6003](https://github.com/reactivex/rxjs/issues/6003)) ([9acb950](https://github.com/reactivex/rxjs/commit/9acb950aec9efda95eb7492bfc47a33b71ef2e55)) -- Resolve issues with deprecated synchronous error handling and chained operators ([#5980](https://github.com/reactivex/rxjs/issues/5980)) ([0ad2802](https://github.com/reactivex/rxjs/commit/0ad2802a5aa9cd19875dc05c1cfb33f0b2f2c153)), closes [#5979](https://github.com/reactivex/rxjs/issues/5979) -- `useDeprecatedSynchronousErrorThrowing` honored for flattened sync sources ([#5984](https://github.com/reactivex/rxjs/issues/5984)) ([abd95ce](https://github.com/reactivex/rxjs/commit/abd95ce1aa81a64de81c074a72570a8f0949cd0d)), closes [#5983](https://github.com/reactivex/rxjs/issues/5983) - -### Features - -- **ajax:** Add option for streaming progress ([#6001](https://github.com/reactivex/rxjs/issues/6001)) ([873e52d](https://github.com/reactivex/rxjs/commit/873e52d0d67b0f8470e6290c6fbc35c571464aaf)) -- **exhaustAll:** renamed `exhaust` to `exhaustAll` ([#5639](https://github.com/reactivex/rxjs/issues/5639)) ([701c7d4](https://github.com/reactivex/rxjs/commit/701c7d48cf1c3e60941692010254d6a27fc70980)) - -### BREAKING CHANGES - -- **window:** The `windowBoundaries` observable no longer completes the result. It was only ever meant to notify of the window boundary. To get the same behavior as the old behavior, you would need to add an `endWith` and a `skipLast(1)` like so: `source$.pipe(window(notifier$.pipe(endWith(true))), skipLast(1))`. -- **buffer:** Final buffered values will now always be emitted. To get the same behavior as the previous release, you can use `endWith` and `skipLast(1)`, like so: `source$.pipe(buffer(notifier$.pipe(endWith(true))), skipLast(1))` -- **buffer:** `closingNotifier` completion no longer completes the result of `buffer`. If that is truly a desired behavior, then you should use `takeUntil`. Something like: `source$.pipe(buffer(notifier$), takeUntil(notifier$.pipe(ignoreElements(), endWith(true))))`, where `notifier$` is multicast, although there are many ways to compose this behavior. - -# [7.0.0-beta.10](https://github.com/reactivex/rxjs/compare/7.0.0-beta.9...7.0.0-beta.10) (2021-01-18) - -### Bug Fixes - -- **combineLatest:** Ensure `EMPTY` is returned if no observables are passed. ([#5963](https://github.com/reactivex/rxjs/issues/5963)) ([157c7e8](https://github.com/reactivex/rxjs/commit/157c7e8068befdfb26a9ba6ca770d38a66966ab5)), closes [#5962](https://github.com/reactivex/rxjs/issues/5962) -- **fromEvent:** fixed HasEventTargetAddRemove to support EventTarget types ([#5945](https://github.com/reactivex/rxjs/issues/5945)) ([5f022d7](https://github.com/reactivex/rxjs/commit/5f022d784570684632e6fd5ae247fc259ee34c4b)) - -### Features - -- **connect:** Adds new `connect` operator. ([9d53af0](https://github.com/reactivex/rxjs/commit/9d53af04103dbbb3bae40a4c511e2eebf117be09)) -- **connectable:** Adds `connectable` creation method ([f968a79](https://github.com/reactivex/rxjs/commit/f968a791c1b48f3100e925d700e8a0ecd69cc7e5)) -- **share:** Make `share` completely configurable. Also adds `SubjectLike`. ([2d600c7](https://github.com/reactivex/rxjs/commit/2d600c75c1065d862a2089dc1cd26007996b1c9d)) -- **TestScheduler:** add `expectObservable(a$).toEqual(b$)`. ([3372c72](https://github.com/reactivex/rxjs/commit/3372c72ed77a96e29a613a620e85f93bcf447920)) - -### Performance Improvements - -- ensure same hidden class for OperatorSubscriber ([#5878](https://github.com/reactivex/rxjs/issues/5878)) ([246b449](https://github.com/reactivex/rxjs/commit/246b44902acde3a80e659f362969e6e2f8b19ef2)) - -### BREAKING CHANGES - -- **share:** The TypeScript type `Subscribable` now only supports what is a valid return for `[Symbol.observable]()`. -- **share:** The TypeScript type `Observer` no longer incorrectly has an optional `closed` property. - -# [7.0.0-beta.9](https://github.com/reactivex/rxjs/compare/7.0.0-beta.8...7.0.0-beta.9) (2020-12-07) - -### Bug Fixes - -- **audit:** don't signal on complete ([54cb428](https://github.com/reactivex/rxjs/commit/54cb42823ceec4db469f6155de67993b67ec85be)) -- **bufferToggle:** don't signal on complete ([65686ff](https://github.com/reactivex/rxjs/commit/65686ffd23f2d5a5145f2b7c33ea739e9bb808cd)) -- **bufferWhen:** don't signal on complete ([a2ba364](https://github.com/reactivex/rxjs/commit/a2ba364ede3c69c7703795a744f57122b49eac40)) -- **debounce:** don't signal on complete ([c919c68](https://github.com/reactivex/rxjs/commit/c919c684ad63724f0b55ccc4561f847773d945c8)) -- **delayWhen:** no longer emits if duration selector is empty ([#5769](https://github.com/reactivex/rxjs/issues/5769)) ([0872341](https://github.com/reactivex/rxjs/commit/087234146760ab2c67a04f9f0b5494a93affadb7)), closes [#3665](https://github.com/reactivex/rxjs/issues/3665) -- **forkJoin:** ensure readonly array argument `forkJoin([a$, b$, c$] as const)` result is correct ([6baec53](https://github.com/reactivex/rxjs/commit/6baec536015253ac96827f2136ede17a324c634e)) -- **iif:** No longer allow accidental undefined arguments ([#5829](https://github.com/reactivex/rxjs/issues/5829)) ([23b98b4](https://github.com/reactivex/rxjs/commit/23b98b4e61c3284c81c07a8d810e8c3ec99ddfec)) -- **sample:** don't signal on complete ([95e0b70](https://github.com/reactivex/rxjs/commit/95e0b703caaf288657c7d722b9823458280be88b)) -- **Symbol.observable:** properly defined as a `unique symbol`. ([#5874](https://github.com/reactivex/rxjs/issues/5874)) ([374138e](https://github.com/reactivex/rxjs/commit/374138e09eb7ceb6f8da556c6c11dea1ba8cdbee)), closes [#5861](https://github.com/reactivex/rxjs/issues/5861) [#4415](https://github.com/reactivex/rxjs/issues/4415) -- **throttle:** don't signal on complete ([4af0227](https://github.com/reactivex/rxjs/commit/4af022753d6dd4e94bcfcf0cc6082bb2312a3f02)) -- **windowToggle:** don't signal on complete ([9cb56c4](https://github.com/reactivex/rxjs/commit/9cb56c45de289ef5b062f33971996bdb8414cf99)), closes [#5838](https://github.com/reactivex/rxjs/issues/5838) -- use empty object type in combineLatest/forkJoin sigs ([#5832](https://github.com/reactivex/rxjs/issues/5832)) ([22aaaa2](https://github.com/reactivex/rxjs/commit/22aaaa2f03dc721f850d9836243773c5310e85e8)) -- **withLatestFrom:** allow synchronous source ([#5828](https://github.com/reactivex/rxjs/issues/5828)) ([adbe65e](https://github.com/reactivex/rxjs/commit/adbe65e659bbf17f6ab20a9b30fcca0e4d76af9a)) - -### Features - -- stopped notification handler ([#5750](https://github.com/reactivex/rxjs/issues/5750)) ([cfa267b](https://github.com/reactivex/rxjs/commit/cfa267bc0916ede09c8b14aedcdb69a791055fb6)) -- support emoji in marble diagrams ([#5907](https://github.com/reactivex/rxjs/issues/5907)) ([1b4608c](https://github.com/reactivex/rxjs/commit/1b4608cea3a9db96d7a629ad5de0e100145c180e)) -- **filter:** improve type inference for filter(Boolean) ([#5831](https://github.com/reactivex/rxjs/issues/5831)) ([d2658fa](https://github.com/reactivex/rxjs/commit/d2658fa32d7a86ac1e0796c452df258fc5470f67)) - -### BREAKING CHANGES - -- **windowToggle:** the observable returned by the windowToggle operator's - closing selector must emit a next notification to close the window. - Complete notifications no longer close the window. -- **bufferToggle:** the observable returned by the bufferToggle operator's - closing selector must emit a next notification to close the buffer. - Complete notifications no longer close the buffer. -- **bufferWhen:** the observable returned by the bufferWhen operator's - closing selector must emit a next notification to close the buffer. - Complete notifications no longer close the buffer. -- **debounce:** the observable returned by the debounce operator's - duration selector must emit a next notification to end the duration. - Complete notifications no longer end the duration. -- **throttle:** the observable returned by the throttle operator's - duration selector must emit a next notification to end the duration. - Complete notifications no longer end the duration. -- **sample:** the sample operator's notifier observable must emit a next notification to effect a sample. Complete notifications no longer effect a sample. -- **audit:** the observable returned by the audit operator's duration selector must emit a next notification to end the duration. Complete notifications no longer end the duration. -- **Symbol.observable:** `rxjs@7` is only compatible with `@types/node@14.14.3` or higher and `symbol-observable@3.0.0` and higher. Older versions of `@types/node` incorrectly defined `Symbol.observable` and will be in conflict with `rxjs` and `symbol-observable@3.0.0`. -- **delayWhen:** `delayWhen` will no longer emit if the duration selector simply completes without a value. Notifiers must notify with a value, not a completion. -- **iif:** `iif` will no longer allow result arguments that are `undefined`. This was a bad call pattern that was likely an error in most cases. If for some reason you are relying on this behavior, simply substitute `EMPTY` in place of the `undefined` argument. This ensures that the behavior was intentional and desired, rather than the result of an accidental `undefined` argument. - -# [7.0.0-beta.8](https://github.com/reactivex/rxjs/compare/7.0.0-beta.7...7.0.0-beta.8) (2020-10-15) - -### Bug Fixes - -- **audit, auditTime:** audit and auditTime emit last value after source completes ([#5799](https://github.com/reactivex/rxjs/issues/5799)) ([643bc85](https://github.com/reactivex/rxjs/commit/643bc85ab17a15a5d96f8bef8f08c3987d16eb40)), closes [#5730](https://github.com/reactivex/rxjs/issues/5730) -- No longer allow invalid "Subscribable" type as valid observable source in `from` and others. ([258dddd](https://github.com/reactivex/rxjs/commit/258dddd8a392456e7d0b5ed9a7e294044f7c2518)), closes [#4532](https://github.com/reactivex/rxjs/issues/4532) -- **bindNodeCallback:** ensure underlying function is not called twice during subscription ([#5780](https://github.com/reactivex/rxjs/issues/5780)) ([74aa4b2](https://github.com/reactivex/rxjs/commit/74aa4b2ea6685f475329a8b8ecbcebed9adae547)) -- **delay:** Now properly handles Date and negative numbers ([#5719](https://github.com/reactivex/rxjs/issues/5719)) ([868c02b](https://github.com/reactivex/rxjs/commit/868c02b47bb6f4ec4cd1d68b5b474731c470f27e)), closes [#5232](https://github.com/reactivex/rxjs/issues/5232) -- **delayWhen:** only deprecates when subscriptionDelay presents ([#5797](https://github.com/reactivex/rxjs/issues/5797)) ([43d1731](https://github.com/reactivex/rxjs/commit/43d17311a521234375146029aa5c4709cb221344)) -- **every:** index properly increments in predicate ([5686f83](https://github.com/reactivex/rxjs/commit/5686f838fdc3da710d3f1eed1a6381791e3cc644)) -- **firstValueFrom:** now unsubscribes from source after first value is received ([#5813](https://github.com/reactivex/rxjs/issues/5813)) ([a321516](https://github.com/reactivex/rxjs/commit/a321516908aa036fb658395a372668a986af2504)), closes [#5811](https://github.com/reactivex/rxjs/issues/5811) -- **from:** objects that are thennable that happen to have a subscribe method will no longer error. ([789d6e3](https://github.com/reactivex/rxjs/commit/789d6e3d851d57ab3b4488381f702120fd079737)) -- **fromEvent:** now properly types JQuery event targets ([b5aa15a](https://github.com/reactivex/rxjs/commit/b5aa15a7f58377310438aa5957e1516749d36219)) -- **mergeScan:** no longer emits state again upon completion. ([#5805](https://github.com/reactivex/rxjs/issues/5805)) ([68c2894](https://github.com/reactivex/rxjs/commit/68c28943b4d2c51068fecbc359a68ca6982307bf)), closes [#5372](https://github.com/reactivex/rxjs/issues/5372) -- **throttle:** now supports synchronous duration selectors ([55e953e](https://github.com/reactivex/rxjs/commit/55e953e1f7b915e6c9072bf14a2febd5b8431393)), closes [#5658](https://github.com/reactivex/rxjs/issues/5658) -- **throttle:** trailing values will now emit after source completes ([d5fd69c](https://github.com/reactivex/rxjs/commit/d5fd69c123d2232335563eea95c69c07576d079d)) -- **timeout:** allows synchronous observable as a source ([84c5c0b](https://github.com/reactivex/rxjs/commit/84c5c0b9d9e0d1791ac2f066c26e462e822d73e1)), closes [#5746](https://github.com/reactivex/rxjs/issues/5746) -- **zip:** zip now accepts an array of arguments like its counterparts ([3123b67](https://github.com/reactivex/rxjs/commit/3123b670cca9b77919845333952ef70275ed6e90)) - -### Code Refactoring - -- **count:** Base off of `reduce`. ([98a6d09](https://github.com/reactivex/rxjs/commit/98a6d0991df2a28366ab8f34098109a67257c235)) -- **pairs:** Based off of `from` and `Object.entries` ([#5775](https://github.com/reactivex/rxjs/issues/5775)) ([d39f830](https://github.com/reactivex/rxjs/commit/d39f8309c33917cb7070c7432fcd382395e4211e)) - -### Features - -- **ajax:** now supports passing custom XSRF cookies in a custom header ([#5702](https://github.com/reactivex/rxjs/issues/5702)) ([1a2c2e4](https://github.com/reactivex/rxjs/commit/1a2c2e49482a460778ea92c7f6a92e58cc3e87bb)), closes [#4003](https://github.com/reactivex/rxjs/issues/4003) -- **switchScan:** add switchScan() operator ([#4442](https://github.com/reactivex/rxjs/issues/4442)) ([73fa910](https://github.com/reactivex/rxjs/commit/73fa910cb62eccbccc4b4249f9b2606095704328)), closes [#2931](https://github.com/reactivex/rxjs/issues/2931) - -### BREAKING CHANGES - -- **mergeScan:** `mergeScan` will no longer emit its inner state again upon completion. -- **pairs:** `pairs` will no longer function in IE without a polyfill for `Object.entries`. `pairs` itself is also deprecated in favor of users just using `from(Object.entries(obj))`. -- **zip:** Zipping a single array will now have a different result. This is an extreme corner-case, because it is very unlikely that anyone would want to zip an array with nothing at all. The workaround would be to wrap the array in another array `zip([[1,2,3]])`. But again, that's pretty weird. -- **count:** No longer passes `source` observable as a third argument to the predicate. That feature was rarely used, and of limited value. The workaround is to simply close over the source inside of the function if you need to access it in there. - -# [7.0.0-beta.7](https://github.com/reactivex/rxjs/compare/7.0.0-beta.5...7.0.0-beta.7) (2020-09-23) - -### Bug Fixes - -- **multicast:** and other publish variants will handle errors thrown in a selector appropriately ([bde8eda](https://github.com/reactivex/rxjs/commit/bde8eda09310463b05c5ec7d8a1dd1bafe9dba6f)) - -### Code Refactoring - -- **tap:** reduce the size of the implementation ([1222d5a](https://github.com/reactivex/rxjs/commit/1222d5a68faa9d3f3c9ad8f8d5db1440971502bd)) -- **Subscriber:** Massively untangle Subscriber and SafeSubscriber ([07902ca](https://github.com/reactivex/rxjs/commit/07902ca99ee828521ce238826f10b55e25fbf554)) - -### BREAKING CHANGES - -- **Subscriber:** `new Subscriber` no longer takes 0-3 arguments. To create a `Subscriber` with 0-3 arguments, use `Subscriber.create`. However, please note that there is little to no reason that you should be creating `Subscriber` references directly, and `Subscriber.create` and `new Subscriber` are both deprecated. - -# [7.0.0-beta.6](https://github.com/reactivex/rxjs/compare/7.0.0-beta.5...7.0.0-beta.6) (2020-09-23) - -### Bug Fixes - -- **AsyncSubject:** fixed reentrancy issue in complete ([9e00f11](https://github.com/reactivex/rxjs/commit/9e00f11e992d223edf1013d0a44c7cad41b72470)), closes [/github.com/ReactiveX/rxjs/pull/5729/files/30d429cf1b791db15c04a61f6a683e189b53fb3e#r492314703](https://github.com//github.com/ReactiveX/rxjs/pull/5729/files/30d429cf1b791db15c04a61f6a683e189b53fb3e/issues/r492314703) -- **delay:** proper handling of absolute time (`Date`) passed as an argument ([8ae89b1](https://github.com/reactivex/rxjs/commit/8ae89b19a095541eb3dfe6e6d9f26367486c435e)) -- **fromEvent:** properly teardown for ArrayLike targets ([066de74](https://github.com/reactivex/rxjs/commit/066de7408810864891b9fd16e05c6c8b4ca88087)) -- **ReplaySubject:** no longer buffers additional values after it's already stopped ([#5696](https://github.com/reactivex/rxjs/issues/5696)) ([a08232b](https://github.com/reactivex/rxjs/commit/a08232be6dcab74e94cfbb17cc5138050bcd6ddb)) -- **scan:** proper indexes when seed is not supplied ([f93fb9c](https://github.com/reactivex/rxjs/commit/f93fb9c1fb7434c97e1d156370756159c5f2b077)), closes [#4348](https://github.com/reactivex/rxjs/issues/4348) [#3879](https://github.com/reactivex/rxjs/issues/3879) -- **windowTime:** Passing no creation interval will now properly open new window when old one closes ([cbd0ac0](https://github.com/reactivex/rxjs/commit/cbd0ac0478730ec10172b57210e7d269d1ce62a2)) - -### Code Refactoring - -- **Massive Size Reduction:** reduced the size of all operator implementations as well as other utilities and types ([#5729](https://github.com/reactivex/rxjs/issues/5729)) ([4d3fc23](https://github.com/reactivex/rxjs/commit/fc41e13a1b9a05fc242c1369b4f597c931bd28b5)) - -### Features - -- **onUnhandledError:** configuration point added for unhandled errors ([#5681](https://github.com/reactivex/rxjs/issues/5681)) ([3485dd5](https://github.com/reactivex/rxjs/commit/3485dd5149b731e1103d2d070e3892735cbacef1)) -- **skipLast:** counts zero or less will mirror the source ([02e113b](https://github.com/reactivex/rxjs/commit/02e113b3345a9efe8f7c29f8b9c1c0d088aaf726)) - -### BREAKING CHANGES - -- **skipLast:** `skipLast` will no longer error when passed a negative number, rather it will simply return the source, as though `0` was passed. -- **map:** `thisArg` will now default to `undefined`. The previous default of `MapSubscriber` never made any sense. This will only affect code that calls map with a `function` and references `this` like so: `source.pipe(map(function () { console.log(this); }))`. There wasn't anything useful about doing this, so the breakage is expected to be very minimal. If anything we're no longer leaking an implementation detail. -- **onUnhandledError:** Errors that occur during setup of an observable subscription after the subscription has emitted an error or completed will now throw in their own call stack. Before it would call `console.warn`. This is potentially breaking in edge cases for node applications, which may be configured to terminate for unhandled exceptions. In the unlikely event this affects you, you can configure the behavior to `console.warn` in the new configuration setting like so: `import { config } from 'rxjs'; config.onUnhandledError = (err) => console.warn(err);` - -# [7.0.0-beta.5](https://github.com/reactivex/rxjs/compare/7.0.0-beta.4...7.0.0-beta.5) (2020-09-03) - -### Bug Fixes - -- **ajax:** Allow XHR to perform body serialization and set content-type where possible ([d8657ed](https://github.com/reactivex/rxjs/commit/d8657ede8d9620ac2a7d61557e1f1d0e89b0b52a)), closes [#2837](https://github.com/reactivex/rxjs/issues/2837) -- **ajax:** Do not mutate headers passed as arguments ([0d66ba4](https://github.com/reactivex/rxjs/commit/0d66ba458f07fba51cfc73440d01ef453c24cda7)), closes [#2801](https://github.com/reactivex/rxjs/issues/2801) -- **bindCallback:** now emits errors that happen after callback ([2bddd31](https://github.com/reactivex/rxjs/commit/2bddd317fad962ad375de4a04dd528b02479ec5b)) -- **bindNodeCallback:** now emits errors that happen after callback ([edc28cf](https://github.com/reactivex/rxjs/commit/edc28cfd13ba3d7fadc24ea3c20ec8ca5a19064d)) -- **buffer:** Ensure notifier is subscribed after source ([#5654](https://github.com/reactivex/rxjs/issues/5654)) ([c088b0e](https://github.com/reactivex/rxjs/commit/c088b0eca904ab835b23df629d472003d6a82561)), closes [#2195](https://github.com/reactivex/rxjs/issues/2195) [#1754](https://github.com/reactivex/rxjs/issues/1754) -- **catchError:** ensure proper handling of async return for synchronous source error handling ([#5627](https://github.com/reactivex/rxjs/issues/5627)) ([1b29d4b](https://github.com/reactivex/rxjs/commit/1b29d4b6d42e3d6b649f9f2c4bb718f343233d83)), closes [#5115](https://github.com/reactivex/rxjs/issues/5115) -- **catchError:** inner synchronous observables will properly terminate ([#5655](https://github.com/reactivex/rxjs/issues/5655)) ([d3fd2fb](https://github.com/reactivex/rxjs/commit/d3fd2fb2bd619b79d0c4afebc3c10299afbca262)) -- **errors:** Custom RxJS errors now all have a call stack ([#5686](https://github.com/reactivex/rxjs/issues/5686)) ([9bb046c](https://github.com/reactivex/rxjs/commit/9bb046c744cc1f9438a805849b655946e5793936)), closes [#4250](https://github.com/reactivex/rxjs/issues/4250) -- **onErrorResumeNext:** observables always finalized before moving to next source ([#5650](https://github.com/reactivex/rxjs/issues/5650)) ([ff68ad2](https://github.com/reactivex/rxjs/commit/ff68ad2caa3d275a23416984fab5570d3fed9458)) -- **package.json:** change homepage setting to official docs site. ([#5669](https://github.com/reactivex/rxjs/issues/5669)) ([e57c402](https://github.com/reactivex/rxjs/commit/e57c402b29288f61fe886b00e51817730bcb320b)) -- **repeat:** Ensure teardown happens between repeated synchronous obs… ([#5620](https://github.com/reactivex/rxjs/issues/5620)) ([0ca8a65](https://github.com/reactivex/rxjs/commit/0ca8a65b73aea93172366ca67207b53e3e3e77a8)) -- **repeatWhen:** Ensure teardown happens between repeat subscriptions ([#5625](https://github.com/reactivex/rxjs/issues/5625)) ([98356f4](https://github.com/reactivex/rxjs/commit/98356f4ebefdba1f5a14edbd96de1592694a01a8)) -- **retry:** Ensure teardown happens before resubscription with synchronous observables ([6f90597](https://github.com/reactivex/rxjs/commit/6f90597e51e038dabd8397b9f066ab4e3d344a5b)), closes [#5620](https://github.com/reactivex/rxjs/issues/5620) -- **retryWhen:** Ensure subscription tears down between retries ([#5623](https://github.com/reactivex/rxjs/issues/5623)) ([6752af7](https://github.com/reactivex/rxjs/commit/6752af7c1839baf3cd7ed9d024499de61a2477e9)) -- **throttleTime:** ensure the spacing between throttles is always at least the throttled amount ([#5687](https://github.com/reactivex/rxjs/issues/5687)) ([ea84fc4](https://github.com/reactivex/rxjs/commit/ea84fc4dce84e32598701f79d9449be00a05352c)), closes [#3712](https://github.com/reactivex/rxjs/issues/3712) [#4864](https://github.com/reactivex/rxjs/issues/4864) [#2727](https://github.com/reactivex/rxjs/issues/2727) [#4727](https://github.com/reactivex/rxjs/issues/4727) [#4429](https://github.com/reactivex/rxjs/issues/4429) -- **zip:** zip operators and functions are now able to zip all iterable sources ([#5688](https://github.com/reactivex/rxjs/issues/5688)) ([02c3a1b](https://github.com/reactivex/rxjs/commit/02c3a1b70c0e96b784a3c5c214c0f89c5ebdd696)), closes [#4304](https://github.com/reactivex/rxjs/issues/4304) -- `switchMap` and `exhaustMap` behave correctly with re-entrant code. ([c289688](https://github.com/reactivex/rxjs/commit/c289688f5e1f33ec21306b4d2f5539dd19f963f2)) -- **webSocket:** close websocket connection attempt on unsubscribe ([e1a671c](https://github.com/reactivex/rxjs/commit/e1a671cbd7f5a6ce547ed9ee6ce98c22264500f4)), closes [#4446](https://github.com/reactivex/rxjs/issues/4446) - -### Code Refactoring - -- **ajax:** Use simple Observable ([17b9add](https://github.com/reactivex/rxjs/commit/17b9add03a90aec6e708a87c0fc387745f0b9df6)) -- **Subscriber:** remove \_unsubscribeAndRecycle ([d879c3f](https://github.com/reactivex/rxjs/commit/d879c3f3ae4b1de5660d1613bb8b300e7194d581)) -- **VirtualTimeScheduler:** remove sortActions from public API ([#5657](https://github.com/reactivex/rxjs/issues/5657)) ([a468f88](https://github.com/reactivex/rxjs/commit/a468f881c8c02195b089889486d1a94fab2771e0)) - -### Features - -- **combineLatest:** add N-args signature for observable inputs ([#5488](https://github.com/reactivex/rxjs/issues/5488)) ([fcc47e7](https://github.com/reactivex/rxjs/commit/fcc47e75a4c811199c5071144172f4d06ffc7c70)) -- **Subscription:** `add` no longer returns unnecessary Subscription reference ([#5656](https://github.com/reactivex/rxjs/issues/5656)) ([4de604e](https://github.com/reactivex/rxjs/commit/4de604ea66261f597af11918aec53cd94590b30f)) -- **Subscription:** `remove` will now remove any teardown by reference ([#5659](https://github.com/reactivex/rxjs/issues/5659)) ([1531152](https://github.com/reactivex/rxjs/commit/15311529fa1b880ed469b6c253cd0be7ff2f98a1)) -- **throwError:** now accepts a factory to create the error ([#5647](https://github.com/reactivex/rxjs/issues/5647)) ([dad270a](https://github.com/reactivex/rxjs/commit/dad270afcf496de74b4392024191715d7dbef4f5)), closes [#5617](https://github.com/reactivex/rxjs/issues/5617) -- **useDeprecatedNextContext:** Puts deprecated next context behavior behind a flag ([dfdef5d](https://github.com/reactivex/rxjs/commit/dfdef5dcaf52363be59359786aef8bc733197b43)) -- support schedulers within run ([#5619](https://github.com/reactivex/rxjs/issues/5619)) ([c63de0d](https://github.com/reactivex/rxjs/commit/c63de0d380a923987aab587720473fad1d205d71)) - -### Performance Improvements - -- **SafeSubscriber:** avoid using `Object.create` ([40a9e77](https://github.com/reactivex/rxjs/commit/40a9e77fe3d75df9161ad0093f54750b70f57245)) - -### BREAKING CHANGES - -- **ajax:** - - `ajax` body serialization will now use default XHR behavior in all cases. If the body is a `Blob`, `ArrayBuffer`, any array buffer view (like a byte sequence, e.g. `Uint8Array`, etc), `FormData`, `URLSearchParams`, `string`, or `ReadableStream`, default handling is use. If the `body` is otherwise `typeof` `"object"`, then it will be converted to JSON via `JSON.stringify`, and the `Content-Type` header will be set to `application/json;charset=utf-8`. All other types will emit an error. - - The `Content-Type` header passed to `ajax` configuration no longer has any effect on the serialization behavior of the AJAX request. - - For TypeScript users, `AjaxRequest` is no longer the type that should be explicitly used to create an `ajax`. It is now `AjaxConfig`, although the two types are compatible, only `AjaxConfig` has `progressSubscriber` and `createXHR`. - -* **zip:** `zip` operators will no longer iterate provided iterables "as needed", instead the iterables will be treated as push-streams just like they would be everywhere else in RxJS. This means that passing an endless iterable will result in the thread locking up, as it will endlessly try to read from that iterable. This puts us in-line with all other Rx implementations. To work around this, it is probably best to use `map` or some combination of `map` and `zip`. For example, `zip(source$, iterator)` could be `source$.pipe(map(value => [value, iterator.next().value]))`. - -* **Subscription:** `add` no longer returns an unnecessary Subscription reference. This was done to prevent confusion caused by a legacy behavior. You can now add and remove functions and Subscriptions as teardowns to and from a `Subscription` using `add` and `remove` directly. Before this, `remove` only accepted subscriptions. - -* **RxJS Error types** Tests that are written with naive expectations against errors may fail now that errors have a proper `stack` property. In some testing frameworks, a deep equality check on two error instances will check the values in `stack`, which could be different. - -* **Undocumented Behaviors/APIs Removed**: - - - `unsubscribe` no longer available via the `this` context of observer functions. To reenable, set `config.useDeprecatedNextContext = true` on the rxjs `config` found at `import { config } from 'rxjs';`. Note that enabling this will result in a performance penalty for all consumer subscriptions. - - Leaked implementation detail `_unsubscribeAndRecycle` of `Subscriber` has been removed. Just use new `Subscription` objects - - Removed an undocumented behavior where passing a negative count argument to `retry` would result in an observable that repeats forever. - - An undocumented behavior where passing a negative count argument to `repeat` would result in an observable that repeats forever. - - The static `sortActions` method on `VirtualTimeScheduler` is no longer publicly exposed by our TS types. - -* **throwError:** In an extreme corner case for usage, `throwError` is no longer able to emit a function as an error directly. If you need to push a function as an error, you will have to use the factory function to return the function like so: `throwError(() => functionToEmit)`, in other words `throwError(() => () => console.log('called later'))`. - -# [7.0.0-beta.4](https://github.com/reactivex/rxjs/compare/7.0.0-beta.1...7.0.0-beta.4) (2020-08-02) - -### Bug Fixes - -- **ajax:** Partial observers passed to `progressSubscriber` will no longer error ([25d279f](https://github.com/reactivex/rxjs/commit/25d279f0b45d07f39bfb87b19bc7e2279df8b542)) -- **ajax:** Unparsable responses will no longer prevent full AjaxError from being thrown ([605ee55](https://github.com/reactivex/rxjs/commit/605ee550e5efc266b5dc5d3a9756c7c3b3968a61)) -- **animationFrames:** emit the timestamp from the rAF's callback ([#5438](https://github.com/reactivex/rxjs/issues/5438)) ([c980ae6](https://github.com/reactivex/rxjs/commit/c980ae65ee1b585e8ed66a366eb534ac3e50c205)) -- Ensure unsubscriptions/teardowns on internal subscribers are idempotent ([#5465](https://github.com/reactivex/rxjs/issues/5465)) ([3e39749](https://github.com/reactivex/rxjs/commit/3e39749a58ca663c17f5f0354b0f27532fb6d319)), closes [#5464](https://github.com/reactivex/rxjs/issues/5464) -- **timeout:** defer error creation until timeout occurs ([#5497](https://github.com/reactivex/rxjs/issues/5497)) ([3be9840](https://github.com/reactivex/rxjs/commit/3be98404fafd5a8de758deb4e0d103a7b60aa31e)), closes [#5491](https://github.com/reactivex/rxjs/issues/5491) - -### Code Refactoring - -- **ajax:** Drop support for IE10 and lower ([0eaadd6](https://github.com/reactivex/rxjs/commit/0eaadd60c716050f5e3701d513a028a9cd49085a)) -- **Observable:** Update property and method types ([#5572](https://github.com/reactivex/rxjs/issues/5572)) ([144b626](https://github.com/reactivex/rxjs/commit/144b626c3905640b4adeb2b97e722912eff1b264)) - -### Features - -- **combineLatest:** support for observable dictionaries ([#5022](https://github.com/reactivex/rxjs/issues/5022)) ([#5363](https://github.com/reactivex/rxjs/issues/5363)) ([f5278aa](https://github.com/reactivex/rxjs/commit/f5278aa89ea164caf5cf10e77d7bd00eff26fc0f)) -- **TestScheduler:** add an animate "run mode" helper ([#5607](https://github.com/reactivex/rxjs/issues/5607)) ([edd6731](https://github.com/reactivex/rxjs/commit/edd67313814bfc32e8a5129d8049e4d4678cd35d)) -- **timeout:** One timeout to rule them all ([def1d34](https://github.com/reactivex/rxjs/commit/def1d346b43008bc413a3ac985e1611bbbf62003)) - -### BREAKING CHANGES - -- **ajax:** In an extreme corner-case... If an error occurs, the responseType is `"json"`, we're in IE, and the `responseType` is not valid JSON, the `ajax` observable will no longer emit a syntax error, rather it will emit a full `AjaxError` with more details. -- **ajax:** Ajax implementation drops support for IE10 and lower. This puts us in-line with other implementations and helps clean up code in this area -- **Observable:** `lift` no longer exposed. It was _NEVER_ documented that end users of the library should be creating operators using `lift`. Lift has a [variety of issues](https://github.com/ReactiveX/rxjs/issues/5431) and was always an internal implementation detail of rxjs that might have been used by a few power users in the early days when it had the most value. The value of `lift`, originally, was that subclassed `Observable`s would compose through all operators that implemented lift. The reality is that feature is not widely known, used, or supported, and it was never documented as it was very experimental when it was first added. Until the end of v7, `lift` will remain on Observable. Standard JavaScript users will notice no difference. However, TypeScript users might see complaints about `lift` not being a member of observable. To workaround this issue there are two things you can do: 1. Rewrite your operators as [outlined in the documentation](https://rxjs.dev/guide/operators), such that they return `new Observable`. or 2. cast your observable as `any` and access `lift` that way. Method 1 is recommended if you do not want things to break when we move to version 8. - -# [7.0.0-beta.3](https://github.com/reactivex/rxjs/compare/7.0.0-beta.1...7.0.0-beta.3) (2020-07-30) - -### Bug Fixes - -- **perf:** Ensure unsubscriptions/teardowns on internal subscribers are idempotent ([#5465](https://github.com/reactivex/rxjs/issues/5465)) ([3e39749](https://github.com/reactivex/rxjs/commit/3e39749a58ca663c17f5f0354b0f27532fb6d319)), closes [#5464](https://github.com/reactivex/rxjs/issues/5464) -- **timeout:** defer error creation until timeout occurs ([#5497](https://github.com/reactivex/rxjs/issues/5497)) ([3be9840](https://github.com/reactivex/rxjs/commit/3be98404fafd5a8de758deb4e0d103a7b60aa31e)), closes [#5491](https://github.com/reactivex/rxjs/issues/5491) - -### Code Refactoring - -- **perf:** Reduce memory pressure by no longer retaining outer values across the majority of operators. ([#5610](https://github.com/reactivex/rxjs/pull/5610)) ([bff1827](https://github.com/ReactiveX/rxjs/commit/bff18272dca23938a5f5b57cec6eb8d8be5bfddf)) -- **Observable:** Update property and method types ([#5572](https://github.com/reactivex/rxjs/issues/5572)) ([144b626](https://github.com/reactivex/rxjs/commit/144b626c3905640b4adeb2b97e722912eff1b264)) - -### Features - -- **combineLatest:** support for observable dictionaries ([#5022](https://github.com/reactivex/rxjs/issues/5022)) ([#5363](https://github.com/reactivex/rxjs/issues/5363)) ([f5278aa](https://github.com/reactivex/rxjs/commit/f5278aa89ea164caf5cf10e77d7bd00eff26fc0f)) - -### BREAKING CHANGES - -- **Observable:** `lift` no longer exposed. It was _never_ documented that end users of the library should be creating operators using `lift`. Lift has a [variety of issues](https://github.com/ReactiveX/rxjs/issues/5431) and was always an internal implementation detail of rxjs that might have been used by a few power users in the early days when it had the most value. The value of `lift`, originally, was that subclassed `Observable`s would compose through all operators that implemented lift. The reality is that feature is not widely known, used, or supported, and it was never documented as it was very experimental when it was first added. Until the end of v7, `lift` will remain on Observable. Standard JavaScript users will notice no difference. However, TypeScript users might see complaints about `lift` not being a member of observable. To workaround this issue there are two things you can do: 1. Rewrite your operators as [outlined in the documentation](https://rxjs.dev/guide/operators), such that they return `new Observable`. or 2. cast your observable as `any` and access `lift` that way. It is recommended that operators be implemented in terms of functions that return `(source: Observable) => new Observable(...)`, per the documentation/guide. - -# [7.0.0-beta.2](https://github.com/reactivex/rxjs/compare/7.0.0-beta.1...7.0.0-beta.2) (2020-07-03) - -### Bug Fixes - -- **dependencies:** Move accidental dependency on `typedoc` to dev-dependencies. ([#5566](https://github.com/reactivex/rxjs/issues/5566)) ([45702bf](https://github.com/ReactiveX/rxjs/commit/45702bf6cd1b4a150f47b2a1d273f1ee31ca2482)) - -# [7.0.0-beta.1](https://github.com/reactivex/rxjs/compare/7.0.0-beta.0...7.0.0-beta.1) (2020-07-02) - -### Bug Fixes - -- **pluck:** operator breaks with null/undefined inputs. ([#5524](https://github.com/reactivex/rxjs/issues/5524)) ([c5f6550](https://github.com/reactivex/rxjs/commit/c5f65508505cf1f90560e6be76425e09c455bec3)) -- **shareReplay:** no longer misses synchronous values from source ([92452cc](https://github.com/reactivex/rxjs/commit/92452cc20021141aa0f047c7e5af569a413143e5)) -- **interop:** chain interop/safe subscriber unsubscriptions correctly ([#5472](https://github.com/reactivex/rxjs/issues/5472)) ([98ad0eb](https://github.com/reactivex/rxjs/commit/98ad0eba6bc079851b44951f3963e8aae0abf861)), closes [#5469](https://github.com/reactivex/rxjs/issues/5469) [#5311](https://github.com/reactivex/rxjs/issues/5311) [#2675](https://github.com/reactivex/rxjs/issues/2675) -- **finalize:** chain subscriptions for interop with finalize ([#5239](https://github.com/reactivex/rxjs/issues/5239)) ([04ba662](https://github.com/reactivex/rxjs/commit/04ba6621fe9e09238e1796217d04107e52dd36d5)), closes [#5237](https://github.com/reactivex/rxjs/issues/5237) [#5237](https://github.com/reactivex/rxjs/issues/5237) -- **animationFrameScheduler:** don't execute rescheduled animation frame and asap actions in flush ([#5399](https://github.com/reactivex/rxjs/issues/5399)) ([33c9c8c](https://github.com/reactivex/rxjs/commit/33c9c8cf7e247d4ad4d7318bfd02e8e5bedb0f40)), closes [#4972](https://github.com/reactivex/rxjs/issues/4972) [#5397](https://github.com/reactivex/rxjs/issues/5397) -- **iterables:** errors thrown from iterables now properly propagated ([#5444](https://github.com/reactivex/rxjs/issues/5444)) ([75d4c2f](https://github.com/reactivex/rxjs/commit/75d4c2f33d2e2121b2a316849044ad17ab28dbaf)) -- **finalize:** callback will be called after the source observable is torn down. ([0d7b7c1](https://github.com/reactivex/rxjs/commit/0d7b7c14e34eed43fb2ad1386281800fa3ae8aec)), closes [#5357](https://github.com/reactivex/rxjs/issues/5357) -- **Notification:** typing improvements ([#5478](https://github.com/reactivex/rxjs/issues/5478)) ([96868ac](https://github.com/reactivex/rxjs/commit/96868ac754c0147a9aa61182185f27224eb7f11a)) -- **TestScheduler:** support empty subscription marbles ([#5502](https://github.com/reactivex/rxjs/issues/5502)) ([e65696e](https://github.com/reactivex/rxjs/commit/e65696e2f7f7338659a873f6653026b33b9011a9)), closes [#5499](https://github.com/reactivex/rxjs/issues/5499) -- **expand:** now works properly with asynchronous schedulers ([294b27e](https://github.com/reactivex/rxjs/commit/294b27eb6a96e8edee3af35e6aaaef50628376e4)) -- **subscribeOn:** allow Infinity as valid delay ([#5500](https://github.com/reactivex/rxjs/issues/5500)) ([cd7d649](https://github.com/reactivex/rxjs/commit/cd7d64901e82fd7fb5e8407f1f30828906fac420)) -- **Subject:** resolve issue where Subject constructor errantly allowed an argument ([#5476](https://github.com/reactivex/rxjs/issues/5476)) ([e1d35dc](https://github.com/reactivex/rxjs/commit/e1d35dc258edea0237ef49a31f7b34c058755969)) -- **Subject:** no default generic ([e678e81](https://github.com/reactivex/rxjs/commit/e678e81ba80f5bcc27b0e956295ce2fc8dfe4576)) -- **defer:** No longer allows `() => undefined` to observableFactory (#5449) ([1ae937a](https://github.com/reactivex/rxjs/commit/1ae937a8e594aef96b93313bb3c68ea910e6f528)), closes [#5449](https://github.com/reactivex/rxjs/issues/5449) -- **single:** Corrected behavior for `single(() => false)` on empty observables. (#5325) ([27931bc](https://github.com/reactivex/rxjs/commit/27931bcfd2aa864e277d3e72128c57e807b28bb0)), closes [#5325](https://github.com/reactivex/rxjs/issues/5325) -- **take/takeLast**: Properly assert number types at runtime (#5326) ([5efc474](https://github.com/reactivex/rxjs/commit/5efc474161c9196dbdf4803a9cc444a547067549)), closes [#5326](https://github.com/reactivex/rxjs/issues/5326) - -### Features - -- **Observable:** Remove async iteration ([#5492](https://github.com/reactivex/rxjs/issues/5492)) ([8f43e71](https://github.com/reactivex/rxjs/commit/8f43e71f5692119e57a7acc5817c146d0b288e8c)) -- **groupBy:** Add typeguards support for groupBy ([#5441](https://github.com/reactivex/rxjs/issues/5441)) ([da382da](https://github.com/reactivex/rxjs/commit/da382da4cdcc6e7ab1ffc6a499f4f7f5ea7de130)) -- **raceWith:** add raceWith, the renamed `race` operator ([#5303](https://github.com/reactivex/rxjs/issues/5303)) ([ca7f370](https://github.com/reactivex/rxjs/commit/ca7f370d8379f22526cfb17d40deff53e1358742)) -- **fetch:** add selector ([#5306](https://github.com/reactivex/rxjs/issues/5306)) ([99b5af1](https://github.com/reactivex/rxjs/commit/99b5af1af5d169d55d454ff8e27d88105cee4b6f)), closes [#4744](https://github.com/reactivex/rxjs/issues/4744) -- **TimestampProvider:** Reduced scheduler footprint for default usage of shareReplay, timeInterval, and timestamp ([#4973](https://github.com/reactivex/rxjs/issues/4973)) ([b2e67e3](https://github.com/reactivex/rxjs/commit/b2e67e3139f0be1fb000ba42bb42c5ba60cc803a)) - -### BREAKING CHANGES - -- `Notification.createNext(undefined)` will no longer return the exact same reference every time. -- Type signatures tightened up around `Notification` and `dematerialize`, may uncover issues with invalid types passed to those operators. -- Experimental support for `for await` as been removed. Use https://github.com/benlesh/rxjs-for-await instead. -- `defer` no longer allows factories to return `void` or `undefined`. All factories passed to defer must return a proper `ObservableInput`, such as `Observable`, `Promise`, et al. To get the same behavior as you may have relied on previously, `return EMPTY` or `return of()` from the factory. -- `single` operator will now throw for scenarios where values coming in are either not present, or do not match the provided predicate. Error types have thrown have also been updated, please check documentation for changes. -- `take` and will now throw runtime error for arguments that are negative or NaN, this includes non-TS calls like `take()`. - -- `takeLast` now has runtime assertions that throw `TypeError`s for invalid arguments. Calling takeLast without arguments or with an argument that is `NaN` will throw a `TypeError` -- `ReplaySubject` no longer schedules emissions when a scheduler is provided. If you need that behavior, - please compose in `observeOn` using `pipe`, for example: `new ReplaySubject(2, 3000).pipe(observeOn(asap))` - -- `timestamp` operator accepts a `TimestampProvider`, which is any object with a `now` method - that returns a number. This means pulling in less code for the use of the `timestamp` operator. This may cause - issues with `TestScheduler` run mode. (Issue here: https://github.com/ReactiveX/rxjs/issues/5553) - -# [7.0.0-beta.0](https://github.com/reactivex/rxjs/compare/7.0.0-alpha.1...7.0.0-beta.0) (2020-04-03) - -### Bug Fixes - -- **mergeMapTo:** remove redundant/unused generic ([#5299](https://github.com/reactivex/rxjs/issues/5299)) ([d67b7da](https://github.com/reactivex/rxjs/commit/d67b7dafbacb3aac8f4dd7f215fe2d2c602f0d36)) -- **ajax:** AjaxTimeoutErrorImpl extends AjaxError ([#5226](https://github.com/reactivex/rxjs/issues/5226)) ([a8da8dc](https://github.com/reactivex/rxjs/commit/a8da8dcc899342d3bb6d2d913247d9e734095287)) -- **delay:** emit complete notification as soon as possible ([63b8797](https://github.com/reactivex/rxjs/commit/63b8797fbeed09eb675ea64b0b83607cef1367a9)), closes [#4249](https://github.com/reactivex/rxjs/issues/4249) -- **endWith:** will properly type N arguments ([#5246](https://github.com/reactivex/rxjs/issues/5246)) ([81ee1f7](https://github.com/reactivex/rxjs/commit/81ee1f72408854f4017615fe7949edf5dd50533b)) -- **fetch:** don't leak event listeners added to passed-in signals ([#5305](https://github.com/reactivex/rxjs/issues/5305)) ([d4d6c47](https://github.com/reactivex/rxjs/commit/d4d6c47d8abccc8cbe17e46192fc1eaa42d2d023)) -- **TestScheduler:** Subclassing TestScheduler needs RunHelpers ([#5138](https://github.com/reactivex/rxjs/issues/5138)) ([927d5d9](https://github.com/reactivex/rxjs/commit/927d5d90ab5f12a79cd50f7290b4f8df1e83ecfc)) -- **pipe:** Special handling for 0-arg case. ([#4936](https://github.com/reactivex/rxjs/issues/4936)) ([290fa51](https://github.com/reactivex/rxjs/commit/290fa51c44881f25f2fe4cf9885028396c7fd74c)) -- **pluck:** fix pluck's catch-all signature for better type safety ([#5192](https://github.com/reactivex/rxjs/issues/5192)) ([e0c5b7c](https://github.com/reactivex/rxjs/commit/e0c5b7c790bb9d99fa8bee26c805b5e70c1e456b)) -- **pluck:** param type now accepts number and symbol ([9697b69](https://github.com/reactivex/rxjs/commit/9697b695c23c3dcb614e6a70be63a94ffcd86ed9)) -- **startWith:** accepts N arguments and returns correct type ([#5247](https://github.com/reactivex/rxjs/issues/5247)) ([150ed8b](https://github.com/reactivex/rxjs/commit/150ed8b75909b0e0bb9dc8928287ebdc47e19c51)) -- **combineLatestWith:** and zipWith infer types from n-arguments ([#5257](https://github.com/reactivex/rxjs/issues/5257)) ([3e282a5](https://github.com/reactivex/rxjs/commit/3e282a58b1baf7aa03b17142f858bca09a542adf)) -- **race:** support N args in static race and ensure observable returned ([#5286](https://github.com/reactivex/rxjs/issues/5286)) ([6d901cb](https://github.com/reactivex/rxjs/commit/6d901cbb0c0f2aa3fc5a02ef895cc9e9a7a09243)) -- **toPromise:** correct toPromise return type ([#5072](https://github.com/reactivex/rxjs/issues/5072)) ([b1c3573](https://github.com/reactivex/rxjs/commit/b1c35738204b5b1a5d325a16e70cdbf25b523976)) -- **fromFetch:** don't reassign closed-over parameter in fromFetch ([#5234](https://github.com/reactivex/rxjs/issues/5234)) ([37d2d99](https://github.com/reactivex/rxjs/commit/37d2d99762264ef5faabc0ce4f56d7aab51806dc)), closes [#5233](https://github.com/reactivex/rxjs/issues/5233) [#5233](https://github.com/reactivex/rxjs/issues/5233) - -### Features - -- add `lastValueFrom` and `firstValueFrom` methods ([#5295](https://github.com/reactivex/rxjs/issues/5295)) ([e69b765](https://github.com/reactivex/rxjs/commit/e69b76584d6872b3c55aa1bdf39c8984e9d9b00e)) -- RxJS now supports first-class interop with AsyncIterables ([4fa9d01](https://github.com/reactivex/rxjs/commit/4fa9d016a83049d014d77b89c56301e42db16b4d)) -- **combineLatestWith:** adds `combineLatestWith` - renamed legacy `combineLatest` operator ([#5251](https://github.com/reactivex/rxjs/issues/5251)) ([6d7b146](https://github.com/reactivex/rxjs/commit/6d7b1469110b405405549c9b6c311d2621738353)) -- **retry:** add config to reset error count on successful emission ([#5280](https://github.com/reactivex/rxjs/issues/5280)) ([ab6e9fc](https://github.com/reactivex/rxjs/commit/ab6e9fc32c19c1f14f8f59459db75312e75b9351)) -- **zipWith:** add `zipWith` which is just a rename of legacy `zip` operator ([#5249](https://github.com/reactivex/rxjs/issues/5249)) ([86b6a27](https://github.com/reactivex/rxjs/commit/86b6a272fd48c4712adba78963e05bb759ecf4f9)) - -### BREAKING CHANGES - -- **startWith:** `startWith` will return incorrect types when called with more than 7 arguments and a scheduler. Passing scheduler to startWith is deprecated -- **toPromise:** toPromise return type now returns `T | undefined` in TypeScript, which is correct, but may break builds. - -# [7.0.0-alpha.1](https://github.com/reactivex/rxjs/compare/7.0.0-alpha.0...7.0.0-alpha.1) (2019-12-27) - -### Bug Fixes - -- chain subscriptions from observables that belong to other instances of RxJS (e.g. in node_modules) ([#5059](https://github.com/reactivex/rxjs/issues/5059)) ([d7f7078](https://github.com/reactivex/rxjs/commit/d7f7078)) -- clear subscription on `shareReplay` completion ([#5044](https://github.com/reactivex/rxjs/issues/5044)) ([35e600f](https://github.com/reactivex/rxjs/commit/35e600f)), closes [#5034](https://github.com/reactivex/rxjs/issues/5034) -- **closure:** Annotate next() for ReplaySubject ([#5088](https://github.com/reactivex/rxjs/issues/5088)) ([8687fbd](https://github.com/reactivex/rxjs/commit/8687fbd)) -- **closure:** static prop frameTimeFactor being collapsed when compiled with closure. ([39872c9](https://github.com/reactivex/rxjs/commit/39872c9)) -- **docs:** remove repetitive op3() in example ([#5043](https://github.com/reactivex/rxjs/issues/5043)) ([e17df33](https://github.com/reactivex/rxjs/commit/e17df33)) -- **filter:** Fix overload order for filter to support inferring the generic type ([#5024](https://github.com/reactivex/rxjs/issues/5024)) ([8255365](https://github.com/reactivex/rxjs/commit/8255365)) -- **fromFetch:** passing already aborted signal to init aborts fetch ([0e4849a](https://github.com/reactivex/rxjs/commit/0e4849a)) - -### Features - -- **concatWith:** adds concatWith ([#4988](https://github.com/reactivex/rxjs/issues/4988)) ([dc89736](https://github.com/reactivex/rxjs/commit/dc89736)) - -# [7.0.0-alpha.0](https://github.com/reactivex/rxjs/compare/6.5.2...7.0.0-alpha.0) (2019-09-18) - -### Bug Fixes - -- missing package.json in rxjs/fetch ([#5001](https://github.com/reactivex/rxjs/issues/5001)) ([f4bee07](https://github.com/reactivex/rxjs/commit/f4bee07)) -- **filter:** Resolve TS build failures for certain situations where Boolean is the predicate ([77c7dfd](https://github.com/reactivex/rxjs/commit/77c7dfd)) -- **pluck:** key union type strictness ([#4585](https://github.com/reactivex/rxjs/issues/4585)) ([bd5ec2d](https://github.com/reactivex/rxjs/commit/bd5ec2d)) -- **race:** ignore latter sources after first complete or error ([#4809](https://github.com/reactivex/rxjs/issues/4809)) ([f31c3df](https://github.com/reactivex/rxjs/commit/f31c3df)), closes [#4808](https://github.com/reactivex/rxjs/issues/4808) -- **scan/reduce:** Typings correct for mixed seed/value types ([#4858](https://github.com/reactivex/rxjs/issues/4858)) ([b89ebe5](https://github.com/reactivex/rxjs/commit/b89ebe5)) -- **scheduled:** import from relative paths ([#4832](https://github.com/reactivex/rxjs/issues/4832)) ([1d37a87](https://github.com/reactivex/rxjs/commit/1d37a87)) -- **TS:** Error impls now properly type `this` ([#4978](https://github.com/reactivex/rxjs/issues/4978)) ([7606dc7](https://github.com/reactivex/rxjs/commit/7606dc7)) -- **TS:** fix type inference for defaultIfEmpty. ([#4833](https://github.com/reactivex/rxjs/issues/4833)) ([9b5ce2f](https://github.com/reactivex/rxjs/commit/9b5ce2f)) -- **types:** add Boolean signature to filter ([#4961](https://github.com/reactivex/rxjs/issues/4961)) ([259853e](https://github.com/reactivex/rxjs/commit/259853e)), closes [#4959](https://github.com/reactivex/rxjs/issues/4959) [/github.com/ReactiveX/rxjs/issues/4959#issuecomment-520629091](https://github.com//github.com/ReactiveX/rxjs/issues/4959/issues/issuecomment-520629091) - -### Features - -- **animationFrames:** Adds an observable of animationFrames ([#5021](https://github.com/reactivex/rxjs/issues/5021)) ([6a4cd68](https://github.com/reactivex/rxjs/commit/6a4cd68)) -- **concat:** can infer N types ([6c0cbc4](https://github.com/reactivex/rxjs/commit/6c0cbc4)) -- **of:** Update of typings ([e8adbb5](https://github.com/reactivex/rxjs/commit/e8adbb5)) -- **rxjs-compat:** removed for v7 ([#4839](https://github.com/reactivex/rxjs/issues/4839)) ([79b1b95](https://github.com/reactivex/rxjs/commit/79b1b95)) -- **TestScheduler:** expose `frameTimeFactor` property ([#4977](https://github.com/reactivex/rxjs/issues/4977)) ([8c32ed0](https://github.com/reactivex/rxjs/commit/8c32ed0)) -- **TS:** Update to TypeScript 3.5.3 ([741a136](https://github.com/reactivex/rxjs/commit/741a136)) - -### BREAKING CHANGES - -- **concat:** Generic signature changed. Recommend not explicitly passing generics, just let inference do its job. If you must, cast with `as`. -- **of:** Generic signature changed, do not specify generics, allow them to be inferred or use `as` -- **of:** Use with more than 9 arguments, where the last argument is a `SchedulerLike` may result in the wrong type which includes the `SchedulerLike`, even though the run time implementation does not support that. Developers should be using `scheduled` instead -- **TS:** RxJS requires TS 3.5 -- **rxjs-compat:** `rxjs/Rx` is no longer a valid import site. -- **rxjs-compat:** `rxjs-compat` is not published for v7 (yet) -- **race:** `race()` will no longer subscribe to subsequent observables if a provided source synchronously errors or completes. This means side effects that might have occurred during subscription in those rare cases will no longer occur. - -## [6.5.3](https://github.com/reactivex/rxjs/compare/6.5.2...6.5.3) (2019-09-03) - -### Bug Fixes - -- **general:** Refactor modules so they don't show side effects in some tools ([#4769](https://github.com/reactivex/rxjs/issues/4769)) ([9829c5e0](https://github.com/reactivex/rxjs/commit/9829c5e0)) -- **defer:** restrict allowed factory types ([#4835](https://github.com/reactivex/rxjs/issues/4835)) ([40a22096](https://github.com/reactivex/rxjs/commit/40a22096)) - -## [6.5.2](https://github.com/reactivex/rxjs/compare/6.5.0...6.5.2) (2019-05-10) - -### Bug Fixes - -- **endWith:** wrap args - they are not observables - in of before concatenating ([#4735](https://github.com/reactivex/rxjs/issues/4735)) ([986be2f](https://github.com/reactivex/rxjs/commit/986be2f)) -- **forkJoin:** test for object literal ([#4741](https://github.com/reactivex/rxjs/issues/4741)) ([c11e1b3](https://github.com/reactivex/rxjs/commit/c11e1b3)), closes [#4737](https://github.com/reactivex/rxjs/issues/4737) [#4737](https://github.com/reactivex/rxjs/issues/4737) -- **Notification:** replace const enum ([#4556](https://github.com/reactivex/rxjs/issues/4556)) ([e460eec](https://github.com/reactivex/rxjs/commit/e460eec)), closes [#4538](https://github.com/reactivex/rxjs/issues/4538) -- **of:** remove deprecation comment to prevent false positive warning ([#4724](https://github.com/reactivex/rxjs/issues/4724)) ([da69c16](https://github.com/reactivex/rxjs/commit/da69c16)) -- **pairwise:** make it recursion-proof ([#4743](https://github.com/reactivex/rxjs/issues/4743)) ([21ab261](https://github.com/reactivex/rxjs/commit/21ab261)) -- **scan:** fixed declarations to properly support different return types ([#4598](https://github.com/reactivex/rxjs/issues/4598)) ([126d2b6](https://github.com/reactivex/rxjs/commit/126d2b6)) -- **Subscription:** Return Empty when teardown === null ([#4575](https://github.com/reactivex/rxjs/issues/4575)) ([ffc4e68](https://github.com/reactivex/rxjs/commit/ffc4e68)) -- **throttleTime:** emit single value with trailing enabled ([#4564](https://github.com/reactivex/rxjs/issues/4564)) ([fd690a6](https://github.com/reactivex/rxjs/commit/fd690a6)), closes [#2859](https://github.com/reactivex/rxjs/issues/2859) [#4491](https://github.com/reactivex/rxjs/issues/4491) -- **umd:** export fetch namespace ([#4738](https://github.com/reactivex/rxjs/issues/4738)) ([7926122](https://github.com/reactivex/rxjs/commit/7926122)) -- **fromFetch:** don't abort if fetch resolves ([#4742](https://github.com/reactivex/rxjs/issues/4742) ([ed8d771](https://github.com/reactivex/rxjs/commit/ed8d771)) - -## [6.5.1](https://github.com/reactivex/rxjs/compare/6.5.0...6.5.1) (2019-04-23) - -### Bug Fixes - -- **Notification:** replace const enum ([#4556](https://github.com/reactivex/rxjs/issues/4556)) ([e460eec](https://github.com/reactivex/rxjs/commit/e460eec)), closes [#4538](https://github.com/reactivex/rxjs/issues/4538) -- **throttleTime:** emit single value with trailing enabled ([#4564](https://github.com/reactivex/rxjs/issues/4564)) ([fd690a6](https://github.com/reactivex/rxjs/commit/fd690a6)), closes [#2859](https://github.com/reactivex/rxjs/issues/2859) [#4491](https://github.com/reactivex/rxjs/issues/4491) - -# [6.5.0](https://github.com/reactivex/rxjs/compare/6.4.0...6.5.0) (2019-04-23) - -### Bug Fixes - -- **docs-app:** remove stopWordFilter from lunr pipeline ([#4536](https://github.com/reactivex/rxjs/issues/4536)) ([9eaebd4](https://github.com/reactivex/rxjs/commit/9eaebd4)) -- **dtslint:** disable tests that break in TS@next ([#4705](https://github.com/reactivex/rxjs/issues/4705)) ([ecc73d2](https://github.com/reactivex/rxjs/commit/ecc73d2)) -- **index:** export NotificationKind ([#4514](https://github.com/reactivex/rxjs/issues/4514)) ([7125355](https://github.com/reactivex/rxjs/commit/7125355)), closes [#4513](https://github.com/reactivex/rxjs/issues/4513) -- **race:** better typings ([#4643](https://github.com/reactivex/rxjs/issues/4643)) ([fb9bc48](https://github.com/reactivex/rxjs/commit/fb9bc48)), closes [#4390](https://github.com/reactivex/rxjs/issues/4390) [#4642](https://github.com/reactivex/rxjs/issues/4642) -- **throwIfEmpty:** ensure result is retry-able ([c4f44b9](https://github.com/reactivex/rxjs/commit/c4f44b9)) -- **types:** Fixed signature for onErrorResumeNext ([#4603](https://github.com/reactivex/rxjs/issues/4603)) ([4dd0be0](https://github.com/reactivex/rxjs/commit/4dd0be0)) - -### Features - -- **combineLatest:** deprecated rest argument and scheduler signatures ([#4641](https://github.com/reactivex/rxjs/issues/4641)) ([6661c79](https://github.com/reactivex/rxjs/commit/6661c79)), closes [#4640](https://github.com/reactivex/rxjs/issues/4640) -- **fromFetch:** We now export a `fromFetch` static observable creation method from `rxjs/fetch`. Mirrors native `fetch` only it's lazy and cancellable via `Observable` interface. ([#4702](https://github.com/reactivex/rxjs/issues/4702)) ([5a1ef86](https://github.com/reactivex/rxjs/commit/5a1ef86)) -- **forkJoin:** accepts a dictionary of sources ([#4640](https://github.com/reactivex/rxjs/issues/4640)) ([b5a2ac9](https://github.com/reactivex/rxjs/commit/b5a2ac9)) -- **partition:** new `partition` observable creation function. Old `partition` operator is deprecated ([#4419](https://github.com/reactivex/rxjs/issues/4419)) ([#4685](https://github.com/reactivex/rxjs/issues/4685)) ([d5d6980](https://github.com/reactivex/rxjs/commit/d5d6980)) -- **scheduled:** Add `scheduled` creation function to use to create scheduled observable of values. Deprecate scheduled versions of `from`, `range`, et al. ([#4595](https://github.com/reactivex/rxjs/issues/4595)) ([f57e1fc](https://github.com/reactivex/rxjs/commit/f57e1fc)) - -### Performance Improvements - -- **Subscription:** improve parent management ([#4526](https://github.com/reactivex/rxjs/issues/4526)) ([06f1a25](https://github.com/reactivex/rxjs/commit/06f1a25)) - -# [6.4.0](https://github.com/reactivex/rxjs/compare/6.3.3...6.4.0) (2019-01-30) - -### Bug Fixes - -- **ajax:** Fix case-insensitive headers in HTTP request ([#4453](https://github.com/reactivex/rxjs/issues/4453)) ([673bf47](https://github.com/reactivex/rxjs/commit/673bf47)) -- **bundle:** closure to not rewrite polyfills for minification ([#4487](https://github.com/reactivex/rxjs/issues/4487)) ([a1fedb9](https://github.com/reactivex/rxjs/commit/a1fedb9)) -- **bundle:** don't export `operators` twice ([#4310](https://github.com/reactivex/rxjs/issues/4310)) ([2399f6e](https://github.com/reactivex/rxjs/commit/2399f6e)) -- **combineLatest:** improve typings for combineLatest ([#4470](https://github.com/reactivex/rxjs/issues/4470)) ([40c3d9f](https://github.com/reactivex/rxjs/commit/40c3d9f)) -- **compat:** remove internal from import locations ([#4498](https://github.com/reactivex/rxjs/issues/4498)) ([a6c0017](https://github.com/reactivex/rxjs/commit/a6c0017)), closes [#4070](https://github.com/reactivex/rxjs/issues/4070) -- **endWith:** ability to endWith different types ([#4183](https://github.com/reactivex/rxjs/issues/4183)) ([#4185](https://github.com/reactivex/rxjs/issues/4185)) ([83533d1](https://github.com/reactivex/rxjs/commit/83533d1)) -- **fromEventPattern:** improve typings for fromEventPattern ([#4496](https://github.com/reactivex/rxjs/issues/4496)) ([037f53d](https://github.com/reactivex/rxjs/commit/037f53d)) -- **Observable:** Fix Observable.subscribe to add operator TeardownLogic to returned Subscription. ([#4434](https://github.com/reactivex/rxjs/issues/4434)) ([f28955f](https://github.com/reactivex/rxjs/commit/f28955f)) -- **subscribe:** Deprecate null starting parameter signatures for subscribe ([#4202](https://github.com/reactivex/rxjs/issues/4202)) ([c85ddf6](https://github.com/reactivex/rxjs/commit/c85ddf6)) -- **combineLatest:** support passing union types ([ffda319](https://github.com/reactivex/rxjs/commit/ffda319)) -- **from:** support passing union types ([eb1d596](https://github.com/reactivex/rxjs/commit/eb1d596)) -- **withLatestFrom:** support passing union types ([1e19a24](https://github.com/reactivex/rxjs/commit/1e19a24)) -- **zip:** support passing union types ([0d87f52](https://github.com/reactivex/rxjs/commit/0d87f52)) -- **multicast:** support returning union types from projection ([e9e9041](https://github.com/reactivex/rxjs/commit/e9e9041)) -- **exhaustMap:** support returning union types from projection ([ff1f5dc](https://github.com/reactivex/rxjs/commit/ff1f5dc)) -- **merge:** support union type inference for merge operators ([c2ac39c](https://github.com/reactivex/rxjs/commit/c2ac39c)) -- **catchError:** support union type returns ([8350622](https://github.com/reactivex/rxjs/commit/8350622)) -- **switchMap:** support union type returns ([32d35fd](https://github.com/reactivex/rxjs/commit/32d35fd)) -- **defer:** support union types passed ([5aea50e](https://github.com/reactivex/rxjs/commit/5aea50e)) -- **race:** Update typings to support proper return types ([#4465](https://github.com/reactivex/rxjs/issues/4465)) ([0042846](https://github.com/reactivex/rxjs/commit/0042846)) -- **VirtualTimeScheduler:** rework flush so it won't lose actions ([#4433](https://github.com/reactivex/rxjs/issues/4433)) ([d068bc9](https://github.com/reactivex/rxjs/commit/d068bc9)) -- **WebSocketSubject:** fix subject failing to close socket ([#4446](https://github.com/reactivex/rxjs/issues/4446)) ([dcfa52b](https://github.com/reactivex/rxjs/commit/dcfa52b)) - -### Features - -- **shareReplay:** Add configuration object for named arguments, and add argument to support unsubscribing from source observable by `refCount` when all resulting subscriptions have unsubscribed. The default behavior is to leave the source subscription running. -- **mergeScan:** Add index to the accumulator function ([#4458](https://github.com/reactivex/rxjs/issues/4458)) ([f5e143d](https://github.com/reactivex/rxjs/commit/f5e143d)), closes [#4441](https://github.com/reactivex/rxjs/issues/4441) -- **range:** accept one argument ([#4360](https://github.com/reactivex/rxjs/issues/4360)) ([a388578](https://github.com/reactivex/rxjs/commit/a388578)) -- **takeWhile:** add an `inclusive` option to the operator which causes to emit final value ([#4115](https://github.com/reactivex/rxjs/issues/4115)) ([6e7f407](https://github.com/reactivex/rxjs/commit/6e7f407)) - -### Performance Improvements - -- **internal:** optimize Subscription#add() for the common case ([#4489](https://github.com/reactivex/rxjs/issues/4489)) ([bdd201c](https://github.com/reactivex/rxjs/commit/bdd201c)) -- **internal:** use strict equality for isObject() ([#4493](https://github.com/reactivex/rxjs/issues/4493)) ([fc84a00](https://github.com/reactivex/rxjs/commit/fc84a00)) -- **Subscription:** use `instanceof` to avoid megamorphic LoadIC ([#4499](https://github.com/reactivex/rxjs/issues/4499)) ([065b4e3](https://github.com/reactivex/rxjs/commit/065b4e3)) - - - -## [6.3.3](https://github.com/reactivex/rxjs/compare/6.3.2...6.3.3) (2018-09-25) - -### Bug Fixes - -- **pipe:** align static pipe to Observable pipe rest parameters overl… ([#4112](https://github.com/reactivex/rxjs/issues/4112)) ([8c607e9](https://github.com/reactivex/rxjs/commit/8c607e9)), closes [#4109](https://github.com/reactivex/rxjs/issues/4109) [#4109](https://github.com/reactivex/rxjs/issues/4109) -- **RxJS:** each instance of RxJS now has a unique Subscriber symbol ([0972c56](https://github.com/reactivex/rxjs/commit/0972c56)) -- **subscribe:** report errors that occur in subscribe after the initial error ([#4089](https://github.com/reactivex/rxjs/issues/4089)) ([9b4b2bc](https://github.com/reactivex/rxjs/commit/9b4b2bc)), closes [#3803](https://github.com/reactivex/rxjs/issues/3803) -- **Subscriber:** Can no longer subscribe to itself in a circular manner ([#4106](https://github.com/reactivex/rxjs/issues/4106)) ([e623ec6](https://github.com/reactivex/rxjs/commit/e623ec6)), closes [#4095](https://github.com/reactivex/rxjs/issues/4095) -- **Subscriber:** use only local Subscriber instances ([50ee0a7](https://github.com/reactivex/rxjs/commit/50ee0a7)) -- **TypeScript:** ensure RxJS builds with TS@next as well ([f03e790](https://github.com/reactivex/rxjs/commit/f03e790)) - - - -## [6.3.2](https://github.com/reactivex/rxjs/compare/6.3.1...6.3.2) (2018-09-04) - -### Bug Fixes - -- **node:** will no longer error mixing RxJS 6.3 and 6.2 ([#4078](https://github.com/reactivex/rxjs/issues/4078)) ([69d9ccf](https://github.com/reactivex/rxjs/commit/69d9ccf)), closes [#4077](https://github.com/reactivex/rxjs/issues/4077) - - - -## [6.3.1](https://github.com/reactivex/rxjs/compare/6.3.0...6.3.1) (2018-08-31) - -### Bug Fixes - -- **mergeMap:** fix nested mergeMaps ([#4072](https://github.com/reactivex/rxjs/issues/4072)) ([0ab701b](https://github.com/reactivex/rxjs/commit/0ab701b)), closes [#4071](https://github.com/reactivex/rxjs/issues/4071) - - - -# [6.3.0](https://github.com/reactivex/rxjs/compare/6.2.2...6.3.0) (2018-08-30) - -### Bug Fixes - -- **find:** unsubscribe from source when found ([#3968](https://github.com/reactivex/rxjs/issues/3968)) ([fd01f7b](https://github.com/reactivex/rxjs/commit/fd01f7b)) -- convert [@internal](https://github.com/internal) comment to JSDoc ([#3932](https://github.com/reactivex/rxjs/issues/3932)) ([f8a9d6e](https://github.com/reactivex/rxjs/commit/f8a9d6e)) -- **AjaxObservable:** notify with error if fails to parse json response ([#3139](https://github.com/reactivex/rxjs/issues/3139)) ([d8231e2](https://github.com/reactivex/rxjs/commit/d8231e2)), closes [#3138](https://github.com/reactivex/rxjs/issues/3138) -- **catchError:** stop listening to a synchronous inner-observable when unsubscribed ([456ef33](https://github.com/reactivex/rxjs/commit/456ef33)) -- **distinctUntilKeyChanged:** improved key typing with keyof T ([#3988](https://github.com/reactivex/rxjs/issues/3988)) ([4ec4ff1](https://github.com/reactivex/rxjs/commit/4ec4ff1)) -- **exhaustMap:** stop listening to a synchronous inner-observable when unsubscribed ([ee1a339](https://github.com/reactivex/rxjs/commit/ee1a339)) -- **find:** add undefined to return type ([#3970](https://github.com/reactivex/rxjs/issues/3970)) ([5a6c90f](https://github.com/reactivex/rxjs/commit/5a6c90f)), closes [#3969](https://github.com/reactivex/rxjs/issues/3969) -- **IE10:** Remove dependency on Object.setPrototypeOf ([#3967](https://github.com/reactivex/rxjs/issues/3967)) ([5c52a73](https://github.com/reactivex/rxjs/commit/5c52a73)), closes [#3966](https://github.com/reactivex/rxjs/issues/3966) -- **mergeAll:** add source subscription to composite before actually subscribing ([#2479](https://github.com/reactivex/rxjs/issues/2479)) ([40852ff](https://github.com/reactivex/rxjs/commit/40852ff)), closes [#2476](https://github.com/reactivex/rxjs/issues/2476) -- **mergeScan:** stop listening to a synchronous inner-observable when unsubscribed ([c4002f3](https://github.com/reactivex/rxjs/commit/c4002f3)) -- **Observable:** forEach will no longer next values after an error ([b4bad1f](https://github.com/reactivex/rxjs/commit/b4bad1f)) -- **Observable:** use more granular Observable exports in compat mode ([#3974](https://github.com/reactivex/rxjs/issues/3974)) ([3f75564](https://github.com/reactivex/rxjs/commit/3f75564)) -- **onErrorResumeNext:** stop listening to a synchronous inner-observable when unsubscribed ([1d14277](https://github.com/reactivex/rxjs/commit/1d14277)) -- **pipe:** replace rest parameters overload ([#3945](https://github.com/reactivex/rxjs/issues/3945)) ([872b0ec](https://github.com/reactivex/rxjs/commit/872b0ec)), closes [#3841](https://github.com/reactivex/rxjs/issues/3841) -- **skipUntil:** stop listening to a synchronous notifier after its first nexted value ([1c257db](https://github.com/reactivex/rxjs/commit/1c257db)) -- **startWith:** allow empty type signature and passing a different type ([b7866a0](https://github.com/reactivex/rxjs/commit/b7866a0)) -- **subscribable:** make subscribe() signature match Observable ([#4050](https://github.com/reactivex/rxjs/issues/4050)) ([865d8d7](https://github.com/reactivex/rxjs/commit/865d8d7)), closes [#3891](https://github.com/reactivex/rxjs/issues/3891) -- **subscriber:** unsubscribe parents on error/complete ([ad8131b](https://github.com/reactivex/rxjs/commit/ad8131b)) -- **switchMap:** stop listening to a synchronous inner-observable when unsubscribed ([260d52a](https://github.com/reactivex/rxjs/commit/260d52a)) -- **takeUntil:** takeUntil should subscribe to the source if notifier sync completes without emitting ([#4039](https://github.com/reactivex/rxjs/issues/4039)) ([21fd0b4](https://github.com/reactivex/rxjs/commit/21fd0b4)), closes [#3504](https://github.com/reactivex/rxjs/issues/3504) -- **testscheduler:** type arguments to Observable creation functions ([#3928](https://github.com/reactivex/rxjs/issues/3928)) ([0e30ef1](https://github.com/reactivex/rxjs/commit/0e30ef1)) - -### Features - -- **delayWhen:** add index to the selector function ([#2473](https://github.com/reactivex/rxjs/issues/2473)) ([0979d31](https://github.com/reactivex/rxjs/commit/0979d31)) -- **forEach:** deprecating passing promise constructor ([5178ab9](https://github.com/reactivex/rxjs/commit/5178ab9)) -- **TestScheduler:** Add subscription schedule to expectObservable ([#3997](https://github.com/reactivex/rxjs/issues/3997)) ([0d20255](https://github.com/reactivex/rxjs/commit/0d20255)) - - - -## [6.2.2](https://github.com/reactivex/rxjs/compare/6.2.1...6.2.2) (2018-07-13) - -### Bug Fixes - -- **first:** improved type guards for TypeScript ([3e12f7a](https://github.com/reactivex/rxjs/commit/3e12f7a)) -- **last:** improved type guards for TypeScript ([3e12f7a](https://github.com/reactivex/rxjs/commit/3e12f7a)) - - - -## [6.2.1](https://github.com/reactivex/rxjs/compare/6.2.0...6.2.1) (2018-06-12) - -### Bug Fixes - -- **ci:** do not trigger postbuild script on PR ([f82c085](https://github.com/reactivex/rxjs/commit/f82c085)) -- **delayWhen:** Emit source value if duration selector completes synchronously ([#3664](https://github.com/reactivex/rxjs/issues/3664)) ([2c43af7](https://github.com/reactivex/rxjs/commit/2c43af7)), closes [#3663](https://github.com/reactivex/rxjs/issues/3663) -- **docs:** fix broken github links ([#3802](https://github.com/reactivex/rxjs/issues/3802)) ([9f9bf9b](https://github.com/reactivex/rxjs/commit/9f9bf9b)) -- **docs:** fix code examples ([#3784](https://github.com/reactivex/rxjs/issues/3784)) ([a95441b](https://github.com/reactivex/rxjs/commit/a95441b)) -- **from:** Objects implementing Symbol.observable take precedence over other types ([80ceea0](https://github.com/reactivex/rxjs/commit/80ceea0)) -- **fromEvent:** Support React Native and node-compatible event sources. ([#3821](https://github.com/reactivex/rxjs/issues/3821)) ([1969f18](https://github.com/reactivex/rxjs/commit/1969f18)) -- **Observable.prototype.pipe:** TS typings now more correct for >8 parameters ([#3789](https://github.com/reactivex/rxjs/issues/3789)) ([ad010ea](https://github.com/reactivex/rxjs/commit/ad010ea)) -- **subscribe:** ignore syncError when deprecated ([#3749](https://github.com/reactivex/rxjs/issues/3749)) ([f94560c](https://github.com/reactivex/rxjs/commit/f94560c)) -- **Symbol.observable:** make observable declaration readonly ([#3697](https://github.com/reactivex/rxjs/issues/3697)) ([#3773](https://github.com/reactivex/rxjs/issues/3773)) ([e1c203f](https://github.com/reactivex/rxjs/commit/e1c203f)) -- **TypeScript:** resolved typings issue for TS 3.0 ([bf2cdeb](https://github.com/reactivex/rxjs/commit/bf2cdeb)) -- **typings:** allow bufferCreationInterval null for bufferTime ([#3734](https://github.com/reactivex/rxjs/issues/3734)) ([0bda9cd](https://github.com/reactivex/rxjs/commit/0bda9cd)), closes [#3728](https://github.com/reactivex/rxjs/issues/3728) - -### Performance Improvements - -- remove comments from js-files ([#3760](https://github.com/reactivex/rxjs/issues/3760)) ([bb2c334](https://github.com/reactivex/rxjs/commit/bb2c334)) - - - -# [6.2.0](https://github.com/ReactiveX/RxJS/compare/6.1.0...6.2.0) (2018-05-22) - -### Bug Fixes - -- **ajax:** Handle timeouts as errors ([#3653](https://github.com/ReactiveX/RxJS/issues/3653)) ([e4128ea](https://github.com/ReactiveX/RxJS/commit/e4128ea)) -- **ajax:** RxJS v6 TimeoutError is missing name property ([576d943](https://github.com/ReactiveX/RxJS/commit/576d943)) -- **isObservable:** Fix throwing error when testing isObservable(null) ([#3688](https://github.com/ReactiveX/RxJS/issues/3688)) ([c9acc61](https://github.com/ReactiveX/RxJS/commit/c9acc61)) -- **range:** Range should be same for every subscriber ([#3707](https://github.com/ReactiveX/RxJS/issues/3707)) ([9642133](https://github.com/ReactiveX/RxJS/commit/9642133)) -- **skipUntil:** fix skipUntil when innerSubscription is null ([#3686](https://github.com/ReactiveX/RxJS/issues/3686)) ([4226432](https://github.com/ReactiveX/RxJS/commit/4226432)) -- **TestScheduler:** restore run changes upon error ([27cb9b6](https://github.com/ReactiveX/RxJS/commit/27cb9b6)) -- **TimeoutError:** Add name to TimeoutError ([44042d0](https://github.com/ReactiveX/RxJS/commit/44042d0)) -- **WebSocketSubject:** Check to see if WebSocket exists in global scope ([#3694](https://github.com/ReactiveX/RxJS/issues/3694)) ([2db0788](https://github.com/ReactiveX/RxJS/commit/2db0788)) - -### Features - -- **endWith:** add new operator endWith ([#3679](https://github.com/ReactiveX/RxJS/issues/3679)) ([537fe7d](https://github.com/ReactiveX/RxJS/commit/537fe7d)) - - - -# [6.1.0](https://github.com/ReactiveX/RxJS/compare/6.0.0...6.1.0) (2018-05-03) - -### Bug Fixes - -- **audit:** will not crash if duration is synchronous ([#3608](https://github.com/ReactiveX/RxJS/issues/3608)) ([76b7e27](https://github.com/ReactiveX/RxJS/commit/76b7e27)), closes [#2743](https://github.com/ReactiveX/RxJS/issues/2743) -- **delay:** fix memory leak ([#3605](https://github.com/ReactiveX/RxJS/issues/3605)) ([96f05b0](https://github.com/ReactiveX/RxJS/commit/96f05b0)) - -### Features - -- **isObservable:** a new method for checking to see if an object is an RxJS Observable ([edb33e5](https://github.com/ReactiveX/RxJS/commit/edb33e5)) - - - -# [6.0.0](https://github.com/ReactiveX/RxJS/compare/6.0.0-uncanny-rc.7...v6.0.0) (2018-04-24) - -### Bug Fixes - -- **websocket:** no longer throws errors in operators applied to it ([#3577](https://github.com/ReactiveX/RxJS/issues/3577)) ([cb38ddf](https://github.com/ReactiveX/RxJS/commit/cb38ddf)) - -### Code Refactoring - -- **webSocket:** rename back to webSocket ala 5.0 ([#3590](https://github.com/ReactiveX/RxJS/issues/3590)) ([d5658fe](https://github.com/ReactiveX/RxJS/commit/d5658fe)) - -### Features - -- **testing:** Add testScheduler.run() helper ([2d5b3b2](https://github.com/ReactiveX/RxJS/commit/2d5b3b2)) -- **testing:** testScheduler.run() supports time progression syntax ([9322b7d](https://github.com/ReactiveX/RxJS/commit/9322b7d)) - -### BREAKING CHANGES - -- **webSocket:** UNBREAKING websocket to be named `webSocket` again, just like it was in 5.0. Now you should import from `rxjs/webSocket` - - - -# [6.0.0-uncanny-rc.7](https://github.com/ReactiveX/RxJS/compare/6.0.0-ucandoit-rc.6...v6.0.0-uncanny-rc.7) (2018-04-13) - -### Bug Fixes - -- **interop:** functions with `[Symbol.observable]` on them will now be accepted in operators like `mergeMap`, `from`, etc ([#3562](https://github.com/ReactiveX/RxJS/issues/3562)) ([c9570df](https://github.com/ReactiveX/RxJS/commit/c9570df)) -- **migrations:** change the version the migration applies to ([#3564](https://github.com/ReactiveX/RxJS/issues/3564)) ([9217a03](https://github.com/ReactiveX/RxJS/commit/9217a03)) -- **rxjs:** no longer requires `dom` lib ([#3566](https://github.com/ReactiveX/RxJS/issues/3566)) ([8b33ee2](https://github.com/ReactiveX/RxJS/commit/8b33ee2)) -- **throttleTime:** emit throttled values when complete if trailing=true ([#3559](https://github.com/ReactiveX/RxJS/issues/3559)) ([3e846f2](https://github.com/ReactiveX/RxJS/commit/3e846f2)), closes [#3351](https://github.com/ReactiveX/RxJS/issues/3351) -- **websocket:** export WebSocketSubject, WebSocketSubjectConfig from rxjs/websocket ([#3557](https://github.com/ReactiveX/RxJS/issues/3557)) ([c365405](https://github.com/ReactiveX/RxJS/commit/c365405)) - - - -# [6.0.0-ucandoit-rc.6](https://github.com/ReactiveX/RxJS/compare/6.0.0-uber-rc.5...v6.0.0-ucandoit-rc.6) (2018-04-13) - -### Bug Fixes - -- **migrations:** make sure collection.json is present ([63e10a8](https://github.com/ReactiveX/RxJS/commit/63e10a8)) - - - -# [6.0.0-uber-rc.5](https://github.com/ReactiveX/RxJS/compare/6.0.0-turbo-rc.4...6.0.0-uber-rc.5) (2018-04-13) - -### Bug Fixes - -- **migrations:** deploy compiled JS rather than just the TS files. ([9aed72f](https://github.com/ReactiveX/RxJS/commit/9aed72f)) - - - -# [6.0.0-turbo-rc.4](https://github.com/ReactiveX/RxJS/compare/6.0.0-terrific-rc.3...6.0.0-turbo-rc.4) (2018-04-12) - -### Bug Fixes - -- **groupBy:** reexporting the GroupedObservable type ([#3556](https://github.com/ReactiveX/RxJS/issues/3556)) ([12d4933](https://github.com/ReactiveX/RxJS/commit/12d4933)), closes [#3551](https://github.com/ReactiveX/RxJS/issues/3551) -- **migrations:** build now properly copies migration into package ([#3555](https://github.com/ReactiveX/RxJS/issues/3555)) ([329a145](https://github.com/ReactiveX/RxJS/commit/329a145)) - - - -# [6.0.0-terrific-rc.3](https://github.com/ReactiveX/RxJS/compare/6.0.0-tenacious-rc.2...v6.0.0-terrific-rc.3) (2018-04-11) - -### Features - -- **schematics:** add migration schematics for schematics users ([20a2f07](https://github.com/ReactiveX/RxJS/commit/20a2f07)) - - - -# [6.0.0-tenacious-rc.2](https://github.com/ReactiveX/RxJS/compare/6.0.0-tactical-rc.1...v6.0.0-tenacious-rc.2) (2018-04-11) - -### Bug Fixes - -- **compat:** fix first & last operators so undefined arguments won't create empty values ([#3542](https://github.com/ReactiveX/RxJS/issues/3542)) ([a327db2](https://github.com/ReactiveX/RxJS/commit/a327db2)) -- **node/TS:** eliminate incompatible types to protected properties ([#3544](https://github.com/ReactiveX/RxJS/issues/3544)) ([21dd3bd](https://github.com/ReactiveX/RxJS/commit/21dd3bd)) - -### BREAKING CHANGES - -- **NodeJS** Dropping support for non-LTS versions of Node. - - - -# [6.0.0-tactical-rc.1](https://github.com/ReactiveX/RxJS/compare/6.0.0-rc.0...6.0.0-tactical-rc.1) (2018-04-07) - -Why "tactical"? Because I _TOTALLY MEANT_ to ruin the release names by publishing an amazingly funny April Fool's joke about smooshMap. So this was "tactical". Super tactical. So very tactical. - -### Bug Fixes - -- **closure-compiler:** adds nocollapse to static members ([#3519](https://github.com/ReactiveX/RxJS/issues/3519)) ([8758a5d](https://github.com/ReactiveX/RxJS/commit/8758a5d)) -- **closure-compiler:** remove internal flag from \_isScalar ([#3520](https://github.com/ReactiveX/RxJS/issues/3520)) ([b3a657d](https://github.com/ReactiveX/RxJS/commit/b3a657d)) -- **closure-compiler:** remove top level throws ([#3518](https://github.com/ReactiveX/RxJS/issues/3518)) ([b069473](https://github.com/ReactiveX/RxJS/commit/b069473)) -- **closure-compiler:** removes bad \[@params](https://github.com/params) comments that caused issues ([#3521](https://github.com/ReactiveX/RxJS/issues/3521)) ([09c874c](https://github.com/ReactiveX/RxJS/commit/09c874c)) -- **compat:** deprecate Observable.if/throw ([#3527](https://github.com/ReactiveX/RxJS/issues/3527)) ([3116275](https://github.com/ReactiveX/RxJS/commit/3116275)) -- **compat:** export TeardownLogic ([#3532](https://github.com/ReactiveX/RxJS/issues/3532)) ([0c76e64](https://github.com/ReactiveX/RxJS/commit/0c76e64)), closes [#3531](https://github.com/ReactiveX/RxJS/issues/3531) -- **compat:** remove observable/scalar deep import as it wasn't previously available ([4566001](https://github.com/ReactiveX/RxJS/commit/4566001)) -- **Scheduler:** export but deprecate ([#3522](https://github.com/ReactiveX/RxJS/issues/3522)) ([a3e1fb8](https://github.com/ReactiveX/RxJS/commit/a3e1fb8)) -- **skipUntil:** properly manages notifier subscription ([889f84a](https://github.com/ReactiveX/RxJS/commit/889f84a)), closes [#1886](https://github.com/ReactiveX/RxJS/issues/1886) -- fix type mismatch in NodeStyleEventEmitter ([#3530](https://github.com/ReactiveX/RxJS/issues/3530)) ([3f51ddd](https://github.com/ReactiveX/RxJS/commit/3f51ddd)) -- **sourcemaps:** fix mappings for source maps so they will work ([#3523](https://github.com/ReactiveX/RxJS/issues/3523)) ([32e7f75](https://github.com/ReactiveX/RxJS/commit/32e7f75)), closes [#3479](https://github.com/ReactiveX/RxJS/issues/3479) - -### Features - -- **compat:** add Observable extension classes with static create() ([ecd7f68](https://github.com/ReactiveX/RxJS/commit/ecd7f68)) -- **compat:** add rxjs/interfaces exports ([ba5c266](https://github.com/ReactiveX/RxJS/commit/ba5c266)) - - - -# [6.0.0-rc.0](https://github.com/ReactiveX/RxJS/compare/6.0.0-beta.4...6.0.0-rc.0) (2018-03-31) - -### Bug Fixes - -- **ajax:** properly encode body with form data that includes URLs ([#3502](https://github.com/ReactiveX/RxJS/issues/3502)) ([4455d21](https://github.com/ReactiveX/RxJS/commit/4455d21)), closes [#2399](https://github.com/ReactiveX/RxJS/issues/2399) -- **bindNodeCallback:** better type inference ([932bb7a](https://github.com/ReactiveX/RxJS/commit/932bb7a)) -- **elementAt:** now allows falsy defaultValues ([13706e7](https://github.com/ReactiveX/RxJS/commit/13706e7)) -- **lint_perf:** fix lint issues with newer perf tests ([1013754](https://github.com/ReactiveX/RxJS/commit/1013754)) -- **throttle:** now properly trailing throttles for individual values ([#3505](https://github.com/ReactiveX/RxJS/issues/3505)) ([3db18d1](https://github.com/ReactiveX/RxJS/commit/3db18d1)), closes [#2864](https://github.com/ReactiveX/RxJS/issues/2864) - -### Features - -- **takeUntil:** no longer subscribes to source if notifier synchronously emits ([#3504](https://github.com/ReactiveX/RxJS/issues/3504)) ([7b8a3e3](https://github.com/ReactiveX/RxJS/commit/7b8a3e3)), closes [#2189](https://github.com/ReactiveX/RxJS/issues/2189) - -### Performance Improvements - -- **pluck,bufferTime,asObservable:** add performance tests for pluck(), bufferTime() and asObservable() operators ([#2491](https://github.com/ReactiveX/RxJS/issues/2491)) ([24506b3](https://github.com/ReactiveX/RxJS/commit/24506b3)) -- **ReplaySubject:** slightly improved performance ([#2677](https://github.com/ReactiveX/RxJS/issues/2677)) ([9fea36d](https://github.com/ReactiveX/RxJS/commit/9fea36d)) - -### BREAKING CHANGES - -- **throttle:** This changes the behavior of throttle, in particular - throttling with both leading and trailing behaviors set to true, to more - closely match the throttling behavior of lodash and other libraries. - Throttling now starts immediately after any emission from the - observable, and values will not be double emitted for both leading and - trailing values - - - -# [6.0.0-beta.4](https://github.com/ReactiveX/RxJS/compare/6.0.0-beta.3...v6.0.0-beta.4) (2018-03-29) - -### Bug Fixes - -- **bindCallback:** add better type overloads ([#3480](https://github.com/ReactiveX/RxJS/issues/3480)) ([037cf34](https://github.com/ReactiveX/RxJS/commit/037cf34)) -- **compat:** add IScheduler to compat/Scheduler ([0a67df6](https://github.com/ReactiveX/RxJS/commit/0a67df6)) - -### Features - -- **compat:** add all utilities to internal-compatibility ([a9ecfe7](https://github.com/ReactiveX/RxJS/commit/a9ecfe7)) -- **websocket:** Add serializer/deserializer config settings ([#3489](https://github.com/ReactiveX/RxJS/issues/3489)) ([8d44124](https://github.com/ReactiveX/RxJS/commit/8d44124)) - -### BREAKING CHANGES - -- **websocket:** WebSocketSubject will now JSON serialize all messages sent over it by default, to return to the old behavior, pass a config setting of `serializer: x => x` like so: `websocket({ url, serializer: x => x })` - - - -# [6.0.0-beta.3](https://github.com/ReactiveX/RxJS/compare/6.0.0-beta.1...6.0.0-beta.3) (2018-03-27) - -### Bug Fixes - -- **build:** update build-optimizer and point to correct sources ([6717a01](https://github.com/ReactiveX/RxJS/commit/6717a01)) -- **node:** Subscriber no longer trampled if from another copy of rxjs ([371b658](https://github.com/ReactiveX/RxJS/commit/371b658)) -- **Observable:** empty ctor returns valid Observable ([#3464](https://github.com/ReactiveX/RxJS/issues/3464)) ([58b8ebc](https://github.com/ReactiveX/RxJS/commit/58b8ebc)) -- **subscribeOn:** add subscribeOn back to the distribution ([d6556f2](https://github.com/ReactiveX/RxJS/commit/d6556f2)) - - - -# [6.0.0-beta.2](https://github.com/ReactiveX/RxJS/compare/6.0.0-beta.1...6.0.0-beta.2) (2018-03-24) - -### Bug Fixes - -- **build:** update build-optimizer and point to correct sources ([6717a01](https://github.com/ReactiveX/RxJS/commit/6717a01)) -- **Observable:** empty ctor returns valid Observable ([#3464](https://github.com/ReactiveX/RxJS/issues/3464)) ([58b8ebc](https://github.com/ReactiveX/RxJS/commit/58b8ebc)) -- **subscribeOn:** add subscribeOn back to the distribution ([d6556f2](https://github.com/ReactiveX/RxJS/commit/d6556f2)) - - - -# [6.0.0-beta.1](https://github.com/ReactiveX/RxJS/compare/6.0.0-beta.0...v6.0.0-beta.1) (2018-03-21) - -### Bug Fixes - -- remove duplicate Subscribable interface declaration ([#3450](https://github.com/ReactiveX/RxJS/issues/3450)) ([ac78d89](https://github.com/ReactiveX/RxJS/commit/ac78d89)) -- **compat:** add package.json for internal-compatibility package ([#3455](https://github.com/ReactiveX/RxJS/issues/3455)) ([3b306ed](https://github.com/ReactiveX/RxJS/commit/3b306ed)) -- **config.useDeprecatedSynchronousErrorThrowing:** reentrant error throwing no longer trapped ([#3449](https://github.com/ReactiveX/RxJS/issues/3449)) ([0892a2d](https://github.com/ReactiveX/RxJS/commit/0892a2d)), closes [#3161](https://github.com/ReactiveX/RxJS/issues/3161) - -### Features - -- **compat:** add interfaces export ([d8f8122](https://github.com/ReactiveX/RxJS/commit/d8f8122)) -- **compat:** add rxjs/observable/dom/\* APIs to compatibility package ([d9a618f](https://github.com/ReactiveX/RxJS/commit/d9a618f)) - - - -# [6.0.0-beta.0](https://github.com/ReactiveX/RxJS/compare/6.0.0-alpha.3...6.0.0-beta.0) (2018-03-16) - -### Bug Fixes - -- **AjaxObservable:** 1xx,2xx,3xx requests shouldn't error, only 4xx,5xx ([#3438](https://github.com/ReactiveX/RxJS/issues/3438)) ([2128932](https://github.com/ReactiveX/RxJS/commit/2128932)) -- **compat:** adjustments to get rxjs-compat to build correctly ([dea6964](https://github.com/ReactiveX/RxJS/commit/dea6964)) -- **config:** expose configuration via rxjs exports ([#3441](https://github.com/ReactiveX/RxJS/issues/3441)) ([4287424](https://github.com/ReactiveX/RxJS/commit/4287424)) -- **config:** make sure that Promise config is undefined initially ([#3440](https://github.com/ReactiveX/RxJS/issues/3440)) ([469afe8](https://github.com/ReactiveX/RxJS/commit/469afe8)) -- **ESM:** Add [operators|ajax|websocket|testing]/package.json for ESM support, fixes [#3227](https://github.com/ReactiveX/RxJS/issues/3227) ([#3356](https://github.com/ReactiveX/RxJS/issues/3356)) ([725dcb4](https://github.com/ReactiveX/RxJS/commit/725dcb4)) -- **forkJoin:** fix forkJoin typings for forkJoin(Observable[]) ([#3436](https://github.com/ReactiveX/RxJS/issues/3436)) ([17c7f8f](https://github.com/ReactiveX/RxJS/commit/17c7f8f)) -- **fromEvent:** Defines toString to fix Closure compilations ([#3417](https://github.com/ReactiveX/RxJS/issues/3417)) ([1558b43](https://github.com/ReactiveX/RxJS/commit/1558b43)) -- **fromEvent:** pass options in unsubscribe ([f1872b0](https://github.com/ReactiveX/RxJS/commit/f1872b0)), closes [#3349](https://github.com/ReactiveX/RxJS/issues/3349) -- **publishReplay:** type inference improved ([#3437](https://github.com/ReactiveX/RxJS/issues/3437)) ([dd7c9f1](https://github.com/ReactiveX/RxJS/commit/dd7c9f1)), closes [#3260](https://github.com/ReactiveX/RxJS/issues/3260) -- **rxjs:** add exports for symbols/interfaces that were missing ([#3380](https://github.com/ReactiveX/RxJS/issues/3380)) ([1622ee0](https://github.com/ReactiveX/RxJS/commit/1622ee0)) -- **rxjs:** make sure esm imports from index.js by default, not Rx.js ([#3316](https://github.com/ReactiveX/RxJS/issues/3316)) ([c2b00f4](https://github.com/ReactiveX/RxJS/commit/c2b00f4)), closes [#3315](https://github.com/ReactiveX/RxJS/issues/3315) -- **rxjs:** once again exports custom error types ([#3371](https://github.com/ReactiveX/RxJS/issues/3371)) ([4465a9f](https://github.com/ReactiveX/RxJS/commit/4465a9f)) -- **rxjs:** remove types.ts importing from itself. ([#3383](https://github.com/ReactiveX/RxJS/issues/3383)) ([8fd50ad](https://github.com/ReactiveX/RxJS/commit/8fd50ad)) -- **spec:** get tests running using compatibility package ([916e968](https://github.com/ReactiveX/RxJS/commit/916e968)) -- correct internal module paths to be systemjs compatible ([#3412](https://github.com/ReactiveX/RxJS/issues/3412)) ([35abc9d](https://github.com/ReactiveX/RxJS/commit/35abc9d)) -- **Symbol.iterator:** correctly handle case where Symbol constructor itself is not defined ([#3394](https://github.com/ReactiveX/RxJS/issues/3394)) ([6725be1](https://github.com/ReactiveX/RxJS/commit/6725be1)) -- **typings:** fixed some cases where multicast and publish would not return a ConnectableObservable ([#3320](https://github.com/ReactiveX/RxJS/issues/3320)) ([ddffecc](https://github.com/ReactiveX/RxJS/commit/ddffecc)) -- reexport Symbol.observable typings patch ([4c4d7b0](https://github.com/ReactiveX/RxJS/commit/4c4d7b0)) -- remove the root operators.ts because it overshadows operators/package.json ([184b6d4](https://github.com/ReactiveX/RxJS/commit/184b6d4)) - -### Code Refactoring - -- **Observable.if:** remove ts hacks from Observable ([f46f261](https://github.com/ReactiveX/RxJS/commit/f46f261)) -- **Rx.ts:** move Rx.ts to internal ([#3400](https://github.com/ReactiveX/RxJS/issues/3400)) ([7ad2119](https://github.com/ReactiveX/RxJS/commit/7ad2119)) - -### Features - -- **ajax:** default to opting into CORS ([#3442](https://github.com/ReactiveX/RxJS/issues/3442)) ([aa3bf57](https://github.com/ReactiveX/RxJS/commit/aa3bf57)), closes [#3273](https://github.com/ReactiveX/RxJS/issues/3273) -- **bindCallback:** remove result selector ([2535641](https://github.com/ReactiveX/RxJS/commit/2535641)) -- **bindNodeCallback:** remove resultSelector ([26e6e5c](https://github.com/ReactiveX/RxJS/commit/26e6e5c)) -- **compat:** add compatability package definition ([40aca82](https://github.com/ReactiveX/RxJS/commit/40aca82)) -- **compat:** add concat operator to compatibility layer ([6e84e78](https://github.com/ReactiveX/RxJS/commit/6e84e78)) -- **compat:** add legacy reexport compat layer for 'rxjs/Observable' and other top-level symbols ([70e562b](https://github.com/ReactiveX/RxJS/commit/70e562b)) -- **compat:** add Rx.ts to rxjs-compat ([df25de1](https://github.com/ReactiveX/RxJS/commit/df25de1)) -- **compat:** compatibility mode for combineLatest ([fd86df5](https://github.com/ReactiveX/RxJS/commit/fd86df5)) -- **compat:** compatibility mode for merge operator ([ffce980](https://github.com/ReactiveX/RxJS/commit/ffce980)) -- **compat:** compatibility mode for zip operator ([9f131d0](https://github.com/ReactiveX/RxJS/commit/9f131d0)) -- **compat:** make Rx.ts for compatability layer work as the default for rxjs-compat ([d43a4c2](https://github.com/ReactiveX/RxJS/commit/d43a4c2)) -- **compat:** set up correct imports & get build working for rxjs-comapt ([1a0dc97](https://github.com/ReactiveX/RxJS/commit/1a0dc97)) -- **deprecated-error-handling-warning:** add console warning when code sets the flag to bad mode ([49be56a](https://github.com/ReactiveX/RxJS/commit/49be56a)) -- **error-handling:** add deprecated sync error handling behind a flag ([583cd1d](https://github.com/ReactiveX/RxJS/commit/583cd1d)) -- **exhaustMap:** simplify interface ([42589d0](https://github.com/ReactiveX/RxJS/commit/42589d0)) -- **first:** simplify interface ([a011338](https://github.com/ReactiveX/RxJS/commit/a011338)) -- **forkJoin:** simplify interface ([4d2338b](https://github.com/ReactiveX/RxJS/commit/4d2338b)) -- **fromEvent:** remove resultSelector ([197f449](https://github.com/ReactiveX/RxJS/commit/197f449)) -- **fromEvent:** will now emit an array when event emits multiple arguments ([51b37fd](https://github.com/ReactiveX/RxJS/commit/51b37fd)) -- **fromEventPattern:** removed resultSelector ([6b34f9f](https://github.com/ReactiveX/RxJS/commit/6b34f9f)) -- **last:** simplify interface ([3240419](https://github.com/ReactiveX/RxJS/commit/3240419)) -- **mergeMap|concatMap|concatMapTo:** simplified the signatures ([d293245](https://github.com/ReactiveX/RxJS/commit/d293245)) -- **mergeMapTo:** simplify interface ([582c7be](https://github.com/ReactiveX/RxJS/commit/582c7be)) -- **never:** no longer export `never` function ([#3386](https://github.com/ReactiveX/RxJS/issues/3386)) ([53debc8](https://github.com/ReactiveX/RxJS/commit/53debc8)) -- **switchMap|switchMapTo:** simplify interface ([959fb6a](https://github.com/ReactiveX/RxJS/commit/959fb6a)) -- **Symbol.iterator:** no longer polyfilled ([#3389](https://github.com/ReactiveX/RxJS/issues/3389)) ([6319f3c](https://github.com/ReactiveX/RxJS/commit/6319f3c)) -- **Symbol.observable:** is no longer polyfilled ([#3387](https://github.com/ReactiveX/RxJS/issues/3387)) ([4a5aaaf](https://github.com/ReactiveX/RxJS/commit/4a5aaaf)) -- **throwIfEmpty:** adds throwIfEmpty operator ([#3368](https://github.com/ReactiveX/RxJS/issues/3368)) ([9b21458](https://github.com/ReactiveX/RxJS/commit/9b21458)) -- **typings:** updated typings for combineAll, mergeAll, concatAll, switch, exhaust, zipAll ([#3321](https://github.com/ReactiveX/RxJS/issues/3321)) ([f7e4c02](https://github.com/ReactiveX/RxJS/commit/f7e4c02)) -- **umd:** UMD now mirrors export schema for ESM and CJS ([#3426](https://github.com/ReactiveX/RxJS/issues/3426)) ([556c904](https://github.com/ReactiveX/RxJS/commit/556c904)) - -### BREAKING CHANGES - -- **ajax:** will no longer execute a CORS request by default, you must opt-in with the `crossDomain` flag in the config. -- **mergeMap|concatMap|concatMapTo:** mergeMap, concatMap and concatMapTo no longer support a result selector, if you need to use a result selector, use the following pattern: `source.mergeMap(x => of(x + x).pipe(map(y => y + x))` (the pattern would be the same for `concatMap`). -- **never:** no longer exported. Use the `NEVER` constant instead. -- **bindCallback:** removes result selector, use `map` instead: `bindCallback(fn1, fn2)()` becomes `bindCallback(fn1)().pipe(map(fn2))` -- **Rx.ts:** importing from `rxjs/Rx` is no longer available. Upcoming backwards compat solution will allow that -- **Symbol.iterator:** We are no longer polyfilling `Symbol.iterator`. That would be done by a proper polyfilling library -- **Observable.if:** TypeScript users using `Observable.if` will have to cast `Observable` as any to get to `if`. It is a better idea to just use `iif` directly via `import { iif } from 'rxjs';` -- **bindNodeCallback:** resultSelector removed, use `map` instead: `bindNodeCallback(fn1, fn2)()` becomes `bindNodeCallback(fn1)().pipe(map(fn2))` -- **Symbol.observable:** RxJS will no longer be polyfilling Symbol.observable. That should be done by an actual polyfill library. This is to prevent duplication of code, and also to prevent having modules with side-effects in rxjs. -- **fromEvent:** result selector removed, use `map` instead: `fromEvent(target, 'click', fn)` becomes `fromEvent(target, 'click').pipe(map(fn))` -- **last:** no longer accepts `resultSelector` argument. To get this same functionality, use `map`. -- **first:** no longer supports `resultSelector` argument. The same functionality can be achieved by simply mapping either before or after `first` depending on your use case. -- **exhaustMap:** `resultSelector` no longer supported, to get this functionality use: `source.pipe(exhaustMap(x => of(x + x).pipe(map(y => x + y))))` -- **switchMap|switchMapTo:** `switchMap` and `switchMapTo` no longer take `resultSelector` arguments, to get the same functionality use `switchMap` and `map` in combination: `source.pipe(switchMap(x => of(x + x).pipe(y => x + y)))`. -- **mergeMapTo:** `mergeMapTo` no longer accepts a resultSelector, to get this functionality, you'll want to use `mergeMap` and `map` together: `source.pipe(mergeMap(() => inner).pipe(map(y => x + y)))` -- **fromEventPattern:** no longer supports a result selector, use `map` instead: `fromEventPattern(fn1, fn2, fn3)` becomes `fromEventPattern(fn1, fn2).pipe(map(fn3))` - - - -# [6.0.0-alpha.4](https://github.com/ReactiveX/RxJS/compare/6.0.0-alpha.3...v6.0.0-alpha.4) (2018-03-13) - -### Bug Fixes - -- **ESM:** Add [operators|ajax|websocket|testing]/package.json for ESM support, fixes [#3227](https://github.com/ReactiveX/RxJS/issues/3227) ([#3356](https://github.com/ReactiveX/RxJS/issues/3356)) ([725dcb4](https://github.com/ReactiveX/RxJS/commit/725dcb4)) -- **fromEvent:** Defines toString to fix Closure compilations ([#3417](https://github.com/ReactiveX/RxJS/issues/3417)) ([1558b43](https://github.com/ReactiveX/RxJS/commit/1558b43)) -- **fromEvent:** pass options in unsubscribe ([f1872b0](https://github.com/ReactiveX/RxJS/commit/f1872b0)), closes [#3349](https://github.com/ReactiveX/RxJS/issues/3349) -- **rxjs:** add exports for symbols/interfaces that were missing ([#3380](https://github.com/ReactiveX/RxJS/issues/3380)) ([1622ee0](https://github.com/ReactiveX/RxJS/commit/1622ee0)) -- **rxjs:** make sure esm imports from index.js by default, not Rx.js ([#3316](https://github.com/ReactiveX/RxJS/issues/3316)) ([c2b00f4](https://github.com/ReactiveX/RxJS/commit/c2b00f4)), closes [#3315](https://github.com/ReactiveX/RxJS/issues/3315) -- **rxjs:** once again exports custom error types ([#3371](https://github.com/ReactiveX/RxJS/issues/3371)) ([4465a9f](https://github.com/ReactiveX/RxJS/commit/4465a9f)) -- **rxjs:** remove types.ts importing from itself. ([#3383](https://github.com/ReactiveX/RxJS/issues/3383)) ([8fd50ad](https://github.com/ReactiveX/RxJS/commit/8fd50ad)) -- correct internal module paths to be systemjs compatible ([#3412](https://github.com/ReactiveX/RxJS/issues/3412)) ([35abc9d](https://github.com/ReactiveX/RxJS/commit/35abc9d)) -- **Symbol.iterator:** correctly handle case where Symbol constructor itself is not defined ([#3394](https://github.com/ReactiveX/RxJS/issues/3394)) ([6725be1](https://github.com/ReactiveX/RxJS/commit/6725be1)) -- **typings:** fixed some cases where multicast and publish would not return a ConnectableObservable ([#3320](https://github.com/ReactiveX/RxJS/issues/3320)) ([ddffecc](https://github.com/ReactiveX/RxJS/commit/ddffecc)) -- reexport Symbol.observable typings patch ([4c4d7b0](https://github.com/ReactiveX/RxJS/commit/4c4d7b0)) -- remove the root operators.ts because it overshadows operators/package.json ([184b6d4](https://github.com/ReactiveX/RxJS/commit/184b6d4)) - -### Code Refactoring - -- **Observable.if:** remove ts hacks from Observable ([f46f261](https://github.com/ReactiveX/RxJS/commit/f46f261)) -- **Rx.ts:** move Rx.ts to internal ([#3400](https://github.com/ReactiveX/RxJS/issues/3400)) ([7ad2119](https://github.com/ReactiveX/RxJS/commit/7ad2119)) - -### Features - -- **bindCallback:** remove result selector ([2535641](https://github.com/ReactiveX/RxJS/commit/2535641)) -- **bindNodeCallback:** remove resultSelector ([26e6e5c](https://github.com/ReactiveX/RxJS/commit/26e6e5c)) -- **exhaustMap:** simplify interface ([42589d0](https://github.com/ReactiveX/RxJS/commit/42589d0)) -- **first:** simplify interface ([a011338](https://github.com/ReactiveX/RxJS/commit/a011338)) -- **forkJoin:** simplify interface ([4d2338b](https://github.com/ReactiveX/RxJS/commit/4d2338b)) -- **fromEvent:** remove resultSelector ([197f449](https://github.com/ReactiveX/RxJS/commit/197f449)) -- **fromEvent:** will now emit an array when event emits multiple arguments ([51b37fd](https://github.com/ReactiveX/RxJS/commit/51b37fd)) -- **fromEventPattern:** removed resultSelector ([6b34f9f](https://github.com/ReactiveX/RxJS/commit/6b34f9f)) -- **last:** simplify interface ([3240419](https://github.com/ReactiveX/RxJS/commit/3240419)) -- **mergeMap|concatMap|concatMapTo:** simplified the signatures ([d293245](https://github.com/ReactiveX/RxJS/commit/d293245)) -- **mergeMapTo:** simplify interface ([582c7be](https://github.com/ReactiveX/RxJS/commit/582c7be)) -- **never:** no longer export `never` function ([#3386](https://github.com/ReactiveX/RxJS/issues/3386)) ([53debc8](https://github.com/ReactiveX/RxJS/commit/53debc8)) -- **switchMap|switchMapTo:** simplify interface ([959fb6a](https://github.com/ReactiveX/RxJS/commit/959fb6a)) -- **Symbol.iterator:** no longer polyfilled ([#3389](https://github.com/ReactiveX/RxJS/issues/3389)) ([6319f3c](https://github.com/ReactiveX/RxJS/commit/6319f3c)) -- **Symbol.observable:** is no longer polyfilled ([#3387](https://github.com/ReactiveX/RxJS/issues/3387)) ([4a5aaaf](https://github.com/ReactiveX/RxJS/commit/4a5aaaf)) -- **throwIfEmpty:** adds throwIfEmpty operator ([#3368](https://github.com/ReactiveX/RxJS/issues/3368)) ([9b21458](https://github.com/ReactiveX/RxJS/commit/9b21458)) -- **typings:** updated typings for combineAll, mergeAll, concatAll, switch, exhaust, zipAll ([#3321](https://github.com/ReactiveX/RxJS/issues/3321)) ([f7e4c02](https://github.com/ReactiveX/RxJS/commit/f7e4c02)) -- **umd:** UMD now mirrors export schema for ESM and CJS ([#3426](https://github.com/ReactiveX/RxJS/issues/3426)) ([556c904](https://github.com/ReactiveX/RxJS/commit/556c904)) - -### BREAKING CHANGES - -- **Symbol.observable:** RxJS will no longer be polyfilling Symbol.observable. That should be done by an actual polyfill library. This is to prevent duplication of code, and also to prevent having modules with side-effects in rxjs. -- **mergeMap|concatMap|concatMapTo:** mergeMap, concatMap and concatMapTo no longer support a result selector, if you need to use a result selector, use the following pattern: `source.mergeMap(x => of(x + x).pipe(map(y => y + x))` (the pattern would be the same for `concatMap`). -- **bindCallback:** removes result selector, use `map` instead: `bindCallback(fn1, fn2)()` becomes `bindCallback(fn1)().pipe(map(fn2))` -- **Rx.ts:** importing from `rxjs/Rx` is no longer available. Upcoming backwards compat solution will allow that -- **Symbol.iterator:** We are no longer polyfilling `Symbol.iterator`. That would be done by a proper polyfilling library -- **Observable.if:** TypeScript users using `Observable.if` will have to cast `Observable` as any to get to `if`. It is a better idea to just use `iif` directly via `import { iif } from 'rxjs';` -- **bindNodeCallback:** resultSelector removed, use `map` instead: `bindNodeCallback(fn1, fn2)()` becomes `bindNodeCallback(fn1)().pipe(map(fn2))` -- **never:** no longer exported. Use the `NEVER` constant instead. -- **fromEvent:** result selector removed, use `map` instead: `fromEvent(target, 'click', fn)` becomes `fromEvent(target, 'click').pipe(map(fn))` -- **last:** no longer accepts `resultSelector` argument. To get this same functionality, use `map`. -- **first:** no longer supports `resultSelector` argument. The same functionality can be achieved by simply mapping either before or after `first` depending on your use case. -- **exhaustMap:** `resultSelector` no longer supported, to get this functionality use: `source.pipe(exhaustMap(x => of(x + x).pipe(map(y => x + y))))` -- **switchMap|switchMapTo:** `switchMap` and `switchMapTo` no longer take `resultSelector` arguments, to get the same functionality use `switchMap` and `map` in combination: `source.pipe(switchMap(x => of(x + x).pipe(y => x + y)))`. -- **mergeMapTo:** `mergeMapTo` no longer accepts a resultSelector, to get this functionality, you'll want to use `mergeMap` and `map` together: `source.pipe(mergeMap(() => inner).pipe(map(y => x + y)))` -- **fromEventPattern:** no longer supports a result selector, use `map` instead: `fromEventPattern(fn1, fn2, fn3)` becomes `fromEventPattern(fn1, fn2).pipe(map(fn3))` - - - -# [6.0.0-alpha.3](https://github.com/ReactiveX/RxJS/compare/6.0.0-alpha.2...v6.0.0-alpha.3) (2018-02-06) - -### Bug Fixes - -- **animationFrame.spec:** spec description fix ([#3140](https://github.com/ReactiveX/RxJS/issues/3140)) ([ab6c325](https://github.com/ReactiveX/RxJS/commit/ab6c325)) -- **debounce:** support scalar selectors ([#3236](https://github.com/ReactiveX/RxJS/issues/3236)) ([1548393](https://github.com/ReactiveX/RxJS/commit/1548393)), closes [#3232](https://github.com/ReactiveX/RxJS/issues/3232) -- **forkJoin:** catch and forward selector errors ([#3261](https://github.com/ReactiveX/RxJS/issues/3261)) ([e57bbb7](https://github.com/ReactiveX/RxJS/commit/e57bbb7)), closes [#3216](https://github.com/ReactiveX/RxJS/issues/3216) -- **Observable:** expose pipe rest parameter overload ([#3292](https://github.com/ReactiveX/RxJS/issues/3292)) ([7ff5bc3](https://github.com/ReactiveX/RxJS/commit/7ff5bc3)) -- **onErrorResumeNext:** no longer holds onto subscriptions too long ([abbbdad](https://github.com/ReactiveX/RxJS/commit/abbbdad)), closes [#3178](https://github.com/ReactiveX/RxJS/issues/3178) -- **scheduler:** prevent unwanted clearInterval ([#3226](https://github.com/ReactiveX/RxJS/issues/3226)) ([d7cfb42](https://github.com/ReactiveX/RxJS/commit/d7cfb42)), closes [#3042](https://github.com/ReactiveX/RxJS/issues/3042) -- **timer:** multiple subscriptions to timer(Date) behaves correctly ([aafa7ff](https://github.com/ReactiveX/RxJS/commit/aafa7ff)), closes [#3252](https://github.com/ReactiveX/RxJS/issues/3252) -- **typings:** correct compilation warnings from missing types in tests ([3aad6bc](https://github.com/ReactiveX/RxJS/commit/3aad6bc)) -- **typings:** relax debounce selector type ([c419ab4](https://github.com/ReactiveX/RxJS/commit/c419ab4)), closes [#3164](https://github.com/ReactiveX/RxJS/issues/3164) -- **typings:** relax throttle selector type ([#3205](https://github.com/ReactiveX/RxJS/issues/3205)) ([e83fda7](https://github.com/ReactiveX/RxJS/commit/e83fda7)), closes [#3204](https://github.com/ReactiveX/RxJS/issues/3204) -- **typings:** the return type of factory of defer should be ObservableInput ([#3211](https://github.com/ReactiveX/RxJS/issues/3211)) ([dc41a5e](https://github.com/ReactiveX/RxJS/commit/dc41a5e)) - -### Features - -- **empty:** empty() returns the same instance ([5c7c749](https://github.com/ReactiveX/RxJS/commit/5c7c749)) -- **EMPTY:** observable constant EMPTY now exported ([08fb074](https://github.com/ReactiveX/RxJS/commit/08fb074)) -- **never:** always return the same instance ([#3249](https://github.com/ReactiveX/RxJS/issues/3249)) ([d57fa52](https://github.com/ReactiveX/RxJS/commit/d57fa52)) -- **rxjs:** move rxjs/create into rxjs ([#3299](https://github.com/ReactiveX/RxJS/issues/3299)) ([6711fe2](https://github.com/ReactiveX/RxJS/commit/6711fe2)) -- **throwError:** functional version of throwError ([639236e](https://github.com/ReactiveX/RxJS/commit/639236e)) - -### BREAKING CHANGES - -- **rxjs:** `rxjs/create` items are now exported from `rxjs` -- **throwError:** Observable.throw no longer available in TypeScript without a cast -- **empty:** `empty()` without a scheduler will return the same - instance every time. -- **empty:** In TypeScript, `empty()` no longer accepts a generic - argument, as it returns `Observable` -- **never:** `never()` always returns the same instance -- **never:** TypeScript typing for `never()` is now `Observable` and the function no longer requires a generic type. - - - -# [6.0.0-alpha.2](https://github.com/ReactiveX/RxJS/compare/6.0.0-alpha.1...6.0.0-alpha.2) (2018-01-14) - -### Bug Fixes - -- **build:** properly outputs subdirectories like `rxjs/operators` ([34fe560](https://github.com/ReactiveX/RxJS/commit/34fe560)) - - - -# [6.0.0-alpha.1](https://github.com/ReactiveX/RxJS/compare/5.5.3...v6.0.0-alpha.1) (2018-01-12) - -### Bug Fixes - -- Revert "fix(scheduler): prevent unwanted clearInterval ([#3044](https://github.com/ReactiveX/RxJS/issues/3044))" ([ad5c7c6](https://github.com/ReactiveX/RxJS/commit/ad5c7c6)) -- Revert "fix(scheduler): prevent unwanted clearInterval ([#3044](https://github.com/ReactiveX/RxJS/issues/3044))" ([64f9285](https://github.com/ReactiveX/RxJS/commit/64f9285)) -- **debounceTime:** synchronous reentrancy of debounceTime no longer swallows the second value ([#3218](https://github.com/ReactiveX/RxJS/issues/3218)) ([598e9ce](https://github.com/ReactiveX/RxJS/commit/598e9ce)), closes [#2748](https://github.com/ReactiveX/RxJS/issues/2748) -- **dependency:** move symbol-observable into devdependency ([4400628](https://github.com/ReactiveX/RxJS/commit/4400628)) -- **IteratorObservable:** get new iterator for each subscription ([#2497](https://github.com/ReactiveX/RxJS/issues/2497)) ([1bd0a58](https://github.com/ReactiveX/RxJS/commit/1bd0a58)), closes [#2496](https://github.com/ReactiveX/RxJS/issues/2496) -- **Observable.toArray:** Fix toArray with multiple subscriptions. ([#3134](https://github.com/ReactiveX/RxJS/issues/3134)) ([3390926](https://github.com/ReactiveX/RxJS/commit/3390926)) -- **SystemJS:** avoid node module resolution of pipeable operators ([#3025](https://github.com/ReactiveX/RxJS/issues/3025)) ([0f3cf71](https://github.com/ReactiveX/RxJS/commit/0f3cf71)), closes [#2971](https://github.com/ReactiveX/RxJS/issues/2971) [#2996](https://github.com/ReactiveX/RxJS/issues/2996) [#3011](https://github.com/ReactiveX/RxJS/issues/3011) -- **tap:** make next optional ([#3073](https://github.com/ReactiveX/RxJS/issues/3073)) ([e659f0c](https://github.com/ReactiveX/RxJS/commit/e659f0c)), closes [#2534](https://github.com/ReactiveX/RxJS/issues/2534) -- **TSC:** Fixing TSC errors. Fixes [#3020](https://github.com/ReactiveX/RxJS/issues/3020) ([01d1575](https://github.com/ReactiveX/RxJS/commit/01d1575)) -- **typings:** the return type of project of mergeScan should be ObservableInput ([23fe17d](https://github.com/ReactiveX/RxJS/commit/23fe17d)) - -### Chores - -- **TypeScript:** Bump up typescript to latest ([#3009](https://github.com/ReactiveX/RxJS/issues/3009)) ([2f395da](https://github.com/ReactiveX/RxJS/commit/2f395da)) - -### Code Refactoring - -- **asap:** Remove setImmediate polyfill ([5eb6af7](https://github.com/ReactiveX/RxJS/commit/5eb6af7)) -- **distinct:** Remove Set polyfill ([68ee499](https://github.com/ReactiveX/RxJS/commit/68ee499)) -- **groupBy:** Remove Map polyfill ([74b5b1a](https://github.com/ReactiveX/RxJS/commit/74b5b1a)) - -### Features - -- **Observable:** unhandled errors are now reported to HostReportErrors ([#3062](https://github.com/ReactiveX/RxJS/issues/3062)) ([cd9626a](https://github.com/ReactiveX/RxJS/commit/cd9626a)) -- **reorganize:** move ./interfaces.ts to internal/types.ts ([cfbfaac](https://github.com/ReactiveX/RxJS/commit/cfbfaac)) -- **reorganize:** internal utils hidden ([70058cd](https://github.com/ReactiveX/RxJS/commit/70058cd)) -- **reorganize:** add `rxjs/create` exports ([c9963bd](https://github.com/ReactiveX/RxJS/commit/c9963bd)) -- **reorganize:** ajax observable creator now exported from `rxjs/ajax` ([e971c93](https://github.com/ReactiveX/RxJS/commit/e971c93)) -- **reorganize:** all patch operators moved to `internal` directory ([7342401](https://github.com/ReactiveX/RxJS/commit/7342401)) -- **reorganize:** export `noop` and `identity` from `rxjs` ([810c4d0](https://github.com/ReactiveX/RxJS/commit/810c4d0)) -- **reorganize:** export `Notification` from `rxjs` ([8809b48](https://github.com/ReactiveX/RxJS/commit/8809b48)) -- **reorganize:** export schedulers from `rxjs` ([abd3b61](https://github.com/ReactiveX/RxJS/commit/abd3b61)) -- **reorganize:** export Subject, ReplaySubject, BehaviorSubject from rxjs ([bd683ca](https://github.com/ReactiveX/RxJS/commit/bd683ca)) -- **reorganize:** export the `pipe` utility function from `rxjs` ([4574310](https://github.com/ReactiveX/RxJS/commit/4574310)) -- **reorganize:** hid testing implementation details ([b981666](https://github.com/ReactiveX/RxJS/commit/b981666)) -- **reorganize:** move observable implementations under internal directory ([2d5c3f8](https://github.com/ReactiveX/RxJS/commit/2d5c3f8)) -- **reorganize:** move operator impls under internal directory ([207976f](https://github.com/ReactiveX/RxJS/commit/207976f)) -- **reorganize:** move top-level impls under internal directory ([c3bb705](https://github.com/ReactiveX/RxJS/commit/c3bb705)) -- **reorganize:** moved symbols to be internal ([80783ab](https://github.com/ReactiveX/RxJS/commit/80783ab)) -- **reorganize:** operators all exported from `rxjs/operators` ([b1f8bfe](https://github.com/ReactiveX/RxJS/commit/b1f8bfe)) -- **reorganize:** websocket subject creator now exported from `rxjs/websocket` ([5ac62c0](https://github.com/ReactiveX/RxJS/commit/5ac62c0)) - -### BREAKING CHANGES - -- **webSocket:** `webSocket` creator function now exported from `rxjs/websocket` as `websocket`. -- **IteratorObservable:** IteratorObservable no longer share iterator between - subscription -- **utils:** Many internal use utilities like `isArray` are now hidden under `rxjs/internal`, they are implementation details and should not be used. -- **testing observables:** `HotObservable` and `ColdObservable`, and other testing support types are no longer exported directly. -- **creation functions:** All create functions such as `of`, `from`, `combineLatest` and `fromEvent` should now be imported from `rxjs/create`. -- **types and interfaces:** Can no longer explicitly import types from `rxjs/interfaces`, import them from `rxjs` instead -- **symbols:** Symbols are no longer exported directly from modules such as `rxjs/symbol/observable` please use `Symbol.observable` and `Symbol.iterator` (polyfills may be required) -- **deep imports:** Can no longer deep import top-level types such as `rxjs/Observable`, `rxjs/Subject`, `rxjs/ReplaySubject`, et al. All imports should be done directly from `rxjs`, for example: `import \{ Observable, Subject \} from 'rxjs';` -- **schedulers:** Scheduler instances have changed names to be suffixed with `Scheduler`, (e.g. `asap` -> `asapScheduler`) -- **operators:** Pipeable operators must now be imported from `rxjs` - like so: `import { map, filter, switchMap } from 'rxjs/operators';`. No deep imports. -- **ajax:** Ajax observable should be imported from `rxjs/ajax`. -- **Observable:** You should no longer deep import custom Observable - implementations such as `ArrayObservable` or `ForkJoinObservable`. -- **\_throw:** `_throw` is now exported as `throwError` -- **if:** `if` is now exported as `iif` -- **operators:** Deep imports to `rxjs/operator/*` will no longer work. Again, pipe operators are still where they were. -- **error handling:** Unhandled errors are no longer caught and rethrown, rather they are caught and scheduled to be thrown, which causes them to be reported to window.onerror or process.on('error'), depending on the environment. Consequently, teardown after a synchronous, unhandled, error will no longer occur, as the teardown would not exist, and producer interference cannot occur -- **distinct:** Using `distinct` requires a `Set` implementation and must be polyfilled in older runtimes -- **asap:** Old runtimes must polyfill Promise in order to use ASAP scheduling. -- **groupBy:** Older runtimes will require Map to be polyfilled to use - `groupBy` -- **TypeScript:** IE10 and lower will need to polyfill `Object.setPrototypeOf` -- **operators removed:** Operator versions of static observable creators such as - `merge`, `concat`, `zip`, `onErrorResumeNext`, and `race` have been - removed. Please use the static versions of those operations. e.g. - `a.pipe(concat(b, c))` becomes `concat(a, b, c)`. - - - -## [5.5.6](https://github.com/ReactiveX/RxJS/compare/5.5.5...v5.5.6) (2017-12-21) - -### Bug Fixes - -- **Observable:** rethrow errors when syncErrorThrowable and inherit it from destination. Fixes [#2813](https://github.com/ReactiveX/RxJS/issues/2813) ([541b49d](https://github.com/ReactiveX/RxJS/commit/541b49d)) - - - -## [5.5.5](https://github.com/ReactiveX/RxJS/compare/5.5.4...v5.5.5) (2017-12-06) - -### Support Added - -- **Bazel:** Add files to support users that want Bazel builds with RxJS ([12dac3b](https://github.com/ReactiveX/rxjs/commit/12dac3b)) - - - -## [5.5.4](https://github.com/ReactiveX/RxJS/compare/5.5.3...v5.5.4) (2017-12-05) - -### Bug Fixes - -- **scheduler:** resolve regression on angular router with zones ([#3158](https://github.com/ReactiveX/RxJS/issues/3158)) ([520b06a](https://github.com/ReactiveX/RxJS/commit/520b06a)) -- **publish:** re-publish after having built with proper version of TypeScript. ([f0ff5bc](https://github.com/ReactiveX/RxJS/commit/f0ff5bc), closes[#3155](https://github.com/ReactiveX/rxjs/issues/3155)) - - - -## [5.5.3](https://github.com/ReactiveX/RxJS/compare/5.5.2...v5.5.3) (2017-12-01) - -### Bug Fixes - -- **concatStatic:** missing exports for mergeStatic and concatStatic ([#2999](https://github.com/ReactiveX/RxJS/issues/2999)) ([cae5f9b](https://github.com/ReactiveX/RxJS/commit/cae5f9b)) -- **scheduler:** prevent unwanted clearInterval ([#3044](https://github.com/ReactiveX/RxJS/issues/3044)) ([7d722d4](https://github.com/ReactiveX/RxJS/commit/7d722d4)), closes [#3042](https://github.com/ReactiveX/RxJS/issues/3042) -- **SystemJS:** avoid node module resolution of pipeable operators ([#3025](https://github.com/ReactiveX/RxJS/issues/3025)) ([d77e3d7](https://github.com/ReactiveX/RxJS/commit/d77e3d7)), closes [#2971](https://github.com/ReactiveX/RxJS/issues/2971) [#2996](https://github.com/ReactiveX/RxJS/issues/2996) [#3011](https://github.com/ReactiveX/RxJS/issues/3011) -- **typings:** fix subscribe overloads ([#3053](https://github.com/ReactiveX/RxJS/issues/3053)) ([1a9fd42](https://github.com/ReactiveX/RxJS/commit/1a9fd42)), closes [#3052](https://github.com/ReactiveX/RxJS/issues/3052) - - - -## [5.5.2](https://github.com/ReactiveX/RxJS/compare/5.5.1...v5.5.2) (2017-10-25) - -### Bug Fixes - -- **package:** fixed import failures in Webpack ([#2987](https://github.com/ReactiveX/RxJS/issues/2987)) ([e16202d](https://github.com/ReactiveX/RxJS/commit/e16202d)) -- **typings:** improved type inference for arguments to publishReplay ([#2992](https://github.com/ReactiveX/RxJS/issues/2992)) ([0753ff7](https://github.com/ReactiveX/RxJS/commit/0753ff7)), closes [#2991](https://github.com/ReactiveX/RxJS/issues/2991) -- **typings:** ensure TS types for `zip` and `combineLatest` are properly inferred. ([b8e6cf8](https://github.com/ReactiveX/RxJS/commit/b8e6cf8)) -- **typings:** publish variants will properly return ConnectableObservable([#2983](https://github.com/ReactiveX/RxJS/issues/2983)) ([d563bfa](https://github.com/ReactiveX/RxJS/commit/d563bfa)) - - - -## [5.5.1](https://github.com/ReactiveX/RxJS/compare/5.5.0...v5.5.1) (2017-10-24) - -### Bug Fixes - -- **build:** Remove `module` and `es2015` keys to avoid resolution conflicts ([5073139](https:/github.com/ReactiveX/RxJS/commit/5073139)) -- **ajaxobservable:** fix operator import path ([d9b62ed](https://github.com/ReactiveX/RxJS/commit/d9b62ed)) - - - -# [5.5.0](https://github.com/ReactiveX/RxJS/compare/5.5.0-beta.7...v5.5.0) (2017-10-18) - -### Bug Fixes - -- **build:** CJS sourceMaps now inlined into sourcesContent ([39b4af5](https://github.com/ReactiveX/RxJS/commit/39b4af5)), closes [#2934](https://github.com/ReactiveX/RxJS/issues/2934) - -### Features - -- **publishReplay:** add selector function to publishReplay ([#2885](https://github.com/ReactiveX/RxJS/issues/2885)) ([e0efd13](https://github.com/ReactiveX/RxJS/commit/e0efd13)) - - - -# [5.5.0-beta.7](https://github.com/ReactiveX/RxJS/compare/5.5.0-beta.5...5.5.0-beta.7) (2017-10-13) - -(Due to a publish snafu, there is no 5.5.0-beta.6) (womp womp 👎) - -### Bug Fixes - -- **build:** sourceMaps updated to support CJS properly again ([75f7f11](https://github.com/ReactiveX/RxJS/commit/75f7f11)), closes [#2934](https://github.com/ReactiveX/RxJS/issues/2934) -- **flatMap:** reexport flatMap as alias of mergeMap ([#2920](https://github.com/ReactiveX/RxJS/issues/2920)) ([9922c02](https://github.com/ReactiveX/RxJS/commit/9922c02)) -- **publish:** correct the name and republish to sync packages ([464b115](https://github.com/ReactiveX/RxJS/commit/464b115)) -- **shareReplay:** no longer exporting function unnecessarily ([#2928](https://github.com/ReactiveX/RxJS/issues/2928)) ([e159578](https://github.com/ReactiveX/RxJS/commit/e159578)) -- **shareReplay:** properly uses `lift` ([#2924](https://github.com/ReactiveX/RxJS/issues/2924)) ([3d9cf87](https://github.com/ReactiveX/RxJS/commit/3d9cf87)), closes [#2921](https://github.com/ReactiveX/RxJS/issues/2921) -- **toPromise:** include toPromise in build output ([#2923](https://github.com/ReactiveX/RxJS/issues/2923)) ([f55bfa5](https://github.com/ReactiveX/RxJS/commit/f55bfa5)), closes [#2922](https://github.com/ReactiveX/RxJS/issues/2922) - - - -# [5.5.0-beta.5](https://github.com/ReactiveX/RxJS/compare/5.5.0-beta.4...v5.5.0-beta.5) (2017-10-06) - -### Bug Fixes - -- **toPromise:** remove lettable version of toPromise ([031edca](https://github.com/ReactiveX/RxJS/commit/031edca)), closes [#2868](https://github.com/ReactiveX/RxJS/issues/2868) - -### Features - -- **toPromise:** now exists as a permanent method on Observable ([2e49a5c](https://github.com/ReactiveX/RxJS/commit/2e49a5c)) - - - -# [5.5.0-beta.4](https://github.com/ReactiveX/RxJS/compare/5.5.0-beta.3...v5.5.0-beta.4) (2017-10-06) - -### Bug Fixes - -- **publish:** fix selector typings ([#2891](https://github.com/ReactiveX/RxJS/issues/2891)) ([9ee234d](https://github.com/ReactiveX/RxJS/commit/9ee234d)), closes [#2889](https://github.com/ReactiveX/RxJS/issues/2889) -- **shareReplay:** properly retains history on subscribe ([#2910](https://github.com/ReactiveX/RxJS/issues/2910)) ([accbcd0](https://github.com/ReactiveX/RxJS/commit/accbcd0)), closes [#2908](https://github.com/ReactiveX/RxJS/issues/2908) -- **subscribeOn:** remove subscribeOn from reexport to support treesha… ([#2899](https://github.com/ReactiveX/RxJS/issues/2899)) ([fb51a02](https://github.com/ReactiveX/RxJS/commit/fb51a02)) - - - -# [5.5.0-beta.3](https://github.com/ReactiveX/RxJS/compare/5.5.0-beta.2...v5.5.0-beta.3) (2017-10-03) - -### Bug Fixes - -- **build:** revert to 5.4.x build output for CJS & add configurable support for ESM ([#2878](https://github.com/ReactiveX/RxJS/issues/2878)) ([167456a](https://github.com/ReactiveX/RxJS/commit/167456a)) -- **concatAll:** use higher-order lettable version of concatAll ([60c96ab](https://github.com/ReactiveX/RxJS/commit/60c96ab)) -- **mergeAll:** use higher-order lettable version of mergeAll ([f0b703b](https://github.com/ReactiveX/RxJS/commit/f0b703b)) - - - -# [5.5.0-beta.2](https://github.com/ReactiveX/RxJS/compare/5.5.0-beta.1...v5.5.0-beta.2) (2017-09-27) - -### Bug Fixes - -- **build:** make CJS references to import X from '../operators' work correctly with SystemJS ([#2874](https://github.com/ReactiveX/RxJS/issues/2874)) ([3dd4cc4](https://github.com/ReactiveX/RxJS/commit/3dd4cc4)) - - - -# [5.5.0-beta.1](https://github.com/ReactiveX/RxJS/compare/5.5.0-beta.0...v5.5.0-beta.1) (2017-09-27) - -### Bug Fixes - -- **package:** published from a Linux machine to prevent a strange issue where - the Observable directory was not showing up when installed on some Linux - environments. -- **build:** fix source maps by adding back sources and fixing path ([#2872](https://github.com/ReactiveX/RxJS/issues/2872)) ([daaf424](https://github.com/ReactiveX/RxJS/commit/daaf424)) -- **package:** remove src directory and fix typings location ([#2866](https://github.com/ReactiveX/RxJS/issues/2866)) ([c57eea7](https://github.com/ReactiveX/RxJS/commit/c57eea7)) - -### Features - -- **global:** export lettables as Rx.operators ([#2862](https://github.com/ReactiveX/RxJS/issues/2862)) ([ba2f586](https://github.com/ReactiveX/RxJS/commit/ba2f586)), closes [#2861](https://github.com/ReactiveX/RxJS/issues/2861) - - - -# [5.5.0-beta.0](https://github.com/ReactiveX/RxJS/compare/5.4.3...5.5.0-beta.0) (2017-09-22) - -**Important! Checkout the explanation of the new [lettable operators features here](doc/lettable-operators.md)** - -### Bug Fixes - -- **package:** correct errors generated during rollup for UMD generation ([#2839](https://github.com/ReactiveX/RxJS/issues/2839)) ([124cc93](https://github.com/ReactiveX/RxJS/commit/124cc93)) -- **partition:** update TypeScript signature to match docs and filter operator ([#2819](https://github.com/ReactiveX/RxJS/issues/2819)) ([755df9b](https://github.com/ReactiveX/RxJS/commit/755df9b)) -- **subscribeToResult:** throw error in subscriber with inner observable ([d7bffa9](https://github.com/ReactiveX/RxJS/commit/d7bffa9)), closes [#2618](https://github.com/ReactiveX/RxJS/issues/2618) - -### Features - -- **ajax:** Include the response on instances of AjaxError ([3f6553c](https://github.com/ReactiveX/RxJS/commit/3f6553c)) -- **audit:** add higher-order lettable version of audit ([e2daefe](https://github.com/ReactiveX/RxJS/commit/e2daefe)) -- **auditTime:** add higher-order lettable version of auditTime ([9e963aa](https://github.com/ReactiveX/RxJS/commit/9e963aa)) -- **buffer:** add higher-order lettable version of buffer ([d8ca9de](https://github.com/ReactiveX/RxJS/commit/d8ca9de)) -- **bufferCount:** add higher-order lettable version of bufferCount ([0ae2ed5](https://github.com/ReactiveX/RxJS/commit/0ae2ed5)) -- **bufferTime:** add higher-order lettable version of bufferTime operator ([0377ca6](https://github.com/ReactiveX/RxJS/commit/0377ca6)) -- **bufferToggle:** add higher-order lettable version of bufferToggle ([ea1c3ee](https://github.com/ReactiveX/RxJS/commit/ea1c3ee)) -- **bufferWhen:** add higher-order lettable version of bufferWhen ([ec3eceb](https://github.com/ReactiveX/RxJS/commit/ec3eceb)) -- **catchError:** add higher-order lettable version of `catch` ([408a2af](https://github.com/ReactiveX/RxJS/commit/408a2af)) -- **combineAll:** add higher-order lettable version of combineAll ([97704b3](https://github.com/ReactiveX/RxJS/commit/97704b3)) -- **combineLatest:** add higher-order lettable version of combineLatest ([b7154f2](https://github.com/ReactiveX/RxJS/commit/b7154f2)) -- **concatMap:** add higher-order lettable version of concatMap ([c4125ff](https://github.com/ReactiveX/RxJS/commit/c4125ff)) -- **concatMapTo:** add higher-order lettable version of concatMapTo ([0a6672e](https://github.com/ReactiveX/RxJS/commit/0a6672e)) -- **count:** add higher-order lettable version of count ([caf713e](https://github.com/ReactiveX/RxJS/commit/caf713e)) -- **debounce:** add higher-order lettable version of debounce ([cb8ce46](https://github.com/ReactiveX/RxJS/commit/cb8ce46)) -- **debounceTime:** add higher-order lettable version of debounceTime ([df0d439](https://github.com/ReactiveX/RxJS/commit/df0d439)) -- **delay:** add higher-order lettable version of delay ([7efb803](https://github.com/ReactiveX/RxJS/commit/7efb803)) -- **delayWhen:** add higher-order lettable version of delayWhen ([cb91c3f](https://github.com/ReactiveX/RxJS/commit/cb91c3f)) -- **dematerialize:** add higher-order lettable version of dematerialize ([b5948f9](https://github.com/ReactiveX/RxJS/commit/b5948f9)) -- **distinct:** add higher-order lettable version of distinct ([0429a69](https://github.com/ReactiveX/RxJS/commit/0429a69)) -- **distinctUntilChanged:** add higher-order lettable version of distinctUntilChanged ([b2725e7](https://github.com/ReactiveX/RxJS/commit/b2725e7)) -- **distinctUntilKeyChanged:** add higher-order lettable version of distinctUntilKeyChanged ([9db141c](https://github.com/ReactiveX/RxJS/commit/9db141c)) -- **elementAt:** add higher-order lettable version of elementAt ([b8e956b](https://github.com/ReactiveX/RxJS/commit/b8e956b)) -- **every:** add higher-order lettable version of every ([13f3503](https://github.com/ReactiveX/RxJS/commit/13f3503)) -- **exhaust:** add higher-order lettable version of exhaust ([b145dca](https://github.com/ReactiveX/RxJS/commit/b145dca)) -- **exhaustMap:** add higher-order lettable exhaustMap ([b134e0c](https://github.com/ReactiveX/RxJS/commit/b134e0c)) -- **expand:** add higher-order lettable expand ([6ec8a19](https://github.com/ReactiveX/RxJS/commit/6ec8a19)) -- **filter:** add higher-order lettable version of filter ([2848556](https://github.com/ReactiveX/RxJS/commit/2848556)) -- **finalize:** add higher-order lettable version of finally, called finalize ([cfeae9f](https://github.com/ReactiveX/RxJS/commit/cfeae9f)) -- **find:** add higher-order lettable version of find ([ff6d5af](https://github.com/ReactiveX/RxJS/commit/ff6d5af)) -- **findIndex:** add higher-order lettable findIndex ([40e680e](https://github.com/ReactiveX/RxJS/commit/40e680e)) -- **first:** add higher-order lettable first ([33eac1e](https://github.com/ReactiveX/RxJS/commit/33eac1e)) -- **groupBy:** add higher-order lettable groupBy ([5281229](https://github.com/ReactiveX/RxJS/commit/5281229)) -- **ignoreElements:** add higher-order lettable version of ignoreElements ([68286d4](https://github.com/ReactiveX/RxJS/commit/68286d4)) -- **isEmpty:** add higher-order lettable version of isEmpty ([aad1833](https://github.com/ReactiveX/RxJS/commit/aad1833)) -- **last:** add higher-order lettable version of last ([bf33b97](https://github.com/ReactiveX/RxJS/commit/bf33b97)) -- **lettables:** add higher-order lettable versions of concat, concatAll, mergeAll ([d7e8be7](https://github.com/ReactiveX/RxJS/commit/d7e8be7)) -- **map:** add higher-order lettable map operator ([ce40b2d](https://github.com/ReactiveX/RxJS/commit/ce40b2d)) -- **mapTo:** add higher-order lettable version of mapTo ([e97530f](https://github.com/ReactiveX/RxJS/commit/e97530f)) -- **materialize:** add higher-order lettable materialize operator ([ce42477](https://github.com/ReactiveX/RxJS/commit/ce42477)) -- **merge:** add higher-order lettable version of merge ([#2809](https://github.com/ReactiveX/RxJS/issues/2809)) ([3136403](https://github.com/ReactiveX/RxJS/commit/3136403)) -- **mergeMap:** add higher-order lettable version of mergeMap ([417efde](https://github.com/ReactiveX/RxJS/commit/417efde)) -- **mergeMapTo:** add higher-order lettable version of mergeMapTo ([653b47a](https://github.com/ReactiveX/RxJS/commit/653b47a)) -- **mergeScan:** add higher-order lettable version of mergeScan ([fde7205](https://github.com/ReactiveX/RxJS/commit/fde7205)) -- **multicast:** add higher-order lettable variant of multicast ([fb6014d](https://github.com/ReactiveX/RxJS/commit/fb6014d)) -- **observeOn:** add higher-order lettable version of observeOn ([feb0f5a](https://github.com/ReactiveX/RxJS/commit/feb0f5a)) -- **onErrorResumeNext:** add higher-order lettable version of onErrorResumeNext ([badec6a](https://github.com/ReactiveX/RxJS/commit/badec6a)) -- **operators:** higher-order lettables of reduce, min, max and defaultIfEmpty added ([9974fc2](https://github.com/ReactiveX/RxJS/commit/9974fc2)) -- **package:** rxjs distribution now supports main, module and es2015 keys in package.json ([988e1af](https://github.com/ReactiveX/RxJS/commit/988e1af)) -- **pairwise:** add higher-order lettable version of pairwise ([bb21a44](https://github.com/ReactiveX/RxJS/commit/bb21a44)) -- **partition:** add higher-order lettable version of partition ([595e588](https://github.com/ReactiveX/RxJS/commit/595e588)) -- **pipe:** add pipe method ot Observable ([9f6312d](https://github.com/ReactiveX/RxJS/commit/9f6312d)) -- **pipe:** add pipe utility function([42f9daf](https://github.com/ReactiveX/RxJS/commit/42f9daf)) -- **pluck:** add higher-order lettable version of pluck ([8ab0914](https://github.com/ReactiveX/RxJS/commit/8ab0914)) -- **publish:** add higher-order lettable variant of publish ([4ccf794](https://github.com/ReactiveX/RxJS/commit/4ccf794)) -- **publishBehavior:** add higher-order lettable version of publishBehavior ([e911aef](https://github.com/ReactiveX/RxJS/commit/e911aef)) -- **publishLast:** add higher-order lettable version of publishLast ([684728c](https://github.com/ReactiveX/RxJS/commit/684728c)) -- **publishReplay:** add higher-order lettable version of publishReplay ([2958917](https://github.com/ReactiveX/RxJS/commit/2958917)) -- **race:** add higher-order lettable version of race ([e646851](https://github.com/ReactiveX/RxJS/commit/e646851)) -- **refCount:** add higher-order lettable version of refCount ([21fba63](https://github.com/ReactiveX/RxJS/commit/21fba63)) -- **repeat:** add higher-order lettable version of repeat ([8473fe5](https://github.com/ReactiveX/RxJS/commit/8473fe5)) -- **repeatWhen:** add higher-order lettable version of repeatWhen ([1d1cecd](https://github.com/ReactiveX/RxJS/commit/1d1cecd)) -- **retry:** add higher-order lettable version of retry ([28e9b13](https://github.com/ReactiveX/RxJS/commit/28e9b13)) -- **retryWhen:** add higher-order lettable version of retryWhen ([1290e3c](https://github.com/ReactiveX/RxJS/commit/1290e3c)) -- **sample:** add higher-order lettable version of sample ([8c73e6e](https://github.com/ReactiveX/RxJS/commit/8c73e6e)) -- **sampleTime:** add higher-order lettable version of sampleTime ([ba6a9ce](https://github.com/ReactiveX/RxJS/commit/ba6a9ce)) -- **scan:** add higher-order lettable version of scan ([2cc5d75](https://github.com/ReactiveX/RxJS/commit/2cc5d75)) -- **sequenceEqual:** add higher-order lettable version of sequenceEqual ([7cd3165](https://github.com/ReactiveX/RxJS/commit/7cd3165)) -- **share:** add higher-order lettable version of share ([f10c42e](https://github.com/ReactiveX/RxJS/commit/f10c42e)) -- **shareReplay:** add higher-order lettable version of shareReplay ([e8be197](https://github.com/ReactiveX/RxJS/commit/e8be197)) -- **single:** add higher-order lettable version of single ([3bc050a](https://github.com/ReactiveX/RxJS/commit/3bc050a)) -- **skip:** add higher-order lettable version of skip ([baed383](https://github.com/ReactiveX/RxJS/commit/baed383)) -- **skipLast:** add higher-order lettable version of skipLast ([6e1ff3c](https://github.com/ReactiveX/RxJS/commit/6e1ff3c)) -- **skipUntil:** add higher-order lettable version of skipUntil ([6cc2cd6](https://github.com/ReactiveX/RxJS/commit/6cc2cd6)) -- **skipWhile:** add higher-order lettable version of skipWhile ([76d8ffa](https://github.com/ReactiveX/RxJS/commit/76d8ffa)) -- **subscribeOn:** add higher-order lettable version of subscribeOn ([866af37](https://github.com/ReactiveX/RxJS/commit/866af37)) -- **switchAll:** add higher-order lettable version of switch ([2f12572](https://github.com/ReactiveX/RxJS/commit/2f12572)) -- **switchMap:** add higher-order lettable version of switchMap ([b6e5b56](https://github.com/ReactiveX/RxJS/commit/b6e5b56)) -- **switchMapTo:** add higher-order lettable version of switchMapTo ([2640184](https://github.com/ReactiveX/RxJS/commit/2640184)) -- **take:** add higher-order lettable version of take ([089a5a6](https://github.com/ReactiveX/RxJS/commit/089a5a6)) -- **takeLast:** add higher-order lettable version of takeLast ([cd7e7dd](https://github.com/ReactiveX/RxJS/commit/cd7e7dd)) -- **takeUntil:** add higher-order lettable version of takeUntil ([bb2ddaa](https://github.com/ReactiveX/RxJS/commit/bb2ddaa)) -- **takeWhile:** add higher-order lettable version of takeWhile ([f86c862](https://github.com/ReactiveX/RxJS/commit/f86c862)) -- **tap:** add higher-order lettable version of do ([f85c60e](https://github.com/ReactiveX/RxJS/commit/f85c60e)) -- **throttle:** add higher-order lettable version of throttle ([e4dd1fd](https://github.com/ReactiveX/RxJS/commit/e4dd1fd)) -- **throttleTime:** add higher-order lettable version of throttleTime ([34a592d](https://github.com/ReactiveX/RxJS/commit/34a592d)) -- **timeInterval:** add higher-order lettable version of timeInterval ([fcad034](https://github.com/ReactiveX/RxJS/commit/fcad034)) -- **timeout:** add higher-order lettable version of timeout ([2546750](https://github.com/ReactiveX/RxJS/commit/2546750)) -- **timeoutWith:** add higher-order lettable version of timeoutWith ([bd7f5ed](https://github.com/ReactiveX/RxJS/commit/bd7f5ed)) -- **timestamp:** add higher-order lettable version of timestamp ([a780bf2](https://github.com/ReactiveX/RxJS/commit/a780bf2)) -- **toArray:** add higher-order lettable version of toArray ([82480cf](https://github.com/ReactiveX/RxJS/commit/82480cf)) -- **toArray:** add higher-order lettable version of toArray ([a03a50c](https://github.com/ReactiveX/RxJS/commit/a03a50c)) -- **toPromise:** add higher-order lettable version of toPromise ([1627da2](https://github.com/ReactiveX/RxJS/commit/1627da2)) -- **window:** add higher-order lettable version of window ([9f6373e](https://github.com/ReactiveX/RxJS/commit/9f6373e)) -- **windowCount:** add higher-order lettable version of windowCount ([2a9e54c](https://github.com/ReactiveX/RxJS/commit/2a9e54c)) -- **windowTime:** add higher-order lettable version of windowTime ([29ffa1b](https://github.com/ReactiveX/RxJS/commit/29ffa1b)) -- **windowToggle:** add higher-order lettable version of windowToggle ([81ec389](https://github.com/ReactiveX/RxJS/commit/81ec389)) -- **windowWhen:** add higher-order lettable version of windowWhen ([0b73208](https://github.com/ReactiveX/RxJS/commit/0b73208)) -- **withLatestFrom:** add higher-order lettable version of withLatestFrom ([509c97c](https://github.com/ReactiveX/RxJS/commit/509c97c)) -- **zip:** add higher-order lettable version of zip ([8a9b9b2](https://github.com/ReactiveX/RxJS/commit/8a9b9b2)) -- **zipAll:** add higher-order lettable version of zipAll ([f6bd51f](https://github.com/ReactiveX/RxJS/commit/f6bd51f)) - - - -## [5.4.3](https://github.com/ReactiveX/RxJS/compare/5.4.2...v5.4.3) (2017-08-10) - -### Bug Fixes - -- **compilation:** compiles under typescript 2.4.2 ([#2780](https://github.com/ReactiveX/RxJS/issues/2780)) ([d2a32f9](https://github.com/ReactiveX/RxJS/commit/d2a32f9)) -- **exports:** add exports for missing static operators: generate, ([08c4196](https://github.com/ReactiveX/RxJS/commit/08c4196)) - - - -## [5.4.2](https://github.com/ReactiveX/RxJS/compare/5.4.1...v5.4.2) (2017-07-05) - -### Bug Fixes - -- **Notification:** Don't reference `this` from static methods. ([9f8e375](https://github.com/ReactiveX/RxJS/commit/9f8e375)) -- **Subject:** lift signature is now appropriate for stricter TypeScript 2.4 checks ([#2722](https://github.com/ReactiveX/RxJS/issues/2722)) ([9804de7](https://github.com/ReactiveX/RxJS/commit/9804de7)) - - - -## [5.4.1](https://github.com/ReactiveX/RxJS/compare/5.4.0...v5.4.1) (2017-06-14) - -### Bug Fixes - -- **ajax:** Only set timeout & responseType if request is asynchronous ([#2486](https://github.com/ReactiveX/RxJS/issues/2486)) ([380fbcf](https://github.com/ReactiveX/RxJS/commit/380fbcf)) -- **audit:** will now properly mirror source if durations are Observable.empty() ([#2595](https://github.com/ReactiveX/RxJS/issues/2595)) ([6ded82e](https://github.com/ReactiveX/RxJS/commit/6ded82e)) -- **elementAt:** will now properly unsubscribe when it completes or errors ([#2501](https://github.com/ReactiveX/RxJS/issues/2501)) ([a400cab](https://github.com/ReactiveX/RxJS/commit/a400cab)) -- **ErrorObservable:** will now propagate errors properly when used in a `catch` after `fromPromise`. ([#2552](https://github.com/ReactiveX/RxJS/issues/2552)) ([cf88a20](https://github.com/ReactiveX/RxJS/commit/cf88a20)) -- **groupBy:** group duration notifiers will now properly unsubscribe and clean up ([#2662](https://github.com/ReactiveX/RxJS/issues/2662)) ([ab92083](https://github.com/ReactiveX/RxJS/commit/ab92083)), closes [#2660](https://github.com/ReactiveX/RxJS/issues/2660) [#2661](https://github.com/ReactiveX/RxJS/issues/2661) -- **Observable:** errors thrown in observer/handlers without an operator applied will no longer be swallowed ([#2626](https://github.com/ReactiveX/RxJS/issues/2626)) ([c250afc](https://github.com/ReactiveX/RxJS/commit/c250afc)), closes [#2565](https://github.com/ReactiveX/RxJS/issues/2565) -- **reduce:** type definitions overloads for TypeScript are now in proper order ([#2523](https://github.com/ReactiveX/RxJS/issues/2523)) ([ccc0647](https://github.com/ReactiveX/RxJS/commit/ccc0647)) -- **Schedulers:** Fix issue where canceling an asap or animationFrame action early could throw ([#2638](https://github.com/ReactiveX/RxJS/issues/2638)) ([fc39043](https://github.com/ReactiveX/RxJS/commit/fc39043)) - - - -# [5.4.0](https://github.com/ReactiveX/RxJS/) (2017-05-09) - -### Features - -- **shareReplay:** adds `shareReplay` variant of `publishReplay` ([#2443](https://github.com/ReactiveX/RxJS/issues/2443)) ([5a2266a](https://github.com/ReactiveX/RxJS/commit/5a2266a)) -- **skipLast:** add skipLast operator ([#2316](https://github.com/ReactiveX/RxJS/issues/2316)) ([4ffbbe5](https://github.com/ReactiveX/RxJS/commit/4ffbbe5)), closes [#1404](https://github.com/ReactiveX/RxJS/issues/1404) -- **TypeScript:** fromPromise accepts PromiseLike object ([#2505](https://github.com/ReactiveX/RxJS/issues/2505)) ([ade1fd5](https://github.com/ReactiveX/RxJS/commit/ade1fd5)) - - - -## [5.3.3](https://github.com/ReactiveX/RxJS/compare/5.3.1...5.3.3) (2017-05-09) - -### Bug Fixes - -- **delayWhen:** correctly handle synchronous duration observable ([#2589](https://github.com/ReactiveX/RxJS/issues/2589)) ([695f280](https://github.com/ReactiveX/RxJS/commit/695f280)), closes [#2587](https://github.com/ReactiveX/RxJS/issues/2587) -- **race:** allow TypeScript support for array of observables other than rest param ([#2548](https://github.com/ReactiveX/RxJS/issues/2548)) ([ace553c](https://github.com/ReactiveX/RxJS/commit/ace553c)) -- **Subscriber:** do not call complete with undefined value param ([#2559](https://github.com/ReactiveX/RxJS/issues/2559)) ([3d63de2](https://github.com/ReactiveX/RxJS/commit/3d63de2)) - -**(NOTE: 5.3.2 was a broken release and was removed)** - - - -## [5.3.1](https://github.com/ReactiveX/RxJS/compare/5.3.0...v5.3.1) (2017-05-02) - -### Bug Fixes - -- **AsyncAction:** rescheduling an action with the same delay before it has executed will now schedule appropriately. ([#2580](https://github.com/ReactiveX/RxJS/issues/2580)) ([281760e](https://github.com/ReactiveX/RxJS/commit/281760e)) -- **closure:** make root.ts work with closure ([#2546](https://github.com/ReactiveX/RxJS/issues/2546)) ([0ecf55d](https://github.com/ReactiveX/RxJS/commit/0ecf55d)) -- **tests:** add missing babel-polyfill to package.json ([b277ce9](https://github.com/ReactiveX/RxJS/commit/b277ce9)), closes [#2261](https://github.com/ReactiveX/RxJS/issues/2261) -- **withLatestFrom:** change from hot to cold observable in marble test ([0c65446](https://github.com/ReactiveX/RxJS/commit/0c65446)), closes [#2526](https://github.com/ReactiveX/RxJS/issues/2526) - - - -# [5.3.0](https://github.com/ReactiveX/RxJS/compare/5.2.0...v5.3.0) (2017-04-03) - -### Bug Fixes - -- **catch:** return type is now the union of input types ([#2478](https://github.com/ReactiveX/RxJS/issues/2478)) ([840def0](https://github.com/ReactiveX/RxJS/commit/840def0)) -- **forEach:** fix a temporal dead zone issue in forEach. ([#2474](https://github.com/ReactiveX/RxJS/issues/2474)) ([e9e9801](https://github.com/ReactiveX/RxJS/commit/e9e9801)) -- **multicast:** Ensure ConnectableObservables returned by multicast are state-isolated. ([aaa9e6b](https://github.com/ReactiveX/RxJS/commit/aaa9e6b)) -- **reduce:** proper TypeScript signature overload ordering ([#2382](https://github.com/ReactiveX/RxJS/issues/2382)) ([f6a4951](https://github.com/ReactiveX/RxJS/commit/f6a4951)), closes [#2338](https://github.com/ReactiveX/RxJS/issues/2338) -- **SafeSubscriber:** SafeSubscriber shouldn't mutate incoming Observers. ([a1778e0](https://github.com/ReactiveX/RxJS/commit/a1778e0)) -- **timeout:** Cancels scheduled timeout, if no longer needed ([3e9d529](https://github.com/ReactiveX/RxJS/commit/3e9d529)), closes [#2134](https://github.com/ReactiveX/RxJS/issues/2134) [#2244](https://github.com/ReactiveX/RxJS/issues/2244) [#2355](https://github.com/ReactiveX/RxJS/issues/2355) [#2347](https://github.com/ReactiveX/RxJS/issues/2347) [#2353](https://github.com/ReactiveX/RxJS/issues/2353) [#2254](https://github.com/ReactiveX/RxJS/issues/2254) [#2372](https://github.com/ReactiveX/RxJS/issues/2372) [#1301](https://github.com/ReactiveX/RxJS/issues/1301) -- **zipAll:** complete when the source is empty ([712fece](https://github.com/ReactiveX/RxJS/commit/712fece)) - -### Features - -- **delayWhen:** add index to the selector function ([5d6291e](https://github.com/ReactiveX/RxJS/commit/5d6291e)) -- **symbol exports:** symbols now also exported without `$$` prefix to work with Babel UMD exporting ([#2435](https://github.com/ReactiveX/RxJS/issues/2435)) ([747bef6](https://github.com/ReactiveX/RxJS/commit/747bef6)), closes [#2415](https://github.com/ReactiveX/RxJS/issues/2415) - -### Performance Improvements - -- **bufferCount:** optimize bufferCount operator ([#2359](https://github.com/ReactiveX/RxJS/issues/2359)) ([28d0883](https://github.com/ReactiveX/RxJS/commit/28d0883)) - -### April Fools - -- **smooth:** `smooth()` was never really a thing. Sorry, folks. :D - - - -# [5.2.0](https://github.com/ReactiveX/RxJS/compare/5.1.1...v5.2.0) (2017-02-21) - -### Bug Fixes - -- **ajax:** will set `withCredentials` after `open` on XHR for IE10 ([#2332](https://github.com/ReactiveX/RxJS/issues/2332)) ([0ab1d3b](https://github.com/ReactiveX/RxJS/commit/0ab1d3b)) -- **bindCallback:** emit undefined when callback is without arguments ([915a2a8](https://github.com/ReactiveX/RxJS/commit/915a2a8)) -- **bindNodeCallback:** emit undefined when callback has no success arguments ([8b81fc6](https://github.com/ReactiveX/RxJS/commit/8b81fc6)), closes [#2254](https://github.com/ReactiveX/RxJS/issues/2254) -- **bindNodeCallback:** errors thrown in callback will be scheduled if a scheduler is provided ([#2344](https://github.com/ReactiveX/RxJS/issues/2344)) ([82ec4f1](https://github.com/ReactiveX/RxJS/commit/82ec4f1)) -- **concat:** will now return Observable when given a single object implementing Symbol.observable ([#2387](https://github.com/ReactiveX/RxJS/issues/2387)) ([f5d035a](https://github.com/ReactiveX/RxJS/commit/f5d035a)) -- **ErrorObservable:** remove type constraint to error value ([2f951cd](https://github.com/ReactiveX/RxJS/commit/2f951cd)), closes [#2395](https://github.com/ReactiveX/RxJS/issues/2395) -- **forkJoin:** add type signature for single observable with selector ([7983b91](https://github.com/ReactiveX/RxJS/commit/7983b91)), closes [#2347](https://github.com/ReactiveX/RxJS/issues/2347) -- **merge:** return Observable when called with single lowerCaseO ([85752eb](https://github.com/ReactiveX/RxJS/commit/85752eb)) -- **mergeAll:** introduce variant support for mergeMap ([656f2b3](https://github.com/ReactiveX/RxJS/commit/656f2b3)), closes [#2372](https://github.com/ReactiveX/RxJS/issues/2372) -- **single:** predicate function receives indices starting at 0 ([#2396](https://github.com/ReactiveX/RxJS/issues/2396)) ([c81882f](https://github.com/ReactiveX/RxJS/commit/c81882f)) -- **subscribeToResult:** accept array-like as result ([14685ba](https://github.com/ReactiveX/RxJS/commit/14685ba)) - -### Features - -- **webSocket:** Add binaryType to config object ([86acbd1](https://github.com/ReactiveX/RxJS/commit/86acbd1)), closes [#2353](https://github.com/ReactiveX/RxJS/issues/2353) -- **windowTime:** maxWindowSize parameter in windowTime operator ([381be3f](https://github.com/ReactiveX/RxJS/commit/381be3f)), closes [#1301](https://github.com/ReactiveX/RxJS/issues/1301) - - - -## [5.1.1](https://github.com/ReactiveX/RxJS/compare/5.1.0...v5.1.1) (2017-02-13) - -### Bug Fixes - -- **bindCallback:** input function context can now be properly set via output function ([#2319](https://github.com/ReactiveX/RxJS/issues/2319)) ([cb91c76](https://github.com/ReactiveX/RxJS/commit/cb91c76)) -- **bindNodeCallback:** input function context can now be properly set via output function ([#2320](https://github.com/ReactiveX/RxJS/issues/2320)) ([3ec315d](https://github.com/ReactiveX/RxJS/commit/3ec315d)) -- **Subscription:** fold ChildSubscription logic into Subscriber to prevent operators from leaking ChildSubscriptions. ([#2360](https://github.com/ReactiveX/RxJS/issues/2360)) ([22e4c17](https://github.com/ReactiveX/RxJS/commit/22e4c17)), closes [#2244](https://github.com/ReactiveX/RxJS/issues/2244) [#2355](https://github.com/ReactiveX/RxJS/issues/2355) - - - -# [5.1.0](https://github.com/ReactiveX/RxJS/compare/5.0.3...v5.1.0) (2017-02-01) - -### Bug Fixes - -- **catch:** update the catch operator to dispose inner subscriptions if the catch subscription is di ([#2271](https://github.com/ReactiveX/RxJS/issues/2271)) ([8a1e089](https://github.com/ReactiveX/RxJS/commit/8a1e089)) -- **combineLatest:** Don't mutate array of observables passed to ([#2276](https://github.com/ReactiveX/RxJS/issues/2276)) ([9b73c46](https://github.com/ReactiveX/RxJS/commit/9b73c46)) -- **ISubscription:** update type definition of ISubscription::closed ([#2249](https://github.com/ReactiveX/RxJS/issues/2249)) ([0c304a2](https://github.com/ReactiveX/RxJS/commit/0c304a2)) -- **Observable:** Ensure the generic type of the Observer passed to Observable's initializer function is the same. ([51a0bc1](https://github.com/ReactiveX/RxJS/commit/51a0bc1)), closes [#2166](https://github.com/ReactiveX/RxJS/issues/2166) -- **Observable:** errors thrown during subscription are now properly sent down error channel ([#2313](https://github.com/ReactiveX/RxJS/issues/2313)) ([d4a9aac](https://github.com/ReactiveX/RxJS/commit/d4a9aac)), closes [#1833](https://github.com/ReactiveX/RxJS/issues/1833) -- **reduce:** index will properly start at 1 if no seed is provided, to match native Array reduce behavior ([30a4ca4](https://github.com/ReactiveX/RxJS/commit/30a4ca4)), closes [#2290](https://github.com/ReactiveX/RxJS/issues/2290) -- **repeatWhen:** resulting observable will wait for the source to complete, even if a hot notifier completes first. ([#2209](https://github.com/ReactiveX/RxJS/issues/2209)) ([c65a098](https://github.com/ReactiveX/RxJS/commit/c65a098)), closes [#2054](https://github.com/ReactiveX/RxJS/issues/2054) -- **Subject:** ensure subject properly throws ObjectUnsubscribedError when unsubscribed then resubscribed to ([#2318](https://github.com/ReactiveX/RxJS/issues/2318)) ([41489eb](https://github.com/ReactiveX/RxJS/commit/41489eb)) -- **TestScheduler:** helper methods return proper types, `HotObservable` and `ColdObservable` instead of Observable ([#2305](https://github.com/ReactiveX/RxJS/issues/2305)) ([758aae9](https://github.com/ReactiveX/RxJS/commit/758aae9)) -- **windowTime:** ensure windows created when only a timespan is passed are closed and cleaned up properly. ([#2278](https://github.com/ReactiveX/RxJS/issues/2278)) ([d4533c4](https://github.com/ReactiveX/RxJS/commit/d4533c4)) - -### Features - -- **fromEventPattern:** support optional removeHandler ([86960c2](https://github.com/ReactiveX/RxJS/commit/86960c2)) -- **fromEventPattern:** support pass signal from addHandler to removeHandler ([01d0622](https://github.com/ReactiveX/RxJS/commit/01d0622)) - - - -## [5.0.3](https://github.com/ReactiveX/RxJS/compare/5.0.2...v5.0.3) (2017-01-05) - -### Bug Fixes - -- **observeOn:** seal memory leak involving old notifications ([9664a38](https://github.com/ReactiveX/RxJS/commit/9664a38)), closes [#2244](https://github.com/ReactiveX/RxJS/issues/2244) -- **Subscription:** `add` will return Subscription that `remove`s itself when unsubscribed ([375d4a5](https://github.com/ReactiveX/RxJS/commit/375d4a5)) -- **TypeScript:** interfaces that accepted `Scheduler` now accept `IScheduler` interface ([a0d28a8](https://github.com/ReactiveX/RxJS/commit/a0d28a8)) - - - -## [5.0.2](https://github.com/ReactiveX/RxJS/compare/5.0.1...v5.0.2) (2016-12-23) - -### Bug Fixes - -- **ajax:** upload progress is now set correctly ([#2200](https://github.com/ReactiveX/RxJS/issues/2200)) ([1a83041](https://github.com/ReactiveX/RxJS/commit/1a83041)) -- **groupBy:** Fix groupBy to dispose of outer subscription. ([#2201](https://github.com/ReactiveX/RxJS/issues/2201)) ([2269618](https://github.com/ReactiveX/RxJS/commit/2269618)) - - - -## [5.0.1](https://github.com/ReactiveX/RxJS/compare/5.0.0...v5.0.1) (2016-12-13) - -### Bug Fixes - -- **TypeScript:** pin to TypeScript 2.0.x, fix errors with Error subclassing ([300504c](https://github.com/ReactiveX/RxJS/commit/300504c)) - - - -# [5.0.0](https://github.com/ReactiveX/RxJS/compare/5.0.0-rc.5...v5.0.0) (2016-12-13) - -### Bug Fixes - -- **race:** unsubscribe raced observables with immediate scheduler ([#2158](https://github.com/ReactiveX/RxJS/issues/2158)) ([7dd533b](https://github.com/ReactiveX/RxJS/commit/7dd533b)) -- **SubscribeOnObservable:** Add the source subscription to the action disposable so the source will ([64e3815](https://github.com/ReactiveX/RxJS/commit/64e3815)) - - - -# [5.0.0-rc.5](https://github.com/ReactiveX/RxJS/compare/5.0.0-rc.4...v5.0.0-rc.5) (2016-12-07) - -### Bug Fixes - -- **AjaxObservable:** catch XHR send failures to observer ([#2159](https://github.com/ReactiveX/RxJS/issues/2159)) ([128fb9c](https://github.com/ReactiveX/RxJS/commit/128fb9c)) -- **distinctKey:** Removed accidental leftover reference of `distinctKey` ([9fd8096](https://github.com/ReactiveX/RxJS/commit/9fd8096)), closes [#2161](https://github.com/ReactiveX/RxJS/issues/2161) -- **errors:** Better error message when you return non-observable things, ([#2152](https://github.com/ReactiveX/RxJS/issues/2152)) ([86a909c](https://github.com/ReactiveX/RxJS/commit/86a909c)), closes [#215](https://github.com/ReactiveX/RxJS/issues/215) -- **event:** uses `Object.prototype.toString.call` on objects ([#2143](https://github.com/ReactiveX/RxJS/issues/2143)) ([e036e79](https://github.com/ReactiveX/RxJS/commit/e036e79)) -- **typings:** type guard support for `last`, `first`, `find` and `filter`. ([5f2e849](https://github.com/ReactiveX/RxJS/commit/5f2e849)) - -### Features - -- **timeout:** remove `errorToSend` argument, always throw TimeoutError ([#2172](https://github.com/ReactiveX/RxJS/issues/2172)) ([98ea3d2](https://github.com/ReactiveX/RxJS/commit/98ea3d2)) - -### BREAKING CHANGES - -- timeout: `timeout` no longer accepts the `errorToSend` argument - -related #2141 - - - -# [5.0.0-rc.4](https://github.com/ReactiveX/RxJS/compare/5.0.0-rc.3...v5.0.0-rc.4) (2016-11-19) - -### Bug Fixes - -- **partition:** handles `thisArg` as expected ([#2138](https://github.com/ReactiveX/RxJS/issues/2138)) ([6cf7296](https://github.com/ReactiveX/RxJS/commit/6cf7296)) -- **timeout:** throw traceable TimeoutError ([#2132](https://github.com/ReactiveX/RxJS/issues/2132)) ([9ebc46b](https://github.com/ReactiveX/RxJS/commit/9ebc46b)) - - - -# [5.0.0-rc.3](https://github.com/ReactiveX/RxJS/compare/5.0.0-rc.2...v5.0.0-rc.3) (2016-11-15) - -### Bug Fixes - -- **typings:** You no longer have to install the type definition for chai ([#2112](https://github.com/ReactiveX/rxjs/issues/2112)) - -### Features - -- **filter:** support type guards without casting ([68b7922](https://github.com/ReactiveX/RxJS/commit/68b7922)) -- **find:** support type guards without casting ([9058bf6](https://github.com/ReactiveX/RxJS/commit/9058bf6)) -- **first:** support type guards without casting ([3aa1988](https://github.com/ReactiveX/RxJS/commit/3aa1988)) -- **last:** support type guards without casting ([07ecd5e](https://github.com/ReactiveX/RxJS/commit/07ecd5e)) - - - -# [5.0.0-rc.2](https://github.com/ReactiveX/RxJS/compare/5.0.0-rc.1...v5.0.0-rc.2) (2016-11-05) - -### Bug Fixes - -- **AjaxObservable:** remove needless type param R from AjaxObservable.getJSON() ([#2069](https://github.com/ReactiveX/RxJS/issues/2069)) ([0c3d4a4](https://github.com/ReactiveX/RxJS/commit/0c3d4a4)) -- **bufferCount:** will behave as expected when `startBufferEvery` is less than `bufferSize` ([#2076](https://github.com/ReactiveX/RxJS/issues/2076)) ([d13dbb4](https://github.com/ReactiveX/RxJS/commit/d13dbb4)), closes [#2062](https://github.com/ReactiveX/RxJS/issues/2062) -- **build_docs:** fix doc building ([#1974](https://github.com/ReactiveX/RxJS/issues/1974)) ([1bbbe8b](https://github.com/ReactiveX/RxJS/commit/1bbbe8b)) -- **ErrorObservable:** Add generic error type for ErrorObservable. ([#2071](https://github.com/ReactiveX/RxJS/issues/2071)) ([9df86ba](https://github.com/ReactiveX/RxJS/commit/9df86ba)) -- **first:** will now only emit one value in recursive cases ([#2100](https://github.com/ReactiveX/RxJS/issues/2100)) ([a047e7a](https://github.com/ReactiveX/RxJS/commit/a047e7a)), closes [#2098](https://github.com/ReactiveX/RxJS/issues/2098) -- **fromEvent:** Throw if event target is invalid ([#2107](https://github.com/ReactiveX/RxJS/issues/2107)) ([147ce3e](https://github.com/ReactiveX/RxJS/commit/147ce3e)) -- **IteratorObservable:** clarify the return type of IteratorObservable.create() ([#2070](https://github.com/ReactiveX/RxJS/issues/2070)) ([4f0f865](https://github.com/ReactiveX/RxJS/commit/4f0f865)) -- **IteratorObservable:** Observables `from` generators will now finalize when subscription ends ([22d286a](https://github.com/ReactiveX/RxJS/commit/22d286a)), closes [#1938](https://github.com/ReactiveX/RxJS/issues/1938) -- **multicast:** fix a bug that caused multicast to omit messages after termination ([#2021](https://github.com/ReactiveX/RxJS/issues/2021)) ([44fbc14](https://github.com/ReactiveX/RxJS/commit/44fbc14)) -- **Notification:** `materialize` output will now match Rx4 ([#2106](https://github.com/ReactiveX/RxJS/issues/2106)) ([c83bab9](https://github.com/ReactiveX/RxJS/commit/c83bab9)), closes [#2105](https://github.com/ReactiveX/RxJS/issues/2105) -- **Object.assign:** stop polyfilling Object assign ([#2080](https://github.com/ReactiveX/RxJS/issues/2080)) ([b5f8ab3](https://github.com/ReactiveX/RxJS/commit/b5f8ab3)) -- **Observable/Ajax:** mount properties to origin readystatechange fn ([#2025](https://github.com/ReactiveX/RxJS/issues/2025)) ([76a9abb](https://github.com/ReactiveX/RxJS/commit/76a9abb)) -- **operator/do:** fix typings ([9a40297](https://github.com/ReactiveX/RxJS/commit/9a40297)) -- **reduce/scan:** both scan/reduce operators now accepts `undefined` itself as a valid seed ([#2050](https://github.com/ReactiveX/RxJS/issues/2050)) ([fee7585](https://github.com/ReactiveX/RxJS/commit/fee7585)), closes [#2047](https://github.com/ReactiveX/RxJS/issues/2047) -- **ReplaySubject:** observer now subscribed prior to running subscription function ([#2046](https://github.com/ReactiveX/RxJS/issues/2046)) ([fea08e9](https://github.com/ReactiveX/RxJS/commit/fea08e9)), closes [#2044](https://github.com/ReactiveX/RxJS/issues/2044) -- **sample:** source is now subscribed to before the notifier ([ffe99e8](https://github.com/ReactiveX/RxJS/commit/ffe99e8)), closes [#2075](https://github.com/ReactiveX/RxJS/issues/2075) -- **Symbol.iterator:** will not polyfill Symbol iterator unless Symbol exists ([#2082](https://github.com/ReactiveX/RxJS/issues/2082)) ([1138c99](https://github.com/ReactiveX/RxJS/commit/1138c99)) -- **typings:** fixed Subject.lift to have the same shape as Observable.lift ([b07f597](https://github.com/ReactiveX/RxJS/commit/b07f597)) -- **WebSocketSubject.prototype.multiplex:** no longer nulls out socket after first unsubscribe ([#2039](https://github.com/ReactiveX/RxJS/issues/2039)) ([a5e9cfe](https://github.com/ReactiveX/RxJS/commit/a5e9cfe)), closes [#2037](https://github.com/ReactiveX/RxJS/issues/2037) - -### Features - -- **distinct:** remove `distinctKey`, `distinct` signature change and perf improvements ([#2049](https://github.com/ReactiveX/RxJS/issues/2049)) ([89612b2](https://github.com/ReactiveX/RxJS/commit/89612b2)), closes [#2009](https://github.com/ReactiveX/RxJS/issues/2009) -- **groupBy:** Adds subjectSelector argument to groupBy ([#2023](https://github.com/ReactiveX/RxJS/issues/2023)) ([f94ceb9](https://github.com/ReactiveX/RxJS/commit/f94ceb9)) -- **typescript:** remove dependency to 3rd party es2015 definition ([#2027](https://github.com/ReactiveX/RxJS/issues/2027)) ([4c31974](https://github.com/ReactiveX/RxJS/commit/4c31974)), closes [#2016](https://github.com/ReactiveX/RxJS/issues/2016) - -### BREAKING CHANGES - -- Notification: `Notification.prototype.exception` is now `Notification.prototype.error` to match Rx4 semantics -- Symbol.iterator: RxJS will no longer polyfill `Symbol.iterator` if `Symbol` does not exist. This may break code that inadvertently relies on this behavior -- Object.assign: RxJS will no longer polyfill `Object.assign`. It does - not require `Object.assign` to function, however, your code may be - inadvertently relying on this polyfill. -- AjaxObservable: Observable.ajax.getJSON() now only supports a single type parameter, - `getJSON(url: string, headers?: Object): Observable`. - The extra type parameter it accepted previously was superfluous. -- distinct: `distinctKey` has been removed. Use `distinct` -- distinct: `distinct` operator has changed, first argument is an - optional `keySelector`. The custom `compare` function is no longer - supported. - - - -# [5.0.0-rc.1](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.12...v5.0.0-rc.1) (2016-10-11) - -### Bug Fixes - -- **AjaxObservable:** Fix for [#1921](https://github.com/ReactiveX/RxJS/issues/1921) exposed AjaxObservable unsubscription error calling xhr.abort(). ([4d23f87](https://github.com/ReactiveX/RxJS/commit/4d23f87)) -- **AnonymousSubject:** is now exposed on Rx namespace ([0a6f049](https://github.com/ReactiveX/RxJS/commit/0a6f049)), closes [#2002](https://github.com/ReactiveX/RxJS/issues/2002) -- **bufferTime:** no errors with take after bufferTime with maxBufferSize ([ecec640](https://github.com/ReactiveX/RxJS/commit/ecec640)), closes [#1944](https://github.com/ReactiveX/RxJS/issues/1944) -- **docs:** Fix esdoc for Observable.merge spread argument ([b794e9b](https://github.com/ReactiveX/RxJS/commit/b794e9b)) -- **Observer:** fix Observable#subscribe() signature to suggest correct usable ([459d2a2](https://github.com/ReactiveX/RxJS/commit/459d2a2)) -- **operator:** Fix take to complete when the source is re-entrant. ([86615cb](https://github.com/ReactiveX/RxJS/commit/86615cb)) -- **root:** find global context (window/self/global) in a more safe way ([a098132](https://github.com/ReactiveX/RxJS/commit/a098132)), closes [#1930](https://github.com/ReactiveX/RxJS/issues/1930) -- **schedulers:** Queue, Asap, and AnimationFrame Schedulers should be Async if delay > 0 ([d5c682c](https://github.com/ReactiveX/RxJS/commit/d5c682c)) -- **util/toSubscriber:** Supplies the Subscriber constructor with emptyObserver as destination if no ([8e7e4e3](https://github.com/ReactiveX/RxJS/commit/8e7e4e3)) -- **WebSocketSubject:** ensure all internal state properly reset when socket is nulled out ([62d242e](https://github.com/ReactiveX/RxJS/commit/62d242e)), closes [#1863](https://github.com/ReactiveX/RxJS/issues/1863) - -### Features - -- **cache:** remove `cache` operator ([1b23ace](https://github.com/ReactiveX/RxJS/commit/1b23ace)) -- **ES2015:** stop publishing `rxjs-es`, ES2015 output no longer included in `@reactivex/rxjs` package under `/dist/es6` ([6be9968](https://github.com/ReactiveX/RxJS/commit/6be9968)), closes [#1671](https://github.com/ReactiveX/RxJS/issues/1671) -- **filter:** Observable.filter() can take type guard as the predicate function ([d62fbf0](https://github.com/ReactiveX/RxJS/commit/d62fbf0)) -- **find:** Observable.find() can take type guard as the predicate function ([b952718](https://github.com/ReactiveX/RxJS/commit/b952718)) -- **first:** Observable.first() can take type guard as the predicate function ([f99ca49](https://github.com/ReactiveX/RxJS/commit/f99ca49)) -- **last:** Observable.last() can take type guard as the predicate function ([76a8a57](https://github.com/ReactiveX/RxJS/commit/76a8a57)) -- **operators:** Use lift in the operators that don't currently use lift. ([68af9ef](https://github.com/ReactiveX/RxJS/commit/68af9ef)) -- **TypeScript:** update TypeScript to v2.0 ([3478b0b](https://github.com/ReactiveX/RxJS/commit/3478b0b)) - -### BREAKING CHANGES - -- **cache:** The .cache() operator has been removed, pending further discussion ([1b23ace](https://github.com/ReactiveX/RxJS/commit/1b23ace)) -- ES2015: `rxjs-es` is no longer being published -- ES2015: `@reactivex/rxjs` no longer has `/dist/es6` output - -related #2016 -related #1992 - -- package.json: TypeScript definitions are now for TS 2.0 and higher - -Even if we use getter for class, they are marked with `readonly` properties -in d.ts. - -- operators: Removes MulticastObservable subclass in favor of a MulticastOperator. - - - -# [5.0.0-beta.12](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.11...v5.0.0-beta.12) (2016-09-09) - -### Bug Fixes - -- **ajaxObservable:** remove implicit dependency to map operator patch ([1744ae9](https://github.com/ReactiveX/RxJS/commit/1744ae9)), closes [#1874](https://github.com/ReactiveX/RxJS/issues/1874) -- **AjaxObservable:** return null value from JSON.Parse (#1904) ([6ba374e](https://github.com/ReactiveX/RxJS/commit/6ba374e)) -- **catch:** removed unneeded overload for catch ([dd0e586](https://github.com/ReactiveX/RxJS/commit/dd0e586)) -- **max:** do not return comparer values ([f454e93](https://github.com/ReactiveX/RxJS/commit/f454e93)), closes [#1892](https://github.com/ReactiveX/RxJS/issues/1892) -- **min:** do not return comparer values ([222fd17](https://github.com/ReactiveX/RxJS/commit/222fd17)), closes [#1892](https://github.com/ReactiveX/RxJS/issues/1892) -- **operators:** export reserved name operators on prototype ([34c39dd](https://github.com/ReactiveX/RxJS/commit/34c39dd)), closes [#1924](https://github.com/ReactiveX/RxJS/issues/1924) -- **VirtualTimeScheduler:** remove default maxFrame limit ([1de86f1](https://github.com/ReactiveX/RxJS/commit/1de86f1)), closes [#1889](https://github.com/ReactiveX/RxJS/issues/1889) -- **WebSocketSubject:** pass constructor errors onto observable ([49c7d67](https://github.com/ReactiveX/RxJS/commit/49c7d67)) - -### Features - -- **operator:** Add repeatWhen operator ([c288d88](https://github.com/ReactiveX/RxJS/commit/c288d88)) -- **sequenceEqual:** adds sequenceEqual operator ([3c30293](https://github.com/ReactiveX/RxJS/commit/3c30293)), closes [#1882](https://github.com/ReactiveX/RxJS/issues/1882) - - - -# [5.0.0-beta.11](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.10...v5.0.0-beta.11) (2016-08-09) - -### Bug Fixes - -- **ajaxObservable:** only set default Content-Type header when no body is sent (#1830) ([5a895e8](https://github.com/ReactiveX/RxJS/commit/5a895e8)) -- **AjaxObservable:** drop resultSelector support in ajax method ([7a77437](https://github.com/ReactiveX/RxJS/commit/7a77437)), closes [#1783](https://github.com/ReactiveX/RxJS/issues/1783) -- **AsyncSubject:** do not allow change value after complete ([801f282](https://github.com/ReactiveX/RxJS/commit/801f282)), closes [#1800](https://github.com/ReactiveX/RxJS/issues/1800) -- **BoundNodeCallbackObservable:** cast to `any` to access to private field in `source` ([54f342f](https://github.com/ReactiveX/RxJS/commit/54f342f)) -- **catch:** accept selector returns ObservableInput ([e55c62d](https://github.com/ReactiveX/RxJS/commit/e55c62d)), closes [#1857](https://github.com/ReactiveX/RxJS/issues/1857) -- **combineLatest:** emit unique array instances with the default projection ([2e30fd1](https://github.com/ReactiveX/RxJS/commit/2e30fd1)) -- **Observable.from:** standardise arguments (remove map/context) ([aa30af2](https://github.com/ReactiveX/RxJS/commit/aa30af2)) -- **schedulers:** fix asap and animationFrame schedulers to execute across async boundaries. (#182 ([548ec2a](https://github.com/ReactiveX/RxJS/commit/548ec2a)), closes [(#1820](https://github.com/(/issues/1820) [#1814](https://github.com/ReactiveX/RxJS/issues/1814) -- **subscribeToResult:** update subscription to iterables ([5d6339a](https://github.com/ReactiveX/RxJS/commit/5d6339a)) -- **WebSocketSubject:** prevent early close (#1831) ([848a527](https://github.com/ReactiveX/RxJS/commit/848a527)), closes [(#1831](https://github.com/(/issues/1831) - -### Features - -- **fromEvent:** Pass through event listener options (#1845) ([8f0dc01](https://github.com/ReactiveX/RxJS/commit/8f0dc01)) -- **PairsObservable:** add PairsObservable creation method ([26bafff](https://github.com/ReactiveX/RxJS/commit/26bafff)), closes [#1804](https://github.com/ReactiveX/RxJS/issues/1804) - -### BREAKING CHANGES - -- Observable.from: - Observable.from no longer supports the optional map function and associated context argument. - This change has been reflected in the related constructors and their properties have been standardised. -- AjaxObservable: ajax.\*() method no longer support resultSelector, encourage to use `map` instead - - - -# [5.0.0-beta.10](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.9...v5.0.0-beta.10) (2016-07-06) - -### Bug Fixes - -- **AjaxObservable:** ignore content-type for formdata (#1746) ([43d05e7](https://github.com/ReactiveX/RxJS/commit/43d05e7)) -- **AjaxObservable:** support withCredentials for CORS request ([8084572](https://github.com/ReactiveX/RxJS/commit/8084572)), closes [#1732](https://github.com/ReactiveX/RxJS/issues/1732) [#1711](https://github.com/ReactiveX/RxJS/issues/1711) -- **babel:** fix an issue where babel could not compile `Scheduler.async` (#1807) ([12c5c74](https://github.com/ReactiveX/RxJS/commit/12c5c74)), closes [(#1807](https://github.com/(/issues/1807) [#1806](https://github.com/ReactiveX/RxJS/issues/1806) -- **bufferTime:** handle closing context when synchronously unsubscribed ([4ce4433](https://github.com/ReactiveX/RxJS/commit/4ce4433)), closes [#1763](https://github.com/ReactiveX/RxJS/issues/1763) -- **multicast:** Fixes multicast with selector to create a new source connection per subscriber. ([c3ac852](https://github.com/ReactiveX/RxJS/commit/c3ac852)), closes [(#1774](https://github.com/(/issues/1774) -- **Subject:** allow optional next value in type definition ([3e0c6d9](https://github.com/ReactiveX/RxJS/commit/3e0c6d9)), closes [#1728](https://github.com/ReactiveX/RxJS/issues/1728) -- **WebSocketSubject:** respect WebSocketCtor, support source/destination arguments in constructor. (#179 ([cd8cdd0](https://github.com/ReactiveX/RxJS/commit/cd8cdd0)), closes [#1745](https://github.com/ReactiveX/RxJS/issues/1745) [#1784](https://github.com/ReactiveX/RxJS/issues/1784) - - - -# [5.0.0-beta.9](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.8...v5.0.0-beta.9) (2016-06-14) - -### Bug Fixes - -- **cache:** get correct caching behavior (#1765) ([cb0b806](https://github.com/ReactiveX/RxJS/commit/cb0b806)), closes [#1628](https://github.com/ReactiveX/RxJS/issues/1628) -- **ConnectableObservable:** fix ConnectableObservable connection handling issue ([41ce80c](https://github.com/ReactiveX/RxJS/commit/41ce80c)) -- **typings:** make HotObservable.\_subscribe protected ([1c3d6ea](https://github.com/ReactiveX/RxJS/commit/1c3d6ea)) -- **WebSocketSubject:** WebSocketSubject will now chain operators properly (#1752) ([bf54db4](https://github.com/ReactiveX/RxJS/commit/bf54db4)), closes [#1745](https://github.com/ReactiveX/RxJS/issues/1745) -- **window:** don't track internal window subjects as subscriptions. ([f3357b9](https://github.com/ReactiveX/RxJS/commit/f3357b9)) - -### Performance Improvements - -- **fromEventPattern:** ~3x improvement in speed ([3dc1c00](https://github.com/ReactiveX/RxJS/commit/3dc1c00)) - - - -# [5.0.0-beta.8](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.7...v5.0.0-beta.8) (2016-05-22) - -### Bug Fixes - -- **AnonymousSubject:** allow anonymous observers as destination ([0e2c28b](https://github.com/ReactiveX/RxJS/commit/0e2c28b)) -- **combineLatest:** rxjs/observable/combineLatest is now properly exported ([21fab73](https://github.com/ReactiveX/RxJS/commit/21fab73)), closes [#1722](https://github.com/ReactiveX/RxJS/issues/1722) -- **ConnectableObservable:** fix race conditions in ConnectableObservable and refCount. ([d1412bc](https://github.com/ReactiveX/RxJS/commit/d1412bc)) -- **Rx:** remove kitchenSink and DOM, let Rx export all ([f5090b4](https://github.com/ReactiveX/RxJS/commit/f5090b4)), closes [#1650](https://github.com/ReactiveX/RxJS/issues/1650) -- **ScalarObservable:** set \_isScalar to false when initialized with a scheduler ([5037b3a](https://github.com/ReactiveX/RxJS/commit/5037b3a)) -- **Subject:** correct Subject behaviors to be more like Rx4 ([ba9ef2b](https://github.com/ReactiveX/RxJS/commit/ba9ef2b)) -- **subscriptions:** fixes bug that tracked subscriber subscriptions twice. ([29ff794](https://github.com/ReactiveX/RxJS/commit/29ff794)) - -### Features - -- **bufferTime:** add `maxBufferSize` optional argument ([cf45540](https://github.com/ReactiveX/RxJS/commit/cf45540)), closes [#1295](https://github.com/ReactiveX/RxJS/issues/1295) -- **multicast:** subjectfactory allows selectors ([32fa3a4](https://github.com/ReactiveX/RxJS/commit/32fa3a4)) -- **onErrorResumeNext:** add onErrorResumeNext operator ([51e022b](https://github.com/ReactiveX/RxJS/commit/51e022b)), closes [#1665](https://github.com/ReactiveX/RxJS/issues/1665) -- **publish:** support optional selectors ([0e5991d](https://github.com/ReactiveX/RxJS/commit/0e5991d)), closes [#1629](https://github.com/ReactiveX/RxJS/issues/1629) - -### Performance Improvements - -- **combineLatest:** avoid splice and indexOf ([33599cd](https://github.com/ReactiveX/RxJS/commit/33599cd)) - -### BREAKING CHANGES - -- Subject: Subjects no longer duck-type as Subscriptions -- Subject: Subjects will no longer throw when re-subscribed to if they are not unsubscribed -- Subject: Subjects no longer automatically unsubscribe when completed or errored - BREAKING CHANGE: Minor scheduling changes to groupBy to ensure proper emission ordering -- Rx: `Rx.kitchenSink` and `Rx.DOM` are removed, `Rx` - export everything. - - - -# [5.0.0-beta.7](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.6...v5.0.0-beta.7) (2016-04-27) - -### Bug Fixes - -- **race:** handle observables completes immediately ([abac3d1](https://github.com/ReactiveX/RxJS/commit/abac3d1)), closes [#1615](https://github.com/ReactiveX/RxJS/issues/1615) -- **scan:** accumulator passes current index ([a3ec896](https://github.com/ReactiveX/RxJS/commit/a3ec896)), closes [#1614](https://github.com/ReactiveX/RxJS/issues/1614) - -### Features - -- **Observable.generate:** add generate static creation method ([c03434c](https://github.com/ReactiveX/RxJS/commit/c03434c)) - - - -# [5.0.0-beta.6](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.5...v5.0.0-beta.6) (2016-04-12) - -### Bug Fixes - -- **AjaxObservable:** support json responseType on IE ([bba13d8](https://github.com/ReactiveX/RxJS/commit/bba13d8)), closes [#1381](https://github.com/ReactiveX/RxJS/issues/1381) -- **bufferToggle:** accepts closing selector returns promise ([b1c575c](https://github.com/ReactiveX/RxJS/commit/b1c575c)) -- **bufferToggle:** accepts promise as openings ([3d22c7a](https://github.com/ReactiveX/RxJS/commit/3d22c7a)) -- **bufferToggle:** handle closingSelector completes immediately ([02239fb](https://github.com/ReactiveX/RxJS/commit/02239fb)) -- **typings:** explicitly export typings for arguments to functions that destructure configuration objects ([ef305af](https://github.com/ReactiveX/RxJS/commit/ef305af)) - -### Features - -- **UnsubscriptionError:** add messages from inner errors to output message ([dd01279](https://github.com/ReactiveX/RxJS/commit/dd01279)), closes [#1590](https://github.com/ReactiveX/RxJS/issues/1590) - -### Performance Improvements - -- **DeferSubscriber:** split up 'tryDefer()' into a method to call a factory function. ([566f46b](https://github.com/ReactiveX/RxJS/commit/566f46b)) - - - -# [5.0.0-beta.5](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.4...v5.0.0-beta.5) (2016-04-05) - -### Bug Fixes - -- **take:** make 'take' unsubscribe when it reaches the total ([9858aa3](https://github.com/ReactiveX/RxJS/commit/9858aa3)) - -### BREAKING CHANGES - -- Operator: `Operator.prototype.call` has been refactored to include both the destination Subscriber, and the source Observable - the Operator is now responsible for describing it's own subscription process. ([26423f4](https://github.com/ReactiveX/rxjs/pull/1570/commits/26423f4)) - - - -# [5.0.0-beta.4](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.3...v5.0.0-beta.4) (2016-03-29) - -### Bug Fixes - -- **AjaxObservable:** enhance compatibility ([0ac7e1e](https://github.com/ReactiveX/RxJS/commit/0ac7e1e)) -- **Observable.if:** accept promise as source ([147166e](https://github.com/ReactiveX/RxJS/commit/147166e)) -- **mergeMap:** allow concurrent to be set as the second argument for mergeMap and mergeMapTo ([c003468](https://github.com/ReactiveX/RxJS/commit/c003468)) -- **observable:** ensure the subscriber chain is complete before calling this.\_subscribe ([1631224](https://github.com/ReactiveX/RxJS/commit/1631224)) -- **Symbol:** fixed issue where \$\$observable is not defined ([e66b2d8](https://github.com/ReactiveX/RxJS/commit/e66b2d8)) -- **Observable.using:** accepts factory returns promise ([f8d7d1b](https://github.com/ReactiveX/RxJS/commit/f8d7d1b)) -- **windowToggle:** handle closingSelector completes immediately ([c755587](https://github.com/ReactiveX/RxJS/commit/c755587)), closes [#1487](https://github.com/ReactiveX/RxJS/issues/1487) - -### Features - -- **ajax:** add FormData support in AjaxObservable and add percent encoding for parameters ([1f6119c](https://github.com/ReactiveX/RxJS/commit/1f6119c)) -- **Subscription:** `add()` now returns a Subscription reference ([a3f4552](https://github.com/ReactiveX/RxJS/commit/a3f4552)) -- **timestamp:** add timestamp operator ([80b1646](https://github.com/ReactiveX/RxJS/commit/80b1646)), closes [#1515](https://github.com/ReactiveX/RxJS/issues/1515) - -### Performance Improvements - -- **forkJoin:** improve forkJoin perf slightly by removing unnecessary context tracking ([280b985](https://github.com/ReactiveX/RxJS/commit/280b985)) - -### BREAKING CHANGES - -- Observable: `Observable.fromArray` was removed since it's deprecated on RxJS 4. You should use `Observable.from` instead. - - - -# [5.0.0-beta.3](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.2...v5.0.0-beta.3) (2016-03-21) - -### Bug Fixes - -- **AjaxObservable:** update type definition for AjaxObservable ([3f5c269](https://github.com/ReactiveX/RxJS/commit/3f5c269)), closes [#1382](https://github.com/ReactiveX/RxJS/issues/1382) -- **deferObservable:** accepts factory returns promise ([0cb44e1](https://github.com/ReactiveX/RxJS/commit/0cb44e1)) -- **do:** fix do operator to invoke observer message handlers in the right context. ([67a2f25](https://github.com/ReactiveX/RxJS/commit/67a2f25)) -- **exhaustMap:** remove innersubscription when it completes ([7ca0859](https://github.com/ReactiveX/RxJS/commit/7ca0859)) -- **forEach:** ensure that teardown logic is called when nextHandler throws ([c50f528](https://github.com/ReactiveX/RxJS/commit/c50f528)), closes [#1411](https://github.com/ReactiveX/RxJS/issues/1411) -- **forkJoin:** accepts observables emitting null or undefined ([6279d6b](https://github.com/ReactiveX/RxJS/commit/6279d6b)), closes [#1362](https://github.com/ReactiveX/RxJS/issues/1362) -- **forkJoin:** dispose the inner subscriptions when the outer subscription is disposed ([c7bf30c](https://github.com/ReactiveX/RxJS/commit/c7bf30c)) -- **FutureAction:** add support for periodic scheduling with setInterval instead of setTimeout ([c4f5408](https://github.com/ReactiveX/RxJS/commit/c4f5408)) -- **Observable:** introduce Subscribable interface that will be used instead of Observable in input ([2256e7b](https://github.com/ReactiveX/RxJS/commit/2256e7b)) -- **Observable.prototype.forEach:** removed thisArg to match es-observable spec ([d5f1bcd](https://github.com/ReactiveX/RxJS/commit/d5f1bcd)) -- **package.json:** install typings only after packages are installed ([a48d796](https://github.com/ReactiveX/RxJS/commit/a48d796)) -- **Schedulers:** ensure schedulers can be reused after error in execution ([202b79a](https://github.com/ReactiveX/RxJS/commit/202b79a)) -- **takeLast:** fix takeLast behavior to emit correct order ([73eb658](https://github.com/ReactiveX/RxJS/commit/73eb658)), closes [#1407](https://github.com/ReactiveX/RxJS/issues/1407) -- **typings:** set map function parameter for Observable.from as optional ([efa4dc3](https://github.com/ReactiveX/RxJS/commit/efa4dc3)) - -### Features - -- **AsyncScheduler:** add AsyncScheduler implementation ([4486c1f](https://github.com/ReactiveX/RxJS/commit/4486c1f)) -- **if:** add static Observable.if creation operator. ([f7ff7ec](https://github.com/ReactiveX/RxJS/commit/f7ff7ec)) -- **let:** adds the let operator to Rx.KitchenSink ([dca6504](https://github.com/ReactiveX/RxJS/commit/dca6504)) -- **using:** add static Observable.using creation operator. ([6c76593](https://github.com/ReactiveX/RxJS/commit/6c76593)) - -### BREAKING CHANGES - -- Observable.prototype.forEach: thisArg removed to match es-observable spec - - - -# [5.0.0-beta.2](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.1...v5.0.0-beta.2) (2016-02-10) - -### Bug Fixes - -- **ajax:** fixes error in Chrome accessing responseText when responseType isn't text. ([f3e2f73](https://github.com/ReactiveX/RxJS/commit/f3e2f73)) -- **benchpress:** fix issues with benchmarks ([16894bb](https://github.com/ReactiveX/RxJS/commit/16894bb)) -- **every:** remove eager predicate calls ([74c2c44](https://github.com/ReactiveX/RxJS/commit/74c2c44)) -- **forkJoin:** fix forkJoin to complete if sources Array is empty. ([412b13b](https://github.com/ReactiveX/RxJS/commit/412b13b)) -- **groupBy:** does not emit on unsubscribed group ([6d08705](https://github.com/ReactiveX/RxJS/commit/6d08705)) -- **groupBy:** fix groupBy to use lift(), supports composability ([815cfae](https://github.com/ReactiveX/RxJS/commit/815cfae)), closes [#1085](https://github.com/ReactiveX/RxJS/issues/1085) -- **merge/concat:** passed scalar observables will now complete properly ([c01b92f](https://github.com/ReactiveX/RxJS/commit/c01b92f)), closes [#1150](https://github.com/ReactiveX/RxJS/issues/1150) -- **MergeMapSubscriber:** clarify type definitions for MergeMapSubscriber's members ([4ee5f02](https://github.com/ReactiveX/RxJS/commit/4ee5f02)) -- **Observable.forEach:** errors thrown in nextHandler reject returned promise ([c5ead88](https://github.com/ReactiveX/RxJS/commit/c5ead88)), closes [#1184](https://github.com/ReactiveX/RxJS/issues/1184) -- **Observer:** fix typing to allow observation via partial observables with PartialObservable and lift ([603c9eb](https://github.com/ReactiveX/RxJS/commit/603c9eb)) -- **windowTime:** does not emit on unsubscribed window ([595f4ef](https://github.com/ReactiveX/RxJS/commit/595f4ef)) - -### Features - -- **cache:** add cache operator ([4308a04](https://github.com/ReactiveX/RxJS/commit/4308a04)) -- **delayWhen:** add delayWhen operator ([17122f9](https://github.com/ReactiveX/RxJS/commit/17122f9)) -- **distinct:** add distinct operator ([94a034d](https://github.com/ReactiveX/RxJS/commit/94a034d)) -- **distinctKey:** add distinctKey operator ([fe4d57f](https://github.com/ReactiveX/RxJS/commit/fe4d57f)) -- **from:** allow Observable.from to handle array-like objects ([7245005](https://github.com/ReactiveX/RxJS/commit/7245005)) -- **MapPolyfill:** implement clear interface ([e3fbd05](https://github.com/ReactiveX/RxJS/commit/e3fbd05)) -- **operator:** adds inspect and inspectTime operators ([54f957b](https://github.com/ReactiveX/RxJS/commit/54f957b)) -- **OuterSubscriber:** notifyNext passes innersubscriber when next emits ([1df8928](https://github.com/ReactiveX/RxJS/commit/1df8928)), closes [#1250](https://github.com/ReactiveX/RxJS/issues/1250) -- **Subject:** implement asObservable ([aca3dd0](https://github.com/ReactiveX/RxJS/commit/aca3dd0)), closes [#1108](https://github.com/ReactiveX/RxJS/issues/1108) -- **takeLast:** adds takeLast operator. ([3583cd3](https://github.com/ReactiveX/RxJS/commit/3583cd3)) - -### Performance Improvements - -- **catch:** remove tryCatch/errorObject for custom tryCatching, 1.3M -> 1.5M ops/sec ([35caf74](https://github.com/ReactiveX/RxJS/commit/35caf74)) -- **combineLatest:** remove tryCatch/errorObject, 156k -> 221k ops/sec ([1c7d639](https://github.com/ReactiveX/RxJS/commit/1c7d639)) -- **count:** remove tryCatch/errorObject for custom tryCatching, 1.84M -> 1.97M ops/sec ([869718d](https://github.com/ReactiveX/RxJS/commit/869718d)) -- **debounce:** remove tryCatch/errorObject for custom tryCatching ([90bf3f1](https://github.com/ReactiveX/RxJS/commit/90bf3f1)) -- **distinct:** increase perf from 60% of Rx4 to 1000% Rx4 ([d026c41](https://github.com/ReactiveX/RxJS/commit/d026c41)) -- **do:** remove tryCatch/errorObject use, 104k -> 263k ops/sec improvement ([ccba39d](https://github.com/ReactiveX/RxJS/commit/ccba39d)) -- **every:** remove tryCatch/errorObject (~1.8x improvement) ([14afeb6](https://github.com/ReactiveX/RxJS/commit/14afeb6)) -- **exhaustMap:** remove tryCatch/errorObject (~10% improvement) ([a55f459](https://github.com/ReactiveX/RxJS/commit/a55f459)) -- **filter:** remove tryCatch/errorObject for 2x perf improvement ([086c4bf](https://github.com/ReactiveX/RxJS/commit/086c4bf)) -- **find:** remove tryCatch/errorObject (~2x improvement) ([aa35b2a](https://github.com/ReactiveX/RxJS/commit/aa35b2a)) -- **first:** remove tryCatch/errorObject for custom tryCatching, 970k ops -> 1.27M ops/sec ([d8c835a](https://github.com/ReactiveX/RxJS/commit/d8c835a)) -- **groupBy:** remove tryCatch/errorObject for custom tryCatching, 38% faster. ([40c43f7](https://github.com/ReactiveX/RxJS/commit/40c43f7)) -- **last:** remove tryCatch/errorObject for custom tryCatching, 960k -> 1.38M ops/sec ([243ace3](https://github.com/ReactiveX/RxJS/commit/243ace3)) -- **map:** 2x increase from removing tryCatch/errorObject ([231f729](https://github.com/ReactiveX/RxJS/commit/231f729)) -- **mergeMap:** extra 1x factor gains from custom tryCatch member function ([c4ce2fb](https://github.com/ReactiveX/RxJS/commit/c4ce2fb)) -- **mergeMapTo:** remove tryCatch/errorObject (~2x improvement) ([42bcced](https://github.com/ReactiveX/RxJS/commit/42bcced)) -- **reduce:** remove tryCatch/errorObject, optimize calls, 2-3x perf improvement ([6186d46](https://github.com/ReactiveX/RxJS/commit/6186d46)) -- **scan:** remove tryCatch/errorObject for custom tryCatcher 1.75x improvement ([338135d](https://github.com/ReactiveX/RxJS/commit/338135d)) -- **single:** remove tryCatch/errorObject (~2.5x improvement) ([2515cfb](https://github.com/ReactiveX/RxJS/commit/2515cfb)) -- **skipWhile:** remove tryCatch/errorObject (~1.6x improvement) ([cf002db](https://github.com/ReactiveX/RxJS/commit/cf002db)) -- **Subscriber:** double performance adding tryOrUnsub to Subscriber ([4e75466](https://github.com/ReactiveX/RxJS/commit/4e75466)) -- **switchMap:** remove tryCatch/errorObject ~20% improvement ([ec0199f](https://github.com/ReactiveX/RxJS/commit/ec0199f)) -- **switchMapTo:** remove tryCatch/errorObject (~2x improvement) ([c8cf72a](https://github.com/ReactiveX/RxJS/commit/c8cf72a)) -- **takeWhile:** remove tryCatch/errorObject (~6x improvement) ([ef6c3c3](https://github.com/ReactiveX/RxJS/commit/ef6c3c3)) -- **withLatestFrom:** remove tryCatch/errorObject, 92k -> 107k (16% improvement) ([e4ccb44](https://github.com/ReactiveX/RxJS/commit/e4ccb44)) -- **zip:** extra 1x-2x factor gains from custom tryCatch member function ([a1b0e52](https://github.com/ReactiveX/RxJS/commit/a1b0e52)) - -### BREAKING CHANGES - -- Subject: Subject.create arguments have been swapped to match Rx 4 signature. `Subject.create(observable, observer)` is now `Subject.create(observer, observable)` -- Observable patching: Patch files for static observable methods such as `of` and `from` can now be found in `rxjs/add/observable/of`, `rxjs/add/observable/from`, etc. -- Observable modules: Observable modules for subclassed Observables like `PromiseObservable`, `ArrayObservable` are now in appropriately named files like `rxjs/observable/PromiseObservable` and `rxjs/observable/ArrayObservable` - as opposed to `rxjs/observable/fromPromise` and `rxjs/observable/fromArray`, since they're not patching, they simply house the Observable implementations. - - - -# [5.0.0-beta.1](https://github.com/ReactiveX/RxJS/compare/5.0.0-beta.0...v5.0.0-beta.1) (2016-01-13) - -### Bug Fixes - -- **ajax:** ensure post sending values ([7aae0a3](https://github.com/ReactiveX/RxJS/commit/7aae0a3)) -- **ajax:** ensure that headers are set properly ([1100bdd](https://github.com/ReactiveX/RxJS/commit/1100bdd)) -- **ajax:** ensure XHR props are set after open ([4a6a579](https://github.com/ReactiveX/RxJS/commit/4a6a579)) -- **ajax:** ensure XHR send is being called ([c569e3e](https://github.com/ReactiveX/RxJS/commit/c569e3e)) -- **ajax:** remove unnecessary onAbort handling ([ed8240e](https://github.com/ReactiveX/RxJS/commit/ed8240e)) -- **ajax:** response properly based off responseType ([b2a27a2](https://github.com/ReactiveX/RxJS/commit/b2a27a2)) -- **ajax:** should no longer succeed on 300 status ([4d4fa32](https://github.com/ReactiveX/RxJS/commit/4d4fa32)) -- **animationFrame:** req/cancel animationFrame has to be called within the context of root. ([30a11ee](https://github.com/ReactiveX/RxJS/commit/30a11ee)) -- **debounceTime:** align value emit behavior as same as RxJS4 ([5ee11e0](https://github.com/ReactiveX/RxJS/commit/5ee11e0)), closes [#1081](https://github.com/ReactiveX/RxJS/issues/1081) -- **distinctUntilChanged:** implement optional keySelector ([f6a897c](https://github.com/ReactiveX/RxJS/commit/f6a897c)) -- **fromEvent:** added spread operator for emitters that pass multiple arguments ([3f8eabb](https://github.com/ReactiveX/RxJS/commit/3f8eabb)) -- **fromObservable:** expand compatibility for iterating string source ([8f7924f](https://github.com/ReactiveX/RxJS/commit/8f7924f)), closes [#1147](https://github.com/ReactiveX/RxJS/issues/1147) -- **Immediate:** update setImmediate compatibility on IE ([39e6c0e](https://github.com/ReactiveX/RxJS/commit/39e6c0e)), closes [#1163](https://github.com/ReactiveX/RxJS/issues/1163) -- **inspect:** remove inspect and inspectTime operators ([17341a4](https://github.com/ReactiveX/RxJS/commit/17341a4)) -- **Readme:** update link to bundle on npmcdn ([44a8ca7](https://github.com/ReactiveX/RxJS/commit/44a8ca7)) -- **ReplaySubject:** Fix case-sensitive import. ([de31f32](https://github.com/ReactiveX/RxJS/commit/de31f32)) -- **ScalarObservable:** fix issue where scalar map fired twice ([c18c42e](https://github.com/ReactiveX/RxJS/commit/c18c42e)), closes [#1142](https://github.com/ReactiveX/RxJS/issues/1142) [#1140](https://github.com/ReactiveX/RxJS/issues/1140) -- **scheduling:** Fixes bugs in scheduled actions. ([e050f01](https://github.com/ReactiveX/RxJS/commit/e050f01)) -- **Subscriber:** errors in nextHandler no longer propagate to errorHandler ([f42eed2](https://github.com/ReactiveX/RxJS/commit/f42eed2)), closes [#1135](https://github.com/ReactiveX/RxJS/issues/1135) -- **WebSocketSubject:** ensure error codes passed to WebSocket close method ([3b1655e](https://github.com/ReactiveX/RxJS/commit/3b1655e)) -- **WebSocketSubject:** ensure WebSocketSubject can be resubscribed ([861a0c1](https://github.com/ReactiveX/RxJS/commit/861a0c1)) -- **WebSocketSubject:** resultSelector and protocols specifications work properly ([580f69a](https://github.com/ReactiveX/RxJS/commit/580f69a)) - -### Features - -- **ajax:** add resultSelector and improve perf ([6df755f](https://github.com/ReactiveX/RxJS/commit/6df755f)) -- **ajax:** adds ajax methods from rx-dom. ([2ca4236](https://github.com/ReactiveX/RxJS/commit/2ca4236)) -- **bindNodeCallback:** add Observable.bindNodeCallback ([497bb0d](https://github.com/ReactiveX/RxJS/commit/497bb0d)), closes [#736](https://github.com/ReactiveX/RxJS/issues/736) -- **Observable:** add let to allow fluent style query building ([5a2014c](https://github.com/ReactiveX/RxJS/commit/5a2014c)) -- **Observable:** add pairwise operator ([1432e59](https://github.com/ReactiveX/RxJS/commit/1432e59)) -- **Operator:** Expose the Operator interface to library consumers ([29aa3af](https://github.com/ReactiveX/RxJS/commit/29aa3af)) -- **pluck:** add pluck operator ([8026906](https://github.com/ReactiveX/RxJS/commit/8026906)), closes [#1134](https://github.com/ReactiveX/RxJS/issues/1134) -- **race:** add race operator ([ee3b593](https://github.com/ReactiveX/RxJS/commit/ee3b593)) -- **scheduler:** adds animationFrame scheduler. ([e637b78](https://github.com/ReactiveX/RxJS/commit/e637b78)) -- **WebSocketSubject:** add basic WebSocketSubject implementation ([58cd806](https://github.com/ReactiveX/RxJS/commit/58cd806)) -- **WebSocketSubject.multiplex:** add multiplex operator to WebSocketSubject ([904d617](https://github.com/ReactiveX/RxJS/commit/904d617)) - -### BREAKING CHANGES - -- inspect: `inspect` and `inspectTime` were removed. Use `withLatestFrom` instead. -- Subscriber/Observable: errors thrown in nextHandlers by consumer code will no longer propagate to the errorHandler. - - - -# [5.0.0-beta.0](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.14...v5.0.0-beta.0) (2015-12-15) - -### Bug Fixes - -- **micro-perf:** rename immediate to queue scheduler ([fe56b28](https://github.com/ReactiveX/RxJS/commit/fe56b28)), closes [#1040](https://github.com/ReactiveX/RxJS/issues/1040) -- **micro-perf:** use the current scheduler on current-thread tests ([3dff5eb](https://github.com/ReactiveX/RxJS/commit/3dff5eb)) -- **operators:** emit declarations for patch modules ([676f82d](https://github.com/ReactiveX/RxJS/commit/676f82d)) -- **test:** make explicit unsubscription for observable ([7f67b09](https://github.com/ReactiveX/RxJS/commit/7f67b09)) -- **test:** make explicit unsubscription for observable ([65e65e2](https://github.com/ReactiveX/RxJS/commit/65e65e2)) -- **window:** fix window() to dispose window Subjects ([5168f73](https://github.com/ReactiveX/RxJS/commit/5168f73)) -- **windowCount:** fix windowCount to dispose window Subjects ([f29ee29](https://github.com/ReactiveX/RxJS/commit/f29ee29)) -- **windowTime:** fix windowTime to dispose window Subjects ([b73e260](https://github.com/ReactiveX/RxJS/commit/b73e260)) -- **windowToggle:** fix windowToggle to dispose window Subjects ([15ff3f7](https://github.com/ReactiveX/RxJS/commit/15ff3f7)) -- **windowWhen:** fix windowWhen to dispose window Subjects ([91c1941](https://github.com/ReactiveX/RxJS/commit/91c1941)) - -### Features - -- **inspect:** added inspect operator ([f9944ae](https://github.com/ReactiveX/RxJS/commit/f9944ae)) -- **inspectTime:** add inspectTime operator ([6835dcd](https://github.com/ReactiveX/RxJS/commit/6835dcd)) -- **sample:** readd `sample` operator ([e93bffc](https://github.com/ReactiveX/RxJS/commit/e93bffc)) -- **sampleTime:** reimplement `sampleTime` with RxJS 4 behavior ([6b77e69](https://github.com/ReactiveX/RxJS/commit/6b77e69)) -- **TestScheduler:** add createTime() parser to return number ([cb8cf6b](https://github.com/ReactiveX/RxJS/commit/cb8cf6b)) - -### BREAKING CHANGES - -- sampleTime: `sampleTime` now has the same behavior `sample(number, scheduler)` did in RxJS 4 -- sample: `sample` behavior returned to RxJS 4 behavior -- inspectTime: `sampleTime` is now `inspectTime` -- inspect: RxJS 5 `sample` behavior is now `inspect` -- extended operators: All extended operators are now under the same operator directory as all others. This means that - `import "rxjs/add/operator/extended/min"` is now `import "rxjs/add/operator/min"` - - - -# [5.0.0-alpha.14](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.13...v5.0.0-alpha.14) (2015-12-09) - -### Bug Fixes - -- **every:** handle thisArg for scalar and array observables ([eae4b00](https://github.com/ReactiveX/RxJS/commit/eae4b00)) -- **SymbolShim:** ensure for function even if Symbol already exists ([e942776](https://github.com/ReactiveX/RxJS/commit/e942776)), closes [#999](https://github.com/ReactiveX/RxJS/issues/999) -- **SymbolShim:** Symbol polyfill is a function ([1f57157](https://github.com/ReactiveX/RxJS/commit/1f57157)), closes [#988](https://github.com/ReactiveX/RxJS/issues/988) -- **timeoutWith:** fix to avoid unnecessary inner subscription ([6e63752](https://github.com/ReactiveX/RxJS/commit/6e63752)) - -### Features - -- **count:** remove thisArg ([878a1fd](https://github.com/ReactiveX/RxJS/commit/878a1fd)) -- **distinctUntilChanged:** remove thisArg ([bfc52d6](https://github.com/ReactiveX/RxJS/commit/bfc52d6)) -- **exhaust:** rename switchFirst operators to exhaust ([9b565c9](https://github.com/ReactiveX/RxJS/commit/9b565c9)), closes [#915](https://github.com/ReactiveX/RxJS/issues/915) -- **finally:** remove thisArg ([d4b02fc](https://github.com/ReactiveX/RxJS/commit/d4b02fc)) -- **forEach:** add thisArg ([14ffce6](https://github.com/ReactiveX/RxJS/commit/14ffce6)), closes [#878](https://github.com/ReactiveX/RxJS/issues/878) -- **single:** remove thisArg ([43af805](https://github.com/ReactiveX/RxJS/commit/43af805)) - -### BREAKING CHANGES - -- exhaust: switchFirst is now exhaust -- exhaust: switchFirstMap is now exhaustMap -- forEach: Observable.prototype.forEach argument order changed to accommodate thisArg. Optional PromiseCtor argument moved to third arg from second - - - -# [5.0.0-alpha.13](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.12...v5.0.0-alpha.13) (2015-12-08) - -### Bug Fixes - -- **Observable:** fix circular dependency issue. ([b7672f4](https://github.com/ReactiveX/RxJS/commit/b7672f4)) -- **bufferToggle:** fix unsubscriptions of closing Observable ([439b641](https://github.com/ReactiveX/RxJS/commit/439b641)) -- **expand:** accept scheduler parameter ([79e9084](https://github.com/ReactiveX/RxJS/commit/79e9084)), closes [#841](https://github.com/ReactiveX/RxJS/issues/841) -- **publish:** make script generate correct package names ([10563d3](https://github.com/ReactiveX/RxJS/commit/10563d3)) -- **repeat:** preserve Subscriber chain in repeat() ([d9a7328](https://github.com/ReactiveX/RxJS/commit/d9a7328)) -- **retry:** preserve Subscriber chain in retry() ([b429dac](https://github.com/ReactiveX/RxJS/commit/b429dac)) -- **retryWhen:** preserve Subscriber chain in retryWhen() ([c9cb958](https://github.com/ReactiveX/RxJS/commit/c9cb958)) - -### Features - -- **AsapScheduler:** rename NextTickScheduler to AsapScheduler ([3255fb3](https://github.com/ReactiveX/RxJS/commit/3255fb3)), closes [#838](https://github.com/ReactiveX/RxJS/issues/838) -- **BehaviorSubject:** add getValue method to access value ([33b387b](https://github.com/ReactiveX/RxJS/commit/33b387b)), closes [#758](https://github.com/ReactiveX/RxJS/issues/758) -- **BehaviorSubject:** now throws when getValue is called after unsubscription ([1ddf116](https://github.com/ReactiveX/RxJS/commit/1ddf116)) -- **ObjectUnsubscribedError:** add ObjectUnsubscribed error class ([39836af](https://github.com/ReactiveX/RxJS/commit/39836af)) -- **Observable:** subscribe accepts objects with rxSubscriber symbol ([b7672f4](https://github.com/ReactiveX/RxJS/commit/b7672f4)) -- **QueueScheduler:** rename ImmediateScheduler to QueueScheduler ([66eb537](https://github.com/ReactiveX/RxJS/commit/66eb537)) -- **Rx.Symbol.rxSubscriber:** add rxSubscriber symbol ([d4f1670](https://github.com/ReactiveX/RxJS/commit/d4f1670)) -- **Subject:** add rxSubscriber symbol ([d2e4257](https://github.com/ReactiveX/RxJS/commit/d2e4257)) -- **Subscriber:** add rxSubscriber symbol ([7bda360](https://github.com/ReactiveX/RxJS/commit/7bda360)) -- **switchFirstMap:** rename switchMapFirst to switchFirstMap ([eddd4dc](https://github.com/ReactiveX/RxJS/commit/eddd4dc)) - -### BREAKING CHANGES - -- AsapScheduler: `Rx.Scheduler.nextTick` (Rx 4's "default" scheduler) is now `Rx.Scheduler.asap` -- QueueScheduler: `Rx.Scheduler.immediate` (Rx 4's "currentThread" scheduler) is now `Rx.Scheduler.queue` - related #838 -- switchFirstMap: `switchMapFirst` is now `switchFirstMap` - - - -# [5.0.0-alpha.12](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.10...v5.0.0-alpha.12) (2015-12-04) - -### Bug Fixes - -- **AsyncSubject:** emit value when it's subscribed after complete ([ed0eaf6](https://github.com/ReactiveX/RxJS/commit/ed0eaf6)) -- **bindCallback:** only call function once even while scheduled ([8637d47](https://github.com/ReactiveX/RxJS/commit/8637d47)), closes [#881](https://github.com/ReactiveX/RxJS/issues/881) -- **bufferToggle:** fix disposal of subscriptions when errors occur ([a20325c](https://github.com/ReactiveX/RxJS/commit/a20325c)) -- **catch:** fix catch to dispose old subscriptions ([280f7ed](https://github.com/ReactiveX/RxJS/commit/280f7ed)), closes [#763](https://github.com/ReactiveX/RxJS/issues/763) -- **catch:** fix catch() to preserve Subscriber chain ([e1447ac](https://github.com/ReactiveX/RxJS/commit/e1447ac)) -- **concat:** accept scheduler parameter ([8859702](https://github.com/ReactiveX/RxJS/commit/8859702)) -- **ConnectableObservable:** fix ConnectableObservable connectability and refCounting ([aef9578](https://github.com/ReactiveX/RxJS/commit/aef9578)), closes [#678](https://github.com/ReactiveX/RxJS/issues/678) -- **debounce:** Fix debounce to unsubscribe duration Observables ([dea7847](https://github.com/ReactiveX/RxJS/commit/dea7847)) -- **expand:** fix expand's concurrency behavior ([01f86e5](https://github.com/ReactiveX/RxJS/commit/01f86e5)) -- **expand:** terminate recursive call when destination completes ([3b8cf94](https://github.com/ReactiveX/RxJS/commit/3b8cf94)) -- **Observable:** Subjects no longer wrapped in Subscriber ([5cb0f2b](https://github.com/ReactiveX/RxJS/commit/5cb0f2b)), closes [#825](https://github.com/ReactiveX/RxJS/issues/825) [#748](https://github.com/ReactiveX/RxJS/issues/748) -- **Observer:** anonymous observers now allow missing handlers ([a11c763](https://github.com/ReactiveX/RxJS/commit/a11c763)), closes [#723](https://github.com/ReactiveX/RxJS/issues/723) -- **operators:** Remove shareReplay and shareBehavior ([536a6a6](https://github.com/ReactiveX/RxJS/commit/536a6a6)), closes [#710](https://github.com/ReactiveX/RxJS/issues/710) -- **publish:** copy readme and license, remove scripts ([439a2f3](https://github.com/ReactiveX/RxJS/commit/439a2f3)), closes [#845](https://github.com/ReactiveX/RxJS/issues/845) -- **throttleTime:** fix and rename throttleTime operator ([3b0c1f3](https://github.com/ReactiveX/RxJS/commit/3b0c1f3)) -- **TimerObservable:** accepts absolute date for dueTime ([e284fb8](https://github.com/ReactiveX/RxJS/commit/e284fb8)), closes [#648](https://github.com/ReactiveX/RxJS/issues/648) - -### Features - -- **AsyncSubject:** add AsyncSubject ([34c05fe](https://github.com/ReactiveX/RxJS/commit/34c05fe)) -- **bindCallback:** remove thisArg ([feea9a1](https://github.com/ReactiveX/RxJS/commit/feea9a1)) -- **bindCallback:** rename fromCallback to bindCallback ([305d66d](https://github.com/ReactiveX/RxJS/commit/305d66d)), closes [#876](https://github.com/ReactiveX/RxJS/issues/876) -- **callback:** Add Observable.fromCallback ([9f751e7](https://github.com/ReactiveX/RxJS/commit/9f751e7)) -- **combineLatest:** accept array of observable as parameter ([2edd92c](https://github.com/ReactiveX/RxJS/commit/2edd92c)), closes [#594](https://github.com/ReactiveX/RxJS/issues/594) -- **forkJoin:** accept array of observable as parameter ([d45f672](https://github.com/ReactiveX/RxJS/commit/d45f672)) -- **mergeScan:** support concurrency parameter for mergeScan ([fe0eb37](https://github.com/ReactiveX/RxJS/commit/fe0eb37)), closes [#868](https://github.com/ReactiveX/RxJS/issues/868) -- **usage:** add auto-patching operators ([1ab3508](https://github.com/ReactiveX/RxJS/commit/1ab3508)), closes [#860](https://github.com/ReactiveX/RxJS/issues/860) -- **skipWhile:** add skipWhile operator ([a2244e0](https://github.com/ReactiveX/RxJS/commit/a2244e0)) -- **switchFirst:** add switchFirst and switchMapFirst ([71e3dd1](https://github.com/ReactiveX/RxJS/commit/71e3dd1)) -- **publishLast:** add publishLast operator ([9bef228](https://github.com/ReactiveX/RxJS/commit/9bef228)), closes [#883](https://github.com/ReactiveX/RxJS/issues/883) -- **takeWhile:** add takeWhile operator ([48e53ea](https://github.com/ReactiveX/RxJS/commit/48e53ea)), closes [#695](https://github.com/ReactiveX/RxJS/issues/695) -- **takeWhile:** remove thisArg ([b5219a4](https://github.com/ReactiveX/RxJS/commit/b5219a4)) -- **throttle:** add throttle operator with durationSelector ([c3bf3e7](https://github.com/ReactiveX/RxJS/commit/c3bf3e7)), closes [#496](https://github.com/ReactiveX/RxJS/issues/496) - -### Performance Improvements - -- **ReplaySubject:** fix memory leak of growing buffer ([0a73b4d](https://github.com/ReactiveX/RxJS/commit/0a73b4d)), closes [#578](https://github.com/ReactiveX/RxJS/issues/578) - - - -# [5.0.0-alpha.11](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.10...v5.0.0-alpha.11) (2015-12-01) - -### Bug Fixes - -- **catch:** fix catch to dispose old subscriptions ([280f7ed](https://github.com/ReactiveX/RxJS/commit/280f7ed)), closes [#763](https://github.com/ReactiveX/RxJS/issues/763) -- **concat:** accept scheduler parameter ([8859702](https://github.com/ReactiveX/RxJS/commit/8859702)) -- **ConnectableObservable:** fix ConnectableObservable connectability and refCounting ([aef9578](https://github.com/ReactiveX/RxJS/commit/aef9578)), closes [#678](https://github.com/ReactiveX/RxJS/issues/678) -- **debounce:** Fix debounce to unsubscribe duration Observables ([dea7847](https://github.com/ReactiveX/RxJS/commit/dea7847)) -- **expand:** fix expand's concurrency behavior ([01f86e5](https://github.com/ReactiveX/RxJS/commit/01f86e5)) -- **expand:** terminate recursive call when destination completes ([3b8cf94](https://github.com/ReactiveX/RxJS/commit/3b8cf94)) -- **Observer:** anonymous observers now allow missing handlers ([a11c763](https://github.com/ReactiveX/RxJS/commit/a11c763)), closes [#723](https://github.com/ReactiveX/RxJS/issues/723) -- **operators:** Remove shareReplay and shareBehavior ([536a6a6](https://github.com/ReactiveX/RxJS/commit/536a6a6)), closes [#710](https://github.com/ReactiveX/RxJS/issues/710) -- **test:** make explicit unsubscription for observable ([505f5b7](https://github.com/ReactiveX/RxJS/commit/505f5b7)) -- **throttleTime:** fix and rename throttleTime operator ([3b0c1f3](https://github.com/ReactiveX/RxJS/commit/3b0c1f3)) -- **TimerObservable:** accepts absolute date for dueTime ([e284fb8](https://github.com/ReactiveX/RxJS/commit/e284fb8)), closes [#648](https://github.com/ReactiveX/RxJS/issues/648) - -### Features - -- **callback:** Add Observable.fromCallback ([9f751e7](https://github.com/ReactiveX/RxJS/commit/9f751e7)) -- **combineLatest:** accept array of observable as parameter ([2edd92c](https://github.com/ReactiveX/RxJS/commit/2edd92c)), closes [#594](https://github.com/ReactiveX/RxJS/issues/594) -- **forkJoin:** accept array of observable as parameter ([d45f672](https://github.com/ReactiveX/RxJS/commit/d45f672)) -- **operator:** add skipWhile operator ([a2244e0](https://github.com/ReactiveX/RxJS/commit/a2244e0)) -- **operator:** add switchFirst and switchMapFirst ([71e3dd1](https://github.com/ReactiveX/RxJS/commit/71e3dd1)) -- **takeWhile:** add takeWhile operator ([48e53ea](https://github.com/ReactiveX/RxJS/commit/48e53ea)), closes [#695](https://github.com/ReactiveX/RxJS/issues/695) -- **throttle:** add throttle operator with durationSelector ([c3bf3e7](https://github.com/ReactiveX/RxJS/commit/c3bf3e7)), closes [#496](https://github.com/ReactiveX/RxJS/issues/496) - -### Performance Improvements - -- **ReplaySubject:** fix memory leak of growing buffer ([0a73b4d](https://github.com/ReactiveX/RxJS/commit/0a73b4d)), closes [#578](https://github.com/ReactiveX/RxJS/issues/578) - - - -# [5.0.0-alpha.10](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.9...v5.0.0-alpha.10) (2015-11-10) - -### Bug Fixes - -- **Immediate:** set immediate should no longer throw in Chrome ([a3de7d9](https://github.com/ReactiveX/RxJS/commit/a3de7d9)), closes [#690](https://github.com/ReactiveX/RxJS/issues/690) - - - -# [5.0.0-alpha.9](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.8...v5.0.0-alpha.9) (2015-11-10) - -### Bug Fixes - -- **util:** incorrect Symbol.iterator for es6-shim ([15bf32c](https://github.com/ReactiveX/RxJS/commit/15bf32c)) - -### Features - -- **forkJoin:** accept promise, resultselector as parameter of forkJoin ([190f349](https://github.com/ReactiveX/RxJS/commit/190f349)), closes [#507](https://github.com/ReactiveX/RxJS/issues/507) - - - -# [5.0.0-alpha.8](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.7...v5.0.0-alpha.8) (2015-11-06) - -### Bug Fixes - -- **concat:** handle a given scheduler correctly ([8745216](https://github.com/ReactiveX/RxJS/commit/8745216)) -- **package.json:** loosen the engines/npm semver range to prevent false warnings ([df791c6](https://github.com/ReactiveX/RxJS/commit/df791c6)) -- **skipUntil:** unsubscribe source when it completes ([8a4162b](https://github.com/ReactiveX/RxJS/commit/8a4162b)), closes [#577](https://github.com/ReactiveX/RxJS/issues/577) -- **take:** deal with total <= 0 and add tests ([c5cc06f](https://github.com/ReactiveX/RxJS/commit/c5cc06f)) -- **windowWhen:** fix windowWhen with regard to unsubscriptions ([8174947](https://github.com/ReactiveX/RxJS/commit/8174947)) - -### Features - -- **mergeScan:** add new mergeScan operator. ([0ebb5bd](https://github.com/ReactiveX/RxJS/commit/0ebb5bd)) -- **multicast:** support both Subject and subjectFactory arguments ([f779027](https://github.com/ReactiveX/RxJS/commit/f779027)) - -### BREAKING CHANGES - -- **publish:** reverted to RxJS 4 behavior -- **publishBehavior:** reverted to RxJS 4 behavior -- **publishReplay:** reverted to RxJS 4 behavior -- **shareBehavior:** removed -- **shareReplay:** removed - - - -# [5.0.0-alpha.7](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.6...v5.0.0-alpha.7) (2015-10-27) - -### Bug Fixes - -- **NextTickAction:** fix unsubscription behavior ([3d8264c](https://github.com/ReactiveX/RxJS/commit/3d8264c)), closes [#582](https://github.com/ReactiveX/RxJS/issues/582) -- **buffer:** cleanup notifier subscription when unsubscribed ([1b30aa9](https://github.com/ReactiveX/RxJS/commit/1b30aa9)) -- **delay:** accepts absolute time delay ([b109100](https://github.com/ReactiveX/RxJS/commit/b109100)) -- **mergeMapTo:** mergeMapTo result should complete ([6f9859e](https://github.com/ReactiveX/RxJS/commit/6f9859e)) -- **operator:** update type definitions for union types ([9d90c75](https://github.com/ReactiveX/RxJS/commit/9d90c75)), closes [#581](https://github.com/ReactiveX/RxJS/issues/581) -- **repeat:** fix inner subscription semantics for repeat ([f67a596](https://github.com/ReactiveX/RxJS/commit/f67a596)), closes [#554](https://github.com/ReactiveX/RxJS/issues/554) -- **switchMapTo:** reimplement switchMapTo to pass tests ([d4789cd](https://github.com/ReactiveX/RxJS/commit/d4789cd)) -- **takeUntil:** unsubscribe notifier when it completes ([9415196](https://github.com/ReactiveX/RxJS/commit/9415196)) - -### Features - -- **operator:** add max operator ([7fda036](https://github.com/ReactiveX/RxJS/commit/7fda036)) -- **operator:** add min operator ([79cb6cf](https://github.com/ReactiveX/RxJS/commit/79cb6cf)) -- **shareBehavior:** add shareBehavior and its tests ([97ff1ec](https://github.com/ReactiveX/RxJS/commit/97ff1ec)) - - - -# [5.0.0-alpha.6](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.5...v5.0.0-alpha.6) (2015-10-17) - -### Bug Fixes - -- **retryWhen:** fix internal unsubscriptions ([5aff5e8](https://github.com/ReactiveX/RxJS/commit/5aff5e8)) -- **scan:** scan now behaves like RxJS 4 scan ([27f9c09](https://github.com/ReactiveX/RxJS/commit/27f9c09)) - - - -# [5.0.0-alpha.5](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.4...v5.0.0-alpha.5) (2015-10-16) - -### Bug Fixes - -- **bufferToggle:** fix bugs in order to pass tests ([949fa31](https://github.com/ReactiveX/RxJS/commit/949fa31)) -- **mergeAll:** fix mergeAll micro performance tests to use mapTo instead of map. ([616e86e](https://github.com/ReactiveX/RxJS/commit/616e86e)) -- **package:** correct typings path ([a501b06](https://github.com/ReactiveX/RxJS/commit/a501b06)) -- **repeat:** add additional resubscription behavior ([4f9f33b](https://github.com/ReactiveX/RxJS/commit/4f9f33b)), closes [#516](https://github.com/ReactiveX/RxJS/issues/516) -- **retry:** fix internal unsubscriptions for retry ([cc92f45](https://github.com/ReactiveX/RxJS/commit/cc92f45)), closes [#546](https://github.com/ReactiveX/RxJS/issues/546) -- **windowToggle:** fix window closing and unsubscription semantics ([0cb21e6](https://github.com/ReactiveX/RxJS/commit/0cb21e6)) - - - -# [5.0.0-alpha.4](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.3...5.0.0-alpha.4) (2015-10-15) - -### Bug Fixes - -- **Subject:** fix missing unsubscribe call ([9dd27d6](https://github.com/ReactiveX/RxJS/commit/9dd27d6)) -- **Subscriber:** avoid implicit any ([08faaa9](https://github.com/ReactiveX/RxJS/commit/08faaa9)) -- **bufferWhen:** onComplete of closings determine buffers ([5d28a38](https://github.com/ReactiveX/RxJS/commit/5d28a38)) -- **fromEvent:** make selector argument optional in fromEvent static method ([71d90b4](https://github.com/ReactiveX/RxJS/commit/71d90b4)) -- **skipUntil:** update skipUntil behavior with error, completion ([6f0d98f](https://github.com/ReactiveX/RxJS/commit/6f0d98f)), closes [#518](https://github.com/ReactiveX/RxJS/issues/518) -- **windowCount:** fix windowCount window opening times ([908ae56](https://github.com/ReactiveX/RxJS/commit/908ae56)), closes [#273](https://github.com/ReactiveX/RxJS/issues/273) - -### Features - -- **operator:** add debounce operator ([a1e652f](https://github.com/ReactiveX/RxJS/commit/a1e652f)), closes [#493](https://github.com/ReactiveX/RxJS/issues/493) -- **operator:** add debounceTime operator ([dd2ba40](https://github.com/ReactiveX/RxJS/commit/dd2ba40)) - -### Performance Improvements - -- **ScalarObservable:** add fast-path for mapping scalar observables ([7b0d3dc](https://github.com/ReactiveX/RxJS/commit/7b0d3dc)) -- **count:** fast-path for counting over scalars ([c35a120](https://github.com/ReactiveX/RxJS/commit/c35a120)) -- **filter:** add fast-path for filtering scalar observables ([e2e8954](https://github.com/ReactiveX/RxJS/commit/e2e8954)) -- **reduce:** add fast-path for reducing over scalar observables ([4c65136](https://github.com/ReactiveX/RxJS/commit/4c65136)) -- **scan:** fast-path for scanning scalars ([0201b92](https://github.com/ReactiveX/RxJS/commit/0201b92)) -- **skip:** fast-path for skip over scalar observable ([9b49936](https://github.com/ReactiveX/RxJS/commit/9b49936)) -- **take:** add fast-path for take over scalars ([33053b1](https://github.com/ReactiveX/RxJS/commit/33053b1)) - - - -# [5.0.0-alpha.3](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.2...5.0.0-alpha.3) (2015-10-13) - -### Bug Fixes - -- **Observable:** fix type signature of some static operators ([e5364de](https://github.com/ReactiveX/RxJS/commit/e5364de)) -- **Subject.create:** ensure operator property not required for Observable subscription ([2259de2](https://github.com/ReactiveX/RxJS/commit/2259de2)), closes [#483](https://github.com/ReactiveX/RxJS/issues/483) -- **TestScheduler:** stop sorting actual results ([51db0b8](https://github.com/ReactiveX/RxJS/commit/51db0b8)), closes [#422](https://github.com/ReactiveX/RxJS/issues/422) -- **benchpress:** update benchpress dependencies and config ([8513eaa](https://github.com/ReactiveX/RxJS/commit/8513eaa)), closes [#348](https://github.com/ReactiveX/RxJS/issues/348) -- **buffer:** change behavior of buffer to more closely match RxJS 4 ([b66592d](https://github.com/ReactiveX/RxJS/commit/b66592d)) -- **combineLatest:** fix type signature ([a3e6deb](https://github.com/ReactiveX/RxJS/commit/a3e6deb)) -- **defer:** fix type signature ([11327b9](https://github.com/ReactiveX/RxJS/commit/11327b9)) -- **empty:** fix type signature ([893cb7e](https://github.com/ReactiveX/RxJS/commit/893cb7e)) -- **fromPromise:** fix type signature ([17415fa](https://github.com/ReactiveX/RxJS/commit/17415fa)) -- **groupBy:** durationSelector cannot keep source alive ([57e4207](https://github.com/ReactiveX/RxJS/commit/57e4207)) -- **groupBy:** fix bugs related to group resets ([23a7574](https://github.com/ReactiveX/RxJS/commit/23a7574)) -- **groupBy:** fix bugs with groupBy ([86992c6](https://github.com/ReactiveX/RxJS/commit/86992c6)) -- **interval:** fix signature type ([9c238c0](https://github.com/ReactiveX/RxJS/commit/9c238c0)) -- **operator:** startWith operator accepts scheduler, multiple values ([d1d339a](https://github.com/ReactiveX/RxJS/commit/d1d339a)) -- **operators:** reorder signature of resultSelectors ([fc1724d](https://github.com/ReactiveX/RxJS/commit/fc1724d)) -- **range:** fix type signature ([9237d0b](https://github.com/ReactiveX/RxJS/commit/9237d0b)) -- **timeout:** fix absolute timeout behavior ([8ec06cf](https://github.com/ReactiveX/RxJS/commit/8ec06cf)) -- **timeout:** update behavior of timeout, timeoutWith ([16bd691](https://github.com/ReactiveX/RxJS/commit/16bd691)) -- **timer:** fix type signature ([fffb96c](https://github.com/ReactiveX/RxJS/commit/fffb96c)) -- **window:** handle closingNotifier errors/completes ([42beff1](https://github.com/ReactiveX/RxJS/commit/42beff1)) - -### Features - -- **TestScheduler:** support unsubscription marbles ([ffb0bb9](https://github.com/ReactiveX/RxJS/commit/ffb0bb9)) -- **count:** add predicate support in count() ([42d1add](https://github.com/ReactiveX/RxJS/commit/42d1add)), closes [#425](https://github.com/ReactiveX/RxJS/issues/425) -- **dematerialize:** add dematerialize operator ([0a8b074](https://github.com/ReactiveX/RxJS/commit/0a8b074)), closes [#475](https://github.com/ReactiveX/RxJS/issues/475) -- **do:** do will now handle an observer as an argument ([c1a4994](https://github.com/ReactiveX/RxJS/commit/c1a4994)), closes [#476](https://github.com/ReactiveX/RxJS/issues/476) -- **first:** add resultSelector ([3c20fcc](https://github.com/ReactiveX/RxJS/commit/3c20fcc)), closes [#417](https://github.com/ReactiveX/RxJS/issues/417) -- **last:** add resultSelector argument ([5a4896c](https://github.com/ReactiveX/RxJS/commit/5a4896c)), closes [#418](https://github.com/ReactiveX/RxJS/issues/418) -- **operator:** add every operator ([d11f32e](https://github.com/ReactiveX/RxJS/commit/d11f32e)) -- **operator:** add timeInterval operator ([6cc0615](https://github.com/ReactiveX/RxJS/commit/6cc0615)) -- **share:** add the share operator ([c36f2be](https://github.com/ReactiveX/RxJS/commit/c36f2be)), closes [#439](https://github.com/ReactiveX/RxJS/issues/439) -- **shareReplay:** add the shareReplay() operator ([65c84ea](https://github.com/ReactiveX/RxJS/commit/65c84ea)) - -### Performance Improvements - -- **ReplaySubject:** remove unnecessary computation ([488ac2e](https://github.com/ReactiveX/RxJS/commit/488ac2e)) - -### BREAKING CHANGES - -- **operators with resultSelectors** (mergeMap, concatMap, switchMap, etc): - The function signature of resultSelectors used to be (innerValue, - outerValue, innerIndex, outerIndex) but this commits changes it to - be (outerValue, innerValue, outerIndex, innerIndex), to match - signatures in RxJS 4. - - - -# [5.0.0-alpha.2](https://github.com/ReactiveX/RxJS/compare/5.0.0-alpha.1...5.0.0-alpha.2) (2015-09-30) - -### Bug Fixes - -- **concat:** let observable concat instead of merge ([c17e832](https://github.com/ReactiveX/RxJS/commit/c17e832)) - -### Features - -- **operator:** add find, findIndex operator ([7c6cc9d](https://github.com/ReactiveX/RxJS/commit/7c6cc9d)) -- **operator:** add first operator ([274c233](https://github.com/ReactiveX/RxJS/commit/274c233)) -- **operator:** add ignoreElements operator ([fe1a952](https://github.com/ReactiveX/RxJS/commit/fe1a952)) -- **zip:** zip now supports never-ending iterables ([a5684ba](https://github.com/ReactiveX/RxJS/commit/a5684ba)), closes [#397](https://github.com/ReactiveX/RxJS/issues/397) - - - -# [5.0.0-alpha.1](https://github.com/ReactiveX/RxJS/compare/0.0.0-prealpha.3...5.0.0-alpha.1) (2015-09-23) - -### Bug Fixes - -- **Promises:** escape promise error trap ([c69088a](https://github.com/ReactiveX/RxJS/commit/c69088a)) -- **TestScheduler:** ensure TestScheduler subscribes to expectations before hot subjects ([b9b2ba5](https://github.com/ReactiveX/RxJS/commit/b9b2ba5)) -- **TestScheduler:** properly schedule actions added dynamically ([069ede4](https://github.com/ReactiveX/RxJS/commit/069ede4)) -- **buffer:** do not emit empty buffer when completes ([252fccb](https://github.com/ReactiveX/RxJS/commit/252fccb)) -- **bufferTime:** inner intervals will now clean up properly ([4ef41b0](https://github.com/ReactiveX/RxJS/commit/4ef41b0)) -- **expand:** Fix expand to stay open until the source Observable completes. ([20ef785](https://github.com/ReactiveX/RxJS/commit/20ef785)) -- **expand:** fix expand operator to match Rx3 ([67f9623](https://github.com/ReactiveX/RxJS/commit/67f9623)) -- **last:** emit value matches with predicate instead of result of predicate ([0f635ee](https://github.com/ReactiveX/RxJS/commit/0f635ee)) -- **merge:** fix issues with async in merge ([7a15304](https://github.com/ReactiveX/RxJS/commit/7a15304)) -- **mergeAll:** merge all will properly handle async observables ([43b63cc](https://github.com/ReactiveX/RxJS/commit/43b63cc)) -- **package:** specify supported npm version ([f72e622](https://github.com/ReactiveX/RxJS/commit/f72e622)) -- **switchAll:** switch all will properly handle async observables ([c2e2d29](https://github.com/ReactiveX/RxJS/commit/c2e2d29)) -- **switchAll/switchLatest:** inner subscriptions should now properly unsub ([38a45f8](https://github.com/ReactiveX/RxJS/commit/38a45f8)), closes [#302](https://github.com/ReactiveX/RxJS/issues/302) - -### Features - -- **combineLatest:** supports promises, iterables, lowercase-o observables and Observables ([ce76e4e](https://github.com/ReactiveX/RxJS/commit/ce76e4e)) -- **config:** add global configuration of Promise capability ([e7eb5d7](https://github.com/ReactiveX/RxJS/commit/e7eb5d7)), closes [#115](https://github.com/ReactiveX/RxJS/issues/115) -- **expand:** now handles promises, iterables and lowercase-o observables ([c5239e9](https://github.com/ReactiveX/RxJS/commit/c5239e9)) -- **mergeAll:** now supports promises, iterables and lowercase-o observables ([4c16aa6](https://github.com/ReactiveX/RxJS/commit/4c16aa6)) -- **operator:** add elementAt operator ([cd562c4](https://github.com/ReactiveX/RxJS/commit/cd562c4)) -- **operator:** add isEmpty operator ([80f72c5](https://github.com/ReactiveX/RxJS/commit/80f72c5)) -- **operator:** add last operator ([d841b11](https://github.com/ReactiveX/RxJS/commit/d841b11)), closes [#304](https://github.com/ReactiveX/RxJS/issues/304) [#306](https://github.com/ReactiveX/RxJS/issues/306) -- **operator:** add single operator ([49484a2](https://github.com/ReactiveX/RxJS/commit/49484a2)) -- **switch:** add promise, iterable and array support ([24fdd34](https://github.com/ReactiveX/RxJS/commit/24fdd34)) -- **withLatestFrom:** default array output, handle other types ([cb393dc](https://github.com/ReactiveX/RxJS/commit/cb393dc)) -- **zip:** supports promises, iterables and lowercase-o observables ([d332a0e](https://github.com/ReactiveX/RxJS/commit/d332a0e)) - - - -# [0.0.0-prealpha.3](https://github.com/ReactiveX/RxJS/compare/0.0.0-prealpha.2...0.0.0-prealpha.3) (2015-09-11) - -### Bug Fixes - -- **root:** use self as the root object when available ([0428a85](https://github.com/ReactiveX/RxJS/commit/0428a85)) - - - -# [0.0.0-prealpha.2](https://github.com/ReactiveX/RxJS/compare/0.0.0-prealpha.1...0.0.0-prealpha.2) (2015-09-11) - -### Bug Fixes - -- **bufferCount:** set default value for skip argument, do not emit empty buffer at the end ([2c1a9dc](https://github.com/ReactiveX/RxJS/commit/2c1a9dc)) -- **windowCount:** set default value for skip argument, do not emit empty buffer at the end ([a513dbb](https://github.com/ReactiveX/RxJS/commit/a513dbb)) - -### Features - -- **Observable:** add static create method ([e0d27ba](https://github.com/ReactiveX/RxJS/commit/e0d27ba)), closes [#255](https://github.com/ReactiveX/RxJS/issues/255) -- **TestScheduler:** add TestScheduler ([b23daf1](https://github.com/ReactiveX/RxJS/commit/b23daf1)), closes [#270](https://github.com/ReactiveX/RxJS/issues/270) -- **VirtualTimeScheduler:** add VirtualTimeScheduler ([96f9386](https://github.com/ReactiveX/RxJS/commit/96f9386)), closes [#269](https://github.com/ReactiveX/RxJS/issues/269) -- **operator:** add sample and sampleTime ([9e62789](https://github.com/ReactiveX/RxJS/commit/9e62789)), closes [#178](https://github.com/ReactiveX/RxJS/issues/178) - - - -# [0.0.0-prealpha.1](https://github.com/ReactiveX/RxJS/compare/0441dea...0.0.0-prealpha.1) (2015-09-02) - -### Bug Fixes - -- **combineLatest:** check for limits higher than total observable count ([81e5dfb](https://github.com/ReactiveX/RxJS/commit/81e5dfb)) -- **rx:** add hack to export global until better global build exists ([1a543b0](https://github.com/ReactiveX/RxJS/commit/1a543b0)) -- **subscription-ref:** add setter for isDisposed ([6fe5427](https://github.com/ReactiveX/RxJS/commit/6fe5427)) -- **take:** complete on limit reached ([801a711](https://github.com/ReactiveX/RxJS/commit/801a711)) - -### Features - -- **benchpress:** add benchpress config and flatmap spec ([0441dea](https://github.com/ReactiveX/RxJS/commit/0441dea)) -- **catch:** add catch operator, related to #141, closes #130 ([94b4c01](https://github.com/ReactiveX/RxJS/commit/94b4c01)), closes [#130](https://github.com/ReactiveX/RxJS/issues/130) -- **from:** let from handle any "observablesque" ([526d4c3](https://github.com/ReactiveX/RxJS/commit/526d4c3)), closes [#156](https://github.com/ReactiveX/RxJS/issues/156) [#236](https://github.com/ReactiveX/RxJS/issues/236) -- **index:** add index module which requires commonjs build ([379d2d1](https://github.com/ReactiveX/RxJS/commit/379d2d1)), closes [#117](https://github.com/ReactiveX/RxJS/issues/117) -- **observable:** add Observable.all (forkJoin) ([44a4ee1](https://github.com/ReactiveX/RxJS/commit/44a4ee1)) -- **operator:** Add count operator. ([30dd894](https://github.com/ReactiveX/RxJS/commit/30dd894)) -- **operator:** Add distinctUntilChanged and distinctUntilKeyChanged ([f9ba4da](https://github.com/ReactiveX/RxJS/commit/f9ba4da)) -- **operator:** Add do operator. ([7d9b52b](https://github.com/ReactiveX/RxJS/commit/7d9b52b)) -- **operator:** Add expand operator. ([47b178b](https://github.com/ReactiveX/RxJS/commit/47b178b)) -- **operator:** Add minimal delay operator. ([7851885](https://github.com/ReactiveX/RxJS/commit/7851885)) -- **operator:** add buffer operators: buffer, bufferWhen, bufferTime, bufferCount, and bufferTog ([9f8347f](https://github.com/ReactiveX/RxJS/commit/9f8347f)), closes [#207](https://github.com/ReactiveX/RxJS/issues/207) -- **operator:** add debounce ([f03adaf](https://github.com/ReactiveX/RxJS/commit/f03adaf)), closes [#193](https://github.com/ReactiveX/RxJS/issues/193) -- **operator:** add defaultIfEmpty ([c80688b](https://github.com/ReactiveX/RxJS/commit/c80688b)) -- **operator:** add finally ([526e4c9](https://github.com/ReactiveX/RxJS/commit/526e4c9)) -- **operator:** add fromEventPattern creator function ([1095d4c](https://github.com/ReactiveX/RxJS/commit/1095d4c)) -- **operator:** add groupBy ([1e13aea](https://github.com/ReactiveX/RxJS/commit/1e13aea)), closes [#165](https://github.com/ReactiveX/RxJS/issues/165) -- **operator:** add materialize. closes #132 ([6d9f6ae](https://github.com/ReactiveX/RxJS/commit/6d9f6ae)), closes [#132](https://github.com/ReactiveX/RxJS/issues/132) -- **operator:** add publishBehavior operator and spec ([249ab8d](https://github.com/ReactiveX/RxJS/commit/249ab8d)) -- **operator:** add publishReplay operator and spec ([a0c47d6](https://github.com/ReactiveX/RxJS/commit/a0c47d6)) -- **operator:** add retry ([4451db5](https://github.com/ReactiveX/RxJS/commit/4451db5)) -- **operator:** add retryWhen operator. closes #129 ([65eb50e](https://github.com/ReactiveX/RxJS/commit/65eb50e)), closes [#129](https://github.com/ReactiveX/RxJS/issues/129) -- **operator:** add skipUntil ([ef2620e](https://github.com/ReactiveX/RxJS/commit/ef2620e)), closes [#180](https://github.com/ReactiveX/RxJS/issues/180) -- **operator:** add throttle ([1d735b9](https://github.com/ReactiveX/RxJS/commit/1d735b9)), closes [#191](https://github.com/ReactiveX/RxJS/issues/191) -- **operator:** add timeout and timeoutWith ([bb440ad](https://github.com/ReactiveX/RxJS/commit/bb440ad)), closes [#244](https://github.com/ReactiveX/RxJS/issues/244) -- **operator:** add toPromise operator. closes #159 ([361a53b](https://github.com/ReactiveX/RxJS/commit/361a53b)), closes [#159](https://github.com/ReactiveX/RxJS/issues/159) -- **operator:** add window operators: window, windowWhen, windowTime, windowCount, windowToggle ([9f5d510](https://github.com/ReactiveX/RxJS/commit/9f5d510)), closes [#195](https://github.com/ReactiveX/RxJS/issues/195) -- **operator:** add withLatestFrom ([322218a](https://github.com/ReactiveX/RxJS/commit/322218a)), closes [#209](https://github.com/ReactiveX/RxJS/issues/209) -- **operator:** implement startWith(). ([1f36d99](https://github.com/ReactiveX/RxJS/commit/1f36d99)) diff --git a/WechatBot/node_modules/rxjs/CODE_OF_CONDUCT.md b/WechatBot/node_modules/rxjs/CODE_OF_CONDUCT.md deleted file mode 100644 index dec600c93..000000000 --- a/WechatBot/node_modules/rxjs/CODE_OF_CONDUCT.md +++ /dev/null @@ -1,73 +0,0 @@ -# Contributor Covenant Code of Conduct - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as -contributors and maintainers pledge to making participation in our project and -our community a harassment-free experience for everyone, regardless of age, body -size, disability, ethnicity, gender identity and expression, level of experience, -education, socio-economic status, nationality, personal appearance, race, -religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment -include: - -* Using welcoming and inclusive language -* Being respectful of differing viewpoints and experiences -* Gracefully accepting constructive criticism -* Focusing on what is best for the community -* Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -* The use of sexualized language or imagery and unwelcome sexual attention or - advances -* Trolling, insulting/derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or electronic - address, without explicit permission -* Other conduct which could reasonably be considered inappropriate in a - professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable -behavior and are expected to take appropriate and fair corrective action in -response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or -reject comments, commits, code, wiki edits, issues, and other contributions -that are not aligned to this Code of Conduct, or to ban temporarily or -permanently any contributor for other behaviors that they deem inappropriate, -threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces -when an individual is representing the project or its community. Examples of -representing a project or community include using an official project e-mail -address, posting via an official social media account, or acting as an appointed -representative at an online or offline event. Representation of a project may be -further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported by contacting Ben Lesh (ben@benlesh.com), Tracy Lee (tracy@thisdot.co) or OJ Kwon (kwon.ohjoong@gmail.com). All -complaints will be reviewed and investigated and will result in a response that -is deemed necessary and appropriate to the circumstances. The project team is -obligated to maintain confidentiality with regard to the reporter of an incident. -Further details of specific enforcement policies may be posted separately. - -Project maintainers who do not follow or enforce the Code of Conduct in good -faith may face temporary or permanent repercussions as determined by other -members of the project's leadership. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, -available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html - -[homepage]: https://www.contributor-covenant.org diff --git a/WechatBot/node_modules/rxjs/LICENSE.txt b/WechatBot/node_modules/rxjs/LICENSE.txt deleted file mode 100644 index 031ce3817..000000000 --- a/WechatBot/node_modules/rxjs/LICENSE.txt +++ /dev/null @@ -1,202 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/WechatBot/node_modules/rxjs/README.md b/WechatBot/node_modules/rxjs/README.md deleted file mode 100644 index 910eef75a..000000000 --- a/WechatBot/node_modules/rxjs/README.md +++ /dev/null @@ -1,107 +0,0 @@ -# RxJS Logo RxJS: Reactive Extensions For JavaScript - -![CI](https://github.com/reactivex/rxjs/workflows/CI/badge.svg) -[![npm version](https://badge.fury.io/js/rxjs.svg)](http://badge.fury.io/js/rxjs) -[![Join the chat at https://gitter.im/Reactive-Extensions/RxJS](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/Reactive-Extensions/RxJS?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) - -# The Roadmap from RxJS 7 to 8 - -Curious what's next for RxJS? Follow along with [Issue 6367](https://github.com/ReactiveX/rxjs/issues/6367). - -# RxJS 7 - -### FOR 6.X PLEASE GO TO [THE 6.x BRANCH](https://github.com/ReactiveX/rxjs/tree/6.x) - -Reactive Extensions Library for JavaScript. This is a rewrite of [Reactive-Extensions/RxJS](https://github.com/Reactive-Extensions/RxJS) and is the latest production-ready version of RxJS. This rewrite is meant to have better performance, better modularity, better debuggable call stacks, while staying mostly backwards compatible, with some breaking changes that reduce the API surface. - -[Apache 2.0 License](LICENSE.txt) - -- [Code of Conduct](CODE_OF_CONDUCT.md) -- [Contribution Guidelines](CONTRIBUTING.md) -- [Maintainer Guidelines](docs_app/content/maintainer-guidelines.md) -- [API Documentation](https://rxjs.dev/) - -## Versions In This Repository - -- [master](https://github.com/ReactiveX/rxjs/commits/master) - This is all of the current work, which is against v7 of RxJS right now -- [6.x](https://github.com/ReactiveX/rxjs/tree/6.x) - This is the branch for version 6.X - -Most PRs should be made to **master**. - -## Important - -By contributing or commenting on issues in this repository, whether you've read them or not, you're agreeing to the [Contributor Code of Conduct](CODE_OF_CONDUCT.md). Much like traffic laws, ignorance doesn't grant you immunity. - -## Installation and Usage - -### ES6 via npm - -```shell -npm install rxjs -``` - -It's recommended to pull in the Observable creation methods you need directly from `'rxjs'` as shown below with `range`. -If you're using RxJS version 7.2 or above, you can pull in any operator you need from the same spot, `'rxjs'`. - -```ts -import { range, filter, map } from 'rxjs'; - -range(1, 200) - .pipe( - filter(x => x % 2 === 1), - map(x => x + x) - ) - .subscribe(x => console.log(x)); -``` - -If you're using RxJS version below 7.2, you can pull in any operator you need from one spot, under `'rxjs/operators'`. - -```ts -import { range } from 'rxjs'; -import { filter, map } from 'rxjs/operators'; - -range(1, 200) - .pipe( - filter(x => x % 2 === 1), - map(x => x + x) - ) - .subscribe(x => console.log(x)); -``` - -### CDN - -For CDN, you can use [unpkg](https://unpkg.com/): - -[https://unpkg.com/rxjs@^7/dist/bundles/rxjs.umd.min.js](https://unpkg.com/rxjs@%5E7/dist/bundles/rxjs.umd.min.js) - -The global namespace for rxjs is `rxjs`: - -```js -const { range } = rxjs; -const { filter, map } = rxjs.operators; - -range(1, 200) - .pipe( - filter(x => x % 2 === 1), - map(x => x + x) - ) - .subscribe(x => console.log(x)); -``` - -## Goals - -- Smaller overall bundles sizes -- Provide better performance than preceding versions of RxJS -- To model/follow the [Observable Spec Proposal](https://github.com/zenparsing/es-observable) to the observable -- Provide more modular file structure in a variety of formats -- Provide more debuggable call stacks than preceding versions of RxJS - -## Building/Testing - -- `npm run compile` build everything -- `npm test` run tests -- `npm run dtslint` run dtslint tests - -## Adding documentation - -We appreciate all contributions to the documentation of any type. All of the information needed to get the docs app up and running locally as well as how to contribute can be found in the [documentation directory](./docs_app). diff --git a/WechatBot/node_modules/rxjs/ajax/package.json b/WechatBot/node_modules/rxjs/ajax/package.json deleted file mode 100644 index 9f0a79aef..000000000 --- a/WechatBot/node_modules/rxjs/ajax/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "rxjs/ajax", - "types": "../dist/types/ajax/index.d.ts", - "main": "../dist/cjs/ajax/index.js", - "module": "../dist/esm5/ajax/index.js", - "es2015": "../dist/esm/ajax/index.js", - "sideEffects": false -} diff --git a/WechatBot/node_modules/rxjs/dist/bundles/rxjs.umd.js b/WechatBot/node_modules/rxjs/dist/bundles/rxjs.umd.js deleted file mode 100755 index da0f5beaf..000000000 --- a/WechatBot/node_modules/rxjs/dist/bundles/rxjs.umd.js +++ /dev/null @@ -1,6842 +0,0 @@ -/** - @license - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors - - 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. - - - **/ -/** - @license - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors - - 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. - - - **/ -(function (global, factory) { - typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : - typeof define === 'function' && define.amd ? define('rxjs', ['exports'], factory) : - (factory((global.rxjs = {}))); -}(this, (function (exports) { 'use strict'; - - /*! ***************************************************************************** - Copyright (c) Microsoft Corporation. - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted. - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. - ***************************************************************************** */ - /* global Reflect, Promise */ - - var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - - function __extends(d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - } - - var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); - }; - - function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - } - - function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - } - - function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - } - - function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - } - - function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - } - - function __spreadArray(to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - } - - function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - } - - function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - } - - function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - } - - function isFunction(value) { - return typeof value === 'function'; - } - - function createErrorClass(createImpl) { - var _super = function (instance) { - Error.call(instance); - instance.stack = new Error().stack; - }; - var ctorFunc = createImpl(_super); - ctorFunc.prototype = Object.create(Error.prototype); - ctorFunc.prototype.constructor = ctorFunc; - return ctorFunc; - } - - var UnsubscriptionError = createErrorClass(function (_super) { - return function UnsubscriptionErrorImpl(errors) { - _super(this); - this.message = errors - ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return i + 1 + ") " + err.toString(); }).join('\n ') - : ''; - this.name = 'UnsubscriptionError'; - this.errors = errors; - }; - }); - - function arrRemove(arr, item) { - if (arr) { - var index = arr.indexOf(item); - 0 <= index && arr.splice(index, 1); - } - } - - var Subscription = (function () { - function Subscription(initialTeardown) { - this.initialTeardown = initialTeardown; - this.closed = false; - this._parentage = null; - this._finalizers = null; - } - Subscription.prototype.unsubscribe = function () { - var e_1, _a, e_2, _b; - var errors; - if (!this.closed) { - this.closed = true; - var _parentage = this._parentage; - if (_parentage) { - this._parentage = null; - if (Array.isArray(_parentage)) { - try { - for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) { - var parent_1 = _parentage_1_1.value; - parent_1.remove(this); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1); - } - finally { if (e_1) throw e_1.error; } - } - } - else { - _parentage.remove(this); - } - } - var initialFinalizer = this.initialTeardown; - if (isFunction(initialFinalizer)) { - try { - initialFinalizer(); - } - catch (e) { - errors = e instanceof UnsubscriptionError ? e.errors : [e]; - } - } - var _finalizers = this._finalizers; - if (_finalizers) { - this._finalizers = null; - try { - for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) { - var finalizer = _finalizers_1_1.value; - try { - execFinalizer(finalizer); - } - catch (err) { - errors = errors !== null && errors !== void 0 ? errors : []; - if (err instanceof UnsubscriptionError) { - errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors)); - } - else { - errors.push(err); - } - } - } - } - catch (e_2_1) { e_2 = { error: e_2_1 }; } - finally { - try { - if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1); - } - finally { if (e_2) throw e_2.error; } - } - } - if (errors) { - throw new UnsubscriptionError(errors); - } - } - }; - Subscription.prototype.add = function (teardown) { - var _a; - if (teardown && teardown !== this) { - if (this.closed) { - execFinalizer(teardown); - } - else { - if (teardown instanceof Subscription) { - if (teardown.closed || teardown._hasParent(this)) { - return; - } - teardown._addParent(this); - } - (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown); - } - } - }; - Subscription.prototype._hasParent = function (parent) { - var _parentage = this._parentage; - return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent)); - }; - Subscription.prototype._addParent = function (parent) { - var _parentage = this._parentage; - this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent; - }; - Subscription.prototype._removeParent = function (parent) { - var _parentage = this._parentage; - if (_parentage === parent) { - this._parentage = null; - } - else if (Array.isArray(_parentage)) { - arrRemove(_parentage, parent); - } - }; - Subscription.prototype.remove = function (teardown) { - var _finalizers = this._finalizers; - _finalizers && arrRemove(_finalizers, teardown); - if (teardown instanceof Subscription) { - teardown._removeParent(this); - } - }; - Subscription.EMPTY = (function () { - var empty = new Subscription(); - empty.closed = true; - return empty; - })(); - return Subscription; - }()); - var EMPTY_SUBSCRIPTION = Subscription.EMPTY; - function isSubscription(value) { - return (value instanceof Subscription || - (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe))); - } - function execFinalizer(finalizer) { - if (isFunction(finalizer)) { - finalizer(); - } - else { - finalizer.unsubscribe(); - } - } - - var config = { - onUnhandledError: null, - onStoppedNotification: null, - Promise: undefined, - useDeprecatedSynchronousErrorHandling: false, - useDeprecatedNextContext: false, - }; - - var timeoutProvider = { - setTimeout: function (handler, timeout) { - var args = []; - for (var _i = 2; _i < arguments.length; _i++) { - args[_i - 2] = arguments[_i]; - } - var delegate = timeoutProvider.delegate; - if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) { - return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args))); - } - return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args))); - }, - clearTimeout: function (handle) { - var delegate = timeoutProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle); - }, - delegate: undefined, - }; - - function reportUnhandledError(err) { - timeoutProvider.setTimeout(function () { - var onUnhandledError = config.onUnhandledError; - if (onUnhandledError) { - onUnhandledError(err); - } - else { - throw err; - } - }); - } - - function noop() { } - - var COMPLETE_NOTIFICATION = (function () { return createNotification('C', undefined, undefined); })(); - function errorNotification(error) { - return createNotification('E', undefined, error); - } - function nextNotification(value) { - return createNotification('N', value, undefined); - } - function createNotification(kind, value, error) { - return { - kind: kind, - value: value, - error: error, - }; - } - - var context = null; - function errorContext(cb) { - if (config.useDeprecatedSynchronousErrorHandling) { - var isRoot = !context; - if (isRoot) { - context = { errorThrown: false, error: null }; - } - cb(); - if (isRoot) { - var _a = context, errorThrown = _a.errorThrown, error = _a.error; - context = null; - if (errorThrown) { - throw error; - } - } - } - else { - cb(); - } - } - function captureError(err) { - if (config.useDeprecatedSynchronousErrorHandling && context) { - context.errorThrown = true; - context.error = err; - } - } - - var Subscriber = (function (_super) { - __extends(Subscriber, _super); - function Subscriber(destination) { - var _this = _super.call(this) || this; - _this.isStopped = false; - if (destination) { - _this.destination = destination; - if (isSubscription(destination)) { - destination.add(_this); - } - } - else { - _this.destination = EMPTY_OBSERVER; - } - return _this; - } - Subscriber.create = function (next, error, complete) { - return new SafeSubscriber(next, error, complete); - }; - Subscriber.prototype.next = function (value) { - if (this.isStopped) { - handleStoppedNotification(nextNotification(value), this); - } - else { - this._next(value); - } - }; - Subscriber.prototype.error = function (err) { - if (this.isStopped) { - handleStoppedNotification(errorNotification(err), this); - } - else { - this.isStopped = true; - this._error(err); - } - }; - Subscriber.prototype.complete = function () { - if (this.isStopped) { - handleStoppedNotification(COMPLETE_NOTIFICATION, this); - } - else { - this.isStopped = true; - this._complete(); - } - }; - Subscriber.prototype.unsubscribe = function () { - if (!this.closed) { - this.isStopped = true; - _super.prototype.unsubscribe.call(this); - this.destination = null; - } - }; - Subscriber.prototype._next = function (value) { - this.destination.next(value); - }; - Subscriber.prototype._error = function (err) { - try { - this.destination.error(err); - } - finally { - this.unsubscribe(); - } - }; - Subscriber.prototype._complete = function () { - try { - this.destination.complete(); - } - finally { - this.unsubscribe(); - } - }; - return Subscriber; - }(Subscription)); - var _bind = Function.prototype.bind; - function bind(fn, thisArg) { - return _bind.call(fn, thisArg); - } - var ConsumerObserver = (function () { - function ConsumerObserver(partialObserver) { - this.partialObserver = partialObserver; - } - ConsumerObserver.prototype.next = function (value) { - var partialObserver = this.partialObserver; - if (partialObserver.next) { - try { - partialObserver.next(value); - } - catch (error) { - handleUnhandledError(error); - } - } - }; - ConsumerObserver.prototype.error = function (err) { - var partialObserver = this.partialObserver; - if (partialObserver.error) { - try { - partialObserver.error(err); - } - catch (error) { - handleUnhandledError(error); - } - } - else { - handleUnhandledError(err); - } - }; - ConsumerObserver.prototype.complete = function () { - var partialObserver = this.partialObserver; - if (partialObserver.complete) { - try { - partialObserver.complete(); - } - catch (error) { - handleUnhandledError(error); - } - } - }; - return ConsumerObserver; - }()); - var SafeSubscriber = (function (_super) { - __extends(SafeSubscriber, _super); - function SafeSubscriber(observerOrNext, error, complete) { - var _this = _super.call(this) || this; - var partialObserver; - if (isFunction(observerOrNext) || !observerOrNext) { - partialObserver = { - next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined), - error: error !== null && error !== void 0 ? error : undefined, - complete: complete !== null && complete !== void 0 ? complete : undefined, - }; - } - else { - var context_1; - if (_this && config.useDeprecatedNextContext) { - context_1 = Object.create(observerOrNext); - context_1.unsubscribe = function () { return _this.unsubscribe(); }; - partialObserver = { - next: observerOrNext.next && bind(observerOrNext.next, context_1), - error: observerOrNext.error && bind(observerOrNext.error, context_1), - complete: observerOrNext.complete && bind(observerOrNext.complete, context_1), - }; - } - else { - partialObserver = observerOrNext; - } - } - _this.destination = new ConsumerObserver(partialObserver); - return _this; - } - return SafeSubscriber; - }(Subscriber)); - function handleUnhandledError(error) { - if (config.useDeprecatedSynchronousErrorHandling) { - captureError(error); - } - else { - reportUnhandledError(error); - } - } - function defaultErrorHandler(err) { - throw err; - } - function handleStoppedNotification(notification, subscriber) { - var onStoppedNotification = config.onStoppedNotification; - onStoppedNotification && timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); }); - } - var EMPTY_OBSERVER = { - closed: true, - next: noop, - error: defaultErrorHandler, - complete: noop, - }; - - var observable = (function () { return (typeof Symbol === 'function' && Symbol.observable) || '@@observable'; })(); - - function identity(x) { - return x; - } - - function pipe() { - var fns = []; - for (var _i = 0; _i < arguments.length; _i++) { - fns[_i] = arguments[_i]; - } - return pipeFromArray(fns); - } - function pipeFromArray(fns) { - if (fns.length === 0) { - return identity; - } - if (fns.length === 1) { - return fns[0]; - } - return function piped(input) { - return fns.reduce(function (prev, fn) { return fn(prev); }, input); - }; - } - - var Observable = (function () { - function Observable(subscribe) { - if (subscribe) { - this._subscribe = subscribe; - } - } - Observable.prototype.lift = function (operator) { - var observable$$1 = new Observable(); - observable$$1.source = this; - observable$$1.operator = operator; - return observable$$1; - }; - Observable.prototype.subscribe = function (observerOrNext, error, complete) { - var _this = this; - var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete); - errorContext(function () { - var _a = _this, operator = _a.operator, source = _a.source; - subscriber.add(operator - ? - operator.call(subscriber, source) - : source - ? - _this._subscribe(subscriber) - : - _this._trySubscribe(subscriber)); - }); - return subscriber; - }; - Observable.prototype._trySubscribe = function (sink) { - try { - return this._subscribe(sink); - } - catch (err) { - sink.error(err); - } - }; - Observable.prototype.forEach = function (next, promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function (resolve, reject) { - var subscriber = new SafeSubscriber({ - next: function (value) { - try { - next(value); - } - catch (err) { - reject(err); - subscriber.unsubscribe(); - } - }, - error: reject, - complete: resolve, - }); - _this.subscribe(subscriber); - }); - }; - Observable.prototype._subscribe = function (subscriber) { - var _a; - return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber); - }; - Observable.prototype[observable] = function () { - return this; - }; - Observable.prototype.pipe = function () { - var operations = []; - for (var _i = 0; _i < arguments.length; _i++) { - operations[_i] = arguments[_i]; - } - return pipeFromArray(operations)(this); - }; - Observable.prototype.toPromise = function (promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function (resolve, reject) { - var value; - _this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); }); - }); - }; - Observable.create = function (subscribe) { - return new Observable(subscribe); - }; - return Observable; - }()); - function getPromiseCtor(promiseCtor) { - var _a; - return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise; - } - function isObserver(value) { - return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete); - } - function isSubscriber(value) { - return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value)); - } - - function hasLift(source) { - return isFunction(source === null || source === void 0 ? void 0 : source.lift); - } - function operate(init) { - return function (source) { - if (hasLift(source)) { - return source.lift(function (liftedSource) { - try { - return init(liftedSource, this); - } - catch (err) { - this.error(err); - } - }); - } - throw new TypeError('Unable to lift unknown Observable type'); - }; - } - - function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) { - return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize); - } - var OperatorSubscriber = (function (_super) { - __extends(OperatorSubscriber, _super); - function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) { - var _this = _super.call(this, destination) || this; - _this.onFinalize = onFinalize; - _this.shouldUnsubscribe = shouldUnsubscribe; - _this._next = onNext - ? function (value) { - try { - onNext(value); - } - catch (err) { - destination.error(err); - } - } - : _super.prototype._next; - _this._error = onError - ? function (err) { - try { - onError(err); - } - catch (err) { - destination.error(err); - } - finally { - this.unsubscribe(); - } - } - : _super.prototype._error; - _this._complete = onComplete - ? function () { - try { - onComplete(); - } - catch (err) { - destination.error(err); - } - finally { - this.unsubscribe(); - } - } - : _super.prototype._complete; - return _this; - } - OperatorSubscriber.prototype.unsubscribe = function () { - var _a; - if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { - var closed_1 = this.closed; - _super.prototype.unsubscribe.call(this); - !closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this)); - } - }; - return OperatorSubscriber; - }(Subscriber)); - - function refCount() { - return operate(function (source, subscriber) { - var connection = null; - source._refCount++; - var refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, function () { - if (!source || source._refCount <= 0 || 0 < --source._refCount) { - connection = null; - return; - } - var sharedConnection = source._connection; - var conn = connection; - connection = null; - if (sharedConnection && (!conn || sharedConnection === conn)) { - sharedConnection.unsubscribe(); - } - subscriber.unsubscribe(); - }); - source.subscribe(refCounter); - if (!refCounter.closed) { - connection = source.connect(); - } - }); - } - - var ConnectableObservable = (function (_super) { - __extends(ConnectableObservable, _super); - function ConnectableObservable(source, subjectFactory) { - var _this = _super.call(this) || this; - _this.source = source; - _this.subjectFactory = subjectFactory; - _this._subject = null; - _this._refCount = 0; - _this._connection = null; - if (hasLift(source)) { - _this.lift = source.lift; - } - return _this; - } - ConnectableObservable.prototype._subscribe = function (subscriber) { - return this.getSubject().subscribe(subscriber); - }; - ConnectableObservable.prototype.getSubject = function () { - var subject = this._subject; - if (!subject || subject.isStopped) { - this._subject = this.subjectFactory(); - } - return this._subject; - }; - ConnectableObservable.prototype._teardown = function () { - this._refCount = 0; - var _connection = this._connection; - this._subject = this._connection = null; - _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe(); - }; - ConnectableObservable.prototype.connect = function () { - var _this = this; - var connection = this._connection; - if (!connection) { - connection = this._connection = new Subscription(); - var subject_1 = this.getSubject(); - connection.add(this.source.subscribe(createOperatorSubscriber(subject_1, undefined, function () { - _this._teardown(); - subject_1.complete(); - }, function (err) { - _this._teardown(); - subject_1.error(err); - }, function () { return _this._teardown(); }))); - if (connection.closed) { - this._connection = null; - connection = Subscription.EMPTY; - } - } - return connection; - }; - ConnectableObservable.prototype.refCount = function () { - return refCount()(this); - }; - return ConnectableObservable; - }(Observable)); - - var performanceTimestampProvider = { - now: function () { - return (performanceTimestampProvider.delegate || performance).now(); - }, - delegate: undefined, - }; - - var animationFrameProvider = { - schedule: function (callback) { - var request = requestAnimationFrame; - var cancel = cancelAnimationFrame; - var delegate = animationFrameProvider.delegate; - if (delegate) { - request = delegate.requestAnimationFrame; - cancel = delegate.cancelAnimationFrame; - } - var handle = request(function (timestamp) { - cancel = undefined; - callback(timestamp); - }); - return new Subscription(function () { return cancel === null || cancel === void 0 ? void 0 : cancel(handle); }); - }, - requestAnimationFrame: function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var delegate = animationFrameProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray([], __read(args))); - }, - cancelAnimationFrame: function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var delegate = animationFrameProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray([], __read(args))); - }, - delegate: undefined, - }; - - function animationFrames(timestampProvider) { - return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES; - } - function animationFramesFactory(timestampProvider) { - return new Observable(function (subscriber) { - var provider = timestampProvider || performanceTimestampProvider; - var start = provider.now(); - var id = 0; - var run = function () { - if (!subscriber.closed) { - id = animationFrameProvider.requestAnimationFrame(function (timestamp) { - id = 0; - var now = provider.now(); - subscriber.next({ - timestamp: timestampProvider ? now : timestamp, - elapsed: now - start, - }); - run(); - }); - } - }; - run(); - return function () { - if (id) { - animationFrameProvider.cancelAnimationFrame(id); - } - }; - }); - } - var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(); - - var ObjectUnsubscribedError = createErrorClass(function (_super) { - return function ObjectUnsubscribedErrorImpl() { - _super(this); - this.name = 'ObjectUnsubscribedError'; - this.message = 'object unsubscribed'; - }; - }); - - var Subject = (function (_super) { - __extends(Subject, _super); - function Subject() { - var _this = _super.call(this) || this; - _this.closed = false; - _this.currentObservers = null; - _this.observers = []; - _this.isStopped = false; - _this.hasError = false; - _this.thrownError = null; - return _this; - } - Subject.prototype.lift = function (operator) { - var subject = new AnonymousSubject(this, this); - subject.operator = operator; - return subject; - }; - Subject.prototype._throwIfClosed = function () { - if (this.closed) { - throw new ObjectUnsubscribedError(); - } - }; - Subject.prototype.next = function (value) { - var _this = this; - errorContext(function () { - var e_1, _a; - _this._throwIfClosed(); - if (!_this.isStopped) { - if (!_this.currentObservers) { - _this.currentObservers = Array.from(_this.observers); - } - try { - for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) { - var observer = _c.value; - observer.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (_c && !_c.done && (_a = _b.return)) _a.call(_b); - } - finally { if (e_1) throw e_1.error; } - } - } - }); - }; - Subject.prototype.error = function (err) { - var _this = this; - errorContext(function () { - _this._throwIfClosed(); - if (!_this.isStopped) { - _this.hasError = _this.isStopped = true; - _this.thrownError = err; - var observers = _this.observers; - while (observers.length) { - observers.shift().error(err); - } - } - }); - }; - Subject.prototype.complete = function () { - var _this = this; - errorContext(function () { - _this._throwIfClosed(); - if (!_this.isStopped) { - _this.isStopped = true; - var observers = _this.observers; - while (observers.length) { - observers.shift().complete(); - } - } - }); - }; - Subject.prototype.unsubscribe = function () { - this.isStopped = this.closed = true; - this.observers = this.currentObservers = null; - }; - Object.defineProperty(Subject.prototype, "observed", { - get: function () { - var _a; - return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0; - }, - enumerable: false, - configurable: true - }); - Subject.prototype._trySubscribe = function (subscriber) { - this._throwIfClosed(); - return _super.prototype._trySubscribe.call(this, subscriber); - }; - Subject.prototype._subscribe = function (subscriber) { - this._throwIfClosed(); - this._checkFinalizedStatuses(subscriber); - return this._innerSubscribe(subscriber); - }; - Subject.prototype._innerSubscribe = function (subscriber) { - var _this = this; - var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers; - if (hasError || isStopped) { - return EMPTY_SUBSCRIPTION; - } - this.currentObservers = null; - observers.push(subscriber); - return new Subscription(function () { - _this.currentObservers = null; - arrRemove(observers, subscriber); - }); - }; - Subject.prototype._checkFinalizedStatuses = function (subscriber) { - var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped; - if (hasError) { - subscriber.error(thrownError); - } - else if (isStopped) { - subscriber.complete(); - } - }; - Subject.prototype.asObservable = function () { - var observable = new Observable(); - observable.source = this; - return observable; - }; - Subject.create = function (destination, source) { - return new AnonymousSubject(destination, source); - }; - return Subject; - }(Observable)); - var AnonymousSubject = (function (_super) { - __extends(AnonymousSubject, _super); - function AnonymousSubject(destination, source) { - var _this = _super.call(this) || this; - _this.destination = destination; - _this.source = source; - return _this; - } - AnonymousSubject.prototype.next = function (value) { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value); - }; - AnonymousSubject.prototype.error = function (err) { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err); - }; - AnonymousSubject.prototype.complete = function () { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a); - }; - AnonymousSubject.prototype._subscribe = function (subscriber) { - var _a, _b; - return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION; - }; - return AnonymousSubject; - }(Subject)); - - var BehaviorSubject = (function (_super) { - __extends(BehaviorSubject, _super); - function BehaviorSubject(_value) { - var _this = _super.call(this) || this; - _this._value = _value; - return _this; - } - Object.defineProperty(BehaviorSubject.prototype, "value", { - get: function () { - return this.getValue(); - }, - enumerable: false, - configurable: true - }); - BehaviorSubject.prototype._subscribe = function (subscriber) { - var subscription = _super.prototype._subscribe.call(this, subscriber); - !subscription.closed && subscriber.next(this._value); - return subscription; - }; - BehaviorSubject.prototype.getValue = function () { - var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, _value = _a._value; - if (hasError) { - throw thrownError; - } - this._throwIfClosed(); - return _value; - }; - BehaviorSubject.prototype.next = function (value) { - _super.prototype.next.call(this, (this._value = value)); - }; - return BehaviorSubject; - }(Subject)); - - var dateTimestampProvider = { - now: function () { - return (dateTimestampProvider.delegate || Date).now(); - }, - delegate: undefined, - }; - - var ReplaySubject = (function (_super) { - __extends(ReplaySubject, _super); - function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) { - if (_bufferSize === void 0) { _bufferSize = Infinity; } - if (_windowTime === void 0) { _windowTime = Infinity; } - if (_timestampProvider === void 0) { _timestampProvider = dateTimestampProvider; } - var _this = _super.call(this) || this; - _this._bufferSize = _bufferSize; - _this._windowTime = _windowTime; - _this._timestampProvider = _timestampProvider; - _this._buffer = []; - _this._infiniteTimeWindow = true; - _this._infiniteTimeWindow = _windowTime === Infinity; - _this._bufferSize = Math.max(1, _bufferSize); - _this._windowTime = Math.max(1, _windowTime); - return _this; - } - ReplaySubject.prototype.next = function (value) { - var _a = this, isStopped = _a.isStopped, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow, _timestampProvider = _a._timestampProvider, _windowTime = _a._windowTime; - if (!isStopped) { - _buffer.push(value); - !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime); - } - this._trimBuffer(); - _super.prototype.next.call(this, value); - }; - ReplaySubject.prototype._subscribe = function (subscriber) { - this._throwIfClosed(); - this._trimBuffer(); - var subscription = this._innerSubscribe(subscriber); - var _a = this, _infiniteTimeWindow = _a._infiniteTimeWindow, _buffer = _a._buffer; - var copy = _buffer.slice(); - for (var i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) { - subscriber.next(copy[i]); - } - this._checkFinalizedStatuses(subscriber); - return subscription; - }; - ReplaySubject.prototype._trimBuffer = function () { - var _a = this, _bufferSize = _a._bufferSize, _timestampProvider = _a._timestampProvider, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow; - var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize; - _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize); - if (!_infiniteTimeWindow) { - var now = _timestampProvider.now(); - var last = 0; - for (var i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) { - last = i; - } - last && _buffer.splice(0, last + 1); - } - }; - return ReplaySubject; - }(Subject)); - - var AsyncSubject = (function (_super) { - __extends(AsyncSubject, _super); - function AsyncSubject() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this._value = null; - _this._hasValue = false; - _this._isComplete = false; - return _this; - } - AsyncSubject.prototype._checkFinalizedStatuses = function (subscriber) { - var _a = this, hasError = _a.hasError, _hasValue = _a._hasValue, _value = _a._value, thrownError = _a.thrownError, isStopped = _a.isStopped, _isComplete = _a._isComplete; - if (hasError) { - subscriber.error(thrownError); - } - else if (isStopped || _isComplete) { - _hasValue && subscriber.next(_value); - subscriber.complete(); - } - }; - AsyncSubject.prototype.next = function (value) { - if (!this.isStopped) { - this._value = value; - this._hasValue = true; - } - }; - AsyncSubject.prototype.complete = function () { - var _a = this, _hasValue = _a._hasValue, _value = _a._value, _isComplete = _a._isComplete; - if (!_isComplete) { - this._isComplete = true; - _hasValue && _super.prototype.next.call(this, _value); - _super.prototype.complete.call(this); - } - }; - return AsyncSubject; - }(Subject)); - - var Action = (function (_super) { - __extends(Action, _super); - function Action(scheduler, work) { - return _super.call(this) || this; - } - Action.prototype.schedule = function (state, delay) { - if (delay === void 0) { delay = 0; } - return this; - }; - return Action; - }(Subscription)); - - var intervalProvider = { - setInterval: function (handler, timeout) { - var args = []; - for (var _i = 2; _i < arguments.length; _i++) { - args[_i - 2] = arguments[_i]; - } - var delegate = intervalProvider.delegate; - if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) { - return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args))); - } - return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args))); - }, - clearInterval: function (handle) { - var delegate = intervalProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle); - }, - delegate: undefined, - }; - - var AsyncAction = (function (_super) { - __extends(AsyncAction, _super); - function AsyncAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - _this.pending = false; - return _this; - } - AsyncAction.prototype.schedule = function (state, delay) { - var _a; - if (delay === void 0) { delay = 0; } - if (this.closed) { - return this; - } - this.state = state; - var id = this.id; - var scheduler = this.scheduler; - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, delay); - } - this.pending = true; - this.delay = delay; - this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay); - return this; - }; - AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) { - if (delay === void 0) { delay = 0; } - return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay); - }; - AsyncAction.prototype.recycleAsyncId = function (_scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if (delay != null && this.delay === delay && this.pending === false) { - return id; - } - if (id != null) { - intervalProvider.clearInterval(id); - } - return undefined; - }; - AsyncAction.prototype.execute = function (state, delay) { - if (this.closed) { - return new Error('executing a cancelled action'); - } - this.pending = false; - var error = this._execute(state, delay); - if (error) { - return error; - } - else if (this.pending === false && this.id != null) { - this.id = this.recycleAsyncId(this.scheduler, this.id, null); - } - }; - AsyncAction.prototype._execute = function (state, _delay) { - var errored = false; - var errorValue; - try { - this.work(state); - } - catch (e) { - errored = true; - errorValue = e ? e : new Error('Scheduled action threw falsy error'); - } - if (errored) { - this.unsubscribe(); - return errorValue; - } - }; - AsyncAction.prototype.unsubscribe = function () { - if (!this.closed) { - var _a = this, id = _a.id, scheduler = _a.scheduler; - var actions = scheduler.actions; - this.work = this.state = this.scheduler = null; - this.pending = false; - arrRemove(actions, this); - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, null); - } - this.delay = null; - _super.prototype.unsubscribe.call(this); - } - }; - return AsyncAction; - }(Action)); - - var nextHandle = 1; - var resolved; - var activeHandles = {}; - function findAndClearHandle(handle) { - if (handle in activeHandles) { - delete activeHandles[handle]; - return true; - } - return false; - } - var Immediate = { - setImmediate: function (cb) { - var handle = nextHandle++; - activeHandles[handle] = true; - if (!resolved) { - resolved = Promise.resolve(); - } - resolved.then(function () { return findAndClearHandle(handle) && cb(); }); - return handle; - }, - clearImmediate: function (handle) { - findAndClearHandle(handle); - }, - }; - - var setImmediate = Immediate.setImmediate, clearImmediate = Immediate.clearImmediate; - var immediateProvider = { - setImmediate: function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var delegate = immediateProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate).apply(void 0, __spreadArray([], __read(args))); - }, - clearImmediate: function (handle) { - var delegate = immediateProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle); - }, - delegate: undefined, - }; - - var AsapAction = (function (_super) { - __extends(AsapAction, _super); - function AsapAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if (delay !== null && delay > 0) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); - } - scheduler.actions.push(this); - return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined))); - }; - AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) { - var _a; - if (delay === void 0) { delay = 0; } - if (delay != null ? delay > 0 : this.delay > 0) { - return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay); - } - var actions = scheduler.actions; - if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) { - immediateProvider.clearImmediate(id); - if (scheduler._scheduled === id) { - scheduler._scheduled = undefined; - } - } - return undefined; - }; - return AsapAction; - }(AsyncAction)); - - var Scheduler = (function () { - function Scheduler(schedulerActionCtor, now) { - if (now === void 0) { now = Scheduler.now; } - this.schedulerActionCtor = schedulerActionCtor; - this.now = now; - } - Scheduler.prototype.schedule = function (work, delay, state) { - if (delay === void 0) { delay = 0; } - return new this.schedulerActionCtor(this, work).schedule(state, delay); - }; - Scheduler.now = dateTimestampProvider.now; - return Scheduler; - }()); - - var AsyncScheduler = (function (_super) { - __extends(AsyncScheduler, _super); - function AsyncScheduler(SchedulerAction, now) { - if (now === void 0) { now = Scheduler.now; } - var _this = _super.call(this, SchedulerAction, now) || this; - _this.actions = []; - _this._active = false; - return _this; - } - AsyncScheduler.prototype.flush = function (action) { - var actions = this.actions; - if (this._active) { - actions.push(action); - return; - } - var error; - this._active = true; - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions.shift())); - this._active = false; - if (error) { - while ((action = actions.shift())) { - action.unsubscribe(); - } - throw error; - } - }; - return AsyncScheduler; - }(Scheduler)); - - var AsapScheduler = (function (_super) { - __extends(AsapScheduler, _super); - function AsapScheduler() { - return _super !== null && _super.apply(this, arguments) || this; - } - AsapScheduler.prototype.flush = function (action) { - this._active = true; - var flushId = this._scheduled; - this._scheduled = undefined; - var actions = this.actions; - var error; - action = action || actions.shift(); - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - this._active = false; - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - }; - return AsapScheduler; - }(AsyncScheduler)); - - var asapScheduler = new AsapScheduler(AsapAction); - var asap = asapScheduler; - - var asyncScheduler = new AsyncScheduler(AsyncAction); - var async = asyncScheduler; - - var QueueAction = (function (_super) { - __extends(QueueAction, _super); - function QueueAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - QueueAction.prototype.schedule = function (state, delay) { - if (delay === void 0) { delay = 0; } - if (delay > 0) { - return _super.prototype.schedule.call(this, state, delay); - } - this.delay = delay; - this.state = state; - this.scheduler.flush(this); - return this; - }; - QueueAction.prototype.execute = function (state, delay) { - return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay); - }; - QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); - } - scheduler.flush(this); - return 0; - }; - return QueueAction; - }(AsyncAction)); - - var QueueScheduler = (function (_super) { - __extends(QueueScheduler, _super); - function QueueScheduler() { - return _super !== null && _super.apply(this, arguments) || this; - } - return QueueScheduler; - }(AsyncScheduler)); - - var queueScheduler = new QueueScheduler(QueueAction); - var queue = queueScheduler; - - var AnimationFrameAction = (function (_super) { - __extends(AnimationFrameAction, _super); - function AnimationFrameAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if (delay !== null && delay > 0) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); - } - scheduler.actions.push(this); - return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(function () { return scheduler.flush(undefined); })); - }; - AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) { - var _a; - if (delay === void 0) { delay = 0; } - if (delay != null ? delay > 0 : this.delay > 0) { - return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay); - } - var actions = scheduler.actions; - if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) { - animationFrameProvider.cancelAnimationFrame(id); - scheduler._scheduled = undefined; - } - return undefined; - }; - return AnimationFrameAction; - }(AsyncAction)); - - var AnimationFrameScheduler = (function (_super) { - __extends(AnimationFrameScheduler, _super); - function AnimationFrameScheduler() { - return _super !== null && _super.apply(this, arguments) || this; - } - AnimationFrameScheduler.prototype.flush = function (action) { - this._active = true; - var flushId = this._scheduled; - this._scheduled = undefined; - var actions = this.actions; - var error; - action = action || actions.shift(); - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - this._active = false; - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - }; - return AnimationFrameScheduler; - }(AsyncScheduler)); - - var animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction); - var animationFrame = animationFrameScheduler; - - var VirtualTimeScheduler = (function (_super) { - __extends(VirtualTimeScheduler, _super); - function VirtualTimeScheduler(schedulerActionCtor, maxFrames) { - if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; } - if (maxFrames === void 0) { maxFrames = Infinity; } - var _this = _super.call(this, schedulerActionCtor, function () { return _this.frame; }) || this; - _this.maxFrames = maxFrames; - _this.frame = 0; - _this.index = -1; - return _this; - } - VirtualTimeScheduler.prototype.flush = function () { - var _a = this, actions = _a.actions, maxFrames = _a.maxFrames; - var error; - var action; - while ((action = actions[0]) && action.delay <= maxFrames) { - actions.shift(); - this.frame = action.delay; - if ((error = action.execute(action.state, action.delay))) { - break; - } - } - if (error) { - while ((action = actions.shift())) { - action.unsubscribe(); - } - throw error; - } - }; - VirtualTimeScheduler.frameTimeFactor = 10; - return VirtualTimeScheduler; - }(AsyncScheduler)); - var VirtualAction = (function (_super) { - __extends(VirtualAction, _super); - function VirtualAction(scheduler, work, index) { - if (index === void 0) { index = (scheduler.index += 1); } - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - _this.index = index; - _this.active = true; - _this.index = scheduler.index = index; - return _this; - } - VirtualAction.prototype.schedule = function (state, delay) { - if (delay === void 0) { delay = 0; } - if (Number.isFinite(delay)) { - if (!this.id) { - return _super.prototype.schedule.call(this, state, delay); - } - this.active = false; - var action = new VirtualAction(this.scheduler, this.work); - this.add(action); - return action.schedule(state, delay); - } - else { - return Subscription.EMPTY; - } - }; - VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - this.delay = scheduler.frame + delay; - var actions = scheduler.actions; - actions.push(this); - actions.sort(VirtualAction.sortActions); - return 1; - }; - VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - return undefined; - }; - VirtualAction.prototype._execute = function (state, delay) { - if (this.active === true) { - return _super.prototype._execute.call(this, state, delay); - } - }; - VirtualAction.sortActions = function (a, b) { - if (a.delay === b.delay) { - if (a.index === b.index) { - return 0; - } - else if (a.index > b.index) { - return 1; - } - else { - return -1; - } - } - else if (a.delay > b.delay) { - return 1; - } - else { - return -1; - } - }; - return VirtualAction; - }(AsyncAction)); - - var EMPTY = new Observable(function (subscriber) { return subscriber.complete(); }); - function empty(scheduler) { - return scheduler ? emptyScheduled(scheduler) : EMPTY; - } - function emptyScheduled(scheduler) { - return new Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); }); - } - - function isScheduler(value) { - return value && isFunction(value.schedule); - } - - function last(arr) { - return arr[arr.length - 1]; - } - function popResultSelector(args) { - return isFunction(last(args)) ? args.pop() : undefined; - } - function popScheduler(args) { - return isScheduler(last(args)) ? args.pop() : undefined; - } - function popNumber(args, defaultValue) { - return typeof last(args) === 'number' ? args.pop() : defaultValue; - } - - var isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; }); - - function isPromise(value) { - return isFunction(value === null || value === void 0 ? void 0 : value.then); - } - - function isInteropObservable(input) { - return isFunction(input[observable]); - } - - function isAsyncIterable(obj) { - return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]); - } - - function createInvalidObservableTypeError(input) { - return new TypeError("You provided " + (input !== null && typeof input === 'object' ? 'an invalid object' : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); - } - - function getSymbolIterator() { - if (typeof Symbol !== 'function' || !Symbol.iterator) { - return '@@iterator'; - } - return Symbol.iterator; - } - var iterator = getSymbolIterator(); - - function isIterable(input) { - return isFunction(input === null || input === void 0 ? void 0 : input[iterator]); - } - - function readableStreamLikeToAsyncGenerator(readableStream) { - return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() { - var reader, _a, value, done; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - reader = readableStream.getReader(); - _b.label = 1; - case 1: - _b.trys.push([1, , 9, 10]); - _b.label = 2; - case 2: - return [4, __await(reader.read())]; - case 3: - _a = _b.sent(), value = _a.value, done = _a.done; - if (!done) return [3, 5]; - return [4, __await(void 0)]; - case 4: return [2, _b.sent()]; - case 5: return [4, __await(value)]; - case 6: return [4, _b.sent()]; - case 7: - _b.sent(); - return [3, 2]; - case 8: return [3, 10]; - case 9: - reader.releaseLock(); - return [7]; - case 10: return [2]; - } - }); - }); - } - function isReadableStreamLike(obj) { - return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader); - } - - function innerFrom(input) { - if (input instanceof Observable) { - return input; - } - if (input != null) { - if (isInteropObservable(input)) { - return fromInteropObservable(input); - } - if (isArrayLike(input)) { - return fromArrayLike(input); - } - if (isPromise(input)) { - return fromPromise(input); - } - if (isAsyncIterable(input)) { - return fromAsyncIterable(input); - } - if (isIterable(input)) { - return fromIterable(input); - } - if (isReadableStreamLike(input)) { - return fromReadableStreamLike(input); - } - } - throw createInvalidObservableTypeError(input); - } - function fromInteropObservable(obj) { - return new Observable(function (subscriber) { - var obs = obj[observable](); - if (isFunction(obs.subscribe)) { - return obs.subscribe(subscriber); - } - throw new TypeError('Provided object does not correctly implement Symbol.observable'); - }); - } - function fromArrayLike(array) { - return new Observable(function (subscriber) { - for (var i = 0; i < array.length && !subscriber.closed; i++) { - subscriber.next(array[i]); - } - subscriber.complete(); - }); - } - function fromPromise(promise) { - return new Observable(function (subscriber) { - promise - .then(function (value) { - if (!subscriber.closed) { - subscriber.next(value); - subscriber.complete(); - } - }, function (err) { return subscriber.error(err); }) - .then(null, reportUnhandledError); - }); - } - function fromIterable(iterable) { - return new Observable(function (subscriber) { - var e_1, _a; - try { - for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) { - var value = iterable_1_1.value; - subscriber.next(value); - if (subscriber.closed) { - return; - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return)) _a.call(iterable_1); - } - finally { if (e_1) throw e_1.error; } - } - subscriber.complete(); - }); - } - function fromAsyncIterable(asyncIterable) { - return new Observable(function (subscriber) { - process(asyncIterable, subscriber).catch(function (err) { return subscriber.error(err); }); - }); - } - function fromReadableStreamLike(readableStream) { - return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream)); - } - function process(asyncIterable, subscriber) { - var asyncIterable_1, asyncIterable_1_1; - var e_2, _a; - return __awaiter(this, void 0, void 0, function () { - var value, e_2_1; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - _b.trys.push([0, 5, 6, 11]); - asyncIterable_1 = __asyncValues(asyncIterable); - _b.label = 1; - case 1: return [4, asyncIterable_1.next()]; - case 2: - if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done)) return [3, 4]; - value = asyncIterable_1_1.value; - subscriber.next(value); - if (subscriber.closed) { - return [2]; - } - _b.label = 3; - case 3: return [3, 1]; - case 4: return [3, 11]; - case 5: - e_2_1 = _b.sent(); - e_2 = { error: e_2_1 }; - return [3, 11]; - case 6: - _b.trys.push([6, , 9, 10]); - if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return))) return [3, 8]; - return [4, _a.call(asyncIterable_1)]; - case 7: - _b.sent(); - _b.label = 8; - case 8: return [3, 10]; - case 9: - if (e_2) throw e_2.error; - return [7]; - case 10: return [7]; - case 11: - subscriber.complete(); - return [2]; - } - }); - }); - } - - function executeSchedule(parentSubscription, scheduler, work, delay, repeat) { - if (delay === void 0) { delay = 0; } - if (repeat === void 0) { repeat = false; } - var scheduleSubscription = scheduler.schedule(function () { - work(); - if (repeat) { - parentSubscription.add(this.schedule(null, delay)); - } - else { - this.unsubscribe(); - } - }, delay); - parentSubscription.add(scheduleSubscription); - if (!repeat) { - return scheduleSubscription; - } - } - - function observeOn(scheduler, delay) { - if (delay === void 0) { delay = 0; } - return operate(function (source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return executeSchedule(subscriber, scheduler, function () { return subscriber.next(value); }, delay); }, function () { return executeSchedule(subscriber, scheduler, function () { return subscriber.complete(); }, delay); }, function (err) { return executeSchedule(subscriber, scheduler, function () { return subscriber.error(err); }, delay); })); - }); - } - - function subscribeOn(scheduler, delay) { - if (delay === void 0) { delay = 0; } - return operate(function (source, subscriber) { - subscriber.add(scheduler.schedule(function () { return source.subscribe(subscriber); }, delay)); - }); - } - - function scheduleObservable(input, scheduler) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); - } - - function schedulePromise(input, scheduler) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); - } - - function scheduleArray(input, scheduler) { - return new Observable(function (subscriber) { - var i = 0; - return scheduler.schedule(function () { - if (i === input.length) { - subscriber.complete(); - } - else { - subscriber.next(input[i++]); - if (!subscriber.closed) { - this.schedule(); - } - } - }); - }); - } - - function scheduleIterable(input, scheduler) { - return new Observable(function (subscriber) { - var iterator$$1; - executeSchedule(subscriber, scheduler, function () { - iterator$$1 = input[iterator](); - executeSchedule(subscriber, scheduler, function () { - var _a; - var value; - var done; - try { - (_a = iterator$$1.next(), value = _a.value, done = _a.done); - } - catch (err) { - subscriber.error(err); - return; - } - if (done) { - subscriber.complete(); - } - else { - subscriber.next(value); - } - }, 0, true); - }); - return function () { return isFunction(iterator$$1 === null || iterator$$1 === void 0 ? void 0 : iterator$$1.return) && iterator$$1.return(); }; - }); - } - - function scheduleAsyncIterable(input, scheduler) { - if (!input) { - throw new Error('Iterable cannot be null'); - } - return new Observable(function (subscriber) { - executeSchedule(subscriber, scheduler, function () { - var iterator = input[Symbol.asyncIterator](); - executeSchedule(subscriber, scheduler, function () { - iterator.next().then(function (result) { - if (result.done) { - subscriber.complete(); - } - else { - subscriber.next(result.value); - } - }); - }, 0, true); - }); - }); - } - - function scheduleReadableStreamLike(input, scheduler) { - return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler); - } - - function scheduled(input, scheduler) { - if (input != null) { - if (isInteropObservable(input)) { - return scheduleObservable(input, scheduler); - } - if (isArrayLike(input)) { - return scheduleArray(input, scheduler); - } - if (isPromise(input)) { - return schedulePromise(input, scheduler); - } - if (isAsyncIterable(input)) { - return scheduleAsyncIterable(input, scheduler); - } - if (isIterable(input)) { - return scheduleIterable(input, scheduler); - } - if (isReadableStreamLike(input)) { - return scheduleReadableStreamLike(input, scheduler); - } - } - throw createInvalidObservableTypeError(input); - } - - function from(input, scheduler) { - return scheduler ? scheduled(input, scheduler) : innerFrom(input); - } - - function of() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = popScheduler(args); - return from(args, scheduler); - } - - function throwError(errorOrErrorFactory, scheduler) { - var errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function () { return errorOrErrorFactory; }; - var init = function (subscriber) { return subscriber.error(errorFactory()); }; - return new Observable(scheduler ? function (subscriber) { return scheduler.schedule(init, 0, subscriber); } : init); - } - - (function (NotificationKind) { - NotificationKind["NEXT"] = "N"; - NotificationKind["ERROR"] = "E"; - NotificationKind["COMPLETE"] = "C"; - })(exports.NotificationKind || (exports.NotificationKind = {})); - var Notification = (function () { - function Notification(kind, value, error) { - this.kind = kind; - this.value = value; - this.error = error; - this.hasValue = kind === 'N'; - } - Notification.prototype.observe = function (observer) { - return observeNotification(this, observer); - }; - Notification.prototype.do = function (nextHandler, errorHandler, completeHandler) { - var _a = this, kind = _a.kind, value = _a.value, error = _a.error; - return kind === 'N' ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value) : kind === 'E' ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler(); - }; - Notification.prototype.accept = function (nextOrObserver, error, complete) { - var _a; - return isFunction((_a = nextOrObserver) === null || _a === void 0 ? void 0 : _a.next) - ? this.observe(nextOrObserver) - : this.do(nextOrObserver, error, complete); - }; - Notification.prototype.toObservable = function () { - var _a = this, kind = _a.kind, value = _a.value, error = _a.error; - var result = kind === 'N' - ? - of(value) - : - kind === 'E' - ? - throwError(function () { return error; }) - : - kind === 'C' - ? - EMPTY - : - 0; - if (!result) { - throw new TypeError("Unexpected notification kind " + kind); - } - return result; - }; - Notification.createNext = function (value) { - return new Notification('N', value); - }; - Notification.createError = function (err) { - return new Notification('E', undefined, err); - }; - Notification.createComplete = function () { - return Notification.completeNotification; - }; - Notification.completeNotification = new Notification('C'); - return Notification; - }()); - function observeNotification(notification, observer) { - var _a, _b, _c; - var _d = notification, kind = _d.kind, value = _d.value, error = _d.error; - if (typeof kind !== 'string') { - throw new TypeError('Invalid notification, missing "kind"'); - } - kind === 'N' ? (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, value) : kind === 'E' ? (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, error) : (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer); - } - - function isObservable(obj) { - return !!obj && (obj instanceof Observable || (isFunction(obj.lift) && isFunction(obj.subscribe))); - } - - var EmptyError = createErrorClass(function (_super) { return function EmptyErrorImpl() { - _super(this); - this.name = 'EmptyError'; - this.message = 'no elements in sequence'; - }; }); - - function lastValueFrom(source, config) { - var hasConfig = typeof config === 'object'; - return new Promise(function (resolve, reject) { - var _hasValue = false; - var _value; - source.subscribe({ - next: function (value) { - _value = value; - _hasValue = true; - }, - error: reject, - complete: function () { - if (_hasValue) { - resolve(_value); - } - else if (hasConfig) { - resolve(config.defaultValue); - } - else { - reject(new EmptyError()); - } - }, - }); - }); - } - - function firstValueFrom(source, config) { - var hasConfig = typeof config === 'object'; - return new Promise(function (resolve, reject) { - var subscriber = new SafeSubscriber({ - next: function (value) { - resolve(value); - subscriber.unsubscribe(); - }, - error: reject, - complete: function () { - if (hasConfig) { - resolve(config.defaultValue); - } - else { - reject(new EmptyError()); - } - }, - }); - source.subscribe(subscriber); - }); - } - - var ArgumentOutOfRangeError = createErrorClass(function (_super) { - return function ArgumentOutOfRangeErrorImpl() { - _super(this); - this.name = 'ArgumentOutOfRangeError'; - this.message = 'argument out of range'; - }; - }); - - var NotFoundError = createErrorClass(function (_super) { - return function NotFoundErrorImpl(message) { - _super(this); - this.name = 'NotFoundError'; - this.message = message; - }; - }); - - var SequenceError = createErrorClass(function (_super) { - return function SequenceErrorImpl(message) { - _super(this); - this.name = 'SequenceError'; - this.message = message; - }; - }); - - function isValidDate(value) { - return value instanceof Date && !isNaN(value); - } - - var TimeoutError = createErrorClass(function (_super) { - return function TimeoutErrorImpl(info) { - if (info === void 0) { info = null; } - _super(this); - this.message = 'Timeout has occurred'; - this.name = 'TimeoutError'; - this.info = info; - }; - }); - function timeout(config, schedulerArg) { - var _a = (isValidDate(config) ? { first: config } : typeof config === 'number' ? { each: config } : config), first = _a.first, each = _a.each, _b = _a.with, _with = _b === void 0 ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : asyncScheduler : _c, _d = _a.meta, meta = _d === void 0 ? null : _d; - if (first == null && each == null) { - throw new TypeError('No timeout provided.'); - } - return operate(function (source, subscriber) { - var originalSourceSubscription; - var timerSubscription; - var lastValue = null; - var seen = 0; - var startTimer = function (delay) { - timerSubscription = executeSchedule(subscriber, scheduler, function () { - try { - originalSourceSubscription.unsubscribe(); - innerFrom(_with({ - meta: meta, - lastValue: lastValue, - seen: seen, - })).subscribe(subscriber); - } - catch (err) { - subscriber.error(err); - } - }, delay); - }; - originalSourceSubscription = source.subscribe(createOperatorSubscriber(subscriber, function (value) { - timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); - seen++; - subscriber.next((lastValue = value)); - each > 0 && startTimer(each); - }, undefined, undefined, function () { - if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) { - timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); - } - lastValue = null; - })); - !seen && startTimer(first != null ? (typeof first === 'number' ? first : +first - scheduler.now()) : each); - }); - } - function timeoutErrorFactory(info) { - throw new TimeoutError(info); - } - - function map(project, thisArg) { - return operate(function (source, subscriber) { - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - subscriber.next(project.call(thisArg, value, index++)); - })); - }); - } - - var isArray = Array.isArray; - function callOrApply(fn, args) { - return isArray(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args); - } - function mapOneOrManyArgs(fn) { - return map(function (args) { return callOrApply(fn, args); }); - } - - function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) { - if (resultSelector) { - if (isScheduler(resultSelector)) { - scheduler = resultSelector; - } - else { - return function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler) - .apply(this, args) - .pipe(mapOneOrManyArgs(resultSelector)); - }; - } - } - if (scheduler) { - return function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return bindCallbackInternals(isNodeStyle, callbackFunc) - .apply(this, args) - .pipe(subscribeOn(scheduler), observeOn(scheduler)); - }; - } - return function () { - var _this = this; - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var subject = new AsyncSubject(); - var uninitialized = true; - return new Observable(function (subscriber) { - var subs = subject.subscribe(subscriber); - if (uninitialized) { - uninitialized = false; - var isAsync_1 = false; - var isComplete_1 = false; - callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [ - function () { - var results = []; - for (var _i = 0; _i < arguments.length; _i++) { - results[_i] = arguments[_i]; - } - if (isNodeStyle) { - var err = results.shift(); - if (err != null) { - subject.error(err); - return; - } - } - subject.next(1 < results.length ? results : results[0]); - isComplete_1 = true; - if (isAsync_1) { - subject.complete(); - } - }, - ])); - if (isComplete_1) { - subject.complete(); - } - isAsync_1 = true; - } - return subs; - }); - }; - } - - function bindCallback(callbackFunc, resultSelector, scheduler) { - return bindCallbackInternals(false, callbackFunc, resultSelector, scheduler); - } - - function bindNodeCallback(callbackFunc, resultSelector, scheduler) { - return bindCallbackInternals(true, callbackFunc, resultSelector, scheduler); - } - - var isArray$1 = Array.isArray; - var getPrototypeOf = Object.getPrototypeOf, objectProto = Object.prototype, getKeys = Object.keys; - function argsArgArrayOrObject(args) { - if (args.length === 1) { - var first_1 = args[0]; - if (isArray$1(first_1)) { - return { args: first_1, keys: null }; - } - if (isPOJO(first_1)) { - var keys = getKeys(first_1); - return { - args: keys.map(function (key) { return first_1[key]; }), - keys: keys, - }; - } - } - return { args: args, keys: null }; - } - function isPOJO(obj) { - return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto; - } - - function createObject(keys, values) { - return keys.reduce(function (result, key, i) { return ((result[key] = values[i]), result); }, {}); - } - - function combineLatest() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = popScheduler(args); - var resultSelector = popResultSelector(args); - var _a = argsArgArrayOrObject(args), observables = _a.args, keys = _a.keys; - if (observables.length === 0) { - return from([], scheduler); - } - var result = new Observable(combineLatestInit(observables, scheduler, keys - ? - function (values) { return createObject(keys, values); } - : - identity)); - return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result; - } - function combineLatestInit(observables, scheduler, valueTransform) { - if (valueTransform === void 0) { valueTransform = identity; } - return function (subscriber) { - maybeSchedule(scheduler, function () { - var length = observables.length; - var values = new Array(length); - var active = length; - var remainingFirstValues = length; - var _loop_1 = function (i) { - maybeSchedule(scheduler, function () { - var source = from(observables[i], scheduler); - var hasFirstValue = false; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - values[i] = value; - if (!hasFirstValue) { - hasFirstValue = true; - remainingFirstValues--; - } - if (!remainingFirstValues) { - subscriber.next(valueTransform(values.slice())); - } - }, function () { - if (!--active) { - subscriber.complete(); - } - })); - }, subscriber); - }; - for (var i = 0; i < length; i++) { - _loop_1(i); - } - }, subscriber); - }; - } - function maybeSchedule(scheduler, execute, subscription) { - if (scheduler) { - executeSchedule(subscription, scheduler, execute); - } - else { - execute(); - } - } - - function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) { - var buffer = []; - var active = 0; - var index = 0; - var isComplete = false; - var checkComplete = function () { - if (isComplete && !buffer.length && !active) { - subscriber.complete(); - } - }; - var outerNext = function (value) { return (active < concurrent ? doInnerSub(value) : buffer.push(value)); }; - var doInnerSub = function (value) { - expand && subscriber.next(value); - active++; - var innerComplete = false; - innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, function (innerValue) { - onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue); - if (expand) { - outerNext(innerValue); - } - else { - subscriber.next(innerValue); - } - }, function () { - innerComplete = true; - }, undefined, function () { - if (innerComplete) { - try { - active--; - var _loop_1 = function () { - var bufferedValue = buffer.shift(); - if (innerSubScheduler) { - executeSchedule(subscriber, innerSubScheduler, function () { return doInnerSub(bufferedValue); }); - } - else { - doInnerSub(bufferedValue); - } - }; - while (buffer.length && active < concurrent) { - _loop_1(); - } - checkComplete(); - } - catch (err) { - subscriber.error(err); - } - } - })); - }; - source.subscribe(createOperatorSubscriber(subscriber, outerNext, function () { - isComplete = true; - checkComplete(); - })); - return function () { - additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer(); - }; - } - - function mergeMap(project, resultSelector, concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - if (isFunction(resultSelector)) { - return mergeMap(function (a, i) { return map(function (b, ii) { return resultSelector(a, b, i, ii); })(innerFrom(project(a, i))); }, concurrent); - } - else if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - return operate(function (source, subscriber) { return mergeInternals(source, subscriber, project, concurrent); }); - } - - function mergeAll(concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - return mergeMap(identity, concurrent); - } - - function concatAll() { - return mergeAll(1); - } - - function concat() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return concatAll()(from(args, popScheduler(args))); - } - - function defer(observableFactory) { - return new Observable(function (subscriber) { - innerFrom(observableFactory()).subscribe(subscriber); - }); - } - - var DEFAULT_CONFIG = { - connector: function () { return new Subject(); }, - resetOnDisconnect: true, - }; - function connectable(source, config) { - if (config === void 0) { config = DEFAULT_CONFIG; } - var connection = null; - var connector = config.connector, _a = config.resetOnDisconnect, resetOnDisconnect = _a === void 0 ? true : _a; - var subject = connector(); - var result = new Observable(function (subscriber) { - return subject.subscribe(subscriber); - }); - result.connect = function () { - if (!connection || connection.closed) { - connection = defer(function () { return source; }).subscribe(subject); - if (resetOnDisconnect) { - connection.add(function () { return (subject = connector()); }); - } - } - return connection; - }; - return result; - } - - function forkJoin() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var resultSelector = popResultSelector(args); - var _a = argsArgArrayOrObject(args), sources = _a.args, keys = _a.keys; - var result = new Observable(function (subscriber) { - var length = sources.length; - if (!length) { - subscriber.complete(); - return; - } - var values = new Array(length); - var remainingCompletions = length; - var remainingEmissions = length; - var _loop_1 = function (sourceIndex) { - var hasValue = false; - innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, function (value) { - if (!hasValue) { - hasValue = true; - remainingEmissions--; - } - values[sourceIndex] = value; - }, function () { return remainingCompletions--; }, undefined, function () { - if (!remainingCompletions || !hasValue) { - if (!remainingEmissions) { - subscriber.next(keys ? createObject(keys, values) : values); - } - subscriber.complete(); - } - })); - }; - for (var sourceIndex = 0; sourceIndex < length; sourceIndex++) { - _loop_1(sourceIndex); - } - }); - return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result; - } - - var nodeEventEmitterMethods = ['addListener', 'removeListener']; - var eventTargetMethods = ['addEventListener', 'removeEventListener']; - var jqueryMethods = ['on', 'off']; - function fromEvent(target, eventName, options, resultSelector) { - if (isFunction(options)) { - resultSelector = options; - options = undefined; - } - if (resultSelector) { - return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector)); - } - var _a = __read(isEventTarget(target) - ? eventTargetMethods.map(function (methodName) { return function (handler) { return target[methodName](eventName, handler, options); }; }) - : - isNodeStyleEventEmitter(target) - ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) - : isJQueryStyleEventEmitter(target) - ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) - : [], 2), add = _a[0], remove = _a[1]; - if (!add) { - if (isArrayLike(target)) { - return mergeMap(function (subTarget) { return fromEvent(subTarget, eventName, options); })(innerFrom(target)); - } - } - if (!add) { - throw new TypeError('Invalid event target'); - } - return new Observable(function (subscriber) { - var handler = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return subscriber.next(1 < args.length ? args : args[0]); - }; - add(handler); - return function () { return remove(handler); }; - }); - } - function toCommonHandlerRegistry(target, eventName) { - return function (methodName) { return function (handler) { return target[methodName](eventName, handler); }; }; - } - function isNodeStyleEventEmitter(target) { - return isFunction(target.addListener) && isFunction(target.removeListener); - } - function isJQueryStyleEventEmitter(target) { - return isFunction(target.on) && isFunction(target.off); - } - function isEventTarget(target) { - return isFunction(target.addEventListener) && isFunction(target.removeEventListener); - } - - function fromEventPattern(addHandler, removeHandler, resultSelector) { - if (resultSelector) { - return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs(resultSelector)); - } - return new Observable(function (subscriber) { - var handler = function () { - var e = []; - for (var _i = 0; _i < arguments.length; _i++) { - e[_i] = arguments[_i]; - } - return subscriber.next(e.length === 1 ? e[0] : e); - }; - var retValue = addHandler(handler); - return isFunction(removeHandler) ? function () { return removeHandler(handler, retValue); } : undefined; - }); - } - - function generate(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) { - var _a, _b; - var resultSelector; - var initialState; - if (arguments.length === 1) { - (_a = initialStateOrOptions, initialState = _a.initialState, condition = _a.condition, iterate = _a.iterate, _b = _a.resultSelector, resultSelector = _b === void 0 ? identity : _b, scheduler = _a.scheduler); - } - else { - initialState = initialStateOrOptions; - if (!resultSelectorOrScheduler || isScheduler(resultSelectorOrScheduler)) { - resultSelector = identity; - scheduler = resultSelectorOrScheduler; - } - else { - resultSelector = resultSelectorOrScheduler; - } - } - function gen() { - var state; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - state = initialState; - _a.label = 1; - case 1: - if (!(!condition || condition(state))) return [3, 4]; - return [4, resultSelector(state)]; - case 2: - _a.sent(); - _a.label = 3; - case 3: - state = iterate(state); - return [3, 1]; - case 4: return [2]; - } - }); - } - return defer((scheduler - ? - function () { return scheduleIterable(gen(), scheduler); } - : - gen)); - } - - function iif(condition, trueResult, falseResult) { - return defer(function () { return (condition() ? trueResult : falseResult); }); - } - - function timer(dueTime, intervalOrScheduler, scheduler) { - if (dueTime === void 0) { dueTime = 0; } - if (scheduler === void 0) { scheduler = async; } - var intervalDuration = -1; - if (intervalOrScheduler != null) { - if (isScheduler(intervalOrScheduler)) { - scheduler = intervalOrScheduler; - } - else { - intervalDuration = intervalOrScheduler; - } - } - return new Observable(function (subscriber) { - var due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime; - if (due < 0) { - due = 0; - } - var n = 0; - return scheduler.schedule(function () { - if (!subscriber.closed) { - subscriber.next(n++); - if (0 <= intervalDuration) { - this.schedule(undefined, intervalDuration); - } - else { - subscriber.complete(); - } - } - }, due); - }); - } - - function interval(period, scheduler) { - if (period === void 0) { period = 0; } - if (scheduler === void 0) { scheduler = asyncScheduler; } - if (period < 0) { - period = 0; - } - return timer(period, period, scheduler); - } - - function merge() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = popScheduler(args); - var concurrent = popNumber(args, Infinity); - var sources = args; - return !sources.length - ? - EMPTY - : sources.length === 1 - ? - innerFrom(sources[0]) - : - mergeAll(concurrent)(from(sources, scheduler)); - } - - var NEVER = new Observable(noop); - function never() { - return NEVER; - } - - var isArray$2 = Array.isArray; - function argsOrArgArray(args) { - return args.length === 1 && isArray$2(args[0]) ? args[0] : args; - } - - function onErrorResumeNext() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - var nextSources = argsOrArgArray(sources); - return new Observable(function (subscriber) { - var sourceIndex = 0; - var subscribeNext = function () { - if (sourceIndex < nextSources.length) { - var nextSource = void 0; - try { - nextSource = innerFrom(nextSources[sourceIndex++]); - } - catch (err) { - subscribeNext(); - return; - } - var innerSubscriber = new OperatorSubscriber(subscriber, undefined, noop, noop); - nextSource.subscribe(innerSubscriber); - innerSubscriber.add(subscribeNext); - } - else { - subscriber.complete(); - } - }; - subscribeNext(); - }); - } - - function pairs(obj, scheduler) { - return from(Object.entries(obj), scheduler); - } - - function not(pred, thisArg) { - return function (value, index) { return !pred.call(thisArg, value, index); }; - } - - function filter(predicate, thisArg) { - return operate(function (source, subscriber) { - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return predicate.call(thisArg, value, index++) && subscriber.next(value); })); - }); - } - - function partition(source, predicate, thisArg) { - return [filter(predicate, thisArg)(innerFrom(source)), filter(not(predicate, thisArg))(innerFrom(source))]; - } - - function race() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - sources = argsOrArgArray(sources); - return sources.length === 1 ? innerFrom(sources[0]) : new Observable(raceInit(sources)); - } - function raceInit(sources) { - return function (subscriber) { - var subscriptions = []; - var _loop_1 = function (i) { - subscriptions.push(innerFrom(sources[i]).subscribe(createOperatorSubscriber(subscriber, function (value) { - if (subscriptions) { - for (var s = 0; s < subscriptions.length; s++) { - s !== i && subscriptions[s].unsubscribe(); - } - subscriptions = null; - } - subscriber.next(value); - }))); - }; - for (var i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) { - _loop_1(i); - } - }; - } - - function range(start, count, scheduler) { - if (count == null) { - count = start; - start = 0; - } - if (count <= 0) { - return EMPTY; - } - var end = count + start; - return new Observable(scheduler - ? - function (subscriber) { - var n = start; - return scheduler.schedule(function () { - if (n < end) { - subscriber.next(n++); - this.schedule(); - } - else { - subscriber.complete(); - } - }); - } - : - function (subscriber) { - var n = start; - while (n < end && !subscriber.closed) { - subscriber.next(n++); - } - subscriber.complete(); - }); - } - - function using(resourceFactory, observableFactory) { - return new Observable(function (subscriber) { - var resource = resourceFactory(); - var result = observableFactory(resource); - var source = result ? innerFrom(result) : EMPTY; - source.subscribe(subscriber); - return function () { - if (resource) { - resource.unsubscribe(); - } - }; - }); - } - - function zip() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var resultSelector = popResultSelector(args); - var sources = argsOrArgArray(args); - return sources.length - ? new Observable(function (subscriber) { - var buffers = sources.map(function () { return []; }); - var completed = sources.map(function () { return false; }); - subscriber.add(function () { - buffers = completed = null; - }); - var _loop_1 = function (sourceIndex) { - innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, function (value) { - buffers[sourceIndex].push(value); - if (buffers.every(function (buffer) { return buffer.length; })) { - var result = buffers.map(function (buffer) { return buffer.shift(); }); - subscriber.next(resultSelector ? resultSelector.apply(void 0, __spreadArray([], __read(result))) : result); - if (buffers.some(function (buffer, i) { return !buffer.length && completed[i]; })) { - subscriber.complete(); - } - } - }, function () { - completed[sourceIndex] = true; - !buffers[sourceIndex].length && subscriber.complete(); - })); - }; - for (var sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) { - _loop_1(sourceIndex); - } - return function () { - buffers = completed = null; - }; - }) - : EMPTY; - } - - function audit(durationSelector) { - return operate(function (source, subscriber) { - var hasValue = false; - var lastValue = null; - var durationSubscriber = null; - var isComplete = false; - var endDuration = function () { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - durationSubscriber = null; - if (hasValue) { - hasValue = false; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - isComplete && subscriber.complete(); - }; - var cleanupDuration = function () { - durationSubscriber = null; - isComplete && subscriber.complete(); - }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - lastValue = value; - if (!durationSubscriber) { - innerFrom(durationSelector(value)).subscribe((durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration))); - } - }, function () { - isComplete = true; - (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete(); - })); - }); - } - - function auditTime(duration, scheduler) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - return audit(function () { return timer(duration, scheduler); }); - } - - function buffer(closingNotifier) { - return operate(function (source, subscriber) { - var currentBuffer = []; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return currentBuffer.push(value); }, function () { - subscriber.next(currentBuffer); - subscriber.complete(); - })); - innerFrom(closingNotifier).subscribe(createOperatorSubscriber(subscriber, function () { - var b = currentBuffer; - currentBuffer = []; - subscriber.next(b); - }, noop)); - return function () { - currentBuffer = null; - }; - }); - } - - function bufferCount(bufferSize, startBufferEvery) { - if (startBufferEvery === void 0) { startBufferEvery = null; } - startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize; - return operate(function (source, subscriber) { - var buffers = []; - var count = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var e_1, _a, e_2, _b; - var toEmit = null; - if (count++ % startBufferEvery === 0) { - buffers.push([]); - } - try { - for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { - var buffer = buffers_1_1.value; - buffer.push(value); - if (bufferSize <= buffer.length) { - toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : []; - toEmit.push(buffer); - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1); - } - finally { if (e_1) throw e_1.error; } - } - if (toEmit) { - try { - for (var toEmit_1 = __values(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) { - var buffer = toEmit_1_1.value; - arrRemove(buffers, buffer); - subscriber.next(buffer); - } - } - catch (e_2_1) { e_2 = { error: e_2_1 }; } - finally { - try { - if (toEmit_1_1 && !toEmit_1_1.done && (_b = toEmit_1.return)) _b.call(toEmit_1); - } - finally { if (e_2) throw e_2.error; } - } - } - }, function () { - var e_3, _a; - try { - for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) { - var buffer = buffers_2_1.value; - subscriber.next(buffer); - } - } - catch (e_3_1) { e_3 = { error: e_3_1 }; } - finally { - try { - if (buffers_2_1 && !buffers_2_1.done && (_a = buffers_2.return)) _a.call(buffers_2); - } - finally { if (e_3) throw e_3.error; } - } - subscriber.complete(); - }, undefined, function () { - buffers = null; - })); - }); - } - - function bufferTime(bufferTimeSpan) { - var _a, _b; - var otherArgs = []; - for (var _i = 1; _i < arguments.length; _i++) { - otherArgs[_i - 1] = arguments[_i]; - } - var scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler; - var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null; - var maxBufferSize = otherArgs[1] || Infinity; - return operate(function (source, subscriber) { - var bufferRecords = []; - var restartOnEmit = false; - var emit = function (record) { - var buffer = record.buffer, subs = record.subs; - subs.unsubscribe(); - arrRemove(bufferRecords, record); - subscriber.next(buffer); - restartOnEmit && startBuffer(); - }; - var startBuffer = function () { - if (bufferRecords) { - var subs = new Subscription(); - subscriber.add(subs); - var buffer = []; - var record_1 = { - buffer: buffer, - subs: subs, - }; - bufferRecords.push(record_1); - executeSchedule(subs, scheduler, function () { return emit(record_1); }, bufferTimeSpan); - } - }; - if (bufferCreationInterval !== null && bufferCreationInterval >= 0) { - executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true); - } - else { - restartOnEmit = true; - } - startBuffer(); - var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - var recordsCopy = bufferRecords.slice(); - try { - for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) { - var record = recordsCopy_1_1.value; - var buffer = record.buffer; - buffer.push(value); - maxBufferSize <= buffer.length && emit(record); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a = recordsCopy_1.return)) _a.call(recordsCopy_1); - } - finally { if (e_1) throw e_1.error; } - } - }, function () { - while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) { - subscriber.next(bufferRecords.shift().buffer); - } - bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe(); - subscriber.complete(); - subscriber.unsubscribe(); - }, undefined, function () { return (bufferRecords = null); }); - source.subscribe(bufferTimeSubscriber); - }); - } - - function bufferToggle(openings, closingSelector) { - return operate(function (source, subscriber) { - var buffers = []; - innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, function (openValue) { - var buffer = []; - buffers.push(buffer); - var closingSubscription = new Subscription(); - var emitBuffer = function () { - arrRemove(buffers, buffer); - subscriber.next(buffer); - closingSubscription.unsubscribe(); - }; - closingSubscription.add(innerFrom(closingSelector(openValue)).subscribe(createOperatorSubscriber(subscriber, emitBuffer, noop))); - }, noop)); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - try { - for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { - var buffer = buffers_1_1.value; - buffer.push(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1); - } - finally { if (e_1) throw e_1.error; } - } - }, function () { - while (buffers.length > 0) { - subscriber.next(buffers.shift()); - } - subscriber.complete(); - })); - }); - } - - function bufferWhen(closingSelector) { - return operate(function (source, subscriber) { - var buffer = null; - var closingSubscriber = null; - var openBuffer = function () { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - var b = buffer; - buffer = []; - b && subscriber.next(b); - innerFrom(closingSelector()).subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openBuffer, noop))); - }; - openBuffer(); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return buffer === null || buffer === void 0 ? void 0 : buffer.push(value); }, function () { - buffer && subscriber.next(buffer); - subscriber.complete(); - }, undefined, function () { return (buffer = closingSubscriber = null); })); - }); - } - - function catchError(selector) { - return operate(function (source, subscriber) { - var innerSub = null; - var syncUnsub = false; - var handledResult; - innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, function (err) { - handledResult = innerFrom(selector(err, catchError(selector)(source))); - if (innerSub) { - innerSub.unsubscribe(); - innerSub = null; - handledResult.subscribe(subscriber); - } - else { - syncUnsub = true; - } - })); - if (syncUnsub) { - innerSub.unsubscribe(); - innerSub = null; - handledResult.subscribe(subscriber); - } - }); - } - - function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) { - return function (source, subscriber) { - var hasState = hasSeed; - var state = seed; - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var i = index++; - state = hasState - ? - accumulator(state, value, i) - : - ((hasState = true), value); - emitOnNext && subscriber.next(state); - }, emitBeforeComplete && - (function () { - hasState && subscriber.next(state); - subscriber.complete(); - }))); - }; - } - - function reduce(accumulator, seed) { - return operate(scanInternals(accumulator, seed, arguments.length >= 2, false, true)); - } - - var arrReducer = function (arr, value) { return (arr.push(value), arr); }; - function toArray() { - return operate(function (source, subscriber) { - reduce(arrReducer, [])(source).subscribe(subscriber); - }); - } - - function joinAllInternals(joinFn, project) { - return pipe(toArray(), mergeMap(function (sources) { return joinFn(sources); }), project ? mapOneOrManyArgs(project) : identity); - } - - function combineLatestAll(project) { - return joinAllInternals(combineLatest, project); - } - - var combineAll = combineLatestAll; - - function combineLatest$1() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var resultSelector = popResultSelector(args); - return resultSelector - ? pipe(combineLatest$1.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs(resultSelector)) - : operate(function (source, subscriber) { - combineLatestInit(__spreadArray([source], __read(argsOrArgArray(args))))(subscriber); - }); - } - - function combineLatestWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return combineLatest$1.apply(void 0, __spreadArray([], __read(otherSources))); - } - - function concatMap(project, resultSelector) { - return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1); - } - - function concatMapTo(innerObservable, resultSelector) { - return isFunction(resultSelector) ? concatMap(function () { return innerObservable; }, resultSelector) : concatMap(function () { return innerObservable; }); - } - - function concat$1() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = popScheduler(args); - return operate(function (source, subscriber) { - concatAll()(from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber); - }); - } - - function concatWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return concat$1.apply(void 0, __spreadArray([], __read(otherSources))); - } - - function fromSubscribable(subscribable) { - return new Observable(function (subscriber) { return subscribable.subscribe(subscriber); }); - } - - var DEFAULT_CONFIG$1 = { - connector: function () { return new Subject(); }, - }; - function connect(selector, config) { - if (config === void 0) { config = DEFAULT_CONFIG$1; } - var connector = config.connector; - return operate(function (source, subscriber) { - var subject = connector(); - innerFrom(selector(fromSubscribable(subject))).subscribe(subscriber); - subscriber.add(source.subscribe(subject)); - }); - } - - function count(predicate) { - return reduce(function (total, value, i) { return (!predicate || predicate(value, i) ? total + 1 : total); }, 0); - } - - function debounce(durationSelector) { - return operate(function (source, subscriber) { - var hasValue = false; - var lastValue = null; - var durationSubscriber = null; - var emit = function () { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - durationSubscriber = null; - if (hasValue) { - hasValue = false; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - hasValue = true; - lastValue = value; - durationSubscriber = createOperatorSubscriber(subscriber, emit, noop); - innerFrom(durationSelector(value)).subscribe(durationSubscriber); - }, function () { - emit(); - subscriber.complete(); - }, undefined, function () { - lastValue = durationSubscriber = null; - })); - }); - } - - function debounceTime(dueTime, scheduler) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - return operate(function (source, subscriber) { - var activeTask = null; - var lastValue = null; - var lastTime = null; - var emit = function () { - if (activeTask) { - activeTask.unsubscribe(); - activeTask = null; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - }; - function emitWhenIdle() { - var targetTime = lastTime + dueTime; - var now = scheduler.now(); - if (now < targetTime) { - activeTask = this.schedule(undefined, targetTime - now); - subscriber.add(activeTask); - return; - } - emit(); - } - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - lastValue = value; - lastTime = scheduler.now(); - if (!activeTask) { - activeTask = scheduler.schedule(emitWhenIdle, dueTime); - subscriber.add(activeTask); - } - }, function () { - emit(); - subscriber.complete(); - }, undefined, function () { - lastValue = activeTask = null; - })); - }); - } - - function defaultIfEmpty(defaultValue) { - return operate(function (source, subscriber) { - var hasValue = false; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - subscriber.next(value); - }, function () { - if (!hasValue) { - subscriber.next(defaultValue); - } - subscriber.complete(); - })); - }); - } - - function take(count) { - return count <= 0 - ? - function () { return EMPTY; } - : operate(function (source, subscriber) { - var seen = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - if (++seen <= count) { - subscriber.next(value); - if (count <= seen) { - subscriber.complete(); - } - } - })); - }); - } - - function ignoreElements() { - return operate(function (source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, noop)); - }); - } - - function mapTo(value) { - return map(function () { return value; }); - } - - function delayWhen(delayDurationSelector, subscriptionDelay) { - if (subscriptionDelay) { - return function (source) { - return concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector))); - }; - } - return mergeMap(function (value, index) { return innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)); }); - } - - function delay(due, scheduler) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - var duration = timer(due, scheduler); - return delayWhen(function () { return duration; }); - } - - function dematerialize() { - return operate(function (source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, function (notification) { return observeNotification(notification, subscriber); })); - }); - } - - function distinct(keySelector, flushes) { - return operate(function (source, subscriber) { - var distinctKeys = new Set(); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var key = keySelector ? keySelector(value) : value; - if (!distinctKeys.has(key)) { - distinctKeys.add(key); - subscriber.next(value); - } - })); - flushes && innerFrom(flushes).subscribe(createOperatorSubscriber(subscriber, function () { return distinctKeys.clear(); }, noop)); - }); - } - - function distinctUntilChanged(comparator, keySelector) { - if (keySelector === void 0) { keySelector = identity; } - comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare; - return operate(function (source, subscriber) { - var previousKey; - var first = true; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var currentKey = keySelector(value); - if (first || !comparator(previousKey, currentKey)) { - first = false; - previousKey = currentKey; - subscriber.next(value); - } - })); - }); - } - function defaultCompare(a, b) { - return a === b; - } - - function distinctUntilKeyChanged(key, compare) { - return distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; }); - } - - function throwIfEmpty(errorFactory) { - if (errorFactory === void 0) { errorFactory = defaultErrorFactory; } - return operate(function (source, subscriber) { - var hasValue = false; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - subscriber.next(value); - }, function () { return (hasValue ? subscriber.complete() : subscriber.error(errorFactory())); })); - }); - } - function defaultErrorFactory() { - return new EmptyError(); - } - - function elementAt(index, defaultValue) { - if (index < 0) { - throw new ArgumentOutOfRangeError(); - } - var hasDefaultValue = arguments.length >= 2; - return function (source) { - return source.pipe(filter(function (v, i) { return i === index; }), take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new ArgumentOutOfRangeError(); })); - }; - } - - function endWith() { - var values = []; - for (var _i = 0; _i < arguments.length; _i++) { - values[_i] = arguments[_i]; - } - return function (source) { return concat(source, of.apply(void 0, __spreadArray([], __read(values)))); }; - } - - function every(predicate, thisArg) { - return operate(function (source, subscriber) { - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - if (!predicate.call(thisArg, value, index++, source)) { - subscriber.next(false); - subscriber.complete(); - } - }, function () { - subscriber.next(true); - subscriber.complete(); - })); - }); - } - - function exhaustMap(project, resultSelector) { - if (resultSelector) { - return function (source) { - return source.pipe(exhaustMap(function (a, i) { return innerFrom(project(a, i)).pipe(map(function (b, ii) { return resultSelector(a, b, i, ii); })); })); - }; - } - return operate(function (source, subscriber) { - var index = 0; - var innerSub = null; - var isComplete = false; - source.subscribe(createOperatorSubscriber(subscriber, function (outerValue) { - if (!innerSub) { - innerSub = createOperatorSubscriber(subscriber, undefined, function () { - innerSub = null; - isComplete && subscriber.complete(); - }); - innerFrom(project(outerValue, index++)).subscribe(innerSub); - } - }, function () { - isComplete = true; - !innerSub && subscriber.complete(); - })); - }); - } - - function exhaustAll() { - return exhaustMap(identity); - } - - var exhaust = exhaustAll; - - function expand(project, concurrent, scheduler) { - if (concurrent === void 0) { concurrent = Infinity; } - concurrent = (concurrent || 0) < 1 ? Infinity : concurrent; - return operate(function (source, subscriber) { - return mergeInternals(source, subscriber, project, concurrent, undefined, true, scheduler); - }); - } - - function finalize(callback) { - return operate(function (source, subscriber) { - try { - source.subscribe(subscriber); - } - finally { - subscriber.add(callback); - } - }); - } - - function find(predicate, thisArg) { - return operate(createFind(predicate, thisArg, 'value')); - } - function createFind(predicate, thisArg, emit) { - var findIndex = emit === 'index'; - return function (source, subscriber) { - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var i = index++; - if (predicate.call(thisArg, value, i, source)) { - subscriber.next(findIndex ? i : value); - subscriber.complete(); - } - }, function () { - subscriber.next(findIndex ? -1 : undefined); - subscriber.complete(); - })); - }; - } - - function findIndex(predicate, thisArg) { - return operate(createFind(predicate, thisArg, 'index')); - } - - function first(predicate, defaultValue) { - var hasDefaultValue = arguments.length >= 2; - return function (source) { - return source.pipe(predicate ? filter(function (v, i) { return predicate(v, i, source); }) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new EmptyError(); })); - }; - } - - function groupBy(keySelector, elementOrOptions, duration, connector) { - return operate(function (source, subscriber) { - var element; - if (!elementOrOptions || typeof elementOrOptions === 'function') { - element = elementOrOptions; - } - else { - (duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector); - } - var groups = new Map(); - var notify = function (cb) { - groups.forEach(cb); - cb(subscriber); - }; - var handleError = function (err) { return notify(function (consumer) { return consumer.error(err); }); }; - var activeGroups = 0; - var teardownAttempted = false; - var groupBySourceSubscriber = new OperatorSubscriber(subscriber, function (value) { - try { - var key_1 = keySelector(value); - var group_1 = groups.get(key_1); - if (!group_1) { - groups.set(key_1, (group_1 = connector ? connector() : new Subject())); - var grouped = createGroupedObservable(key_1, group_1); - subscriber.next(grouped); - if (duration) { - var durationSubscriber_1 = createOperatorSubscriber(group_1, function () { - group_1.complete(); - durationSubscriber_1 === null || durationSubscriber_1 === void 0 ? void 0 : durationSubscriber_1.unsubscribe(); - }, undefined, undefined, function () { return groups.delete(key_1); }); - groupBySourceSubscriber.add(innerFrom(duration(grouped)).subscribe(durationSubscriber_1)); - } - } - group_1.next(element ? element(value) : value); - } - catch (err) { - handleError(err); - } - }, function () { return notify(function (consumer) { return consumer.complete(); }); }, handleError, function () { return groups.clear(); }, function () { - teardownAttempted = true; - return activeGroups === 0; - }); - source.subscribe(groupBySourceSubscriber); - function createGroupedObservable(key, groupSubject) { - var result = new Observable(function (groupSubscriber) { - activeGroups++; - var innerSub = groupSubject.subscribe(groupSubscriber); - return function () { - innerSub.unsubscribe(); - --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe(); - }; - }); - result.key = key; - return result; - } - }); - } - - function isEmpty() { - return operate(function (source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, function () { - subscriber.next(false); - subscriber.complete(); - }, function () { - subscriber.next(true); - subscriber.complete(); - })); - }); - } - - function takeLast(count) { - return count <= 0 - ? function () { return EMPTY; } - : operate(function (source, subscriber) { - var buffer = []; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - buffer.push(value); - count < buffer.length && buffer.shift(); - }, function () { - var e_1, _a; - try { - for (var buffer_1 = __values(buffer), buffer_1_1 = buffer_1.next(); !buffer_1_1.done; buffer_1_1 = buffer_1.next()) { - var value = buffer_1_1.value; - subscriber.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (buffer_1_1 && !buffer_1_1.done && (_a = buffer_1.return)) _a.call(buffer_1); - } - finally { if (e_1) throw e_1.error; } - } - subscriber.complete(); - }, undefined, function () { - buffer = null; - })); - }); - } - - function last$1(predicate, defaultValue) { - var hasDefaultValue = arguments.length >= 2; - return function (source) { - return source.pipe(predicate ? filter(function (v, i) { return predicate(v, i, source); }) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new EmptyError(); })); - }; - } - - function materialize() { - return operate(function (source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - subscriber.next(Notification.createNext(value)); - }, function () { - subscriber.next(Notification.createComplete()); - subscriber.complete(); - }, function (err) { - subscriber.next(Notification.createError(err)); - subscriber.complete(); - })); - }); - } - - function max(comparer) { - return reduce(isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); }); - } - - var flatMap = mergeMap; - - function mergeMapTo(innerObservable, resultSelector, concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - if (isFunction(resultSelector)) { - return mergeMap(function () { return innerObservable; }, resultSelector, concurrent); - } - if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - return mergeMap(function () { return innerObservable; }, concurrent); - } - - function mergeScan(accumulator, seed, concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - return operate(function (source, subscriber) { - var state = seed; - return mergeInternals(source, subscriber, function (value, index) { return accumulator(state, value, index); }, concurrent, function (value) { - state = value; - }, false, undefined, function () { return (state = null); }); - }); - } - - function merge$1() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = popScheduler(args); - var concurrent = popNumber(args, Infinity); - args = argsOrArgArray(args); - return operate(function (source, subscriber) { - mergeAll(concurrent)(from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber); - }); - } - - function mergeWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return merge$1.apply(void 0, __spreadArray([], __read(otherSources))); - } - - function min(comparer) { - return reduce(isFunction(comparer) ? function (x, y) { return (comparer(x, y) < 0 ? x : y); } : function (x, y) { return (x < y ? x : y); }); - } - - function multicast(subjectOrSubjectFactory, selector) { - var subjectFactory = isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function () { return subjectOrSubjectFactory; }; - if (isFunction(selector)) { - return connect(selector, { - connector: subjectFactory, - }); - } - return function (source) { return new ConnectableObservable(source, subjectFactory); }; - } - - function onErrorResumeNextWith() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - var nextSources = argsOrArgArray(sources); - return function (source) { return onErrorResumeNext.apply(void 0, __spreadArray([source], __read(nextSources))); }; - } - var onErrorResumeNext$1 = onErrorResumeNextWith; - - function pairwise() { - return operate(function (source, subscriber) { - var prev; - var hasPrev = false; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var p = prev; - prev = value; - hasPrev && subscriber.next([p, value]); - hasPrev = true; - })); - }); - } - - function pluck() { - var properties = []; - for (var _i = 0; _i < arguments.length; _i++) { - properties[_i] = arguments[_i]; - } - var length = properties.length; - if (length === 0) { - throw new Error('list of properties cannot be empty.'); - } - return map(function (x) { - var currentProp = x; - for (var i = 0; i < length; i++) { - var p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]]; - if (typeof p !== 'undefined') { - currentProp = p; - } - else { - return undefined; - } - } - return currentProp; - }); - } - - function publish(selector) { - return selector ? function (source) { return connect(selector)(source); } : function (source) { return multicast(new Subject())(source); }; - } - - function publishBehavior(initialValue) { - return function (source) { - var subject = new BehaviorSubject(initialValue); - return new ConnectableObservable(source, function () { return subject; }); - }; - } - - function publishLast() { - return function (source) { - var subject = new AsyncSubject(); - return new ConnectableObservable(source, function () { return subject; }); - }; - } - - function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) { - if (selectorOrScheduler && !isFunction(selectorOrScheduler)) { - timestampProvider = selectorOrScheduler; - } - var selector = isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined; - return function (source) { return multicast(new ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source); }; - } - - function raceWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return !otherSources.length - ? identity - : operate(function (source, subscriber) { - raceInit(__spreadArray([source], __read(otherSources)))(subscriber); - }); - } - - function repeat(countOrConfig) { - var _a; - var count = Infinity; - var delay; - if (countOrConfig != null) { - if (typeof countOrConfig === 'object') { - (_a = countOrConfig.count, count = _a === void 0 ? Infinity : _a, delay = countOrConfig.delay); - } - else { - count = countOrConfig; - } - } - return count <= 0 - ? function () { return EMPTY; } - : operate(function (source, subscriber) { - var soFar = 0; - var sourceSub; - var resubscribe = function () { - sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe(); - sourceSub = null; - if (delay != null) { - var notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar)); - var notifierSubscriber_1 = createOperatorSubscriber(subscriber, function () { - notifierSubscriber_1.unsubscribe(); - subscribeToSource(); - }); - notifier.subscribe(notifierSubscriber_1); - } - else { - subscribeToSource(); - } - }; - var subscribeToSource = function () { - var syncUnsub = false; - sourceSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, function () { - if (++soFar < count) { - if (sourceSub) { - resubscribe(); - } - else { - syncUnsub = true; - } - } - else { - subscriber.complete(); - } - })); - if (syncUnsub) { - resubscribe(); - } - }; - subscribeToSource(); - }); - } - - function repeatWhen(notifier) { - return operate(function (source, subscriber) { - var innerSub; - var syncResub = false; - var completions$; - var isNotifierComplete = false; - var isMainComplete = false; - var checkComplete = function () { return isMainComplete && isNotifierComplete && (subscriber.complete(), true); }; - var getCompletionSubject = function () { - if (!completions$) { - completions$ = new Subject(); - innerFrom(notifier(completions$)).subscribe(createOperatorSubscriber(subscriber, function () { - if (innerSub) { - subscribeForRepeatWhen(); - } - else { - syncResub = true; - } - }, function () { - isNotifierComplete = true; - checkComplete(); - })); - } - return completions$; - }; - var subscribeForRepeatWhen = function () { - isMainComplete = false; - innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, function () { - isMainComplete = true; - !checkComplete() && getCompletionSubject().next(); - })); - if (syncResub) { - innerSub.unsubscribe(); - innerSub = null; - syncResub = false; - subscribeForRepeatWhen(); - } - }; - subscribeForRepeatWhen(); - }); - } - - function retry(configOrCount) { - if (configOrCount === void 0) { configOrCount = Infinity; } - var config; - if (configOrCount && typeof configOrCount === 'object') { - config = configOrCount; - } - else { - config = { - count: configOrCount, - }; - } - var _a = config.count, count = _a === void 0 ? Infinity : _a, delay = config.delay, _b = config.resetOnSuccess, resetOnSuccess = _b === void 0 ? false : _b; - return count <= 0 - ? identity - : operate(function (source, subscriber) { - var soFar = 0; - var innerSub; - var subscribeForRetry = function () { - var syncUnsub = false; - innerSub = source.subscribe(createOperatorSubscriber(subscriber, function (value) { - if (resetOnSuccess) { - soFar = 0; - } - subscriber.next(value); - }, undefined, function (err) { - if (soFar++ < count) { - var resub_1 = function () { - if (innerSub) { - innerSub.unsubscribe(); - innerSub = null; - subscribeForRetry(); - } - else { - syncUnsub = true; - } - }; - if (delay != null) { - var notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(err, soFar)); - var notifierSubscriber_1 = createOperatorSubscriber(subscriber, function () { - notifierSubscriber_1.unsubscribe(); - resub_1(); - }, function () { - subscriber.complete(); - }); - notifier.subscribe(notifierSubscriber_1); - } - else { - resub_1(); - } - } - else { - subscriber.error(err); - } - })); - if (syncUnsub) { - innerSub.unsubscribe(); - innerSub = null; - subscribeForRetry(); - } - }; - subscribeForRetry(); - }); - } - - function retryWhen(notifier) { - return operate(function (source, subscriber) { - var innerSub; - var syncResub = false; - var errors$; - var subscribeForRetryWhen = function () { - innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, function (err) { - if (!errors$) { - errors$ = new Subject(); - innerFrom(notifier(errors$)).subscribe(createOperatorSubscriber(subscriber, function () { - return innerSub ? subscribeForRetryWhen() : (syncResub = true); - })); - } - if (errors$) { - errors$.next(err); - } - })); - if (syncResub) { - innerSub.unsubscribe(); - innerSub = null; - syncResub = false; - subscribeForRetryWhen(); - } - }; - subscribeForRetryWhen(); - }); - } - - function sample(notifier) { - return operate(function (source, subscriber) { - var hasValue = false; - var lastValue = null; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - lastValue = value; - })); - innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, function () { - if (hasValue) { - hasValue = false; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - }, noop)); - }); - } - - function sampleTime(period, scheduler) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - return sample(interval(period, scheduler)); - } - - function scan(accumulator, seed) { - return operate(scanInternals(accumulator, seed, arguments.length >= 2, true)); - } - - function sequenceEqual(compareTo, comparator) { - if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } - return operate(function (source, subscriber) { - var aState = createState(); - var bState = createState(); - var emit = function (isEqual) { - subscriber.next(isEqual); - subscriber.complete(); - }; - var createSubscriber = function (selfState, otherState) { - var sequenceEqualSubscriber = createOperatorSubscriber(subscriber, function (a) { - var buffer = otherState.buffer, complete = otherState.complete; - if (buffer.length === 0) { - complete ? emit(false) : selfState.buffer.push(a); - } - else { - !comparator(a, buffer.shift()) && emit(false); - } - }, function () { - selfState.complete = true; - var complete = otherState.complete, buffer = otherState.buffer; - complete && emit(buffer.length === 0); - sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe(); - }); - return sequenceEqualSubscriber; - }; - source.subscribe(createSubscriber(aState, bState)); - innerFrom(compareTo).subscribe(createSubscriber(bState, aState)); - }); - } - function createState() { - return { - buffer: [], - complete: false, - }; - } - - function share(options) { - if (options === void 0) { options = {}; } - var _a = options.connector, connector = _a === void 0 ? function () { return new Subject(); } : _a, _b = options.resetOnError, resetOnError = _b === void 0 ? true : _b, _c = options.resetOnComplete, resetOnComplete = _c === void 0 ? true : _c, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d; - return function (wrapperSource) { - var connection; - var resetConnection; - var subject; - var refCount = 0; - var hasCompleted = false; - var hasErrored = false; - var cancelReset = function () { - resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe(); - resetConnection = undefined; - }; - var reset = function () { - cancelReset(); - connection = subject = undefined; - hasCompleted = hasErrored = false; - }; - var resetAndUnsubscribe = function () { - var conn = connection; - reset(); - conn === null || conn === void 0 ? void 0 : conn.unsubscribe(); - }; - return operate(function (source, subscriber) { - refCount++; - if (!hasErrored && !hasCompleted) { - cancelReset(); - } - var dest = (subject = subject !== null && subject !== void 0 ? subject : connector()); - subscriber.add(function () { - refCount--; - if (refCount === 0 && !hasErrored && !hasCompleted) { - resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero); - } - }); - dest.subscribe(subscriber); - if (!connection && - refCount > 0) { - connection = new SafeSubscriber({ - next: function (value) { return dest.next(value); }, - error: function (err) { - hasErrored = true; - cancelReset(); - resetConnection = handleReset(reset, resetOnError, err); - dest.error(err); - }, - complete: function () { - hasCompleted = true; - cancelReset(); - resetConnection = handleReset(reset, resetOnComplete); - dest.complete(); - }, - }); - innerFrom(source).subscribe(connection); - } - })(wrapperSource); - }; - } - function handleReset(reset, on) { - var args = []; - for (var _i = 2; _i < arguments.length; _i++) { - args[_i - 2] = arguments[_i]; - } - if (on === true) { - reset(); - return; - } - if (on === false) { - return; - } - var onSubscriber = new SafeSubscriber({ - next: function () { - onSubscriber.unsubscribe(); - reset(); - }, - }); - return innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber); - } - - function shareReplay(configOrBufferSize, windowTime, scheduler) { - var _a, _b, _c; - var bufferSize; - var refCount = false; - if (configOrBufferSize && typeof configOrBufferSize === 'object') { - (_a = configOrBufferSize.bufferSize, bufferSize = _a === void 0 ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler); - } - else { - bufferSize = (configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity); - } - return share({ - connector: function () { return new ReplaySubject(bufferSize, windowTime, scheduler); }, - resetOnError: true, - resetOnComplete: false, - resetOnRefCountZero: refCount, - }); - } - - function single(predicate) { - return operate(function (source, subscriber) { - var hasValue = false; - var singleValue; - var seenValue = false; - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - seenValue = true; - if (!predicate || predicate(value, index++, source)) { - hasValue && subscriber.error(new SequenceError('Too many matching values')); - hasValue = true; - singleValue = value; - } - }, function () { - if (hasValue) { - subscriber.next(singleValue); - subscriber.complete(); - } - else { - subscriber.error(seenValue ? new NotFoundError('No matching values') : new EmptyError()); - } - })); - }); - } - - function skip(count) { - return filter(function (_, index) { return count <= index; }); - } - - function skipLast(skipCount) { - return skipCount <= 0 - ? - identity - : operate(function (source, subscriber) { - var ring = new Array(skipCount); - var seen = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var valueIndex = seen++; - if (valueIndex < skipCount) { - ring[valueIndex] = value; - } - else { - var index = valueIndex % skipCount; - var oldValue = ring[index]; - ring[index] = value; - subscriber.next(oldValue); - } - })); - return function () { - ring = null; - }; - }); - } - - function skipUntil(notifier) { - return operate(function (source, subscriber) { - var taking = false; - var skipSubscriber = createOperatorSubscriber(subscriber, function () { - skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe(); - taking = true; - }, noop); - innerFrom(notifier).subscribe(skipSubscriber); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return taking && subscriber.next(value); })); - }); - } - - function skipWhile(predicate) { - return operate(function (source, subscriber) { - var taking = false; - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return (taking || (taking = !predicate(value, index++))) && subscriber.next(value); })); - }); - } - - function startWith() { - var values = []; - for (var _i = 0; _i < arguments.length; _i++) { - values[_i] = arguments[_i]; - } - var scheduler = popScheduler(values); - return operate(function (source, subscriber) { - (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber); - }); - } - - function switchMap(project, resultSelector) { - return operate(function (source, subscriber) { - var innerSubscriber = null; - var index = 0; - var isComplete = false; - var checkComplete = function () { return isComplete && !innerSubscriber && subscriber.complete(); }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe(); - var innerIndex = 0; - var outerIndex = index++; - innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = createOperatorSubscriber(subscriber, function (innerValue) { return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue); }, function () { - innerSubscriber = null; - checkComplete(); - }))); - }, function () { - isComplete = true; - checkComplete(); - })); - }); - } - - function switchAll() { - return switchMap(identity); - } - - function switchMapTo(innerObservable, resultSelector) { - return isFunction(resultSelector) ? switchMap(function () { return innerObservable; }, resultSelector) : switchMap(function () { return innerObservable; }); - } - - function switchScan(accumulator, seed) { - return operate(function (source, subscriber) { - var state = seed; - switchMap(function (value, index) { return accumulator(state, value, index); }, function (_, innerValue) { return ((state = innerValue), innerValue); })(source).subscribe(subscriber); - return function () { - state = null; - }; - }); - } - - function takeUntil(notifier) { - return operate(function (source, subscriber) { - innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, function () { return subscriber.complete(); }, noop)); - !subscriber.closed && source.subscribe(subscriber); - }); - } - - function takeWhile(predicate, inclusive) { - if (inclusive === void 0) { inclusive = false; } - return operate(function (source, subscriber) { - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var result = predicate(value, index++); - (result || inclusive) && subscriber.next(value); - !result && subscriber.complete(); - })); - }); - } - - function tap(observerOrNext, error, complete) { - var tapObserver = isFunction(observerOrNext) || error || complete - ? - { next: observerOrNext, error: error, complete: complete } - : observerOrNext; - return tapObserver - ? operate(function (source, subscriber) { - var _a; - (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - var isUnsub = true; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var _a; - (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value); - subscriber.next(value); - }, function () { - var _a; - isUnsub = false; - (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - subscriber.complete(); - }, function (err) { - var _a; - isUnsub = false; - (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err); - subscriber.error(err); - }, function () { - var _a, _b; - if (isUnsub) { - (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - } - (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver); - })); - }) - : - identity; - } - - function throttle(durationSelector, config) { - return operate(function (source, subscriber) { - var _a = config !== null && config !== void 0 ? config : {}, _b = _a.leading, leading = _b === void 0 ? true : _b, _c = _a.trailing, trailing = _c === void 0 ? false : _c; - var hasValue = false; - var sendValue = null; - var throttled = null; - var isComplete = false; - var endThrottling = function () { - throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe(); - throttled = null; - if (trailing) { - send(); - isComplete && subscriber.complete(); - } - }; - var cleanupThrottling = function () { - throttled = null; - isComplete && subscriber.complete(); - }; - var startThrottle = function (value) { - return (throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling))); - }; - var send = function () { - if (hasValue) { - hasValue = false; - var value = sendValue; - sendValue = null; - subscriber.next(value); - !isComplete && startThrottle(value); - } - }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - sendValue = value; - !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value)); - }, function () { - isComplete = true; - !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete(); - })); - }); - } - - function throttleTime(duration, scheduler, config) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - var duration$ = timer(duration, scheduler); - return throttle(function () { return duration$; }, config); - } - - function timeInterval(scheduler) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - return operate(function (source, subscriber) { - var last = scheduler.now(); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var now = scheduler.now(); - var interval = now - last; - last = now; - subscriber.next(new TimeInterval(value, interval)); - })); - }); - } - var TimeInterval = (function () { - function TimeInterval(value, interval) { - this.value = value; - this.interval = interval; - } - return TimeInterval; - }()); - - function timeoutWith(due, withObservable, scheduler) { - var first; - var each; - var _with; - scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async; - if (isValidDate(due)) { - first = due; - } - else if (typeof due === 'number') { - each = due; - } - if (withObservable) { - _with = function () { return withObservable; }; - } - else { - throw new TypeError('No observable provided to switch to'); - } - if (first == null && each == null) { - throw new TypeError('No timeout provided.'); - } - return timeout({ - first: first, - each: each, - scheduler: scheduler, - with: _with, - }); - } - - function timestamp(timestampProvider) { - if (timestampProvider === void 0) { timestampProvider = dateTimestampProvider; } - return map(function (value) { return ({ value: value, timestamp: timestampProvider.now() }); }); - } - - function window(windowBoundaries) { - return operate(function (source, subscriber) { - var windowSubject = new Subject(); - subscriber.next(windowSubject.asObservable()); - var errorHandler = function (err) { - windowSubject.error(err); - subscriber.error(err); - }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value); }, function () { - windowSubject.complete(); - subscriber.complete(); - }, errorHandler)); - innerFrom(windowBoundaries).subscribe(createOperatorSubscriber(subscriber, function () { - windowSubject.complete(); - subscriber.next((windowSubject = new Subject())); - }, noop, errorHandler)); - return function () { - windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe(); - windowSubject = null; - }; - }); - } - - function windowCount(windowSize, startWindowEvery) { - if (startWindowEvery === void 0) { startWindowEvery = 0; } - var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize; - return operate(function (source, subscriber) { - var windows = [new Subject()]; - var count = 0; - subscriber.next(windows[0].asObservable()); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - try { - for (var windows_1 = __values(windows), windows_1_1 = windows_1.next(); !windows_1_1.done; windows_1_1 = windows_1.next()) { - var window_1 = windows_1_1.value; - window_1.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (windows_1_1 && !windows_1_1.done && (_a = windows_1.return)) _a.call(windows_1); - } - finally { if (e_1) throw e_1.error; } - } - var c = count - windowSize + 1; - if (c >= 0 && c % startEvery === 0) { - windows.shift().complete(); - } - if (++count % startEvery === 0) { - var window_2 = new Subject(); - windows.push(window_2); - subscriber.next(window_2.asObservable()); - } - }, function () { - while (windows.length > 0) { - windows.shift().complete(); - } - subscriber.complete(); - }, function (err) { - while (windows.length > 0) { - windows.shift().error(err); - } - subscriber.error(err); - }, function () { - windows = null; - })); - }); - } - - function windowTime(windowTimeSpan) { - var _a, _b; - var otherArgs = []; - for (var _i = 1; _i < arguments.length; _i++) { - otherArgs[_i - 1] = arguments[_i]; - } - var scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler; - var windowCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null; - var maxWindowSize = otherArgs[1] || Infinity; - return operate(function (source, subscriber) { - var windowRecords = []; - var restartOnClose = false; - var closeWindow = function (record) { - var window = record.window, subs = record.subs; - window.complete(); - subs.unsubscribe(); - arrRemove(windowRecords, record); - restartOnClose && startWindow(); - }; - var startWindow = function () { - if (windowRecords) { - var subs = new Subscription(); - subscriber.add(subs); - var window_1 = new Subject(); - var record_1 = { - window: window_1, - subs: subs, - seen: 0, - }; - windowRecords.push(record_1); - subscriber.next(window_1.asObservable()); - executeSchedule(subs, scheduler, function () { return closeWindow(record_1); }, windowTimeSpan); - } - }; - if (windowCreationInterval !== null && windowCreationInterval >= 0) { - executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true); - } - else { - restartOnClose = true; - } - startWindow(); - var loop = function (cb) { return windowRecords.slice().forEach(cb); }; - var terminate = function (cb) { - loop(function (_a) { - var window = _a.window; - return cb(window); - }); - cb(subscriber); - subscriber.unsubscribe(); - }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - loop(function (record) { - record.window.next(value); - maxWindowSize <= ++record.seen && closeWindow(record); - }); - }, function () { return terminate(function (consumer) { return consumer.complete(); }); }, function (err) { return terminate(function (consumer) { return consumer.error(err); }); })); - return function () { - windowRecords = null; - }; - }); - } - - function windowToggle(openings, closingSelector) { - return operate(function (source, subscriber) { - var windows = []; - var handleError = function (err) { - while (0 < windows.length) { - windows.shift().error(err); - } - subscriber.error(err); - }; - innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, function (openValue) { - var window = new Subject(); - windows.push(window); - var closingSubscription = new Subscription(); - var closeWindow = function () { - arrRemove(windows, window); - window.complete(); - closingSubscription.unsubscribe(); - }; - var closingNotifier; - try { - closingNotifier = innerFrom(closingSelector(openValue)); - } - catch (err) { - handleError(err); - return; - } - subscriber.next(window.asObservable()); - closingSubscription.add(closingNotifier.subscribe(createOperatorSubscriber(subscriber, closeWindow, noop, handleError))); - }, noop)); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - var windowsCopy = windows.slice(); - try { - for (var windowsCopy_1 = __values(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) { - var window_1 = windowsCopy_1_1.value; - window_1.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a = windowsCopy_1.return)) _a.call(windowsCopy_1); - } - finally { if (e_1) throw e_1.error; } - } - }, function () { - while (0 < windows.length) { - windows.shift().complete(); - } - subscriber.complete(); - }, handleError, function () { - while (0 < windows.length) { - windows.shift().unsubscribe(); - } - })); - }); - } - - function windowWhen(closingSelector) { - return operate(function (source, subscriber) { - var window; - var closingSubscriber; - var handleError = function (err) { - window.error(err); - subscriber.error(err); - }; - var openWindow = function () { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - window === null || window === void 0 ? void 0 : window.complete(); - window = new Subject(); - subscriber.next(window.asObservable()); - var closingNotifier; - try { - closingNotifier = innerFrom(closingSelector()); - } - catch (err) { - handleError(err); - return; - } - closingNotifier.subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openWindow, openWindow, handleError))); - }; - openWindow(); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return window.next(value); }, function () { - window.complete(); - subscriber.complete(); - }, handleError, function () { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - window = null; - })); - }); - } - - function withLatestFrom() { - var inputs = []; - for (var _i = 0; _i < arguments.length; _i++) { - inputs[_i] = arguments[_i]; - } - var project = popResultSelector(inputs); - return operate(function (source, subscriber) { - var len = inputs.length; - var otherValues = new Array(len); - var hasValue = inputs.map(function () { return false; }); - var ready = false; - var _loop_1 = function (i) { - innerFrom(inputs[i]).subscribe(createOperatorSubscriber(subscriber, function (value) { - otherValues[i] = value; - if (!ready && !hasValue[i]) { - hasValue[i] = true; - (ready = hasValue.every(identity)) && (hasValue = null); - } - }, noop)); - }; - for (var i = 0; i < len; i++) { - _loop_1(i); - } - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - if (ready) { - var values = __spreadArray([value], __read(otherValues)); - subscriber.next(project ? project.apply(void 0, __spreadArray([], __read(values))) : values); - } - })); - }); - } - - function zipAll(project) { - return joinAllInternals(zip, project); - } - - function zip$1() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - return operate(function (source, subscriber) { - zip.apply(void 0, __spreadArray([source], __read(sources))).subscribe(subscriber); - }); - } - - function zipWith() { - var otherInputs = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherInputs[_i] = arguments[_i]; - } - return zip$1.apply(void 0, __spreadArray([], __read(otherInputs))); - } - - function partition$1(predicate, thisArg) { - return function (source) { - return [filter(predicate, thisArg)(source), filter(not(predicate, thisArg))(source)]; - }; - } - - function race$1() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return raceWith.apply(void 0, __spreadArray([], __read(argsOrArgArray(args)))); - } - - - - var _operators = /*#__PURE__*/Object.freeze({ - audit: audit, - auditTime: auditTime, - buffer: buffer, - bufferCount: bufferCount, - bufferTime: bufferTime, - bufferToggle: bufferToggle, - bufferWhen: bufferWhen, - catchError: catchError, - combineAll: combineAll, - combineLatestAll: combineLatestAll, - combineLatest: combineLatest$1, - combineLatestWith: combineLatestWith, - concat: concat$1, - concatAll: concatAll, - concatMap: concatMap, - concatMapTo: concatMapTo, - concatWith: concatWith, - connect: connect, - count: count, - debounce: debounce, - debounceTime: debounceTime, - defaultIfEmpty: defaultIfEmpty, - delay: delay, - delayWhen: delayWhen, - dematerialize: dematerialize, - distinct: distinct, - distinctUntilChanged: distinctUntilChanged, - distinctUntilKeyChanged: distinctUntilKeyChanged, - elementAt: elementAt, - endWith: endWith, - every: every, - exhaust: exhaust, - exhaustAll: exhaustAll, - exhaustMap: exhaustMap, - expand: expand, - filter: filter, - finalize: finalize, - find: find, - findIndex: findIndex, - first: first, - groupBy: groupBy, - ignoreElements: ignoreElements, - isEmpty: isEmpty, - last: last$1, - map: map, - mapTo: mapTo, - materialize: materialize, - max: max, - merge: merge$1, - mergeAll: mergeAll, - flatMap: flatMap, - mergeMap: mergeMap, - mergeMapTo: mergeMapTo, - mergeScan: mergeScan, - mergeWith: mergeWith, - min: min, - multicast: multicast, - observeOn: observeOn, - onErrorResumeNext: onErrorResumeNext$1, - pairwise: pairwise, - partition: partition$1, - pluck: pluck, - publish: publish, - publishBehavior: publishBehavior, - publishLast: publishLast, - publishReplay: publishReplay, - race: race$1, - raceWith: raceWith, - reduce: reduce, - repeat: repeat, - repeatWhen: repeatWhen, - retry: retry, - retryWhen: retryWhen, - refCount: refCount, - sample: sample, - sampleTime: sampleTime, - scan: scan, - sequenceEqual: sequenceEqual, - share: share, - shareReplay: shareReplay, - single: single, - skip: skip, - skipLast: skipLast, - skipUntil: skipUntil, - skipWhile: skipWhile, - startWith: startWith, - subscribeOn: subscribeOn, - switchAll: switchAll, - switchMap: switchMap, - switchMapTo: switchMapTo, - switchScan: switchScan, - take: take, - takeLast: takeLast, - takeUntil: takeUntil, - takeWhile: takeWhile, - tap: tap, - throttle: throttle, - throttleTime: throttleTime, - throwIfEmpty: throwIfEmpty, - timeInterval: timeInterval, - timeout: timeout, - timeoutWith: timeoutWith, - timestamp: timestamp, - toArray: toArray, - window: window, - windowCount: windowCount, - windowTime: windowTime, - windowToggle: windowToggle, - windowWhen: windowWhen, - withLatestFrom: withLatestFrom, - zip: zip$1, - zipAll: zipAll, - zipWith: zipWith - }); - - var SubscriptionLog = (function () { - function SubscriptionLog(subscribedFrame, unsubscribedFrame) { - if (unsubscribedFrame === void 0) { unsubscribedFrame = Infinity; } - this.subscribedFrame = subscribedFrame; - this.unsubscribedFrame = unsubscribedFrame; - } - return SubscriptionLog; - }()); - - var SubscriptionLoggable = (function () { - function SubscriptionLoggable() { - this.subscriptions = []; - } - SubscriptionLoggable.prototype.logSubscribedFrame = function () { - this.subscriptions.push(new SubscriptionLog(this.scheduler.now())); - return this.subscriptions.length - 1; - }; - SubscriptionLoggable.prototype.logUnsubscribedFrame = function (index) { - var subscriptionLogs = this.subscriptions; - var oldSubscriptionLog = subscriptionLogs[index]; - subscriptionLogs[index] = new SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now()); - }; - return SubscriptionLoggable; - }()); - - function applyMixins(derivedCtor, baseCtors) { - for (var i = 0, len = baseCtors.length; i < len; i++) { - var baseCtor = baseCtors[i]; - var propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype); - for (var j = 0, len2 = propertyKeys.length; j < len2; j++) { - var name_1 = propertyKeys[j]; - derivedCtor.prototype[name_1] = baseCtor.prototype[name_1]; - } - } - } - - var ColdObservable = (function (_super) { - __extends(ColdObservable, _super); - function ColdObservable(messages, scheduler) { - var _this = _super.call(this, function (subscriber) { - var observable = this; - var index = observable.logSubscribedFrame(); - var subscription = new Subscription(); - subscription.add(new Subscription(function () { - observable.logUnsubscribedFrame(index); - })); - observable.scheduleMessages(subscriber); - return subscription; - }) || this; - _this.messages = messages; - _this.subscriptions = []; - _this.scheduler = scheduler; - return _this; - } - ColdObservable.prototype.scheduleMessages = function (subscriber) { - var messagesLength = this.messages.length; - for (var i = 0; i < messagesLength; i++) { - var message = this.messages[i]; - subscriber.add(this.scheduler.schedule(function (state) { - var _a = state, notification = _a.message.notification, destination = _a.subscriber; - observeNotification(notification, destination); - }, message.frame, { message: message, subscriber: subscriber })); - } - }; - return ColdObservable; - }(Observable)); - applyMixins(ColdObservable, [SubscriptionLoggable]); - - var HotObservable = (function (_super) { - __extends(HotObservable, _super); - function HotObservable(messages, scheduler) { - var _this = _super.call(this) || this; - _this.messages = messages; - _this.subscriptions = []; - _this.scheduler = scheduler; - return _this; - } - HotObservable.prototype._subscribe = function (subscriber) { - var subject = this; - var index = subject.logSubscribedFrame(); - var subscription = new Subscription(); - subscription.add(new Subscription(function () { - subject.logUnsubscribedFrame(index); - })); - subscription.add(_super.prototype._subscribe.call(this, subscriber)); - return subscription; - }; - HotObservable.prototype.setup = function () { - var subject = this; - var messagesLength = subject.messages.length; - var _loop_1 = function (i) { - (function () { - var _a = subject.messages[i], notification = _a.notification, frame = _a.frame; - subject.scheduler.schedule(function () { - observeNotification(notification, subject); - }, frame); - })(); - }; - for (var i = 0; i < messagesLength; i++) { - _loop_1(i); - } - }; - return HotObservable; - }(Subject)); - applyMixins(HotObservable, [SubscriptionLoggable]); - - var defaultMaxFrame = 750; - var TestScheduler = (function (_super) { - __extends(TestScheduler, _super); - function TestScheduler(assertDeepEqual) { - var _this = _super.call(this, VirtualAction, defaultMaxFrame) || this; - _this.assertDeepEqual = assertDeepEqual; - _this.hotObservables = []; - _this.coldObservables = []; - _this.flushTests = []; - _this.runMode = false; - return _this; - } - TestScheduler.prototype.createTime = function (marbles) { - var indexOf = this.runMode ? marbles.trim().indexOf('|') : marbles.indexOf('|'); - if (indexOf === -1) { - throw new Error('marble diagram for time should have a completion marker "|"'); - } - return indexOf * TestScheduler.frameTimeFactor; - }; - TestScheduler.prototype.createColdObservable = function (marbles, values, error) { - if (marbles.indexOf('^') !== -1) { - throw new Error('cold observable cannot have subscription offset "^"'); - } - if (marbles.indexOf('!') !== -1) { - throw new Error('cold observable cannot have unsubscription marker "!"'); - } - var messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode); - var cold = new ColdObservable(messages, this); - this.coldObservables.push(cold); - return cold; - }; - TestScheduler.prototype.createHotObservable = function (marbles, values, error) { - if (marbles.indexOf('!') !== -1) { - throw new Error('hot observable cannot have unsubscription marker "!"'); - } - var messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode); - var subject = new HotObservable(messages, this); - this.hotObservables.push(subject); - return subject; - }; - TestScheduler.prototype.materializeInnerObservable = function (observable, outerFrame) { - var _this = this; - var messages = []; - observable.subscribe({ - next: function (value) { - messages.push({ frame: _this.frame - outerFrame, notification: nextNotification(value) }); - }, - error: function (error) { - messages.push({ frame: _this.frame - outerFrame, notification: errorNotification(error) }); - }, - complete: function () { - messages.push({ frame: _this.frame - outerFrame, notification: COMPLETE_NOTIFICATION }); - }, - }); - return messages; - }; - TestScheduler.prototype.expectObservable = function (observable, subscriptionMarbles) { - var _this = this; - if (subscriptionMarbles === void 0) { subscriptionMarbles = null; } - var actual = []; - var flushTest = { actual: actual, ready: false }; - var subscriptionParsed = TestScheduler.parseMarblesAsSubscriptions(subscriptionMarbles, this.runMode); - var subscriptionFrame = subscriptionParsed.subscribedFrame === Infinity ? 0 : subscriptionParsed.subscribedFrame; - var unsubscriptionFrame = subscriptionParsed.unsubscribedFrame; - var subscription; - this.schedule(function () { - subscription = observable.subscribe({ - next: function (x) { - var value = x instanceof Observable ? _this.materializeInnerObservable(x, _this.frame) : x; - actual.push({ frame: _this.frame, notification: nextNotification(value) }); - }, - error: function (error) { - actual.push({ frame: _this.frame, notification: errorNotification(error) }); - }, - complete: function () { - actual.push({ frame: _this.frame, notification: COMPLETE_NOTIFICATION }); - }, - }); - }, subscriptionFrame); - if (unsubscriptionFrame !== Infinity) { - this.schedule(function () { return subscription.unsubscribe(); }, unsubscriptionFrame); - } - this.flushTests.push(flushTest); - var runMode = this.runMode; - return { - toBe: function (marbles, values, errorValue) { - flushTest.ready = true; - flushTest.expected = TestScheduler.parseMarbles(marbles, values, errorValue, true, runMode); - }, - toEqual: function (other) { - flushTest.ready = true; - flushTest.expected = []; - _this.schedule(function () { - subscription = other.subscribe({ - next: function (x) { - var value = x instanceof Observable ? _this.materializeInnerObservable(x, _this.frame) : x; - flushTest.expected.push({ frame: _this.frame, notification: nextNotification(value) }); - }, - error: function (error) { - flushTest.expected.push({ frame: _this.frame, notification: errorNotification(error) }); - }, - complete: function () { - flushTest.expected.push({ frame: _this.frame, notification: COMPLETE_NOTIFICATION }); - }, - }); - }, subscriptionFrame); - }, - }; - }; - TestScheduler.prototype.expectSubscriptions = function (actualSubscriptionLogs) { - var flushTest = { actual: actualSubscriptionLogs, ready: false }; - this.flushTests.push(flushTest); - var runMode = this.runMode; - return { - toBe: function (marblesOrMarblesArray) { - var marblesArray = typeof marblesOrMarblesArray === 'string' ? [marblesOrMarblesArray] : marblesOrMarblesArray; - flushTest.ready = true; - flushTest.expected = marblesArray - .map(function (marbles) { return TestScheduler.parseMarblesAsSubscriptions(marbles, runMode); }) - .filter(function (marbles) { return marbles.subscribedFrame !== Infinity; }); - }, - }; - }; - TestScheduler.prototype.flush = function () { - var _this = this; - var hotObservables = this.hotObservables; - while (hotObservables.length > 0) { - hotObservables.shift().setup(); - } - _super.prototype.flush.call(this); - this.flushTests = this.flushTests.filter(function (test) { - if (test.ready) { - _this.assertDeepEqual(test.actual, test.expected); - return false; - } - return true; - }); - }; - TestScheduler.parseMarblesAsSubscriptions = function (marbles, runMode) { - var _this = this; - if (runMode === void 0) { runMode = false; } - if (typeof marbles !== 'string') { - return new SubscriptionLog(Infinity); - } - var characters = __spreadArray([], __read(marbles)); - var len = characters.length; - var groupStart = -1; - var subscriptionFrame = Infinity; - var unsubscriptionFrame = Infinity; - var frame = 0; - var _loop_1 = function (i) { - var nextFrame = frame; - var advanceFrameBy = function (count) { - nextFrame += count * _this.frameTimeFactor; - }; - var c = characters[i]; - switch (c) { - case ' ': - if (!runMode) { - advanceFrameBy(1); - } - break; - case '-': - advanceFrameBy(1); - break; - case '(': - groupStart = frame; - advanceFrameBy(1); - break; - case ')': - groupStart = -1; - advanceFrameBy(1); - break; - case '^': - if (subscriptionFrame !== Infinity) { - throw new Error("found a second subscription point '^' in a " + 'subscription marble diagram. There can only be one.'); - } - subscriptionFrame = groupStart > -1 ? groupStart : frame; - advanceFrameBy(1); - break; - case '!': - if (unsubscriptionFrame !== Infinity) { - throw new Error("found a second unsubscription point '!' in a " + 'subscription marble diagram. There can only be one.'); - } - unsubscriptionFrame = groupStart > -1 ? groupStart : frame; - break; - default: - if (runMode && c.match(/^[0-9]$/)) { - if (i === 0 || characters[i - 1] === ' ') { - var buffer = characters.slice(i).join(''); - var match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /); - if (match) { - i += match[0].length - 1; - var duration = parseFloat(match[1]); - var unit = match[2]; - var durationInMs = void 0; - switch (unit) { - case 'ms': - durationInMs = duration; - break; - case 's': - durationInMs = duration * 1000; - break; - case 'm': - durationInMs = duration * 1000 * 60; - break; - default: - break; - } - advanceFrameBy(durationInMs / this_1.frameTimeFactor); - break; - } - } - } - throw new Error("there can only be '^' and '!' markers in a " + "subscription marble diagram. Found instead '" + c + "'."); - } - frame = nextFrame; - out_i_1 = i; - }; - var this_1 = this, out_i_1; - for (var i = 0; i < len; i++) { - _loop_1(i); - i = out_i_1; - } - if (unsubscriptionFrame < 0) { - return new SubscriptionLog(subscriptionFrame); - } - else { - return new SubscriptionLog(subscriptionFrame, unsubscriptionFrame); - } - }; - TestScheduler.parseMarbles = function (marbles, values, errorValue, materializeInnerObservables, runMode) { - var _this = this; - if (materializeInnerObservables === void 0) { materializeInnerObservables = false; } - if (runMode === void 0) { runMode = false; } - if (marbles.indexOf('!') !== -1) { - throw new Error('conventional marble diagrams cannot have the ' + 'unsubscription marker "!"'); - } - var characters = __spreadArray([], __read(marbles)); - var len = characters.length; - var testMessages = []; - var subIndex = runMode ? marbles.replace(/^[ ]+/, '').indexOf('^') : marbles.indexOf('^'); - var frame = subIndex === -1 ? 0 : subIndex * -this.frameTimeFactor; - var getValue = typeof values !== 'object' - ? function (x) { return x; } - : function (x) { - if (materializeInnerObservables && values[x] instanceof ColdObservable) { - return values[x].messages; - } - return values[x]; - }; - var groupStart = -1; - var _loop_2 = function (i) { - var nextFrame = frame; - var advanceFrameBy = function (count) { - nextFrame += count * _this.frameTimeFactor; - }; - var notification = void 0; - var c = characters[i]; - switch (c) { - case ' ': - if (!runMode) { - advanceFrameBy(1); - } - break; - case '-': - advanceFrameBy(1); - break; - case '(': - groupStart = frame; - advanceFrameBy(1); - break; - case ')': - groupStart = -1; - advanceFrameBy(1); - break; - case '|': - notification = COMPLETE_NOTIFICATION; - advanceFrameBy(1); - break; - case '^': - advanceFrameBy(1); - break; - case '#': - notification = errorNotification(errorValue || 'error'); - advanceFrameBy(1); - break; - default: - if (runMode && c.match(/^[0-9]$/)) { - if (i === 0 || characters[i - 1] === ' ') { - var buffer = characters.slice(i).join(''); - var match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /); - if (match) { - i += match[0].length - 1; - var duration = parseFloat(match[1]); - var unit = match[2]; - var durationInMs = void 0; - switch (unit) { - case 'ms': - durationInMs = duration; - break; - case 's': - durationInMs = duration * 1000; - break; - case 'm': - durationInMs = duration * 1000 * 60; - break; - default: - break; - } - advanceFrameBy(durationInMs / this_2.frameTimeFactor); - break; - } - } - } - notification = nextNotification(getValue(c)); - advanceFrameBy(1); - break; - } - if (notification) { - testMessages.push({ frame: groupStart > -1 ? groupStart : frame, notification: notification }); - } - frame = nextFrame; - out_i_2 = i; - }; - var this_2 = this, out_i_2; - for (var i = 0; i < len; i++) { - _loop_2(i); - i = out_i_2; - } - return testMessages; - }; - TestScheduler.prototype.createAnimator = function () { - var _this = this; - if (!this.runMode) { - throw new Error('animate() must only be used in run mode'); - } - var lastHandle = 0; - var map; - var delegate = { - requestAnimationFrame: function (callback) { - if (!map) { - throw new Error('animate() was not called within run()'); - } - var handle = ++lastHandle; - map.set(handle, callback); - return handle; - }, - cancelAnimationFrame: function (handle) { - if (!map) { - throw new Error('animate() was not called within run()'); - } - map.delete(handle); - }, - }; - var animate = function (marbles) { - var e_1, _a; - if (map) { - throw new Error('animate() must not be called more than once within run()'); - } - if (/[|#]/.test(marbles)) { - throw new Error('animate() must not complete or error'); - } - map = new Map(); - var messages = TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true); - try { - for (var messages_1 = __values(messages), messages_1_1 = messages_1.next(); !messages_1_1.done; messages_1_1 = messages_1.next()) { - var message = messages_1_1.value; - _this.schedule(function () { - var e_2, _a; - var now = _this.now(); - var callbacks = Array.from(map.values()); - map.clear(); - try { - for (var callbacks_1 = (e_2 = void 0, __values(callbacks)), callbacks_1_1 = callbacks_1.next(); !callbacks_1_1.done; callbacks_1_1 = callbacks_1.next()) { - var callback = callbacks_1_1.value; - callback(now); - } - } - catch (e_2_1) { e_2 = { error: e_2_1 }; } - finally { - try { - if (callbacks_1_1 && !callbacks_1_1.done && (_a = callbacks_1.return)) _a.call(callbacks_1); - } - finally { if (e_2) throw e_2.error; } - } - }, message.frame); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (messages_1_1 && !messages_1_1.done && (_a = messages_1.return)) _a.call(messages_1); - } - finally { if (e_1) throw e_1.error; } - } - }; - return { animate: animate, delegate: delegate }; - }; - TestScheduler.prototype.createDelegates = function () { - var _this = this; - var lastHandle = 0; - var scheduleLookup = new Map(); - var run = function () { - var now = _this.now(); - var scheduledRecords = Array.from(scheduleLookup.values()); - var scheduledRecordsDue = scheduledRecords.filter(function (_a) { - var due = _a.due; - return due <= now; - }); - var dueImmediates = scheduledRecordsDue.filter(function (_a) { - var type = _a.type; - return type === 'immediate'; - }); - if (dueImmediates.length > 0) { - var _a = dueImmediates[0], handle = _a.handle, handler = _a.handler; - scheduleLookup.delete(handle); - handler(); - return; - } - var dueIntervals = scheduledRecordsDue.filter(function (_a) { - var type = _a.type; - return type === 'interval'; - }); - if (dueIntervals.length > 0) { - var firstDueInterval = dueIntervals[0]; - var duration = firstDueInterval.duration, handler = firstDueInterval.handler; - firstDueInterval.due = now + duration; - firstDueInterval.subscription = _this.schedule(run, duration); - handler(); - return; - } - var dueTimeouts = scheduledRecordsDue.filter(function (_a) { - var type = _a.type; - return type === 'timeout'; - }); - if (dueTimeouts.length > 0) { - var _b = dueTimeouts[0], handle = _b.handle, handler = _b.handler; - scheduleLookup.delete(handle); - handler(); - return; - } - throw new Error('Expected a due immediate or interval'); - }; - var immediate = { - setImmediate: function (handler) { - var handle = ++lastHandle; - scheduleLookup.set(handle, { - due: _this.now(), - duration: 0, - handle: handle, - handler: handler, - subscription: _this.schedule(run, 0), - type: 'immediate', - }); - return handle; - }, - clearImmediate: function (handle) { - var value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - var interval = { - setInterval: function (handler, duration) { - if (duration === void 0) { duration = 0; } - var handle = ++lastHandle; - scheduleLookup.set(handle, { - due: _this.now() + duration, - duration: duration, - handle: handle, - handler: handler, - subscription: _this.schedule(run, duration), - type: 'interval', - }); - return handle; - }, - clearInterval: function (handle) { - var value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - var timeout = { - setTimeout: function (handler, duration) { - if (duration === void 0) { duration = 0; } - var handle = ++lastHandle; - scheduleLookup.set(handle, { - due: _this.now() + duration, - duration: duration, - handle: handle, - handler: handler, - subscription: _this.schedule(run, duration), - type: 'timeout', - }); - return handle; - }, - clearTimeout: function (handle) { - var value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - return { immediate: immediate, interval: interval, timeout: timeout }; - }; - TestScheduler.prototype.run = function (callback) { - var prevFrameTimeFactor = TestScheduler.frameTimeFactor; - var prevMaxFrames = this.maxFrames; - TestScheduler.frameTimeFactor = 1; - this.maxFrames = Infinity; - this.runMode = true; - var animator = this.createAnimator(); - var delegates = this.createDelegates(); - animationFrameProvider.delegate = animator.delegate; - dateTimestampProvider.delegate = this; - immediateProvider.delegate = delegates.immediate; - intervalProvider.delegate = delegates.interval; - timeoutProvider.delegate = delegates.timeout; - performanceTimestampProvider.delegate = this; - var helpers = { - cold: this.createColdObservable.bind(this), - hot: this.createHotObservable.bind(this), - flush: this.flush.bind(this), - time: this.createTime.bind(this), - expectObservable: this.expectObservable.bind(this), - expectSubscriptions: this.expectSubscriptions.bind(this), - animate: animator.animate, - }; - try { - var ret = callback(helpers); - this.flush(); - return ret; - } - finally { - TestScheduler.frameTimeFactor = prevFrameTimeFactor; - this.maxFrames = prevMaxFrames; - this.runMode = false; - animationFrameProvider.delegate = undefined; - dateTimestampProvider.delegate = undefined; - immediateProvider.delegate = undefined; - intervalProvider.delegate = undefined; - timeoutProvider.delegate = undefined; - performanceTimestampProvider.delegate = undefined; - } - }; - TestScheduler.frameTimeFactor = 10; - return TestScheduler; - }(VirtualTimeScheduler)); - - - - var _testing = /*#__PURE__*/Object.freeze({ - TestScheduler: TestScheduler - }); - - function getXHRResponse(xhr) { - switch (xhr.responseType) { - case 'json': { - if ('response' in xhr) { - return xhr.response; - } - else { - var ieXHR = xhr; - return JSON.parse(ieXHR.responseText); - } - } - case 'document': - return xhr.responseXML; - case 'text': - default: { - if ('response' in xhr) { - return xhr.response; - } - else { - var ieXHR = xhr; - return ieXHR.responseText; - } - } - } - } - - var AjaxResponse = (function () { - function AjaxResponse(originalEvent, xhr, request, type) { - if (type === void 0) { type = 'download_load'; } - this.originalEvent = originalEvent; - this.xhr = xhr; - this.request = request; - this.type = type; - var status = xhr.status, responseType = xhr.responseType; - this.status = status !== null && status !== void 0 ? status : 0; - this.responseType = responseType !== null && responseType !== void 0 ? responseType : ''; - var allHeaders = xhr.getAllResponseHeaders(); - this.responseHeaders = allHeaders - ? - allHeaders.split('\n').reduce(function (headers, line) { - var index = line.indexOf(': '); - headers[line.slice(0, index)] = line.slice(index + 2); - return headers; - }, {}) - : {}; - this.response = getXHRResponse(xhr); - var loaded = originalEvent.loaded, total = originalEvent.total; - this.loaded = loaded; - this.total = total; - } - return AjaxResponse; - }()); - - var AjaxError = createErrorClass(function (_super) { - return function AjaxErrorImpl(message, xhr, request) { - this.message = message; - this.name = 'AjaxError'; - this.xhr = xhr; - this.request = request; - this.status = xhr.status; - this.responseType = xhr.responseType; - var response; - try { - response = getXHRResponse(xhr); - } - catch (err) { - response = xhr.responseText; - } - this.response = response; - }; - }); - var AjaxTimeoutError = (function () { - function AjaxTimeoutErrorImpl(xhr, request) { - AjaxError.call(this, 'ajax timeout', xhr, request); - this.name = 'AjaxTimeoutError'; - return this; - } - AjaxTimeoutErrorImpl.prototype = Object.create(AjaxError.prototype); - return AjaxTimeoutErrorImpl; - })(); - - function ajaxGet(url, headers) { - return ajax({ method: 'GET', url: url, headers: headers }); - } - function ajaxPost(url, body, headers) { - return ajax({ method: 'POST', url: url, body: body, headers: headers }); - } - function ajaxDelete(url, headers) { - return ajax({ method: 'DELETE', url: url, headers: headers }); - } - function ajaxPut(url, body, headers) { - return ajax({ method: 'PUT', url: url, body: body, headers: headers }); - } - function ajaxPatch(url, body, headers) { - return ajax({ method: 'PATCH', url: url, body: body, headers: headers }); - } - var mapResponse = map(function (x) { return x.response; }); - function ajaxGetJSON(url, headers) { - return mapResponse(ajax({ - method: 'GET', - url: url, - headers: headers, - })); - } - var ajax = (function () { - var create = function (urlOrConfig) { - var config = typeof urlOrConfig === 'string' - ? { - url: urlOrConfig, - } - : urlOrConfig; - return fromAjax(config); - }; - create.get = ajaxGet; - create.post = ajaxPost; - create.delete = ajaxDelete; - create.put = ajaxPut; - create.patch = ajaxPatch; - create.getJSON = ajaxGetJSON; - return create; - })(); - var UPLOAD = 'upload'; - var DOWNLOAD = 'download'; - var LOADSTART = 'loadstart'; - var PROGRESS = 'progress'; - var LOAD = 'load'; - function fromAjax(init) { - return new Observable(function (destination) { - var _a, _b; - var config = __assign({ async: true, crossDomain: false, withCredentials: false, method: 'GET', timeout: 0, responseType: 'json' }, init); - var queryParams = config.queryParams, configuredBody = config.body, configuredHeaders = config.headers; - var url = config.url; - if (!url) { - throw new TypeError('url is required'); - } - if (queryParams) { - var searchParams_1; - if (url.includes('?')) { - var parts = url.split('?'); - if (2 < parts.length) { - throw new TypeError('invalid url'); - } - searchParams_1 = new URLSearchParams(parts[1]); - new URLSearchParams(queryParams).forEach(function (value, key) { return searchParams_1.set(key, value); }); - url = parts[0] + '?' + searchParams_1; - } - else { - searchParams_1 = new URLSearchParams(queryParams); - url = url + '?' + searchParams_1; - } - } - var headers = {}; - if (configuredHeaders) { - for (var key in configuredHeaders) { - if (configuredHeaders.hasOwnProperty(key)) { - headers[key.toLowerCase()] = configuredHeaders[key]; - } - } - } - var crossDomain = config.crossDomain; - if (!crossDomain && !('x-requested-with' in headers)) { - headers['x-requested-with'] = 'XMLHttpRequest'; - } - var withCredentials = config.withCredentials, xsrfCookieName = config.xsrfCookieName, xsrfHeaderName = config.xsrfHeaderName; - if ((withCredentials || !crossDomain) && xsrfCookieName && xsrfHeaderName) { - var xsrfCookie = (_b = (_a = document === null || document === void 0 ? void 0 : document.cookie.match(new RegExp("(^|;\\s*)(" + xsrfCookieName + ")=([^;]*)"))) === null || _a === void 0 ? void 0 : _a.pop()) !== null && _b !== void 0 ? _b : ''; - if (xsrfCookie) { - headers[xsrfHeaderName] = xsrfCookie; - } - } - var body = extractContentTypeAndMaybeSerializeBody(configuredBody, headers); - var _request = __assign(__assign({}, config), { url: url, - headers: headers, - body: body }); - var xhr; - xhr = init.createXHR ? init.createXHR() : new XMLHttpRequest(); - { - var progressSubscriber_1 = init.progressSubscriber, _c = init.includeDownloadProgress, includeDownloadProgress = _c === void 0 ? false : _c, _d = init.includeUploadProgress, includeUploadProgress = _d === void 0 ? false : _d; - var addErrorEvent = function (type, errorFactory) { - xhr.addEventListener(type, function () { - var _a; - var error = errorFactory(); - (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, error); - destination.error(error); - }); - }; - addErrorEvent('timeout', function () { return new AjaxTimeoutError(xhr, _request); }); - addErrorEvent('abort', function () { return new AjaxError('aborted', xhr, _request); }); - var createResponse_1 = function (direction, event) { - return new AjaxResponse(event, xhr, _request, direction + "_" + event.type); - }; - var addProgressEvent_1 = function (target, type, direction) { - target.addEventListener(type, function (event) { - destination.next(createResponse_1(direction, event)); - }); - }; - if (includeUploadProgress) { - [LOADSTART, PROGRESS, LOAD].forEach(function (type) { return addProgressEvent_1(xhr.upload, type, UPLOAD); }); - } - if (progressSubscriber_1) { - [LOADSTART, PROGRESS].forEach(function (type) { return xhr.upload.addEventListener(type, function (e) { var _a; return (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.next) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, e); }); }); - } - if (includeDownloadProgress) { - [LOADSTART, PROGRESS].forEach(function (type) { return addProgressEvent_1(xhr, type, DOWNLOAD); }); - } - var emitError_1 = function (status) { - var msg = 'ajax error' + (status ? ' ' + status : ''); - destination.error(new AjaxError(msg, xhr, _request)); - }; - xhr.addEventListener('error', function (e) { - var _a; - (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, e); - emitError_1(); - }); - xhr.addEventListener(LOAD, function (event) { - var _a, _b; - var status = xhr.status; - if (status < 400) { - (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.complete) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1); - var response = void 0; - try { - response = createResponse_1(DOWNLOAD, event); - } - catch (err) { - destination.error(err); - return; - } - destination.next(response); - destination.complete(); - } - else { - (_b = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _b === void 0 ? void 0 : _b.call(progressSubscriber_1, event); - emitError_1(status); - } - }); - } - var user = _request.user, method = _request.method, async = _request.async; - if (user) { - xhr.open(method, url, async, user, _request.password); - } - else { - xhr.open(method, url, async); - } - if (async) { - xhr.timeout = _request.timeout; - xhr.responseType = _request.responseType; - } - if ('withCredentials' in xhr) { - xhr.withCredentials = _request.withCredentials; - } - for (var key in headers) { - if (headers.hasOwnProperty(key)) { - xhr.setRequestHeader(key, headers[key]); - } - } - if (body) { - xhr.send(body); - } - else { - xhr.send(); - } - return function () { - if (xhr && xhr.readyState !== 4) { - xhr.abort(); - } - }; - }); - } - function extractContentTypeAndMaybeSerializeBody(body, headers) { - var _a; - if (!body || - typeof body === 'string' || - isFormData(body) || - isURLSearchParams(body) || - isArrayBuffer(body) || - isFile(body) || - isBlob(body) || - isReadableStream(body)) { - return body; - } - if (isArrayBufferView(body)) { - return body.buffer; - } - if (typeof body === 'object') { - headers['content-type'] = (_a = headers['content-type']) !== null && _a !== void 0 ? _a : 'application/json;charset=utf-8'; - return JSON.stringify(body); - } - throw new TypeError('Unknown body type'); - } - var _toString = Object.prototype.toString; - function toStringCheck(obj, name) { - return _toString.call(obj) === "[object " + name + "]"; - } - function isArrayBuffer(body) { - return toStringCheck(body, 'ArrayBuffer'); - } - function isFile(body) { - return toStringCheck(body, 'File'); - } - function isBlob(body) { - return toStringCheck(body, 'Blob'); - } - function isArrayBufferView(body) { - return typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView(body); - } - function isFormData(body) { - return typeof FormData !== 'undefined' && body instanceof FormData; - } - function isURLSearchParams(body) { - return typeof URLSearchParams !== 'undefined' && body instanceof URLSearchParams; - } - function isReadableStream(body) { - return typeof ReadableStream !== 'undefined' && body instanceof ReadableStream; - } - - - - var _ajax = /*#__PURE__*/Object.freeze({ - ajax: ajax, - AjaxError: AjaxError, - AjaxTimeoutError: AjaxTimeoutError, - AjaxResponse: AjaxResponse - }); - - var DEFAULT_WEBSOCKET_CONFIG = { - url: '', - deserializer: function (e) { return JSON.parse(e.data); }, - serializer: function (value) { return JSON.stringify(value); }, - }; - var WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT = 'WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }'; - var WebSocketSubject = (function (_super) { - __extends(WebSocketSubject, _super); - function WebSocketSubject(urlConfigOrSource, destination) { - var _this = _super.call(this) || this; - _this._socket = null; - if (urlConfigOrSource instanceof Observable) { - _this.destination = destination; - _this.source = urlConfigOrSource; - } - else { - var config = (_this._config = __assign({}, DEFAULT_WEBSOCKET_CONFIG)); - _this._output = new Subject(); - if (typeof urlConfigOrSource === 'string') { - config.url = urlConfigOrSource; - } - else { - for (var key in urlConfigOrSource) { - if (urlConfigOrSource.hasOwnProperty(key)) { - config[key] = urlConfigOrSource[key]; - } - } - } - if (!config.WebSocketCtor && WebSocket) { - config.WebSocketCtor = WebSocket; - } - else if (!config.WebSocketCtor) { - throw new Error('no WebSocket constructor can be found'); - } - _this.destination = new ReplaySubject(); - } - return _this; - } - WebSocketSubject.prototype.lift = function (operator) { - var sock = new WebSocketSubject(this._config, this.destination); - sock.operator = operator; - sock.source = this; - return sock; - }; - WebSocketSubject.prototype._resetState = function () { - this._socket = null; - if (!this.source) { - this.destination = new ReplaySubject(); - } - this._output = new Subject(); - }; - WebSocketSubject.prototype.multiplex = function (subMsg, unsubMsg, messageFilter) { - var self = this; - return new Observable(function (observer) { - try { - self.next(subMsg()); - } - catch (err) { - observer.error(err); - } - var subscription = self.subscribe({ - next: function (x) { - try { - if (messageFilter(x)) { - observer.next(x); - } - } - catch (err) { - observer.error(err); - } - }, - error: function (err) { return observer.error(err); }, - complete: function () { return observer.complete(); }, - }); - return function () { - try { - self.next(unsubMsg()); - } - catch (err) { - observer.error(err); - } - subscription.unsubscribe(); - }; - }); - }; - WebSocketSubject.prototype._connectSocket = function () { - var _this = this; - var _a = this._config, WebSocketCtor = _a.WebSocketCtor, protocol = _a.protocol, url = _a.url, binaryType = _a.binaryType; - var observer = this._output; - var socket = null; - try { - socket = protocol ? new WebSocketCtor(url, protocol) : new WebSocketCtor(url); - this._socket = socket; - if (binaryType) { - this._socket.binaryType = binaryType; - } - } - catch (e) { - observer.error(e); - return; - } - var subscription = new Subscription(function () { - _this._socket = null; - if (socket && socket.readyState === 1) { - socket.close(); - } - }); - socket.onopen = function (evt) { - var _socket = _this._socket; - if (!_socket) { - socket.close(); - _this._resetState(); - return; - } - var openObserver = _this._config.openObserver; - if (openObserver) { - openObserver.next(evt); - } - var queue = _this.destination; - _this.destination = Subscriber.create(function (x) { - if (socket.readyState === 1) { - try { - var serializer = _this._config.serializer; - socket.send(serializer(x)); - } - catch (e) { - _this.destination.error(e); - } - } - }, function (err) { - var closingObserver = _this._config.closingObserver; - if (closingObserver) { - closingObserver.next(undefined); - } - if (err && err.code) { - socket.close(err.code, err.reason); - } - else { - observer.error(new TypeError(WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT)); - } - _this._resetState(); - }, function () { - var closingObserver = _this._config.closingObserver; - if (closingObserver) { - closingObserver.next(undefined); - } - socket.close(); - _this._resetState(); - }); - if (queue && queue instanceof ReplaySubject) { - subscription.add(queue.subscribe(_this.destination)); - } - }; - socket.onerror = function (e) { - _this._resetState(); - observer.error(e); - }; - socket.onclose = function (e) { - if (socket === _this._socket) { - _this._resetState(); - } - var closeObserver = _this._config.closeObserver; - if (closeObserver) { - closeObserver.next(e); - } - if (e.wasClean) { - observer.complete(); - } - else { - observer.error(e); - } - }; - socket.onmessage = function (e) { - try { - var deserializer = _this._config.deserializer; - observer.next(deserializer(e)); - } - catch (err) { - observer.error(err); - } - }; - }; - WebSocketSubject.prototype._subscribe = function (subscriber) { - var _this = this; - var source = this.source; - if (source) { - return source.subscribe(subscriber); - } - if (!this._socket) { - this._connectSocket(); - } - this._output.subscribe(subscriber); - subscriber.add(function () { - var _socket = _this._socket; - if (_this._output.observers.length === 0) { - if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) { - _socket.close(); - } - _this._resetState(); - } - }); - return subscriber; - }; - WebSocketSubject.prototype.unsubscribe = function () { - var _socket = this._socket; - if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) { - _socket.close(); - } - this._resetState(); - _super.prototype.unsubscribe.call(this); - }; - return WebSocketSubject; - }(AnonymousSubject)); - - function webSocket(urlConfigOrSource) { - return new WebSocketSubject(urlConfigOrSource); - } - - - - var _webSocket = /*#__PURE__*/Object.freeze({ - webSocket: webSocket, - WebSocketSubject: WebSocketSubject - }); - - function fromFetch(input, initWithSelector) { - if (initWithSelector === void 0) { initWithSelector = {}; } - var selector = initWithSelector.selector, init = __rest(initWithSelector, ["selector"]); - return new Observable(function (subscriber) { - var controller = new AbortController(); - var signal = controller.signal; - var abortable = true; - var outerSignal = init.signal; - if (outerSignal) { - if (outerSignal.aborted) { - controller.abort(); - } - else { - var outerSignalHandler_1 = function () { - if (!signal.aborted) { - controller.abort(); - } - }; - outerSignal.addEventListener('abort', outerSignalHandler_1); - subscriber.add(function () { return outerSignal.removeEventListener('abort', outerSignalHandler_1); }); - } - } - var perSubscriberInit = __assign(__assign({}, init), { signal: signal }); - var handleError = function (err) { - abortable = false; - subscriber.error(err); - }; - fetch(input, perSubscriberInit) - .then(function (response) { - if (selector) { - innerFrom(selector(response)).subscribe(createOperatorSubscriber(subscriber, undefined, function () { - abortable = false; - subscriber.complete(); - }, handleError)); - } - else { - abortable = false; - subscriber.next(response); - subscriber.complete(); - } - }) - .catch(handleError); - return function () { - if (abortable) { - controller.abort(); - } - }; - }); - } - - - - var _fetch = /*#__PURE__*/Object.freeze({ - fromFetch: fromFetch - }); - - var operators = _operators; - var testing = _testing; - var ajax$1 = _ajax; - var webSocket$1 = _webSocket; - var fetch$1 = _fetch; - - exports.operators = operators; - exports.testing = testing; - exports.ajax = ajax$1; - exports.webSocket = webSocket$1; - exports.fetch = fetch$1; - exports.Observable = Observable; - exports.ConnectableObservable = ConnectableObservable; - exports.observable = observable; - exports.animationFrames = animationFrames; - exports.Subject = Subject; - exports.BehaviorSubject = BehaviorSubject; - exports.ReplaySubject = ReplaySubject; - exports.AsyncSubject = AsyncSubject; - exports.asap = asap; - exports.asapScheduler = asapScheduler; - exports.async = async; - exports.asyncScheduler = asyncScheduler; - exports.queue = queue; - exports.queueScheduler = queueScheduler; - exports.animationFrame = animationFrame; - exports.animationFrameScheduler = animationFrameScheduler; - exports.VirtualTimeScheduler = VirtualTimeScheduler; - exports.VirtualAction = VirtualAction; - exports.Scheduler = Scheduler; - exports.Subscription = Subscription; - exports.Subscriber = Subscriber; - exports.Notification = Notification; - exports.pipe = pipe; - exports.noop = noop; - exports.identity = identity; - exports.isObservable = isObservable; - exports.lastValueFrom = lastValueFrom; - exports.firstValueFrom = firstValueFrom; - exports.ArgumentOutOfRangeError = ArgumentOutOfRangeError; - exports.EmptyError = EmptyError; - exports.NotFoundError = NotFoundError; - exports.ObjectUnsubscribedError = ObjectUnsubscribedError; - exports.SequenceError = SequenceError; - exports.TimeoutError = TimeoutError; - exports.UnsubscriptionError = UnsubscriptionError; - exports.bindCallback = bindCallback; - exports.bindNodeCallback = bindNodeCallback; - exports.combineLatest = combineLatest; - exports.concat = concat; - exports.connectable = connectable; - exports.defer = defer; - exports.empty = empty; - exports.forkJoin = forkJoin; - exports.from = from; - exports.fromEvent = fromEvent; - exports.fromEventPattern = fromEventPattern; - exports.generate = generate; - exports.iif = iif; - exports.interval = interval; - exports.merge = merge; - exports.never = never; - exports.of = of; - exports.onErrorResumeNext = onErrorResumeNext; - exports.pairs = pairs; - exports.partition = partition; - exports.race = race; - exports.range = range; - exports.throwError = throwError; - exports.timer = timer; - exports.using = using; - exports.zip = zip; - exports.scheduled = scheduled; - exports.EMPTY = EMPTY; - exports.NEVER = NEVER; - exports.config = config; - exports.audit = audit; - exports.auditTime = auditTime; - exports.buffer = buffer; - exports.bufferCount = bufferCount; - exports.bufferTime = bufferTime; - exports.bufferToggle = bufferToggle; - exports.bufferWhen = bufferWhen; - exports.catchError = catchError; - exports.combineAll = combineAll; - exports.combineLatestAll = combineLatestAll; - exports.combineLatestWith = combineLatestWith; - exports.concatAll = concatAll; - exports.concatMap = concatMap; - exports.concatMapTo = concatMapTo; - exports.concatWith = concatWith; - exports.connect = connect; - exports.count = count; - exports.debounce = debounce; - exports.debounceTime = debounceTime; - exports.defaultIfEmpty = defaultIfEmpty; - exports.delay = delay; - exports.delayWhen = delayWhen; - exports.dematerialize = dematerialize; - exports.distinct = distinct; - exports.distinctUntilChanged = distinctUntilChanged; - exports.distinctUntilKeyChanged = distinctUntilKeyChanged; - exports.elementAt = elementAt; - exports.endWith = endWith; - exports.every = every; - exports.exhaust = exhaust; - exports.exhaustAll = exhaustAll; - exports.exhaustMap = exhaustMap; - exports.expand = expand; - exports.filter = filter; - exports.finalize = finalize; - exports.find = find; - exports.findIndex = findIndex; - exports.first = first; - exports.groupBy = groupBy; - exports.ignoreElements = ignoreElements; - exports.isEmpty = isEmpty; - exports.last = last$1; - exports.map = map; - exports.mapTo = mapTo; - exports.materialize = materialize; - exports.max = max; - exports.mergeAll = mergeAll; - exports.flatMap = flatMap; - exports.mergeMap = mergeMap; - exports.mergeMapTo = mergeMapTo; - exports.mergeScan = mergeScan; - exports.mergeWith = mergeWith; - exports.min = min; - exports.multicast = multicast; - exports.observeOn = observeOn; - exports.onErrorResumeNextWith = onErrorResumeNextWith; - exports.pairwise = pairwise; - exports.pluck = pluck; - exports.publish = publish; - exports.publishBehavior = publishBehavior; - exports.publishLast = publishLast; - exports.publishReplay = publishReplay; - exports.raceWith = raceWith; - exports.reduce = reduce; - exports.repeat = repeat; - exports.repeatWhen = repeatWhen; - exports.retry = retry; - exports.retryWhen = retryWhen; - exports.refCount = refCount; - exports.sample = sample; - exports.sampleTime = sampleTime; - exports.scan = scan; - exports.sequenceEqual = sequenceEqual; - exports.share = share; - exports.shareReplay = shareReplay; - exports.single = single; - exports.skip = skip; - exports.skipLast = skipLast; - exports.skipUntil = skipUntil; - exports.skipWhile = skipWhile; - exports.startWith = startWith; - exports.subscribeOn = subscribeOn; - exports.switchAll = switchAll; - exports.switchMap = switchMap; - exports.switchMapTo = switchMapTo; - exports.switchScan = switchScan; - exports.take = take; - exports.takeLast = takeLast; - exports.takeUntil = takeUntil; - exports.takeWhile = takeWhile; - exports.tap = tap; - exports.throttle = throttle; - exports.throttleTime = throttleTime; - exports.throwIfEmpty = throwIfEmpty; - exports.timeInterval = timeInterval; - exports.timeout = timeout; - exports.timeoutWith = timeoutWith; - exports.timestamp = timestamp; - exports.toArray = toArray; - exports.window = window; - exports.windowCount = windowCount; - exports.windowTime = windowTime; - exports.windowToggle = windowToggle; - exports.windowWhen = windowWhen; - exports.withLatestFrom = withLatestFrom; - exports.zipAll = zipAll; - exports.zipWith = zipWith; - - Object.defineProperty(exports, '__esModule', { value: true }); - -}))); - -//# sourceMappingURL=rxjs.umd.js.map - diff --git a/WechatBot/node_modules/rxjs/dist/bundles/rxjs.umd.js.map b/WechatBot/node_modules/rxjs/dist/bundles/rxjs.umd.js.map deleted file mode 100644 index ff1dfef33..000000000 --- a/WechatBot/node_modules/rxjs/dist/bundles/rxjs.umd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"umd.js","sources":["../cjs/tslib/tslib.es6.js","../cjs/dist/esm5_for_rollup/internal/util/isFunction.js","../cjs/dist/esm5_for_rollup/internal/util/createErrorClass.js","../cjs/dist/esm5_for_rollup/internal/util/UnsubscriptionError.js","../cjs/dist/esm5_for_rollup/internal/util/arrRemove.js","../cjs/dist/esm5_for_rollup/internal/Subscription.js","../cjs/dist/esm5_for_rollup/internal/config.js","../cjs/dist/esm5_for_rollup/internal/scheduler/timeoutProvider.js","../cjs/dist/esm5_for_rollup/internal/util/reportUnhandledError.js","../cjs/dist/esm5_for_rollup/internal/util/noop.js","../cjs/dist/esm5_for_rollup/internal/NotificationFactories.js","../cjs/dist/esm5_for_rollup/internal/util/errorContext.js","../cjs/dist/esm5_for_rollup/internal/Subscriber.js","../cjs/dist/esm5_for_rollup/internal/symbol/observable.js","../cjs/dist/esm5_for_rollup/internal/util/identity.js","../cjs/dist/esm5_for_rollup/internal/util/pipe.js","../cjs/dist/esm5_for_rollup/internal/Observable.js","../cjs/dist/esm5_for_rollup/internal/util/lift.js","../cjs/dist/esm5_for_rollup/internal/operators/OperatorSubscriber.js","../cjs/dist/esm5_for_rollup/internal/operators/refCount.js","../cjs/dist/esm5_for_rollup/internal/observable/ConnectableObservable.js","../cjs/dist/esm5_for_rollup/internal/scheduler/performanceTimestampProvider.js","../cjs/dist/esm5_for_rollup/internal/scheduler/animationFrameProvider.js","../cjs/dist/esm5_for_rollup/internal/observable/dom/animationFrames.js","../cjs/dist/esm5_for_rollup/internal/util/ObjectUnsubscribedError.js","../cjs/dist/esm5_for_rollup/internal/Subject.js","../cjs/dist/esm5_for_rollup/internal/BehaviorSubject.js","../cjs/dist/esm5_for_rollup/internal/scheduler/dateTimestampProvider.js","../cjs/dist/esm5_for_rollup/internal/ReplaySubject.js","../cjs/dist/esm5_for_rollup/internal/AsyncSubject.js","../cjs/dist/esm5_for_rollup/internal/scheduler/Action.js","../cjs/dist/esm5_for_rollup/internal/scheduler/intervalProvider.js","../cjs/dist/esm5_for_rollup/internal/scheduler/AsyncAction.js","../cjs/dist/esm5_for_rollup/internal/util/Immediate.js","../cjs/dist/esm5_for_rollup/internal/scheduler/immediateProvider.js","../cjs/dist/esm5_for_rollup/internal/scheduler/AsapAction.js","../cjs/dist/esm5_for_rollup/internal/Scheduler.js","../cjs/dist/esm5_for_rollup/internal/scheduler/AsyncScheduler.js","../cjs/dist/esm5_for_rollup/internal/scheduler/AsapScheduler.js","../cjs/dist/esm5_for_rollup/internal/scheduler/asap.js","../cjs/dist/esm5_for_rollup/internal/scheduler/async.js","../cjs/dist/esm5_for_rollup/internal/scheduler/QueueAction.js","../cjs/dist/esm5_for_rollup/internal/scheduler/QueueScheduler.js","../cjs/dist/esm5_for_rollup/internal/scheduler/queue.js","../cjs/dist/esm5_for_rollup/internal/scheduler/AnimationFrameAction.js","../cjs/dist/esm5_for_rollup/internal/scheduler/AnimationFrameScheduler.js","../cjs/dist/esm5_for_rollup/internal/scheduler/animationFrame.js","../cjs/dist/esm5_for_rollup/internal/scheduler/VirtualTimeScheduler.js","../cjs/dist/esm5_for_rollup/internal/observable/empty.js","../cjs/dist/esm5_for_rollup/internal/util/isScheduler.js","../cjs/dist/esm5_for_rollup/internal/util/args.js","../cjs/dist/esm5_for_rollup/internal/util/isArrayLike.js","../cjs/dist/esm5_for_rollup/internal/util/isPromise.js","../cjs/dist/esm5_for_rollup/internal/util/isInteropObservable.js","../cjs/dist/esm5_for_rollup/internal/util/isAsyncIterable.js","../cjs/dist/esm5_for_rollup/internal/util/throwUnobservableError.js","../cjs/dist/esm5_for_rollup/internal/symbol/iterator.js","../cjs/dist/esm5_for_rollup/internal/util/isIterable.js","../cjs/dist/esm5_for_rollup/internal/util/isReadableStreamLike.js","../cjs/dist/esm5_for_rollup/internal/observable/innerFrom.js","../cjs/dist/esm5_for_rollup/internal/util/executeSchedule.js","../cjs/dist/esm5_for_rollup/internal/operators/observeOn.js","../cjs/dist/esm5_for_rollup/internal/operators/subscribeOn.js","../cjs/dist/esm5_for_rollup/internal/scheduled/scheduleObservable.js","../cjs/dist/esm5_for_rollup/internal/scheduled/schedulePromise.js","../cjs/dist/esm5_for_rollup/internal/scheduled/scheduleArray.js","../cjs/dist/esm5_for_rollup/internal/scheduled/scheduleIterable.js","../cjs/dist/esm5_for_rollup/internal/scheduled/scheduleAsyncIterable.js","../cjs/dist/esm5_for_rollup/internal/scheduled/scheduleReadableStreamLike.js","../cjs/dist/esm5_for_rollup/internal/scheduled/scheduled.js","../cjs/dist/esm5_for_rollup/internal/observable/from.js","../cjs/dist/esm5_for_rollup/internal/observable/of.js","../cjs/dist/esm5_for_rollup/internal/observable/throwError.js","../cjs/dist/esm5_for_rollup/internal/Notification.js","../cjs/dist/esm5_for_rollup/internal/util/isObservable.js","../cjs/dist/esm5_for_rollup/internal/util/EmptyError.js","../cjs/dist/esm5_for_rollup/internal/lastValueFrom.js","../cjs/dist/esm5_for_rollup/internal/firstValueFrom.js","../cjs/dist/esm5_for_rollup/internal/util/ArgumentOutOfRangeError.js","../cjs/dist/esm5_for_rollup/internal/util/NotFoundError.js","../cjs/dist/esm5_for_rollup/internal/util/SequenceError.js","../cjs/dist/esm5_for_rollup/internal/util/isDate.js","../cjs/dist/esm5_for_rollup/internal/operators/timeout.js","../cjs/dist/esm5_for_rollup/internal/operators/map.js","../cjs/dist/esm5_for_rollup/internal/util/mapOneOrManyArgs.js","../cjs/dist/esm5_for_rollup/internal/observable/bindCallbackInternals.js","../cjs/dist/esm5_for_rollup/internal/observable/bindCallback.js","../cjs/dist/esm5_for_rollup/internal/observable/bindNodeCallback.js","../cjs/dist/esm5_for_rollup/internal/util/argsArgArrayOrObject.js","../cjs/dist/esm5_for_rollup/internal/util/createObject.js","../cjs/dist/esm5_for_rollup/internal/observable/combineLatest.js","../cjs/dist/esm5_for_rollup/internal/operators/mergeInternals.js","../cjs/dist/esm5_for_rollup/internal/operators/mergeMap.js","../cjs/dist/esm5_for_rollup/internal/operators/mergeAll.js","../cjs/dist/esm5_for_rollup/internal/operators/concatAll.js","../cjs/dist/esm5_for_rollup/internal/observable/concat.js","../cjs/dist/esm5_for_rollup/internal/observable/defer.js","../cjs/dist/esm5_for_rollup/internal/observable/connectable.js","../cjs/dist/esm5_for_rollup/internal/observable/forkJoin.js","../cjs/dist/esm5_for_rollup/internal/observable/fromEvent.js","../cjs/dist/esm5_for_rollup/internal/observable/fromEventPattern.js","../cjs/dist/esm5_for_rollup/internal/observable/generate.js","../cjs/dist/esm5_for_rollup/internal/observable/iif.js","../cjs/dist/esm5_for_rollup/internal/observable/timer.js","../cjs/dist/esm5_for_rollup/internal/observable/interval.js","../cjs/dist/esm5_for_rollup/internal/observable/merge.js","../cjs/dist/esm5_for_rollup/internal/observable/never.js","../cjs/dist/esm5_for_rollup/internal/util/argsOrArgArray.js","../cjs/dist/esm5_for_rollup/internal/observable/onErrorResumeNext.js","../cjs/dist/esm5_for_rollup/internal/observable/pairs.js","../cjs/dist/esm5_for_rollup/internal/util/not.js","../cjs/dist/esm5_for_rollup/internal/operators/filter.js","../cjs/dist/esm5_for_rollup/internal/observable/partition.js","../cjs/dist/esm5_for_rollup/internal/observable/race.js","../cjs/dist/esm5_for_rollup/internal/observable/range.js","../cjs/dist/esm5_for_rollup/internal/observable/using.js","../cjs/dist/esm5_for_rollup/internal/observable/zip.js","../cjs/dist/esm5_for_rollup/internal/operators/audit.js","../cjs/dist/esm5_for_rollup/internal/operators/auditTime.js","../cjs/dist/esm5_for_rollup/internal/operators/buffer.js","../cjs/dist/esm5_for_rollup/internal/operators/bufferCount.js","../cjs/dist/esm5_for_rollup/internal/operators/bufferTime.js","../cjs/dist/esm5_for_rollup/internal/operators/bufferToggle.js","../cjs/dist/esm5_for_rollup/internal/operators/bufferWhen.js","../cjs/dist/esm5_for_rollup/internal/operators/catchError.js","../cjs/dist/esm5_for_rollup/internal/operators/scanInternals.js","../cjs/dist/esm5_for_rollup/internal/operators/reduce.js","../cjs/dist/esm5_for_rollup/internal/operators/toArray.js","../cjs/dist/esm5_for_rollup/internal/operators/joinAllInternals.js","../cjs/dist/esm5_for_rollup/internal/operators/combineLatestAll.js","../cjs/dist/esm5_for_rollup/internal/operators/combineAll.js","../cjs/dist/esm5_for_rollup/internal/operators/combineLatest.js","../cjs/dist/esm5_for_rollup/internal/operators/combineLatestWith.js","../cjs/dist/esm5_for_rollup/internal/operators/concatMap.js","../cjs/dist/esm5_for_rollup/internal/operators/concatMapTo.js","../cjs/dist/esm5_for_rollup/internal/operators/concat.js","../cjs/dist/esm5_for_rollup/internal/operators/concatWith.js","../cjs/dist/esm5_for_rollup/internal/observable/fromSubscribable.js","../cjs/dist/esm5_for_rollup/internal/operators/connect.js","../cjs/dist/esm5_for_rollup/internal/operators/count.js","../cjs/dist/esm5_for_rollup/internal/operators/debounce.js","../cjs/dist/esm5_for_rollup/internal/operators/debounceTime.js","../cjs/dist/esm5_for_rollup/internal/operators/defaultIfEmpty.js","../cjs/dist/esm5_for_rollup/internal/operators/take.js","../cjs/dist/esm5_for_rollup/internal/operators/ignoreElements.js","../cjs/dist/esm5_for_rollup/internal/operators/mapTo.js","../cjs/dist/esm5_for_rollup/internal/operators/delayWhen.js","../cjs/dist/esm5_for_rollup/internal/operators/delay.js","../cjs/dist/esm5_for_rollup/internal/operators/dematerialize.js","../cjs/dist/esm5_for_rollup/internal/operators/distinct.js","../cjs/dist/esm5_for_rollup/internal/operators/distinctUntilChanged.js","../cjs/dist/esm5_for_rollup/internal/operators/distinctUntilKeyChanged.js","../cjs/dist/esm5_for_rollup/internal/operators/throwIfEmpty.js","../cjs/dist/esm5_for_rollup/internal/operators/elementAt.js","../cjs/dist/esm5_for_rollup/internal/operators/endWith.js","../cjs/dist/esm5_for_rollup/internal/operators/every.js","../cjs/dist/esm5_for_rollup/internal/operators/exhaustMap.js","../cjs/dist/esm5_for_rollup/internal/operators/exhaustAll.js","../cjs/dist/esm5_for_rollup/internal/operators/exhaust.js","../cjs/dist/esm5_for_rollup/internal/operators/expand.js","../cjs/dist/esm5_for_rollup/internal/operators/finalize.js","../cjs/dist/esm5_for_rollup/internal/operators/find.js","../cjs/dist/esm5_for_rollup/internal/operators/findIndex.js","../cjs/dist/esm5_for_rollup/internal/operators/first.js","../cjs/dist/esm5_for_rollup/internal/operators/groupBy.js","../cjs/dist/esm5_for_rollup/internal/operators/isEmpty.js","../cjs/dist/esm5_for_rollup/internal/operators/takeLast.js","../cjs/dist/esm5_for_rollup/internal/operators/last.js","../cjs/dist/esm5_for_rollup/internal/operators/materialize.js","../cjs/dist/esm5_for_rollup/internal/operators/max.js","../cjs/dist/esm5_for_rollup/internal/operators/flatMap.js","../cjs/dist/esm5_for_rollup/internal/operators/mergeMapTo.js","../cjs/dist/esm5_for_rollup/internal/operators/mergeScan.js","../cjs/dist/esm5_for_rollup/internal/operators/merge.js","../cjs/dist/esm5_for_rollup/internal/operators/mergeWith.js","../cjs/dist/esm5_for_rollup/internal/operators/min.js","../cjs/dist/esm5_for_rollup/internal/operators/multicast.js","../cjs/dist/esm5_for_rollup/internal/operators/onErrorResumeNextWith.js","../cjs/dist/esm5_for_rollup/internal/operators/pairwise.js","../cjs/dist/esm5_for_rollup/internal/operators/pluck.js","../cjs/dist/esm5_for_rollup/internal/operators/publish.js","../cjs/dist/esm5_for_rollup/internal/operators/publishBehavior.js","../cjs/dist/esm5_for_rollup/internal/operators/publishLast.js","../cjs/dist/esm5_for_rollup/internal/operators/publishReplay.js","../cjs/dist/esm5_for_rollup/internal/operators/raceWith.js","../cjs/dist/esm5_for_rollup/internal/operators/repeat.js","../cjs/dist/esm5_for_rollup/internal/operators/repeatWhen.js","../cjs/dist/esm5_for_rollup/internal/operators/retry.js","../cjs/dist/esm5_for_rollup/internal/operators/retryWhen.js","../cjs/dist/esm5_for_rollup/internal/operators/sample.js","../cjs/dist/esm5_for_rollup/internal/operators/sampleTime.js","../cjs/dist/esm5_for_rollup/internal/operators/scan.js","../cjs/dist/esm5_for_rollup/internal/operators/sequenceEqual.js","../cjs/dist/esm5_for_rollup/internal/operators/share.js","../cjs/dist/esm5_for_rollup/internal/operators/shareReplay.js","../cjs/dist/esm5_for_rollup/internal/operators/single.js","../cjs/dist/esm5_for_rollup/internal/operators/skip.js","../cjs/dist/esm5_for_rollup/internal/operators/skipLast.js","../cjs/dist/esm5_for_rollup/internal/operators/skipUntil.js","../cjs/dist/esm5_for_rollup/internal/operators/skipWhile.js","../cjs/dist/esm5_for_rollup/internal/operators/startWith.js","../cjs/dist/esm5_for_rollup/internal/operators/switchMap.js","../cjs/dist/esm5_for_rollup/internal/operators/switchAll.js","../cjs/dist/esm5_for_rollup/internal/operators/switchMapTo.js","../cjs/dist/esm5_for_rollup/internal/operators/switchScan.js","../cjs/dist/esm5_for_rollup/internal/operators/takeUntil.js","../cjs/dist/esm5_for_rollup/internal/operators/takeWhile.js","../cjs/dist/esm5_for_rollup/internal/operators/tap.js","../cjs/dist/esm5_for_rollup/internal/operators/throttle.js","../cjs/dist/esm5_for_rollup/internal/operators/throttleTime.js","../cjs/dist/esm5_for_rollup/internal/operators/timeInterval.js","../cjs/dist/esm5_for_rollup/internal/operators/timeoutWith.js","../cjs/dist/esm5_for_rollup/internal/operators/timestamp.js","../cjs/dist/esm5_for_rollup/internal/operators/window.js","../cjs/dist/esm5_for_rollup/internal/operators/windowCount.js","../cjs/dist/esm5_for_rollup/internal/operators/windowTime.js","../cjs/dist/esm5_for_rollup/internal/operators/windowToggle.js","../cjs/dist/esm5_for_rollup/internal/operators/windowWhen.js","../cjs/dist/esm5_for_rollup/internal/operators/withLatestFrom.js","../cjs/dist/esm5_for_rollup/internal/operators/zipAll.js","../cjs/dist/esm5_for_rollup/internal/operators/zip.js","../cjs/dist/esm5_for_rollup/internal/operators/zipWith.js","../cjs/dist/esm5_for_rollup/internal/operators/partition.js","../cjs/dist/esm5_for_rollup/internal/operators/race.js","../cjs/dist/esm5_for_rollup/internal/testing/SubscriptionLog.js","../cjs/dist/esm5_for_rollup/internal/testing/SubscriptionLoggable.js","../cjs/dist/esm5_for_rollup/internal/util/applyMixins.js","../cjs/dist/esm5_for_rollup/internal/testing/ColdObservable.js","../cjs/dist/esm5_for_rollup/internal/testing/HotObservable.js","../cjs/dist/esm5_for_rollup/internal/testing/TestScheduler.js","../cjs/dist/esm5_for_rollup/internal/ajax/getXHRResponse.js","../cjs/dist/esm5_for_rollup/internal/ajax/AjaxResponse.js","../cjs/dist/esm5_for_rollup/internal/ajax/errors.js","../cjs/dist/esm5_for_rollup/internal/ajax/ajax.js","../cjs/dist/esm5_for_rollup/internal/observable/dom/WebSocketSubject.js","../cjs/dist/esm5_for_rollup/internal/observable/dom/webSocket.js","../cjs/dist/esm5_for_rollup/internal/observable/dom/fetch.js","../cjs/dist/esm5_for_rollup/internal/umd.js"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n","export function isFunction(value) {\n return typeof value === 'function';\n}\n//# sourceMappingURL=isFunction.js.map","export function createErrorClass(createImpl) {\n var _super = function (instance) {\n Error.call(instance);\n instance.stack = new Error().stack;\n };\n var ctorFunc = createImpl(_super);\n ctorFunc.prototype = Object.create(Error.prototype);\n ctorFunc.prototype.constructor = ctorFunc;\n return ctorFunc;\n}\n//# sourceMappingURL=createErrorClass.js.map","import { createErrorClass } from './createErrorClass';\nexport var UnsubscriptionError = createErrorClass(function (_super) {\n return function UnsubscriptionErrorImpl(errors) {\n _super(this);\n this.message = errors\n ? errors.length + \" errors occurred during unsubscription:\\n\" + errors.map(function (err, i) { return i + 1 + \") \" + err.toString(); }).join('\\n ')\n : '';\n this.name = 'UnsubscriptionError';\n this.errors = errors;\n };\n});\n//# sourceMappingURL=UnsubscriptionError.js.map","export function arrRemove(arr, item) {\n if (arr) {\n var index = arr.indexOf(item);\n 0 <= index && arr.splice(index, 1);\n }\n}\n//# sourceMappingURL=arrRemove.js.map","import { __read, __spreadArray, __values } from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { UnsubscriptionError } from './util/UnsubscriptionError';\nimport { arrRemove } from './util/arrRemove';\nvar Subscription = (function () {\n function Subscription(initialTeardown) {\n this.initialTeardown = initialTeardown;\n this.closed = false;\n this._parentage = null;\n this._finalizers = null;\n }\n Subscription.prototype.unsubscribe = function () {\n var e_1, _a, e_2, _b;\n var errors;\n if (!this.closed) {\n this.closed = true;\n var _parentage = this._parentage;\n if (_parentage) {\n this._parentage = null;\n if (Array.isArray(_parentage)) {\n try {\n for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) {\n var parent_1 = _parentage_1_1.value;\n parent_1.remove(this);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n else {\n _parentage.remove(this);\n }\n }\n var initialFinalizer = this.initialTeardown;\n if (isFunction(initialFinalizer)) {\n try {\n initialFinalizer();\n }\n catch (e) {\n errors = e instanceof UnsubscriptionError ? e.errors : [e];\n }\n }\n var _finalizers = this._finalizers;\n if (_finalizers) {\n this._finalizers = null;\n try {\n for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) {\n var finalizer = _finalizers_1_1.value;\n try {\n execFinalizer(finalizer);\n }\n catch (err) {\n errors = errors !== null && errors !== void 0 ? errors : [];\n if (err instanceof UnsubscriptionError) {\n errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors));\n }\n else {\n errors.push(err);\n }\n }\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }\n if (errors) {\n throw new UnsubscriptionError(errors);\n }\n }\n };\n Subscription.prototype.add = function (teardown) {\n var _a;\n if (teardown && teardown !== this) {\n if (this.closed) {\n execFinalizer(teardown);\n }\n else {\n if (teardown instanceof Subscription) {\n if (teardown.closed || teardown._hasParent(this)) {\n return;\n }\n teardown._addParent(this);\n }\n (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown);\n }\n }\n };\n Subscription.prototype._hasParent = function (parent) {\n var _parentage = this._parentage;\n return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent));\n };\n Subscription.prototype._addParent = function (parent) {\n var _parentage = this._parentage;\n this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent;\n };\n Subscription.prototype._removeParent = function (parent) {\n var _parentage = this._parentage;\n if (_parentage === parent) {\n this._parentage = null;\n }\n else if (Array.isArray(_parentage)) {\n arrRemove(_parentage, parent);\n }\n };\n Subscription.prototype.remove = function (teardown) {\n var _finalizers = this._finalizers;\n _finalizers && arrRemove(_finalizers, teardown);\n if (teardown instanceof Subscription) {\n teardown._removeParent(this);\n }\n };\n Subscription.EMPTY = (function () {\n var empty = new Subscription();\n empty.closed = true;\n return empty;\n })();\n return Subscription;\n}());\nexport { Subscription };\nexport var EMPTY_SUBSCRIPTION = Subscription.EMPTY;\nexport function isSubscription(value) {\n return (value instanceof Subscription ||\n (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)));\n}\nfunction execFinalizer(finalizer) {\n if (isFunction(finalizer)) {\n finalizer();\n }\n else {\n finalizer.unsubscribe();\n }\n}\n//# sourceMappingURL=Subscription.js.map","export var config = {\n onUnhandledError: null,\n onStoppedNotification: null,\n Promise: undefined,\n useDeprecatedSynchronousErrorHandling: false,\n useDeprecatedNextContext: false,\n};\n//# sourceMappingURL=config.js.map","import { __read, __spreadArray } from \"tslib\";\nexport var timeoutProvider = {\n setTimeout: function (handler, timeout) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n var delegate = timeoutProvider.delegate;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) {\n return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args)));\n }\n return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args)));\n },\n clearTimeout: function (handle) {\n var delegate = timeoutProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle);\n },\n delegate: undefined,\n};\n//# sourceMappingURL=timeoutProvider.js.map","import { config } from '../config';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nexport function reportUnhandledError(err) {\n timeoutProvider.setTimeout(function () {\n var onUnhandledError = config.onUnhandledError;\n if (onUnhandledError) {\n onUnhandledError(err);\n }\n else {\n throw err;\n }\n });\n}\n//# sourceMappingURL=reportUnhandledError.js.map","export function noop() { }\n//# sourceMappingURL=noop.js.map","export var COMPLETE_NOTIFICATION = (function () { return createNotification('C', undefined, undefined); })();\nexport function errorNotification(error) {\n return createNotification('E', undefined, error);\n}\nexport function nextNotification(value) {\n return createNotification('N', value, undefined);\n}\nexport function createNotification(kind, value, error) {\n return {\n kind: kind,\n value: value,\n error: error,\n };\n}\n//# sourceMappingURL=NotificationFactories.js.map","import { config } from '../config';\nvar context = null;\nexport function errorContext(cb) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n var isRoot = !context;\n if (isRoot) {\n context = { errorThrown: false, error: null };\n }\n cb();\n if (isRoot) {\n var _a = context, errorThrown = _a.errorThrown, error = _a.error;\n context = null;\n if (errorThrown) {\n throw error;\n }\n }\n }\n else {\n cb();\n }\n}\nexport function captureError(err) {\n if (config.useDeprecatedSynchronousErrorHandling && context) {\n context.errorThrown = true;\n context.error = err;\n }\n}\n//# sourceMappingURL=errorContext.js.map","import { __extends } from \"tslib\";\nimport { isFunction } from './util/isFunction';\nimport { isSubscription, Subscription } from './Subscription';\nimport { config } from './config';\nimport { reportUnhandledError } from './util/reportUnhandledError';\nimport { noop } from './util/noop';\nimport { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories';\nimport { timeoutProvider } from './scheduler/timeoutProvider';\nimport { captureError } from './util/errorContext';\nvar Subscriber = (function (_super) {\n __extends(Subscriber, _super);\n function Subscriber(destination) {\n var _this = _super.call(this) || this;\n _this.isStopped = false;\n if (destination) {\n _this.destination = destination;\n if (isSubscription(destination)) {\n destination.add(_this);\n }\n }\n else {\n _this.destination = EMPTY_OBSERVER;\n }\n return _this;\n }\n Subscriber.create = function (next, error, complete) {\n return new SafeSubscriber(next, error, complete);\n };\n Subscriber.prototype.next = function (value) {\n if (this.isStopped) {\n handleStoppedNotification(nextNotification(value), this);\n }\n else {\n this._next(value);\n }\n };\n Subscriber.prototype.error = function (err) {\n if (this.isStopped) {\n handleStoppedNotification(errorNotification(err), this);\n }\n else {\n this.isStopped = true;\n this._error(err);\n }\n };\n Subscriber.prototype.complete = function () {\n if (this.isStopped) {\n handleStoppedNotification(COMPLETE_NOTIFICATION, this);\n }\n else {\n this.isStopped = true;\n this._complete();\n }\n };\n Subscriber.prototype.unsubscribe = function () {\n if (!this.closed) {\n this.isStopped = true;\n _super.prototype.unsubscribe.call(this);\n this.destination = null;\n }\n };\n Subscriber.prototype._next = function (value) {\n this.destination.next(value);\n };\n Subscriber.prototype._error = function (err) {\n try {\n this.destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n };\n Subscriber.prototype._complete = function () {\n try {\n this.destination.complete();\n }\n finally {\n this.unsubscribe();\n }\n };\n return Subscriber;\n}(Subscription));\nexport { Subscriber };\nvar _bind = Function.prototype.bind;\nfunction bind(fn, thisArg) {\n return _bind.call(fn, thisArg);\n}\nvar ConsumerObserver = (function () {\n function ConsumerObserver(partialObserver) {\n this.partialObserver = partialObserver;\n }\n ConsumerObserver.prototype.next = function (value) {\n var partialObserver = this.partialObserver;\n if (partialObserver.next) {\n try {\n partialObserver.next(value);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n };\n ConsumerObserver.prototype.error = function (err) {\n var partialObserver = this.partialObserver;\n if (partialObserver.error) {\n try {\n partialObserver.error(err);\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n else {\n handleUnhandledError(err);\n }\n };\n ConsumerObserver.prototype.complete = function () {\n var partialObserver = this.partialObserver;\n if (partialObserver.complete) {\n try {\n partialObserver.complete();\n }\n catch (error) {\n handleUnhandledError(error);\n }\n }\n };\n return ConsumerObserver;\n}());\nvar SafeSubscriber = (function (_super) {\n __extends(SafeSubscriber, _super);\n function SafeSubscriber(observerOrNext, error, complete) {\n var _this = _super.call(this) || this;\n var partialObserver;\n if (isFunction(observerOrNext) || !observerOrNext) {\n partialObserver = {\n next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined),\n error: error !== null && error !== void 0 ? error : undefined,\n complete: complete !== null && complete !== void 0 ? complete : undefined,\n };\n }\n else {\n var context_1;\n if (_this && config.useDeprecatedNextContext) {\n context_1 = Object.create(observerOrNext);\n context_1.unsubscribe = function () { return _this.unsubscribe(); };\n partialObserver = {\n next: observerOrNext.next && bind(observerOrNext.next, context_1),\n error: observerOrNext.error && bind(observerOrNext.error, context_1),\n complete: observerOrNext.complete && bind(observerOrNext.complete, context_1),\n };\n }\n else {\n partialObserver = observerOrNext;\n }\n }\n _this.destination = new ConsumerObserver(partialObserver);\n return _this;\n }\n return SafeSubscriber;\n}(Subscriber));\nexport { SafeSubscriber };\nfunction handleUnhandledError(error) {\n if (config.useDeprecatedSynchronousErrorHandling) {\n captureError(error);\n }\n else {\n reportUnhandledError(error);\n }\n}\nfunction defaultErrorHandler(err) {\n throw err;\n}\nfunction handleStoppedNotification(notification, subscriber) {\n var onStoppedNotification = config.onStoppedNotification;\n onStoppedNotification && timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); });\n}\nexport var EMPTY_OBSERVER = {\n closed: true,\n next: noop,\n error: defaultErrorHandler,\n complete: noop,\n};\n//# sourceMappingURL=Subscriber.js.map","export var observable = (function () { return (typeof Symbol === 'function' && Symbol.observable) || '@@observable'; })();\n//# sourceMappingURL=observable.js.map","export function identity(x) {\n return x;\n}\n//# sourceMappingURL=identity.js.map","import { identity } from './identity';\nexport function pipe() {\n var fns = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n fns[_i] = arguments[_i];\n }\n return pipeFromArray(fns);\n}\nexport function pipeFromArray(fns) {\n if (fns.length === 0) {\n return identity;\n }\n if (fns.length === 1) {\n return fns[0];\n }\n return function piped(input) {\n return fns.reduce(function (prev, fn) { return fn(prev); }, input);\n };\n}\n//# sourceMappingURL=pipe.js.map","import { SafeSubscriber, Subscriber } from './Subscriber';\nimport { isSubscription } from './Subscription';\nimport { observable as Symbol_observable } from './symbol/observable';\nimport { pipeFromArray } from './util/pipe';\nimport { config } from './config';\nimport { isFunction } from './util/isFunction';\nimport { errorContext } from './util/errorContext';\nvar Observable = (function () {\n function Observable(subscribe) {\n if (subscribe) {\n this._subscribe = subscribe;\n }\n }\n Observable.prototype.lift = function (operator) {\n var observable = new Observable();\n observable.source = this;\n observable.operator = operator;\n return observable;\n };\n Observable.prototype.subscribe = function (observerOrNext, error, complete) {\n var _this = this;\n var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete);\n errorContext(function () {\n var _a = _this, operator = _a.operator, source = _a.source;\n subscriber.add(operator\n ?\n operator.call(subscriber, source)\n : source\n ?\n _this._subscribe(subscriber)\n :\n _this._trySubscribe(subscriber));\n });\n return subscriber;\n };\n Observable.prototype._trySubscribe = function (sink) {\n try {\n return this._subscribe(sink);\n }\n catch (err) {\n sink.error(err);\n }\n };\n Observable.prototype.forEach = function (next, promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var subscriber = new SafeSubscriber({\n next: function (value) {\n try {\n next(value);\n }\n catch (err) {\n reject(err);\n subscriber.unsubscribe();\n }\n },\n error: reject,\n complete: resolve,\n });\n _this.subscribe(subscriber);\n });\n };\n Observable.prototype._subscribe = function (subscriber) {\n var _a;\n return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber);\n };\n Observable.prototype[Symbol_observable] = function () {\n return this;\n };\n Observable.prototype.pipe = function () {\n var operations = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n operations[_i] = arguments[_i];\n }\n return pipeFromArray(operations)(this);\n };\n Observable.prototype.toPromise = function (promiseCtor) {\n var _this = this;\n promiseCtor = getPromiseCtor(promiseCtor);\n return new promiseCtor(function (resolve, reject) {\n var value;\n _this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); });\n });\n };\n Observable.create = function (subscribe) {\n return new Observable(subscribe);\n };\n return Observable;\n}());\nexport { Observable };\nfunction getPromiseCtor(promiseCtor) {\n var _a;\n return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise;\n}\nfunction isObserver(value) {\n return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete);\n}\nfunction isSubscriber(value) {\n return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value));\n}\n//# sourceMappingURL=Observable.js.map","import { isFunction } from './isFunction';\nexport function hasLift(source) {\n return isFunction(source === null || source === void 0 ? void 0 : source.lift);\n}\nexport function operate(init) {\n return function (source) {\n if (hasLift(source)) {\n return source.lift(function (liftedSource) {\n try {\n return init(liftedSource, this);\n }\n catch (err) {\n this.error(err);\n }\n });\n }\n throw new TypeError('Unable to lift unknown Observable type');\n };\n}\n//# sourceMappingURL=lift.js.map","import { __extends } from \"tslib\";\nimport { Subscriber } from '../Subscriber';\nexport function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) {\n return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize);\n}\nvar OperatorSubscriber = (function (_super) {\n __extends(OperatorSubscriber, _super);\n function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {\n var _this = _super.call(this, destination) || this;\n _this.onFinalize = onFinalize;\n _this.shouldUnsubscribe = shouldUnsubscribe;\n _this._next = onNext\n ? function (value) {\n try {\n onNext(value);\n }\n catch (err) {\n destination.error(err);\n }\n }\n : _super.prototype._next;\n _this._error = onError\n ? function (err) {\n try {\n onError(err);\n }\n catch (err) {\n destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n }\n : _super.prototype._error;\n _this._complete = onComplete\n ? function () {\n try {\n onComplete();\n }\n catch (err) {\n destination.error(err);\n }\n finally {\n this.unsubscribe();\n }\n }\n : _super.prototype._complete;\n return _this;\n }\n OperatorSubscriber.prototype.unsubscribe = function () {\n var _a;\n if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {\n var closed_1 = this.closed;\n _super.prototype.unsubscribe.call(this);\n !closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this));\n }\n };\n return OperatorSubscriber;\n}(Subscriber));\nexport { OperatorSubscriber };\n//# sourceMappingURL=OperatorSubscriber.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function refCount() {\n return operate(function (source, subscriber) {\n var connection = null;\n source._refCount++;\n var refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, function () {\n if (!source || source._refCount <= 0 || 0 < --source._refCount) {\n connection = null;\n return;\n }\n var sharedConnection = source._connection;\n var conn = connection;\n connection = null;\n if (sharedConnection && (!conn || sharedConnection === conn)) {\n sharedConnection.unsubscribe();\n }\n subscriber.unsubscribe();\n });\n source.subscribe(refCounter);\n if (!refCounter.closed) {\n connection = source.connect();\n }\n });\n}\n//# sourceMappingURL=refCount.js.map","import { __extends } from \"tslib\";\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { refCount as higherOrderRefCount } from '../operators/refCount';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { hasLift } from '../util/lift';\nvar ConnectableObservable = (function (_super) {\n __extends(ConnectableObservable, _super);\n function ConnectableObservable(source, subjectFactory) {\n var _this = _super.call(this) || this;\n _this.source = source;\n _this.subjectFactory = subjectFactory;\n _this._subject = null;\n _this._refCount = 0;\n _this._connection = null;\n if (hasLift(source)) {\n _this.lift = source.lift;\n }\n return _this;\n }\n ConnectableObservable.prototype._subscribe = function (subscriber) {\n return this.getSubject().subscribe(subscriber);\n };\n ConnectableObservable.prototype.getSubject = function () {\n var subject = this._subject;\n if (!subject || subject.isStopped) {\n this._subject = this.subjectFactory();\n }\n return this._subject;\n };\n ConnectableObservable.prototype._teardown = function () {\n this._refCount = 0;\n var _connection = this._connection;\n this._subject = this._connection = null;\n _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe();\n };\n ConnectableObservable.prototype.connect = function () {\n var _this = this;\n var connection = this._connection;\n if (!connection) {\n connection = this._connection = new Subscription();\n var subject_1 = this.getSubject();\n connection.add(this.source.subscribe(createOperatorSubscriber(subject_1, undefined, function () {\n _this._teardown();\n subject_1.complete();\n }, function (err) {\n _this._teardown();\n subject_1.error(err);\n }, function () { return _this._teardown(); })));\n if (connection.closed) {\n this._connection = null;\n connection = Subscription.EMPTY;\n }\n }\n return connection;\n };\n ConnectableObservable.prototype.refCount = function () {\n return higherOrderRefCount()(this);\n };\n return ConnectableObservable;\n}(Observable));\nexport { ConnectableObservable };\n//# sourceMappingURL=ConnectableObservable.js.map","export var performanceTimestampProvider = {\n now: function () {\n return (performanceTimestampProvider.delegate || performance).now();\n },\n delegate: undefined,\n};\n//# sourceMappingURL=performanceTimestampProvider.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { Subscription } from '../Subscription';\nexport var animationFrameProvider = {\n schedule: function (callback) {\n var request = requestAnimationFrame;\n var cancel = cancelAnimationFrame;\n var delegate = animationFrameProvider.delegate;\n if (delegate) {\n request = delegate.requestAnimationFrame;\n cancel = delegate.cancelAnimationFrame;\n }\n var handle = request(function (timestamp) {\n cancel = undefined;\n callback(timestamp);\n });\n return new Subscription(function () { return cancel === null || cancel === void 0 ? void 0 : cancel(handle); });\n },\n requestAnimationFrame: function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var delegate = animationFrameProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray([], __read(args)));\n },\n cancelAnimationFrame: function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var delegate = animationFrameProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray([], __read(args)));\n },\n delegate: undefined,\n};\n//# sourceMappingURL=animationFrameProvider.js.map","import { Observable } from '../../Observable';\nimport { performanceTimestampProvider } from '../../scheduler/performanceTimestampProvider';\nimport { animationFrameProvider } from '../../scheduler/animationFrameProvider';\nexport function animationFrames(timestampProvider) {\n return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES;\n}\nfunction animationFramesFactory(timestampProvider) {\n return new Observable(function (subscriber) {\n var provider = timestampProvider || performanceTimestampProvider;\n var start = provider.now();\n var id = 0;\n var run = function () {\n if (!subscriber.closed) {\n id = animationFrameProvider.requestAnimationFrame(function (timestamp) {\n id = 0;\n var now = provider.now();\n subscriber.next({\n timestamp: timestampProvider ? now : timestamp,\n elapsed: now - start,\n });\n run();\n });\n }\n };\n run();\n return function () {\n if (id) {\n animationFrameProvider.cancelAnimationFrame(id);\n }\n };\n });\n}\nvar DEFAULT_ANIMATION_FRAMES = animationFramesFactory();\n//# sourceMappingURL=animationFrames.js.map","import { createErrorClass } from './createErrorClass';\nexport var ObjectUnsubscribedError = createErrorClass(function (_super) {\n return function ObjectUnsubscribedErrorImpl() {\n _super(this);\n this.name = 'ObjectUnsubscribedError';\n this.message = 'object unsubscribed';\n };\n});\n//# sourceMappingURL=ObjectUnsubscribedError.js.map","import { __extends, __values } from \"tslib\";\nimport { Observable } from './Observable';\nimport { Subscription, EMPTY_SUBSCRIPTION } from './Subscription';\nimport { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError';\nimport { arrRemove } from './util/arrRemove';\nimport { errorContext } from './util/errorContext';\nvar Subject = (function (_super) {\n __extends(Subject, _super);\n function Subject() {\n var _this = _super.call(this) || this;\n _this.closed = false;\n _this.currentObservers = null;\n _this.observers = [];\n _this.isStopped = false;\n _this.hasError = false;\n _this.thrownError = null;\n return _this;\n }\n Subject.prototype.lift = function (operator) {\n var subject = new AnonymousSubject(this, this);\n subject.operator = operator;\n return subject;\n };\n Subject.prototype._throwIfClosed = function () {\n if (this.closed) {\n throw new ObjectUnsubscribedError();\n }\n };\n Subject.prototype.next = function (value) {\n var _this = this;\n errorContext(function () {\n var e_1, _a;\n _this._throwIfClosed();\n if (!_this.isStopped) {\n if (!_this.currentObservers) {\n _this.currentObservers = Array.from(_this.observers);\n }\n try {\n for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) {\n var observer = _c.value;\n observer.next(value);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (_c && !_c.done && (_a = _b.return)) _a.call(_b);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n });\n };\n Subject.prototype.error = function (err) {\n var _this = this;\n errorContext(function () {\n _this._throwIfClosed();\n if (!_this.isStopped) {\n _this.hasError = _this.isStopped = true;\n _this.thrownError = err;\n var observers = _this.observers;\n while (observers.length) {\n observers.shift().error(err);\n }\n }\n });\n };\n Subject.prototype.complete = function () {\n var _this = this;\n errorContext(function () {\n _this._throwIfClosed();\n if (!_this.isStopped) {\n _this.isStopped = true;\n var observers = _this.observers;\n while (observers.length) {\n observers.shift().complete();\n }\n }\n });\n };\n Subject.prototype.unsubscribe = function () {\n this.isStopped = this.closed = true;\n this.observers = this.currentObservers = null;\n };\n Object.defineProperty(Subject.prototype, \"observed\", {\n get: function () {\n var _a;\n return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0;\n },\n enumerable: false,\n configurable: true\n });\n Subject.prototype._trySubscribe = function (subscriber) {\n this._throwIfClosed();\n return _super.prototype._trySubscribe.call(this, subscriber);\n };\n Subject.prototype._subscribe = function (subscriber) {\n this._throwIfClosed();\n this._checkFinalizedStatuses(subscriber);\n return this._innerSubscribe(subscriber);\n };\n Subject.prototype._innerSubscribe = function (subscriber) {\n var _this = this;\n var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers;\n if (hasError || isStopped) {\n return EMPTY_SUBSCRIPTION;\n }\n this.currentObservers = null;\n observers.push(subscriber);\n return new Subscription(function () {\n _this.currentObservers = null;\n arrRemove(observers, subscriber);\n });\n };\n Subject.prototype._checkFinalizedStatuses = function (subscriber) {\n var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped;\n if (hasError) {\n subscriber.error(thrownError);\n }\n else if (isStopped) {\n subscriber.complete();\n }\n };\n Subject.prototype.asObservable = function () {\n var observable = new Observable();\n observable.source = this;\n return observable;\n };\n Subject.create = function (destination, source) {\n return new AnonymousSubject(destination, source);\n };\n return Subject;\n}(Observable));\nexport { Subject };\nvar AnonymousSubject = (function (_super) {\n __extends(AnonymousSubject, _super);\n function AnonymousSubject(destination, source) {\n var _this = _super.call(this) || this;\n _this.destination = destination;\n _this.source = source;\n return _this;\n }\n AnonymousSubject.prototype.next = function (value) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value);\n };\n AnonymousSubject.prototype.error = function (err) {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err);\n };\n AnonymousSubject.prototype.complete = function () {\n var _a, _b;\n (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a);\n };\n AnonymousSubject.prototype._subscribe = function (subscriber) {\n var _a, _b;\n return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION;\n };\n return AnonymousSubject;\n}(Subject));\nexport { AnonymousSubject };\n//# sourceMappingURL=Subject.js.map","import { __extends } from \"tslib\";\nimport { Subject } from './Subject';\nvar BehaviorSubject = (function (_super) {\n __extends(BehaviorSubject, _super);\n function BehaviorSubject(_value) {\n var _this = _super.call(this) || this;\n _this._value = _value;\n return _this;\n }\n Object.defineProperty(BehaviorSubject.prototype, \"value\", {\n get: function () {\n return this.getValue();\n },\n enumerable: false,\n configurable: true\n });\n BehaviorSubject.prototype._subscribe = function (subscriber) {\n var subscription = _super.prototype._subscribe.call(this, subscriber);\n !subscription.closed && subscriber.next(this._value);\n return subscription;\n };\n BehaviorSubject.prototype.getValue = function () {\n var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, _value = _a._value;\n if (hasError) {\n throw thrownError;\n }\n this._throwIfClosed();\n return _value;\n };\n BehaviorSubject.prototype.next = function (value) {\n _super.prototype.next.call(this, (this._value = value));\n };\n return BehaviorSubject;\n}(Subject));\nexport { BehaviorSubject };\n//# sourceMappingURL=BehaviorSubject.js.map","export var dateTimestampProvider = {\n now: function () {\n return (dateTimestampProvider.delegate || Date).now();\n },\n delegate: undefined,\n};\n//# sourceMappingURL=dateTimestampProvider.js.map","import { __extends } from \"tslib\";\nimport { Subject } from './Subject';\nimport { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nvar ReplaySubject = (function (_super) {\n __extends(ReplaySubject, _super);\n function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {\n if (_bufferSize === void 0) { _bufferSize = Infinity; }\n if (_windowTime === void 0) { _windowTime = Infinity; }\n if (_timestampProvider === void 0) { _timestampProvider = dateTimestampProvider; }\n var _this = _super.call(this) || this;\n _this._bufferSize = _bufferSize;\n _this._windowTime = _windowTime;\n _this._timestampProvider = _timestampProvider;\n _this._buffer = [];\n _this._infiniteTimeWindow = true;\n _this._infiniteTimeWindow = _windowTime === Infinity;\n _this._bufferSize = Math.max(1, _bufferSize);\n _this._windowTime = Math.max(1, _windowTime);\n return _this;\n }\n ReplaySubject.prototype.next = function (value) {\n var _a = this, isStopped = _a.isStopped, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow, _timestampProvider = _a._timestampProvider, _windowTime = _a._windowTime;\n if (!isStopped) {\n _buffer.push(value);\n !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime);\n }\n this._trimBuffer();\n _super.prototype.next.call(this, value);\n };\n ReplaySubject.prototype._subscribe = function (subscriber) {\n this._throwIfClosed();\n this._trimBuffer();\n var subscription = this._innerSubscribe(subscriber);\n var _a = this, _infiniteTimeWindow = _a._infiniteTimeWindow, _buffer = _a._buffer;\n var copy = _buffer.slice();\n for (var i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) {\n subscriber.next(copy[i]);\n }\n this._checkFinalizedStatuses(subscriber);\n return subscription;\n };\n ReplaySubject.prototype._trimBuffer = function () {\n var _a = this, _bufferSize = _a._bufferSize, _timestampProvider = _a._timestampProvider, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow;\n var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize;\n _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize);\n if (!_infiniteTimeWindow) {\n var now = _timestampProvider.now();\n var last = 0;\n for (var i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) {\n last = i;\n }\n last && _buffer.splice(0, last + 1);\n }\n };\n return ReplaySubject;\n}(Subject));\nexport { ReplaySubject };\n//# sourceMappingURL=ReplaySubject.js.map","import { __extends } from \"tslib\";\nimport { Subject } from './Subject';\nvar AsyncSubject = (function (_super) {\n __extends(AsyncSubject, _super);\n function AsyncSubject() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n _this._value = null;\n _this._hasValue = false;\n _this._isComplete = false;\n return _this;\n }\n AsyncSubject.prototype._checkFinalizedStatuses = function (subscriber) {\n var _a = this, hasError = _a.hasError, _hasValue = _a._hasValue, _value = _a._value, thrownError = _a.thrownError, isStopped = _a.isStopped, _isComplete = _a._isComplete;\n if (hasError) {\n subscriber.error(thrownError);\n }\n else if (isStopped || _isComplete) {\n _hasValue && subscriber.next(_value);\n subscriber.complete();\n }\n };\n AsyncSubject.prototype.next = function (value) {\n if (!this.isStopped) {\n this._value = value;\n this._hasValue = true;\n }\n };\n AsyncSubject.prototype.complete = function () {\n var _a = this, _hasValue = _a._hasValue, _value = _a._value, _isComplete = _a._isComplete;\n if (!_isComplete) {\n this._isComplete = true;\n _hasValue && _super.prototype.next.call(this, _value);\n _super.prototype.complete.call(this);\n }\n };\n return AsyncSubject;\n}(Subject));\nexport { AsyncSubject };\n//# sourceMappingURL=AsyncSubject.js.map","import { __extends } from \"tslib\";\nimport { Subscription } from '../Subscription';\nvar Action = (function (_super) {\n __extends(Action, _super);\n function Action(scheduler, work) {\n return _super.call(this) || this;\n }\n Action.prototype.schedule = function (state, delay) {\n if (delay === void 0) { delay = 0; }\n return this;\n };\n return Action;\n}(Subscription));\nexport { Action };\n//# sourceMappingURL=Action.js.map","import { __read, __spreadArray } from \"tslib\";\nexport var intervalProvider = {\n setInterval: function (handler, timeout) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n var delegate = intervalProvider.delegate;\n if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) {\n return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args)));\n }\n return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args)));\n },\n clearInterval: function (handle) {\n var delegate = intervalProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle);\n },\n delegate: undefined,\n};\n//# sourceMappingURL=intervalProvider.js.map","import { __extends } from \"tslib\";\nimport { Action } from './Action';\nimport { intervalProvider } from './intervalProvider';\nimport { arrRemove } from '../util/arrRemove';\nvar AsyncAction = (function (_super) {\n __extends(AsyncAction, _super);\n function AsyncAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n _this.pending = false;\n return _this;\n }\n AsyncAction.prototype.schedule = function (state, delay) {\n var _a;\n if (delay === void 0) { delay = 0; }\n if (this.closed) {\n return this;\n }\n this.state = state;\n var id = this.id;\n var scheduler = this.scheduler;\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, delay);\n }\n this.pending = true;\n this.delay = delay;\n this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay);\n return this;\n };\n AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) {\n if (delay === void 0) { delay = 0; }\n return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay);\n };\n AsyncAction.prototype.recycleAsyncId = function (_scheduler, id, delay) {\n if (delay === void 0) { delay = 0; }\n if (delay != null && this.delay === delay && this.pending === false) {\n return id;\n }\n if (id != null) {\n intervalProvider.clearInterval(id);\n }\n return undefined;\n };\n AsyncAction.prototype.execute = function (state, delay) {\n if (this.closed) {\n return new Error('executing a cancelled action');\n }\n this.pending = false;\n var error = this._execute(state, delay);\n if (error) {\n return error;\n }\n else if (this.pending === false && this.id != null) {\n this.id = this.recycleAsyncId(this.scheduler, this.id, null);\n }\n };\n AsyncAction.prototype._execute = function (state, _delay) {\n var errored = false;\n var errorValue;\n try {\n this.work(state);\n }\n catch (e) {\n errored = true;\n errorValue = e ? e : new Error('Scheduled action threw falsy error');\n }\n if (errored) {\n this.unsubscribe();\n return errorValue;\n }\n };\n AsyncAction.prototype.unsubscribe = function () {\n if (!this.closed) {\n var _a = this, id = _a.id, scheduler = _a.scheduler;\n var actions = scheduler.actions;\n this.work = this.state = this.scheduler = null;\n this.pending = false;\n arrRemove(actions, this);\n if (id != null) {\n this.id = this.recycleAsyncId(scheduler, id, null);\n }\n this.delay = null;\n _super.prototype.unsubscribe.call(this);\n }\n };\n return AsyncAction;\n}(Action));\nexport { AsyncAction };\n//# sourceMappingURL=AsyncAction.js.map","var nextHandle = 1;\nvar resolved;\nvar activeHandles = {};\nfunction findAndClearHandle(handle) {\n if (handle in activeHandles) {\n delete activeHandles[handle];\n return true;\n }\n return false;\n}\nexport var Immediate = {\n setImmediate: function (cb) {\n var handle = nextHandle++;\n activeHandles[handle] = true;\n if (!resolved) {\n resolved = Promise.resolve();\n }\n resolved.then(function () { return findAndClearHandle(handle) && cb(); });\n return handle;\n },\n clearImmediate: function (handle) {\n findAndClearHandle(handle);\n },\n};\nexport var TestTools = {\n pending: function () {\n return Object.keys(activeHandles).length;\n }\n};\n//# sourceMappingURL=Immediate.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { Immediate } from '../util/Immediate';\nvar setImmediate = Immediate.setImmediate, clearImmediate = Immediate.clearImmediate;\nexport var immediateProvider = {\n setImmediate: function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var delegate = immediateProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate).apply(void 0, __spreadArray([], __read(args)));\n },\n clearImmediate: function (handle) {\n var delegate = immediateProvider.delegate;\n return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle);\n },\n delegate: undefined,\n};\n//# sourceMappingURL=immediateProvider.js.map","import { __extends } from \"tslib\";\nimport { AsyncAction } from './AsyncAction';\nimport { immediateProvider } from './immediateProvider';\nvar AsapAction = (function (_super) {\n __extends(AsapAction, _super);\n function AsapAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n return _this;\n }\n AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) { delay = 0; }\n if (delay !== null && delay > 0) {\n return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n }\n scheduler.actions.push(this);\n return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined)));\n };\n AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n var _a;\n if (delay === void 0) { delay = 0; }\n if (delay != null ? delay > 0 : this.delay > 0) {\n return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);\n }\n var actions = scheduler.actions;\n if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {\n immediateProvider.clearImmediate(id);\n if (scheduler._scheduled === id) {\n scheduler._scheduled = undefined;\n }\n }\n return undefined;\n };\n return AsapAction;\n}(AsyncAction));\nexport { AsapAction };\n//# sourceMappingURL=AsapAction.js.map","import { dateTimestampProvider } from './scheduler/dateTimestampProvider';\nvar Scheduler = (function () {\n function Scheduler(schedulerActionCtor, now) {\n if (now === void 0) { now = Scheduler.now; }\n this.schedulerActionCtor = schedulerActionCtor;\n this.now = now;\n }\n Scheduler.prototype.schedule = function (work, delay, state) {\n if (delay === void 0) { delay = 0; }\n return new this.schedulerActionCtor(this, work).schedule(state, delay);\n };\n Scheduler.now = dateTimestampProvider.now;\n return Scheduler;\n}());\nexport { Scheduler };\n//# sourceMappingURL=Scheduler.js.map","import { __extends } from \"tslib\";\nimport { Scheduler } from '../Scheduler';\nvar AsyncScheduler = (function (_super) {\n __extends(AsyncScheduler, _super);\n function AsyncScheduler(SchedulerAction, now) {\n if (now === void 0) { now = Scheduler.now; }\n var _this = _super.call(this, SchedulerAction, now) || this;\n _this.actions = [];\n _this._active = false;\n return _this;\n }\n AsyncScheduler.prototype.flush = function (action) {\n var actions = this.actions;\n if (this._active) {\n actions.push(action);\n return;\n }\n var error;\n this._active = true;\n do {\n if ((error = action.execute(action.state, action.delay))) {\n break;\n }\n } while ((action = actions.shift()));\n this._active = false;\n if (error) {\n while ((action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AsyncScheduler;\n}(Scheduler));\nexport { AsyncScheduler };\n//# sourceMappingURL=AsyncScheduler.js.map","import { __extends } from \"tslib\";\nimport { AsyncScheduler } from './AsyncScheduler';\nvar AsapScheduler = (function (_super) {\n __extends(AsapScheduler, _super);\n function AsapScheduler() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n AsapScheduler.prototype.flush = function (action) {\n this._active = true;\n var flushId = this._scheduled;\n this._scheduled = undefined;\n var actions = this.actions;\n var error;\n action = action || actions.shift();\n do {\n if ((error = action.execute(action.state, action.delay))) {\n break;\n }\n } while ((action = actions[0]) && action.id === flushId && actions.shift());\n this._active = false;\n if (error) {\n while ((action = actions[0]) && action.id === flushId && actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AsapScheduler;\n}(AsyncScheduler));\nexport { AsapScheduler };\n//# sourceMappingURL=AsapScheduler.js.map","import { AsapAction } from './AsapAction';\nimport { AsapScheduler } from './AsapScheduler';\nexport var asapScheduler = new AsapScheduler(AsapAction);\nexport var asap = asapScheduler;\n//# sourceMappingURL=asap.js.map","import { AsyncAction } from './AsyncAction';\nimport { AsyncScheduler } from './AsyncScheduler';\nexport var asyncScheduler = new AsyncScheduler(AsyncAction);\nexport var async = asyncScheduler;\n//# sourceMappingURL=async.js.map","import { __extends } from \"tslib\";\nimport { AsyncAction } from './AsyncAction';\nvar QueueAction = (function (_super) {\n __extends(QueueAction, _super);\n function QueueAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n return _this;\n }\n QueueAction.prototype.schedule = function (state, delay) {\n if (delay === void 0) { delay = 0; }\n if (delay > 0) {\n return _super.prototype.schedule.call(this, state, delay);\n }\n this.delay = delay;\n this.state = state;\n this.scheduler.flush(this);\n return this;\n };\n QueueAction.prototype.execute = function (state, delay) {\n return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay);\n };\n QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) { delay = 0; }\n if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) {\n return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n }\n scheduler.flush(this);\n return 0;\n };\n return QueueAction;\n}(AsyncAction));\nexport { QueueAction };\n//# sourceMappingURL=QueueAction.js.map","import { __extends } from \"tslib\";\nimport { AsyncScheduler } from './AsyncScheduler';\nvar QueueScheduler = (function (_super) {\n __extends(QueueScheduler, _super);\n function QueueScheduler() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n return QueueScheduler;\n}(AsyncScheduler));\nexport { QueueScheduler };\n//# sourceMappingURL=QueueScheduler.js.map","import { QueueAction } from './QueueAction';\nimport { QueueScheduler } from './QueueScheduler';\nexport var queueScheduler = new QueueScheduler(QueueAction);\nexport var queue = queueScheduler;\n//# sourceMappingURL=queue.js.map","import { __extends } from \"tslib\";\nimport { AsyncAction } from './AsyncAction';\nimport { animationFrameProvider } from './animationFrameProvider';\nvar AnimationFrameAction = (function (_super) {\n __extends(AnimationFrameAction, _super);\n function AnimationFrameAction(scheduler, work) {\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n return _this;\n }\n AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) { delay = 0; }\n if (delay !== null && delay > 0) {\n return _super.prototype.requestAsyncId.call(this, scheduler, id, delay);\n }\n scheduler.actions.push(this);\n return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(function () { return scheduler.flush(undefined); }));\n };\n AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n var _a;\n if (delay === void 0) { delay = 0; }\n if (delay != null ? delay > 0 : this.delay > 0) {\n return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay);\n }\n var actions = scheduler.actions;\n if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) {\n animationFrameProvider.cancelAnimationFrame(id);\n scheduler._scheduled = undefined;\n }\n return undefined;\n };\n return AnimationFrameAction;\n}(AsyncAction));\nexport { AnimationFrameAction };\n//# sourceMappingURL=AnimationFrameAction.js.map","import { __extends } from \"tslib\";\nimport { AsyncScheduler } from './AsyncScheduler';\nvar AnimationFrameScheduler = (function (_super) {\n __extends(AnimationFrameScheduler, _super);\n function AnimationFrameScheduler() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n AnimationFrameScheduler.prototype.flush = function (action) {\n this._active = true;\n var flushId = this._scheduled;\n this._scheduled = undefined;\n var actions = this.actions;\n var error;\n action = action || actions.shift();\n do {\n if ((error = action.execute(action.state, action.delay))) {\n break;\n }\n } while ((action = actions[0]) && action.id === flushId && actions.shift());\n this._active = false;\n if (error) {\n while ((action = actions[0]) && action.id === flushId && actions.shift()) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n return AnimationFrameScheduler;\n}(AsyncScheduler));\nexport { AnimationFrameScheduler };\n//# sourceMappingURL=AnimationFrameScheduler.js.map","import { AnimationFrameAction } from './AnimationFrameAction';\nimport { AnimationFrameScheduler } from './AnimationFrameScheduler';\nexport var animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction);\nexport var animationFrame = animationFrameScheduler;\n//# sourceMappingURL=animationFrame.js.map","import { __extends } from \"tslib\";\nimport { AsyncAction } from './AsyncAction';\nimport { Subscription } from '../Subscription';\nimport { AsyncScheduler } from './AsyncScheduler';\nvar VirtualTimeScheduler = (function (_super) {\n __extends(VirtualTimeScheduler, _super);\n function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {\n if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }\n if (maxFrames === void 0) { maxFrames = Infinity; }\n var _this = _super.call(this, schedulerActionCtor, function () { return _this.frame; }) || this;\n _this.maxFrames = maxFrames;\n _this.frame = 0;\n _this.index = -1;\n return _this;\n }\n VirtualTimeScheduler.prototype.flush = function () {\n var _a = this, actions = _a.actions, maxFrames = _a.maxFrames;\n var error;\n var action;\n while ((action = actions[0]) && action.delay <= maxFrames) {\n actions.shift();\n this.frame = action.delay;\n if ((error = action.execute(action.state, action.delay))) {\n break;\n }\n }\n if (error) {\n while ((action = actions.shift())) {\n action.unsubscribe();\n }\n throw error;\n }\n };\n VirtualTimeScheduler.frameTimeFactor = 10;\n return VirtualTimeScheduler;\n}(AsyncScheduler));\nexport { VirtualTimeScheduler };\nvar VirtualAction = (function (_super) {\n __extends(VirtualAction, _super);\n function VirtualAction(scheduler, work, index) {\n if (index === void 0) { index = (scheduler.index += 1); }\n var _this = _super.call(this, scheduler, work) || this;\n _this.scheduler = scheduler;\n _this.work = work;\n _this.index = index;\n _this.active = true;\n _this.index = scheduler.index = index;\n return _this;\n }\n VirtualAction.prototype.schedule = function (state, delay) {\n if (delay === void 0) { delay = 0; }\n if (Number.isFinite(delay)) {\n if (!this.id) {\n return _super.prototype.schedule.call(this, state, delay);\n }\n this.active = false;\n var action = new VirtualAction(this.scheduler, this.work);\n this.add(action);\n return action.schedule(state, delay);\n }\n else {\n return Subscription.EMPTY;\n }\n };\n VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) { delay = 0; }\n this.delay = scheduler.frame + delay;\n var actions = scheduler.actions;\n actions.push(this);\n actions.sort(VirtualAction.sortActions);\n return 1;\n };\n VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) {\n if (delay === void 0) { delay = 0; }\n return undefined;\n };\n VirtualAction.prototype._execute = function (state, delay) {\n if (this.active === true) {\n return _super.prototype._execute.call(this, state, delay);\n }\n };\n VirtualAction.sortActions = function (a, b) {\n if (a.delay === b.delay) {\n if (a.index === b.index) {\n return 0;\n }\n else if (a.index > b.index) {\n return 1;\n }\n else {\n return -1;\n }\n }\n else if (a.delay > b.delay) {\n return 1;\n }\n else {\n return -1;\n }\n };\n return VirtualAction;\n}(AsyncAction));\nexport { VirtualAction };\n//# sourceMappingURL=VirtualTimeScheduler.js.map","import { Observable } from '../Observable';\nexport var EMPTY = new Observable(function (subscriber) { return subscriber.complete(); });\nexport function empty(scheduler) {\n return scheduler ? emptyScheduled(scheduler) : EMPTY;\n}\nfunction emptyScheduled(scheduler) {\n return new Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); });\n}\n//# sourceMappingURL=empty.js.map","import { isFunction } from './isFunction';\nexport function isScheduler(value) {\n return value && isFunction(value.schedule);\n}\n//# sourceMappingURL=isScheduler.js.map","import { isFunction } from './isFunction';\nimport { isScheduler } from './isScheduler';\nfunction last(arr) {\n return arr[arr.length - 1];\n}\nexport function popResultSelector(args) {\n return isFunction(last(args)) ? args.pop() : undefined;\n}\nexport function popScheduler(args) {\n return isScheduler(last(args)) ? args.pop() : undefined;\n}\nexport function popNumber(args, defaultValue) {\n return typeof last(args) === 'number' ? args.pop() : defaultValue;\n}\n//# sourceMappingURL=args.js.map","export var isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; });\n//# sourceMappingURL=isArrayLike.js.map","import { isFunction } from \"./isFunction\";\nexport function isPromise(value) {\n return isFunction(value === null || value === void 0 ? void 0 : value.then);\n}\n//# sourceMappingURL=isPromise.js.map","import { observable as Symbol_observable } from '../symbol/observable';\nimport { isFunction } from './isFunction';\nexport function isInteropObservable(input) {\n return isFunction(input[Symbol_observable]);\n}\n//# sourceMappingURL=isInteropObservable.js.map","import { isFunction } from './isFunction';\nexport function isAsyncIterable(obj) {\n return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]);\n}\n//# sourceMappingURL=isAsyncIterable.js.map","export function createInvalidObservableTypeError(input) {\n return new TypeError(\"You provided \" + (input !== null && typeof input === 'object' ? 'an invalid object' : \"'\" + input + \"'\") + \" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.\");\n}\n//# sourceMappingURL=throwUnobservableError.js.map","export function getSymbolIterator() {\n if (typeof Symbol !== 'function' || !Symbol.iterator) {\n return '@@iterator';\n }\n return Symbol.iterator;\n}\nexport var iterator = getSymbolIterator();\n//# sourceMappingURL=iterator.js.map","import { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from './isFunction';\nexport function isIterable(input) {\n return isFunction(input === null || input === void 0 ? void 0 : input[Symbol_iterator]);\n}\n//# sourceMappingURL=isIterable.js.map","import { __asyncGenerator, __await, __generator } from \"tslib\";\nimport { isFunction } from './isFunction';\nexport function readableStreamLikeToAsyncGenerator(readableStream) {\n return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {\n var reader, _a, value, done;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n reader = readableStream.getReader();\n _b.label = 1;\n case 1:\n _b.trys.push([1, , 9, 10]);\n _b.label = 2;\n case 2:\n if (!true) return [3, 8];\n return [4, __await(reader.read())];\n case 3:\n _a = _b.sent(), value = _a.value, done = _a.done;\n if (!done) return [3, 5];\n return [4, __await(void 0)];\n case 4: return [2, _b.sent()];\n case 5: return [4, __await(value)];\n case 6: return [4, _b.sent()];\n case 7:\n _b.sent();\n return [3, 2];\n case 8: return [3, 10];\n case 9:\n reader.releaseLock();\n return [7];\n case 10: return [2];\n }\n });\n });\n}\nexport function isReadableStreamLike(obj) {\n return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader);\n}\n//# sourceMappingURL=isReadableStreamLike.js.map","import { __asyncValues, __awaiter, __generator, __values } from \"tslib\";\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isPromise } from '../util/isPromise';\nimport { Observable } from '../Observable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isIterable } from '../util/isIterable';\nimport { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nimport { isFunction } from '../util/isFunction';\nimport { reportUnhandledError } from '../util/reportUnhandledError';\nimport { observable as Symbol_observable } from '../symbol/observable';\nexport function innerFrom(input) {\n if (input instanceof Observable) {\n return input;\n }\n if (input != null) {\n if (isInteropObservable(input)) {\n return fromInteropObservable(input);\n }\n if (isArrayLike(input)) {\n return fromArrayLike(input);\n }\n if (isPromise(input)) {\n return fromPromise(input);\n }\n if (isAsyncIterable(input)) {\n return fromAsyncIterable(input);\n }\n if (isIterable(input)) {\n return fromIterable(input);\n }\n if (isReadableStreamLike(input)) {\n return fromReadableStreamLike(input);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\nexport function fromInteropObservable(obj) {\n return new Observable(function (subscriber) {\n var obs = obj[Symbol_observable]();\n if (isFunction(obs.subscribe)) {\n return obs.subscribe(subscriber);\n }\n throw new TypeError('Provided object does not correctly implement Symbol.observable');\n });\n}\nexport function fromArrayLike(array) {\n return new Observable(function (subscriber) {\n for (var i = 0; i < array.length && !subscriber.closed; i++) {\n subscriber.next(array[i]);\n }\n subscriber.complete();\n });\n}\nexport function fromPromise(promise) {\n return new Observable(function (subscriber) {\n promise\n .then(function (value) {\n if (!subscriber.closed) {\n subscriber.next(value);\n subscriber.complete();\n }\n }, function (err) { return subscriber.error(err); })\n .then(null, reportUnhandledError);\n });\n}\nexport function fromIterable(iterable) {\n return new Observable(function (subscriber) {\n var e_1, _a;\n try {\n for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) {\n var value = iterable_1_1.value;\n subscriber.next(value);\n if (subscriber.closed) {\n return;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return)) _a.call(iterable_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n subscriber.complete();\n });\n}\nexport function fromAsyncIterable(asyncIterable) {\n return new Observable(function (subscriber) {\n process(asyncIterable, subscriber).catch(function (err) { return subscriber.error(err); });\n });\n}\nexport function fromReadableStreamLike(readableStream) {\n return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream));\n}\nfunction process(asyncIterable, subscriber) {\n var asyncIterable_1, asyncIterable_1_1;\n var e_2, _a;\n return __awaiter(this, void 0, void 0, function () {\n var value, e_2_1;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _b.trys.push([0, 5, 6, 11]);\n asyncIterable_1 = __asyncValues(asyncIterable);\n _b.label = 1;\n case 1: return [4, asyncIterable_1.next()];\n case 2:\n if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done)) return [3, 4];\n value = asyncIterable_1_1.value;\n subscriber.next(value);\n if (subscriber.closed) {\n return [2];\n }\n _b.label = 3;\n case 3: return [3, 1];\n case 4: return [3, 11];\n case 5:\n e_2_1 = _b.sent();\n e_2 = { error: e_2_1 };\n return [3, 11];\n case 6:\n _b.trys.push([6, , 9, 10]);\n if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return))) return [3, 8];\n return [4, _a.call(asyncIterable_1)];\n case 7:\n _b.sent();\n _b.label = 8;\n case 8: return [3, 10];\n case 9:\n if (e_2) throw e_2.error;\n return [7];\n case 10: return [7];\n case 11:\n subscriber.complete();\n return [2];\n }\n });\n });\n}\n//# sourceMappingURL=innerFrom.js.map","export function executeSchedule(parentSubscription, scheduler, work, delay, repeat) {\n if (delay === void 0) { delay = 0; }\n if (repeat === void 0) { repeat = false; }\n var scheduleSubscription = scheduler.schedule(function () {\n work();\n if (repeat) {\n parentSubscription.add(this.schedule(null, delay));\n }\n else {\n this.unsubscribe();\n }\n }, delay);\n parentSubscription.add(scheduleSubscription);\n if (!repeat) {\n return scheduleSubscription;\n }\n}\n//# sourceMappingURL=executeSchedule.js.map","import { executeSchedule } from '../util/executeSchedule';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function observeOn(scheduler, delay) {\n if (delay === void 0) { delay = 0; }\n return operate(function (source, subscriber) {\n source.subscribe(createOperatorSubscriber(subscriber, function (value) { return executeSchedule(subscriber, scheduler, function () { return subscriber.next(value); }, delay); }, function () { return executeSchedule(subscriber, scheduler, function () { return subscriber.complete(); }, delay); }, function (err) { return executeSchedule(subscriber, scheduler, function () { return subscriber.error(err); }, delay); }));\n });\n}\n//# sourceMappingURL=observeOn.js.map","import { operate } from '../util/lift';\nexport function subscribeOn(scheduler, delay) {\n if (delay === void 0) { delay = 0; }\n return operate(function (source, subscriber) {\n subscriber.add(scheduler.schedule(function () { return source.subscribe(subscriber); }, delay));\n });\n}\n//# sourceMappingURL=subscribeOn.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function scheduleObservable(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n//# sourceMappingURL=scheduleObservable.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { observeOn } from '../operators/observeOn';\nimport { subscribeOn } from '../operators/subscribeOn';\nexport function schedulePromise(input, scheduler) {\n return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler));\n}\n//# sourceMappingURL=schedulePromise.js.map","import { Observable } from '../Observable';\nexport function scheduleArray(input, scheduler) {\n return new Observable(function (subscriber) {\n var i = 0;\n return scheduler.schedule(function () {\n if (i === input.length) {\n subscriber.complete();\n }\n else {\n subscriber.next(input[i++]);\n if (!subscriber.closed) {\n this.schedule();\n }\n }\n });\n });\n}\n//# sourceMappingURL=scheduleArray.js.map","import { Observable } from '../Observable';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { isFunction } from '../util/isFunction';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleIterable(input, scheduler) {\n return new Observable(function (subscriber) {\n var iterator;\n executeSchedule(subscriber, scheduler, function () {\n iterator = input[Symbol_iterator]();\n executeSchedule(subscriber, scheduler, function () {\n var _a;\n var value;\n var done;\n try {\n (_a = iterator.next(), value = _a.value, done = _a.done);\n }\n catch (err) {\n subscriber.error(err);\n return;\n }\n if (done) {\n subscriber.complete();\n }\n else {\n subscriber.next(value);\n }\n }, 0, true);\n });\n return function () { return isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return(); };\n });\n}\n//# sourceMappingURL=scheduleIterable.js.map","import { Observable } from '../Observable';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function scheduleAsyncIterable(input, scheduler) {\n if (!input) {\n throw new Error('Iterable cannot be null');\n }\n return new Observable(function (subscriber) {\n executeSchedule(subscriber, scheduler, function () {\n var iterator = input[Symbol.asyncIterator]();\n executeSchedule(subscriber, scheduler, function () {\n iterator.next().then(function (result) {\n if (result.done) {\n subscriber.complete();\n }\n else {\n subscriber.next(result.value);\n }\n });\n }, 0, true);\n });\n });\n}\n//# sourceMappingURL=scheduleAsyncIterable.js.map","import { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike';\nexport function scheduleReadableStreamLike(input, scheduler) {\n return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler);\n}\n//# sourceMappingURL=scheduleReadableStreamLike.js.map","import { scheduleObservable } from './scheduleObservable';\nimport { schedulePromise } from './schedulePromise';\nimport { scheduleArray } from './scheduleArray';\nimport { scheduleIterable } from './scheduleIterable';\nimport { scheduleAsyncIterable } from './scheduleAsyncIterable';\nimport { isInteropObservable } from '../util/isInteropObservable';\nimport { isPromise } from '../util/isPromise';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isIterable } from '../util/isIterable';\nimport { isAsyncIterable } from '../util/isAsyncIterable';\nimport { createInvalidObservableTypeError } from '../util/throwUnobservableError';\nimport { isReadableStreamLike } from '../util/isReadableStreamLike';\nimport { scheduleReadableStreamLike } from './scheduleReadableStreamLike';\nexport function scheduled(input, scheduler) {\n if (input != null) {\n if (isInteropObservable(input)) {\n return scheduleObservable(input, scheduler);\n }\n if (isArrayLike(input)) {\n return scheduleArray(input, scheduler);\n }\n if (isPromise(input)) {\n return schedulePromise(input, scheduler);\n }\n if (isAsyncIterable(input)) {\n return scheduleAsyncIterable(input, scheduler);\n }\n if (isIterable(input)) {\n return scheduleIterable(input, scheduler);\n }\n if (isReadableStreamLike(input)) {\n return scheduleReadableStreamLike(input, scheduler);\n }\n }\n throw createInvalidObservableTypeError(input);\n}\n//# sourceMappingURL=scheduled.js.map","import { scheduled } from '../scheduled/scheduled';\nimport { innerFrom } from './innerFrom';\nexport function from(input, scheduler) {\n return scheduler ? scheduled(input, scheduler) : innerFrom(input);\n}\n//# sourceMappingURL=from.js.map","import { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function of() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var scheduler = popScheduler(args);\n return from(args, scheduler);\n}\n//# sourceMappingURL=of.js.map","import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nexport function throwError(errorOrErrorFactory, scheduler) {\n var errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function () { return errorOrErrorFactory; };\n var init = function (subscriber) { return subscriber.error(errorFactory()); };\n return new Observable(scheduler ? function (subscriber) { return scheduler.schedule(init, 0, subscriber); } : init);\n}\n//# sourceMappingURL=throwError.js.map","import { EMPTY } from './observable/empty';\nimport { of } from './observable/of';\nimport { throwError } from './observable/throwError';\nimport { isFunction } from './util/isFunction';\nexport var NotificationKind;\n(function (NotificationKind) {\n NotificationKind[\"NEXT\"] = \"N\";\n NotificationKind[\"ERROR\"] = \"E\";\n NotificationKind[\"COMPLETE\"] = \"C\";\n})(NotificationKind || (NotificationKind = {}));\nvar Notification = (function () {\n function Notification(kind, value, error) {\n this.kind = kind;\n this.value = value;\n this.error = error;\n this.hasValue = kind === 'N';\n }\n Notification.prototype.observe = function (observer) {\n return observeNotification(this, observer);\n };\n Notification.prototype.do = function (nextHandler, errorHandler, completeHandler) {\n var _a = this, kind = _a.kind, value = _a.value, error = _a.error;\n return kind === 'N' ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value) : kind === 'E' ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler();\n };\n Notification.prototype.accept = function (nextOrObserver, error, complete) {\n var _a;\n return isFunction((_a = nextOrObserver) === null || _a === void 0 ? void 0 : _a.next)\n ? this.observe(nextOrObserver)\n : this.do(nextOrObserver, error, complete);\n };\n Notification.prototype.toObservable = function () {\n var _a = this, kind = _a.kind, value = _a.value, error = _a.error;\n var result = kind === 'N'\n ?\n of(value)\n :\n kind === 'E'\n ?\n throwError(function () { return error; })\n :\n kind === 'C'\n ?\n EMPTY\n :\n 0;\n if (!result) {\n throw new TypeError(\"Unexpected notification kind \" + kind);\n }\n return result;\n };\n Notification.createNext = function (value) {\n return new Notification('N', value);\n };\n Notification.createError = function (err) {\n return new Notification('E', undefined, err);\n };\n Notification.createComplete = function () {\n return Notification.completeNotification;\n };\n Notification.completeNotification = new Notification('C');\n return Notification;\n}());\nexport { Notification };\nexport function observeNotification(notification, observer) {\n var _a, _b, _c;\n var _d = notification, kind = _d.kind, value = _d.value, error = _d.error;\n if (typeof kind !== 'string') {\n throw new TypeError('Invalid notification, missing \"kind\"');\n }\n kind === 'N' ? (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, value) : kind === 'E' ? (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, error) : (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer);\n}\n//# sourceMappingURL=Notification.js.map","import { Observable } from '../Observable';\nimport { isFunction } from './isFunction';\nexport function isObservable(obj) {\n return !!obj && (obj instanceof Observable || (isFunction(obj.lift) && isFunction(obj.subscribe)));\n}\n//# sourceMappingURL=isObservable.js.map","import { createErrorClass } from './createErrorClass';\nexport var EmptyError = createErrorClass(function (_super) { return function EmptyErrorImpl() {\n _super(this);\n this.name = 'EmptyError';\n this.message = 'no elements in sequence';\n}; });\n//# sourceMappingURL=EmptyError.js.map","import { EmptyError } from './util/EmptyError';\nexport function lastValueFrom(source, config) {\n var hasConfig = typeof config === 'object';\n return new Promise(function (resolve, reject) {\n var _hasValue = false;\n var _value;\n source.subscribe({\n next: function (value) {\n _value = value;\n _hasValue = true;\n },\n error: reject,\n complete: function () {\n if (_hasValue) {\n resolve(_value);\n }\n else if (hasConfig) {\n resolve(config.defaultValue);\n }\n else {\n reject(new EmptyError());\n }\n },\n });\n });\n}\n//# sourceMappingURL=lastValueFrom.js.map","import { EmptyError } from './util/EmptyError';\nimport { SafeSubscriber } from './Subscriber';\nexport function firstValueFrom(source, config) {\n var hasConfig = typeof config === 'object';\n return new Promise(function (resolve, reject) {\n var subscriber = new SafeSubscriber({\n next: function (value) {\n resolve(value);\n subscriber.unsubscribe();\n },\n error: reject,\n complete: function () {\n if (hasConfig) {\n resolve(config.defaultValue);\n }\n else {\n reject(new EmptyError());\n }\n },\n });\n source.subscribe(subscriber);\n });\n}\n//# sourceMappingURL=firstValueFrom.js.map","import { createErrorClass } from './createErrorClass';\nexport var ArgumentOutOfRangeError = createErrorClass(function (_super) {\n return function ArgumentOutOfRangeErrorImpl() {\n _super(this);\n this.name = 'ArgumentOutOfRangeError';\n this.message = 'argument out of range';\n };\n});\n//# sourceMappingURL=ArgumentOutOfRangeError.js.map","import { createErrorClass } from './createErrorClass';\nexport var NotFoundError = createErrorClass(function (_super) {\n return function NotFoundErrorImpl(message) {\n _super(this);\n this.name = 'NotFoundError';\n this.message = message;\n };\n});\n//# sourceMappingURL=NotFoundError.js.map","import { createErrorClass } from './createErrorClass';\nexport var SequenceError = createErrorClass(function (_super) {\n return function SequenceErrorImpl(message) {\n _super(this);\n this.name = 'SequenceError';\n this.message = message;\n };\n});\n//# sourceMappingURL=SequenceError.js.map","export function isValidDate(value) {\n return value instanceof Date && !isNaN(value);\n}\n//# sourceMappingURL=isDate.js.map","import { asyncScheduler } from '../scheduler/async';\nimport { isValidDate } from '../util/isDate';\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createErrorClass } from '../util/createErrorClass';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { executeSchedule } from '../util/executeSchedule';\nexport var TimeoutError = createErrorClass(function (_super) {\n return function TimeoutErrorImpl(info) {\n if (info === void 0) { info = null; }\n _super(this);\n this.message = 'Timeout has occurred';\n this.name = 'TimeoutError';\n this.info = info;\n };\n});\nexport function timeout(config, schedulerArg) {\n var _a = (isValidDate(config) ? { first: config } : typeof config === 'number' ? { each: config } : config), first = _a.first, each = _a.each, _b = _a.with, _with = _b === void 0 ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : asyncScheduler : _c, _d = _a.meta, meta = _d === void 0 ? null : _d;\n if (first == null && each == null) {\n throw new TypeError('No timeout provided.');\n }\n return operate(function (source, subscriber) {\n var originalSourceSubscription;\n var timerSubscription;\n var lastValue = null;\n var seen = 0;\n var startTimer = function (delay) {\n timerSubscription = executeSchedule(subscriber, scheduler, function () {\n try {\n originalSourceSubscription.unsubscribe();\n innerFrom(_with({\n meta: meta,\n lastValue: lastValue,\n seen: seen,\n })).subscribe(subscriber);\n }\n catch (err) {\n subscriber.error(err);\n }\n }, delay);\n };\n originalSourceSubscription = source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();\n seen++;\n subscriber.next((lastValue = value));\n each > 0 && startTimer(each);\n }, undefined, undefined, function () {\n if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) {\n timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe();\n }\n lastValue = null;\n }));\n !seen && startTimer(first != null ? (typeof first === 'number' ? first : +first - scheduler.now()) : each);\n });\n}\nfunction timeoutErrorFactory(info) {\n throw new TimeoutError(info);\n}\n//# sourceMappingURL=timeout.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function map(project, thisArg) {\n return operate(function (source, subscriber) {\n var index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n subscriber.next(project.call(thisArg, value, index++));\n }));\n });\n}\n//# sourceMappingURL=map.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { map } from \"../operators/map\";\nvar isArray = Array.isArray;\nfunction callOrApply(fn, args) {\n return isArray(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args);\n}\nexport function mapOneOrManyArgs(fn) {\n return map(function (args) { return callOrApply(fn, args); });\n}\n//# sourceMappingURL=mapOneOrManyArgs.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { isScheduler } from '../util/isScheduler';\nimport { Observable } from '../Observable';\nimport { subscribeOn } from '../operators/subscribeOn';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { observeOn } from '../operators/observeOn';\nimport { AsyncSubject } from '../AsyncSubject';\nexport function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) {\n if (resultSelector) {\n if (isScheduler(resultSelector)) {\n scheduler = resultSelector;\n }\n else {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler)\n .apply(this, args)\n .pipe(mapOneOrManyArgs(resultSelector));\n };\n }\n }\n if (scheduler) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return bindCallbackInternals(isNodeStyle, callbackFunc)\n .apply(this, args)\n .pipe(subscribeOn(scheduler), observeOn(scheduler));\n };\n }\n return function () {\n var _this = this;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var subject = new AsyncSubject();\n var uninitialized = true;\n return new Observable(function (subscriber) {\n var subs = subject.subscribe(subscriber);\n if (uninitialized) {\n uninitialized = false;\n var isAsync_1 = false;\n var isComplete_1 = false;\n callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [\n function () {\n var results = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n results[_i] = arguments[_i];\n }\n if (isNodeStyle) {\n var err = results.shift();\n if (err != null) {\n subject.error(err);\n return;\n }\n }\n subject.next(1 < results.length ? results : results[0]);\n isComplete_1 = true;\n if (isAsync_1) {\n subject.complete();\n }\n },\n ]));\n if (isComplete_1) {\n subject.complete();\n }\n isAsync_1 = true;\n }\n return subs;\n });\n };\n}\n//# sourceMappingURL=bindCallbackInternals.js.map","import { bindCallbackInternals } from './bindCallbackInternals';\nexport function bindCallback(callbackFunc, resultSelector, scheduler) {\n return bindCallbackInternals(false, callbackFunc, resultSelector, scheduler);\n}\n//# sourceMappingURL=bindCallback.js.map","import { bindCallbackInternals } from './bindCallbackInternals';\nexport function bindNodeCallback(callbackFunc, resultSelector, scheduler) {\n return bindCallbackInternals(true, callbackFunc, resultSelector, scheduler);\n}\n//# sourceMappingURL=bindNodeCallback.js.map","var isArray = Array.isArray;\nvar getPrototypeOf = Object.getPrototypeOf, objectProto = Object.prototype, getKeys = Object.keys;\nexport function argsArgArrayOrObject(args) {\n if (args.length === 1) {\n var first_1 = args[0];\n if (isArray(first_1)) {\n return { args: first_1, keys: null };\n }\n if (isPOJO(first_1)) {\n var keys = getKeys(first_1);\n return {\n args: keys.map(function (key) { return first_1[key]; }),\n keys: keys,\n };\n }\n }\n return { args: args, keys: null };\n}\nfunction isPOJO(obj) {\n return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto;\n}\n//# sourceMappingURL=argsArgArrayOrObject.js.map","export function createObject(keys, values) {\n return keys.reduce(function (result, key, i) { return ((result[key] = values[i]), result); }, {});\n}\n//# sourceMappingURL=createObject.js.map","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { from } from './from';\nimport { identity } from '../util/identity';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { popResultSelector, popScheduler } from '../util/args';\nimport { createObject } from '../util/createObject';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function combineLatest() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var scheduler = popScheduler(args);\n var resultSelector = popResultSelector(args);\n var _a = argsArgArrayOrObject(args), observables = _a.args, keys = _a.keys;\n if (observables.length === 0) {\n return from([], scheduler);\n }\n var result = new Observable(combineLatestInit(observables, scheduler, keys\n ?\n function (values) { return createObject(keys, values); }\n :\n identity));\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\nexport function combineLatestInit(observables, scheduler, valueTransform) {\n if (valueTransform === void 0) { valueTransform = identity; }\n return function (subscriber) {\n maybeSchedule(scheduler, function () {\n var length = observables.length;\n var values = new Array(length);\n var active = length;\n var remainingFirstValues = length;\n var _loop_1 = function (i) {\n maybeSchedule(scheduler, function () {\n var source = from(observables[i], scheduler);\n var hasFirstValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n values[i] = value;\n if (!hasFirstValue) {\n hasFirstValue = true;\n remainingFirstValues--;\n }\n if (!remainingFirstValues) {\n subscriber.next(valueTransform(values.slice()));\n }\n }, function () {\n if (!--active) {\n subscriber.complete();\n }\n }));\n }, subscriber);\n };\n for (var i = 0; i < length; i++) {\n _loop_1(i);\n }\n }, subscriber);\n };\n}\nfunction maybeSchedule(scheduler, execute, subscription) {\n if (scheduler) {\n executeSchedule(subscription, scheduler, execute);\n }\n else {\n execute();\n }\n}\n//# sourceMappingURL=combineLatest.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { executeSchedule } from '../util/executeSchedule';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) {\n var buffer = [];\n var active = 0;\n var index = 0;\n var isComplete = false;\n var checkComplete = function () {\n if (isComplete && !buffer.length && !active) {\n subscriber.complete();\n }\n };\n var outerNext = function (value) { return (active < concurrent ? doInnerSub(value) : buffer.push(value)); };\n var doInnerSub = function (value) {\n expand && subscriber.next(value);\n active++;\n var innerComplete = false;\n innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, function (innerValue) {\n onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue);\n if (expand) {\n outerNext(innerValue);\n }\n else {\n subscriber.next(innerValue);\n }\n }, function () {\n innerComplete = true;\n }, undefined, function () {\n if (innerComplete) {\n try {\n active--;\n var _loop_1 = function () {\n var bufferedValue = buffer.shift();\n if (innerSubScheduler) {\n executeSchedule(subscriber, innerSubScheduler, function () { return doInnerSub(bufferedValue); });\n }\n else {\n doInnerSub(bufferedValue);\n }\n };\n while (buffer.length && active < concurrent) {\n _loop_1();\n }\n checkComplete();\n }\n catch (err) {\n subscriber.error(err);\n }\n }\n }));\n };\n source.subscribe(createOperatorSubscriber(subscriber, outerNext, function () {\n isComplete = true;\n checkComplete();\n }));\n return function () {\n additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer();\n };\n}\n//# sourceMappingURL=mergeInternals.js.map","import { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nimport { isFunction } from '../util/isFunction';\nexport function mergeMap(project, resultSelector, concurrent) {\n if (concurrent === void 0) { concurrent = Infinity; }\n if (isFunction(resultSelector)) {\n return mergeMap(function (a, i) { return map(function (b, ii) { return resultSelector(a, b, i, ii); })(innerFrom(project(a, i))); }, concurrent);\n }\n else if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return operate(function (source, subscriber) { return mergeInternals(source, subscriber, project, concurrent); });\n}\n//# sourceMappingURL=mergeMap.js.map","import { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nexport function mergeAll(concurrent) {\n if (concurrent === void 0) { concurrent = Infinity; }\n return mergeMap(identity, concurrent);\n}\n//# sourceMappingURL=mergeAll.js.map","import { mergeAll } from './mergeAll';\nexport function concatAll() {\n return mergeAll(1);\n}\n//# sourceMappingURL=concatAll.js.map","import { concatAll } from '../operators/concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from './from';\nexport function concat() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return concatAll()(from(args, popScheduler(args)));\n}\n//# sourceMappingURL=concat.js.map","import { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nexport function defer(observableFactory) {\n return new Observable(function (subscriber) {\n innerFrom(observableFactory()).subscribe(subscriber);\n });\n}\n//# sourceMappingURL=defer.js.map","import { Subject } from '../Subject';\nimport { Observable } from '../Observable';\nimport { defer } from './defer';\nvar DEFAULT_CONFIG = {\n connector: function () { return new Subject(); },\n resetOnDisconnect: true,\n};\nexport function connectable(source, config) {\n if (config === void 0) { config = DEFAULT_CONFIG; }\n var connection = null;\n var connector = config.connector, _a = config.resetOnDisconnect, resetOnDisconnect = _a === void 0 ? true : _a;\n var subject = connector();\n var result = new Observable(function (subscriber) {\n return subject.subscribe(subscriber);\n });\n result.connect = function () {\n if (!connection || connection.closed) {\n connection = defer(function () { return source; }).subscribe(subject);\n if (resetOnDisconnect) {\n connection.add(function () { return (subject = connector()); });\n }\n }\n return connection;\n };\n return result;\n}\n//# sourceMappingURL=connectable.js.map","import { Observable } from '../Observable';\nimport { argsArgArrayOrObject } from '../util/argsArgArrayOrObject';\nimport { innerFrom } from './innerFrom';\nimport { popResultSelector } from '../util/args';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { createObject } from '../util/createObject';\nexport function forkJoin() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var resultSelector = popResultSelector(args);\n var _a = argsArgArrayOrObject(args), sources = _a.args, keys = _a.keys;\n var result = new Observable(function (subscriber) {\n var length = sources.length;\n if (!length) {\n subscriber.complete();\n return;\n }\n var values = new Array(length);\n var remainingCompletions = length;\n var remainingEmissions = length;\n var _loop_1 = function (sourceIndex) {\n var hasValue = false;\n innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, function (value) {\n if (!hasValue) {\n hasValue = true;\n remainingEmissions--;\n }\n values[sourceIndex] = value;\n }, function () { return remainingCompletions--; }, undefined, function () {\n if (!remainingCompletions || !hasValue) {\n if (!remainingEmissions) {\n subscriber.next(keys ? createObject(keys, values) : values);\n }\n subscriber.complete();\n }\n }));\n };\n for (var sourceIndex = 0; sourceIndex < length; sourceIndex++) {\n _loop_1(sourceIndex);\n }\n });\n return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result;\n}\n//# sourceMappingURL=forkJoin.js.map","import { __read } from \"tslib\";\nimport { innerFrom } from '../observable/innerFrom';\nimport { Observable } from '../Observable';\nimport { mergeMap } from '../operators/mergeMap';\nimport { isArrayLike } from '../util/isArrayLike';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nvar nodeEventEmitterMethods = ['addListener', 'removeListener'];\nvar eventTargetMethods = ['addEventListener', 'removeEventListener'];\nvar jqueryMethods = ['on', 'off'];\nexport function fromEvent(target, eventName, options, resultSelector) {\n if (isFunction(options)) {\n resultSelector = options;\n options = undefined;\n }\n if (resultSelector) {\n return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector));\n }\n var _a = __read(isEventTarget(target)\n ? eventTargetMethods.map(function (methodName) { return function (handler) { return target[methodName](eventName, handler, options); }; })\n :\n isNodeStyleEventEmitter(target)\n ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName))\n : isJQueryStyleEventEmitter(target)\n ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName))\n : [], 2), add = _a[0], remove = _a[1];\n if (!add) {\n if (isArrayLike(target)) {\n return mergeMap(function (subTarget) { return fromEvent(subTarget, eventName, options); })(innerFrom(target));\n }\n }\n if (!add) {\n throw new TypeError('Invalid event target');\n }\n return new Observable(function (subscriber) {\n var handler = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return subscriber.next(1 < args.length ? args : args[0]);\n };\n add(handler);\n return function () { return remove(handler); };\n });\n}\nfunction toCommonHandlerRegistry(target, eventName) {\n return function (methodName) { return function (handler) { return target[methodName](eventName, handler); }; };\n}\nfunction isNodeStyleEventEmitter(target) {\n return isFunction(target.addListener) && isFunction(target.removeListener);\n}\nfunction isJQueryStyleEventEmitter(target) {\n return isFunction(target.on) && isFunction(target.off);\n}\nfunction isEventTarget(target) {\n return isFunction(target.addEventListener) && isFunction(target.removeEventListener);\n}\n//# sourceMappingURL=fromEvent.js.map","import { Observable } from '../Observable';\nimport { isFunction } from '../util/isFunction';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nexport function fromEventPattern(addHandler, removeHandler, resultSelector) {\n if (resultSelector) {\n return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs(resultSelector));\n }\n return new Observable(function (subscriber) {\n var handler = function () {\n var e = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n e[_i] = arguments[_i];\n }\n return subscriber.next(e.length === 1 ? e[0] : e);\n };\n var retValue = addHandler(handler);\n return isFunction(removeHandler) ? function () { return removeHandler(handler, retValue); } : undefined;\n });\n}\n//# sourceMappingURL=fromEventPattern.js.map","import { __generator } from \"tslib\";\nimport { identity } from '../util/identity';\nimport { isScheduler } from '../util/isScheduler';\nimport { defer } from './defer';\nimport { scheduleIterable } from '../scheduled/scheduleIterable';\nexport function generate(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) {\n var _a, _b;\n var resultSelector;\n var initialState;\n if (arguments.length === 1) {\n (_a = initialStateOrOptions, initialState = _a.initialState, condition = _a.condition, iterate = _a.iterate, _b = _a.resultSelector, resultSelector = _b === void 0 ? identity : _b, scheduler = _a.scheduler);\n }\n else {\n initialState = initialStateOrOptions;\n if (!resultSelectorOrScheduler || isScheduler(resultSelectorOrScheduler)) {\n resultSelector = identity;\n scheduler = resultSelectorOrScheduler;\n }\n else {\n resultSelector = resultSelectorOrScheduler;\n }\n }\n function gen() {\n var state;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n state = initialState;\n _a.label = 1;\n case 1:\n if (!(!condition || condition(state))) return [3, 4];\n return [4, resultSelector(state)];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n state = iterate(state);\n return [3, 1];\n case 4: return [2];\n }\n });\n }\n return defer((scheduler\n ?\n function () { return scheduleIterable(gen(), scheduler); }\n :\n gen));\n}\n//# sourceMappingURL=generate.js.map","import { defer } from './defer';\nexport function iif(condition, trueResult, falseResult) {\n return defer(function () { return (condition() ? trueResult : falseResult); });\n}\n//# sourceMappingURL=iif.js.map","import { Observable } from '../Observable';\nimport { async as asyncScheduler } from '../scheduler/async';\nimport { isScheduler } from '../util/isScheduler';\nimport { isValidDate } from '../util/isDate';\nexport function timer(dueTime, intervalOrScheduler, scheduler) {\n if (dueTime === void 0) { dueTime = 0; }\n if (scheduler === void 0) { scheduler = asyncScheduler; }\n var intervalDuration = -1;\n if (intervalOrScheduler != null) {\n if (isScheduler(intervalOrScheduler)) {\n scheduler = intervalOrScheduler;\n }\n else {\n intervalDuration = intervalOrScheduler;\n }\n }\n return new Observable(function (subscriber) {\n var due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime;\n if (due < 0) {\n due = 0;\n }\n var n = 0;\n return scheduler.schedule(function () {\n if (!subscriber.closed) {\n subscriber.next(n++);\n if (0 <= intervalDuration) {\n this.schedule(undefined, intervalDuration);\n }\n else {\n subscriber.complete();\n }\n }\n }, due);\n });\n}\n//# sourceMappingURL=timer.js.map","import { asyncScheduler } from '../scheduler/async';\nimport { timer } from './timer';\nexport function interval(period, scheduler) {\n if (period === void 0) { period = 0; }\n if (scheduler === void 0) { scheduler = asyncScheduler; }\n if (period < 0) {\n period = 0;\n }\n return timer(period, period, scheduler);\n}\n//# sourceMappingURL=interval.js.map","import { mergeAll } from '../operators/mergeAll';\nimport { innerFrom } from './innerFrom';\nimport { EMPTY } from './empty';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from './from';\nexport function merge() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var scheduler = popScheduler(args);\n var concurrent = popNumber(args, Infinity);\n var sources = args;\n return !sources.length\n ?\n EMPTY\n : sources.length === 1\n ?\n innerFrom(sources[0])\n :\n mergeAll(concurrent)(from(sources, scheduler));\n}\n//# sourceMappingURL=merge.js.map","import { Observable } from '../Observable';\nimport { noop } from '../util/noop';\nexport var NEVER = new Observable(noop);\nexport function never() {\n return NEVER;\n}\n//# sourceMappingURL=never.js.map","var isArray = Array.isArray;\nexport function argsOrArgArray(args) {\n return args.length === 1 && isArray(args[0]) ? args[0] : args;\n}\n//# sourceMappingURL=argsOrArgArray.js.map","import { Observable } from '../Observable';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { OperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { noop } from '../util/noop';\nimport { innerFrom } from './innerFrom';\nexport function onErrorResumeNext() {\n var sources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n sources[_i] = arguments[_i];\n }\n var nextSources = argsOrArgArray(sources);\n return new Observable(function (subscriber) {\n var sourceIndex = 0;\n var subscribeNext = function () {\n if (sourceIndex < nextSources.length) {\n var nextSource = void 0;\n try {\n nextSource = innerFrom(nextSources[sourceIndex++]);\n }\n catch (err) {\n subscribeNext();\n return;\n }\n var innerSubscriber = new OperatorSubscriber(subscriber, undefined, noop, noop);\n nextSource.subscribe(innerSubscriber);\n innerSubscriber.add(subscribeNext);\n }\n else {\n subscriber.complete();\n }\n };\n subscribeNext();\n });\n}\n//# sourceMappingURL=onErrorResumeNext.js.map","import { from } from './from';\nexport function pairs(obj, scheduler) {\n return from(Object.entries(obj), scheduler);\n}\n//# sourceMappingURL=pairs.js.map","export function not(pred, thisArg) {\n return function (value, index) { return !pred.call(thisArg, value, index); };\n}\n//# sourceMappingURL=not.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function filter(predicate, thisArg) {\n return operate(function (source, subscriber) {\n var index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) { return predicate.call(thisArg, value, index++) && subscriber.next(value); }));\n });\n}\n//# sourceMappingURL=filter.js.map","import { not } from '../util/not';\nimport { filter } from '../operators/filter';\nimport { innerFrom } from './innerFrom';\nexport function partition(source, predicate, thisArg) {\n return [filter(predicate, thisArg)(innerFrom(source)), filter(not(predicate, thisArg))(innerFrom(source))];\n}\n//# sourceMappingURL=partition.js.map","import { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nexport function race() {\n var sources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n sources[_i] = arguments[_i];\n }\n sources = argsOrArgArray(sources);\n return sources.length === 1 ? innerFrom(sources[0]) : new Observable(raceInit(sources));\n}\nexport function raceInit(sources) {\n return function (subscriber) {\n var subscriptions = [];\n var _loop_1 = function (i) {\n subscriptions.push(innerFrom(sources[i]).subscribe(createOperatorSubscriber(subscriber, function (value) {\n if (subscriptions) {\n for (var s = 0; s < subscriptions.length; s++) {\n s !== i && subscriptions[s].unsubscribe();\n }\n subscriptions = null;\n }\n subscriber.next(value);\n })));\n };\n for (var i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) {\n _loop_1(i);\n }\n };\n}\n//# sourceMappingURL=race.js.map","import { Observable } from '../Observable';\nimport { EMPTY } from './empty';\nexport function range(start, count, scheduler) {\n if (count == null) {\n count = start;\n start = 0;\n }\n if (count <= 0) {\n return EMPTY;\n }\n var end = count + start;\n return new Observable(scheduler\n ?\n function (subscriber) {\n var n = start;\n return scheduler.schedule(function () {\n if (n < end) {\n subscriber.next(n++);\n this.schedule();\n }\n else {\n subscriber.complete();\n }\n });\n }\n :\n function (subscriber) {\n var n = start;\n while (n < end && !subscriber.closed) {\n subscriber.next(n++);\n }\n subscriber.complete();\n });\n}\n//# sourceMappingURL=range.js.map","import { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nimport { EMPTY } from './empty';\nexport function using(resourceFactory, observableFactory) {\n return new Observable(function (subscriber) {\n var resource = resourceFactory();\n var result = observableFactory(resource);\n var source = result ? innerFrom(result) : EMPTY;\n source.subscribe(subscriber);\n return function () {\n if (resource) {\n resource.unsubscribe();\n }\n };\n });\n}\n//# sourceMappingURL=using.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { Observable } from '../Observable';\nimport { innerFrom } from './innerFrom';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { EMPTY } from './empty';\nimport { createOperatorSubscriber } from '../operators/OperatorSubscriber';\nimport { popResultSelector } from '../util/args';\nexport function zip() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var resultSelector = popResultSelector(args);\n var sources = argsOrArgArray(args);\n return sources.length\n ? new Observable(function (subscriber) {\n var buffers = sources.map(function () { return []; });\n var completed = sources.map(function () { return false; });\n subscriber.add(function () {\n buffers = completed = null;\n });\n var _loop_1 = function (sourceIndex) {\n innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, function (value) {\n buffers[sourceIndex].push(value);\n if (buffers.every(function (buffer) { return buffer.length; })) {\n var result = buffers.map(function (buffer) { return buffer.shift(); });\n subscriber.next(resultSelector ? resultSelector.apply(void 0, __spreadArray([], __read(result))) : result);\n if (buffers.some(function (buffer, i) { return !buffer.length && completed[i]; })) {\n subscriber.complete();\n }\n }\n }, function () {\n completed[sourceIndex] = true;\n !buffers[sourceIndex].length && subscriber.complete();\n }));\n };\n for (var sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) {\n _loop_1(sourceIndex);\n }\n return function () {\n buffers = completed = null;\n };\n })\n : EMPTY;\n}\n//# sourceMappingURL=zip.js.map","import { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function audit(durationSelector) {\n return operate(function (source, subscriber) {\n var hasValue = false;\n var lastValue = null;\n var durationSubscriber = null;\n var isComplete = false;\n var endDuration = function () {\n durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();\n durationSubscriber = null;\n if (hasValue) {\n hasValue = false;\n var value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n isComplete && subscriber.complete();\n };\n var cleanupDuration = function () {\n durationSubscriber = null;\n isComplete && subscriber.complete();\n };\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n hasValue = true;\n lastValue = value;\n if (!durationSubscriber) {\n innerFrom(durationSelector(value)).subscribe((durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration)));\n }\n }, function () {\n isComplete = true;\n (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=audit.js.map","import { asyncScheduler } from '../scheduler/async';\nimport { audit } from './audit';\nimport { timer } from '../observable/timer';\nexport function auditTime(duration, scheduler) {\n if (scheduler === void 0) { scheduler = asyncScheduler; }\n return audit(function () { return timer(duration, scheduler); });\n}\n//# sourceMappingURL=auditTime.js.map","import { operate } from '../util/lift';\nimport { noop } from '../util/noop';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function buffer(closingNotifier) {\n return operate(function (source, subscriber) {\n var currentBuffer = [];\n source.subscribe(createOperatorSubscriber(subscriber, function (value) { return currentBuffer.push(value); }, function () {\n subscriber.next(currentBuffer);\n subscriber.complete();\n }));\n innerFrom(closingNotifier).subscribe(createOperatorSubscriber(subscriber, function () {\n var b = currentBuffer;\n currentBuffer = [];\n subscriber.next(b);\n }, noop));\n return function () {\n currentBuffer = null;\n };\n });\n}\n//# sourceMappingURL=buffer.js.map","import { __values } from \"tslib\";\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { arrRemove } from '../util/arrRemove';\nexport function bufferCount(bufferSize, startBufferEvery) {\n if (startBufferEvery === void 0) { startBufferEvery = null; }\n startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize;\n return operate(function (source, subscriber) {\n var buffers = [];\n var count = 0;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var e_1, _a, e_2, _b;\n var toEmit = null;\n if (count++ % startBufferEvery === 0) {\n buffers.push([]);\n }\n try {\n for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) {\n var buffer = buffers_1_1.value;\n buffer.push(value);\n if (bufferSize <= buffer.length) {\n toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : [];\n toEmit.push(buffer);\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n if (toEmit) {\n try {\n for (var toEmit_1 = __values(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) {\n var buffer = toEmit_1_1.value;\n arrRemove(buffers, buffer);\n subscriber.next(buffer);\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (toEmit_1_1 && !toEmit_1_1.done && (_b = toEmit_1.return)) _b.call(toEmit_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }\n }, function () {\n var e_3, _a;\n try {\n for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) {\n var buffer = buffers_2_1.value;\n subscriber.next(buffer);\n }\n }\n catch (e_3_1) { e_3 = { error: e_3_1 }; }\n finally {\n try {\n if (buffers_2_1 && !buffers_2_1.done && (_a = buffers_2.return)) _a.call(buffers_2);\n }\n finally { if (e_3) throw e_3.error; }\n }\n subscriber.complete();\n }, undefined, function () {\n buffers = null;\n }));\n });\n}\n//# sourceMappingURL=bufferCount.js.map","import { __values } from \"tslib\";\nimport { Subscription } from '../Subscription';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { arrRemove } from '../util/arrRemove';\nimport { asyncScheduler } from '../scheduler/async';\nimport { popScheduler } from '../util/args';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function bufferTime(bufferTimeSpan) {\n var _a, _b;\n var otherArgs = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n otherArgs[_i - 1] = arguments[_i];\n }\n var scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler;\n var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;\n var maxBufferSize = otherArgs[1] || Infinity;\n return operate(function (source, subscriber) {\n var bufferRecords = [];\n var restartOnEmit = false;\n var emit = function (record) {\n var buffer = record.buffer, subs = record.subs;\n subs.unsubscribe();\n arrRemove(bufferRecords, record);\n subscriber.next(buffer);\n restartOnEmit && startBuffer();\n };\n var startBuffer = function () {\n if (bufferRecords) {\n var subs = new Subscription();\n subscriber.add(subs);\n var buffer = [];\n var record_1 = {\n buffer: buffer,\n subs: subs,\n };\n bufferRecords.push(record_1);\n executeSchedule(subs, scheduler, function () { return emit(record_1); }, bufferTimeSpan);\n }\n };\n if (bufferCreationInterval !== null && bufferCreationInterval >= 0) {\n executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true);\n }\n else {\n restartOnEmit = true;\n }\n startBuffer();\n var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function (value) {\n var e_1, _a;\n var recordsCopy = bufferRecords.slice();\n try {\n for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) {\n var record = recordsCopy_1_1.value;\n var buffer = record.buffer;\n buffer.push(value);\n maxBufferSize <= buffer.length && emit(record);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a = recordsCopy_1.return)) _a.call(recordsCopy_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }, function () {\n while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) {\n subscriber.next(bufferRecords.shift().buffer);\n }\n bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe();\n subscriber.complete();\n subscriber.unsubscribe();\n }, undefined, function () { return (bufferRecords = null); });\n source.subscribe(bufferTimeSubscriber);\n });\n}\n//# sourceMappingURL=bufferTime.js.map","import { __values } from \"tslib\";\nimport { Subscription } from '../Subscription';\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nimport { arrRemove } from '../util/arrRemove';\nexport function bufferToggle(openings, closingSelector) {\n return operate(function (source, subscriber) {\n var buffers = [];\n innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, function (openValue) {\n var buffer = [];\n buffers.push(buffer);\n var closingSubscription = new Subscription();\n var emitBuffer = function () {\n arrRemove(buffers, buffer);\n subscriber.next(buffer);\n closingSubscription.unsubscribe();\n };\n closingSubscription.add(innerFrom(closingSelector(openValue)).subscribe(createOperatorSubscriber(subscriber, emitBuffer, noop)));\n }, noop));\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var e_1, _a;\n try {\n for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) {\n var buffer = buffers_1_1.value;\n buffer.push(value);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }, function () {\n while (buffers.length > 0) {\n subscriber.next(buffers.shift());\n }\n subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=bufferToggle.js.map","import { operate } from '../util/lift';\nimport { noop } from '../util/noop';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function bufferWhen(closingSelector) {\n return operate(function (source, subscriber) {\n var buffer = null;\n var closingSubscriber = null;\n var openBuffer = function () {\n closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();\n var b = buffer;\n buffer = [];\n b && subscriber.next(b);\n innerFrom(closingSelector()).subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openBuffer, noop)));\n };\n openBuffer();\n source.subscribe(createOperatorSubscriber(subscriber, function (value) { return buffer === null || buffer === void 0 ? void 0 : buffer.push(value); }, function () {\n buffer && subscriber.next(buffer);\n subscriber.complete();\n }, undefined, function () { return (buffer = closingSubscriber = null); }));\n });\n}\n//# sourceMappingURL=bufferWhen.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { operate } from '../util/lift';\nexport function catchError(selector) {\n return operate(function (source, subscriber) {\n var innerSub = null;\n var syncUnsub = false;\n var handledResult;\n innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, function (err) {\n handledResult = innerFrom(selector(err, catchError(selector)(source)));\n if (innerSub) {\n innerSub.unsubscribe();\n innerSub = null;\n handledResult.subscribe(subscriber);\n }\n else {\n syncUnsub = true;\n }\n }));\n if (syncUnsub) {\n innerSub.unsubscribe();\n innerSub = null;\n handledResult.subscribe(subscriber);\n }\n });\n}\n//# sourceMappingURL=catchError.js.map","import { createOperatorSubscriber } from './OperatorSubscriber';\nexport function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) {\n return function (source, subscriber) {\n var hasState = hasSeed;\n var state = seed;\n var index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var i = index++;\n state = hasState\n ?\n accumulator(state, value, i)\n :\n ((hasState = true), value);\n emitOnNext && subscriber.next(state);\n }, emitBeforeComplete &&\n (function () {\n hasState && subscriber.next(state);\n subscriber.complete();\n })));\n };\n}\n//# sourceMappingURL=scanInternals.js.map","import { scanInternals } from './scanInternals';\nimport { operate } from '../util/lift';\nexport function reduce(accumulator, seed) {\n return operate(scanInternals(accumulator, seed, arguments.length >= 2, false, true));\n}\n//# sourceMappingURL=reduce.js.map","import { reduce } from './reduce';\nimport { operate } from '../util/lift';\nvar arrReducer = function (arr, value) { return (arr.push(value), arr); };\nexport function toArray() {\n return operate(function (source, subscriber) {\n reduce(arrReducer, [])(source).subscribe(subscriber);\n });\n}\n//# sourceMappingURL=toArray.js.map","import { identity } from '../util/identity';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { pipe } from '../util/pipe';\nimport { mergeMap } from './mergeMap';\nimport { toArray } from './toArray';\nexport function joinAllInternals(joinFn, project) {\n return pipe(toArray(), mergeMap(function (sources) { return joinFn(sources); }), project ? mapOneOrManyArgs(project) : identity);\n}\n//# sourceMappingURL=joinAllInternals.js.map","import { combineLatest } from '../observable/combineLatest';\nimport { joinAllInternals } from './joinAllInternals';\nexport function combineLatestAll(project) {\n return joinAllInternals(combineLatest, project);\n}\n//# sourceMappingURL=combineLatestAll.js.map","import { combineLatestAll } from './combineLatestAll';\nexport var combineAll = combineLatestAll;\n//# sourceMappingURL=combineAll.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { combineLatestInit } from '../observable/combineLatest';\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mapOneOrManyArgs } from '../util/mapOneOrManyArgs';\nimport { pipe } from '../util/pipe';\nimport { popResultSelector } from '../util/args';\nexport function combineLatest() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var resultSelector = popResultSelector(args);\n return resultSelector\n ? pipe(combineLatest.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs(resultSelector))\n : operate(function (source, subscriber) {\n combineLatestInit(__spreadArray([source], __read(argsOrArgArray(args))))(subscriber);\n });\n}\n//# sourceMappingURL=combineLatest.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { combineLatest } from './combineLatest';\nexport function combineLatestWith() {\n var otherSources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n otherSources[_i] = arguments[_i];\n }\n return combineLatest.apply(void 0, __spreadArray([], __read(otherSources)));\n}\n//# sourceMappingURL=combineLatestWith.js.map","import { mergeMap } from './mergeMap';\nimport { isFunction } from '../util/isFunction';\nexport function concatMap(project, resultSelector) {\n return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1);\n}\n//# sourceMappingURL=concatMap.js.map","import { concatMap } from './concatMap';\nimport { isFunction } from '../util/isFunction';\nexport function concatMapTo(innerObservable, resultSelector) {\n return isFunction(resultSelector) ? concatMap(function () { return innerObservable; }, resultSelector) : concatMap(function () { return innerObservable; });\n}\n//# sourceMappingURL=concatMapTo.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { operate } from '../util/lift';\nimport { concatAll } from './concatAll';\nimport { popScheduler } from '../util/args';\nimport { from } from '../observable/from';\nexport function concat() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var scheduler = popScheduler(args);\n return operate(function (source, subscriber) {\n concatAll()(from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);\n });\n}\n//# sourceMappingURL=concat.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { concat } from './concat';\nexport function concatWith() {\n var otherSources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n otherSources[_i] = arguments[_i];\n }\n return concat.apply(void 0, __spreadArray([], __read(otherSources)));\n}\n//# sourceMappingURL=concatWith.js.map","import { Observable } from '../Observable';\nexport function fromSubscribable(subscribable) {\n return new Observable(function (subscriber) { return subscribable.subscribe(subscriber); });\n}\n//# sourceMappingURL=fromSubscribable.js.map","import { Subject } from '../Subject';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { fromSubscribable } from '../observable/fromSubscribable';\nvar DEFAULT_CONFIG = {\n connector: function () { return new Subject(); },\n};\nexport function connect(selector, config) {\n if (config === void 0) { config = DEFAULT_CONFIG; }\n var connector = config.connector;\n return operate(function (source, subscriber) {\n var subject = connector();\n innerFrom(selector(fromSubscribable(subject))).subscribe(subscriber);\n subscriber.add(source.subscribe(subject));\n });\n}\n//# sourceMappingURL=connect.js.map","import { reduce } from './reduce';\nexport function count(predicate) {\n return reduce(function (total, value, i) { return (!predicate || predicate(value, i) ? total + 1 : total); }, 0);\n}\n//# sourceMappingURL=count.js.map","import { operate } from '../util/lift';\nimport { noop } from '../util/noop';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function debounce(durationSelector) {\n return operate(function (source, subscriber) {\n var hasValue = false;\n var lastValue = null;\n var durationSubscriber = null;\n var emit = function () {\n durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();\n durationSubscriber = null;\n if (hasValue) {\n hasValue = false;\n var value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n };\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe();\n hasValue = true;\n lastValue = value;\n durationSubscriber = createOperatorSubscriber(subscriber, emit, noop);\n innerFrom(durationSelector(value)).subscribe(durationSubscriber);\n }, function () {\n emit();\n subscriber.complete();\n }, undefined, function () {\n lastValue = durationSubscriber = null;\n }));\n });\n}\n//# sourceMappingURL=debounce.js.map","import { asyncScheduler } from '../scheduler/async';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function debounceTime(dueTime, scheduler) {\n if (scheduler === void 0) { scheduler = asyncScheduler; }\n return operate(function (source, subscriber) {\n var activeTask = null;\n var lastValue = null;\n var lastTime = null;\n var emit = function () {\n if (activeTask) {\n activeTask.unsubscribe();\n activeTask = null;\n var value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n };\n function emitWhenIdle() {\n var targetTime = lastTime + dueTime;\n var now = scheduler.now();\n if (now < targetTime) {\n activeTask = this.schedule(undefined, targetTime - now);\n subscriber.add(activeTask);\n return;\n }\n emit();\n }\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n lastValue = value;\n lastTime = scheduler.now();\n if (!activeTask) {\n activeTask = scheduler.schedule(emitWhenIdle, dueTime);\n subscriber.add(activeTask);\n }\n }, function () {\n emit();\n subscriber.complete();\n }, undefined, function () {\n lastValue = activeTask = null;\n }));\n });\n}\n//# sourceMappingURL=debounceTime.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function defaultIfEmpty(defaultValue) {\n return operate(function (source, subscriber) {\n var hasValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n hasValue = true;\n subscriber.next(value);\n }, function () {\n if (!hasValue) {\n subscriber.next(defaultValue);\n }\n subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=defaultIfEmpty.js.map","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function take(count) {\n return count <= 0\n ?\n function () { return EMPTY; }\n : operate(function (source, subscriber) {\n var seen = 0;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n if (++seen <= count) {\n subscriber.next(value);\n if (count <= seen) {\n subscriber.complete();\n }\n }\n }));\n });\n}\n//# sourceMappingURL=take.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nexport function ignoreElements() {\n return operate(function (source, subscriber) {\n source.subscribe(createOperatorSubscriber(subscriber, noop));\n });\n}\n//# sourceMappingURL=ignoreElements.js.map","import { map } from './map';\nexport function mapTo(value) {\n return map(function () { return value; });\n}\n//# sourceMappingURL=mapTo.js.map","import { concat } from '../observable/concat';\nimport { take } from './take';\nimport { ignoreElements } from './ignoreElements';\nimport { mapTo } from './mapTo';\nimport { mergeMap } from './mergeMap';\nimport { innerFrom } from '../observable/innerFrom';\nexport function delayWhen(delayDurationSelector, subscriptionDelay) {\n if (subscriptionDelay) {\n return function (source) {\n return concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector)));\n };\n }\n return mergeMap(function (value, index) { return innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)); });\n}\n//# sourceMappingURL=delayWhen.js.map","import { asyncScheduler } from '../scheduler/async';\nimport { delayWhen } from './delayWhen';\nimport { timer } from '../observable/timer';\nexport function delay(due, scheduler) {\n if (scheduler === void 0) { scheduler = asyncScheduler; }\n var duration = timer(due, scheduler);\n return delayWhen(function () { return duration; });\n}\n//# sourceMappingURL=delay.js.map","import { observeNotification } from '../Notification';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function dematerialize() {\n return operate(function (source, subscriber) {\n source.subscribe(createOperatorSubscriber(subscriber, function (notification) { return observeNotification(notification, subscriber); }));\n });\n}\n//# sourceMappingURL=dematerialize.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nimport { innerFrom } from '../observable/innerFrom';\nexport function distinct(keySelector, flushes) {\n return operate(function (source, subscriber) {\n var distinctKeys = new Set();\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var key = keySelector ? keySelector(value) : value;\n if (!distinctKeys.has(key)) {\n distinctKeys.add(key);\n subscriber.next(value);\n }\n }));\n flushes && innerFrom(flushes).subscribe(createOperatorSubscriber(subscriber, function () { return distinctKeys.clear(); }, noop));\n });\n}\n//# sourceMappingURL=distinct.js.map","import { identity } from '../util/identity';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function distinctUntilChanged(comparator, keySelector) {\n if (keySelector === void 0) { keySelector = identity; }\n comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare;\n return operate(function (source, subscriber) {\n var previousKey;\n var first = true;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var currentKey = keySelector(value);\n if (first || !comparator(previousKey, currentKey)) {\n first = false;\n previousKey = currentKey;\n subscriber.next(value);\n }\n }));\n });\n}\nfunction defaultCompare(a, b) {\n return a === b;\n}\n//# sourceMappingURL=distinctUntilChanged.js.map","import { distinctUntilChanged } from './distinctUntilChanged';\nexport function distinctUntilKeyChanged(key, compare) {\n return distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; });\n}\n//# sourceMappingURL=distinctUntilKeyChanged.js.map","import { EmptyError } from '../util/EmptyError';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function throwIfEmpty(errorFactory) {\n if (errorFactory === void 0) { errorFactory = defaultErrorFactory; }\n return operate(function (source, subscriber) {\n var hasValue = false;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n hasValue = true;\n subscriber.next(value);\n }, function () { return (hasValue ? subscriber.complete() : subscriber.error(errorFactory())); }));\n });\n}\nfunction defaultErrorFactory() {\n return new EmptyError();\n}\n//# sourceMappingURL=throwIfEmpty.js.map","import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { filter } from './filter';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { take } from './take';\nexport function elementAt(index, defaultValue) {\n if (index < 0) {\n throw new ArgumentOutOfRangeError();\n }\n var hasDefaultValue = arguments.length >= 2;\n return function (source) {\n return source.pipe(filter(function (v, i) { return i === index; }), take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new ArgumentOutOfRangeError(); }));\n };\n}\n//# sourceMappingURL=elementAt.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { concat } from '../observable/concat';\nimport { of } from '../observable/of';\nexport function endWith() {\n var values = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n values[_i] = arguments[_i];\n }\n return function (source) { return concat(source, of.apply(void 0, __spreadArray([], __read(values)))); };\n}\n//# sourceMappingURL=endWith.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function every(predicate, thisArg) {\n return operate(function (source, subscriber) {\n var index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n if (!predicate.call(thisArg, value, index++, source)) {\n subscriber.next(false);\n subscriber.complete();\n }\n }, function () {\n subscriber.next(true);\n subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=every.js.map","import { map } from './map';\nimport { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function exhaustMap(project, resultSelector) {\n if (resultSelector) {\n return function (source) {\n return source.pipe(exhaustMap(function (a, i) { return innerFrom(project(a, i)).pipe(map(function (b, ii) { return resultSelector(a, b, i, ii); })); }));\n };\n }\n return operate(function (source, subscriber) {\n var index = 0;\n var innerSub = null;\n var isComplete = false;\n source.subscribe(createOperatorSubscriber(subscriber, function (outerValue) {\n if (!innerSub) {\n innerSub = createOperatorSubscriber(subscriber, undefined, function () {\n innerSub = null;\n isComplete && subscriber.complete();\n });\n innerFrom(project(outerValue, index++)).subscribe(innerSub);\n }\n }, function () {\n isComplete = true;\n !innerSub && subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=exhaustMap.js.map","import { exhaustMap } from './exhaustMap';\nimport { identity } from '../util/identity';\nexport function exhaustAll() {\n return exhaustMap(identity);\n}\n//# sourceMappingURL=exhaustAll.js.map","import { exhaustAll } from './exhaustAll';\nexport var exhaust = exhaustAll;\n//# sourceMappingURL=exhaust.js.map","import { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nexport function expand(project, concurrent, scheduler) {\n if (concurrent === void 0) { concurrent = Infinity; }\n concurrent = (concurrent || 0) < 1 ? Infinity : concurrent;\n return operate(function (source, subscriber) {\n return mergeInternals(source, subscriber, project, concurrent, undefined, true, scheduler);\n });\n}\n//# sourceMappingURL=expand.js.map","import { operate } from '../util/lift';\nexport function finalize(callback) {\n return operate(function (source, subscriber) {\n try {\n source.subscribe(subscriber);\n }\n finally {\n subscriber.add(callback);\n }\n });\n}\n//# sourceMappingURL=finalize.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function find(predicate, thisArg) {\n return operate(createFind(predicate, thisArg, 'value'));\n}\nexport function createFind(predicate, thisArg, emit) {\n var findIndex = emit === 'index';\n return function (source, subscriber) {\n var index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var i = index++;\n if (predicate.call(thisArg, value, i, source)) {\n subscriber.next(findIndex ? i : value);\n subscriber.complete();\n }\n }, function () {\n subscriber.next(findIndex ? -1 : undefined);\n subscriber.complete();\n }));\n };\n}\n//# sourceMappingURL=find.js.map","import { operate } from '../util/lift';\nimport { createFind } from './find';\nexport function findIndex(predicate, thisArg) {\n return operate(createFind(predicate, thisArg, 'index'));\n}\n//# sourceMappingURL=findIndex.js.map","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { take } from './take';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { identity } from '../util/identity';\nexport function first(predicate, defaultValue) {\n var hasDefaultValue = arguments.length >= 2;\n return function (source) {\n return source.pipe(predicate ? filter(function (v, i) { return predicate(v, i, source); }) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new EmptyError(); }));\n };\n}\n//# sourceMappingURL=first.js.map","import { Observable } from '../Observable';\nimport { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber, OperatorSubscriber } from './OperatorSubscriber';\nexport function groupBy(keySelector, elementOrOptions, duration, connector) {\n return operate(function (source, subscriber) {\n var element;\n if (!elementOrOptions || typeof elementOrOptions === 'function') {\n element = elementOrOptions;\n }\n else {\n (duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector);\n }\n var groups = new Map();\n var notify = function (cb) {\n groups.forEach(cb);\n cb(subscriber);\n };\n var handleError = function (err) { return notify(function (consumer) { return consumer.error(err); }); };\n var activeGroups = 0;\n var teardownAttempted = false;\n var groupBySourceSubscriber = new OperatorSubscriber(subscriber, function (value) {\n try {\n var key_1 = keySelector(value);\n var group_1 = groups.get(key_1);\n if (!group_1) {\n groups.set(key_1, (group_1 = connector ? connector() : new Subject()));\n var grouped = createGroupedObservable(key_1, group_1);\n subscriber.next(grouped);\n if (duration) {\n var durationSubscriber_1 = createOperatorSubscriber(group_1, function () {\n group_1.complete();\n durationSubscriber_1 === null || durationSubscriber_1 === void 0 ? void 0 : durationSubscriber_1.unsubscribe();\n }, undefined, undefined, function () { return groups.delete(key_1); });\n groupBySourceSubscriber.add(innerFrom(duration(grouped)).subscribe(durationSubscriber_1));\n }\n }\n group_1.next(element ? element(value) : value);\n }\n catch (err) {\n handleError(err);\n }\n }, function () { return notify(function (consumer) { return consumer.complete(); }); }, handleError, function () { return groups.clear(); }, function () {\n teardownAttempted = true;\n return activeGroups === 0;\n });\n source.subscribe(groupBySourceSubscriber);\n function createGroupedObservable(key, groupSubject) {\n var result = new Observable(function (groupSubscriber) {\n activeGroups++;\n var innerSub = groupSubject.subscribe(groupSubscriber);\n return function () {\n innerSub.unsubscribe();\n --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe();\n };\n });\n result.key = key;\n return result;\n }\n });\n}\n//# sourceMappingURL=groupBy.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function isEmpty() {\n return operate(function (source, subscriber) {\n source.subscribe(createOperatorSubscriber(subscriber, function () {\n subscriber.next(false);\n subscriber.complete();\n }, function () {\n subscriber.next(true);\n subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=isEmpty.js.map","import { __values } from \"tslib\";\nimport { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function takeLast(count) {\n return count <= 0\n ? function () { return EMPTY; }\n : operate(function (source, subscriber) {\n var buffer = [];\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n buffer.push(value);\n count < buffer.length && buffer.shift();\n }, function () {\n var e_1, _a;\n try {\n for (var buffer_1 = __values(buffer), buffer_1_1 = buffer_1.next(); !buffer_1_1.done; buffer_1_1 = buffer_1.next()) {\n var value = buffer_1_1.value;\n subscriber.next(value);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (buffer_1_1 && !buffer_1_1.done && (_a = buffer_1.return)) _a.call(buffer_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n subscriber.complete();\n }, undefined, function () {\n buffer = null;\n }));\n });\n}\n//# sourceMappingURL=takeLast.js.map","import { EmptyError } from '../util/EmptyError';\nimport { filter } from './filter';\nimport { takeLast } from './takeLast';\nimport { throwIfEmpty } from './throwIfEmpty';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { identity } from '../util/identity';\nexport function last(predicate, defaultValue) {\n var hasDefaultValue = arguments.length >= 2;\n return function (source) {\n return source.pipe(predicate ? filter(function (v, i) { return predicate(v, i, source); }) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new EmptyError(); }));\n };\n}\n//# sourceMappingURL=last.js.map","import { Notification } from '../Notification';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function materialize() {\n return operate(function (source, subscriber) {\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n subscriber.next(Notification.createNext(value));\n }, function () {\n subscriber.next(Notification.createComplete());\n subscriber.complete();\n }, function (err) {\n subscriber.next(Notification.createError(err));\n subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=materialize.js.map","import { reduce } from './reduce';\nimport { isFunction } from '../util/isFunction';\nexport function max(comparer) {\n return reduce(isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); });\n}\n//# sourceMappingURL=max.js.map","import { mergeMap } from './mergeMap';\nexport var flatMap = mergeMap;\n//# sourceMappingURL=flatMap.js.map","import { mergeMap } from './mergeMap';\nimport { isFunction } from '../util/isFunction';\nexport function mergeMapTo(innerObservable, resultSelector, concurrent) {\n if (concurrent === void 0) { concurrent = Infinity; }\n if (isFunction(resultSelector)) {\n return mergeMap(function () { return innerObservable; }, resultSelector, concurrent);\n }\n if (typeof resultSelector === 'number') {\n concurrent = resultSelector;\n }\n return mergeMap(function () { return innerObservable; }, concurrent);\n}\n//# sourceMappingURL=mergeMapTo.js.map","import { operate } from '../util/lift';\nimport { mergeInternals } from './mergeInternals';\nexport function mergeScan(accumulator, seed, concurrent) {\n if (concurrent === void 0) { concurrent = Infinity; }\n return operate(function (source, subscriber) {\n var state = seed;\n return mergeInternals(source, subscriber, function (value, index) { return accumulator(state, value, index); }, concurrent, function (value) {\n state = value;\n }, false, undefined, function () { return (state = null); });\n });\n}\n//# sourceMappingURL=mergeScan.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { operate } from '../util/lift';\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { mergeAll } from './mergeAll';\nimport { popNumber, popScheduler } from '../util/args';\nimport { from } from '../observable/from';\nexport function merge() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var scheduler = popScheduler(args);\n var concurrent = popNumber(args, Infinity);\n args = argsOrArgArray(args);\n return operate(function (source, subscriber) {\n mergeAll(concurrent)(from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber);\n });\n}\n//# sourceMappingURL=merge.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { merge } from './merge';\nexport function mergeWith() {\n var otherSources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n otherSources[_i] = arguments[_i];\n }\n return merge.apply(void 0, __spreadArray([], __read(otherSources)));\n}\n//# sourceMappingURL=mergeWith.js.map","import { reduce } from './reduce';\nimport { isFunction } from '../util/isFunction';\nexport function min(comparer) {\n return reduce(isFunction(comparer) ? function (x, y) { return (comparer(x, y) < 0 ? x : y); } : function (x, y) { return (x < y ? x : y); });\n}\n//# sourceMappingURL=min.js.map","import { ConnectableObservable } from '../observable/ConnectableObservable';\nimport { isFunction } from '../util/isFunction';\nimport { connect } from './connect';\nexport function multicast(subjectOrSubjectFactory, selector) {\n var subjectFactory = isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function () { return subjectOrSubjectFactory; };\n if (isFunction(selector)) {\n return connect(selector, {\n connector: subjectFactory,\n });\n }\n return function (source) { return new ConnectableObservable(source, subjectFactory); };\n}\n//# sourceMappingURL=multicast.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { onErrorResumeNext as oERNCreate } from '../observable/onErrorResumeNext';\nexport function onErrorResumeNextWith() {\n var sources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n sources[_i] = arguments[_i];\n }\n var nextSources = argsOrArgArray(sources);\n return function (source) { return oERNCreate.apply(void 0, __spreadArray([source], __read(nextSources))); };\n}\nexport var onErrorResumeNext = onErrorResumeNextWith;\n//# sourceMappingURL=onErrorResumeNextWith.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function pairwise() {\n return operate(function (source, subscriber) {\n var prev;\n var hasPrev = false;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var p = prev;\n prev = value;\n hasPrev && subscriber.next([p, value]);\n hasPrev = true;\n }));\n });\n}\n//# sourceMappingURL=pairwise.js.map","import { map } from './map';\nexport function pluck() {\n var properties = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n properties[_i] = arguments[_i];\n }\n var length = properties.length;\n if (length === 0) {\n throw new Error('list of properties cannot be empty.');\n }\n return map(function (x) {\n var currentProp = x;\n for (var i = 0; i < length; i++) {\n var p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]];\n if (typeof p !== 'undefined') {\n currentProp = p;\n }\n else {\n return undefined;\n }\n }\n return currentProp;\n });\n}\n//# sourceMappingURL=pluck.js.map","import { Subject } from '../Subject';\nimport { multicast } from './multicast';\nimport { connect } from './connect';\nexport function publish(selector) {\n return selector ? function (source) { return connect(selector)(source); } : function (source) { return multicast(new Subject())(source); };\n}\n//# sourceMappingURL=publish.js.map","import { BehaviorSubject } from '../BehaviorSubject';\nimport { ConnectableObservable } from '../observable/ConnectableObservable';\nexport function publishBehavior(initialValue) {\n return function (source) {\n var subject = new BehaviorSubject(initialValue);\n return new ConnectableObservable(source, function () { return subject; });\n };\n}\n//# sourceMappingURL=publishBehavior.js.map","import { AsyncSubject } from '../AsyncSubject';\nimport { ConnectableObservable } from '../observable/ConnectableObservable';\nexport function publishLast() {\n return function (source) {\n var subject = new AsyncSubject();\n return new ConnectableObservable(source, function () { return subject; });\n };\n}\n//# sourceMappingURL=publishLast.js.map","import { ReplaySubject } from '../ReplaySubject';\nimport { multicast } from './multicast';\nimport { isFunction } from '../util/isFunction';\nexport function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) {\n if (selectorOrScheduler && !isFunction(selectorOrScheduler)) {\n timestampProvider = selectorOrScheduler;\n }\n var selector = isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined;\n return function (source) { return multicast(new ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source); };\n}\n//# sourceMappingURL=publishReplay.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { raceInit } from '../observable/race';\nimport { operate } from '../util/lift';\nimport { identity } from '../util/identity';\nexport function raceWith() {\n var otherSources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n otherSources[_i] = arguments[_i];\n }\n return !otherSources.length\n ? identity\n : operate(function (source, subscriber) {\n raceInit(__spreadArray([source], __read(otherSources)))(subscriber);\n });\n}\n//# sourceMappingURL=raceWith.js.map","import { EMPTY } from '../observable/empty';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { timer } from '../observable/timer';\nexport function repeat(countOrConfig) {\n var _a;\n var count = Infinity;\n var delay;\n if (countOrConfig != null) {\n if (typeof countOrConfig === 'object') {\n (_a = countOrConfig.count, count = _a === void 0 ? Infinity : _a, delay = countOrConfig.delay);\n }\n else {\n count = countOrConfig;\n }\n }\n return count <= 0\n ? function () { return EMPTY; }\n : operate(function (source, subscriber) {\n var soFar = 0;\n var sourceSub;\n var resubscribe = function () {\n sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe();\n sourceSub = null;\n if (delay != null) {\n var notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar));\n var notifierSubscriber_1 = createOperatorSubscriber(subscriber, function () {\n notifierSubscriber_1.unsubscribe();\n subscribeToSource();\n });\n notifier.subscribe(notifierSubscriber_1);\n }\n else {\n subscribeToSource();\n }\n };\n var subscribeToSource = function () {\n var syncUnsub = false;\n sourceSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, function () {\n if (++soFar < count) {\n if (sourceSub) {\n resubscribe();\n }\n else {\n syncUnsub = true;\n }\n }\n else {\n subscriber.complete();\n }\n }));\n if (syncUnsub) {\n resubscribe();\n }\n };\n subscribeToSource();\n });\n}\n//# sourceMappingURL=repeat.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function repeatWhen(notifier) {\n return operate(function (source, subscriber) {\n var innerSub;\n var syncResub = false;\n var completions$;\n var isNotifierComplete = false;\n var isMainComplete = false;\n var checkComplete = function () { return isMainComplete && isNotifierComplete && (subscriber.complete(), true); };\n var getCompletionSubject = function () {\n if (!completions$) {\n completions$ = new Subject();\n innerFrom(notifier(completions$)).subscribe(createOperatorSubscriber(subscriber, function () {\n if (innerSub) {\n subscribeForRepeatWhen();\n }\n else {\n syncResub = true;\n }\n }, function () {\n isNotifierComplete = true;\n checkComplete();\n }));\n }\n return completions$;\n };\n var subscribeForRepeatWhen = function () {\n isMainComplete = false;\n innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, function () {\n isMainComplete = true;\n !checkComplete() && getCompletionSubject().next();\n }));\n if (syncResub) {\n innerSub.unsubscribe();\n innerSub = null;\n syncResub = false;\n subscribeForRepeatWhen();\n }\n };\n subscribeForRepeatWhen();\n });\n}\n//# sourceMappingURL=repeatWhen.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\nimport { timer } from '../observable/timer';\nimport { innerFrom } from '../observable/innerFrom';\nexport function retry(configOrCount) {\n if (configOrCount === void 0) { configOrCount = Infinity; }\n var config;\n if (configOrCount && typeof configOrCount === 'object') {\n config = configOrCount;\n }\n else {\n config = {\n count: configOrCount,\n };\n }\n var _a = config.count, count = _a === void 0 ? Infinity : _a, delay = config.delay, _b = config.resetOnSuccess, resetOnSuccess = _b === void 0 ? false : _b;\n return count <= 0\n ? identity\n : operate(function (source, subscriber) {\n var soFar = 0;\n var innerSub;\n var subscribeForRetry = function () {\n var syncUnsub = false;\n innerSub = source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n if (resetOnSuccess) {\n soFar = 0;\n }\n subscriber.next(value);\n }, undefined, function (err) {\n if (soFar++ < count) {\n var resub_1 = function () {\n if (innerSub) {\n innerSub.unsubscribe();\n innerSub = null;\n subscribeForRetry();\n }\n else {\n syncUnsub = true;\n }\n };\n if (delay != null) {\n var notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(err, soFar));\n var notifierSubscriber_1 = createOperatorSubscriber(subscriber, function () {\n notifierSubscriber_1.unsubscribe();\n resub_1();\n }, function () {\n subscriber.complete();\n });\n notifier.subscribe(notifierSubscriber_1);\n }\n else {\n resub_1();\n }\n }\n else {\n subscriber.error(err);\n }\n }));\n if (syncUnsub) {\n innerSub.unsubscribe();\n innerSub = null;\n subscribeForRetry();\n }\n };\n subscribeForRetry();\n });\n}\n//# sourceMappingURL=retry.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function retryWhen(notifier) {\n return operate(function (source, subscriber) {\n var innerSub;\n var syncResub = false;\n var errors$;\n var subscribeForRetryWhen = function () {\n innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, function (err) {\n if (!errors$) {\n errors$ = new Subject();\n innerFrom(notifier(errors$)).subscribe(createOperatorSubscriber(subscriber, function () {\n return innerSub ? subscribeForRetryWhen() : (syncResub = true);\n }));\n }\n if (errors$) {\n errors$.next(err);\n }\n }));\n if (syncResub) {\n innerSub.unsubscribe();\n innerSub = null;\n syncResub = false;\n subscribeForRetryWhen();\n }\n };\n subscribeForRetryWhen();\n });\n}\n//# sourceMappingURL=retryWhen.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { noop } from '../util/noop';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function sample(notifier) {\n return operate(function (source, subscriber) {\n var hasValue = false;\n var lastValue = null;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n hasValue = true;\n lastValue = value;\n }));\n innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, function () {\n if (hasValue) {\n hasValue = false;\n var value = lastValue;\n lastValue = null;\n subscriber.next(value);\n }\n }, noop));\n });\n}\n//# sourceMappingURL=sample.js.map","import { asyncScheduler } from '../scheduler/async';\nimport { sample } from './sample';\nimport { interval } from '../observable/interval';\nexport function sampleTime(period, scheduler) {\n if (scheduler === void 0) { scheduler = asyncScheduler; }\n return sample(interval(period, scheduler));\n}\n//# sourceMappingURL=sampleTime.js.map","import { operate } from '../util/lift';\nimport { scanInternals } from './scanInternals';\nexport function scan(accumulator, seed) {\n return operate(scanInternals(accumulator, seed, arguments.length >= 2, true));\n}\n//# sourceMappingURL=scan.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function sequenceEqual(compareTo, comparator) {\n if (comparator === void 0) { comparator = function (a, b) { return a === b; }; }\n return operate(function (source, subscriber) {\n var aState = createState();\n var bState = createState();\n var emit = function (isEqual) {\n subscriber.next(isEqual);\n subscriber.complete();\n };\n var createSubscriber = function (selfState, otherState) {\n var sequenceEqualSubscriber = createOperatorSubscriber(subscriber, function (a) {\n var buffer = otherState.buffer, complete = otherState.complete;\n if (buffer.length === 0) {\n complete ? emit(false) : selfState.buffer.push(a);\n }\n else {\n !comparator(a, buffer.shift()) && emit(false);\n }\n }, function () {\n selfState.complete = true;\n var complete = otherState.complete, buffer = otherState.buffer;\n complete && emit(buffer.length === 0);\n sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe();\n });\n return sequenceEqualSubscriber;\n };\n source.subscribe(createSubscriber(aState, bState));\n innerFrom(compareTo).subscribe(createSubscriber(bState, aState));\n });\n}\nfunction createState() {\n return {\n buffer: [],\n complete: false,\n };\n}\n//# sourceMappingURL=sequenceEqual.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { innerFrom } from '../observable/innerFrom';\nimport { Subject } from '../Subject';\nimport { SafeSubscriber } from '../Subscriber';\nimport { operate } from '../util/lift';\nexport function share(options) {\n if (options === void 0) { options = {}; }\n var _a = options.connector, connector = _a === void 0 ? function () { return new Subject(); } : _a, _b = options.resetOnError, resetOnError = _b === void 0 ? true : _b, _c = options.resetOnComplete, resetOnComplete = _c === void 0 ? true : _c, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d;\n return function (wrapperSource) {\n var connection;\n var resetConnection;\n var subject;\n var refCount = 0;\n var hasCompleted = false;\n var hasErrored = false;\n var cancelReset = function () {\n resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe();\n resetConnection = undefined;\n };\n var reset = function () {\n cancelReset();\n connection = subject = undefined;\n hasCompleted = hasErrored = false;\n };\n var resetAndUnsubscribe = function () {\n var conn = connection;\n reset();\n conn === null || conn === void 0 ? void 0 : conn.unsubscribe();\n };\n return operate(function (source, subscriber) {\n refCount++;\n if (!hasErrored && !hasCompleted) {\n cancelReset();\n }\n var dest = (subject = subject !== null && subject !== void 0 ? subject : connector());\n subscriber.add(function () {\n refCount--;\n if (refCount === 0 && !hasErrored && !hasCompleted) {\n resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero);\n }\n });\n dest.subscribe(subscriber);\n if (!connection &&\n refCount > 0) {\n connection = new SafeSubscriber({\n next: function (value) { return dest.next(value); },\n error: function (err) {\n hasErrored = true;\n cancelReset();\n resetConnection = handleReset(reset, resetOnError, err);\n dest.error(err);\n },\n complete: function () {\n hasCompleted = true;\n cancelReset();\n resetConnection = handleReset(reset, resetOnComplete);\n dest.complete();\n },\n });\n innerFrom(source).subscribe(connection);\n }\n })(wrapperSource);\n };\n}\nfunction handleReset(reset, on) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n if (on === true) {\n reset();\n return;\n }\n if (on === false) {\n return;\n }\n var onSubscriber = new SafeSubscriber({\n next: function () {\n onSubscriber.unsubscribe();\n reset();\n },\n });\n return innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber);\n}\n//# sourceMappingURL=share.js.map","import { ReplaySubject } from '../ReplaySubject';\nimport { share } from './share';\nexport function shareReplay(configOrBufferSize, windowTime, scheduler) {\n var _a, _b, _c;\n var bufferSize;\n var refCount = false;\n if (configOrBufferSize && typeof configOrBufferSize === 'object') {\n (_a = configOrBufferSize.bufferSize, bufferSize = _a === void 0 ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler);\n }\n else {\n bufferSize = (configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity);\n }\n return share({\n connector: function () { return new ReplaySubject(bufferSize, windowTime, scheduler); },\n resetOnError: true,\n resetOnComplete: false,\n resetOnRefCountZero: refCount,\n });\n}\n//# sourceMappingURL=shareReplay.js.map","import { EmptyError } from '../util/EmptyError';\nimport { SequenceError } from '../util/SequenceError';\nimport { NotFoundError } from '../util/NotFoundError';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function single(predicate) {\n return operate(function (source, subscriber) {\n var hasValue = false;\n var singleValue;\n var seenValue = false;\n var index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n seenValue = true;\n if (!predicate || predicate(value, index++, source)) {\n hasValue && subscriber.error(new SequenceError('Too many matching values'));\n hasValue = true;\n singleValue = value;\n }\n }, function () {\n if (hasValue) {\n subscriber.next(singleValue);\n subscriber.complete();\n }\n else {\n subscriber.error(seenValue ? new NotFoundError('No matching values') : new EmptyError());\n }\n }));\n });\n}\n//# sourceMappingURL=single.js.map","import { filter } from './filter';\nexport function skip(count) {\n return filter(function (_, index) { return count <= index; });\n}\n//# sourceMappingURL=skip.js.map","import { identity } from '../util/identity';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function skipLast(skipCount) {\n return skipCount <= 0\n ?\n identity\n : operate(function (source, subscriber) {\n var ring = new Array(skipCount);\n var seen = 0;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var valueIndex = seen++;\n if (valueIndex < skipCount) {\n ring[valueIndex] = value;\n }\n else {\n var index = valueIndex % skipCount;\n var oldValue = ring[index];\n ring[index] = value;\n subscriber.next(oldValue);\n }\n }));\n return function () {\n ring = null;\n };\n });\n}\n//# sourceMappingURL=skipLast.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\nexport function skipUntil(notifier) {\n return operate(function (source, subscriber) {\n var taking = false;\n var skipSubscriber = createOperatorSubscriber(subscriber, function () {\n skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe();\n taking = true;\n }, noop);\n innerFrom(notifier).subscribe(skipSubscriber);\n source.subscribe(createOperatorSubscriber(subscriber, function (value) { return taking && subscriber.next(value); }));\n });\n}\n//# sourceMappingURL=skipUntil.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function skipWhile(predicate) {\n return operate(function (source, subscriber) {\n var taking = false;\n var index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) { return (taking || (taking = !predicate(value, index++))) && subscriber.next(value); }));\n });\n}\n//# sourceMappingURL=skipWhile.js.map","import { concat } from '../observable/concat';\nimport { popScheduler } from '../util/args';\nimport { operate } from '../util/lift';\nexport function startWith() {\n var values = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n values[_i] = arguments[_i];\n }\n var scheduler = popScheduler(values);\n return operate(function (source, subscriber) {\n (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber);\n });\n}\n//# sourceMappingURL=startWith.js.map","import { innerFrom } from '../observable/innerFrom';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function switchMap(project, resultSelector) {\n return operate(function (source, subscriber) {\n var innerSubscriber = null;\n var index = 0;\n var isComplete = false;\n var checkComplete = function () { return isComplete && !innerSubscriber && subscriber.complete(); };\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe();\n var innerIndex = 0;\n var outerIndex = index++;\n innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = createOperatorSubscriber(subscriber, function (innerValue) { return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue); }, function () {\n innerSubscriber = null;\n checkComplete();\n })));\n }, function () {\n isComplete = true;\n checkComplete();\n }));\n });\n}\n//# sourceMappingURL=switchMap.js.map","import { switchMap } from './switchMap';\nimport { identity } from '../util/identity';\nexport function switchAll() {\n return switchMap(identity);\n}\n//# sourceMappingURL=switchAll.js.map","import { switchMap } from './switchMap';\nimport { isFunction } from '../util/isFunction';\nexport function switchMapTo(innerObservable, resultSelector) {\n return isFunction(resultSelector) ? switchMap(function () { return innerObservable; }, resultSelector) : switchMap(function () { return innerObservable; });\n}\n//# sourceMappingURL=switchMapTo.js.map","import { switchMap } from './switchMap';\nimport { operate } from '../util/lift';\nexport function switchScan(accumulator, seed) {\n return operate(function (source, subscriber) {\n var state = seed;\n switchMap(function (value, index) { return accumulator(state, value, index); }, function (_, innerValue) { return ((state = innerValue), innerValue); })(source).subscribe(subscriber);\n return function () {\n state = null;\n };\n });\n}\n//# sourceMappingURL=switchScan.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { noop } from '../util/noop';\nexport function takeUntil(notifier) {\n return operate(function (source, subscriber) {\n innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, function () { return subscriber.complete(); }, noop));\n !subscriber.closed && source.subscribe(subscriber);\n });\n}\n//# sourceMappingURL=takeUntil.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function takeWhile(predicate, inclusive) {\n if (inclusive === void 0) { inclusive = false; }\n return operate(function (source, subscriber) {\n var index = 0;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var result = predicate(value, index++);\n (result || inclusive) && subscriber.next(value);\n !result && subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=takeWhile.js.map","import { isFunction } from '../util/isFunction';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { identity } from '../util/identity';\nexport function tap(observerOrNext, error, complete) {\n var tapObserver = isFunction(observerOrNext) || error || complete\n ?\n { next: observerOrNext, error: error, complete: complete }\n : observerOrNext;\n return tapObserver\n ? operate(function (source, subscriber) {\n var _a;\n (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n var isUnsub = true;\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var _a;\n (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value);\n subscriber.next(value);\n }, function () {\n var _a;\n isUnsub = false;\n (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n subscriber.complete();\n }, function (err) {\n var _a;\n isUnsub = false;\n (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err);\n subscriber.error(err);\n }, function () {\n var _a, _b;\n if (isUnsub) {\n (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver);\n }\n (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver);\n }));\n })\n :\n identity;\n}\n//# sourceMappingURL=tap.js.map","import { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function throttle(durationSelector, config) {\n return operate(function (source, subscriber) {\n var _a = config !== null && config !== void 0 ? config : {}, _b = _a.leading, leading = _b === void 0 ? true : _b, _c = _a.trailing, trailing = _c === void 0 ? false : _c;\n var hasValue = false;\n var sendValue = null;\n var throttled = null;\n var isComplete = false;\n var endThrottling = function () {\n throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe();\n throttled = null;\n if (trailing) {\n send();\n isComplete && subscriber.complete();\n }\n };\n var cleanupThrottling = function () {\n throttled = null;\n isComplete && subscriber.complete();\n };\n var startThrottle = function (value) {\n return (throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling)));\n };\n var send = function () {\n if (hasValue) {\n hasValue = false;\n var value = sendValue;\n sendValue = null;\n subscriber.next(value);\n !isComplete && startThrottle(value);\n }\n };\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n hasValue = true;\n sendValue = value;\n !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value));\n }, function () {\n isComplete = true;\n !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete();\n }));\n });\n}\n//# sourceMappingURL=throttle.js.map","import { asyncScheduler } from '../scheduler/async';\nimport { throttle } from './throttle';\nimport { timer } from '../observable/timer';\nexport function throttleTime(duration, scheduler, config) {\n if (scheduler === void 0) { scheduler = asyncScheduler; }\n var duration$ = timer(duration, scheduler);\n return throttle(function () { return duration$; }, config);\n}\n//# sourceMappingURL=throttleTime.js.map","import { asyncScheduler } from '../scheduler/async';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function timeInterval(scheduler) {\n if (scheduler === void 0) { scheduler = asyncScheduler; }\n return operate(function (source, subscriber) {\n var last = scheduler.now();\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var now = scheduler.now();\n var interval = now - last;\n last = now;\n subscriber.next(new TimeInterval(value, interval));\n }));\n });\n}\nvar TimeInterval = (function () {\n function TimeInterval(value, interval) {\n this.value = value;\n this.interval = interval;\n }\n return TimeInterval;\n}());\nexport { TimeInterval };\n//# sourceMappingURL=timeInterval.js.map","import { async } from '../scheduler/async';\nimport { isValidDate } from '../util/isDate';\nimport { timeout } from './timeout';\nexport function timeoutWith(due, withObservable, scheduler) {\n var first;\n var each;\n var _with;\n scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async;\n if (isValidDate(due)) {\n first = due;\n }\n else if (typeof due === 'number') {\n each = due;\n }\n if (withObservable) {\n _with = function () { return withObservable; };\n }\n else {\n throw new TypeError('No observable provided to switch to');\n }\n if (first == null && each == null) {\n throw new TypeError('No timeout provided.');\n }\n return timeout({\n first: first,\n each: each,\n scheduler: scheduler,\n with: _with,\n });\n}\n//# sourceMappingURL=timeoutWith.js.map","import { dateTimestampProvider } from '../scheduler/dateTimestampProvider';\nimport { map } from './map';\nexport function timestamp(timestampProvider) {\n if (timestampProvider === void 0) { timestampProvider = dateTimestampProvider; }\n return map(function (value) { return ({ value: value, timestamp: timestampProvider.now() }); });\n}\n//# sourceMappingURL=timestamp.js.map","import { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nimport { innerFrom } from '../observable/innerFrom';\nexport function window(windowBoundaries) {\n return operate(function (source, subscriber) {\n var windowSubject = new Subject();\n subscriber.next(windowSubject.asObservable());\n var errorHandler = function (err) {\n windowSubject.error(err);\n subscriber.error(err);\n };\n source.subscribe(createOperatorSubscriber(subscriber, function (value) { return windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value); }, function () {\n windowSubject.complete();\n subscriber.complete();\n }, errorHandler));\n innerFrom(windowBoundaries).subscribe(createOperatorSubscriber(subscriber, function () {\n windowSubject.complete();\n subscriber.next((windowSubject = new Subject()));\n }, noop, errorHandler));\n return function () {\n windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe();\n windowSubject = null;\n };\n });\n}\n//# sourceMappingURL=window.js.map","import { __values } from \"tslib\";\nimport { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nexport function windowCount(windowSize, startWindowEvery) {\n if (startWindowEvery === void 0) { startWindowEvery = 0; }\n var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize;\n return operate(function (source, subscriber) {\n var windows = [new Subject()];\n var starts = [];\n var count = 0;\n subscriber.next(windows[0].asObservable());\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var e_1, _a;\n try {\n for (var windows_1 = __values(windows), windows_1_1 = windows_1.next(); !windows_1_1.done; windows_1_1 = windows_1.next()) {\n var window_1 = windows_1_1.value;\n window_1.next(value);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (windows_1_1 && !windows_1_1.done && (_a = windows_1.return)) _a.call(windows_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n var c = count - windowSize + 1;\n if (c >= 0 && c % startEvery === 0) {\n windows.shift().complete();\n }\n if (++count % startEvery === 0) {\n var window_2 = new Subject();\n windows.push(window_2);\n subscriber.next(window_2.asObservable());\n }\n }, function () {\n while (windows.length > 0) {\n windows.shift().complete();\n }\n subscriber.complete();\n }, function (err) {\n while (windows.length > 0) {\n windows.shift().error(err);\n }\n subscriber.error(err);\n }, function () {\n starts = null;\n windows = null;\n }));\n });\n}\n//# sourceMappingURL=windowCount.js.map","import { Subject } from '../Subject';\nimport { asyncScheduler } from '../scheduler/async';\nimport { Subscription } from '../Subscription';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { arrRemove } from '../util/arrRemove';\nimport { popScheduler } from '../util/args';\nimport { executeSchedule } from '../util/executeSchedule';\nexport function windowTime(windowTimeSpan) {\n var _a, _b;\n var otherArgs = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n otherArgs[_i - 1] = arguments[_i];\n }\n var scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler;\n var windowCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null;\n var maxWindowSize = otherArgs[1] || Infinity;\n return operate(function (source, subscriber) {\n var windowRecords = [];\n var restartOnClose = false;\n var closeWindow = function (record) {\n var window = record.window, subs = record.subs;\n window.complete();\n subs.unsubscribe();\n arrRemove(windowRecords, record);\n restartOnClose && startWindow();\n };\n var startWindow = function () {\n if (windowRecords) {\n var subs = new Subscription();\n subscriber.add(subs);\n var window_1 = new Subject();\n var record_1 = {\n window: window_1,\n subs: subs,\n seen: 0,\n };\n windowRecords.push(record_1);\n subscriber.next(window_1.asObservable());\n executeSchedule(subs, scheduler, function () { return closeWindow(record_1); }, windowTimeSpan);\n }\n };\n if (windowCreationInterval !== null && windowCreationInterval >= 0) {\n executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true);\n }\n else {\n restartOnClose = true;\n }\n startWindow();\n var loop = function (cb) { return windowRecords.slice().forEach(cb); };\n var terminate = function (cb) {\n loop(function (_a) {\n var window = _a.window;\n return cb(window);\n });\n cb(subscriber);\n subscriber.unsubscribe();\n };\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n loop(function (record) {\n record.window.next(value);\n maxWindowSize <= ++record.seen && closeWindow(record);\n });\n }, function () { return terminate(function (consumer) { return consumer.complete(); }); }, function (err) { return terminate(function (consumer) { return consumer.error(err); }); }));\n return function () {\n windowRecords = null;\n };\n });\n}\n//# sourceMappingURL=windowTime.js.map","import { __values } from \"tslib\";\nimport { Subject } from '../Subject';\nimport { Subscription } from '../Subscription';\nimport { operate } from '../util/lift';\nimport { innerFrom } from '../observable/innerFrom';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { noop } from '../util/noop';\nimport { arrRemove } from '../util/arrRemove';\nexport function windowToggle(openings, closingSelector) {\n return operate(function (source, subscriber) {\n var windows = [];\n var handleError = function (err) {\n while (0 < windows.length) {\n windows.shift().error(err);\n }\n subscriber.error(err);\n };\n innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, function (openValue) {\n var window = new Subject();\n windows.push(window);\n var closingSubscription = new Subscription();\n var closeWindow = function () {\n arrRemove(windows, window);\n window.complete();\n closingSubscription.unsubscribe();\n };\n var closingNotifier;\n try {\n closingNotifier = innerFrom(closingSelector(openValue));\n }\n catch (err) {\n handleError(err);\n return;\n }\n subscriber.next(window.asObservable());\n closingSubscription.add(closingNotifier.subscribe(createOperatorSubscriber(subscriber, closeWindow, noop, handleError)));\n }, noop));\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n var e_1, _a;\n var windowsCopy = windows.slice();\n try {\n for (var windowsCopy_1 = __values(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) {\n var window_1 = windowsCopy_1_1.value;\n window_1.next(value);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a = windowsCopy_1.return)) _a.call(windowsCopy_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }, function () {\n while (0 < windows.length) {\n windows.shift().complete();\n }\n subscriber.complete();\n }, handleError, function () {\n while (0 < windows.length) {\n windows.shift().unsubscribe();\n }\n }));\n });\n}\n//# sourceMappingURL=windowToggle.js.map","import { Subject } from '../Subject';\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nexport function windowWhen(closingSelector) {\n return operate(function (source, subscriber) {\n var window;\n var closingSubscriber;\n var handleError = function (err) {\n window.error(err);\n subscriber.error(err);\n };\n var openWindow = function () {\n closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();\n window === null || window === void 0 ? void 0 : window.complete();\n window = new Subject();\n subscriber.next(window.asObservable());\n var closingNotifier;\n try {\n closingNotifier = innerFrom(closingSelector());\n }\n catch (err) {\n handleError(err);\n return;\n }\n closingNotifier.subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openWindow, openWindow, handleError)));\n };\n openWindow();\n source.subscribe(createOperatorSubscriber(subscriber, function (value) { return window.next(value); }, function () {\n window.complete();\n subscriber.complete();\n }, handleError, function () {\n closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe();\n window = null;\n }));\n });\n}\n//# sourceMappingURL=windowWhen.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { operate } from '../util/lift';\nimport { createOperatorSubscriber } from './OperatorSubscriber';\nimport { innerFrom } from '../observable/innerFrom';\nimport { identity } from '../util/identity';\nimport { noop } from '../util/noop';\nimport { popResultSelector } from '../util/args';\nexport function withLatestFrom() {\n var inputs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n inputs[_i] = arguments[_i];\n }\n var project = popResultSelector(inputs);\n return operate(function (source, subscriber) {\n var len = inputs.length;\n var otherValues = new Array(len);\n var hasValue = inputs.map(function () { return false; });\n var ready = false;\n var _loop_1 = function (i) {\n innerFrom(inputs[i]).subscribe(createOperatorSubscriber(subscriber, function (value) {\n otherValues[i] = value;\n if (!ready && !hasValue[i]) {\n hasValue[i] = true;\n (ready = hasValue.every(identity)) && (hasValue = null);\n }\n }, noop));\n };\n for (var i = 0; i < len; i++) {\n _loop_1(i);\n }\n source.subscribe(createOperatorSubscriber(subscriber, function (value) {\n if (ready) {\n var values = __spreadArray([value], __read(otherValues));\n subscriber.next(project ? project.apply(void 0, __spreadArray([], __read(values))) : values);\n }\n }));\n });\n}\n//# sourceMappingURL=withLatestFrom.js.map","import { zip } from '../observable/zip';\nimport { joinAllInternals } from './joinAllInternals';\nexport function zipAll(project) {\n return joinAllInternals(zip, project);\n}\n//# sourceMappingURL=zipAll.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { zip as zipStatic } from '../observable/zip';\nimport { operate } from '../util/lift';\nexport function zip() {\n var sources = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n sources[_i] = arguments[_i];\n }\n return operate(function (source, subscriber) {\n zipStatic.apply(void 0, __spreadArray([source], __read(sources))).subscribe(subscriber);\n });\n}\n//# sourceMappingURL=zip.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { zip } from './zip';\nexport function zipWith() {\n var otherInputs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n otherInputs[_i] = arguments[_i];\n }\n return zip.apply(void 0, __spreadArray([], __read(otherInputs)));\n}\n//# sourceMappingURL=zipWith.js.map","import { not } from '../util/not';\nimport { filter } from './filter';\nexport function partition(predicate, thisArg) {\n return function (source) {\n return [filter(predicate, thisArg)(source), filter(not(predicate, thisArg))(source)];\n };\n}\n//# sourceMappingURL=partition.js.map","import { __read, __spreadArray } from \"tslib\";\nimport { argsOrArgArray } from '../util/argsOrArgArray';\nimport { raceWith } from './raceWith';\nexport function race() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return raceWith.apply(void 0, __spreadArray([], __read(argsOrArgArray(args))));\n}\n//# sourceMappingURL=race.js.map","var SubscriptionLog = (function () {\n function SubscriptionLog(subscribedFrame, unsubscribedFrame) {\n if (unsubscribedFrame === void 0) { unsubscribedFrame = Infinity; }\n this.subscribedFrame = subscribedFrame;\n this.unsubscribedFrame = unsubscribedFrame;\n }\n return SubscriptionLog;\n}());\nexport { SubscriptionLog };\n//# sourceMappingURL=SubscriptionLog.js.map","import { SubscriptionLog } from './SubscriptionLog';\nvar SubscriptionLoggable = (function () {\n function SubscriptionLoggable() {\n this.subscriptions = [];\n }\n SubscriptionLoggable.prototype.logSubscribedFrame = function () {\n this.subscriptions.push(new SubscriptionLog(this.scheduler.now()));\n return this.subscriptions.length - 1;\n };\n SubscriptionLoggable.prototype.logUnsubscribedFrame = function (index) {\n var subscriptionLogs = this.subscriptions;\n var oldSubscriptionLog = subscriptionLogs[index];\n subscriptionLogs[index] = new SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now());\n };\n return SubscriptionLoggable;\n}());\nexport { SubscriptionLoggable };\n//# sourceMappingURL=SubscriptionLoggable.js.map","export function applyMixins(derivedCtor, baseCtors) {\n for (var i = 0, len = baseCtors.length; i < len; i++) {\n var baseCtor = baseCtors[i];\n var propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype);\n for (var j = 0, len2 = propertyKeys.length; j < len2; j++) {\n var name_1 = propertyKeys[j];\n derivedCtor.prototype[name_1] = baseCtor.prototype[name_1];\n }\n }\n}\n//# sourceMappingURL=applyMixins.js.map","import { __extends } from \"tslib\";\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { SubscriptionLoggable } from './SubscriptionLoggable';\nimport { applyMixins } from '../util/applyMixins';\nimport { observeNotification } from '../Notification';\nvar ColdObservable = (function (_super) {\n __extends(ColdObservable, _super);\n function ColdObservable(messages, scheduler) {\n var _this = _super.call(this, function (subscriber) {\n var observable = this;\n var index = observable.logSubscribedFrame();\n var subscription = new Subscription();\n subscription.add(new Subscription(function () {\n observable.logUnsubscribedFrame(index);\n }));\n observable.scheduleMessages(subscriber);\n return subscription;\n }) || this;\n _this.messages = messages;\n _this.subscriptions = [];\n _this.scheduler = scheduler;\n return _this;\n }\n ColdObservable.prototype.scheduleMessages = function (subscriber) {\n var messagesLength = this.messages.length;\n for (var i = 0; i < messagesLength; i++) {\n var message = this.messages[i];\n subscriber.add(this.scheduler.schedule(function (state) {\n var _a = state, notification = _a.message.notification, destination = _a.subscriber;\n observeNotification(notification, destination);\n }, message.frame, { message: message, subscriber: subscriber }));\n }\n };\n return ColdObservable;\n}(Observable));\nexport { ColdObservable };\napplyMixins(ColdObservable, [SubscriptionLoggable]);\n//# sourceMappingURL=ColdObservable.js.map","import { __extends } from \"tslib\";\nimport { Subject } from '../Subject';\nimport { Subscription } from '../Subscription';\nimport { SubscriptionLoggable } from './SubscriptionLoggable';\nimport { applyMixins } from '../util/applyMixins';\nimport { observeNotification } from '../Notification';\nvar HotObservable = (function (_super) {\n __extends(HotObservable, _super);\n function HotObservable(messages, scheduler) {\n var _this = _super.call(this) || this;\n _this.messages = messages;\n _this.subscriptions = [];\n _this.scheduler = scheduler;\n return _this;\n }\n HotObservable.prototype._subscribe = function (subscriber) {\n var subject = this;\n var index = subject.logSubscribedFrame();\n var subscription = new Subscription();\n subscription.add(new Subscription(function () {\n subject.logUnsubscribedFrame(index);\n }));\n subscription.add(_super.prototype._subscribe.call(this, subscriber));\n return subscription;\n };\n HotObservable.prototype.setup = function () {\n var subject = this;\n var messagesLength = subject.messages.length;\n var _loop_1 = function (i) {\n (function () {\n var _a = subject.messages[i], notification = _a.notification, frame = _a.frame;\n subject.scheduler.schedule(function () {\n observeNotification(notification, subject);\n }, frame);\n })();\n };\n for (var i = 0; i < messagesLength; i++) {\n _loop_1(i);\n }\n };\n return HotObservable;\n}(Subject));\nexport { HotObservable };\napplyMixins(HotObservable, [SubscriptionLoggable]);\n//# sourceMappingURL=HotObservable.js.map","import { __extends, __read, __spreadArray, __values } from \"tslib\";\nimport { Observable } from '../Observable';\nimport { ColdObservable } from './ColdObservable';\nimport { HotObservable } from './HotObservable';\nimport { SubscriptionLog } from './SubscriptionLog';\nimport { VirtualTimeScheduler, VirtualAction } from '../scheduler/VirtualTimeScheduler';\nimport { COMPLETE_NOTIFICATION, errorNotification, nextNotification } from '../NotificationFactories';\nimport { dateTimestampProvider } from '../scheduler/dateTimestampProvider';\nimport { performanceTimestampProvider } from '../scheduler/performanceTimestampProvider';\nimport { animationFrameProvider } from '../scheduler/animationFrameProvider';\nimport { immediateProvider } from '../scheduler/immediateProvider';\nimport { intervalProvider } from '../scheduler/intervalProvider';\nimport { timeoutProvider } from '../scheduler/timeoutProvider';\nvar defaultMaxFrame = 750;\nvar TestScheduler = (function (_super) {\n __extends(TestScheduler, _super);\n function TestScheduler(assertDeepEqual) {\n var _this = _super.call(this, VirtualAction, defaultMaxFrame) || this;\n _this.assertDeepEqual = assertDeepEqual;\n _this.hotObservables = [];\n _this.coldObservables = [];\n _this.flushTests = [];\n _this.runMode = false;\n return _this;\n }\n TestScheduler.prototype.createTime = function (marbles) {\n var indexOf = this.runMode ? marbles.trim().indexOf('|') : marbles.indexOf('|');\n if (indexOf === -1) {\n throw new Error('marble diagram for time should have a completion marker \"|\"');\n }\n return indexOf * TestScheduler.frameTimeFactor;\n };\n TestScheduler.prototype.createColdObservable = function (marbles, values, error) {\n if (marbles.indexOf('^') !== -1) {\n throw new Error('cold observable cannot have subscription offset \"^\"');\n }\n if (marbles.indexOf('!') !== -1) {\n throw new Error('cold observable cannot have unsubscription marker \"!\"');\n }\n var messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode);\n var cold = new ColdObservable(messages, this);\n this.coldObservables.push(cold);\n return cold;\n };\n TestScheduler.prototype.createHotObservable = function (marbles, values, error) {\n if (marbles.indexOf('!') !== -1) {\n throw new Error('hot observable cannot have unsubscription marker \"!\"');\n }\n var messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode);\n var subject = new HotObservable(messages, this);\n this.hotObservables.push(subject);\n return subject;\n };\n TestScheduler.prototype.materializeInnerObservable = function (observable, outerFrame) {\n var _this = this;\n var messages = [];\n observable.subscribe({\n next: function (value) {\n messages.push({ frame: _this.frame - outerFrame, notification: nextNotification(value) });\n },\n error: function (error) {\n messages.push({ frame: _this.frame - outerFrame, notification: errorNotification(error) });\n },\n complete: function () {\n messages.push({ frame: _this.frame - outerFrame, notification: COMPLETE_NOTIFICATION });\n },\n });\n return messages;\n };\n TestScheduler.prototype.expectObservable = function (observable, subscriptionMarbles) {\n var _this = this;\n if (subscriptionMarbles === void 0) { subscriptionMarbles = null; }\n var actual = [];\n var flushTest = { actual: actual, ready: false };\n var subscriptionParsed = TestScheduler.parseMarblesAsSubscriptions(subscriptionMarbles, this.runMode);\n var subscriptionFrame = subscriptionParsed.subscribedFrame === Infinity ? 0 : subscriptionParsed.subscribedFrame;\n var unsubscriptionFrame = subscriptionParsed.unsubscribedFrame;\n var subscription;\n this.schedule(function () {\n subscription = observable.subscribe({\n next: function (x) {\n var value = x instanceof Observable ? _this.materializeInnerObservable(x, _this.frame) : x;\n actual.push({ frame: _this.frame, notification: nextNotification(value) });\n },\n error: function (error) {\n actual.push({ frame: _this.frame, notification: errorNotification(error) });\n },\n complete: function () {\n actual.push({ frame: _this.frame, notification: COMPLETE_NOTIFICATION });\n },\n });\n }, subscriptionFrame);\n if (unsubscriptionFrame !== Infinity) {\n this.schedule(function () { return subscription.unsubscribe(); }, unsubscriptionFrame);\n }\n this.flushTests.push(flushTest);\n var runMode = this.runMode;\n return {\n toBe: function (marbles, values, errorValue) {\n flushTest.ready = true;\n flushTest.expected = TestScheduler.parseMarbles(marbles, values, errorValue, true, runMode);\n },\n toEqual: function (other) {\n flushTest.ready = true;\n flushTest.expected = [];\n _this.schedule(function () {\n subscription = other.subscribe({\n next: function (x) {\n var value = x instanceof Observable ? _this.materializeInnerObservable(x, _this.frame) : x;\n flushTest.expected.push({ frame: _this.frame, notification: nextNotification(value) });\n },\n error: function (error) {\n flushTest.expected.push({ frame: _this.frame, notification: errorNotification(error) });\n },\n complete: function () {\n flushTest.expected.push({ frame: _this.frame, notification: COMPLETE_NOTIFICATION });\n },\n });\n }, subscriptionFrame);\n },\n };\n };\n TestScheduler.prototype.expectSubscriptions = function (actualSubscriptionLogs) {\n var flushTest = { actual: actualSubscriptionLogs, ready: false };\n this.flushTests.push(flushTest);\n var runMode = this.runMode;\n return {\n toBe: function (marblesOrMarblesArray) {\n var marblesArray = typeof marblesOrMarblesArray === 'string' ? [marblesOrMarblesArray] : marblesOrMarblesArray;\n flushTest.ready = true;\n flushTest.expected = marblesArray\n .map(function (marbles) { return TestScheduler.parseMarblesAsSubscriptions(marbles, runMode); })\n .filter(function (marbles) { return marbles.subscribedFrame !== Infinity; });\n },\n };\n };\n TestScheduler.prototype.flush = function () {\n var _this = this;\n var hotObservables = this.hotObservables;\n while (hotObservables.length > 0) {\n hotObservables.shift().setup();\n }\n _super.prototype.flush.call(this);\n this.flushTests = this.flushTests.filter(function (test) {\n if (test.ready) {\n _this.assertDeepEqual(test.actual, test.expected);\n return false;\n }\n return true;\n });\n };\n TestScheduler.parseMarblesAsSubscriptions = function (marbles, runMode) {\n var _this = this;\n if (runMode === void 0) { runMode = false; }\n if (typeof marbles !== 'string') {\n return new SubscriptionLog(Infinity);\n }\n var characters = __spreadArray([], __read(marbles));\n var len = characters.length;\n var groupStart = -1;\n var subscriptionFrame = Infinity;\n var unsubscriptionFrame = Infinity;\n var frame = 0;\n var _loop_1 = function (i) {\n var nextFrame = frame;\n var advanceFrameBy = function (count) {\n nextFrame += count * _this.frameTimeFactor;\n };\n var c = characters[i];\n switch (c) {\n case ' ':\n if (!runMode) {\n advanceFrameBy(1);\n }\n break;\n case '-':\n advanceFrameBy(1);\n break;\n case '(':\n groupStart = frame;\n advanceFrameBy(1);\n break;\n case ')':\n groupStart = -1;\n advanceFrameBy(1);\n break;\n case '^':\n if (subscriptionFrame !== Infinity) {\n throw new Error(\"found a second subscription point '^' in a \" + 'subscription marble diagram. There can only be one.');\n }\n subscriptionFrame = groupStart > -1 ? groupStart : frame;\n advanceFrameBy(1);\n break;\n case '!':\n if (unsubscriptionFrame !== Infinity) {\n throw new Error(\"found a second unsubscription point '!' in a \" + 'subscription marble diagram. There can only be one.');\n }\n unsubscriptionFrame = groupStart > -1 ? groupStart : frame;\n break;\n default:\n if (runMode && c.match(/^[0-9]$/)) {\n if (i === 0 || characters[i - 1] === ' ') {\n var buffer = characters.slice(i).join('');\n var match = buffer.match(/^([0-9]+(?:\\.[0-9]+)?)(ms|s|m) /);\n if (match) {\n i += match[0].length - 1;\n var duration = parseFloat(match[1]);\n var unit = match[2];\n var durationInMs = void 0;\n switch (unit) {\n case 'ms':\n durationInMs = duration;\n break;\n case 's':\n durationInMs = duration * 1000;\n break;\n case 'm':\n durationInMs = duration * 1000 * 60;\n break;\n default:\n break;\n }\n advanceFrameBy(durationInMs / this_1.frameTimeFactor);\n break;\n }\n }\n }\n throw new Error(\"there can only be '^' and '!' markers in a \" + \"subscription marble diagram. Found instead '\" + c + \"'.\");\n }\n frame = nextFrame;\n out_i_1 = i;\n };\n var this_1 = this, out_i_1;\n for (var i = 0; i < len; i++) {\n _loop_1(i);\n i = out_i_1;\n }\n if (unsubscriptionFrame < 0) {\n return new SubscriptionLog(subscriptionFrame);\n }\n else {\n return new SubscriptionLog(subscriptionFrame, unsubscriptionFrame);\n }\n };\n TestScheduler.parseMarbles = function (marbles, values, errorValue, materializeInnerObservables, runMode) {\n var _this = this;\n if (materializeInnerObservables === void 0) { materializeInnerObservables = false; }\n if (runMode === void 0) { runMode = false; }\n if (marbles.indexOf('!') !== -1) {\n throw new Error('conventional marble diagrams cannot have the ' + 'unsubscription marker \"!\"');\n }\n var characters = __spreadArray([], __read(marbles));\n var len = characters.length;\n var testMessages = [];\n var subIndex = runMode ? marbles.replace(/^[ ]+/, '').indexOf('^') : marbles.indexOf('^');\n var frame = subIndex === -1 ? 0 : subIndex * -this.frameTimeFactor;\n var getValue = typeof values !== 'object'\n ? function (x) { return x; }\n : function (x) {\n if (materializeInnerObservables && values[x] instanceof ColdObservable) {\n return values[x].messages;\n }\n return values[x];\n };\n var groupStart = -1;\n var _loop_2 = function (i) {\n var nextFrame = frame;\n var advanceFrameBy = function (count) {\n nextFrame += count * _this.frameTimeFactor;\n };\n var notification = void 0;\n var c = characters[i];\n switch (c) {\n case ' ':\n if (!runMode) {\n advanceFrameBy(1);\n }\n break;\n case '-':\n advanceFrameBy(1);\n break;\n case '(':\n groupStart = frame;\n advanceFrameBy(1);\n break;\n case ')':\n groupStart = -1;\n advanceFrameBy(1);\n break;\n case '|':\n notification = COMPLETE_NOTIFICATION;\n advanceFrameBy(1);\n break;\n case '^':\n advanceFrameBy(1);\n break;\n case '#':\n notification = errorNotification(errorValue || 'error');\n advanceFrameBy(1);\n break;\n default:\n if (runMode && c.match(/^[0-9]$/)) {\n if (i === 0 || characters[i - 1] === ' ') {\n var buffer = characters.slice(i).join('');\n var match = buffer.match(/^([0-9]+(?:\\.[0-9]+)?)(ms|s|m) /);\n if (match) {\n i += match[0].length - 1;\n var duration = parseFloat(match[1]);\n var unit = match[2];\n var durationInMs = void 0;\n switch (unit) {\n case 'ms':\n durationInMs = duration;\n break;\n case 's':\n durationInMs = duration * 1000;\n break;\n case 'm':\n durationInMs = duration * 1000 * 60;\n break;\n default:\n break;\n }\n advanceFrameBy(durationInMs / this_2.frameTimeFactor);\n break;\n }\n }\n }\n notification = nextNotification(getValue(c));\n advanceFrameBy(1);\n break;\n }\n if (notification) {\n testMessages.push({ frame: groupStart > -1 ? groupStart : frame, notification: notification });\n }\n frame = nextFrame;\n out_i_2 = i;\n };\n var this_2 = this, out_i_2;\n for (var i = 0; i < len; i++) {\n _loop_2(i);\n i = out_i_2;\n }\n return testMessages;\n };\n TestScheduler.prototype.createAnimator = function () {\n var _this = this;\n if (!this.runMode) {\n throw new Error('animate() must only be used in run mode');\n }\n var lastHandle = 0;\n var map;\n var delegate = {\n requestAnimationFrame: function (callback) {\n if (!map) {\n throw new Error('animate() was not called within run()');\n }\n var handle = ++lastHandle;\n map.set(handle, callback);\n return handle;\n },\n cancelAnimationFrame: function (handle) {\n if (!map) {\n throw new Error('animate() was not called within run()');\n }\n map.delete(handle);\n },\n };\n var animate = function (marbles) {\n var e_1, _a;\n if (map) {\n throw new Error('animate() must not be called more than once within run()');\n }\n if (/[|#]/.test(marbles)) {\n throw new Error('animate() must not complete or error');\n }\n map = new Map();\n var messages = TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true);\n try {\n for (var messages_1 = __values(messages), messages_1_1 = messages_1.next(); !messages_1_1.done; messages_1_1 = messages_1.next()) {\n var message = messages_1_1.value;\n _this.schedule(function () {\n var e_2, _a;\n var now = _this.now();\n var callbacks = Array.from(map.values());\n map.clear();\n try {\n for (var callbacks_1 = (e_2 = void 0, __values(callbacks)), callbacks_1_1 = callbacks_1.next(); !callbacks_1_1.done; callbacks_1_1 = callbacks_1.next()) {\n var callback = callbacks_1_1.value;\n callback(now);\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (callbacks_1_1 && !callbacks_1_1.done && (_a = callbacks_1.return)) _a.call(callbacks_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }, message.frame);\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (messages_1_1 && !messages_1_1.done && (_a = messages_1.return)) _a.call(messages_1);\n }\n finally { if (e_1) throw e_1.error; }\n }\n };\n return { animate: animate, delegate: delegate };\n };\n TestScheduler.prototype.createDelegates = function () {\n var _this = this;\n var lastHandle = 0;\n var scheduleLookup = new Map();\n var run = function () {\n var now = _this.now();\n var scheduledRecords = Array.from(scheduleLookup.values());\n var scheduledRecordsDue = scheduledRecords.filter(function (_a) {\n var due = _a.due;\n return due <= now;\n });\n var dueImmediates = scheduledRecordsDue.filter(function (_a) {\n var type = _a.type;\n return type === 'immediate';\n });\n if (dueImmediates.length > 0) {\n var _a = dueImmediates[0], handle = _a.handle, handler = _a.handler;\n scheduleLookup.delete(handle);\n handler();\n return;\n }\n var dueIntervals = scheduledRecordsDue.filter(function (_a) {\n var type = _a.type;\n return type === 'interval';\n });\n if (dueIntervals.length > 0) {\n var firstDueInterval = dueIntervals[0];\n var duration = firstDueInterval.duration, handler = firstDueInterval.handler;\n firstDueInterval.due = now + duration;\n firstDueInterval.subscription = _this.schedule(run, duration);\n handler();\n return;\n }\n var dueTimeouts = scheduledRecordsDue.filter(function (_a) {\n var type = _a.type;\n return type === 'timeout';\n });\n if (dueTimeouts.length > 0) {\n var _b = dueTimeouts[0], handle = _b.handle, handler = _b.handler;\n scheduleLookup.delete(handle);\n handler();\n return;\n }\n throw new Error('Expected a due immediate or interval');\n };\n var immediate = {\n setImmediate: function (handler) {\n var handle = ++lastHandle;\n scheduleLookup.set(handle, {\n due: _this.now(),\n duration: 0,\n handle: handle,\n handler: handler,\n subscription: _this.schedule(run, 0),\n type: 'immediate',\n });\n return handle;\n },\n clearImmediate: function (handle) {\n var value = scheduleLookup.get(handle);\n if (value) {\n value.subscription.unsubscribe();\n scheduleLookup.delete(handle);\n }\n },\n };\n var interval = {\n setInterval: function (handler, duration) {\n if (duration === void 0) { duration = 0; }\n var handle = ++lastHandle;\n scheduleLookup.set(handle, {\n due: _this.now() + duration,\n duration: duration,\n handle: handle,\n handler: handler,\n subscription: _this.schedule(run, duration),\n type: 'interval',\n });\n return handle;\n },\n clearInterval: function (handle) {\n var value = scheduleLookup.get(handle);\n if (value) {\n value.subscription.unsubscribe();\n scheduleLookup.delete(handle);\n }\n },\n };\n var timeout = {\n setTimeout: function (handler, duration) {\n if (duration === void 0) { duration = 0; }\n var handle = ++lastHandle;\n scheduleLookup.set(handle, {\n due: _this.now() + duration,\n duration: duration,\n handle: handle,\n handler: handler,\n subscription: _this.schedule(run, duration),\n type: 'timeout',\n });\n return handle;\n },\n clearTimeout: function (handle) {\n var value = scheduleLookup.get(handle);\n if (value) {\n value.subscription.unsubscribe();\n scheduleLookup.delete(handle);\n }\n },\n };\n return { immediate: immediate, interval: interval, timeout: timeout };\n };\n TestScheduler.prototype.run = function (callback) {\n var prevFrameTimeFactor = TestScheduler.frameTimeFactor;\n var prevMaxFrames = this.maxFrames;\n TestScheduler.frameTimeFactor = 1;\n this.maxFrames = Infinity;\n this.runMode = true;\n var animator = this.createAnimator();\n var delegates = this.createDelegates();\n animationFrameProvider.delegate = animator.delegate;\n dateTimestampProvider.delegate = this;\n immediateProvider.delegate = delegates.immediate;\n intervalProvider.delegate = delegates.interval;\n timeoutProvider.delegate = delegates.timeout;\n performanceTimestampProvider.delegate = this;\n var helpers = {\n cold: this.createColdObservable.bind(this),\n hot: this.createHotObservable.bind(this),\n flush: this.flush.bind(this),\n time: this.createTime.bind(this),\n expectObservable: this.expectObservable.bind(this),\n expectSubscriptions: this.expectSubscriptions.bind(this),\n animate: animator.animate,\n };\n try {\n var ret = callback(helpers);\n this.flush();\n return ret;\n }\n finally {\n TestScheduler.frameTimeFactor = prevFrameTimeFactor;\n this.maxFrames = prevMaxFrames;\n this.runMode = false;\n animationFrameProvider.delegate = undefined;\n dateTimestampProvider.delegate = undefined;\n immediateProvider.delegate = undefined;\n intervalProvider.delegate = undefined;\n timeoutProvider.delegate = undefined;\n performanceTimestampProvider.delegate = undefined;\n }\n };\n TestScheduler.frameTimeFactor = 10;\n return TestScheduler;\n}(VirtualTimeScheduler));\nexport { TestScheduler };\n//# sourceMappingURL=TestScheduler.js.map","export function getXHRResponse(xhr) {\n switch (xhr.responseType) {\n case 'json': {\n if ('response' in xhr) {\n return xhr.response;\n }\n else {\n var ieXHR = xhr;\n return JSON.parse(ieXHR.responseText);\n }\n }\n case 'document':\n return xhr.responseXML;\n case 'text':\n default: {\n if ('response' in xhr) {\n return xhr.response;\n }\n else {\n var ieXHR = xhr;\n return ieXHR.responseText;\n }\n }\n }\n}\n//# sourceMappingURL=getXHRResponse.js.map","import { getXHRResponse } from './getXHRResponse';\nvar AjaxResponse = (function () {\n function AjaxResponse(originalEvent, xhr, request, type) {\n if (type === void 0) { type = 'download_load'; }\n this.originalEvent = originalEvent;\n this.xhr = xhr;\n this.request = request;\n this.type = type;\n var status = xhr.status, responseType = xhr.responseType;\n this.status = status !== null && status !== void 0 ? status : 0;\n this.responseType = responseType !== null && responseType !== void 0 ? responseType : '';\n var allHeaders = xhr.getAllResponseHeaders();\n this.responseHeaders = allHeaders\n ?\n allHeaders.split('\\n').reduce(function (headers, line) {\n var index = line.indexOf(': ');\n headers[line.slice(0, index)] = line.slice(index + 2);\n return headers;\n }, {})\n : {};\n this.response = getXHRResponse(xhr);\n var loaded = originalEvent.loaded, total = originalEvent.total;\n this.loaded = loaded;\n this.total = total;\n }\n return AjaxResponse;\n}());\nexport { AjaxResponse };\n//# sourceMappingURL=AjaxResponse.js.map","import { getXHRResponse } from './getXHRResponse';\nimport { createErrorClass } from '../util/createErrorClass';\nexport var AjaxError = createErrorClass(function (_super) {\n return function AjaxErrorImpl(message, xhr, request) {\n this.message = message;\n this.name = 'AjaxError';\n this.xhr = xhr;\n this.request = request;\n this.status = xhr.status;\n this.responseType = xhr.responseType;\n var response;\n try {\n response = getXHRResponse(xhr);\n }\n catch (err) {\n response = xhr.responseText;\n }\n this.response = response;\n };\n});\nexport var AjaxTimeoutError = (function () {\n function AjaxTimeoutErrorImpl(xhr, request) {\n AjaxError.call(this, 'ajax timeout', xhr, request);\n this.name = 'AjaxTimeoutError';\n return this;\n }\n AjaxTimeoutErrorImpl.prototype = Object.create(AjaxError.prototype);\n return AjaxTimeoutErrorImpl;\n})();\n//# sourceMappingURL=errors.js.map","import { __assign } from \"tslib\";\nimport { map } from '../operators/map';\nimport { Observable } from '../Observable';\nimport { AjaxResponse } from './AjaxResponse';\nimport { AjaxTimeoutError, AjaxError } from './errors';\nfunction ajaxGet(url, headers) {\n return ajax({ method: 'GET', url: url, headers: headers });\n}\nfunction ajaxPost(url, body, headers) {\n return ajax({ method: 'POST', url: url, body: body, headers: headers });\n}\nfunction ajaxDelete(url, headers) {\n return ajax({ method: 'DELETE', url: url, headers: headers });\n}\nfunction ajaxPut(url, body, headers) {\n return ajax({ method: 'PUT', url: url, body: body, headers: headers });\n}\nfunction ajaxPatch(url, body, headers) {\n return ajax({ method: 'PATCH', url: url, body: body, headers: headers });\n}\nvar mapResponse = map(function (x) { return x.response; });\nfunction ajaxGetJSON(url, headers) {\n return mapResponse(ajax({\n method: 'GET',\n url: url,\n headers: headers,\n }));\n}\nexport var ajax = (function () {\n var create = function (urlOrConfig) {\n var config = typeof urlOrConfig === 'string'\n ? {\n url: urlOrConfig,\n }\n : urlOrConfig;\n return fromAjax(config);\n };\n create.get = ajaxGet;\n create.post = ajaxPost;\n create.delete = ajaxDelete;\n create.put = ajaxPut;\n create.patch = ajaxPatch;\n create.getJSON = ajaxGetJSON;\n return create;\n})();\nvar UPLOAD = 'upload';\nvar DOWNLOAD = 'download';\nvar LOADSTART = 'loadstart';\nvar PROGRESS = 'progress';\nvar LOAD = 'load';\nexport function fromAjax(init) {\n return new Observable(function (destination) {\n var _a, _b;\n var config = __assign({ async: true, crossDomain: false, withCredentials: false, method: 'GET', timeout: 0, responseType: 'json' }, init);\n var queryParams = config.queryParams, configuredBody = config.body, configuredHeaders = config.headers;\n var url = config.url;\n if (!url) {\n throw new TypeError('url is required');\n }\n if (queryParams) {\n var searchParams_1;\n if (url.includes('?')) {\n var parts = url.split('?');\n if (2 < parts.length) {\n throw new TypeError('invalid url');\n }\n searchParams_1 = new URLSearchParams(parts[1]);\n new URLSearchParams(queryParams).forEach(function (value, key) { return searchParams_1.set(key, value); });\n url = parts[0] + '?' + searchParams_1;\n }\n else {\n searchParams_1 = new URLSearchParams(queryParams);\n url = url + '?' + searchParams_1;\n }\n }\n var headers = {};\n if (configuredHeaders) {\n for (var key in configuredHeaders) {\n if (configuredHeaders.hasOwnProperty(key)) {\n headers[key.toLowerCase()] = configuredHeaders[key];\n }\n }\n }\n var crossDomain = config.crossDomain;\n if (!crossDomain && !('x-requested-with' in headers)) {\n headers['x-requested-with'] = 'XMLHttpRequest';\n }\n var withCredentials = config.withCredentials, xsrfCookieName = config.xsrfCookieName, xsrfHeaderName = config.xsrfHeaderName;\n if ((withCredentials || !crossDomain) && xsrfCookieName && xsrfHeaderName) {\n var xsrfCookie = (_b = (_a = document === null || document === void 0 ? void 0 : document.cookie.match(new RegExp(\"(^|;\\\\s*)(\" + xsrfCookieName + \")=([^;]*)\"))) === null || _a === void 0 ? void 0 : _a.pop()) !== null && _b !== void 0 ? _b : '';\n if (xsrfCookie) {\n headers[xsrfHeaderName] = xsrfCookie;\n }\n }\n var body = extractContentTypeAndMaybeSerializeBody(configuredBody, headers);\n var _request = __assign(__assign({}, config), { url: url,\n headers: headers,\n body: body });\n var xhr;\n xhr = init.createXHR ? init.createXHR() : new XMLHttpRequest();\n {\n var progressSubscriber_1 = init.progressSubscriber, _c = init.includeDownloadProgress, includeDownloadProgress = _c === void 0 ? false : _c, _d = init.includeUploadProgress, includeUploadProgress = _d === void 0 ? false : _d;\n var addErrorEvent = function (type, errorFactory) {\n xhr.addEventListener(type, function () {\n var _a;\n var error = errorFactory();\n (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, error);\n destination.error(error);\n });\n };\n addErrorEvent('timeout', function () { return new AjaxTimeoutError(xhr, _request); });\n addErrorEvent('abort', function () { return new AjaxError('aborted', xhr, _request); });\n var createResponse_1 = function (direction, event) {\n return new AjaxResponse(event, xhr, _request, direction + \"_\" + event.type);\n };\n var addProgressEvent_1 = function (target, type, direction) {\n target.addEventListener(type, function (event) {\n destination.next(createResponse_1(direction, event));\n });\n };\n if (includeUploadProgress) {\n [LOADSTART, PROGRESS, LOAD].forEach(function (type) { return addProgressEvent_1(xhr.upload, type, UPLOAD); });\n }\n if (progressSubscriber_1) {\n [LOADSTART, PROGRESS].forEach(function (type) { return xhr.upload.addEventListener(type, function (e) { var _a; return (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.next) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, e); }); });\n }\n if (includeDownloadProgress) {\n [LOADSTART, PROGRESS].forEach(function (type) { return addProgressEvent_1(xhr, type, DOWNLOAD); });\n }\n var emitError_1 = function (status) {\n var msg = 'ajax error' + (status ? ' ' + status : '');\n destination.error(new AjaxError(msg, xhr, _request));\n };\n xhr.addEventListener('error', function (e) {\n var _a;\n (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, e);\n emitError_1();\n });\n xhr.addEventListener(LOAD, function (event) {\n var _a, _b;\n var status = xhr.status;\n if (status < 400) {\n (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.complete) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1);\n var response = void 0;\n try {\n response = createResponse_1(DOWNLOAD, event);\n }\n catch (err) {\n destination.error(err);\n return;\n }\n destination.next(response);\n destination.complete();\n }\n else {\n (_b = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _b === void 0 ? void 0 : _b.call(progressSubscriber_1, event);\n emitError_1(status);\n }\n });\n }\n var user = _request.user, method = _request.method, async = _request.async;\n if (user) {\n xhr.open(method, url, async, user, _request.password);\n }\n else {\n xhr.open(method, url, async);\n }\n if (async) {\n xhr.timeout = _request.timeout;\n xhr.responseType = _request.responseType;\n }\n if ('withCredentials' in xhr) {\n xhr.withCredentials = _request.withCredentials;\n }\n for (var key in headers) {\n if (headers.hasOwnProperty(key)) {\n xhr.setRequestHeader(key, headers[key]);\n }\n }\n if (body) {\n xhr.send(body);\n }\n else {\n xhr.send();\n }\n return function () {\n if (xhr && xhr.readyState !== 4) {\n xhr.abort();\n }\n };\n });\n}\nfunction extractContentTypeAndMaybeSerializeBody(body, headers) {\n var _a;\n if (!body ||\n typeof body === 'string' ||\n isFormData(body) ||\n isURLSearchParams(body) ||\n isArrayBuffer(body) ||\n isFile(body) ||\n isBlob(body) ||\n isReadableStream(body)) {\n return body;\n }\n if (isArrayBufferView(body)) {\n return body.buffer;\n }\n if (typeof body === 'object') {\n headers['content-type'] = (_a = headers['content-type']) !== null && _a !== void 0 ? _a : 'application/json;charset=utf-8';\n return JSON.stringify(body);\n }\n throw new TypeError('Unknown body type');\n}\nvar _toString = Object.prototype.toString;\nfunction toStringCheck(obj, name) {\n return _toString.call(obj) === \"[object \" + name + \"]\";\n}\nfunction isArrayBuffer(body) {\n return toStringCheck(body, 'ArrayBuffer');\n}\nfunction isFile(body) {\n return toStringCheck(body, 'File');\n}\nfunction isBlob(body) {\n return toStringCheck(body, 'Blob');\n}\nfunction isArrayBufferView(body) {\n return typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView(body);\n}\nfunction isFormData(body) {\n return typeof FormData !== 'undefined' && body instanceof FormData;\n}\nfunction isURLSearchParams(body) {\n return typeof URLSearchParams !== 'undefined' && body instanceof URLSearchParams;\n}\nfunction isReadableStream(body) {\n return typeof ReadableStream !== 'undefined' && body instanceof ReadableStream;\n}\n//# sourceMappingURL=ajax.js.map","import { __assign, __extends } from \"tslib\";\nimport { Subject, AnonymousSubject } from '../../Subject';\nimport { Subscriber } from '../../Subscriber';\nimport { Observable } from '../../Observable';\nimport { Subscription } from '../../Subscription';\nimport { ReplaySubject } from '../../ReplaySubject';\nvar DEFAULT_WEBSOCKET_CONFIG = {\n url: '',\n deserializer: function (e) { return JSON.parse(e.data); },\n serializer: function (value) { return JSON.stringify(value); },\n};\nvar WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT = 'WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }';\nvar WebSocketSubject = (function (_super) {\n __extends(WebSocketSubject, _super);\n function WebSocketSubject(urlConfigOrSource, destination) {\n var _this = _super.call(this) || this;\n _this._socket = null;\n if (urlConfigOrSource instanceof Observable) {\n _this.destination = destination;\n _this.source = urlConfigOrSource;\n }\n else {\n var config = (_this._config = __assign({}, DEFAULT_WEBSOCKET_CONFIG));\n _this._output = new Subject();\n if (typeof urlConfigOrSource === 'string') {\n config.url = urlConfigOrSource;\n }\n else {\n for (var key in urlConfigOrSource) {\n if (urlConfigOrSource.hasOwnProperty(key)) {\n config[key] = urlConfigOrSource[key];\n }\n }\n }\n if (!config.WebSocketCtor && WebSocket) {\n config.WebSocketCtor = WebSocket;\n }\n else if (!config.WebSocketCtor) {\n throw new Error('no WebSocket constructor can be found');\n }\n _this.destination = new ReplaySubject();\n }\n return _this;\n }\n WebSocketSubject.prototype.lift = function (operator) {\n var sock = new WebSocketSubject(this._config, this.destination);\n sock.operator = operator;\n sock.source = this;\n return sock;\n };\n WebSocketSubject.prototype._resetState = function () {\n this._socket = null;\n if (!this.source) {\n this.destination = new ReplaySubject();\n }\n this._output = new Subject();\n };\n WebSocketSubject.prototype.multiplex = function (subMsg, unsubMsg, messageFilter) {\n var self = this;\n return new Observable(function (observer) {\n try {\n self.next(subMsg());\n }\n catch (err) {\n observer.error(err);\n }\n var subscription = self.subscribe({\n next: function (x) {\n try {\n if (messageFilter(x)) {\n observer.next(x);\n }\n }\n catch (err) {\n observer.error(err);\n }\n },\n error: function (err) { return observer.error(err); },\n complete: function () { return observer.complete(); },\n });\n return function () {\n try {\n self.next(unsubMsg());\n }\n catch (err) {\n observer.error(err);\n }\n subscription.unsubscribe();\n };\n });\n };\n WebSocketSubject.prototype._connectSocket = function () {\n var _this = this;\n var _a = this._config, WebSocketCtor = _a.WebSocketCtor, protocol = _a.protocol, url = _a.url, binaryType = _a.binaryType;\n var observer = this._output;\n var socket = null;\n try {\n socket = protocol ? new WebSocketCtor(url, protocol) : new WebSocketCtor(url);\n this._socket = socket;\n if (binaryType) {\n this._socket.binaryType = binaryType;\n }\n }\n catch (e) {\n observer.error(e);\n return;\n }\n var subscription = new Subscription(function () {\n _this._socket = null;\n if (socket && socket.readyState === 1) {\n socket.close();\n }\n });\n socket.onopen = function (evt) {\n var _socket = _this._socket;\n if (!_socket) {\n socket.close();\n _this._resetState();\n return;\n }\n var openObserver = _this._config.openObserver;\n if (openObserver) {\n openObserver.next(evt);\n }\n var queue = _this.destination;\n _this.destination = Subscriber.create(function (x) {\n if (socket.readyState === 1) {\n try {\n var serializer = _this._config.serializer;\n socket.send(serializer(x));\n }\n catch (e) {\n _this.destination.error(e);\n }\n }\n }, function (err) {\n var closingObserver = _this._config.closingObserver;\n if (closingObserver) {\n closingObserver.next(undefined);\n }\n if (err && err.code) {\n socket.close(err.code, err.reason);\n }\n else {\n observer.error(new TypeError(WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT));\n }\n _this._resetState();\n }, function () {\n var closingObserver = _this._config.closingObserver;\n if (closingObserver) {\n closingObserver.next(undefined);\n }\n socket.close();\n _this._resetState();\n });\n if (queue && queue instanceof ReplaySubject) {\n subscription.add(queue.subscribe(_this.destination));\n }\n };\n socket.onerror = function (e) {\n _this._resetState();\n observer.error(e);\n };\n socket.onclose = function (e) {\n if (socket === _this._socket) {\n _this._resetState();\n }\n var closeObserver = _this._config.closeObserver;\n if (closeObserver) {\n closeObserver.next(e);\n }\n if (e.wasClean) {\n observer.complete();\n }\n else {\n observer.error(e);\n }\n };\n socket.onmessage = function (e) {\n try {\n var deserializer = _this._config.deserializer;\n observer.next(deserializer(e));\n }\n catch (err) {\n observer.error(err);\n }\n };\n };\n WebSocketSubject.prototype._subscribe = function (subscriber) {\n var _this = this;\n var source = this.source;\n if (source) {\n return source.subscribe(subscriber);\n }\n if (!this._socket) {\n this._connectSocket();\n }\n this._output.subscribe(subscriber);\n subscriber.add(function () {\n var _socket = _this._socket;\n if (_this._output.observers.length === 0) {\n if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) {\n _socket.close();\n }\n _this._resetState();\n }\n });\n return subscriber;\n };\n WebSocketSubject.prototype.unsubscribe = function () {\n var _socket = this._socket;\n if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) {\n _socket.close();\n }\n this._resetState();\n _super.prototype.unsubscribe.call(this);\n };\n return WebSocketSubject;\n}(AnonymousSubject));\nexport { WebSocketSubject };\n//# sourceMappingURL=WebSocketSubject.js.map","import { WebSocketSubject } from './WebSocketSubject';\nexport function webSocket(urlConfigOrSource) {\n return new WebSocketSubject(urlConfigOrSource);\n}\n//# sourceMappingURL=webSocket.js.map","import { __assign, __rest } from \"tslib\";\nimport { createOperatorSubscriber } from '../../operators/OperatorSubscriber';\nimport { Observable } from '../../Observable';\nimport { innerFrom } from '../../observable/innerFrom';\nexport function fromFetch(input, initWithSelector) {\n if (initWithSelector === void 0) { initWithSelector = {}; }\n var selector = initWithSelector.selector, init = __rest(initWithSelector, [\"selector\"]);\n return new Observable(function (subscriber) {\n var controller = new AbortController();\n var signal = controller.signal;\n var abortable = true;\n var outerSignal = init.signal;\n if (outerSignal) {\n if (outerSignal.aborted) {\n controller.abort();\n }\n else {\n var outerSignalHandler_1 = function () {\n if (!signal.aborted) {\n controller.abort();\n }\n };\n outerSignal.addEventListener('abort', outerSignalHandler_1);\n subscriber.add(function () { return outerSignal.removeEventListener('abort', outerSignalHandler_1); });\n }\n }\n var perSubscriberInit = __assign(__assign({}, init), { signal: signal });\n var handleError = function (err) {\n abortable = false;\n subscriber.error(err);\n };\n fetch(input, perSubscriberInit)\n .then(function (response) {\n if (selector) {\n innerFrom(selector(response)).subscribe(createOperatorSubscriber(subscriber, undefined, function () {\n abortable = false;\n subscriber.complete();\n }, handleError));\n }\n else {\n abortable = false;\n subscriber.next(response);\n subscriber.complete();\n }\n })\n .catch(handleError);\n return function () {\n if (abortable) {\n controller.abort();\n }\n };\n });\n}\n//# sourceMappingURL=fetch.js.map","export * from '../index';\nimport * as _operators from '../operators/index';\nexport var operators = _operators;\nimport * as _testing from '../testing/index';\nexport var testing = _testing;\nimport * as _ajax from '../ajax/index';\nexport var ajax = _ajax;\nimport * as _webSocket from '../webSocket/index';\nexport var webSocket = _webSocket;\nimport * as _fetch from '../fetch/index';\nexport var fetch = _fetch;\n//# sourceMappingURL=umd.js.map"],"names":["observable","Symbol_observable","higherOrderRefCount","Symbol_iterator","iterator","NotificationKind","isArray","asyncScheduler","combineLatest","concat","DEFAULT_CONFIG","last","merge","oERNCreate","onErrorResumeNext","zip","zipStatic","partition","race","ajax","webSocket","fetch"],"mappings":";;;;;;IAAA;IACA;;IAEA;IACA;;IAEA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;;IAEA,IAAI,aAAa,GAAG,SAAS,CAAC,EAAE,CAAC,EAAE;IACnC,IAAI,aAAa,GAAG,MAAM,CAAC,cAAc;IACzC,SAAS,EAAE,S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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} diff --git a/WechatBot/node_modules/rxjs/dist/bundles/rxjs.umd.min.js b/WechatBot/node_modules/rxjs/dist/bundles/rxjs.umd.min.js deleted file mode 100755 index c211d716e..000000000 --- a/WechatBot/node_modules/rxjs/dist/bundles/rxjs.umd.min.js +++ /dev/null @@ -1,195 +0,0 @@ -/** - @license - Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt - **/ -/** - @license - Apache License 2.0 https://github.com/ReactiveX/RxJS/blob/master/LICENSE.txt - **/ -/* - ***************************************************************************** - Copyright (c) Microsoft Corporation. - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted. - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. -*****************************************************************************/ -(function(g,y){"object"===typeof exports&&"undefined"!==typeof module?y(exports):"function"===typeof define&&define.amd?define("rxjs",["exports"],y):y(g.rxjs={})})(this,function(g){function y(b,a){function c(){this.constructor=b}if("function"!==typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");Ta(b,a);b.prototype=null===a?Object.create(a):(c.prototype=a.prototype,new c)}function Zd(b,a){var c={},d;for(d in b)Object.prototype.hasOwnProperty.call(b, -d)&&0>a.indexOf(d)&&(c[d]=b[d]);if(null!=b&&"function"===typeof Object.getOwnPropertySymbols){var e=0;for(d=Object.getOwnPropertySymbols(b);ea.indexOf(d[e])&&Object.prototype.propertyIsEnumerable.call(b,d[e])&&(c[d[e]]=b[d[e]])}return c}function $d(b,a,c,d){function e(a){return a instanceof c?a:new c(function(b){b(a)})}return new (c||(c=Promise))(function(c,h){function f(a){try{z(d.next(a))}catch(v){h(v)}}function k(a){try{z(d["throw"](a))}catch(v){h(v)}}function z(a){a.done?c(a.value): -e(a.value).then(f,k)}z((d=d.apply(b,a||[])).next())})}function Ua(b,a){function c(a){return function(b){return d([a,b])}}function d(c){if(f)throw new TypeError("Generator is already executing.");for(;e;)try{if(f=1,h&&(l=c[0]&2?h["return"]:c[0]?h["throw"]||((l=h["return"])&&l.call(h),0):h.next)&&!(l=l.call(h,c[1])).done)return l;if(h=0,l)c=[c[0]&2,l.value];switch(c[0]){case 0:case 1:l=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++;h=c[1];c=[0];continue;case 7:c=e.ops.pop();e.trys.pop(); -continue;default:if(!(l=e.trys,l=0l[0]&&c[1]=b.length&&(b=void 0);return{value:b&&b[d++],done:!b}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.");}function w(b,a){var c="function"===typeof Symbol&&b[Symbol.iterator];if(!c)return b;b= -c.call(b);var d,e=[],f;try{for(;(void 0===a||0=b._refCount||0<--b._refCount)c=null;else{var d=b._connection,f=c;c=null;!d||f&&d!==f||d.unsubscribe();a.unsubscribe()}});b.subscribe(d);d.closed||(c=b.connect())})}function Mb(b){return new r(function(a){var c=b||Da,d=c.now(),e=0,f=function(){a.closed||(e=N.requestAnimationFrame(function(h){e=0;var l=c.now();a.next({timestamp:b?l:h,elapsed:l-d});f()}))};f();return function(){e&&N.cancelAnimationFrame(e)}})}function Nb(b){return b in -$a?(delete $a[b],!0):!1}function de(b){return new r(function(a){return b.schedule(function(){return a.complete()})})}function Ea(b){return b&&t(b.schedule)}function oa(b){return t(b[b.length-1])?b.pop():void 0}function O(b){return Ea(b[b.length-1])?b.pop():void 0}function Ob(b){return Symbol.asyncIterator&&t(null===b||void 0===b?void 0:b[Symbol.asyncIterator])}function Pb(b){return new TypeError("You provided "+(null!==b&&"object"===typeof b?"an invalid object":"'"+b+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")} -function Qb(b){return t(null===b||void 0===b?void 0:b[ab])}function Rb(b){return ae(this,arguments,function(){var a,c,d,e;return Ua(this,function(f){switch(f.label){case 0:a=b.getReader(),f.label=1;case 1:f.trys.push([1,,9,10]),f.label=2;case 2:return[4,ca(a.read())];case 3:return c=f.sent(),d=c.value,(e=c.done)?[4,ca(void 0)]:[3,5];case 4:return[2,f.sent()];case 5:return[4,ca(d)];case 6:return[4,f.sent()];case 7:return f.sent(),[3,2];case 8:return[3,10];case 9:return a.releaseLock(),[7];case 10:return[2]}})})} -function q(b){if(b instanceof r)return b;if(null!=b){if(t(b[pa]))return ee(b);if(bb(b))return fe(b);if(t(null===b||void 0===b?void 0:b.then))return ge(b);if(Ob(b))return Sb(b);if(Qb(b))return he(b);if(t(null===b||void 0===b?void 0:b.getReader))return Sb(Rb(b))}throw Pb(b);}function ee(b){return new r(function(a){var c=b[pa]();if(t(c.subscribe))return c.subscribe(a);throw new TypeError("Provided object does not correctly implement Symbol.observable");})}function fe(b){return new r(function(a){for(var c= -0;ce&&(e=0);var h=0;return c.schedule(function(){a.closed||(a.next(h++),0<=d?this.schedule(void 0,d):a.complete())},e)})}function ec(b,a){void 0===b&&(b=0);void 0===a&&(a=I);0>b&&(b=0);return Y(b,b,a)}function Z(b){return 1===b.length&&we(b[0])?b[0]:b}function fc(){for(var b=[],a=0;a=b?function(){return L}:n(function(a,c){var d=0;a.subscribe(m(c,function(a){++d<=b&&(c.next(a),b<=d&&c.complete())}))})} -function ob(){return n(function(b,a){b.subscribe(m(a,C))})}function pb(b){return Q(function(){return b})}function Ma(b,a){return a?function(c){return ta(a.pipe(ga(1),ob()),c.pipe(Ma(b)))}:H(function(a,d){return q(b(a,d)).pipe(ga(1),pb(a))})}function xc(b,a){void 0===a&&(a=I);var c=Y(b,a);return Ma(function(){return c})}function yc(){return n(function(b,a){b.subscribe(m(a,function(c){return Fa(c,a)}))})}function zc(b,a){return n(function(c,d){var e=new Set;c.subscribe(m(d,function(a){var c=b?b(a): -a;e.has(c)||(e.add(c),d.next(a))}));a&&q(a).subscribe(m(d,function(){return e.clear()},C))})}function qb(b,a){void 0===a&&(a=E);b=null!==b&&void 0!==b?b:De;return n(function(c,d){var e,f=!0;c.subscribe(m(d,function(c){var h=a(c);if(f||!b(e,h))f=!1,e=h,d.next(c)}))})}function De(b,a){return b===a}function Ac(b,a){return qb(function(c,d){return a?a(c[b],d[b]):c[b]===d[b]})}function va(b){void 0===b&&(b=Ee);return n(function(a,c){var d=!1;a.subscribe(m(c,function(a){d=!0;c.next(a)},function(){return d? -c.complete():c.error(b())}))})}function Ee(){return new aa}function Bc(b,a){if(0>b)throw new rb;var c=2<=arguments.length;return function(d){return d.pipe(K(function(a,c){return c===b}),ga(1),c?ua(a):va(function(){return new rb}))}}function Cc(){for(var b=[],a=0;a(a||0)?Infinity:a;return n(function(d,e){return gb(d,e,b,a,void 0,!0,c)})}function Fc(b){return n(function(a, -c){try{a.subscribe(c)}finally{c.add(b)}})}function Gc(b,a){return n(Hc(b,a,"value"))}function Hc(b,a,c){var d="index"===c;return function(c,f){var e=0;c.subscribe(m(f,function(h){var l=e++;b.call(a,h,l,c)&&(f.next(d?l:h),f.complete())},function(){f.next(d?-1:void 0);f.complete()}))}}function Ic(b,a){return n(Hc(b,a,"index"))}function Jc(b,a){var c=2<=arguments.length;return function(d){return d.pipe(b?K(function(a,c){return b(a,c,d)}):E,ga(1),c?ua(a):va(function(){return new aa}))}}function Kc(b, -a,c,d){return n(function(e,f){function h(a,c){var b=new r(function(a){v++;var b=c.subscribe(a);return function(){b.unsubscribe();0===--v&&n&&Va.unsubscribe()}});b.key=a;return b}var l;a&&"function"!==typeof a?(c=a.duration,l=a.element,d=a.connector):l=a;var k=new Map,g=function(a){k.forEach(a);a(f)},p=function(a){return g(function(c){return c.error(a)})},v=0,n=!1,Va=new Ya(f,function(a){try{var e=b(a),g=k.get(e);if(!g){k.set(e,g=d?d():new A);var z=h(e,g);f.next(z);if(c){var v=m(g,function(){g.complete(); -null===v||void 0===v?void 0:v.unsubscribe()},void 0,void 0,function(){return k.delete(e)});Va.add(q(c(z)).subscribe(v))}}g.next(l?l(a):a)}catch(xe){p(xe)}},function(){return g(function(a){return a.complete()})},p,function(){return k.clear()},function(){n=!0;return 0===v});e.subscribe(Va)})}function Lc(){return n(function(b,a){b.subscribe(m(a,function(){a.next(!1);a.complete()},function(){a.next(!0);a.complete()}))})}function sb(b){return 0>=b?function(){return L}:n(function(a,c){var d=[];a.subscribe(m(c, -function(a){d.push(a);bc?a:c})}function Pc(b,a,c){void 0===c&&(c=Infinity);if(t(a))return H(function(){return b},a,c);"number"===typeof a&&(c=a);return H(function(){return b},c)}function Qc(b,a,c){void 0===c&&(c=Infinity);return n(function(d,e){var f=a;return gb(d,e,function(a,c){return b(f,a,c)},c,function(a){f=a},!1,void 0, -function(){return f=null})})}function Rc(){for(var b=[],a=0;ab(a,c)?a:c}:function(a,c){return a=c?function(){return L}:n(function(a,b){var e=0,f,k=function(){null===f||void 0===f?void 0:f.unsubscribe();f=null;if(null!=d){var a="number"===typeof d?Y(d):q(d(e)),c=m(b,function(){c.unsubscribe();g()});a.subscribe(c)}else g()},g=function(){var d=!1;f=a.subscribe(m(b,void 0,function(){++e= -c?E:n(function(a,b){var f=0,h,g=function(){var l=!1;h=a.subscribe(m(b,function(a){e&&(f=0);b.next(a)},void 0,function(a){if(f++=b?E:n(function(a,c){var d= -Array(b),e=0;a.subscribe(m(c,function(a){var f=e++;if(fe){null===(b=null===r||void 0===r?void 0:r.complete)||void 0===b?void 0:b.call(r);b=void 0;try{b=new yb(c,u,q,Od+"_"+c.type)}catch(ye){a.error(ye);return}a.next(b);a.complete()}else null===(d=null===r||void 0===r?void 0:r.error)||void 0===d?void 0:d.call(r,c),x(e)});e=q.user;d=q.method;h=q.async; -e?u.open(d,k,h,e,q.password):u.open(d,k,h);h&&(u.timeout=q.timeout,u.responseType=q.responseType);"withCredentials"in u&&(u.withCredentials=q.withCredentials);for(p in f)f.hasOwnProperty(p)&&u.setRequestHeader(p,f[p]);c?u.send(c):u.send();return function(){u&&4!==u.readyState&&u.abort()}})}function Oe(b,a){var c;if(!b||"string"===typeof b||"undefined"!==typeof FormData&&b instanceof FormData||"undefined"!==typeof URLSearchParams&&b instanceof URLSearchParams||Bb(b,"ArrayBuffer")||Bb(b,"File")||Bb(b, -"Blob")||"undefined"!==typeof ReadableStream&&b instanceof ReadableStream)return b;if("undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView(b))return b.buffer;if("object"===typeof b)return a["content-type"]=null!==(c=a["content-type"])&&void 0!==c?c:"application/json;charset\x3dutf-8",JSON.stringify(b);throw new TypeError("Unknown body type");}function Bb(b,a){return Qe.call(b)==="[object "+a+"]"}var Ta=function(b,a){Ta=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__= -b}||function(a,b){for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&(a[c]=b[c])};return Ta(b,a)},T=function(){T=Object.assign||function(b){for(var a,c=1,d=arguments.length;ca&&hb.index?1:-1:a.delay>b.delay?1:-1};return a}(ya),L=new r(function(b){return b.complete()}), -bb=function(b){return b&&"number"===typeof b.length&&"function"!==typeof b},ab;ab="function"===typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";(function(b){b.NEXT="N";b.ERROR="E";b.COMPLETE="C"})(g.NotificationKind||(g.NotificationKind={}));var Pa=function(){function b(a,b,d){this.kind=a;this.value=b;this.error=d;this.hasValue="N"===a}b.prototype.observe=function(a){return Fa(this,a)};b.prototype.do=function(a,b,d){var c=this.kind,f=this.value,h=this.error;return"N"===c?null===a||void 0=== -a?void 0:a(f):"E"===c?null===b||void 0===b?void 0:b(h):null===d||void 0===d?void 0:d()};b.prototype.accept=function(a,b,d){return t(null===a||void 0===a?void 0:a.next)?this.observe(a):this.do(a,b,d)};b.prototype.toObservable=function(){var a=this.kind,b=this.value,d=this.error,b="N"===a?cb(b):"E"===a?Wb(function(){return d}):"C"===a?L:0;if(!b)throw new TypeError("Unexpected notification kind "+a);return b};b.createNext=function(a){return new b("N",a)};b.createError=function(a){return new b("E",void 0, -a)};b.createComplete=function(){return b.completeNotification};b.completeNotification=new b("C");return b}(),aa=R(function(b){return function(){b(this);this.name="EmptyError";this.message="no elements in sequence"}}),rb=R(function(b){return function(){b(this);this.name="ArgumentOutOfRangeError";this.message="argument out of range"}}),ld=R(function(b){return function(a){b(this);this.name="NotFoundError";this.message=a}}),kd=R(function(b){return function(a){b(this);this.name="SequenceError";this.message= -a}}),Xb=R(function(b){return function(a){void 0===a&&(a=null);b(this);this.message="Timeout has occurred";this.name="TimeoutError";this.info=a}}),le=Array.isArray,me=Array.isArray,ne=Object.getPrototypeOf,oe=Object.prototype,pe=Object.keys,$e={connector:function(){return new A},resetOnDisconnect:!0},te=["addListener","removeListener"],re=["addEventListener","removeEventListener"],ve=["on","off"],Vd=new r(C),we=Array.isArray,Ae=function(b,a){return b.push(a),b},Ce={connector:function(){return new A}}, -Fe=function(){return function(b,a){this.value=b;this.interval=a}}(),af=Object.freeze({audit:kb,auditTime:ic,buffer:jc,bufferCount:kc,bufferTime:lc,bufferToggle:mc,bufferWhen:nc,catchError:lb,combineAll:Ja,combineLatestAll:Ja,combineLatest:nb,combineLatestWith:qc,concat:sc,concatAll:Ha,concatMap:Ka,concatMapTo:rc,concatWith:tc,connect:La,count:uc,debounce:vc,debounceTime:wc,defaultIfEmpty:ua,delay:xc,delayWhen:Ma,dematerialize:yc,distinct:zc,distinctUntilChanged:qb,distinctUntilKeyChanged:Ac,elementAt:Bc, -endWith:Cc,every:Dc,exhaust:Oa,exhaustAll:Oa,exhaustMap:Na,expand:Ec,filter:K,finalize:Fc,find:Gc,findIndex:Ic,first:Jc,groupBy:Kc,ignoreElements:ob,isEmpty:Lc,last:Mc,map:Q,mapTo:pb,materialize:Nc,max:Oc,merge:Rc,mergeAll:sa,flatMap:H,mergeMap:H,mergeMapTo:Pc,mergeScan:Qc,mergeWith:Sc,min:Tc,multicast:Qa,observeOn:qa,onErrorResumeNext:Uc,pairwise:Vc,partition:function(b,a){return function(c){return[K(b,a)(c),K(gc(b,a))(c)]}},pluck:Wc,publish:Xc,publishBehavior:Yc,publishLast:$c,publishReplay:ad, -race:function(){for(var b=[],a=0;ak?new Aa(l):new Aa(l,k)};a.parseMarbles=function(a, -b,e,f,g){var c=this;void 0===f&&(f=!1);void 0===g&&(g=!1);if(-1!==a.indexOf("!"))throw Error('conventional marble diagrams cannot have the unsubscription marker "!"');var d=x([],w(a)),h=d.length,p=[];a=g?a.replace(/^[ ]+/,"").indexOf("^"):a.indexOf("^");var m=-1===a?0:a*-this.frameTimeFactor,n="object"!==typeof b?function(a){return a}:function(a){return f&&b[a]instanceof Hb?b[a].messages:b[a]},q=-1;a=function(a){var b=m,f=function(a){b+=a*c.frameTimeFactor},h=void 0,k=d[a];switch(k){case " ":g||f(1); -break;case "-":f(1);break;case "(":q=m;f(1);break;case ")":q=-1;f(1);break;case "|":h=xa;f(1);break;case "^":f(1);break;case "#":h=J("E",void 0,e||"error");f(1);break;default:if(g&&k.match(/^[0-9]$/)&&(0===a||" "===d[a-1])){var l=d.slice(a).join("").match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /);if(l){a+=l[0].length-1;var k=parseFloat(l[1]),v=void 0;switch(l[2]){case "ms":v=k;break;case "s":v=1E3*k;break;case "m":v=6E4*k}f(v/r.frameTimeFactor);break}}h=J("N",n(k),void 0);f(1)}h&&p.push({frame:-1=a)return L;var d=a+b;return new r(c?function(a){var e=b;return c.schedule(function(){e< -d?(a.next(e++),this.schedule()):a.complete()})}:function(a){for(var c=b;c= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AnonymousSubject = exports.Subject = void 0; -var Observable_1 = require("./Observable"); -var Subscription_1 = require("./Subscription"); -var ObjectUnsubscribedError_1 = require("./util/ObjectUnsubscribedError"); -var arrRemove_1 = require("./util/arrRemove"); -var errorContext_1 = require("./util/errorContext"); -var Subject = (function (_super) { - __extends(Subject, _super); - function Subject() { - var _this = _super.call(this) || this; - _this.closed = false; - _this.currentObservers = null; - _this.observers = []; - _this.isStopped = false; - _this.hasError = false; - _this.thrownError = null; - return _this; - } - Subject.prototype.lift = function (operator) { - var subject = new AnonymousSubject(this, this); - subject.operator = operator; - return subject; - }; - Subject.prototype._throwIfClosed = function () { - if (this.closed) { - throw new ObjectUnsubscribedError_1.ObjectUnsubscribedError(); - } - }; - Subject.prototype.next = function (value) { - var _this = this; - errorContext_1.errorContext(function () { - var e_1, _a; - _this._throwIfClosed(); - if (!_this.isStopped) { - if (!_this.currentObservers) { - _this.currentObservers = Array.from(_this.observers); - } - try { - for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) { - var observer = _c.value; - observer.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (_c && !_c.done && (_a = _b.return)) _a.call(_b); - } - finally { if (e_1) throw e_1.error; } - } - } - }); - }; - Subject.prototype.error = function (err) { - var _this = this; - errorContext_1.errorContext(function () { - _this._throwIfClosed(); - if (!_this.isStopped) { - _this.hasError = _this.isStopped = true; - _this.thrownError = err; - var observers = _this.observers; - while (observers.length) { - observers.shift().error(err); - } - } - }); - }; - Subject.prototype.complete = function () { - var _this = this; - errorContext_1.errorContext(function () { - _this._throwIfClosed(); - if (!_this.isStopped) { - _this.isStopped = true; - var observers = _this.observers; - while (observers.length) { - observers.shift().complete(); - } - } - }); - }; - Subject.prototype.unsubscribe = function () { - this.isStopped = this.closed = true; - this.observers = this.currentObservers = null; - }; - Object.defineProperty(Subject.prototype, "observed", { - get: function () { - var _a; - return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0; - }, - enumerable: false, - configurable: true - }); - Subject.prototype._trySubscribe = function (subscriber) { - this._throwIfClosed(); - return _super.prototype._trySubscribe.call(this, subscriber); - }; - Subject.prototype._subscribe = function (subscriber) { - this._throwIfClosed(); - this._checkFinalizedStatuses(subscriber); - return this._innerSubscribe(subscriber); - }; - Subject.prototype._innerSubscribe = function (subscriber) { - var _this = this; - var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers; - if (hasError || isStopped) { - return Subscription_1.EMPTY_SUBSCRIPTION; - } - this.currentObservers = null; - observers.push(subscriber); - return new Subscription_1.Subscription(function () { - _this.currentObservers = null; - arrRemove_1.arrRemove(observers, subscriber); - }); - }; - Subject.prototype._checkFinalizedStatuses = function (subscriber) { - var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped; - if (hasError) { - subscriber.error(thrownError); - } - else if (isStopped) { - subscriber.complete(); - } - }; - Subject.prototype.asObservable = function () { - var observable = new Observable_1.Observable(); - observable.source = this; - return observable; - }; - Subject.create = function (destination, source) { - return new AnonymousSubject(destination, source); - }; - return Subject; -}(Observable_1.Observable)); -exports.Subject = Subject; -var AnonymousSubject = (function (_super) { - __extends(AnonymousSubject, _super); - function AnonymousSubject(destination, source) { - var _this = _super.call(this) || this; - _this.destination = destination; - _this.source = source; - return _this; - } - AnonymousSubject.prototype.next = function (value) { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value); - }; - AnonymousSubject.prototype.error = function (err) { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err); - }; - AnonymousSubject.prototype.complete = function () { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a); - }; - AnonymousSubject.prototype._subscribe = function (subscriber) { - var _a, _b; - return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : Subscription_1.EMPTY_SUBSCRIPTION; - }; - return AnonymousSubject; -}(Subject)); -exports.AnonymousSubject = AnonymousSubject; -//# sourceMappingURL=Subject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/Subject.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/Subject.js.map deleted file mode 100644 index 474ff6115..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/Subject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subject.js","sourceRoot":"","sources":["../../../src/internal/Subject.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C,+CAAkE;AAElE,0EAAyE;AACzE,8CAA6C;AAC7C,oDAAmD;AASnD;IAAgC,2BAAa;IAwB3C;QAAA,YAEE,iBAAO,SACR;QA1BD,YAAM,GAAG,KAAK,CAAC;QAEP,sBAAgB,GAAyB,IAAI,CAAC;QAGtD,eAAS,GAAkB,EAAE,CAAC;QAE9B,eAAS,GAAG,KAAK,CAAC;QAElB,cAAQ,GAAG,KAAK,CAAC;QAEjB,iBAAW,GAAQ,IAAI,CAAC;;IAexB,CAAC;IAGD,sBAAI,GAAJ,UAAQ,QAAwB;QAC9B,IAAM,OAAO,GAAG,IAAI,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACjD,OAAO,CAAC,QAAQ,GAAG,QAAe,CAAC;QACnC,OAAO,OAAc,CAAC;IACxB,CAAC;IAGS,gCAAc,GAAxB;QACE,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,MAAM,IAAI,iDAAuB,EAAE,CAAC;SACrC;IACH,CAAC;IAED,sBAAI,GAAJ,UAAK,KAAQ;QAAb,iBAYC;QAXC,2BA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/internal/Subscriber.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/Subscriber.js deleted file mode 100755 index 743e9c847..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/Subscriber.js +++ /dev/null @@ -1,201 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EMPTY_OBSERVER = exports.SafeSubscriber = exports.Subscriber = void 0; -var isFunction_1 = require("./util/isFunction"); -var Subscription_1 = require("./Subscription"); -var config_1 = require("./config"); -var reportUnhandledError_1 = require("./util/reportUnhandledError"); -var noop_1 = require("./util/noop"); -var NotificationFactories_1 = require("./NotificationFactories"); -var timeoutProvider_1 = require("./scheduler/timeoutProvider"); -var errorContext_1 = require("./util/errorContext"); -var Subscriber = (function (_super) { - __extends(Subscriber, _super); - function Subscriber(destination) { - var _this = _super.call(this) || this; - _this.isStopped = false; - if (destination) { - _this.destination = destination; - if (Subscription_1.isSubscription(destination)) { - destination.add(_this); - } - } - else { - _this.destination = exports.EMPTY_OBSERVER; - } - return _this; - } - Subscriber.create = function (next, error, complete) { - return new SafeSubscriber(next, error, complete); - }; - Subscriber.prototype.next = function (value) { - if (this.isStopped) { - handleStoppedNotification(NotificationFactories_1.nextNotification(value), this); - } - else { - this._next(value); - } - }; - Subscriber.prototype.error = function (err) { - if (this.isStopped) { - handleStoppedNotification(NotificationFactories_1.errorNotification(err), this); - } - else { - this.isStopped = true; - this._error(err); - } - }; - Subscriber.prototype.complete = function () { - if (this.isStopped) { - handleStoppedNotification(NotificationFactories_1.COMPLETE_NOTIFICATION, this); - } - else { - this.isStopped = true; - this._complete(); - } - }; - Subscriber.prototype.unsubscribe = function () { - if (!this.closed) { - this.isStopped = true; - _super.prototype.unsubscribe.call(this); - this.destination = null; - } - }; - Subscriber.prototype._next = function (value) { - this.destination.next(value); - }; - Subscriber.prototype._error = function (err) { - try { - this.destination.error(err); - } - finally { - this.unsubscribe(); - } - }; - Subscriber.prototype._complete = function () { - try { - this.destination.complete(); - } - finally { - this.unsubscribe(); - } - }; - return Subscriber; -}(Subscription_1.Subscription)); -exports.Subscriber = Subscriber; -var _bind = Function.prototype.bind; -function bind(fn, thisArg) { - return _bind.call(fn, thisArg); -} -var ConsumerObserver = (function () { - function ConsumerObserver(partialObserver) { - this.partialObserver = partialObserver; - } - ConsumerObserver.prototype.next = function (value) { - var partialObserver = this.partialObserver; - if (partialObserver.next) { - try { - partialObserver.next(value); - } - catch (error) { - handleUnhandledError(error); - } - } - }; - ConsumerObserver.prototype.error = function (err) { - var partialObserver = this.partialObserver; - if (partialObserver.error) { - try { - partialObserver.error(err); - } - catch (error) { - handleUnhandledError(error); - } - } - else { - handleUnhandledError(err); - } - }; - ConsumerObserver.prototype.complete = function () { - var partialObserver = this.partialObserver; - if (partialObserver.complete) { - try { - partialObserver.complete(); - } - catch (error) { - handleUnhandledError(error); - } - } - }; - return ConsumerObserver; -}()); -var SafeSubscriber = (function (_super) { - __extends(SafeSubscriber, _super); - function SafeSubscriber(observerOrNext, error, complete) { - var _this = _super.call(this) || this; - var partialObserver; - if (isFunction_1.isFunction(observerOrNext) || !observerOrNext) { - partialObserver = { - next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined), - error: error !== null && error !== void 0 ? error : undefined, - complete: complete !== null && complete !== void 0 ? complete : undefined, - }; - } - else { - var context_1; - if (_this && config_1.config.useDeprecatedNextContext) { - context_1 = Object.create(observerOrNext); - context_1.unsubscribe = function () { return _this.unsubscribe(); }; - partialObserver = { - next: observerOrNext.next && bind(observerOrNext.next, context_1), - error: observerOrNext.error && bind(observerOrNext.error, context_1), - complete: observerOrNext.complete && bind(observerOrNext.complete, context_1), - }; - } - else { - partialObserver = observerOrNext; - } - } - _this.destination = new ConsumerObserver(partialObserver); - return _this; - } - return SafeSubscriber; -}(Subscriber)); -exports.SafeSubscriber = SafeSubscriber; -function handleUnhandledError(error) { - if (config_1.config.useDeprecatedSynchronousErrorHandling) { - errorContext_1.captureError(error); - } - else { - reportUnhandledError_1.reportUnhandledError(error); - } -} -function defaultErrorHandler(err) { - throw err; -} -function handleStoppedNotification(notification, subscriber) { - var onStoppedNotification = config_1.config.onStoppedNotification; - onStoppedNotification && timeoutProvider_1.timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); }); -} -exports.EMPTY_OBSERVER = { - closed: true, - next: noop_1.noop, - error: defaultErrorHandler, - complete: noop_1.noop, -}; -//# sourceMappingURL=Subscriber.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/Subscriber.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/Subscriber.js.map deleted file mode 100644 index 6a7e157f9..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/Subscriber.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subscriber.js","sourceRoot":"","sources":["../../../src/internal/Subscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,gDAA+C;AAE/C,+CAA8D;AAC9D,mCAAkC;AAClC,oEAAmE;AACnE,oCAAmC;AACnC,iEAAqG;AACrG,+DAA8D;AAC9D,oDAAmD;AAYnD;IAAmC,8BAAY;IA6B7C,oBAAY,WAA6C;QAAzD,YACE,iBAAO,SAWR;QApBS,eAAS,GAAY,KAAK,CAAC;QAUnC,IAAI,WAAW,EAAE;YACf,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;YAG/B,IAAI,6BAAc,CAAC,W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C,QAAQ,EAAE,SAAO,CAAC;iBAC5E,CAAC;aACH;iBAAM;gBAEL,eAAe,GAAG,cAAc,CAAC;aAClC;SACF;QAID,KAAI,CAAC,WAAW,GAAG,IAAI,gBAAgB,CAAC,eAAe,CAAC,CAAC;;IAC3D,CAAC;IACH,qBAAC;AAAD,CAAC,AAzCD,CAAuC,UAAU,GAyChD;AAzCY,wCAAc;AA2C3B,SAAS,oBAAoB,CAAC,KAAU;IACtC,IAAI,eAAM,CAAC,qCAAqC,EAAE;QAChD,2BAAY,CAAC,KAAK,CAAC,CAAC;KACrB;SAAM;QAGL,2CAAoB,CAAC,KAAK,CAAC,CAAC;KAC7B;AACH,CAAC;AAQD,SAAS,mBAAmB,CAAC,GAAQ;IACnC,MAAM,GAAG,CAAC;AACZ,CAAC;AAOD,SAAS,yBAAyB,CAAC,YAAyC,EAAE,UAA2B;IAC/F,IAAA,qBAAqB,GAAK,eAAM,sBAAX,CAAY;IACzC,qBAAqB,IAAI,iCAAe,CAAC,UAAU,CAAC,cAAM,OAAA,qBAAqB,CAAC,YAAY,EAAE,UAAU,CAAC,EAA/C,CAA+C,CAAC,CAAC;AAC7G,CAAC;AAOY,QAAA,cAAc,GAA+C;IACxE,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,WAAI;IACV,KAAK,EAAE,mBAAmB;IAC1B,QAAQ,EAAE,WAAI;CACf,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/Subscription.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/Subscription.js deleted file mode 100755 index 9ee9ac088..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/Subscription.js +++ /dev/null @@ -1,178 +0,0 @@ -"use strict"; -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isSubscription = exports.EMPTY_SUBSCRIPTION = exports.Subscription = void 0; -var isFunction_1 = require("./util/isFunction"); -var UnsubscriptionError_1 = require("./util/UnsubscriptionError"); -var arrRemove_1 = require("./util/arrRemove"); -var Subscription = (function () { - function Subscription(initialTeardown) { - this.initialTeardown = initialTeardown; - this.closed = false; - this._parentage = null; - this._finalizers = null; - } - Subscription.prototype.unsubscribe = function () { - var e_1, _a, e_2, _b; - var errors; - if (!this.closed) { - this.closed = true; - var _parentage = this._parentage; - if (_parentage) { - this._parentage = null; - if (Array.isArray(_parentage)) { - try { - for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) { - var parent_1 = _parentage_1_1.value; - parent_1.remove(this); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1); - } - finally { if (e_1) throw e_1.error; } - } - } - else { - _parentage.remove(this); - } - } - var initialFinalizer = this.initialTeardown; - if (isFunction_1.isFunction(initialFinalizer)) { - try { - initialFinalizer(); - } - catch (e) { - errors = e instanceof UnsubscriptionError_1.UnsubscriptionError ? e.errors : [e]; - } - } - var _finalizers = this._finalizers; - if (_finalizers) { - this._finalizers = null; - try { - for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) { - var finalizer = _finalizers_1_1.value; - try { - execFinalizer(finalizer); - } - catch (err) { - errors = errors !== null && errors !== void 0 ? errors : []; - if (err instanceof UnsubscriptionError_1.UnsubscriptionError) { - errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors)); - } - else { - errors.push(err); - } - } - } - } - catch (e_2_1) { e_2 = { error: e_2_1 }; } - finally { - try { - if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1); - } - finally { if (e_2) throw e_2.error; } - } - } - if (errors) { - throw new UnsubscriptionError_1.UnsubscriptionError(errors); - } - } - }; - Subscription.prototype.add = function (teardown) { - var _a; - if (teardown && teardown !== this) { - if (this.closed) { - execFinalizer(teardown); - } - else { - if (teardown instanceof Subscription) { - if (teardown.closed || teardown._hasParent(this)) { - return; - } - teardown._addParent(this); - } - (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown); - } - } - }; - Subscription.prototype._hasParent = function (parent) { - var _parentage = this._parentage; - return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent)); - }; - Subscription.prototype._addParent = function (parent) { - var _parentage = this._parentage; - this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent; - }; - Subscription.prototype._removeParent = function (parent) { - var _parentage = this._parentage; - if (_parentage === parent) { - this._parentage = null; - } - else if (Array.isArray(_parentage)) { - arrRemove_1.arrRemove(_parentage, parent); - } - }; - Subscription.prototype.remove = function (teardown) { - var _finalizers = this._finalizers; - _finalizers && arrRemove_1.arrRemove(_finalizers, teardown); - if (teardown instanceof Subscription) { - teardown._removeParent(this); - } - }; - Subscription.EMPTY = (function () { - var empty = new Subscription(); - empty.closed = true; - return empty; - })(); - return Subscription; -}()); -exports.Subscription = Subscription; -exports.EMPTY_SUBSCRIPTION = Subscription.EMPTY; -function isSubscription(value) { - return (value instanceof Subscription || - (value && 'closed' in value && isFunction_1.isFunction(value.remove) && isFunction_1.isFunction(value.add) && isFunction_1.isFunction(value.unsubscribe))); -} -exports.isSubscription = isSubscription; -function execFinalizer(finalizer) { - if (isFunction_1.isFunction(finalizer)) { - finalizer(); - } - else { - finalizer.unsubscribe(); - } -} -//# sourceMappingURL=Subscription.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/Subscription.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/Subscription.js.map deleted file mode 100644 index 66624765a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/Subscription.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../src/internal/Subscription.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA+C;AAC/C,kEAAiE;AAEjE,8CAA6C;AAc7C;IAyBE,sBAAoB,eAA4B;QAA5B,oBAAe,GAAf,eAAe,CAAa;QAdzC,WAAM,GAAG,KAAK,CAAC;QAEd,eAAU,GAAyC,IAAI,CAAC;QAMxD,gBAAW,GAA0C,IAAI,CAAC;IAMf,CAAC;IAQpD,kCAAW,GAAX;;QACE,IAAI,MAAyB,CAAC;QAE9B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YAGX,IAAA,UAAU,GAAK,IAAI,WAAT,CAAU;YAC5B,IAAI,UAAU,EAAE;gBACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;gBACvB,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;;wBAC7B,KAAqB,IAAA,eAAA,SAAA,UAAU,CAAA,sCAAA,8DAAE;4BAA5B,IAAM,QAAM,uBAAA;4BACf,QAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;yBACrB;;;;;;;;;iBAC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S,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QAEhD,IAAI,QAAQ,YAAY,YAAY,EAAE;YACpC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;SAC9B;IACH,CAAC;IAlLa,kBAAK,GAAG,CAAC;QACrB,IAAM,KAAK,GAAG,IAAI,YAAY,EAAE,CAAC;QACjC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;QACpB,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,EAAE,CAAC;IA+KP,mBAAC;CAAA,AArLD,IAqLC;AArLY,oCAAY;AAuLZ,QAAA,kBAAkB,GAAG,YAAY,CAAC,KAAK,CAAC;AAErD,SAAgB,cAAc,CAAC,KAAU;IACvC,OAAO,CACL,KAAK,YAAY,YAAY;QAC7B,CAAC,KAAK,IAAI,QAAQ,IAAI,KAAK,IAAI,uBAAU,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,uBAAU,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,uBAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CACnH,CAAC;AACJ,CAAC;AALD,wCAKC;AAED,SAAS,aAAa,CAAC,SAAwC;IAC7D,IAAI,uBAAU,CAAC,SAAS,CAAC,EAAE;QACzB,SAAS,EAAE,CAAC;KACb;SAAM;QACL,SAAS,CAAC,WAAW,EAAE,CAAC;KACzB;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/AjaxResponse.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/AjaxResponse.js deleted file mode 100755 index 7a2c3f712..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/AjaxResponse.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AjaxResponse = void 0; -var getXHRResponse_1 = require("./getXHRResponse"); -var AjaxResponse = (function () { - function AjaxResponse(originalEvent, xhr, request, type) { - if (type === void 0) { type = 'download_load'; } - this.originalEvent = originalEvent; - this.xhr = xhr; - this.request = request; - this.type = type; - var status = xhr.status, responseType = xhr.responseType; - this.status = status !== null && status !== void 0 ? status : 0; - this.responseType = responseType !== null && responseType !== void 0 ? responseType : ''; - var allHeaders = xhr.getAllResponseHeaders(); - this.responseHeaders = allHeaders - ? - allHeaders.split('\n').reduce(function (headers, line) { - var index = line.indexOf(': '); - headers[line.slice(0, index)] = line.slice(index + 2); - return headers; - }, {}) - : {}; - this.response = getXHRResponse_1.getXHRResponse(xhr); - var loaded = originalEvent.loaded, total = originalEvent.total; - this.loaded = loaded; - this.total = total; - } - return AjaxResponse; -}()); -exports.AjaxResponse = AjaxResponse; -//# sourceMappingURL=AjaxResponse.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/AjaxResponse.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/AjaxResponse.js.map deleted file mode 100644 index 52cadde36..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/AjaxResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AjaxResponse.js","sourceRoot":"","sources":["../../../../src/internal/ajax/AjaxResponse.ts"],"names":[],"mappings":";;;AACA,mDAAkD;AAgBlD;IA+CE,sBAIkB,aAA4B,EAM5B,GAAmB,EAInB,OAAoB,EAcpB,IAAwC;QAAxC,qBAAA,EAAA,sBAAwC;QAxBxC,kBAAa,GAAb,aAAa,CAAe;QAM5B,QAAG,GAAH,GAAG,CAAgB;QAInB,YAAO,GAAP,OAAO,CAAa;QAcpB,SAAI,GAAJ,IAAI,CAAoC;QAEhD,IAAA,MAAM,GAAmB,GAAG,OAAtB,EAAE,YAAY,GAAK,GAAG,aAAR,CAAS;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,CAAC,CAAC;QAC1B,IAAI,CAAC,YAAY,GAAG,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,EAAE,CAAC;QASvC,IAAM,UAAU,GAAG,GAAG,CAAC,qBAAqB,EAAE,CAAC;QAC/C,IAAI,CAAC,eAAe,GAAG,UAAU;YAC/B,CAAC;gBACC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,UAAC,OAA+B,EAAE,IAAI;oBAIlE,IAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACjC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;oBACtD,OAAO,OAAO,CAAC;gBACjB,CAAC,EAAE,EAAE,CAAC;YACR,CAAC,CAAC,EAAE,CAAC;QAEP,IAAI,CAAC,QAAQ,GAAG,+BAAc,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAA,MAAM,GAAY,aAAa,OAAzB,EAAE,KAAK,GAAK,aAAa,MAAlB,CAAmB;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IACH,mBAAC;AAAD,CAAC,AA1GD,IA0GC;AA1GY,oCAAY"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/ajax.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/ajax.js deleted file mode 100755 index 9c46066c6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/ajax.js +++ /dev/null @@ -1,253 +0,0 @@ -"use strict"; -var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromAjax = exports.ajax = void 0; -var map_1 = require("../operators/map"); -var Observable_1 = require("../Observable"); -var AjaxResponse_1 = require("./AjaxResponse"); -var errors_1 = require("./errors"); -function ajaxGet(url, headers) { - return exports.ajax({ method: 'GET', url: url, headers: headers }); -} -function ajaxPost(url, body, headers) { - return exports.ajax({ method: 'POST', url: url, body: body, headers: headers }); -} -function ajaxDelete(url, headers) { - return exports.ajax({ method: 'DELETE', url: url, headers: headers }); -} -function ajaxPut(url, body, headers) { - return exports.ajax({ method: 'PUT', url: url, body: body, headers: headers }); -} -function ajaxPatch(url, body, headers) { - return exports.ajax({ method: 'PATCH', url: url, body: body, headers: headers }); -} -var mapResponse = map_1.map(function (x) { return x.response; }); -function ajaxGetJSON(url, headers) { - return mapResponse(exports.ajax({ - method: 'GET', - url: url, - headers: headers, - })); -} -exports.ajax = (function () { - var create = function (urlOrConfig) { - var config = typeof urlOrConfig === 'string' - ? { - url: urlOrConfig, - } - : urlOrConfig; - return fromAjax(config); - }; - create.get = ajaxGet; - create.post = ajaxPost; - create.delete = ajaxDelete; - create.put = ajaxPut; - create.patch = ajaxPatch; - create.getJSON = ajaxGetJSON; - return create; -})(); -var UPLOAD = 'upload'; -var DOWNLOAD = 'download'; -var LOADSTART = 'loadstart'; -var PROGRESS = 'progress'; -var LOAD = 'load'; -function fromAjax(init) { - return new Observable_1.Observable(function (destination) { - var _a, _b; - var config = __assign({ async: true, crossDomain: false, withCredentials: false, method: 'GET', timeout: 0, responseType: 'json' }, init); - var queryParams = config.queryParams, configuredBody = config.body, configuredHeaders = config.headers; - var url = config.url; - if (!url) { - throw new TypeError('url is required'); - } - if (queryParams) { - var searchParams_1; - if (url.includes('?')) { - var parts = url.split('?'); - if (2 < parts.length) { - throw new TypeError('invalid url'); - } - searchParams_1 = new URLSearchParams(parts[1]); - new URLSearchParams(queryParams).forEach(function (value, key) { return searchParams_1.set(key, value); }); - url = parts[0] + '?' + searchParams_1; - } - else { - searchParams_1 = new URLSearchParams(queryParams); - url = url + '?' + searchParams_1; - } - } - var headers = {}; - if (configuredHeaders) { - for (var key in configuredHeaders) { - if (configuredHeaders.hasOwnProperty(key)) { - headers[key.toLowerCase()] = configuredHeaders[key]; - } - } - } - var crossDomain = config.crossDomain; - if (!crossDomain && !('x-requested-with' in headers)) { - headers['x-requested-with'] = 'XMLHttpRequest'; - } - var withCredentials = config.withCredentials, xsrfCookieName = config.xsrfCookieName, xsrfHeaderName = config.xsrfHeaderName; - if ((withCredentials || !crossDomain) && xsrfCookieName && xsrfHeaderName) { - var xsrfCookie = (_b = (_a = document === null || document === void 0 ? void 0 : document.cookie.match(new RegExp("(^|;\\s*)(" + xsrfCookieName + ")=([^;]*)"))) === null || _a === void 0 ? void 0 : _a.pop()) !== null && _b !== void 0 ? _b : ''; - if (xsrfCookie) { - headers[xsrfHeaderName] = xsrfCookie; - } - } - var body = extractContentTypeAndMaybeSerializeBody(configuredBody, headers); - var _request = __assign(__assign({}, config), { url: url, - headers: headers, - body: body }); - var xhr; - xhr = init.createXHR ? init.createXHR() : new XMLHttpRequest(); - { - var progressSubscriber_1 = init.progressSubscriber, _c = init.includeDownloadProgress, includeDownloadProgress = _c === void 0 ? false : _c, _d = init.includeUploadProgress, includeUploadProgress = _d === void 0 ? false : _d; - var addErrorEvent = function (type, errorFactory) { - xhr.addEventListener(type, function () { - var _a; - var error = errorFactory(); - (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, error); - destination.error(error); - }); - }; - addErrorEvent('timeout', function () { return new errors_1.AjaxTimeoutError(xhr, _request); }); - addErrorEvent('abort', function () { return new errors_1.AjaxError('aborted', xhr, _request); }); - var createResponse_1 = function (direction, event) { - return new AjaxResponse_1.AjaxResponse(event, xhr, _request, direction + "_" + event.type); - }; - var addProgressEvent_1 = function (target, type, direction) { - target.addEventListener(type, function (event) { - destination.next(createResponse_1(direction, event)); - }); - }; - if (includeUploadProgress) { - [LOADSTART, PROGRESS, LOAD].forEach(function (type) { return addProgressEvent_1(xhr.upload, type, UPLOAD); }); - } - if (progressSubscriber_1) { - [LOADSTART, PROGRESS].forEach(function (type) { return xhr.upload.addEventListener(type, function (e) { var _a; return (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.next) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, e); }); }); - } - if (includeDownloadProgress) { - [LOADSTART, PROGRESS].forEach(function (type) { return addProgressEvent_1(xhr, type, DOWNLOAD); }); - } - var emitError_1 = function (status) { - var msg = 'ajax error' + (status ? ' ' + status : ''); - destination.error(new errors_1.AjaxError(msg, xhr, _request)); - }; - xhr.addEventListener('error', function (e) { - var _a; - (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, e); - emitError_1(); - }); - xhr.addEventListener(LOAD, function (event) { - var _a, _b; - var status = xhr.status; - if (status < 400) { - (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.complete) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1); - var response = void 0; - try { - response = createResponse_1(DOWNLOAD, event); - } - catch (err) { - destination.error(err); - return; - } - destination.next(response); - destination.complete(); - } - else { - (_b = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _b === void 0 ? void 0 : _b.call(progressSubscriber_1, event); - emitError_1(status); - } - }); - } - var user = _request.user, method = _request.method, async = _request.async; - if (user) { - xhr.open(method, url, async, user, _request.password); - } - else { - xhr.open(method, url, async); - } - if (async) { - xhr.timeout = _request.timeout; - xhr.responseType = _request.responseType; - } - if ('withCredentials' in xhr) { - xhr.withCredentials = _request.withCredentials; - } - for (var key in headers) { - if (headers.hasOwnProperty(key)) { - xhr.setRequestHeader(key, headers[key]); - } - } - if (body) { - xhr.send(body); - } - else { - xhr.send(); - } - return function () { - if (xhr && xhr.readyState !== 4) { - xhr.abort(); - } - }; - }); -} -exports.fromAjax = fromAjax; -function extractContentTypeAndMaybeSerializeBody(body, headers) { - var _a; - if (!body || - typeof body === 'string' || - isFormData(body) || - isURLSearchParams(body) || - isArrayBuffer(body) || - isFile(body) || - isBlob(body) || - isReadableStream(body)) { - return body; - } - if (isArrayBufferView(body)) { - return body.buffer; - } - if (typeof body === 'object') { - headers['content-type'] = (_a = headers['content-type']) !== null && _a !== void 0 ? _a : 'application/json;charset=utf-8'; - return JSON.stringify(body); - } - throw new TypeError('Unknown body type'); -} -var _toString = Object.prototype.toString; -function toStringCheck(obj, name) { - return _toString.call(obj) === "[object " + name + "]"; -} -function isArrayBuffer(body) { - return toStringCheck(body, 'ArrayBuffer'); -} -function isFile(body) { - return toStringCheck(body, 'File'); -} -function isBlob(body) { - return toStringCheck(body, 'Blob'); -} -function isArrayBufferView(body) { - return typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView(body); -} -function isFormData(body) { - return typeof FormData !== 'undefined' && body instanceof FormData; -} -function isURLSearchParams(body) { - return typeof URLSearchParams !== 'undefined' && body instanceof URLSearchParams; -} -function isReadableStream(body) { - return typeof ReadableStream !== 'undefined' && body instanceof ReadableStream; -} -//# sourceMappingURL=ajax.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/ajax.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/ajax.js.map deleted file mode 100644 index 9fa597d7a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/ajax.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajax.js","sourceRoot":"","sources":["../../../../src/internal/ajax/ajax.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wCAAuC;AACvC,4CAA2C;AAE3C,+CAA8C;AAC9C,mCAAuD;AAqIvD,SAAS,OAAO,CAAI,GAAW,EAAE,OAAgC;IAC/D,OAAO,YAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EA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AAC;AACrE,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAS;IAClC,OAAO,OAAO,eAAe,KAAK,WAAW,IAAI,IAAI,YAAY,eAAe,CAAC;AACnF,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAS;IACjC,OAAO,OAAO,cAAc,KAAK,WAAW,IAAI,IAAI,YAAY,cAAc,CAAC;AACjF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/errors.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/errors.js deleted file mode 100755 index 495956cbb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/errors.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AjaxTimeoutError = exports.AjaxError = void 0; -var getXHRResponse_1 = require("./getXHRResponse"); -var createErrorClass_1 = require("../util/createErrorClass"); -exports.AjaxError = createErrorClass_1.createErrorClass(function (_super) { - return function AjaxErrorImpl(message, xhr, request) { - this.message = message; - this.name = 'AjaxError'; - this.xhr = xhr; - this.request = request; - this.status = xhr.status; - this.responseType = xhr.responseType; - var response; - try { - response = getXHRResponse_1.getXHRResponse(xhr); - } - catch (err) { - response = xhr.responseText; - } - this.response = response; - }; -}); -exports.AjaxTimeoutError = (function () { - function AjaxTimeoutErrorImpl(xhr, request) { - exports.AjaxError.call(this, 'ajax timeout', xhr, request); - this.name = 'AjaxTimeoutError'; - return this; - } - AjaxTimeoutErrorImpl.prototype = Object.create(exports.AjaxError.prototype); - return AjaxTimeoutErrorImpl; -})(); -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/errors.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/errors.js.map deleted file mode 100644 index 4cf153506..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/internal/ajax/errors.ts"],"names":[],"mappings":";;;AACA,mDAAkD;AAClD,6DAA4D;AAsD/C,QAAA,SAAS,GAAkB,mCAAgB,CACtD,UAAC,MAAM;IACL,OAAA,SAAS,aAAa,CAAY,OAAe,EAAE,GAAmB,EAAE,OAAoB;QAC1F,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC,YAAY,CAAC;QACrC,IAAI,QAAa,CAAC;QAClB,IAAI;YAGF,QAAQ,GAAG,+BAAc,CAAC,GAAG,CAAC,CAAC;SAChC;QAAC,OAAO,GAAG,EAAE;YACZ,QAAQ,GAAG,GAAG,CAAC,YAAY,CAAC;SAC7B;QACD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;AAhBD,CAgBC,CACJ,CAAC;AAsBW,QAAA,gBAAgB,GAAyB,CAAC;IACrD,SAAS,oBAAoB,CAAY,GAAmB,EAAE,OAAoB;QAChF,iBAAS,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;QACnD,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,oBAAoB,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,iBAAS,CAAC,SAAS,CAAC,CAAC;IACpE,OAAO,oBAAoB,CAAC;AAC9B,CAAC,CAAC,EAAS,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/getXHRResponse.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/getXHRResponse.js deleted file mode 100755 index e2f8a51fd..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/getXHRResponse.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getXHRResponse = void 0; -function getXHRResponse(xhr) { - switch (xhr.responseType) { - case 'json': { - if ('response' in xhr) { - return xhr.response; - } - else { - var ieXHR = xhr; - return JSON.parse(ieXHR.responseText); - } - } - case 'document': - return xhr.responseXML; - case 'text': - default: { - if ('response' in xhr) { - return xhr.response; - } - else { - var ieXHR = xhr; - return ieXHR.responseText; - } - } - } -} -exports.getXHRResponse = getXHRResponse; -//# sourceMappingURL=getXHRResponse.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/getXHRResponse.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/getXHRResponse.js.map deleted file mode 100644 index 142b909ac..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/getXHRResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getXHRResponse.js","sourceRoot":"","sources":["../../../../src/internal/ajax/getXHRResponse.ts"],"names":[],"mappings":";;;AAYA,SAAgB,cAAc,CAAC,GAAmB;IAChD,QAAQ,GAAG,CAAC,YAAY,EAAE;QACxB,KAAK,MAAM,CAAC,CAAC;YACX,IAAI,UAAU,IAAI,GAAG,EAAE;gBACrB,OAAO,GAAG,CAAC,QAAQ,CAAC;aACrB;iBAAM;gBAEL,IAAM,KAAK,GAAQ,GAAG,CAAC;gBACvB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;aACvC;SACF;QACD,KAAK,UAAU;YACb,OAAO,GAAG,CAAC,WAAW,CAAC;QACzB,KAAK,MAAM,CAAC;QACZ,OAAO,CAAC,CAAC;YACP,IAAI,UAAU,IAAI,GAAG,EAAE;gBACrB,OAAO,GAAG,CAAC,QAAQ,CAAC;aACrB;iBAAM;gBAEL,IAAM,KAAK,GAAQ,GAAG,CAAC;gBACvB,OAAO,KAAK,CAAC,YAAY,CAAC;aAC3B;SACF;KACF;AACH,CAAC;AAxBD,wCAwBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/types.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/types.js deleted file mode 100755 index 11e638d1e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/types.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/types.js.map deleted file mode 100644 index f08bdb1f3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/ajax/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/internal/ajax/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/config.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/config.js deleted file mode 100755 index 0e96e70fe..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/config.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.config = void 0; -exports.config = { - onUnhandledError: null, - onStoppedNotification: null, - Promise: undefined, - useDeprecatedSynchronousErrorHandling: false, - useDeprecatedNextContext: false, -}; -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/config.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/config.js.map deleted file mode 100644 index 4b498b5ea..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/internal/config.ts"],"names":[],"mappings":";;;AAOa,QAAA,MAAM,GAAiB;IAClC,gBAAgB,EAAE,IAAI;IACtB,qBAAqB,EAAE,IAAI;IAC3B,OAAO,EAAE,SAAS;IAClB,qCAAqC,EAAE,KAAK;IAC5C,wBAAwB,EAAE,KAAK;CAChC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/firstValueFrom.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/firstValueFrom.js deleted file mode 100755 index 43444eccb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/firstValueFrom.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.firstValueFrom = void 0; -var EmptyError_1 = require("./util/EmptyError"); -var Subscriber_1 = require("./Subscriber"); -function firstValueFrom(source, config) { - var hasConfig = typeof config === 'object'; - return new Promise(function (resolve, reject) { - var subscriber = new Subscriber_1.SafeSubscriber({ - next: function (value) { - resolve(value); - subscriber.unsubscribe(); - }, - error: reject, - complete: function () { - if (hasConfig) { - resolve(config.defaultValue); - } - else { - reject(new EmptyError_1.EmptyError()); - } - }, - }); - source.subscribe(subscriber); - }); -} -exports.firstValueFrom = firstValueFrom; -//# sourceMappingURL=firstValueFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/firstValueFrom.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/firstValueFrom.js.map deleted file mode 100644 index 91603f7e6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/firstValueFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"firstValueFrom.js","sourceRoot":"","sources":["../../../src/internal/firstValueFrom.ts"],"names":[],"mappings":";;;AACA,gDAA+C;AAC/C,2CAA8C;AAqD9C,SAAgB,cAAc,CAAO,MAAqB,EAAE,MAAgC;IAC1F,IAAM,SAAS,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC;IAC7C,OAAO,IAAI,OAAO,CAAQ,UAAC,OAAO,EAAE,MAAM;QACxC,IAAM,UAAU,GAAG,IAAI,2BAAc,CAAI;YACvC,IAAI,EAAE,UAAC,KAAK;gBACV,OAAO,CAAC,KAAK,CAAC,CAAC;gBACf,UAAU,CAAC,WAAW,EAAE,CAAC;YAC3B,CAAC;YACD,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE;gBACR,IAAI,SAAS,EAAE;oBACb,OAAO,CAAC,MAAO,CAAC,YAAY,CAAC,CAAC;iBAC/B;qBAAM;oBACL,MAAM,CAAC,IAAI,uBAAU,EAAE,CAAC,CAAC;iBAC1B;YACH,CAAC;SACF,CAAC,CAAC;QACH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC;AAnBD,wCAmBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/lastValueFrom.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/lastValueFrom.js deleted file mode 100755 index c29d0b37c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/lastValueFrom.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.lastValueFrom = void 0; -var EmptyError_1 = require("./util/EmptyError"); -function lastValueFrom(source, config) { - var hasConfig = typeof config === 'object'; - return new Promise(function (resolve, reject) { - var _hasValue = false; - var _value; - source.subscribe({ - next: function (value) { - _value = value; - _hasValue = true; - }, - error: reject, - complete: function () { - if (_hasValue) { - resolve(_value); - } - else if (hasConfig) { - resolve(config.defaultValue); - } - else { - reject(new EmptyError_1.EmptyError()); - } - }, - }); - }); -} -exports.lastValueFrom = lastValueFrom; -//# sourceMappingURL=lastValueFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/lastValueFrom.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/lastValueFrom.js.map deleted file mode 100644 index 747851879..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/lastValueFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lastValueFrom.js","sourceRoot":"","sources":["../../../src/internal/lastValueFrom.ts"],"names":[],"mappings":";;;AACA,gDAA+C;AAoD/C,SAAgB,aAAa,CAAO,MAAqB,EAAE,MAA+B;IACxF,IAAM,SAAS,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC;IAC7C,OAAO,IAAI,OAAO,CAAQ,UAAC,OAAO,EAAE,MAAM;QACxC,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,MAAS,CAAC;QACd,MAAM,CAAC,SAAS,CAAC;YACf,IAAI,EAAE,UAAC,KAAK;gBACV,MAAM,GAAG,KAAK,CAAC;gBACf,SAAS,GAAG,IAAI,CAAC;YACnB,CAAC;YACD,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE;gBACR,IAAI,SAAS,EAAE;oBACb,OAAO,CAAC,MAAM,CAAC,CAAC;iBACjB;qBAAM,IAAI,SAAS,EAAE;oBACpB,OAAO,CAAC,MAAO,CAAC,YAAY,CAAC,CAAC;iBAC/B;qBAAM;oBACL,MAAM,CAAC,IAAI,uBAAU,EAAE,CAAC,CAAC;iBAC1B;YACH,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAtBD,sCAsBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js deleted file mode 100755 index 468301665..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ConnectableObservable = void 0; -var Observable_1 = require("../Observable"); -var Subscription_1 = require("../Subscription"); -var refCount_1 = require("../operators/refCount"); -var OperatorSubscriber_1 = require("../operators/OperatorSubscriber"); -var lift_1 = require("../util/lift"); -var ConnectableObservable = (function (_super) { - __extends(ConnectableObservable, _super); - function ConnectableObservable(source, subjectFactory) { - var _this = _super.call(this) || this; - _this.source = source; - _this.subjectFactory = subjectFactory; - _this._subject = null; - _this._refCount = 0; - _this._connection = null; - if (lift_1.hasLift(source)) { - _this.lift = source.lift; - } - return _this; - } - ConnectableObservable.prototype._subscribe = function (subscriber) { - return this.getSubject().subscribe(subscriber); - }; - ConnectableObservable.prototype.getSubject = function () { - var subject = this._subject; - if (!subject || subject.isStopped) { - this._subject = this.subjectFactory(); - } - return this._subject; - }; - ConnectableObservable.prototype._teardown = function () { - this._refCount = 0; - var _connection = this._connection; - this._subject = this._connection = null; - _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe(); - }; - ConnectableObservable.prototype.connect = function () { - var _this = this; - var connection = this._connection; - if (!connection) { - connection = this._connection = new Subscription_1.Subscription(); - var subject_1 = this.getSubject(); - connection.add(this.source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subject_1, undefined, function () { - _this._teardown(); - subject_1.complete(); - }, function (err) { - _this._teardown(); - subject_1.error(err); - }, function () { return _this._teardown(); }))); - if (connection.closed) { - this._connection = null; - connection = Subscription_1.Subscription.EMPTY; - } - } - return connection; - }; - ConnectableObservable.prototype.refCount = function () { - return refCount_1.refCount()(this); - }; - return ConnectableObservable; -}(Observable_1.Observable)); -exports.ConnectableObservable = ConnectableObservable; -//# sourceMappingURL=ConnectableObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js.map deleted file mode 100644 index 9c85c456c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/ConnectableObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConnectableObservable.js","sourceRoot":"","sources":["../../../../src/internal/observable/ConnectableObservable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,4CAA2C;AAE3C,gDAA+C;AAC/C,kDAAwE;AACxE,sEAA2E;AAC3E,qCAAuC;AASvC;IAA8C,yCAAa;IAgBzD,+BAAmB,MAAqB,EAAY,cAAgC;QAApF,YACE,iBAAO,SAOR;QARkB,YAAM,GAAN,MAAM,CAAe;QAAY,oBAAc,GAAd,cAAc,CAAkB;QAf1E,cAAQ,GAAsB,IAAI,CAAC;QACnC,eAAS,GAAW,CAAC,CAAC;QACtB,iBAAW,GAAwB,IAAI,CAAC;QAkBhD,IAAI,cAAO,CAAC,MAAM,CAAC,EAAE;YACnB,KAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;SACzB;;IACH,CAAC;IAGS,0CAAU,GAApB,UAAqB,UAAyB;QAC5C,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAES,0CAAU,GAApB;QACE,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,SAAS,EAAE;YACjC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;SACvC;QACD,OAAO,IAAI,CAAC,QAAS,CAAC;IACxB,CAAC;IAES,yCAAS,GAAnB;QACE,IAAI,CAAC,SAAS,GAAG,CAAC,CAAC;QACX,IAAA,WAAW,GAAK,IAAI,YAAT,CAAU;QAC7B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxC,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,EAAE,CAAC;IAC7B,CAAC;IAMD,uCAAO,GAAP;QAAA,iBA6BC;QA5BC,IAAI,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC;QAClC,IAAI,CAAC,UAAU,EAAE;YACf,UAAU,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,2BAAY,EAAE,CAAC;YACnD,IAAM,SAAO,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YAClC,UAAU,CAAC,GAAG,CACZ,IAAI,CAAC,MAAM,CAAC,SAAS,CACnB,6CAAwB,CACtB,SAAc,EACd,SAAS,EACT;gBACE,KAAI,CAAC,SAAS,EAAE,CAAC;gBACjB,SAAO,CAAC,QAAQ,EAAE,CAAC;YACrB,CAAC,EACD,UAAC,GAAG;gBACF,KAAI,CAAC,SAAS,EAAE,CAAC;gBACjB,SAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACrB,CAAC,EACD,cAAM,OAAA,KAAI,CAAC,SAAS,EAAE,EAAhB,CAAgB,CACvB,CACF,CACF,CAAC;YAEF,IAAI,UAAU,CAAC,MAAM,EAAE;gBACrB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;gBACxB,UAAU,GAAG,2BAAY,CAAC,KAAK,CAAC;aACjC;SACF;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IAMD,wCAAQ,GAAR;QACE,OAAO,mBAAmB,EAAE,CAAC,IAAI,CAAkB,CAAC;IACtD,CAAC;IACH,4BAAC;AAAD,CAAC,AAxFD,CAA8C,uBAAU,GAwFvD;AAxFY,sDAAqB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js deleted file mode 100755 index c5aaa4f5a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bindCallback = void 0; -var bindCallbackInternals_1 = require("./bindCallbackInternals"); -function bindCallback(callbackFunc, resultSelector, scheduler) { - return bindCallbackInternals_1.bindCallbackInternals(false, callbackFunc, resultSelector, scheduler); -} -exports.bindCallback = bindCallback; -//# sourceMappingURL=bindCallback.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js.map deleted file mode 100644 index fcb245b84..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallback.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindCallback.js","sourceRoot":"","sources":["../../../../src/internal/observable/bindCallback.ts"],"names":[],"mappings":";;;AAGA,iEAAgE;AAuIhE,SAAgB,YAAY,CAC1B,YAAkE,EAClE,cAA0D,EAC1D,SAAyB;IAEzB,OAAO,6CAAqB,CAAC,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;AAC/E,CAAC;AAND,oCAMC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js deleted file mode 100755 index 94360db63..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bindCallbackInternals = void 0; -var isScheduler_1 = require("../util/isScheduler"); -var Observable_1 = require("../Observable"); -var subscribeOn_1 = require("../operators/subscribeOn"); -var mapOneOrManyArgs_1 = require("../util/mapOneOrManyArgs"); -var observeOn_1 = require("../operators/observeOn"); -var AsyncSubject_1 = require("../AsyncSubject"); -function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) { - if (resultSelector) { - if (isScheduler_1.isScheduler(resultSelector)) { - scheduler = resultSelector; - } - else { - return function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler) - .apply(this, args) - .pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); - }; - } - } - if (scheduler) { - return function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return bindCallbackInternals(isNodeStyle, callbackFunc) - .apply(this, args) - .pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); - }; - } - return function () { - var _this = this; - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var subject = new AsyncSubject_1.AsyncSubject(); - var uninitialized = true; - return new Observable_1.Observable(function (subscriber) { - var subs = subject.subscribe(subscriber); - if (uninitialized) { - uninitialized = false; - var isAsync_1 = false; - var isComplete_1 = false; - callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [ - function () { - var results = []; - for (var _i = 0; _i < arguments.length; _i++) { - results[_i] = arguments[_i]; - } - if (isNodeStyle) { - var err = results.shift(); - if (err != null) { - subject.error(err); - return; - } - } - subject.next(1 < results.length ? results : results[0]); - isComplete_1 = true; - if (isAsync_1) { - subject.complete(); - } - }, - ])); - if (isComplete_1) { - subject.complete(); - } - isAsync_1 = true; - } - return subs; - }); - }; -} -exports.bindCallbackInternals = bindCallbackInternals; -//# sourceMappingURL=bindCallbackInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js.map deleted file mode 100644 index a28c457af..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindCallbackInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindCallbackInternals.js","sourceRoot":"","sources":["../../../../src/internal/observable/bindCallbackInternals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,mDAAkD;AAClD,4CAA2C;AAC3C,wDAAuD;AACvD,6DAA4D;AAC5D,oDAAmD;AACnD,gDAA+C;AAE/C,SAAgB,qBAAqB,CACnC,WAAoB,EACpB,YAAiB,EACjB,cAAoB,EACpB,SAAyB;IAEzB,IAAI,cAAc,EAAE;QAClB,IAAI,yBAAW,CAAC,cAAc,CAAC,EAAE;YAC/B,SAAS,GAAG,cAAc,CAAC;SAC5B;aAAM;YAEL,OAAO;gBAAqB,cAAc;qBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;oBAAd,yBAAc;;gBACxC,OAAQ,qBAAqB,CAAC,WAAW,EAAE,YAAY,EAAE,SAAS,CAAS;qBACxE,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC;qBACjB,IAAI,CAAC,mCAAgB,CAAC,cAAqB,CAAC,CAAC,CAAC;YACnD,CAAC,CAAC;SACH;KACF;IAID,IAAI,SAAS,EAAE;QACb,OAAO;YAAqB,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YACxC,OAAQ,qBAAqB,CAAC,WAAW,EAAE,YAAY,CAAS;iBAC7D,KAAK,CAAC,I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BAID,SAAO,GAAG,IAAI,CAAC;aAChB;YAGD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AA9GD,sDA8GC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js deleted file mode 100755 index 1b9da39a1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bindNodeCallback = void 0; -var bindCallbackInternals_1 = require("./bindCallbackInternals"); -function bindNodeCallback(callbackFunc, resultSelector, scheduler) { - return bindCallbackInternals_1.bindCallbackInternals(true, callbackFunc, resultSelector, scheduler); -} -exports.bindNodeCallback = bindNodeCallback; -//# sourceMappingURL=bindNodeCallback.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js.map deleted file mode 100644 index 17cfa5d8f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/bindNodeCallback.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindNodeCallback.js","sourceRoot":"","sources":["../../../../src/internal/observable/bindNodeCallback.ts"],"names":[],"mappings":";;;AAGA,iEAAgE;AAsHhE,SAAgB,gBAAgB,CAC9B,YAA4E,EAC5E,cAA0D,EAC1D,SAAyB;IAEzB,OAAO,6CAAqB,CAAC,IAAI,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;AAC9E,CAAC;AAND,4CAMC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js deleted file mode 100755 index b89f3c52d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js +++ /dev/null @@ -1,75 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.combineLatestInit = exports.combineLatest = void 0; -var Observable_1 = require("../Observable"); -var argsArgArrayOrObject_1 = require("../util/argsArgArrayOrObject"); -var from_1 = require("./from"); -var identity_1 = require("../util/identity"); -var mapOneOrManyArgs_1 = require("../util/mapOneOrManyArgs"); -var args_1 = require("../util/args"); -var createObject_1 = require("../util/createObject"); -var OperatorSubscriber_1 = require("../operators/OperatorSubscriber"); -var executeSchedule_1 = require("../util/executeSchedule"); -function combineLatest() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = args_1.popScheduler(args); - var resultSelector = args_1.popResultSelector(args); - var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), observables = _a.args, keys = _a.keys; - if (observables.length === 0) { - return from_1.from([], scheduler); - } - var result = new Observable_1.Observable(combineLatestInit(observables, scheduler, keys - ? - function (values) { return createObject_1.createObject(keys, values); } - : - identity_1.identity)); - return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result; -} -exports.combineLatest = combineLatest; -function combineLatestInit(observables, scheduler, valueTransform) { - if (valueTransform === void 0) { valueTransform = identity_1.identity; } - return function (subscriber) { - maybeSchedule(scheduler, function () { - var length = observables.length; - var values = new Array(length); - var active = length; - var remainingFirstValues = length; - var _loop_1 = function (i) { - maybeSchedule(scheduler, function () { - var source = from_1.from(observables[i], scheduler); - var hasFirstValue = false; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - values[i] = value; - if (!hasFirstValue) { - hasFirstValue = true; - remainingFirstValues--; - } - if (!remainingFirstValues) { - subscriber.next(valueTransform(values.slice())); - } - }, function () { - if (!--active) { - subscriber.complete(); - } - })); - }, subscriber); - }; - for (var i = 0; i < length; i++) { - _loop_1(i); - } - }, subscriber); - }; -} -exports.combineLatestInit = combineLatestInit; -function maybeSchedule(scheduler, execute, subscription) { - if (scheduler) { - executeSchedule_1.executeSchedule(subscription, scheduler, execute); - } - else { - execute(); - } -} -//# sourceMappingURL=combineLatest.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js.map deleted file mode 100644 index 9b1da32cd..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/combineLatest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatest.js","sourceRoot":"","sources":["../../../../src/internal/observable/combineLatest.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAE3C,qEAAoE;AAEpE,+BAA8B;AAC9B,6CAA4C;AAE5C,6DAA4D;AAC5D,qCAA+D;AAC/D,qDAAoD;AACpD,sEAA2E;AAE3E,2DAA0D;AA4L1D,SAAgB,aAAa;IAAoC,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IAC7E,IAAM,SAAS,GAAG,mBAAY,CAAC,IAAI,CAAC,CAAC;IACrC,IAAM,cAAc,GAAG,wBAAiB,CAAC,IAAI,CAAC,CAAC;IAEzC,IAAA,KAA8B,2CAAoB,CAAC,IAAI,CAAC,EAAhD,WAAW,UAAA,EAAE,IAAI,UAA+B,CAAC;IAE/D,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;QAI5B,OAAO,WAAI,CAAC,EAAE,EAAE,SAAgB,CAAC,CAAC;KACnC;IAED,IAAM,MAAM,GAAG,IAAI,uBAAU,CAC3B,iBAAiB,CACf,WAAoD,EACpD,SAAS,EACT,IAAI;QACF,CAAC;YACC,UAAC,MAAM,IAAK,OAAA,2BAAY,CAAC,IAAI,EAAE,MAAM,CAAC,EAA1B,CAA0B;QACxC,CAAC;YACC,mBAAQ,CACb,CACF,CAAC;IAEF,OAAO,cAAc,CAAC,CA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;QACH,CAAC,EACD,UAAU,CACX,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AA/DD,8CA+DC;AAMD,SAAS,aAAa,CAAC,SAAoC,EAAE,OAAmB,EAAE,YAA0B;IAC1G,IAAI,SAAS,EAAE;QACb,iCAAe,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;KACnD;SAAM;QACL,OAAO,EAAE,CAAC;KACX;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/concat.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/concat.js deleted file mode 100755 index 120d5fb46..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/concat.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.concat = void 0; -var concatAll_1 = require("../operators/concatAll"); -var args_1 = require("../util/args"); -var from_1 = require("./from"); -function concat() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return concatAll_1.concatAll()(from_1.from(args, args_1.popScheduler(args))); -} -exports.concat = concat; -//# sourceMappingURL=concat.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/concat.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/concat.js.map deleted file mode 100644 index ec59ae378..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/concat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../../src/internal/observable/concat.ts"],"names":[],"mappings":";;;AAEA,oDAAmD;AACnD,qCAA4C;AAC5C,+BAA8B;AA4G9B,SAAgB,MAAM;IAAC,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IACnC,OAAO,qBAAS,EAAE,CAAC,WAAI,CAAC,IAAI,EAAE,mBAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACrD,CAAC;AAFD,wBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/connectable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/connectable.js deleted file mode 100755 index 5952e6a14..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/connectable.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.connectable = void 0; -var Subject_1 = require("../Subject"); -var Observable_1 = require("../Observable"); -var defer_1 = require("./defer"); -var DEFAULT_CONFIG = { - connector: function () { return new Subject_1.Subject(); }, - resetOnDisconnect: true, -}; -function connectable(source, config) { - if (config === void 0) { config = DEFAULT_CONFIG; } - var connection = null; - var connector = config.connector, _a = config.resetOnDisconnect, resetOnDisconnect = _a === void 0 ? true : _a; - var subject = connector(); - var result = new Observable_1.Observable(function (subscriber) { - return subject.subscribe(subscriber); - }); - result.connect = function () { - if (!connection || connection.closed) { - connection = defer_1.defer(function () { return source; }).subscribe(subject); - if (resetOnDisconnect) { - connection.add(function () { return (subject = connector()); }); - } - } - return connection; - }; - return result; -} -exports.connectable = connectable; -//# sourceMappingURL=connectable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/connectable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/connectable.js.map deleted file mode 100644 index f319d9f48..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/connectable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"connectable.js","sourceRoot":"","sources":["../../../../src/internal/observable/connectable.ts"],"names":[],"mappings":";;;AACA,sCAAqC;AAErC,4CAA2C;AAC3C,iCAAgC;AAsBhC,IAAM,cAAc,GAA+B;IACjD,SAAS,EAAE,cAAM,OAAA,IAAI,iBAAO,EAAW,EAAtB,CAAsB;IACvC,iBAAiB,EAAE,IAAI;CACxB,CAAC;AAUF,SAAgB,WAAW,CAAI,MAA0B,EAAE,MAA6C;IAA7C,uBAAA,EAAA,uBAA6C;IAEtG,IAAI,UAAU,GAAwB,IAAI,CAAC;IACnC,IAAA,SAAS,GAA+B,MAAM,UAArC,EAAE,KAA6B,MAAM,kBAAX,EAAxB,iBAAiB,mBAAG,IAAI,KAAA,CAAY;IACvD,IAAI,OAAO,GAAG,SAAS,EAAE,CAAC;IAE1B,IAAM,MAAM,GAAQ,IAAI,uBAAU,CAAI,UAAC,UAAU;QAC/C,OAAO,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAKH,MAAM,CAAC,OAAO,GAAG;QACf,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,EAAE;YACpC,UAAU,GAAG,aAAK,CAAC,cAAM,OAAA,MAAM,EAAN,CAAM,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACpD,IAAI,iBAAiB,EAAE;gBACrB,UAAU,CAAC,GAAG,CAAC,cAAM,OAAA,CAAC,OAAO,GAAG,SAAS,EAAE,CAAC,EAAvB,CAAuB,CAAC,CAAC;aAC/C;SACF;QACD,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC;AAxBD,kCAwBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/defer.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/defer.js deleted file mode 100755 index 56f9ddb61..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/defer.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defer = void 0; -var Observable_1 = require("../Observable"); -var innerFrom_1 = require("./innerFrom"); -function defer(observableFactory) { - return new Observable_1.Observable(function (subscriber) { - innerFrom_1.innerFrom(observableFactory()).subscribe(subscriber); - }); -} -exports.defer = defer; -//# sourceMappingURL=defer.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/defer.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/defer.js.map deleted file mode 100644 index df7957d63..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/defer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"defer.js","sourceRoot":"","sources":["../../../../src/internal/observable/defer.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAE3C,yCAAwC;AAkDxC,SAAgB,KAAK,CAAiC,iBAA0B;IAC9E,OAAO,IAAI,uBAAU,CAAqB,UAAC,UAAU;QACnD,qBAAS,CAAC,iBAAiB,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sBAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/WebSocketSubject.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/WebSocketSubject.js deleted file mode 100755 index cead103c9..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/WebSocketSubject.js +++ /dev/null @@ -1,249 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WebSocketSubject = void 0; -var Subject_1 = require("../../Subject"); -var Subscriber_1 = require("../../Subscriber"); -var Observable_1 = require("../../Observable"); -var Subscription_1 = require("../../Subscription"); -var ReplaySubject_1 = require("../../ReplaySubject"); -var DEFAULT_WEBSOCKET_CONFIG = { - url: '', - deserializer: function (e) { return JSON.parse(e.data); }, - serializer: function (value) { return JSON.stringify(value); }, -}; -var WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT = 'WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }'; -var WebSocketSubject = (function (_super) { - __extends(WebSocketSubject, _super); - function WebSocketSubject(urlConfigOrSource, destination) { - var _this = _super.call(this) || this; - _this._socket = null; - if (urlConfigOrSource instanceof Observable_1.Observable) { - _this.destination = destination; - _this.source = urlConfigOrSource; - } - else { - var config = (_this._config = __assign({}, DEFAULT_WEBSOCKET_CONFIG)); - _this._output = new Subject_1.Subject(); - if (typeof urlConfigOrSource === 'string') { - config.url = urlConfigOrSource; - } - else { - for (var key in urlConfigOrSource) { - if (urlConfigOrSource.hasOwnProperty(key)) { - config[key] = urlConfigOrSource[key]; - } - } - } - if (!config.WebSocketCtor && WebSocket) { - config.WebSocketCtor = WebSocket; - } - else if (!config.WebSocketCtor) { - throw new Error('no WebSocket constructor can be found'); - } - _this.destination = new ReplaySubject_1.ReplaySubject(); - } - return _this; - } - WebSocketSubject.prototype.lift = function (operator) { - var sock = new WebSocketSubject(this._config, this.destination); - sock.operator = operator; - sock.source = this; - return sock; - }; - WebSocketSubject.prototype._resetState = function () { - this._socket = null; - if (!this.source) { - this.destination = new ReplaySubject_1.ReplaySubject(); - } - this._output = new Subject_1.Subject(); - }; - WebSocketSubject.prototype.multiplex = function (subMsg, unsubMsg, messageFilter) { - var self = this; - return new Observable_1.Observable(function (observer) { - try { - self.next(subMsg()); - } - catch (err) { - observer.error(err); - } - var subscription = self.subscribe({ - next: function (x) { - try { - if (messageFilter(x)) { - observer.next(x); - } - } - catch (err) { - observer.error(err); - } - }, - error: function (err) { return observer.error(err); }, - complete: function () { return observer.complete(); }, - }); - return function () { - try { - self.next(unsubMsg()); - } - catch (err) { - observer.error(err); - } - subscription.unsubscribe(); - }; - }); - }; - WebSocketSubject.prototype._connectSocket = function () { - var _this = this; - var _a = this._config, WebSocketCtor = _a.WebSocketCtor, protocol = _a.protocol, url = _a.url, binaryType = _a.binaryType; - var observer = this._output; - var socket = null; - try { - socket = protocol ? new WebSocketCtor(url, protocol) : new WebSocketCtor(url); - this._socket = socket; - if (binaryType) { - this._socket.binaryType = binaryType; - } - } - catch (e) { - observer.error(e); - return; - } - var subscription = new Subscription_1.Subscription(function () { - _this._socket = null; - if (socket && socket.readyState === 1) { - socket.close(); - } - }); - socket.onopen = function (evt) { - var _socket = _this._socket; - if (!_socket) { - socket.close(); - _this._resetState(); - return; - } - var openObserver = _this._config.openObserver; - if (openObserver) { - openObserver.next(evt); - } - var queue = _this.destination; - _this.destination = Subscriber_1.Subscriber.create(function (x) { - if (socket.readyState === 1) { - try { - var serializer = _this._config.serializer; - socket.send(serializer(x)); - } - catch (e) { - _this.destination.error(e); - } - } - }, function (err) { - var closingObserver = _this._config.closingObserver; - if (closingObserver) { - closingObserver.next(undefined); - } - if (err && err.code) { - socket.close(err.code, err.reason); - } - else { - observer.error(new TypeError(WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT)); - } - _this._resetState(); - }, function () { - var closingObserver = _this._config.closingObserver; - if (closingObserver) { - closingObserver.next(undefined); - } - socket.close(); - _this._resetState(); - }); - if (queue && queue instanceof ReplaySubject_1.ReplaySubject) { - subscription.add(queue.subscribe(_this.destination)); - } - }; - socket.onerror = function (e) { - _this._resetState(); - observer.error(e); - }; - socket.onclose = function (e) { - if (socket === _this._socket) { - _this._resetState(); - } - var closeObserver = _this._config.closeObserver; - if (closeObserver) { - closeObserver.next(e); - } - if (e.wasClean) { - observer.complete(); - } - else { - observer.error(e); - } - }; - socket.onmessage = function (e) { - try { - var deserializer = _this._config.deserializer; - observer.next(deserializer(e)); - } - catch (err) { - observer.error(err); - } - }; - }; - WebSocketSubject.prototype._subscribe = function (subscriber) { - var _this = this; - var source = this.source; - if (source) { - return source.subscribe(subscriber); - } - if (!this._socket) { - this._connectSocket(); - } - this._output.subscribe(subscriber); - subscriber.add(function () { - var _socket = _this._socket; - if (_this._output.observers.length === 0) { - if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) { - _socket.close(); - } - _this._resetState(); - } - }); - return subscriber; - }; - WebSocketSubject.prototype.unsubscribe = function () { - var _socket = this._socket; - if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) { - _socket.close(); - } - this._resetState(); - _super.prototype.unsubscribe.call(this); - }; - return WebSocketSubject; -}(Subject_1.AnonymousSubject)); -exports.WebSocketSubject = WebSocketSubject; -//# sourceMappingURL=WebSocketSubject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/WebSocketSubject.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/WebSocketSubject.js.map deleted file mode 100644 index ec11b0bbb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/WebSocketSubject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WebSocketSubject.js","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/WebSocketSubject.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAA0D;AAC1D,+CAA8C;AAC9C,+CAA8C;AAC9C,mDAAkD;AAElD,qDAAoD;AA4IpD,IAAM,wBAAwB,GAAgC;IAC5D,GAAG,EAAE,EAAE;IACP,YAAY,EAAE,UAAC,CAAe,IAAK,OAAA,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,EAAlB,CAAkB;IACrD,UAAU,EAAE,UAAC,KAAU,IAAK,OAAA,IAAI,CAAC,SAAS,CAAC,KAA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AAS,CAAC,UAAU,CAAC,CAAC;QACnC,UAAU,CAAC,GAAG,CAAC;YACL,IAAA,OAAO,GAAK,KAAI,QAAT,CAAU;YACzB,IAAI,KAAI,CAAC,OAAO,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;gBACvC,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,KAAK,CAAC,IAAI,OAAO,CAAC,UAAU,KAAK,CAAC,CAAC,EAAE;oBACrE,OAAO,CAAC,KAAK,EAAE,CAAC;iBACjB;gBACD,KAAI,CAAC,WAAW,EAAE,CAAC;aACpB;QACH,CAAC,CAAC,CAAC;QACH,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,sCAAW,GAAX;QACU,IAAA,OAAO,GAAK,IAAI,QAAT,CAAU;QACzB,IAAI,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,KAAK,CAAC,IAAI,OAAO,CAAC,UAAU,KAAK,CAAC,CAAC,EAAE;YACrE,OAAO,CAAC,KAAK,EAAE,CAAC;SACjB;QACD,IAAI,CAAC,WAAW,EAAE,CAAC;QACnB,iBAAM,WAAW,WAAE,CAAC;IACtB,CAAC;IACH,uBAAC;AAAD,CAAC,AAhPD,CAAyC,0BAAgB,GAgPxD;AAhPY,4CAAgB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js deleted file mode 100755 index aeb24d1ef..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.animationFrames = void 0; -var Observable_1 = require("../../Observable"); -var performanceTimestampProvider_1 = require("../../scheduler/performanceTimestampProvider"); -var animationFrameProvider_1 = require("../../scheduler/animationFrameProvider"); -function animationFrames(timestampProvider) { - return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES; -} -exports.animationFrames = animationFrames; -function animationFramesFactory(timestampProvider) { - return new Observable_1.Observable(function (subscriber) { - var provider = timestampProvider || performanceTimestampProvider_1.performanceTimestampProvider; - var start = provider.now(); - var id = 0; - var run = function () { - if (!subscriber.closed) { - id = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function (timestamp) { - id = 0; - var now = provider.now(); - subscriber.next({ - timestamp: timestampProvider ? now : timestamp, - elapsed: now - start, - }); - run(); - }); - } - }; - run(); - return function () { - if (id) { - animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id); - } - }; - }); -} -var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(); -//# sourceMappingURL=animationFrames.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js.map deleted file mode 100644 index 3291a02d7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/animationFrames.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrames.js","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/animationFrames.ts"],"names":[],"mappings":";;;AAAA,+CAA8C;AAE9C,6FAA4F;AAC5F,iFAAgF;AAuEhF,SAAgB,eAAe,CAAC,iBAAqC;IACnE,OAAO,iBAAiB,CAAC,CAAC,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,wBAAwB,CAAC;AAClG,CAAC;AAFD,0CAEC;AAMD,SAAS,sBAAsB,CAAC,iBAAqC;IACnE,OAAO,IAAI,uBAAU,CAAyC,UAAC,UAAU;QAIvE,IAAM,QAAQ,GAAG,iBAAiB,IAAI,2DAA4B,CAAC;QAMnE,IAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC;QAE7B,IAAI,EAAE,GAAG,CAAC,CAAC;QACX,IAAM,GAAG,GAAG;YACV,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;gBACtB,EAAE,GAAG,+CAAsB,CAAC,qBAAqB,CAAC,UAAC,SAAuC;oBACxF,EAAE,GAAG,CAAC,CAAC;oBAQP,IAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC;wBACd,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS;wBAC9C,OAAO,EAAE,GAAG,GAAG,KAAK;qBACrB,CAAC,CAAC;oBACH,GAAG,EAAE,CAAC;gBACR,CAAC,CAAC,CAAC;aACJ;QACH,CAAC,CAAC;QAEF,GAAG,EAAE,CAAC;QAEN,OAAO;YACL,IAAI,EAAE,EAAE;gBACN,+CAAsB,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;aACjD;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAMD,IAAM,wBAAwB,GAAG,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/fetch.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/fetch.js deleted file mode 100755 index 0bb09efc0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/fetch.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromFetch = void 0; -var OperatorSubscriber_1 = require("../../operators/OperatorSubscriber"); -var Observable_1 = require("../../Observable"); -var innerFrom_1 = require("../../observable/innerFrom"); -function fromFetch(input, initWithSelector) { - if (initWithSelector === void 0) { initWithSelector = {}; } - var selector = initWithSelector.selector, init = __rest(initWithSelector, ["selector"]); - return new Observable_1.Observable(function (subscriber) { - var controller = new AbortController(); - var signal = controller.signal; - var abortable = true; - var outerSignal = init.signal; - if (outerSignal) { - if (outerSignal.aborted) { - controller.abort(); - } - else { - var outerSignalHandler_1 = function () { - if (!signal.aborted) { - controller.abort(); - } - }; - outerSignal.addEventListener('abort', outerSignalHandler_1); - subscriber.add(function () { return outerSignal.removeEventListener('abort', outerSignalHandler_1); }); - } - } - var perSubscriberInit = __assign(__assign({}, init), { signal: signal }); - var handleError = function (err) { - abortable = false; - subscriber.error(err); - }; - fetch(input, perSubscriberInit) - .then(function (response) { - if (selector) { - innerFrom_1.innerFrom(selector(response)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function () { - abortable = false; - subscriber.complete(); - }, handleError)); - } - else { - abortable = false; - subscriber.next(response); - subscriber.complete(); - } - }) - .catch(handleError); - return function () { - if (abortable) { - controller.abort(); - } - }; - }); -} -exports.fromFetch = fromFetch; -//# sourceMappingURL=fetch.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/fetch.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/fetch.js.map deleted file mode 100644 index a770094e4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/fetch.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/fetch.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;A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AAC,SAAS,CACrC,6CAAwB,CACtB,UAAU,EAEV,SAAS,EAET;oBACE,SAAS,GAAG,KAAK,CAAC;oBAClB,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACxB,CAAC,EACD,WAAW,CACZ,CACF,CAAC;aACH;iBAAM;gBACL,SAAS,GAAG,KAAK,CAAC;gBAClB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC1B,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,CAAC;aACD,KAAK,CAAC,WAAW,CAAC,CAAC;QAEtB,OAAO;YACL,IAAI,SAAS,EAAE;gBACb,UAAU,CAAC,KAAK,EAAE,CAAC;aACpB;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AArFD,8BAqFC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/webSocket.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/webSocket.js deleted file mode 100755 index 449b94265..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/webSocket.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.webSocket = void 0; -var WebSocketSubject_1 = require("./WebSocketSubject"); -function webSocket(urlConfigOrSource) { - return new WebSocketSubject_1.WebSocketSubject(urlConfigOrSource); -} -exports.webSocket = webSocket; -//# sourceMappingURL=webSocket.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/webSocket.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/webSocket.js.map deleted file mode 100644 index f81c26937..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/dom/webSocket.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webSocket.js","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/webSocket.ts"],"names":[],"mappings":";;;AAAA,uDAA8E;AA+J9E,SAAgB,SAAS,CAAI,iBAAqD;IAChF,OAAO,IAAI,mCAAgB,CAAI,iBAAiB,CAAC,CAAC;AACpD,CAAC;AAFD,8BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/empty.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/empty.js deleted file mode 100755 index adce28901..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/empty.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.empty = exports.EMPTY = void 0; -var Observable_1 = require("../Observable"); -exports.EMPTY = new Observable_1.Observable(function (subscriber) { return subscriber.complete(); }); -function empty(scheduler) { - return scheduler ? emptyScheduled(scheduler) : exports.EMPTY; -} -exports.empty = empty; -function emptyScheduled(scheduler) { - return new Observable_1.Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); }); -} -//# sourceMappingURL=empty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/empty.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/empty.js.map deleted file mode 100644 index bbe6332ab..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/empty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../../src/internal/observable/empty.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAiE9B,QAAA,KAAK,GAAG,IAAI,uBAAU,CAAQ,UAAC,UAAU,IAAK,OAAA,UAAU,CAAC,QAAQ,EAAE,EAArB,CAAqB,CAAC,CAAC;AAOlF,SAAgB,KAAK,CAAC,SAAyB;IAC7C,OAAO,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,aAAK,CAAC;AACvD,CAAC;AAFD,sBAEC;AAED,SAAS,cAAc,CAAC,SAAwB;IAC9C,OAAO,IAAI,uBAAU,CAAQ,UAAC,UAAU,IAAK,OAAA,SAAS,CAAC,QAAQ,CAAC,cAAM,OAAA,UAAU,CAAC,QAAQ,EAAE,EAArB,CAAqB,CAAC,EAA/C,CAA+C,CAAC,CAAC;AAChG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js deleted file mode 100755 index 398335486..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.forkJoin = void 0; -var Observable_1 = require("../Observable"); -var argsArgArrayOrObject_1 = require("../util/argsArgArrayOrObject"); -var innerFrom_1 = require("./innerFrom"); -var args_1 = require("../util/args"); -var OperatorSubscriber_1 = require("../operators/OperatorSubscriber"); -var mapOneOrManyArgs_1 = require("../util/mapOneOrManyArgs"); -var createObject_1 = require("../util/createObject"); -function forkJoin() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var resultSelector = args_1.popResultSelector(args); - var _a = argsArgArrayOrObject_1.argsArgArrayOrObject(args), sources = _a.args, keys = _a.keys; - var result = new Observable_1.Observable(function (subscriber) { - var length = sources.length; - if (!length) { - subscriber.complete(); - return; - } - var values = new Array(length); - var remainingCompletions = length; - var remainingEmissions = length; - var _loop_1 = function (sourceIndex) { - var hasValue = false; - innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - if (!hasValue) { - hasValue = true; - remainingEmissions--; - } - values[sourceIndex] = value; - }, function () { return remainingCompletions--; }, undefined, function () { - if (!remainingCompletions || !hasValue) { - if (!remainingEmissions) { - subscriber.next(keys ? createObject_1.createObject(keys, values) : values); - } - subscriber.complete(); - } - })); - }; - for (var sourceIndex = 0; sourceIndex < length; sourceIndex++) { - _loop_1(sourceIndex); - } - }); - return resultSelector ? result.pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) : result; -} -exports.forkJoin = forkJoin; -//# sourceMappingURL=forkJoin.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js.map deleted file mode 100644 index 663d4126d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/forkJoin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"forkJoin.js","sourceRoot":"","sources":["../../../../src/internal/observable/forkJoin.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAE3C,qEAAoE;AACpE,yCAAwC;AACxC,qCAAiD;AACjD,sEAA2E;AAC3E,6DAA4D;AAC5D,qDAAoD;AA2IpD,SAAgB,QAAQ;IAAC,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IACrC,IAAM,cAAc,GAAG,wBAAiB,CAAC,IAAI,CAAC,CAAC;IACzC,IAAA,KAA0B,2CAAoB,CAAC,IAAI,CAAC,EAA5C,OAAO,UAAA,EAAE,IAAI,UAA+B,CAAC;IAC3D,IAAM,MAAM,GAAG,IAAI,uBAAU,CAAC,UAAC,UAAU;QAC/B,IAAA,MAAM,GAAK,OAAO,OAAZ,CAAa;QAC3B,IAAI,CAAC,MAAM,EAAE;YACX,UAAU,CAAC,QAAQ,EAAE,CAAC;YACtB,OAAO;SACR;QACD,IAAM,MAAM,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,oBAAoB,GAAG,MAAM,CAAC;QAClC,IAAI,kBAAkB,GAAG,MAAM,CAAC;gCACvB,WAAW;YAClB,IAAI,QAAQ,GAAG,KAAK,CAAC;YACrB,qBAAS,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CACvC,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;gBACJ,IAAI,CAAC,QAAQ,EAAE;oBACb,QAAQ,GAAG,IAAI,CAAC;oBAChB,kBAAkB,EAAE,CAAC;iBACtB;gBACD,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;YAC9B,CAAC,EACD,cAAM,OAAA,oBAAoB,EAAE,EAAtB,CAAsB,EAC5B,SAAS,EACT;gBACE,IAAI,CAAC,oBAAoB,IAAI,CAAC,QAAQ,EAAE;oBACtC,IAAI,CAAC,kBAAkB,EAAE;wBACvB,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,2BAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;qBAC7D;oBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;iBACvB;YACH,CAAC,CACF,CACF,CAAC;;QAvBJ,KAAK,IAAI,WAAW,GAAG,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE,WAAW,EAAE;oBAApD,WAAW;SAwBnB;IACH,CAAC,CAAC,CAAC;IACH,OAAO,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,mCAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACjF,CAAC;AAvCD,4BAuCC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/from.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/from.js deleted file mode 100755 index 60e711ccd..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/from.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.from = void 0; -var scheduled_1 = require("../scheduled/scheduled"); -var innerFrom_1 = require("./innerFrom"); -function from(input, scheduler) { - return scheduler ? scheduled_1.scheduled(input, scheduler) : innerFrom_1.innerFrom(input); -} -exports.from = from; -//# sourceMappingURL=from.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/from.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/from.js.map deleted file mode 100644 index 2a9bc11ad..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/from.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"from.js","sourceRoot":"","sources":["../../../../src/internal/observable/from.ts"],"names":[],"mappings":";;;AAEA,oDAAmD;AACnD,yCAAwC;AAkGxC,SAAgB,IAAI,CAAI,KAAyB,EAAE,SAAyB;IAC1E,OAAO,SAAS,CAAC,CAAC,CAAC,qBAAS,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,qBAAS,CAAC,KAAK,CAAC,CAAC;AACpE,CAAC;AAFD,oBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js deleted file mode 100755 index f43351a8c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromEvent = void 0; -var innerFrom_1 = require("../observable/innerFrom"); -var Observable_1 = require("../Observable"); -var mergeMap_1 = require("../operators/mergeMap"); -var isArrayLike_1 = require("../util/isArrayLike"); -var isFunction_1 = require("../util/isFunction"); -var mapOneOrManyArgs_1 = require("../util/mapOneOrManyArgs"); -var nodeEventEmitterMethods = ['addListener', 'removeListener']; -var eventTargetMethods = ['addEventListener', 'removeEventListener']; -var jqueryMethods = ['on', 'off']; -function fromEvent(target, eventName, options, resultSelector) { - if (isFunction_1.isFunction(options)) { - resultSelector = options; - options = undefined; - } - if (resultSelector) { - return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); - } - var _a = __read(isEventTarget(target) - ? eventTargetMethods.map(function (methodName) { return function (handler) { return target[methodName](eventName, handler, options); }; }) - : - isNodeStyleEventEmitter(target) - ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) - : isJQueryStyleEventEmitter(target) - ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) - : [], 2), add = _a[0], remove = _a[1]; - if (!add) { - if (isArrayLike_1.isArrayLike(target)) { - return mergeMap_1.mergeMap(function (subTarget) { return fromEvent(subTarget, eventName, options); })(innerFrom_1.innerFrom(target)); - } - } - if (!add) { - throw new TypeError('Invalid event target'); - } - return new Observable_1.Observable(function (subscriber) { - var handler = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return subscriber.next(1 < args.length ? args : args[0]); - }; - add(handler); - return function () { return remove(handler); }; - }); -} -exports.fromEvent = fromEvent; -function toCommonHandlerRegistry(target, eventName) { - return function (methodName) { return function (handler) { return target[methodName](eventName, handler); }; }; -} -function isNodeStyleEventEmitter(target) { - return isFunction_1.isFunction(target.addListener) && isFunction_1.isFunction(target.removeListener); -} -function isJQueryStyleEventEmitter(target) { - return isFunction_1.isFunction(target.on) && isFunction_1.isFunction(target.off); -} -function isEventTarget(target) { - return isFunction_1.isFunction(target.addEventListener) && isFunction_1.isFunction(target.removeEventListener); -} -//# sourceMappingURL=fromEvent.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js.map deleted file mode 100644 index d415344dc..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEvent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"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BAAU,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,uBAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACzD,CAAC;AAOD,SAAS,aAAa,CAAC,MAAW;IAChC,OAAO,uBAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,uBAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;AACvF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js deleted file mode 100755 index f3191562a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromEventPattern = void 0; -var Observable_1 = require("../Observable"); -var isFunction_1 = require("../util/isFunction"); -var mapOneOrManyArgs_1 = require("../util/mapOneOrManyArgs"); -function fromEventPattern(addHandler, removeHandler, resultSelector) { - if (resultSelector) { - return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)); - } - return new Observable_1.Observable(function (subscriber) { - var handler = function () { - var e = []; - for (var _i = 0; _i < arguments.length; _i++) { - e[_i] = arguments[_i]; - } - return subscriber.next(e.length === 1 ? e[0] : e); - }; - var retValue = addHandler(handler); - return isFunction_1.isFunction(removeHandler) ? function () { return removeHandler(handler, retValue); } : undefined; - }); -} -exports.fromEventPattern = fromEventPattern; -//# sourceMappingURL=fromEventPattern.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js.map deleted file mode 100644 index eacc73f54..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromEventPattern.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fromEventPattern.js","sourceRoot":"","sources":["../../../../src/internal/observable/fromEventPattern.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAC3C,iDAAgD;AAEhD,6DAA4D;AAyI5D,SAAgB,gBAAgB,CAC9B,UAA8C,EAC9C,aAAiE,EACjE,cAAsC;IAEtC,IAAI,cAAc,EAAE;QAClB,OAAO,gBAAgB,CAAI,UAAU,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,mCAAgB,CAAC,cAAc,CAAC,CAAC,CAAC;KAC9F;IAED,OAAO,IAAI,uBAAU,CAAU,UAAC,UAAU;QACxC,IAAM,OAAO,GAAG;YAAC,WAAS;iBAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;gBAAT,sBAAS;;YAAK,OAAA,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAA1C,CAA0C,CAAC;QAC1E,IAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;QACrC,OAAO,uBAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,cAAM,OAAA,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAhC,CAAgC,CAAC,CAAC,CAAC,SAAS,CAAC;IACxF,CAAC,CAAC,CAAC;AACL,CAAC;AAdD,4CAcC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js deleted file mode 100755 index ee2fdb6d8..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromSubscribable = void 0; -var Observable_1 = require("../Observable"); -function fromSubscribable(subscribable) { - return new Observable_1.Observable(function (subscriber) { return subscribable.subscribe(subscriber); }); -} -exports.fromSubscribable = fromSubscribable; -//# sourceMappingURL=fromSubscribable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js.map deleted file mode 100644 index d217d0bc6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/fromSubscribable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fromSubscribable.js","sourceRoot":"","sources":["../../../../src/internal/observable/fromSubscribable.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAc3C,SAAgB,gBAAgB,CAAI,YAA6B;IAC/D,OAAO,IAAI,uBAAU,CAAC,UAAC,UAAyB,IAAK,OAAA,YAAY,CAAC,SAAS,CAAC,UAAU,CAAC,EAAlC,CAAkC,CAAC,CAAC;AAC3F,CAAC;AAFD,4CAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/generate.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/generate.js deleted file mode 100755 index 250bb370b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/generate.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.generate = void 0; -var identity_1 = require("../util/identity"); -var isScheduler_1 = require("../util/isScheduler"); -var defer_1 = require("./defer"); -var scheduleIterable_1 = require("../scheduled/scheduleIterable"); -function generate(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) { - var _a, _b; - var resultSelector; - var initialState; - if (arguments.length === 1) { - (_a = initialStateOrOptions, initialState = _a.initialState, condition = _a.condition, iterate = _a.iterate, _b = _a.resultSelector, resultSelector = _b === void 0 ? identity_1.identity : _b, scheduler = _a.scheduler); - } - else { - initialState = initialStateOrOptions; - if (!resultSelectorOrScheduler || isScheduler_1.isScheduler(resultSelectorOrScheduler)) { - resultSelector = identity_1.identity; - scheduler = resultSelectorOrScheduler; - } - else { - resultSelector = resultSelectorOrScheduler; - } - } - function gen() { - var state; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - state = initialState; - _a.label = 1; - case 1: - if (!(!condition || condition(state))) return [3, 4]; - return [4, resultSelector(state)]; - case 2: - _a.sent(); - _a.label = 3; - case 3: - state = iterate(state); - return [3, 1]; - case 4: return [2]; - } - }); - } - return defer_1.defer((scheduler - ? - function () { return scheduleIterable_1.scheduleIterable(gen(), scheduler); } - : - gen)); -} -exports.generate = generate; -//# sourceMappingURL=generate.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/generate.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/generate.js.map deleted file mode 100644 index 214195a76..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/generate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../src/internal/observable/generate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,6CAA4C;AAE5C,mDAAkD;AAClD,iCAAgC;AAChC,kEAAiE;AAuUjE,SAAgB,QAAQ,CACtB,qBAAgD,EAChD,SAA4B,EAC5B,OAAwB,EACxB,yBAA4D,EAC5D,SAAyB;;IAEzB,IAAI,cAAgC,CAAC;IACrC,IAAI,YAAe,CAAC;IAIpB,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;QAG1B,CAAC,KAMG,qBAA8C,EALhD,YAAY,kBAAA,EACZ,SAAS,eAAA,EACT,OAAO,aAAA,EACP,sBAA6C,EAA7C,cAAc,mBAAG,mBAA4B,KAAA,EAC7C,SAAS,eAAA,CACwC,CAAC;KACrD;SAAM;QAGL,YAAY,GAAG,qBAA0B,CAAC;QAC1C,IAAI,CAAC,yBAAyB,IAAI,yBAAW,CAAC,yBAAyB,CAAC,EAAE;YACxE,cAAc,GAAG,mBAA4B,CAAC;YAC9C,SAAS,GAAG,yBAA0C,CAAC;SACxD;aAAM;YACL,cAAc,GAAG,yBAA6C,CAAC;SAChE;KACF;IAGD,SAAU,GAAG;;;;;oBACF,KAAK,GAAG,YAAY;;;yBAAE,CAAA,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,CAAC,CAAA;oBAC3D,WAAM,cAAc,CAAC,KAAK,CAAC,EAAA;;oBAA3B,SAA2B,CAAC;;;oBADiC,KAAK,GAAG,OAAQ,CAAC,KAAK,CAAC,CAAA;;;;;KAGvF;IAGD,OAAO,aAAK,CACV,CAAC,SAAS;QACR,CAAC;YAEC,cAAM,OAAA,mCAAgB,CAAC,GAAG,EAAE,EAAE,SAAU,CAAC,EAAnC,CAAmC;QAC3C,CAAC;YAEC,GAAG,CAA6B,CACrC,CAAC;AACJ,CAAC;AAnDD,4BAmDC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/iif.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/iif.js deleted file mode 100755 index 63a69c11c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/iif.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.iif = void 0; -var defer_1 = require("./defer"); -function iif(condition, trueResult, falseResult) { - return defer_1.defer(function () { return (condition() ? trueResult : falseResult); }); -} -exports.iif = iif; -//# sourceMappingURL=iif.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/iif.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/iif.js.map deleted file mode 100644 index f31f89b07..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/iif.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"iif.js","sourceRoot":"","sources":["../../../../src/internal/observable/iif.ts"],"names":[],"mappings":";;;AACA,iCAAgC;AAiFhC,SAAgB,GAAG,CAAO,SAAwB,EAAE,UAA8B,EAAE,WAA+B;IACjH,OAAO,aAAK,CAAC,cAAM,OAAA,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,EAAxC,CAAwC,CAAC,CAAC;AAC/D,CAAC;AAFD,kBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js deleted file mode 100755 index f25d71bef..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js +++ /dev/null @@ -1,206 +0,0 @@ -"use strict"; -var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -}; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -var __asyncValues = (this && this.__asyncValues) || function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -}; -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromReadableStreamLike = exports.fromAsyncIterable = exports.fromIterable = exports.fromPromise = exports.fromArrayLike = exports.fromInteropObservable = exports.innerFrom = void 0; -var isArrayLike_1 = require("../util/isArrayLike"); -var isPromise_1 = require("../util/isPromise"); -var Observable_1 = require("../Observable"); -var isInteropObservable_1 = require("../util/isInteropObservable"); -var isAsyncIterable_1 = require("../util/isAsyncIterable"); -var throwUnobservableError_1 = require("../util/throwUnobservableError"); -var isIterable_1 = require("../util/isIterable"); -var isReadableStreamLike_1 = require("../util/isReadableStreamLike"); -var isFunction_1 = require("../util/isFunction"); -var reportUnhandledError_1 = require("../util/reportUnhandledError"); -var observable_1 = require("../symbol/observable"); -function innerFrom(input) { - if (input instanceof Observable_1.Observable) { - return input; - } - if (input != null) { - if (isInteropObservable_1.isInteropObservable(input)) { - return fromInteropObservable(input); - } - if (isArrayLike_1.isArrayLike(input)) { - return fromArrayLike(input); - } - if (isPromise_1.isPromise(input)) { - return fromPromise(input); - } - if (isAsyncIterable_1.isAsyncIterable(input)) { - return fromAsyncIterable(input); - } - if (isIterable_1.isIterable(input)) { - return fromIterable(input); - } - if (isReadableStreamLike_1.isReadableStreamLike(input)) { - return fromReadableStreamLike(input); - } - } - throw throwUnobservableError_1.createInvalidObservableTypeError(input); -} -exports.innerFrom = innerFrom; -function fromInteropObservable(obj) { - return new Observable_1.Observable(function (subscriber) { - var obs = obj[observable_1.observable](); - if (isFunction_1.isFunction(obs.subscribe)) { - return obs.subscribe(subscriber); - } - throw new TypeError('Provided object does not correctly implement Symbol.observable'); - }); -} -exports.fromInteropObservable = fromInteropObservable; -function fromArrayLike(array) { - return new Observable_1.Observable(function (subscriber) { - for (var i = 0; i < array.length && !subscriber.closed; i++) { - subscriber.next(array[i]); - } - subscriber.complete(); - }); -} -exports.fromArrayLike = fromArrayLike; -function fromPromise(promise) { - return new Observable_1.Observable(function (subscriber) { - promise - .then(function (value) { - if (!subscriber.closed) { - subscriber.next(value); - subscriber.complete(); - } - }, function (err) { return subscriber.error(err); }) - .then(null, reportUnhandledError_1.reportUnhandledError); - }); -} -exports.fromPromise = fromPromise; -function fromIterable(iterable) { - return new Observable_1.Observable(function (subscriber) { - var e_1, _a; - try { - for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) { - var value = iterable_1_1.value; - subscriber.next(value); - if (subscriber.closed) { - return; - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return)) _a.call(iterable_1); - } - finally { if (e_1) throw e_1.error; } - } - subscriber.complete(); - }); -} -exports.fromIterable = fromIterable; -function fromAsyncIterable(asyncIterable) { - return new Observable_1.Observable(function (subscriber) { - process(asyncIterable, subscriber).catch(function (err) { return subscriber.error(err); }); - }); -} -exports.fromAsyncIterable = fromAsyncIterable; -function fromReadableStreamLike(readableStream) { - return fromAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(readableStream)); -} -exports.fromReadableStreamLike = fromReadableStreamLike; -function process(asyncIterable, subscriber) { - var asyncIterable_1, asyncIterable_1_1; - var e_2, _a; - return __awaiter(this, void 0, void 0, function () { - var value, e_2_1; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - _b.trys.push([0, 5, 6, 11]); - asyncIterable_1 = __asyncValues(asyncIterable); - _b.label = 1; - case 1: return [4, asyncIterable_1.next()]; - case 2: - if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done)) return [3, 4]; - value = asyncIterable_1_1.value; - subscriber.next(value); - if (subscriber.closed) { - return [2]; - } - _b.label = 3; - case 3: return [3, 1]; - case 4: return [3, 11]; - case 5: - e_2_1 = _b.sent(); - e_2 = { error: e_2_1 }; - return [3, 11]; - case 6: - _b.trys.push([6, , 9, 10]); - if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return))) return [3, 8]; - return [4, _a.call(asyncIterable_1)]; - case 7: - _b.sent(); - _b.label = 8; - case 8: return [3, 10]; - case 9: - if (e_2) throw e_2.error; - return [7]; - case 10: return [7]; - case 11: - subscriber.complete(); - return [2]; - } - }); - }); -} -//# sourceMappingURL=innerFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js.map deleted file mode 100644 index 95c4db3c0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/innerFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"innerFrom.js","sourceRoot":"","sources":["../../../../src/internal/observable/innerFrom.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAkD;AAClD,+CAA8C;AAC9C,4CAA2C;AAE3C,mEAAkE;AAClE,2DAA0D;AAC1D,yEAAkF;AAClF,iDAAgD;AAChD,qEAAwG;AAEx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CAAC,CAAC,KAAK,CAAC,UAAC,GAAG,IAAK,OAAA,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAArB,CAAqB,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,8CAIC;AAED,SAAgB,sBAAsB,CAAI,cAAqC;IAC7E,OAAO,iBAAiB,CAAC,yDAAkC,CAAC,cAAc,CAAC,CAAC,CAAC;AAC/E,CAAC;AAFD,wDAEC;AAED,SAAe,OAAO,CAAI,aAA+B,EAAE,UAAyB;;;;;;;;;oBACxD,kBAAA,cAAA,aAAa,CAAA;;;;;oBAAtB,KAAK,0BAAA,CAAA;oBACpB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAGvB,IAAI,UAAU,CAAC,MAAM,EAAE;wBACrB,WAAO;qBACR;;;;;;;;;;;;;;;;;;;;;oBAEH,UAAU,CAAC,QAAQ,EAAE,CAAC;;;;;CACvB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/interval.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/interval.js deleted file mode 100755 index e0cbf28a1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/interval.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.interval = void 0; -var async_1 = require("../scheduler/async"); -var timer_1 = require("./timer"); -function interval(period, scheduler) { - if (period === void 0) { period = 0; } - if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } - if (period < 0) { - period = 0; - } - return timer_1.timer(period, period, scheduler); -} -exports.interval = interval; -//# sourceMappingURL=interval.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/interval.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/interval.js.map deleted file mode 100644 index 2b484d5e6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/interval.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"interval.js","sourceRoot":"","sources":["../../../../src/internal/observable/interval.ts"],"names":[],"mappings":";;;AACA,4CAAoD;AAEpD,iCAAgC;AA+ChC,SAAgB,QAAQ,CAAC,MAAU,EAAE,SAAyC;IAArD,uBAAA,EAAA,UAAU;IAAE,0BAAA,EAAA,YAA2B,sBAAc;IAC5E,IAAI,MAAM,GAAG,CAAC,EAAE;QAEd,MAAM,GAAG,CAAC,CAAC;KACZ;IAED,OAAO,aAAK,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;AAC1C,CAAC;AAPD,4BAOC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/merge.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/merge.js deleted file mode 100755 index 079fe0f73..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/merge.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.merge = void 0; -var mergeAll_1 = require("../operators/mergeAll"); -var innerFrom_1 = require("./innerFrom"); -var empty_1 = require("./empty"); -var args_1 = require("../util/args"); -var from_1 = require("./from"); -function merge() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = args_1.popScheduler(args); - var concurrent = args_1.popNumber(args, Infinity); - var sources = args; - return !sources.length - ? - empty_1.EMPTY - : sources.length === 1 - ? - innerFrom_1.innerFrom(sources[0]) - : - mergeAll_1.mergeAll(concurrent)(from_1.from(sources, scheduler)); -} -exports.merge = merge; -//# sourceMappingURL=merge.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/merge.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/merge.js.map deleted file mode 100644 index 69e9cd91b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/merge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../../src/internal/observable/merge.ts"],"names":[],"mappings":";;;AAEA,kDAAiD;AACjD,yCAAwC;AACxC,iCAAgC;AAChC,qCAAuD;AACvD,+BAA8B;AAmF9B,SAAgB,KAAK;IAAC,cAA8D;SAA9D,UAA8D,EAA9D,qBAA8D,EAA9D,IAA8D;QAA9D,yBAA8D;;IAClF,IAAM,SAAS,GAAG,mBAAY,CAAC,IAAI,CAAC,CAAC;IACrC,IAAM,UAAU,GAAG,gBAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC7C,IAAM,OAAO,GAAG,IAAkC,CAAC;IACnD,OAAO,CAAC,OAAO,CAAC,MAAM;QACpB,CAAC;YACC,aAAK;QACP,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;YACtB,CAAC;gBACC,qBAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACvB,CAAC;gBACC,mBAAQ,CAAC,UAAU,CAAC,CAAC,WAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AACrD,CAAC;AAZD,sBAYC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/never.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/never.js deleted file mode 100755 index 2cd23cc84..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/never.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.never = exports.NEVER = void 0; -var Observable_1 = require("../Observable"); -var noop_1 = require("../util/noop"); -exports.NEVER = new Observable_1.Observable(noop_1.noop); -function never() { - return exports.NEVER; -} -exports.never = never; -//# sourceMappingURL=never.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/never.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/never.js.map deleted file mode 100644 index 3e2f4056e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/never.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"never.js","sourceRoot":"","sources":["../../../../src/internal/observable/never.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAC3C,qCAAoC;AAmCvB,QAAA,KAAK,GAAG,IAAI,uBAAU,CAAQ,WAAI,CAAC,CAAC;AAKjD,SAAgB,KAAK;IACnB,OAAO,aAAK,CAAC;AACf,CAAC;AAFD,sBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/of.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/of.js deleted file mode 100755 index 8d21e881a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/of.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.of = void 0; -var args_1 = require("../util/args"); -var from_1 = require("./from"); -function of() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = args_1.popScheduler(args); - return from_1.from(args, scheduler); -} -exports.of = of; -//# sourceMappingURL=of.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/of.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/of.js.map deleted file mode 100644 index de3c52c9f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/of.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"of.js","sourceRoot":"","sources":["../../../../src/internal/observable/of.ts"],"names":[],"mappings":";;;AAEA,qCAA4C;AAC5C,+BAA8B;AA4E9B,SAAgB,EAAE;IAAI,cAAiC;SAAjC,UAAiC,EAAjC,qBAAiC,EAAjC,IAAiC;QAAjC,yBAAiC;;IACrD,IAAM,SAAS,GAAG,mBAAY,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,WAAI,CAAC,IAAW,EAAE,SAAS,CAAC,CAAC;AACtC,CAAC;AAHD,gBAGC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js deleted file mode 100755 index 8b31e6cc9..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.onErrorResumeNext = void 0; -var Observable_1 = require("../Observable"); -var argsOrArgArray_1 = require("../util/argsOrArgArray"); -var OperatorSubscriber_1 = require("../operators/OperatorSubscriber"); -var noop_1 = require("../util/noop"); -var innerFrom_1 = require("./innerFrom"); -function onErrorResumeNext() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - var nextSources = argsOrArgArray_1.argsOrArgArray(sources); - return new Observable_1.Observable(function (subscriber) { - var sourceIndex = 0; - var subscribeNext = function () { - if (sourceIndex < nextSources.length) { - var nextSource = void 0; - try { - nextSource = innerFrom_1.innerFrom(nextSources[sourceIndex++]); - } - catch (err) { - subscribeNext(); - return; - } - var innerSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, undefined, noop_1.noop, noop_1.noop); - nextSource.subscribe(innerSubscriber); - innerSubscriber.add(subscribeNext); - } - else { - subscriber.complete(); - } - }; - subscribeNext(); - }); -} -exports.onErrorResumeNext = onErrorResumeNext; -//# sourceMappingURL=onErrorResumeNext.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js.map deleted file mode 100644 index 8955f7a0e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/onErrorResumeNext.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"onErrorResumeNext.js","sourceRoot":"","sources":["../../../../src/internal/observable/onErrorResumeNext.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAE3C,yDAAwD;AACxD,sEAAqE;AACrE,qCAAoC;AACpC,yCAAwC;AAsExC,SAAgB,iBAAiB;IAC/B,iBAAyE;SAAzE,UAAyE,EAAzE,qBAAyE,EAAzE,IAAyE;QAAzE,4BAAyE;;IAEzE,IAAM,WAAW,GAA4B,+BAAc,CAAC,OAAO,CAAQ,CAAC;IAE5E,OAAO,IAAI,uBAAU,CAAC,UAAC,UAAU;QAC/B,IAAI,WAAW,GAAG,CAAC,CAAC;QACpB,IAAM,aAAa,GAAG;YACpB,IAAI,WAAW,GAAG,WAAW,CAAC,MAAM,EAAE;gBACpC,IAAI,UAAU,SAAuB,CAAC;gBACtC,IAAI;oBACF,UAAU,GAAG,qBAAS,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;iBACpD;gBAAC,OAAO,GAAG,EAAE;oBACZ,aAAa,EAAE,CAAC;oBAChB,OAAO;iBACR;gBACD,IAAM,eAAe,GAAG,IAAI,uCAAkB,CAAC,UAAU,EAAE,SAAS,EAAE,WAAI,EAAE,WAAI,CAAC,CAAC;gBAClF,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;gBACtC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;aACpC;iBAAM;gBACL,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,CAAC;QACF,aAAa,EAAE,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC;AAzBD,8CAyBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/pairs.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/pairs.js deleted file mode 100755 index 480efe369..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/pairs.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pairs = void 0; -var from_1 = require("./from"); -function pairs(obj, scheduler) { - return from_1.from(Object.entries(obj), scheduler); -} -exports.pairs = pairs; -//# sourceMappingURL=pairs.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/pairs.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/pairs.js.map deleted file mode 100644 index 0ec6e4396..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/pairs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pairs.js","sourceRoot":"","sources":["../../../../src/internal/observable/pairs.ts"],"names":[],"mappings":";;;AAEA,+BAA8B;AA6E9B,SAAgB,KAAK,CAAC,GAAQ,EAAE,SAAyB;IACvD,OAAO,WAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,SAAgB,CAAC,CAAC;AACrD,CAAC;AAFD,sBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/partition.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/partition.js deleted file mode 100755 index 8dccf5358..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/partition.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.partition = void 0; -var not_1 = require("../util/not"); -var filter_1 = require("../operators/filter"); -var innerFrom_1 = require("./innerFrom"); -function partition(source, predicate, thisArg) { - return [filter_1.filter(predicate, thisArg)(innerFrom_1.innerFrom(source)), filter_1.filter(not_1.not(predicate, thisArg))(innerFrom_1.innerFrom(source))]; -} -exports.partition = partition; -//# sourceMappingURL=partition.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/partition.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/partition.js.map deleted file mode 100644 index 697448dc5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/partition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"partition.js","sourceRoot":"","sources":["../../../../src/internal/observable/partition.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAClC,8CAA6C;AAG7C,yCAAwC;AA0ExC,SAAgB,SAAS,CACvB,MAA0B,EAC1B,SAA0D,EAC1D,OAAa;IAEb,OAAO,CAAC,eAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,qBAAS,CAAC,MAAM,CAAC,CAAC,EAAE,eAAM,CAAC,SAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,qBAAS,CAAC,MAAM,CAAC,CAAC,CAGxG,CAAC;AACJ,CAAC;AATD,8BASC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/race.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/race.js deleted file mode 100755 index 843f57774..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/race.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.raceInit = exports.race = void 0; -var Observable_1 = require("../Observable"); -var innerFrom_1 = require("./innerFrom"); -var argsOrArgArray_1 = require("../util/argsOrArgArray"); -var OperatorSubscriber_1 = require("../operators/OperatorSubscriber"); -function race() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - sources = argsOrArgArray_1.argsOrArgArray(sources); - return sources.length === 1 ? innerFrom_1.innerFrom(sources[0]) : new Observable_1.Observable(raceInit(sources)); -} -exports.race = race; -function raceInit(sources) { - return function (subscriber) { - var subscriptions = []; - var _loop_1 = function (i) { - subscriptions.push(innerFrom_1.innerFrom(sources[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - if (subscriptions) { - for (var s = 0; s < subscriptions.length; s++) { - s !== i && subscriptions[s].unsubscribe(); - } - subscriptions = null; - } - subscriber.next(value); - }))); - }; - for (var i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) { - _loop_1(i); - } - }; -} -exports.raceInit = raceInit; -//# sourceMappingURL=race.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/race.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/race.js.map deleted file mode 100644 index abbb3bbb4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/race.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"race.js","sourceRoot":"","sources":["../../../../src/internal/observable/race.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAC3C,yCAAwC;AAGxC,yDAAwD;AACxD,sEAA2E;AA6C3E,SAAgB,IAAI;IAAI,iBAAyD;SAAzD,UAAyD,EAAzD,qBAAyD,EAAzD,IAAyD;QAAzD,4BAAyD;;IAC/E,OAAO,GAAG,+BAAc,CAAC,OAAO,CAAC,CAAC;IAElC,OAAO,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,qBAAS,CAAC,OAAO,CAAC,CAAC,CAAuB,CAAC,CAAC,CAAC,CAAC,IAAI,uBAAU,CAAI,QAAQ,CAAC,OAA+B,CAAC,CAAC,CAAC;AAC3I,CAAC;AAJD,oBAIC;AAOD,SAAgB,QAAQ,CAAI,OAA6B;IACvD,OAAO,UAAC,UAAyB;QAC/B,IAAI,aAAa,GAAmB,EAAE,CAAC;gCAM9B,CAAC;YACR,aAAa,CAAC,IAAI,CAChB,qBAAS,CAAC,OAAO,CAAC,CAAC,CAAuB,CAAC,CAAC,SAAS,CACnD,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;gBACzC,IAAI,aAAa,EAAE;oBAGjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBAC7C,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;qBAC3C;oBACD,aAAa,GAAG,IAAK,CAAC;iBACvB;gBACD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzB,CAAC,CAAC,CACH,CACF,CAAC;;QAfJ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,aAAa,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE;oBAArE,CAAC;SAgBT;IACH,CAAC,CAAC;AACJ,CAAC;AA1BD,4BA0BC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/range.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/range.js deleted file mode 100755 index be916617c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/range.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.range = void 0; -var Observable_1 = require("../Observable"); -var empty_1 = require("./empty"); -function range(start, count, scheduler) { - if (count == null) { - count = start; - start = 0; - } - if (count <= 0) { - return empty_1.EMPTY; - } - var end = count + start; - return new Observable_1.Observable(scheduler - ? - function (subscriber) { - var n = start; - return scheduler.schedule(function () { - if (n < end) { - subscriber.next(n++); - this.schedule(); - } - else { - subscriber.complete(); - } - }); - } - : - function (subscriber) { - var n = start; - while (n < end && !subscriber.closed) { - subscriber.next(n++); - } - subscriber.complete(); - }); -} -exports.range = range; -//# sourceMappingURL=range.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/range.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/range.js.map deleted file mode 100644 index 9a6a9ac5e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.js","sourceRoot":"","sources":["../../../../src/internal/observable/range.ts"],"names":[],"mappings":";;;AACA,4CAA2C;AAC3C,iCAAgC;AAqDhC,SAAgB,KAAK,CAAC,KAAa,EAAE,KAAc,EAAE,SAAyB;IAC5E,IAAI,KAAK,IAAI,IAAI,EAAE;QAEjB,KAAK,GAAG,KAAK,CAAC;QACd,KAAK,GAAG,CAAC,CAAC;KACX;IAED,IAAI,KAAK,IAAI,CAAC,EAAE;QAEd,OAAO,aAAK,CAAC;KACd;IAGD,IAAM,GAAG,GAAG,KAAK,GAAG,KAAK,CAAC;IAE1B,OAAO,IAAI,uBAAU,CACnB,SAAS;QACP,CAAC;YACC,UAAC,UAAU;gBACT,IAAI,CAAC,GAAG,KAAK,CAAC;gBACd,OAAO,SAAS,CAAC,QAAQ,CAAC;oBACxB,IAAI,CAAC,GAAG,GAAG,EAAE;wBACX,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;wBACrB,IAAI,CAAC,QAAQ,EAAE,CAAC;qBACjB;yBAAM;wBACL,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;YACC,UAAC,UAAU;gBACT,IAAI,CAAC,GAAG,KAAK,CAAC;gBACd,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;oBACpC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;iBACtB;gBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,CACN,CAAC;AACJ,CAAC;AAtCD,sBAsCC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/throwError.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/throwError.js deleted file mode 100755 index 2ecdc5035..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/throwError.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.throwError = void 0; -var Observable_1 = require("../Observable"); -var isFunction_1 = require("../util/isFunction"); -function throwError(errorOrErrorFactory, scheduler) { - var errorFactory = isFunction_1.isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function () { return errorOrErrorFactory; }; - var init = function (subscriber) { return subscriber.error(errorFactory()); }; - return new Observable_1.Observable(scheduler ? function (subscriber) { return scheduler.schedule(init, 0, subscriber); } : init); -} -exports.throwError = throwError; -//# sourceMappingURL=throwError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/throwError.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/throwError.js.map deleted file mode 100644 index b8dfe6523..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/throwError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwError.js","sourceRoot":"","sources":["../../../../src/internal/observable/throwError.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAG3C,iDAAgD;AAqHhD,SAAgB,UAAU,CAAC,mBAAwB,EAAE,SAAyB;IAC5E,IAAM,YAAY,GAAG,uBAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,cAAM,OAAA,mBAAmB,EAAnB,CAAmB,CAAC;IACvG,IAAM,IAAI,GAAG,UAAC,UAA6B,IAAK,OAAA,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,EAAhC,CAAgC,CAAC;IACjF,OAAO,IAAI,uBAAU,CAAC,SAAS,CAAC,CAAC,CAAC,UAAC,UAAU,IAAK,OAAA,SAAS,CAAC,QAAQ,CAAC,IAAW,EAAE,CAAC,EAAE,UAAU,CAAC,EAA9C,CAA8C,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3G,CAAC;AAJD,gCAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/timer.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/timer.js deleted file mode 100755 index e9b40b366..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/timer.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.timer = void 0; -var Observable_1 = require("../Observable"); -var async_1 = require("../scheduler/async"); -var isScheduler_1 = require("../util/isScheduler"); -var isDate_1 = require("../util/isDate"); -function timer(dueTime, intervalOrScheduler, scheduler) { - if (dueTime === void 0) { dueTime = 0; } - if (scheduler === void 0) { scheduler = async_1.async; } - var intervalDuration = -1; - if (intervalOrScheduler != null) { - if (isScheduler_1.isScheduler(intervalOrScheduler)) { - scheduler = intervalOrScheduler; - } - else { - intervalDuration = intervalOrScheduler; - } - } - return new Observable_1.Observable(function (subscriber) { - var due = isDate_1.isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime; - if (due < 0) { - due = 0; - } - var n = 0; - return scheduler.schedule(function () { - if (!subscriber.closed) { - subscriber.next(n++); - if (0 <= intervalDuration) { - this.schedule(undefined, intervalDuration); - } - else { - subscriber.complete(); - } - } - }, due); - }); -} -exports.timer = timer; -//# sourceMappingURL=timer.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/timer.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/timer.js.map deleted file mode 100644 index c800b1d19..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/timer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timer.js","sourceRoot":"","sources":["../../../../src/internal/observable/timer.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAE3C,4CAA6D;AAC7D,mDAAkD;AAClD,yCAA6C;AAgI7C,SAAgB,KAAK,CACnB,OAA0B,EAC1B,mBAA4C,EAC5C,SAAyC;IAFzC,wBAAA,EAAA,WAA0B;IAE1B,0BAAA,EAAA,YAA2B,aAAc;IAIzC,IAAI,gBAAgB,GAAG,CAAC,CAAC,CAAC;IAE1B,IAAI,mBAAmB,IAAI,IAAI,EAAE;QAI/B,IAAI,yBAAW,CAAC,mBAAmB,CAAC,EAAE;YACpC,SAAS,GAAG,mBAAmB,CAAC;SACjC;aAAM;YAGL,gBAAgB,GAAG,mBAAmB,CAAC;SACxC;KACF;IAED,OAAO,IAAI,uBAAU,CAAC,UAAC,UAAU;QAI/B,IAAI,GAAG,GAAG,oBAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,SAAU,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;QAEvE,IAAI,GAAG,GAAG,CAAC,EAAE;YAEX,GAAG,GAAG,CAAC,CAAC;SACT;QAGD,IAAI,CAAC,GAAG,CAAC,CAAC;QAGV,OAAO,SAAS,CAAC,QAAQ,CAAC;YACxB,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;gBAEtB,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;gBAErB,IAAI,CAAC,IAAI,gBAAgB,EAAE;oBAGzB,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;iBAC5C;qBAAM;oBAEL,UAAU,CAAC,QAAQ,EAAE,CAAC;iBACvB;aACF;QACH,CAAC,EAAE,GAAG,CAAC,CAAC;IACV,CAAC,CAAC,CAAC;AACL,CAAC;AArDD,sBAqDC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/using.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/using.js deleted file mode 100755 index e4abd2033..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/using.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.using = void 0; -var Observable_1 = require("../Observable"); -var innerFrom_1 = require("./innerFrom"); -var empty_1 = require("./empty"); -function using(resourceFactory, observableFactory) { - return new Observable_1.Observable(function (subscriber) { - var resource = resourceFactory(); - var result = observableFactory(resource); - var source = result ? innerFrom_1.innerFrom(result) : empty_1.EMPTY; - source.subscribe(subscriber); - return function () { - if (resource) { - resource.unsubscribe(); - } - }; - }); -} -exports.using = using; -//# sourceMappingURL=using.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/using.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/using.js.map deleted file mode 100644 index 5c308f3ba..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/using.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"using.js","sourceRoot":"","sources":["../../../../src/internal/observable/using.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAE3C,yCAAwC;AACxC,iCAAgC;AA8BhC,SAAgB,KAAK,CACnB,eAA4C,EAC5C,iBAAgE;IAEhE,OAAO,IAAI,uBAAU,CAAqB,UAAC,UAAU;QACnD,IAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;QACnC,IAAM,MAAM,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,qBAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,aAAK,CAAC;QAClD,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAC7B,OAAO;YAGL,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,WAAW,EAAE,CAAC;aACxB;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAjBD,sBAiBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/zip.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/zip.js deleted file mode 100755 index 9fca1cb86..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/zip.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.zip = void 0; -var Observable_1 = require("../Observable"); -var innerFrom_1 = require("./innerFrom"); -var argsOrArgArray_1 = require("../util/argsOrArgArray"); -var empty_1 = require("./empty"); -var OperatorSubscriber_1 = require("../operators/OperatorSubscriber"); -var args_1 = require("../util/args"); -function zip() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var resultSelector = args_1.popResultSelector(args); - var sources = argsOrArgArray_1.argsOrArgArray(args); - return sources.length - ? new Observable_1.Observable(function (subscriber) { - var buffers = sources.map(function () { return []; }); - var completed = sources.map(function () { return false; }); - subscriber.add(function () { - buffers = completed = null; - }); - var _loop_1 = function (sourceIndex) { - innerFrom_1.innerFrom(sources[sourceIndex]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - buffers[sourceIndex].push(value); - if (buffers.every(function (buffer) { return buffer.length; })) { - var result = buffers.map(function (buffer) { return buffer.shift(); }); - subscriber.next(resultSelector ? resultSelector.apply(void 0, __spreadArray([], __read(result))) : result); - if (buffers.some(function (buffer, i) { return !buffer.length && completed[i]; })) { - subscriber.complete(); - } - } - }, function () { - completed[sourceIndex] = true; - !buffers[sourceIndex].length && subscriber.complete(); - })); - }; - for (var sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) { - _loop_1(sourceIndex); - } - return function () { - buffers = completed = null; - }; - }) - : empty_1.EMPTY; -} -exports.zip = zip; -//# sourceMappingURL=zip.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/zip.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/zip.js.map deleted file mode 100644 index 3e45db42f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/observable/zip.js.map +++ /dev/null @@ -1 +0,0 @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AC,cAAc,wCAAI,MAAM,IAAE,CAAC,CAAC,MAAM,CAAC,CAAC;wBAIrE,IAAI,OAAO,CAAC,IAAI,CAAC,UAAC,MAAM,EAAE,CAAC,IAAK,OAAA,CAAC,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,EAA9B,CAA8B,CAAC,EAAE;4BAC/D,UAAU,CAAC,QAAQ,EAAE,CAAC;yBACvB;qBACF;gBACH,CAAC,EACD;oBAGE,SAAS,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;oBAI9B,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACxD,CAAC,CACF,CACF,CAAC;;YA/BJ,KAAK,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,IAAI,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE;wBAAlF,WAAW;aAgCnB;YAGD,OAAO;gBACL,OAAO,GAAG,SAAS,GAAG,IAAK,CAAC;YAC9B,CAAC,CAAC;QACJ,CAAC,CAAC;QACJ,CAAC,CAAC,aAAK,CAAC;AACZ,CAAC;AAhED,kBAgEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js deleted file mode 100755 index dff340e3c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OperatorSubscriber = exports.createOperatorSubscriber = void 0; -var Subscriber_1 = require("../Subscriber"); -function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) { - return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize); -} -exports.createOperatorSubscriber = createOperatorSubscriber; -var OperatorSubscriber = (function (_super) { - __extends(OperatorSubscriber, _super); - function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) { - var _this = _super.call(this, destination) || this; - _this.onFinalize = onFinalize; - _this.shouldUnsubscribe = shouldUnsubscribe; - _this._next = onNext - ? function (value) { - try { - onNext(value); - } - catch (err) { - destination.error(err); - } - } - : _super.prototype._next; - _this._error = onError - ? function (err) { - try { - onError(err); - } - catch (err) { - destination.error(err); - } - finally { - this.unsubscribe(); - } - } - : _super.prototype._error; - _this._complete = onComplete - ? function () { - try { - onComplete(); - } - catch (err) { - destination.error(err); - } - finally { - this.unsubscribe(); - } - } - : _super.prototype._complete; - return _this; - } - OperatorSubscriber.prototype.unsubscribe = function () { - var _a; - if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { - var closed_1 = this.closed; - _super.prototype.unsubscribe.call(this); - !closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this)); - } - }; - return OperatorSubscriber; -}(Subscriber_1.Subscriber)); -exports.OperatorSubscriber = OperatorSubscriber; -//# sourceMappingURL=OperatorSubscriber.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js.map deleted file mode 100644 index 3a5b4f39f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OperatorSubscriber.js","sourceRoot":"","sources":["../../../../src/internal/operators/OperatorSubscriber.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,4CAA2C;AAc3C,SAAgB,wBAAwB,CACtC,WAA4B,EAC5B,MAA2B,EAC3B,UAAuB,EACvB,OAA4B,EAC5B,UAAuB;IAEvB,OAAO,IAAI,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;AACtF,CAAC;AARD,4DAQC;AAMD;IAA2C,sCAAa;IAiBtD,4BACE,WAA4B,EAC5B,MAA2B,EAC3B,UAAuB,EACvB,OAA4B,EACpB,UAAuB,EACvB,iBAAiC;QAN3C,YAoBE,kBAAM,WAAW,CAAC,SAoCnB;QAnDS,gBAAU,GAAV,UAAU,CAAa;QACvB,uBAAiB,GAAjB,iBAAiB,CAAgB;QAezC,KAAI,CAAC,KAAK,GAAG,MAAM;YACjB,CAAC,CAAC,UAAuC,KAAQ;gBAC7C,IAAI;oBACF,MAAM,CAAC,KAAK,CAAC,CAAC;iBACf;gBAAC,OAAO,GAAG,EAAE;oBACZ,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACxB;YACH,CAAC;YACH,CAAC,CAAC,iBAAM,KAAK,CAAC;QAChB,KAAI,CAAC,MAAM,GAAG,OAAO;YACnB,CAAC,CAAC,UAAuC,GAAQ;gBAC7C,IAAI;oBACF,OAAO,CAAC,GAAG,CAAC,CAAC;iBACd;gBAAC,OAAO,GAAG,EAAE;oBAEZ,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACxB;wBAAS;oBAER,IAAI,CAAC,WAAW,EAAE,CAAC;iBACpB;YACH,CAAC;YACH,CAAC,CAAC,iBAAM,MAAM,CAAC;QACjB,KAAI,CAAC,SAAS,GAAG,UAAU;YACzB,CAAC,CAAC;gBACE,IAAI;oBACF,UAAU,EAAE,CAAC;iBACd;gBAAC,OAAO,GAAG,EAAE;oBAEZ,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACxB;wBAAS;oBAER,IAAI,CAAC,WAAW,EAAE,CAAC;iBACpB;YACH,CAAC;YACH,CAAC,CAAC,iBAAM,SAAS,CAAC;;IACtB,CAAC;IAED,wCAAW,GAAX;;QACE,IAAI,CAAC,IAAI,CAAC,iBAAiB,IAAI,IAAI,CAAC,iBAAiB,EAAE,EAAE;YAC/C,IAAA,QAAM,GAAK,IAAI,OAAT,CAAU;YACxB,iBAAM,WAAW,WAAE,CAAC;YAEpB,CAAC,QAAM,KAAI,MAAA,IAAI,CAAC,UAAU,+CAAf,IAAI,CAAe,CAAA,CAAC;SAChC;IACH,CAAC;IACH,yBAAC;AAAD,CAAC,AAnFD,CAA2C,uBAAU,GAmFpD;AAnFY,gDAAkB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/audit.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/audit.js deleted file mode 100755 index 26c7cca00..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/audit.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.audit = void 0; -var lift_1 = require("../util/lift"); -var innerFrom_1 = require("../observable/innerFrom"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function audit(durationSelector) { - return lift_1.operate(function (source, subscriber) { - var hasValue = false; - var lastValue = null; - var durationSubscriber = null; - var isComplete = false; - var endDuration = function () { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - durationSubscriber = null; - if (hasValue) { - hasValue = false; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - isComplete && subscriber.complete(); - }; - var cleanupDuration = function () { - durationSubscriber = null; - isComplete && subscriber.complete(); - }; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - lastValue = value; - if (!durationSubscriber) { - innerFrom_1.innerFrom(durationSelector(value)).subscribe((durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, endDuration, cleanupDuration))); - } - }, function () { - isComplete = true; - (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete(); - })); - }); -} -exports.audit = audit; -//# sourceMappingURL=audit.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/audit.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/audit.js.map deleted file mode 100644 index 2eed307cd..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/audit.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../../src/internal/operators/audit.ts"],"names":[],"mappings":";;;AAGA,qCAAuC;AACvC,qDAAoD;AACpD,2DAAgE;AA+ChE,SAAgB,KAAK,CAAI,gBAAoD;IAC3E,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,SAAS,GAAa,IAAI,CAAC;QAC/B,IAAI,kBAAkB,GAA2B,IAAI,CAAC;QACtD,IAAI,UAAU,GAAG,KAAK,CAAC;QAEvB,IAAM,WAAW,GAAG;YAClB,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,WAAW,EAAE,CAAC;YAClC,kBAAkB,GAAG,IAAI,CAAC;YAC1B,IAAI,QAAQ,EAAE;gBACZ,QAAQ,GAAG,KAAK,CAAC;gBACjB,IAAM,KAAK,GAAG,SAAU,CAAC;gBACzB,SAAS,GAAG,IAAI,CAAC;gBACjB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;YACD,UAAU,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC,CAAC;QAEF,IAAM,eAAe,GAAG;YACtB,kBAAkB,GAAG,IAAI,CAAC;YAC1B,UAAU,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC,CAAC;QAEF,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,QAAQ,GAAG,IAAI,CAAC;YAChB,SAAS,GAAG,KAAK,CAAC;YAClB,IAAI,CAAC,kBAAkB,EAAE;gBACvB,qBAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAC1C,CAAC,kBAAkB,GAAG,6CAAwB,CAAC,UAAU,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC,CAC1F,CAAC;aACH;QACH,CAAC,EACD;YACE,UAAU,GAAG,IAAI,CAAC;YAClB,CAAC,CAAC,QAAQ,IAAI,CAAC,kBAAkB,IAAI,kBAAkB,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QAC3F,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA3CD,sBA2CC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js deleted file mode 100755 index e934c8780..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.auditTime = void 0; -var async_1 = require("../scheduler/async"); -var audit_1 = require("./audit"); -var timer_1 = require("../observable/timer"); -function auditTime(duration, scheduler) { - if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } - return audit_1.audit(function () { return timer_1.timer(duration, scheduler); }); -} -exports.auditTime = auditTime; -//# sourceMappingURL=auditTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js.map deleted file mode 100644 index 4199bf67d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/auditTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auditTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/auditTime.ts"],"names":[],"mappings":";;;AAAA,4CAAoD;AACpD,iCAAgC;AAChC,6CAA4C;AAkD5C,SAAgB,SAAS,CAAI,QAAgB,EAAE,SAAyC;IAAzC,0BAAA,EAAA,YAA2B,sBAAc;IACtF,OAAO,aAAK,CAAC,cAAM,OAAA,aAAK,CAAC,QAAQ,EAAE,SAAS,CAAC,EAA1B,CAA0B,CAAC,CAAC;AACjD,CAAC;AAFD,8BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/buffer.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/buffer.js deleted file mode 100755 index 6352f926d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/buffer.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.buffer = void 0; -var lift_1 = require("../util/lift"); -var noop_1 = require("../util/noop"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var innerFrom_1 = require("../observable/innerFrom"); -function buffer(closingNotifier) { - return lift_1.operate(function (source, subscriber) { - var currentBuffer = []; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return currentBuffer.push(value); }, function () { - subscriber.next(currentBuffer); - subscriber.complete(); - })); - innerFrom_1.innerFrom(closingNotifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { - var b = currentBuffer; - currentBuffer = []; - subscriber.next(b); - }, noop_1.noop)); - return function () { - currentBuffer = null; - }; - }); -} -exports.buffer = buffer; -//# sourceMappingURL=buffer.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/buffer.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/buffer.js.map deleted file mode 100644 index 2e8efdc95..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/buffer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../../../src/internal/operators/buffer.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,qCAAoC;AACpC,2DAAgE;AAChE,qDAAoD;AAwCpD,SAAgB,MAAM,CAAI,eAAqC;IAC7D,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAI,aAAa,GAAQ,EAAE,CAAC;QAG5B,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK,IAAK,OAAA,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,EAAzB,CAAyB,EACpC;YACE,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAC/B,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;QAGF,qBAAS,CAAC,eAAe,CAAC,CAAC,SAAS,CAClC,6CAAwB,CACtB,UAAU,EACV;YAEE,IAAM,CAAC,GAAG,aAAa,CAAC;YACxB,aAAa,GAAG,EAAE,CAAC;YACnB,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACrB,CAAC,EACD,WAAI,CACL,CACF,CAAC;QAEF,OAAO;YAEL,aAAa,GAAG,IAAK,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AApCD,wBAoCC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js deleted file mode 100755 index 25ff121db..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bufferCount = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var arrRemove_1 = require("../util/arrRemove"); -function bufferCount(bufferSize, startBufferEvery) { - if (startBufferEvery === void 0) { startBufferEvery = null; } - startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize; - return lift_1.operate(function (source, subscriber) { - var buffers = []; - var count = 0; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var e_1, _a, e_2, _b; - var toEmit = null; - if (count++ % startBufferEvery === 0) { - buffers.push([]); - } - try { - for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { - var buffer = buffers_1_1.value; - buffer.push(value); - if (bufferSize <= buffer.length) { - toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : []; - toEmit.push(buffer); - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1); - } - finally { if (e_1) throw e_1.error; } - } - if (toEmit) { - try { - for (var toEmit_1 = __values(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) { - var buffer = toEmit_1_1.value; - arrRemove_1.arrRemove(buffers, buffer); - subscriber.next(buffer); - } - } - catch (e_2_1) { e_2 = { error: e_2_1 }; } - finally { - try { - if (toEmit_1_1 && !toEmit_1_1.done && (_b = toEmit_1.return)) _b.call(toEmit_1); - } - finally { if (e_2) throw e_2.error; } - } - } - }, function () { - var e_3, _a; - try { - for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) { - var buffer = buffers_2_1.value; - subscriber.next(buffer); - } - } - catch (e_3_1) { e_3 = { error: e_3_1 }; } - finally { - try { - if (buffers_2_1 && !buffers_2_1.done && (_a = buffers_2.return)) _a.call(buffers_2); - } - finally { if (e_3) throw e_3.error; } - } - subscriber.complete(); - }, undefined, function () { - buffers = null; - })); - }); -} -exports.bufferCount = bufferCount; -//# sourceMappingURL=bufferCount.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js.map deleted file mode 100644 index 466b10213..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferCount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferCount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,qCAAuC;AACvC,2DAAgE;AAChE,+CAA8C;AAqD9C,SAAgB,WAAW,CAAI,UAAkB,EAAE,gBAAsC;IAAtC,iCAAA,EAAA,uBAAsC;IAGvF,gBAAgB,GAAG,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,GAAI,UAAU,CAAC;IAElD,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,OAAO,GAAU,EAAE,CAAC;QACxB,IAAI,KAAK,GAAG,CAAC,CAAC;QAEd,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;;YACJ,IAAI,MAAM,GAAiB,IAAI,CAAC;YAKhC,IAAI,KAAK,EAAE,GAAG,gBAAiB,KAAK,CAAC,EAAE;gBACrC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aAClB;;gBAGD,KAAqB,IAAA,YAAA,SAAA,OAAO,CAAA,gCAAA,qDAAE;oBAAzB,IAAM,MAAM,oBAAA;oBACf,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAMnB,IAAI,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE;wBAC/B,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAC;wBACtB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;qBACrB;iBACF;;;;;;;;;YAED,IAAI,MAAM,EAAE;;oBAIV,KAAqB,IAAA,WAAA,SAAA,MAAM,CAAA,8BAAA,kDAAE;wBAAxB,IAAM,MAAM,mBAAA;wBACf,qBAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;wBAC3B,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;qBACzB;;;;;;;;;aACF;QACH,CAAC,EACD;;;gBAGE,KAAqB,IAAA,YAAA,SAAA,OAAO,CAAA,gCAAA,qDAAE;oBAAzB,IAAM,MAAM,oBAAA;oBACf,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;iBACzB;;;;;;;;;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EAED,SAAS,EACT;YAEE,OAAO,GAAG,IAAK,CAAC;QAClB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA/DD,kCA+DC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js deleted file mode 100755 index 5712d64d5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bufferTime = void 0; -var Subscription_1 = require("../Subscription"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var arrRemove_1 = require("../util/arrRemove"); -var async_1 = require("../scheduler/async"); -var args_1 = require("../util/args"); -var executeSchedule_1 = require("../util/executeSchedule"); -function bufferTime(bufferTimeSpan) { - var _a, _b; - var otherArgs = []; - for (var _i = 1; _i < arguments.length; _i++) { - otherArgs[_i - 1] = arguments[_i]; - } - var scheduler = (_a = args_1.popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : async_1.asyncScheduler; - var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null; - var maxBufferSize = otherArgs[1] || Infinity; - return lift_1.operate(function (source, subscriber) { - var bufferRecords = []; - var restartOnEmit = false; - var emit = function (record) { - var buffer = record.buffer, subs = record.subs; - subs.unsubscribe(); - arrRemove_1.arrRemove(bufferRecords, record); - subscriber.next(buffer); - restartOnEmit && startBuffer(); - }; - var startBuffer = function () { - if (bufferRecords) { - var subs = new Subscription_1.Subscription(); - subscriber.add(subs); - var buffer = []; - var record_1 = { - buffer: buffer, - subs: subs, - }; - bufferRecords.push(record_1); - executeSchedule_1.executeSchedule(subs, scheduler, function () { return emit(record_1); }, bufferTimeSpan); - } - }; - if (bufferCreationInterval !== null && bufferCreationInterval >= 0) { - executeSchedule_1.executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true); - } - else { - restartOnEmit = true; - } - startBuffer(); - var bufferTimeSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - var recordsCopy = bufferRecords.slice(); - try { - for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) { - var record = recordsCopy_1_1.value; - var buffer = record.buffer; - buffer.push(value); - maxBufferSize <= buffer.length && emit(record); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a = recordsCopy_1.return)) _a.call(recordsCopy_1); - } - finally { if (e_1) throw e_1.error; } - } - }, function () { - while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) { - subscriber.next(bufferRecords.shift().buffer); - } - bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe(); - subscriber.complete(); - subscriber.unsubscribe(); - }, undefined, function () { return (bufferRecords = null); }); - source.subscribe(bufferTimeSubscriber); - }); -} -exports.bufferTime = bufferTime; -//# sourceMappingURL=bufferTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js.map deleted file mode 100644 index cbcb0a6b9..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferTime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAA+C;AAE/C,qCAAuC;AACvC,2DAAgE;AAChE,+CAA8C;AAC9C,4CAAoD;AACpD,qCAA4C;AAC5C,2DAA0D;AAsE1D,SAAgB,UAAU,CAAI,cAAsB;;IAAE,mBAAmB;SAAnB,UAAmB,EAAnB,qBAAmB,EAAnB,IAAmB;QAAnB,kCAAmB;;IACvE,IAAM,SAAS,GAAG,MAAA,mBAAY,CAAC,SAAS,CAAC,mCAAI,sBAAc,CAAC;IAC5D,IAAM,sBAAsB,GAAG,MAAC,SAAS,CAAC,CAAC,CAAY,mCAAI,IAAI,CAAC;IAChE,IAAM,aAAa,GAAI,SAAS,CAAC,CAAC,CAAY,IAAI,QAAQ,CAAC;IAE3D,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAI,aAAa,GAAiD,EAAE,CAAC;QAGrE,I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M,GAAK,MAAM,OAAX,CAAY;oBAC1B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAEnB,aAAa,IAAI,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;iBAChD;;;;;;;;;QACH,CAAC,EACD;YAGE,OAAO,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,EAAE;gBAC5B,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,EAAG,CAAC,MAAM,CAAC,CAAC;aAChD;YACD,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,WAAW,EAAE,CAAC;YACpC,UAAU,CAAC,QAAQ,EAAE,CAAC;YACtB,UAAU,CAAC,WAAW,EAAE,CAAC;QAC3B,CAAC,EAED,SAAS,EAET,cAAM,OAAA,CAAC,aAAa,GAAG,IAAI,CAAC,EAAtB,CAAsB,CAC7B,CAAC;QAEF,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC;AA1FD,gCA0FC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js deleted file mode 100755 index e6ac09285..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bufferToggle = void 0; -var Subscription_1 = require("../Subscription"); -var lift_1 = require("../util/lift"); -var innerFrom_1 = require("../observable/innerFrom"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var noop_1 = require("../util/noop"); -var arrRemove_1 = require("../util/arrRemove"); -function bufferToggle(openings, closingSelector) { - return lift_1.operate(function (source, subscriber) { - var buffers = []; - innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (openValue) { - var buffer = []; - buffers.push(buffer); - var closingSubscription = new Subscription_1.Subscription(); - var emitBuffer = function () { - arrRemove_1.arrRemove(buffers, buffer); - subscriber.next(buffer); - closingSubscription.unsubscribe(); - }; - closingSubscription.add(innerFrom_1.innerFrom(closingSelector(openValue)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, emitBuffer, noop_1.noop))); - }, noop_1.noop)); - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - try { - for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { - var buffer = buffers_1_1.value; - buffer.push(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1); - } - finally { if (e_1) throw e_1.error; } - } - }, function () { - while (buffers.length > 0) { - subscriber.next(buffers.shift()); - } - subscriber.complete(); - })); - }); -} -exports.bufferToggle = bufferToggle; -//# sourceMappingURL=bufferToggle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js.map deleted file mode 100644 index b39e1f3bb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferToggle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferToggle.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferToggle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAA+C;AAE/C,qCAAuC;AACvC,qDAAoD;AACp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C;AACL,CAAC;AAlDD,oCAkDC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js deleted file mode 100755 index a32e3e656..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bufferWhen = void 0; -var lift_1 = require("../util/lift"); -var noop_1 = require("../util/noop"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var innerFrom_1 = require("../observable/innerFrom"); -function bufferWhen(closingSelector) { - return lift_1.operate(function (source, subscriber) { - var buffer = null; - var closingSubscriber = null; - var openBuffer = function () { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - var b = buffer; - buffer = []; - b && subscriber.next(b); - innerFrom_1.innerFrom(closingSelector()).subscribe((closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openBuffer, noop_1.noop))); - }; - openBuffer(); - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return buffer === null || buffer === void 0 ? void 0 : buffer.push(value); }, function () { - buffer && subscriber.next(buffer); - subscriber.complete(); - }, undefined, function () { return (buffer = closingSubscriber = null); })); - }); -} -exports.bufferWhen = bufferWhen; -//# sourceMappingURL=bufferWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js.map deleted file mode 100644 index 9245ef646..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/bufferWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferWhen.ts"],"names":[],"mappings":";;;AAEA,qCAAuC;AACvC,qCAAoC;AACpC,2DAAgE;AAChE,qDAAoD;AAwCpD,SAAgB,UAAU,CAAI,eAA2C;IACvE,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAI,MAAM,GAAe,IAAI,CAAC;QAI9B,IAAI,iBAAiB,GAAyB,IAAI,CAAC;QAMnD,IAAM,UAAU,GAAG;YAGjB,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,EAAE,CAAC;YAEjC,IAAM,CAAC,GAAG,MAAM,CAAC;YACjB,MAAM,GAAG,EAAE,CAAC;YACZ,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAGxB,qBAAS,CAAC,eAAe,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,iBAAiB,GAAG,6CAAwB,CAAC,UAAU,EAAE,UAAU,EAAE,WAAI,CAAC,CAAC,CAAC,CAAC;QACvH,CAAC,CAAC;QAGF,UAAU,EAAE,CAAC;QAGb,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EAEV,UAAC,KAAK,IAAK,OAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC,KAAK,CAAC,EAAnB,CAAmB,EAG9B;YACE,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAClC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EAED,SAAS,EAET,cAAM,OAAA,CAAC,MAAM,GAAG,iBAAiB,GAAG,IAAK,CAAC,EAApC,CAAoC,CAC3C,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAhDD,gCAgDC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/catchError.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/catchError.js deleted file mode 100755 index ecff0f123..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/catchError.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.catchError = void 0; -var innerFrom_1 = require("../observable/innerFrom"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var lift_1 = require("../util/lift"); -function catchError(selector) { - return lift_1.operate(function (source, subscriber) { - var innerSub = null; - var syncUnsub = false; - var handledResult; - innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, function (err) { - handledResult = innerFrom_1.innerFrom(selector(err, catchError(selector)(source))); - if (innerSub) { - innerSub.unsubscribe(); - innerSub = null; - handledResult.subscribe(subscriber); - } - else { - syncUnsub = true; - } - })); - if (syncUnsub) { - innerSub.unsubscribe(); - innerSub = null; - handledResult.subscribe(subscriber); - } - }); -} -exports.catchError = catchError; -//# sourceMappingURL=catchError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/catchError.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/catchError.js.map deleted file mode 100644 index 7ca79f415..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/catchError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"catchError.js","sourceRoot":"","sources":["../../../../src/internal/operators/catchError.ts"],"names":[],"mappings":";;;AAIA,qDAAoD;AACpD,2DAAgE;AAChE,qCAAuC;AAoGvC,SAAgB,UAAU,CACxB,QAAgD;IAEhD,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAwB,IAAI,CAAC;QACzC,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,aAA6C,CAAC;QAElD,QAAQ,GAAG,MAAM,CAAC,SAAS,CACzB,6CAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,UAAC,GAAG;YAC7D,aAAa,GAAG,qBAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACvE,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,WAAW,EAAE,CAAC;gBACvB,QAAQ,GAAG,IAAI,CAAC;gBAChB,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;aACrC;iBAAM;gBAGL,SAAS,GAAG,IAAI,CAAC;aAClB;QACH,CAAC,CAAC,CACH,CAAC;QAEF,IAAI,SAAS,EAAE;YAMb,QAAQ,CAAC,WAAW,EAAE,CAAC;YACvB,QAAQ,GAAG,IAAI,CAAC;YAChB,aAAc,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;SACtC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAlCD,gCAkCC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineAll.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineAll.js deleted file mode 100755 index 4a0d77c2a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineAll.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.combineAll = void 0; -var combineLatestAll_1 = require("./combineLatestAll"); -exports.combineAll = combineLatestAll_1.combineLatestAll; -//# sourceMappingURL=combineAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineAll.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineAll.js.map deleted file mode 100644 index 717ef2213..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineAll.ts"],"names":[],"mappings":";;;AAAA,uDAAsD;AAKzC,QAAA,UAAU,GAAG,mCAAgB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js deleted file mode 100755 index 515d6f5c9..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.combineLatest = void 0; -var combineLatest_1 = require("../observable/combineLatest"); -var lift_1 = require("../util/lift"); -var argsOrArgArray_1 = require("../util/argsOrArgArray"); -var mapOneOrManyArgs_1 = require("../util/mapOneOrManyArgs"); -var pipe_1 = require("../util/pipe"); -var args_1 = require("../util/args"); -function combineLatest() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var resultSelector = args_1.popResultSelector(args); - return resultSelector - ? pipe_1.pipe(combineLatest.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs_1.mapOneOrManyArgs(resultSelector)) - : lift_1.operate(function (source, subscriber) { - combineLatest_1.combineLatestInit(__spreadArray([source], __read(argsOrArgArray_1.argsOrArgArray(args))))(subscriber); - }); -} -exports.combineLatest = combineLatest; -//# sourceMappingURL=combineLatest.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js.map deleted file mode 100644 index 7ab194cea..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatest.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,6DAAgE;AAEhE,qCAAuC;AACvC,yDAAwD;AACxD,6DAA4D;AAC5D,qCAAoC;AACpC,qCAAiD;AAoBjD,SAAgB,aAAa;IAAO,cAA6D;SAA7D,UAA6D,EAA7D,qBAA6D,EAA7D,IAA6D;QAA7D,yBAA6D;;IAC/F,IAAM,cAAc,GAAG,wBAAiB,CAAC,IAAI,CAAC,CAAC;IAC/C,OAAO,cAAc;QACnB,CAAC,CAAC,WAAI,CAAC,aAAa,wCAAK,IAAoC,KAAG,mCAAgB,CAAC,cAAc,CAAC,CAAC;QACjG,CAAC,CAAC,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YACzB,iCAAiB,gBAAE,MAAM,UAAK,+BAAc,CAAC,IAAI,CAAC,GAAE,CAAC,UAAU,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;AACT,CAAC;AAPD,sCAOC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js deleted file mode 100755 index 11bcc0751..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.combineLatestAll = void 0; -var combineLatest_1 = require("../observable/combineLatest"); -var joinAllInternals_1 = require("./joinAllInternals"); -function combineLatestAll(project) { - return joinAllInternals_1.joinAllInternals(combineLatest_1.combineLatest, project); -} -exports.combineLatestAll = combineLatestAll; -//# sourceMappingURL=combineLatestAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js.map deleted file mode 100644 index e7b51b4aa..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatestAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatestAll.ts"],"names":[],"mappings":";;;AAAA,6DAA4D;AAE5D,uDAAsD;AA6CtD,SAAgB,gBAAgB,CAAI,OAAsC;IACxE,OAAO,mCAAgB,CAAC,6BAAa,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC;AAFD,4CAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js deleted file mode 100755 index 8f5c34a18..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.combineLatestWith = void 0; -var combineLatest_1 = require("./combineLatest"); -function combineLatestWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return combineLatest_1.combineLatest.apply(void 0, __spreadArray([], __read(otherSources))); -} -exports.combineLatestWith = combineLatestWith; -//# sourceMappingURL=combineLatestWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js.map deleted file mode 100644 index 885fec032..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/combineLatestWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatestWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatestWith.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAAgD;AA0ChD,SAAgB,iBAAiB;IAC/B,sBAA6C;SAA7C,UAA6C,EAA7C,qBAA6C,EAA7C,IAA6C;QAA7C,iCAA6C;;IAE7C,OAAO,6BAAa,wCAAI,YAAY,IAAE;AACxC,CAAC;AAJD,8CAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concat.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concat.js deleted file mode 100755 index 97c8462a5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concat.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.concat = void 0; -var lift_1 = require("../util/lift"); -var concatAll_1 = require("./concatAll"); -var args_1 = require("../util/args"); -var from_1 = require("../observable/from"); -function concat() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = args_1.popScheduler(args); - return lift_1.operate(function (source, subscriber) { - concatAll_1.concatAll()(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber); - }); -} -exports.concat = concat; -//# sourceMappingURL=concat.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concat.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concat.js.map deleted file mode 100644 index dad6b2606..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../../src/internal/operators/concat.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAAuC;AACvC,yCAAwC;AACxC,qCAA4C;AAC5C,2CAA0C;AAY1C,SAAgB,MAAM;IAAO,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IACzC,IAAM,SAAS,GAAG,mBAAY,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,qBAAS,EAAE,CAAC,WAAI,gBAAE,MAAM,UAAK,IAAI,IAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACL,CAAC;AALD,wBAKC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js deleted file mode 100755 index fd6c66c74..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.concatAll = void 0; -var mergeAll_1 = require("./mergeAll"); -function concatAll() { - return mergeAll_1.mergeAll(1); -} -exports.concatAll = concatAll; -//# sourceMappingURL=concatAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js.map deleted file mode 100644 index b20b30064..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatAll.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AA2DtC,SAAgB,SAAS;IACvB,OAAO,mBAAQ,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC;AAFD,8BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js deleted file mode 100755 index 456fbae3c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.concatMap = void 0; -var mergeMap_1 = require("./mergeMap"); -var isFunction_1 = require("../util/isFunction"); -function concatMap(project, resultSelector) { - return isFunction_1.isFunction(resultSelector) ? mergeMap_1.mergeMap(project, resultSelector, 1) : mergeMap_1.mergeMap(project, 1); -} -exports.concatMap = concatMap; -//# sourceMappingURL=concatMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js.map deleted file mode 100644 index 5cd04129e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatMap.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAEtC,iDAAgD;AA4EhD,SAAgB,SAAS,CACvB,OAAuC,EACvC,cAA6G;IAE7G,OAAO,uBAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,mBAAQ,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,mBAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAClG,CAAC;AALD,8BAKC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js deleted file mode 100755 index 2e69bc72e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.concatMapTo = void 0; -var concatMap_1 = require("./concatMap"); -var isFunction_1 = require("../util/isFunction"); -function concatMapTo(innerObservable, resultSelector) { - return isFunction_1.isFunction(resultSelector) ? concatMap_1.concatMap(function () { return innerObservable; }, resultSelector) : concatMap_1.concatMap(function () { return innerObservable; }); -} -exports.concatMapTo = concatMapTo; -//# sourceMappingURL=concatMapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js.map deleted file mode 100644 index 96fd1a589..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatMapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatMapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatMapTo.ts"],"names":[],"mappings":";;;AAAA,yCAAwC;AAExC,iDAAgD;AAuEhD,SAAgB,WAAW,CACzB,eAAkB,EAClB,cAA6G;IAE7G,OAAO,uBAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,CAAC,CAAC;AAC1H,CAAC;AALD,kCAKC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js deleted file mode 100755 index a4c29358c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.concatWith = void 0; -var concat_1 = require("./concat"); -function concatWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return concat_1.concat.apply(void 0, __spreadArray([], __read(otherSources))); -} -exports.concatWith = concatWith; -//# sourceMappingURL=concatWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js.map deleted file mode 100644 index 6ab2a5e73..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/concatWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatWith.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,mCAAkC;AA0ClC,SAAgB,UAAU;IACxB,sBAA6C;SAA7C,UAA6C,EAA7C,qBAA6C,EAA7C,IAA6C;QAA7C,iCAA6C;;IAE7C,OAAO,eAAM,wCAAI,YAAY,IAAE;AACjC,CAAC;AAJD,gCAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/connect.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/connect.js deleted file mode 100755 index 3595728ca..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/connect.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.connect = void 0; -var Subject_1 = require("../Subject"); -var innerFrom_1 = require("../observable/innerFrom"); -var lift_1 = require("../util/lift"); -var fromSubscribable_1 = require("../observable/fromSubscribable"); -var DEFAULT_CONFIG = { - connector: function () { return new Subject_1.Subject(); }, -}; -function connect(selector, config) { - if (config === void 0) { config = DEFAULT_CONFIG; } - var connector = config.connector; - return lift_1.operate(function (source, subscriber) { - var subject = connector(); - innerFrom_1.innerFrom(selector(fromSubscribable_1.fromSubscribable(subject))).subscribe(subscriber); - subscriber.add(source.subscribe(subject)); - }); -} -exports.connect = connect; -//# sourceMappingURL=connect.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/connect.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/connect.js.map deleted file mode 100644 index 1674c4cf6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/connect.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../../src/internal/operators/connect.ts"],"names":[],"mappings":";;;AAEA,sCAAqC;AACrC,qDAAoD;AACpD,qCAAuC;AACvC,mEAAkE;AAgBlE,IAAM,cAAc,GAA2B;IAC7C,SAAS,EAAE,cAAM,OAAA,IAAI,iBAAO,EAAW,EAAtB,CAAsB;CACxC,CAAC;AA2EF,SAAgB,OAAO,CACrB,QAAsC,EACtC,MAAyC;IAAzC,uBAAA,EAAA,uBAAyC;IAEjC,IAAA,SAAS,GAAK,MAAM,UAAX,CAAY;IAC7B,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAM,OAAO,GAAG,SAAS,EAAE,CAAC;QAC5B,qBAAS,CAAC,QAAQ,CAAC,mCAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACrE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC;AAVD,0BAUC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/count.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/count.js deleted file mode 100755 index 9ba151eb7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/count.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.count = void 0; -var reduce_1 = require("./reduce"); -function count(predicate) { - return reduce_1.reduce(function (total, value, i) { return (!predicate || predicate(value, i) ? total + 1 : total); }, 0); -} -exports.count = count; -//# sourceMappingURL=count.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/count.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/count.js.map deleted file mode 100644 index 6a38e9040..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/count.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"count.js","sourceRoot":"","sources":["../../../../src/internal/operators/count.ts"],"names":[],"mappings":";;;AACA,mCAAkC;AAyDlC,SAAgB,KAAK,CAAI,SAAgD;IACvE,OAAO,eAAM,CAAC,UAAC,KAAK,EAAE,KAAK,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAvD,CAAuD,EAAE,CAAC,CAAC,CAAC;AACjG,CAAC;AAFD,sBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounce.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounce.js deleted file mode 100755 index bfc6aedea..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounce.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.debounce = void 0; -var lift_1 = require("../util/lift"); -var noop_1 = require("../util/noop"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var innerFrom_1 = require("../observable/innerFrom"); -function debounce(durationSelector) { - return lift_1.operate(function (source, subscriber) { - var hasValue = false; - var lastValue = null; - var durationSubscriber = null; - var emit = function () { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - durationSubscriber = null; - if (hasValue) { - hasValue = false; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - }; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - hasValue = true; - lastValue = value; - durationSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, emit, noop_1.noop); - innerFrom_1.innerFrom(durationSelector(value)).subscribe(durationSubscriber); - }, function () { - emit(); - subscriber.complete(); - }, undefined, function () { - lastValue = durationSubscriber = null; - })); - }); -} -exports.debounce = debounce; -//# sourceMappingURL=debounce.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounce.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounce.js.map deleted file mode 100644 index db85e1634..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounce.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../../../src/internal/operators/debounce.ts"],"names":[],"mappings":";;;AAEA,qCAAuC;AACvC,qCAAoC;AACpC,2DAAgE;AAChE,qDAAoD;AA4DpD,SAAgB,QAAQ,CAAI,gBAAoD;IAC9E,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,SAAS,GAAa,IAAI,CAAC;QAE/B,IAAI,kBAAkB,GAA2B,IAAI,CAAC;QAEtD,IAAM,IAAI,GAAG;YAIX,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,WAAW,EAAE,CAAC;YAClC,kBAAkB,GAAG,IAAI,CAAC;YAC1B,IAAI,QAAQ,EAAE;gBAEZ,QAAQ,GAAG,KAAK,CAAC;gBACjB,IAAM,KAAK,GAAG,SAAU,CAAC;gBACzB,SAAS,GAAG,IAAI,CAAC;gBACjB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,CAAC;QAEF,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAQ;YAIP,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,WAAW,EAAE,CAAC;YAClC,QAAQ,GAAG,IAAI,CAAC;YAChB,SAAS,GAAG,KAAK,CAAC;YAGlB,kBAAkB,GAAG,6CAAwB,CAAC,UAAU,EAAE,IAAI,EAAE,WAAI,CAAC,CAAC;YAEtE,qBAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACnE,CAAC,EACD;YAGE,IAAI,EAAE,CAAC;YACP,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EAED,SAAS,EACT;YAEE,SAAS,GAAG,kBAAkB,GAAG,IAAI,CAAC;QACxC,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AArDD,4BAqDC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js deleted file mode 100755 index 8362c9330..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.debounceTime = void 0; -var async_1 = require("../scheduler/async"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function debounceTime(dueTime, scheduler) { - if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } - return lift_1.operate(function (source, subscriber) { - var activeTask = null; - var lastValue = null; - var lastTime = null; - var emit = function () { - if (activeTask) { - activeTask.unsubscribe(); - activeTask = null; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - }; - function emitWhenIdle() { - var targetTime = lastTime + dueTime; - var now = scheduler.now(); - if (now < targetTime) { - activeTask = this.schedule(undefined, targetTime - now); - subscriber.add(activeTask); - return; - } - emit(); - } - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - lastValue = value; - lastTime = scheduler.now(); - if (!activeTask) { - activeTask = scheduler.schedule(emitWhenIdle, dueTime); - subscriber.add(activeTask); - } - }, function () { - emit(); - subscriber.complete(); - }, undefined, function () { - lastValue = activeTask = null; - })); - }); -} -exports.debounceTime = debounceTime; -//# sourceMappingURL=debounceTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js.map deleted file mode 100644 index 5a598a439..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/debounceTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"debounceTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/debounceTime.ts"],"names":[],"mappings":";;;AAAA,4CAAoD;AAGpD,qCAAuC;AACvC,2DAAgE;AA2DhE,SAAgB,YAAY,CAAI,OAAe,EAAE,SAAyC;IAAzC,0BAAA,EAAA,YAA2B,sBAAc;IACxF,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,U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AAC;AA5DD,oCA4DC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js deleted file mode 100755 index f554ceacc..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultIfEmpty = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function defaultIfEmpty(defaultValue) { - return lift_1.operate(function (source, subscriber) { - var hasValue = false; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - subscriber.next(value); - }, function () { - if (!hasValue) { - subscriber.next(defaultValue); - } - subscriber.complete(); - })); - }); -} -exports.defaultIfEmpty = defaultIfEmpty; -//# sourceMappingURL=defaultIfEmpty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js.map deleted file mode 100644 index 61ae27dd3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/defaultIfEmpty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"defaultIfEmpty.js","sourceRoot":"","sources":["../../../../src/internal/operators/defaultIfEmpty.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AAqChE,SAAgB,cAAc,CAAO,YAAe;IAClD,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,QAAQ,GAAG,IAAI,CAAC;YAChB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,EACD;YACE,IAAI,CAAC,QAAQ,EAAE;gBACb,UAAU,CAAC,IAAI,CAAC,YAAa,CAAC,CAAC;aAChC;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAnBD,wCAmBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delay.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delay.js deleted file mode 100755 index 47097f752..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delay.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.delay = void 0; -var async_1 = require("../scheduler/async"); -var delayWhen_1 = require("./delayWhen"); -var timer_1 = require("../observable/timer"); -function delay(due, scheduler) { - if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } - var duration = timer_1.timer(due, scheduler); - return delayWhen_1.delayWhen(function () { return duration; }); -} -exports.delay = delay; -//# sourceMappingURL=delay.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delay.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delay.js.map deleted file mode 100644 index 0e026cc62..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"delay.js","sourceRoot":"","sources":["../../../../src/internal/operators/delay.ts"],"names":[],"mappings":";;;AAAA,4CAAoD;AAEpD,yCAAwC;AACxC,6CAA4C;AA0D5C,SAAgB,KAAK,CAAI,GAAkB,EAAE,SAAyC;IAAzC,0BAAA,EAAA,YAA2B,sBAAc;IACpF,IAAM,QAAQ,GAAG,aAAK,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACvC,OAAO,qBAAS,CAAC,cAAM,OAAA,QAAQ,EAAR,CAAQ,CAAC,CAAC;AACnC,CAAC;AAHD,sBAGC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js deleted file mode 100755 index 265b0fbd5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.delayWhen = void 0; -var concat_1 = require("../observable/concat"); -var take_1 = require("./take"); -var ignoreElements_1 = require("./ignoreElements"); -var mapTo_1 = require("./mapTo"); -var mergeMap_1 = require("./mergeMap"); -var innerFrom_1 = require("../observable/innerFrom"); -function delayWhen(delayDurationSelector, subscriptionDelay) { - if (subscriptionDelay) { - return function (source) { - return concat_1.concat(subscriptionDelay.pipe(take_1.take(1), ignoreElements_1.ignoreElements()), source.pipe(delayWhen(delayDurationSelector))); - }; - } - return mergeMap_1.mergeMap(function (value, index) { return innerFrom_1.innerFrom(delayDurationSelector(value, index)).pipe(take_1.take(1), mapTo_1.mapTo(value)); }); -} -exports.delayWhen = delayWhen; -//# sourceMappingURL=delayWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js.map deleted file mode 100644 index 1c7ac15cc..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/delayWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"delayWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/delayWhen.ts"],"names":[],"mappings":";;;AAEA,+CAA8C;AAC9C,+BAA8B;AAC9B,mDAAkD;AAClD,iCAAgC;AAChC,uCAAsC;AACtC,qDAAoD;AAoFpD,SAAgB,SAAS,CACvB,qBAAwE,EACxE,iBAAmC;IAEnC,IAAI,iBAAiB,EAAE;QAErB,OAAO,UAAC,MAAqB;YAC3B,OAAA,eAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,WAAI,CAAC,CAAC,CAAC,EAAE,+BAAc,EAAE,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC;QAAxG,CAAwG,CAAC;KAC5G;IAED,OAAO,mBAAQ,CAAC,UAAC,KAAK,EAAE,KAAK,IAAK,OAAA,qBAAS,CAAC,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,WAAI,CAAC,CAAC,CAAC,EAAE,aAAK,CAAC,KAAK,CAAC,CAAC,EAA1E,CAA0E,CAAC,CAAC;AAChH,CAAC;AAXD,8BAWC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js deleted file mode 100755 index 511b755df..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dematerialize = void 0; -var Notification_1 = require("../Notification"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function dematerialize() { - return lift_1.operate(function (source, subscriber) { - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (notification) { return Notification_1.observeNotification(notification, subscriber); })); - }); -} -exports.dematerialize = dematerialize; -//# sourceMappingURL=dematerialize.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js.map deleted file mode 100644 index e4f37c2e7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/dematerialize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dematerialize.js","sourceRoot":"","sources":["../../../../src/internal/operators/dematerialize.ts"],"names":[],"mappings":";;;AAAA,gDAAsD;AAEtD,qCAAuC;AACvC,2DAAgE;AAkDhE,SAAgB,aAAa;IAC3B,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CAAC,6CAAwB,CAAC,UAAU,EAAE,UAAC,YAAY,IAAK,OAAA,kCAAmB,CAAC,YAAY,EAAE,UAAU,CAAC,EAA7C,CAA6C,CAAC,CAAC,CAAC;IAC1H,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,sCAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinct.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinct.js deleted file mode 100755 index fc733c1ef..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinct.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.distinct = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var noop_1 = require("../util/noop"); -var innerFrom_1 = require("../observable/innerFrom"); -function distinct(keySelector, flushes) { - return lift_1.operate(function (source, subscriber) { - var distinctKeys = new Set(); - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var key = keySelector ? keySelector(value) : value; - if (!distinctKeys.has(key)) { - distinctKeys.add(key); - subscriber.next(value); - } - })); - flushes && innerFrom_1.innerFrom(flushes).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { return distinctKeys.clear(); }, noop_1.noop)); - }); -} -exports.distinct = distinct; -//# sourceMappingURL=distinct.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinct.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinct.js.map deleted file mode 100644 index 36026a80e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinct.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinct.js","sourceRoot":"","sources":["../../../../src/internal/operators/distinct.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AAChE,qCAAoC;AACpC,qDAAoD;AA2DpD,SAAgB,QAAQ,CAAO,WAA6B,EAAE,OAA8B;IAC1F,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAM,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;QAC/B,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,IAAM,GAAG,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YACrD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gBAC1B,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACtB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,CAAC,CACH,CAAC;QAEF,OAAO,IAAI,qBAAS,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,6CAAwB,CAAC,UAAU,EAAE,cAAM,OAAA,YAAY,CAAC,KAAK,EAAE,EAApB,CAAoB,EAAE,WAAI,CAAC,CAAC,CAAC;IAClH,CAAC,CAAC,CAAC;AACL,CAAC;AAfD,4BAeC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js deleted file mode 100755 index f5555d9d3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.distinctUntilChanged = void 0; -var identity_1 = require("../util/identity"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function distinctUntilChanged(comparator, keySelector) { - if (keySelector === void 0) { keySelector = identity_1.identity; } - comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare; - return lift_1.operate(function (source, subscriber) { - var previousKey; - var first = true; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var currentKey = keySelector(value); - if (first || !comparator(previousKey, currentKey)) { - first = false; - previousKey = currentKey; - subscriber.next(value); - } - })); - }); -} -exports.distinctUntilChanged = distinctUntilChanged; -function defaultCompare(a, b) { - return a === b; -} -//# sourceMappingURL=distinctUntilChanged.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js.map deleted file mode 100644 index abd11b360..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilChanged.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinctUntilChanged.js","sourceRoot":"","sources":["../../../../src/internal/operators/distinctUntilChanged.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAC5C,qCAAuC;AACvC,2DAAgE;AAuIhE,SAAgB,oBAAoB,CAClC,UAAiD,EACjD,WAA0D;IAA1D,4BAAA,EAAA,cAA+B,mBAA2B;IAK1D,UAAU,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,cAAc,CAAC;IAE1C,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAGhC,IAAI,WAAc,CAAC;QAEnB,IAAI,KAAK,GAAG,IAAI,CAAC;QAEjB,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YAEzC,IAAM,UAAU,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;YAKtC,IAAI,KAAK,IAAI,CAAC,UAAW,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE;gBAMlD,KAAK,GAAG,KAAK,CAAC;gBACd,WAAW,GAAG,UAAU,CAAC;gBAGzB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAvCD,oDAuCC;AAED,SAAS,cAAc,CAAC,CAAM,EAAE,CAAM;IACpC,OAAO,CAAC,KAAK,CAAC,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js deleted file mode 100755 index 1f45aeeca..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.distinctUntilKeyChanged = void 0; -var distinctUntilChanged_1 = require("./distinctUntilChanged"); -function distinctUntilKeyChanged(key, compare) { - return distinctUntilChanged_1.distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; }); -} -exports.distinctUntilKeyChanged = distinctUntilKeyChanged; -//# sourceMappingURL=distinctUntilKeyChanged.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js.map deleted file mode 100644 index 88e926277..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/distinctUntilKeyChanged.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinctUntilKeyChanged.js","sourceRoot":"","sources":["../../../../src/internal/operators/distinctUntilKeyChanged.ts"],"names":[],"mappings":";;;AAAA,+DAA8D;AAoE9D,SAAgB,uBAAuB,CAAuB,GAAM,EAAE,OAAuC;IAC3G,OAAO,2CAAoB,CAAC,UAAC,CAAI,EAAE,CAAI,IAAK,OAAA,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAArD,CAAqD,CAAC,CAAC;AACrG,CAAC;AAFD,0DAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js deleted file mode 100755 index f05773621..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.elementAt = void 0; -var ArgumentOutOfRangeError_1 = require("../util/ArgumentOutOfRangeError"); -var filter_1 = require("./filter"); -var throwIfEmpty_1 = require("./throwIfEmpty"); -var defaultIfEmpty_1 = require("./defaultIfEmpty"); -var take_1 = require("./take"); -function elementAt(index, defaultValue) { - if (index < 0) { - throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError(); - } - var hasDefaultValue = arguments.length >= 2; - return function (source) { - return source.pipe(filter_1.filter(function (v, i) { return i === index; }), take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function () { return new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError(); })); - }; -} -exports.elementAt = elementAt; -//# sourceMappingURL=elementAt.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js.map deleted file mode 100644 index 246c83f21..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/elementAt.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elementAt.js","sourceRoot":"","sources":["../../../../src/internal/operators/elementAt.ts"],"names":[],"mappings":";;;AAAA,2EAA0E;AAG1E,mCAAkC;AAClC,+CAA8C;AAC9C,mDAAkD;AAClD,+BAA8B;AAkD9B,SAAgB,SAAS,CAAW,KAAa,EAAE,YAAgB;IACjE,IAAI,KAAK,GAAG,CAAC,EAAE;QACb,MAAM,IAAI,iDAAuB,EAAE,CAAC;KACrC;IACD,IAAM,eAAe,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9C,OAAO,UAAC,MAAqB;QAC3B,OAAA,MAAM,CAAC,IAAI,CACT,eAAM,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,KAAK,KAAK,EAAX,CAAW,CAAC,EAC7B,WAAI,CAAC,CAAC,CAAC,EACP,eAAe,CAAC,CAAC,CAAC,+BAAc,CAAC,YAAa,CAAC,CAAC,CAAC,CAAC,2BAAY,CAAC,cAAM,OAAA,IAAI,iDAAuB,EAAE,EAA7B,CAA6B,CAAC,CACpG;IAJD,CAIC,CAAC;AACN,CAAC;AAXD,8BAWC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/endWith.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/endWith.js deleted file mode 100755 index fab323de8..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/endWith.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.endWith = void 0; -var concat_1 = require("../observable/concat"); -var of_1 = require("../observable/of"); -function endWith() { - var values = []; - for (var _i = 0; _i < arguments.length; _i++) { - values[_i] = arguments[_i]; - } - return function (source) { return concat_1.concat(source, of_1.of.apply(void 0, __spreadArray([], __read(values)))); }; -} -exports.endWith = endWith; -//# sourceMappingURL=endWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/endWith.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/endWith.js.map deleted file mode 100644 index 05aa7449c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/endWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"endWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/endWith.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEA,+CAA8C;AAC9C,uCAAsC;AA8DtC,SAAgB,OAAO;IAAI,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,2BAAmC;;IAC5D,OAAO,UAAC,MAAqB,IAAK,OAAA,eAAM,CAAC,MAAM,EAAE,OAAE,wCAAI,MAAM,IAAmB,EAA9C,CAA8C,CAAC;AACnF,CAAC;AAFD,0BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/every.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/every.js deleted file mode 100755 index 47e4014f3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/every.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.every = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function every(predicate, thisArg) { - return lift_1.operate(function (source, subscriber) { - var index = 0; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - if (!predicate.call(thisArg, value, index++, source)) { - subscriber.next(false); - subscriber.complete(); - } - }, function () { - subscriber.next(true); - subscriber.complete(); - })); - }); -} -exports.every = every; -//# sourceMappingURL=every.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/every.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/every.js.map deleted file mode 100644 index 295cf174b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/every.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"every.js","sourceRoot":"","sources":["../../../../src/internal/operators/every.ts"],"names":[],"mappings":";;;AAEA,qCAAuC;AACvC,2DAAgE;AAwChE,SAAgB,KAAK,CACnB,SAAsE,EACtE,OAAa;IAEb,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,EAAE;gBACpD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACvB,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,EACD;YACE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAtBD,sBAsBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaust.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaust.js deleted file mode 100755 index 3a70412ca..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaust.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.exhaust = void 0; -var exhaustAll_1 = require("./exhaustAll"); -exports.exhaust = exhaustAll_1.exhaustAll; -//# sourceMappingURL=exhaust.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaust.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaust.js.map deleted file mode 100644 index 0ae482dab..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaust.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaust.js","sourceRoot":"","sources":["../../../../src/internal/operators/exhaust.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAK7B,QAAA,OAAO,GAAG,uBAAU,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js deleted file mode 100755 index 2e8955e63..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.exhaustAll = void 0; -var exhaustMap_1 = require("./exhaustMap"); -var identity_1 = require("../util/identity"); -function exhaustAll() { - return exhaustMap_1.exhaustMap(identity_1.identity); -} -exports.exhaustAll = exhaustAll; -//# sourceMappingURL=exhaustAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js.map deleted file mode 100644 index 1172ebabd..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaustAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/exhaustAll.ts"],"names":[],"mappings":";;;AACA,2CAA0C;AAC1C,6CAA4C;AA8C5C,SAAgB,UAAU;IACxB,OAAO,uBAAU,CAAC,mBAAQ,CAAC,CAAC;AAC9B,CAAC;AAFD,gCAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js deleted file mode 100755 index 1e1bafa99..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.exhaustMap = void 0; -var map_1 = require("./map"); -var innerFrom_1 = require("../observable/innerFrom"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function exhaustMap(project, resultSelector) { - if (resultSelector) { - return function (source) { - return source.pipe(exhaustMap(function (a, i) { return innerFrom_1.innerFrom(project(a, i)).pipe(map_1.map(function (b, ii) { return resultSelector(a, b, i, ii); })); })); - }; - } - return lift_1.operate(function (source, subscriber) { - var index = 0; - var innerSub = null; - var isComplete = false; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (outerValue) { - if (!innerSub) { - innerSub = OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function () { - innerSub = null; - isComplete && subscriber.complete(); - }); - innerFrom_1.innerFrom(project(outerValue, index++)).subscribe(innerSub); - } - }, function () { - isComplete = true; - !innerSub && subscriber.complete(); - })); - }); -} -exports.exhaustMap = exhaustMap; -//# sourceMappingURL=exhaustMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js.map deleted file mode 100644 index 131d03699..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/exhaustMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaustMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/exhaustMap.ts"],"names":[],"mappings":";;;AAGA,6BAA4B;AAC5B,qDAAoD;AACpD,qCAAuC;AACvC,2DAAgE;AA8DhE,SAAgB,UAAU,CACxB,OAAuC,EACvC,cAA6G;IAE7G,IAAI,cAAc,EAAE;QAElB,OAAO,UAAC,MAAqB;YAC3B,OAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,qBAAS,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAG,CAAC,UAAC,CAAM,EAAE,EAAO,IAAK,OAAA,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAA3B,CAA2B,CAAC,CAAC,EAApF,CAAoF,CAAC,CAAC;QAAvH,CAAuH,CAAC;KAC3H;IACD,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,QAAQ,GAAyB,IAAI,CAAC;QAC1C,IAAI,UAAU,GAAG,KAAK,CAAC;QACvB,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,UAAU;YACT,IAAI,CAAC,QAAQ,EAAE;gBACb,QAAQ,GAAG,6CAAwB,CAAC,UAAU,EAAE,SAAS,EAAE;oBACzD,QAAQ,GAAG,IAAI,CAAC;oBAChB,UAAU,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACtC,CAAC,CAAC,CAAC;gBACH,qBAAS,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;aAC7D;QACH,CAAC,EACD;YACE,UAAU,GAAG,IAAI,CAAC;YAClB,CAAC,QAAQ,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAhCD,gCAgCC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/expand.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/expand.js deleted file mode 100755 index 74934ea4e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/expand.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.expand = void 0; -var lift_1 = require("../util/lift"); -var mergeInternals_1 = require("./mergeInternals"); -function expand(project, concurrent, scheduler) { - if (concurrent === void 0) { concurrent = Infinity; } - concurrent = (concurrent || 0) < 1 ? Infinity : concurrent; - return lift_1.operate(function (source, subscriber) { - return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent, undefined, true, scheduler); - }); -} -exports.expand = expand; -//# sourceMappingURL=expand.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/expand.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/expand.js.map deleted file mode 100644 index 97d1a8333..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/expand.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"expand.js","sourceRoot":"","sources":["../../../../src/internal/operators/expand.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,mDAAkD;AAuElD,SAAgB,MAAM,CACpB,OAAuC,EACvC,UAAqB,EACrB,SAAyB;IADzB,2BAAA,EAAA,qBAAqB;IAGrB,UAAU,GAAG,CAAC,UAAU,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC;IAC3D,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,OAAA,+BAAc,CAEZ,MAAM,EACN,UAAU,EACV,OAAO,EACP,UAAU,EAGV,SAAS,EAGT,IAAI,EACJ,SAAS,CACV;IAbD,CAaC,CACF,CAAC;AACJ,CAAC;AAtBD,wBAsBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/filter.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/filter.js deleted file mode 100755 index ef8ae082c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/filter.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.filter = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function filter(predicate, thisArg) { - return lift_1.operate(function (source, subscriber) { - var index = 0; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return predicate.call(thisArg, value, index++) && subscriber.next(value); })); - }); -} -exports.filter = filter; -//# sourceMappingURL=filter.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/filter.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/filter.js.map deleted file mode 100644 index 418bd2470..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/filter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../src/internal/operators/filter.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AA0DhE,SAAgB,MAAM,CAAI,SAA+C,EAAE,OAAa;IACtF,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAI,KAAK,GAAG,CAAC,CAAC;QAId,MAAM,CAAC,SAAS,CAId,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK,IAAK,OAAA,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAjE,CAAiE,CAAC,CACnH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAdD,wBAcC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/finalize.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/finalize.js deleted file mode 100755 index 3bee9b710..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/finalize.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.finalize = void 0; -var lift_1 = require("../util/lift"); -function finalize(callback) { - return lift_1.operate(function (source, subscriber) { - try { - source.subscribe(subscriber); - } - finally { - subscriber.add(callback); - } - }); -} -exports.finalize = finalize; -//# sourceMappingURL=finalize.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/finalize.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/finalize.js.map deleted file mode 100644 index ff7cc0ad8..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/finalize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"finalize.js","sourceRoot":"","sources":["../../../../src/internal/operators/finalize.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AA+DvC,SAAgB,QAAQ,CAAI,QAAoB;IAC9C,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAGhC,IAAI;YACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;SAC9B;gBAAS;YACR,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;SAC1B;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAVD,4BAUC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/find.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/find.js deleted file mode 100755 index 46a43894f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/find.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createFind = exports.find = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function find(predicate, thisArg) { - return lift_1.operate(createFind(predicate, thisArg, 'value')); -} -exports.find = find; -function createFind(predicate, thisArg, emit) { - var findIndex = emit === 'index'; - return function (source, subscriber) { - var index = 0; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var i = index++; - if (predicate.call(thisArg, value, i, source)) { - subscriber.next(findIndex ? i : value); - subscriber.complete(); - } - }, function () { - subscriber.next(findIndex ? -1 : undefined); - subscriber.complete(); - })); - }; -} -exports.createFind = createFind; -//# sourceMappingURL=find.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/find.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/find.js.map deleted file mode 100644 index 09d8ef618..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/find.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../../src/internal/operators/find.ts"],"names":[],"mappings":";;;AAGA,qCAAuC;AACvC,2DAAgE;AA4DhE,SAAgB,IAAI,CAClB,SAAsE,EACtE,OAAa;IAEb,OAAO,cAAO,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1D,CAAC;AALD,oBAKC;AAED,SAAgB,UAAU,CACxB,SAAsE,EACtE,OAAY,EACZ,IAAuB;IAEvB,IAAM,SAAS,GAAG,IAAI,KAAK,OAAO,CAAC;IACnC,OAAO,UAAC,MAAqB,EAAE,UAA2B;QACxD,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,IAAM,CAAC,GAAG,KAAK,EAAE,CAAC;YAClB,IAAI,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE;gBAC7C,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;gBACvC,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,EACD;YACE,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC5C,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAzBD,gCAyBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js deleted file mode 100755 index 7422995c4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.findIndex = void 0; -var lift_1 = require("../util/lift"); -var find_1 = require("./find"); -function findIndex(predicate, thisArg) { - return lift_1.operate(find_1.createFind(predicate, thisArg, 'index')); -} -exports.findIndex = findIndex; -//# sourceMappingURL=findIndex.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js.map deleted file mode 100644 index 9e122c9e0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/findIndex.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"findIndex.js","sourceRoot":"","sources":["../../../../src/internal/operators/findIndex.ts"],"names":[],"mappings":";;;AAEA,qCAAuC;AACvC,+BAAoC;AAuDpC,SAAgB,SAAS,CACvB,SAAsE,EACtE,OAAa;IAEb,OAAO,cAAO,CAAC,iBAAU,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1D,CAAC;AALD,8BAKC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/first.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/first.js deleted file mode 100755 index 607da9fc7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/first.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.first = void 0; -var EmptyError_1 = require("../util/EmptyError"); -var filter_1 = require("./filter"); -var take_1 = require("./take"); -var defaultIfEmpty_1 = require("./defaultIfEmpty"); -var throwIfEmpty_1 = require("./throwIfEmpty"); -var identity_1 = require("../util/identity"); -function first(predicate, defaultValue) { - var hasDefaultValue = arguments.length >= 2; - return function (source) { - return source.pipe(predicate ? filter_1.filter(function (v, i) { return predicate(v, i, source); }) : identity_1.identity, take_1.take(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function () { return new EmptyError_1.EmptyError(); })); - }; -} -exports.first = first; -//# sourceMappingURL=first.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/first.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/first.js.map deleted file mode 100644 index 690774864..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/first.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"first.js","sourceRoot":"","sources":["../../../../src/internal/operators/first.ts"],"names":[],"mappings":";;;AACA,iDAAgD;AAEhD,mCAAkC;AAClC,+BAA8B;AAC9B,mDAAkD;AAClD,+CAA8C;AAC9C,6CAA4C;AAyE5C,SAAgB,KAAK,CACnB,SAAgF,EAChF,YAAgB;IAEhB,IAAM,eAAe,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9C,OAAO,UAAC,MAAqB;QAC3B,OAAA,MAAM,CAAC,IAAI,CACT,SAAS,CAAC,CAAC,CAAC,eAAM,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,EAAvB,CAAuB,CAAC,CAAC,CAAC,CAAC,mBAAQ,EAChE,WAAI,CAAC,CAAC,CAAC,EACP,eAAe,CAAC,CAAC,CAAC,+BAAc,CAAC,YAAa,CAAC,CAAC,CAAC,CAAC,2BAAY,CAAC,cAAM,OAAA,IAAI,uBAAU,EAAE,EAAhB,CAAgB,CAAC,CACvF;IAJD,CAIC,CAAC;AACN,CAAC;AAXD,sBAWC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/flatMap.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/flatMap.js deleted file mode 100755 index a7f0e81bb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/flatMap.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.flatMap = void 0; -var mergeMap_1 = require("./mergeMap"); -exports.flatMap = mergeMap_1.mergeMap; -//# sourceMappingURL=flatMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/flatMap.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/flatMap.js.map deleted file mode 100644 index 2105491d0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/flatMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"flatMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/flatMap.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAKzB,QAAA,OAAO,GAAG,mBAAQ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js deleted file mode 100755 index 18a5bd51e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.groupBy = void 0; -var Observable_1 = require("../Observable"); -var innerFrom_1 = require("../observable/innerFrom"); -var Subject_1 = require("../Subject"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function groupBy(keySelector, elementOrOptions, duration, connector) { - return lift_1.operate(function (source, subscriber) { - var element; - if (!elementOrOptions || typeof elementOrOptions === 'function') { - element = elementOrOptions; - } - else { - (duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector); - } - var groups = new Map(); - var notify = function (cb) { - groups.forEach(cb); - cb(subscriber); - }; - var handleError = function (err) { return notify(function (consumer) { return consumer.error(err); }); }; - var activeGroups = 0; - var teardownAttempted = false; - var groupBySourceSubscriber = new OperatorSubscriber_1.OperatorSubscriber(subscriber, function (value) { - try { - var key_1 = keySelector(value); - var group_1 = groups.get(key_1); - if (!group_1) { - groups.set(key_1, (group_1 = connector ? connector() : new Subject_1.Subject())); - var grouped = createGroupedObservable(key_1, group_1); - subscriber.next(grouped); - if (duration) { - var durationSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(group_1, function () { - group_1.complete(); - durationSubscriber_1 === null || durationSubscriber_1 === void 0 ? void 0 : durationSubscriber_1.unsubscribe(); - }, undefined, undefined, function () { return groups.delete(key_1); }); - groupBySourceSubscriber.add(innerFrom_1.innerFrom(duration(grouped)).subscribe(durationSubscriber_1)); - } - } - group_1.next(element ? element(value) : value); - } - catch (err) { - handleError(err); - } - }, function () { return notify(function (consumer) { return consumer.complete(); }); }, handleError, function () { return groups.clear(); }, function () { - teardownAttempted = true; - return activeGroups === 0; - }); - source.subscribe(groupBySourceSubscriber); - function createGroupedObservable(key, groupSubject) { - var result = new Observable_1.Observable(function (groupSubscriber) { - activeGroups++; - var innerSub = groupSubject.subscribe(groupSubscriber); - return function () { - innerSub.unsubscribe(); - --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe(); - }; - }); - result.key = key; - return result; - } - }); -} -exports.groupBy = groupBy; -//# sourceMappingURL=groupBy.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js.map deleted file mode 100644 index eb92bd83c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/groupBy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"groupBy.js","sourceRoot":"","sources":["../../../../src/internal/operators/groupBy.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAC3C,qDAAoD;AACpD,sCAAqC;AAErC,qCAAuC;AACvC,2DAAoF;AAuIpF,SAAgB,OAAO,CACrB,WAA4B,EAC5B,gBAAgH,EAChH,QAAyE,EACzE,SAAkC;IAElC,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,OAAqC,CAAC;QAC1C,IAAI,CAAC,gBAAgB,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;YAC/D,OAAO,GAAG,gBAAyC,CAAC;SACrD;aAAM;YACL,CAAG,QAAQ,GAAyB,gBAAgB,SAAzC,EAAE,OAAO,GAAgB,gBAAgB,QAAhC,EAAE,SAAS,GAAK,gBAAgB,UAArB,CAAsB,CAAC;SACvD;QAGD,IAAM,MAAM,GAAG,IAAI,GAAG,EAAuB,CAAC;QAG9C,IAAM,MAAM,GAAG,UAAC,EAAkC;YAChD,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;YACnB,EAAE,CAAC,UAAU,CAAC,CAAC;QACjB,CAAC,CAAC;QAIF,IAAM,WAAW,GAAG,UAAC,GAAQ,IAAK,OAAA,MAAM,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAnB,CAAmB,CAAC,EAAzC,CAAyC,CAAC;QAG5E,IAAI,YAAY,GAAG,CAAC,CAAC;QAGrB,IAAI,iBAAiB,GAAG,KAAK,CAAC;QAS9B,IAAM,uBAAuB,GAAG,IAAI,uCAAkB,CACpD,UAAU,EACV,UAAC,KAAQ;YAIP,IAAI;gBACF,IAAM,KAAG,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;gBAE/B,IAAI,OAAK,GAAG,MAAM,CAAC,GAAG,CAAC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5B,CAAC,CACF,CAAC;QAGF,MAAM,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QAO1C,SAAS,uBAAuB,CAAC,GAAM,EAAE,YAA8B;YACrE,IAAM,MAAM,GAAQ,IAAI,uBAAU,CAAI,UAAC,eAAe;gBACpD,YAAY,EAAE,CAAC;gBACf,IAAM,QAAQ,GAAG,YAAY,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;gBACzD,OAAO;oBACL,QAAQ,CAAC,WAAW,EAAE,CAAC;oBAIvB,EAAE,YAAY,KAAK,CAAC,IAAI,iBAAiB,IAAI,uBAAuB,CAAC,WAAW,EAAE,CAAC;gBACrF,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;YACH,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC;YACjB,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAxID,0BAwIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js deleted file mode 100755 index d33ce631e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ignoreElements = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var noop_1 = require("../util/noop"); -function ignoreElements() { - return lift_1.operate(function (source, subscriber) { - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, noop_1.noop)); - }); -} -exports.ignoreElements = ignoreElements; -//# sourceMappingURL=ignoreElements.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js.map deleted file mode 100644 index d07aa4a8b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/ignoreElements.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ignoreElements.js","sourceRoot":"","sources":["../../../../src/internal/operators/ignoreElements.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AAChE,qCAAoC;AAqCpC,SAAgB,cAAc;IAC5B,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CAAC,6CAAwB,CAAC,UAAU,EAAE,WAAI,CAAC,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,wCAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js deleted file mode 100755 index 1b74a2462..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isEmpty = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function isEmpty() { - return lift_1.operate(function (source, subscriber) { - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { - subscriber.next(false); - subscriber.complete(); - }, function () { - subscriber.next(true); - subscriber.complete(); - })); - }); -} -exports.isEmpty = isEmpty; -//# sourceMappingURL=isEmpty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js.map deleted file mode 100644 index ad9878359..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isEmpty.js","sourceRoot":"","sources":["../../../../src/internal/operators/isEmpty.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AA+DhE,SAAgB,OAAO;IACrB,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV;YACE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD;YACE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAhBD,0BAgBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js deleted file mode 100755 index 9eae80fb6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.joinAllInternals = void 0; -var identity_1 = require("../util/identity"); -var mapOneOrManyArgs_1 = require("../util/mapOneOrManyArgs"); -var pipe_1 = require("../util/pipe"); -var mergeMap_1 = require("./mergeMap"); -var toArray_1 = require("./toArray"); -function joinAllInternals(joinFn, project) { - return pipe_1.pipe(toArray_1.toArray(), mergeMap_1.mergeMap(function (sources) { return joinFn(sources); }), project ? mapOneOrManyArgs_1.mapOneOrManyArgs(project) : identity_1.identity); -} -exports.joinAllInternals = joinAllInternals; -//# sourceMappingURL=joinAllInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js.map deleted file mode 100644 index 3c3601ab8..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/joinAllInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"joinAllInternals.js","sourceRoot":"","sources":["../../../../src/internal/operators/joinAllInternals.ts"],"names":[],"mappings":";;;AAEA,6CAA4C;AAC5C,6DAA4D;AAC5D,qCAAoC;AACpC,uCAAsC;AACtC,qCAAoC;AAYpC,SAAgB,gBAAgB,CAAO,MAAwD,EAAE,OAA+B;IAC9H,OAAO,WAAI,CAGT,iBAAO,EAAgE,EAEvE,mBAAQ,CAAC,UAAC,OAAO,IAAK,OAAA,MAAM,CAAC,OAAO,CAAC,EAAf,CAAe,CAAC,EAEtC,OAAO,CAAC,CAAC,CAAC,mCAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,mBAAgB,CACxD,CAAC;AACJ,CAAC;AAVD,4CAUC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/last.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/last.js deleted file mode 100755 index 99a43b2a5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/last.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.last = void 0; -var EmptyError_1 = require("../util/EmptyError"); -var filter_1 = require("./filter"); -var takeLast_1 = require("./takeLast"); -var throwIfEmpty_1 = require("./throwIfEmpty"); -var defaultIfEmpty_1 = require("./defaultIfEmpty"); -var identity_1 = require("../util/identity"); -function last(predicate, defaultValue) { - var hasDefaultValue = arguments.length >= 2; - return function (source) { - return source.pipe(predicate ? filter_1.filter(function (v, i) { return predicate(v, i, source); }) : identity_1.identity, takeLast_1.takeLast(1), hasDefaultValue ? defaultIfEmpty_1.defaultIfEmpty(defaultValue) : throwIfEmpty_1.throwIfEmpty(function () { return new EmptyError_1.EmptyError(); })); - }; -} -exports.last = last; -//# sourceMappingURL=last.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/last.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/last.js.map deleted file mode 100644 index b51aa8044..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/last.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"last.js","sourceRoot":"","sources":["../../../../src/internal/operators/last.ts"],"names":[],"mappings":";;;AACA,iDAAgD;AAEhD,mCAAkC;AAClC,uCAAsC;AACtC,+CAA8C;AAC9C,mDAAkD;AAClD,6CAA4C;AAuE5C,SAAgB,IAAI,CAClB,SAAgF,EAChF,YAAgB;IAEhB,IAAM,eAAe,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9C,OAAO,UAAC,MAAqB;QAC3B,OAAA,MAAM,CAAC,IAAI,CACT,SAAS,CAAC,CAAC,CAAC,eAAM,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,EAAvB,CAAuB,CAAC,CAAC,CAAC,CAAC,mBAAQ,EAChE,mBAAQ,CAAC,CAAC,CAAC,EACX,eAAe,CAAC,CAAC,CAAC,+BAAc,CAAC,YAAa,CAAC,CAAC,CAAC,CAAC,2BAAY,CAAC,cAAM,OAAA,IAAI,uBAAU,EAAE,EAAhB,CAAgB,CAAC,CACvF;IAJD,CAIC,CAAC;AACN,CAAC;AAXD,oBAWC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/map.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/map.js deleted file mode 100755 index 67a990962..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/map.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.map = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function map(project, thisArg) { - return lift_1.operate(function (source, subscriber) { - var index = 0; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - subscriber.next(project.call(thisArg, value, index++)); - })); - }); -} -exports.map = map; -//# sourceMappingURL=map.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/map.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/map.js.map deleted file mode 100644 index c5e2e7375..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/map.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"map.js","sourceRoot":"","sources":["../../../../src/internal/operators/map.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AA6ChE,SAAgB,GAAG,CAAO,OAAuC,EAAE,OAAa;IAC9E,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAI,KAAK,GAAG,CAAC,CAAC;QAGd,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAQ;YAG5C,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QACzD,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAdD,kBAcC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js deleted file mode 100755 index 6f5996759..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mapTo = void 0; -var map_1 = require("./map"); -function mapTo(value) { - return map_1.map(function () { return value; }); -} -exports.mapTo = mapTo; -//# sourceMappingURL=mapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js.map deleted file mode 100644 index c3e2ee884..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/mapTo.ts"],"names":[],"mappings":";;;AACA,6BAA4B;AA4C5B,SAAgB,KAAK,CAAI,KAAQ;IAC/B,OAAO,SAAG,CAAC,cAAM,OAAA,KAAK,EAAL,CAAK,CAAC,CAAC;AAC1B,CAAC;AAFD,sBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/materialize.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/materialize.js deleted file mode 100755 index 0ec315539..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/materialize.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.materialize = void 0; -var Notification_1 = require("../Notification"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function materialize() { - return lift_1.operate(function (source, subscriber) { - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - subscriber.next(Notification_1.Notification.createNext(value)); - }, function () { - subscriber.next(Notification_1.Notification.createComplete()); - subscriber.complete(); - }, function (err) { - subscriber.next(Notification_1.Notification.createError(err)); - subscriber.complete(); - })); - }); -} -exports.materialize = materialize; -//# sourceMappingURL=materialize.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/materialize.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/materialize.js.map deleted file mode 100644 index 7332bf83b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/materialize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"materialize.js","sourceRoot":"","sources":["../../../../src/internal/operators/materialize.ts"],"names":[],"mappings":";;;AAAA,gDAA+C;AAE/C,qCAAuC;AACvC,2DAAgE;AAkDhE,SAAgB,WAAW;IACzB,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,UAAU,CAAC,IAAI,CAAC,2BAAY,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,CAAC,EACD;YACE,UAAU,CAAC,IAAI,CAAC,2BAAY,CAAC,cAAc,EAAE,CAAC,CAAC;YAC/C,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,UAAC,GAAG;YACF,UAAU,CAAC,IAAI,CAAC,2BAAY,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;YAC/C,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAnBD,kCAmBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/max.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/max.js deleted file mode 100755 index 29ba7689c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/max.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.max = void 0; -var reduce_1 = require("./reduce"); -var isFunction_1 = require("../util/isFunction"); -function max(comparer) { - return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); }); -} -exports.max = max; -//# sourceMappingURL=max.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/max.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/max.js.map deleted file mode 100644 index 174920e8f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/max.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"max.js","sourceRoot":"","sources":["../../../../src/internal/operators/max.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAElC,iDAAgD;AAgDhD,SAAgB,GAAG,CAAI,QAAiC;IACtD,OAAO,eAAM,CAAC,uBAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAA5B,CAA4B,CAAC,CAAC,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAf,CAAe,CAAC,CAAC;AAC3G,CAAC;AAFD,kBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/merge.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/merge.js deleted file mode 100755 index 1b81d7f88..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/merge.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.merge = void 0; -var lift_1 = require("../util/lift"); -var argsOrArgArray_1 = require("../util/argsOrArgArray"); -var mergeAll_1 = require("./mergeAll"); -var args_1 = require("../util/args"); -var from_1 = require("../observable/from"); -function merge() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = args_1.popScheduler(args); - var concurrent = args_1.popNumber(args, Infinity); - args = argsOrArgArray_1.argsOrArgArray(args); - return lift_1.operate(function (source, subscriber) { - mergeAll_1.mergeAll(concurrent)(from_1.from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber); - }); -} -exports.merge = merge; -//# sourceMappingURL=merge.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/merge.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/merge.js.map deleted file mode 100644 index 26f63a581..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/merge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../../src/internal/operators/merge.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAAuC;AACvC,yDAAwD;AACxD,uCAAsC;AACtC,qCAAuD;AACvD,2CAA0C;AAiB1C,SAAgB,KAAK;IAAI,cAAkB;SAAlB,UAAkB,EAAlB,qBAAkB,EAAlB,IAAkB;QAAlB,yBAAkB;;IACzC,IAAM,SAAS,GAAG,mBAAY,CAAC,IAAI,CAAC,CAAC;IACrC,IAAM,UAAU,GAAG,gBAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC7C,IAAI,GAAG,+BAAc,CAAC,IAAI,CAAC,CAAC;IAE5B,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,mBAAQ,CAAC,UAAU,CAAC,CAAC,WAAI,gBAAE,MAAM,UAAM,IAA6B,IAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC3G,CAAC,CAAC,CAAC;AACL,CAAC;AARD,sBAQC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js deleted file mode 100755 index e51138b45..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mergeAll = void 0; -var mergeMap_1 = require("./mergeMap"); -var identity_1 = require("../util/identity"); -function mergeAll(concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - return mergeMap_1.mergeMap(identity_1.identity, concurrent); -} -exports.mergeAll = mergeAll; -//# sourceMappingURL=mergeAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js.map deleted file mode 100644 index 5ad166073..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeAll.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AACtC,6CAA4C;AA8D5C,SAAgB,QAAQ,CAAiC,UAA6B;IAA7B,2BAAA,EAAA,qBAA6B;IACpF,OAAO,mBAAQ,CAAC,mBAAQ,EAAE,UAAU,CAAC,CAAC;AACxC,CAAC;AAFD,4BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js deleted file mode 100755 index 17a8a025f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js +++ /dev/null @@ -1,65 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mergeInternals = void 0; -var innerFrom_1 = require("../observable/innerFrom"); -var executeSchedule_1 = require("../util/executeSchedule"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) { - var buffer = []; - var active = 0; - var index = 0; - var isComplete = false; - var checkComplete = function () { - if (isComplete && !buffer.length && !active) { - subscriber.complete(); - } - }; - var outerNext = function (value) { return (active < concurrent ? doInnerSub(value) : buffer.push(value)); }; - var doInnerSub = function (value) { - expand && subscriber.next(value); - active++; - var innerComplete = false; - innerFrom_1.innerFrom(project(value, index++)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (innerValue) { - onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue); - if (expand) { - outerNext(innerValue); - } - else { - subscriber.next(innerValue); - } - }, function () { - innerComplete = true; - }, undefined, function () { - if (innerComplete) { - try { - active--; - var _loop_1 = function () { - var bufferedValue = buffer.shift(); - if (innerSubScheduler) { - executeSchedule_1.executeSchedule(subscriber, innerSubScheduler, function () { return doInnerSub(bufferedValue); }); - } - else { - doInnerSub(bufferedValue); - } - }; - while (buffer.length && active < concurrent) { - _loop_1(); - } - checkComplete(); - } - catch (err) { - subscriber.error(err); - } - } - })); - }; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, outerNext, function () { - isComplete = true; - checkComplete(); - })); - return function () { - additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer(); - }; -} -exports.mergeInternals = mergeInternals; -//# sourceMappingURL=mergeInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js.map deleted file mode 100644 index aa4e2acb9..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeInternals.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeInternals.ts"],"names":[],"mappings":";;;AACA,qDAAoD;AAGpD,2DAA0D;AAC1D,2DAAgE;AAehE,SAAgB,cAAc,CAC5B,MAAqB,EACrB,UAAyB,EACzB,OAAwD,EACxD,UAAkB,EAClB,YAAsC,EACtC,MAAgB,EAChB,i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4BACrB,iCAAe,CAAC,UAAU,EAAE,iBAAiB,EAAE,cAAM,OAAA,UAAU,CAAC,aAAa,CAAC,EAAzB,CAAyB,CAAC,CAAC;yBACjF;6BAAM;4BACL,UAAU,CAAC,aAAa,CAAC,CAAC;yBAC3B;;oBATH,OAAO,MAAM,CAAC,MAAM,IAAI,MAAM,GAAG,UAAU;;qBAU1C;oBAED,aAAa,EAAE,CAAC;iBACjB;gBAAC,OAAO,GAAG,EAAE;oBACZ,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACvB;aACF;QACH,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC;IAGF,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,SAAS,EAAE;QAE9C,UAAU,GAAG,IAAI,CAAC;QAClB,aAAa,EAAE,CAAC;IAClB,CAAC,CAAC,CACH,CAAC;IAIF,OAAO;QACL,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,EAAI,CAAC;IAC1B,CAAC,CAAC;AACJ,CAAC;AAhID,wCAgIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js deleted file mode 100755 index c20cca61b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mergeMap = void 0; -var map_1 = require("./map"); -var innerFrom_1 = require("../observable/innerFrom"); -var lift_1 = require("../util/lift"); -var mergeInternals_1 = require("./mergeInternals"); -var isFunction_1 = require("../util/isFunction"); -function mergeMap(project, resultSelector, concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - if (isFunction_1.isFunction(resultSelector)) { - return mergeMap(function (a, i) { return map_1.map(function (b, ii) { return resultSelector(a, b, i, ii); })(innerFrom_1.innerFrom(project(a, i))); }, concurrent); - } - else if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - return lift_1.operate(function (source, subscriber) { return mergeInternals_1.mergeInternals(source, subscriber, project, concurrent); }); -} -exports.mergeMap = mergeMap; -//# sourceMappingURL=mergeMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js.map deleted file mode 100644 index 5acc68b58..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeMap.ts"],"names":[],"mappings":";;;AACA,6BAA4B;AAC5B,qDAAoD;AACpD,qCAAuC;AACvC,mDAAkD;AAClD,iDAAgD;AA6EhD,SAAgB,QAAQ,CACtB,OAAuC,EACvC,cAAwH,EACxH,UAA6B;IAA7B,2BAAA,EAAA,qBAA6B;IAE7B,IAAI,uBAAU,CAAC,cAAc,CAAC,EAAE;QAE9B,OAAO,QAAQ,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,SAAG,CAAC,UAAC,CAAM,EAAE,EAAU,IAAK,OAAA,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAA3B,CAA2B,CAAC,CAAC,qBAAS,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAlF,CAAkF,EAAE,UAAU,CAAC,CAAC;KAC3H;SAAM,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;QAC7C,UAAU,GAAG,cAAc,CAAC;KAC7B;IAED,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU,IAAK,OAAA,+BAAc,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,EAAvD,CAAuD,CAAC,CAAC;AAClG,CAAC;AAbD,4BAaC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js deleted file mode 100755 index 0ea80a590..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mergeMapTo = void 0; -var mergeMap_1 = require("./mergeMap"); -var isFunction_1 = require("../util/isFunction"); -function mergeMapTo(innerObservable, resultSelector, concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - if (isFunction_1.isFunction(resultSelector)) { - return mergeMap_1.mergeMap(function () { return innerObservable; }, resultSelector, concurrent); - } - if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - return mergeMap_1.mergeMap(function () { return innerObservable; }, concurrent); -} -exports.mergeMapTo = mergeMapTo; -//# sourceMappingURL=mergeMapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js.map deleted file mode 100644 index 4c12c29ab..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeMapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeMapTo.ts"],"names":[],"mappings":";;;AACA,uCAAsC;AACtC,iDAAgD;AA2DhD,SAAgB,UAAU,CACxB,eAAkB,EAClB,cAAwH,EACxH,UAA6B;IAA7B,2BAAA,EAAA,qBAA6B;IAE7B,IAAI,uBAAU,CAAC,cAAc,CAAC,EAAE;QAC9B,OAAO,mBAAQ,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;KACpE;IACD,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;QACtC,UAAU,GAAG,cAAc,CAAC;KAC7B;IACD,OAAO,mBAAQ,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,EAAE,UAAU,CAAC,CAAC;AACrD,CAAC;AAZD,gCAYC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js deleted file mode 100755 index 1fde1675f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mergeScan = void 0; -var lift_1 = require("../util/lift"); -var mergeInternals_1 = require("./mergeInternals"); -function mergeScan(accumulator, seed, concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - return lift_1.operate(function (source, subscriber) { - var state = seed; - return mergeInternals_1.mergeInternals(source, subscriber, function (value, index) { return accumulator(state, value, index); }, concurrent, function (value) { - state = value; - }, false, undefined, function () { return (state = null); }); - }); -} -exports.mergeScan = mergeScan; -//# sourceMappingURL=mergeScan.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js.map deleted file mode 100644 index 0f2354e2e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeScan.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeScan.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeScan.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,mDAAkD;AAoElD,SAAgB,SAAS,CACvB,WAAoE,EACpE,IAAO,EACP,UAAqB;IAArB,2BAAA,EAAA,qBAAqB;IAErB,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAI,KAAK,GAAG,IAAI,CAAC;QAEjB,OAAO,+BAAc,CACnB,MAAM,EACN,UAAU,EACV,UAAC,KAAK,EAAE,KAAK,IAAK,OAAA,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAhC,CAAgC,EAClD,UAAU,EACV,UAAC,KAAK;YACJ,KAAK,GAAG,KAAK,CAAC;QAChB,CAAC,EACD,KAAK,EACL,SAAS,EACT,cAAM,OAAA,CAAC,KAAK,GAAG,IAAK,CAAC,EAAf,CAAe,CACtB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAtBD,8BAsBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js deleted file mode 100755 index 0af9e4327..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mergeWith = void 0; -var merge_1 = require("./merge"); -function mergeWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return merge_1.merge.apply(void 0, __spreadArray([], __read(otherSources))); -} -exports.mergeWith = mergeWith; -//# sourceMappingURL=mergeWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js.map deleted file mode 100644 index 67290119f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/mergeWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeWith.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,iCAAgC;AA2ChC,SAAgB,SAAS;IACvB,sBAA6C;SAA7C,UAA6C,EAA7C,qBAA6C,EAA7C,IAA6C;QAA7C,iCAA6C;;IAE7C,OAAO,aAAK,wCAAI,YAAY,IAAE;AAChC,CAAC;AAJD,8BAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/min.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/min.js deleted file mode 100755 index 312ccc09c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/min.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.min = void 0; -var reduce_1 = require("./reduce"); -var isFunction_1 = require("../util/isFunction"); -function min(comparer) { - return reduce_1.reduce(isFunction_1.isFunction(comparer) ? function (x, y) { return (comparer(x, y) < 0 ? x : y); } : function (x, y) { return (x < y ? x : y); }); -} -exports.min = min; -//# sourceMappingURL=min.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/min.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/min.js.map deleted file mode 100644 index ec0e2516b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min.js","sourceRoot":"","sources":["../../../../src/internal/operators/min.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAElC,iDAAgD;AAgDhD,SAAgB,GAAG,CAAI,QAAiC;IACtD,OAAO,eAAM,CAAC,uBAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAA5B,CAA4B,CAAC,CAAC,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAf,CAAe,CAAC,CAAC;AAC3G,CAAC;AAFD,kBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/multicast.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/multicast.js deleted file mode 100755 index 7abaf0ec3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/multicast.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.multicast = void 0; -var ConnectableObservable_1 = require("../observable/ConnectableObservable"); -var isFunction_1 = require("../util/isFunction"); -var connect_1 = require("./connect"); -function multicast(subjectOrSubjectFactory, selector) { - var subjectFactory = isFunction_1.isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function () { return subjectOrSubjectFactory; }; - if (isFunction_1.isFunction(selector)) { - return connect_1.connect(selector, { - connector: subjectFactory, - }); - } - return function (source) { return new ConnectableObservable_1.ConnectableObservable(source, subjectFactory); }; -} -exports.multicast = multicast; -//# sourceMappingURL=multicast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/multicast.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/multicast.js.map deleted file mode 100644 index e85a9ad51..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/multicast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"multicast.js","sourceRoot":"","sources":["../../../../src/internal/operators/multicast.ts"],"names":[],"mappings":";;;AAEA,6EAA4E;AAE5E,iDAAgD;AAChD,qCAAoC;AA4EpC,SAAgB,SAAS,CACvB,uBAAwD,EACxD,QAAmD;IAEnD,IAAM,cAAc,GAAG,uBAAU,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,cAAM,OAAA,uBAAuB,EAAvB,CAAuB,CAAC;IAErH,IAAI,uBAAU,CAAC,QAAQ,CAAC,EAAE;QAIxB,OAAO,iBAAO,CAAC,QAAQ,EAAE;YACvB,SAAS,EAAE,cAAc;SAC1B,CAAC,CAAC;KACJ;IAED,OAAO,UAAC,MAAqB,IAAK,OAAA,IAAI,6CAAqB,CAAM,MAAM,EAAE,cAAc,CAAC,EAAtD,CAAsD,CAAC;AAC3F,CAAC;AAhBD,8BAgBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js deleted file mode 100755 index 617e0afac..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.observeOn = void 0; -var executeSchedule_1 = require("../util/executeSchedule"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function observeOn(scheduler, delay) { - if (delay === void 0) { delay = 0; } - return lift_1.operate(function (source, subscriber) { - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return executeSchedule_1.executeSchedule(subscriber, scheduler, function () { return subscriber.next(value); }, delay); }, function () { return executeSchedule_1.executeSchedule(subscriber, scheduler, function () { return subscriber.complete(); }, delay); }, function (err) { return executeSchedule_1.executeSchedule(subscriber, scheduler, function () { return subscriber.error(err); }, delay); })); - }); -} -exports.observeOn = observeOn; -//# sourceMappingURL=observeOn.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js.map deleted file mode 100644 index 3a7c9d197..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/observeOn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"observeOn.js","sourceRoot":"","sources":["../../../../src/internal/operators/observeOn.ts"],"names":[],"mappings":";;;AAEA,2DAA0D;AAC1D,qCAAuC;AACvC,2DAAgE;AAsDhE,SAAgB,SAAS,CAAI,SAAwB,EAAE,KAAS;IAAT,sBAAA,EAAA,SAAS;IAC9D,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK,IAAK,OAAA,iCAAe,CAAC,UAAU,EAAE,SAAS,EAAE,cAAM,OAAA,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAtB,CAAsB,EAAE,KAAK,CAAC,EAA3E,CAA2E,EACtF,cAAM,OAAA,iCAAe,CAAC,UAAU,EAAE,SAAS,EAAE,cAAM,OAAA,UAAU,CAAC,QAAQ,EAAE,EAArB,CAAqB,EAAE,KAAK,CAAC,EAA1E,CAA0E,EAChF,UAAC,GAAG,IAAK,OAAA,iCAAe,CAAC,UAAU,EAAE,SAAS,EAAE,cAAM,OAAA,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAArB,CAAqB,EAAE,KAAK,CAAC,EAA1E,CAA0E,CACpF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAXD,8BAWC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js deleted file mode 100755 index 0af7cda66..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.onErrorResumeNext = exports.onErrorResumeNextWith = void 0; -var argsOrArgArray_1 = require("../util/argsOrArgArray"); -var onErrorResumeNext_1 = require("../observable/onErrorResumeNext"); -function onErrorResumeNextWith() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - var nextSources = argsOrArgArray_1.argsOrArgArray(sources); - return function (source) { return onErrorResumeNext_1.onErrorResumeNext.apply(void 0, __spreadArray([source], __read(nextSources))); }; -} -exports.onErrorResumeNextWith = onErrorResumeNextWith; -exports.onErrorResumeNext = onErrorResumeNextWith; -//# sourceMappingURL=onErrorResumeNextWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js.map deleted file mode 100644 index 8aad7e4c5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/onErrorResumeNextWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"onErrorResumeNextWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/onErrorResumeNextWith.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,yDAAwD;AACxD,qEAAkF;AAiFlF,SAAgB,qBAAqB;IACnC,iBAAyE;SAAzE,UAAyE,EAAzE,qBAAyE,EAAzE,IAAyE;QAAzE,4BAAyE;;IAMzE,IAAM,WAAW,GAAG,+BAAc,CAAC,OAAO,CAAuC,CAAC;IAElF,OAAO,UAAC,MAAM,IAAK,OAAA,qCAAU,8BAAC,MAAM,UAAK,WAAW,KAAjC,CAAkC,CAAC;AACxD,CAAC;AAVD,sDAUC;AAKY,QAAA,iBAAiB,GAAG,qBAAqB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js deleted file mode 100755 index dec77fd72..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pairwise = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function pairwise() { - return lift_1.operate(function (source, subscriber) { - var prev; - var hasPrev = false; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var p = prev; - prev = value; - hasPrev && subscriber.next([p, value]); - hasPrev = true; - })); - }); -} -exports.pairwise = pairwise; -//# sourceMappingURL=pairwise.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js.map deleted file mode 100644 index a4182426c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pairwise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pairwise.js","sourceRoot":"","sources":["../../../../src/internal/operators/pairwise.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AA6ChE,SAAgB,QAAQ;IACtB,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,IAAO,CAAC;QACZ,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,IAAM,CAAC,GAAG,IAAI,CAAC;YACf,IAAI,GAAG,KAAK,CAAC;YACb,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;YACvC,OAAO,GAAG,IAAI,CAAC;QACjB,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAbD,4BAaC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/partition.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/partition.js deleted file mode 100755 index fbfee815d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/partition.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.partition = void 0; -var not_1 = require("../util/not"); -var filter_1 = require("./filter"); -function partition(predicate, thisArg) { - return function (source) { - return [filter_1.filter(predicate, thisArg)(source), filter_1.filter(not_1.not(predicate, thisArg))(source)]; - }; -} -exports.partition = partition; -//# sourceMappingURL=partition.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/partition.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/partition.js.map deleted file mode 100644 index 7735a9f23..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/partition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"partition.js","sourceRoot":"","sources":["../../../../src/internal/operators/partition.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAClC,mCAAkC;AAuDlC,SAAgB,SAAS,CACvB,SAA+C,EAC/C,OAAa;IAEb,OAAO,UAAC,MAAqB;QAC3B,OAAA,CAAC,eAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,eAAM,CAAC,SAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAmC;IAA/G,CAA+G,CAAC;AACpH,CAAC;AAND,8BAMC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pluck.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pluck.js deleted file mode 100755 index a3170c53f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pluck.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pluck = void 0; -var map_1 = require("./map"); -function pluck() { - var properties = []; - for (var _i = 0; _i < arguments.length; _i++) { - properties[_i] = arguments[_i]; - } - var length = properties.length; - if (length === 0) { - throw new Error('list of properties cannot be empty.'); - } - return map_1.map(function (x) { - var currentProp = x; - for (var i = 0; i < length; i++) { - var p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]]; - if (typeof p !== 'undefined') { - currentProp = p; - } - else { - return undefined; - } - } - return currentProp; - }); -} -exports.pluck = pluck; -//# sourceMappingURL=pluck.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pluck.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pluck.js.map deleted file mode 100644 index e7b31490c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/pluck.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pluck.js","sourceRoot":"","sources":["../../../../src/internal/operators/pluck.ts"],"names":[],"mappings":";;;AAAA,6BAA4B;AAwF5B,SAAgB,KAAK;IAAO,oBAA8C;SAA9C,UAA8C,EAA9C,qBAA8C,EAA9C,IAA8C;QAA9C,+BAA8C;;IACxE,IAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACjC,IAAI,MAAM,KAAK,CAAC,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;KACxD;IACD,OAAO,SAAG,CAAC,UAAC,CAAC;QACX,IAAI,WAAW,GAAQ,CAAC,CAAC;QACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;YAC/B,IAAM,CAAC,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACvC,IAAI,OAAO,CAAC,KAAK,WAAW,EAAE;gBAC5B,WAAW,GAAG,CAAC,CAAC;aACjB;iBAAM;gBACL,OAAO,SAAS,CAAC;aAClB;SACF;QACD,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC;AAjBD,sBAiBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publish.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publish.js deleted file mode 100755 index 1fec3b492..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publish.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.publish = void 0; -var Subject_1 = require("../Subject"); -var multicast_1 = require("./multicast"); -var connect_1 = require("./connect"); -function publish(selector) { - return selector ? function (source) { return connect_1.connect(selector)(source); } : function (source) { return multicast_1.multicast(new Subject_1.Subject())(source); }; -} -exports.publish = publish; -//# sourceMappingURL=publish.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publish.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publish.js.map deleted file mode 100644 index 9b1b245a8..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publish.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../src/internal/operators/publish.ts"],"names":[],"mappings":";;;AACA,sCAAqC;AACrC,yCAAwC;AAGxC,qCAAoC;AAqFpC,SAAgB,OAAO,CAAO,QAAiC;IAC7D,OAAO,QAAQ,CAAC,CAAC,CAAC,UAAC,MAAM,IAAK,OAAA,iBAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAzB,CAAyB,CAAC,CAAC,CAAC,UAAC,MAAM,IAAK,OAAA,qBAAS,CAAC,IAAI,iBAAO,EAAK,CAAC,CAAC,MAAM,CAAC,EAAnC,CAAmC,CAAC;AAC5G,CAAC;AAFD,0BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js deleted file mode 100755 index 388709478..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.publishBehavior = void 0; -var BehaviorSubject_1 = require("../BehaviorSubject"); -var ConnectableObservable_1 = require("../observable/ConnectableObservable"); -function publishBehavior(initialValue) { - return function (source) { - var subject = new BehaviorSubject_1.BehaviorSubject(initialValue); - return new ConnectableObservable_1.ConnectableObservable(source, function () { return subject; }); - }; -} -exports.publishBehavior = publishBehavior; -//# sourceMappingURL=publishBehavior.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js.map deleted file mode 100644 index ed76b7ca9..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishBehavior.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishBehavior.js","sourceRoot":"","sources":["../../../../src/internal/operators/publishBehavior.ts"],"names":[],"mappings":";;;AACA,sDAAqD;AACrD,6EAA4E;AAiB5E,SAAgB,eAAe,CAAI,YAAe;IAEhD,OAAO,UAAC,MAAM;QACZ,IAAM,OAAO,GAAG,IAAI,iCAAe,CAAI,YAAY,CAAC,CAAC;QACrD,OAAO,IAAI,6CAAqB,CAAC,MAAM,EAAE,cAAM,OAAA,OAAO,EAAP,CAAO,CAAC,CAAC;IAC1D,CAAC,CAAC;AACJ,CAAC;AAND,0CAMC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishLast.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishLast.js deleted file mode 100755 index fb94783f7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishLast.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.publishLast = void 0; -var AsyncSubject_1 = require("../AsyncSubject"); -var ConnectableObservable_1 = require("../observable/ConnectableObservable"); -function publishLast() { - return function (source) { - var subject = new AsyncSubject_1.AsyncSubject(); - return new ConnectableObservable_1.ConnectableObservable(source, function () { return subject; }); - }; -} -exports.publishLast = publishLast; -//# sourceMappingURL=publishLast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishLast.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishLast.js.map deleted file mode 100644 index e84e10de1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishLast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishLast.js","sourceRoot":"","sources":["../../../../src/internal/operators/publishLast.ts"],"names":[],"mappings":";;;AACA,gDAA+C;AAC/C,6EAA4E;AAmE5E,SAAgB,WAAW;IAEzB,OAAO,UAAC,MAAM;QACZ,IAAM,OAAO,GAAG,IAAI,2BAAY,EAAK,CAAC;QACtC,OAAO,IAAI,6CAAqB,CAAC,MAAM,EAAE,cAAM,OAAA,OAAO,EAAP,CAAO,CAAC,CAAC;IAC1D,CAAC,CAAC;AACJ,CAAC;AAND,kCAMC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js deleted file mode 100755 index 15061cb5c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.publishReplay = void 0; -var ReplaySubject_1 = require("../ReplaySubject"); -var multicast_1 = require("./multicast"); -var isFunction_1 = require("../util/isFunction"); -function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) { - if (selectorOrScheduler && !isFunction_1.isFunction(selectorOrScheduler)) { - timestampProvider = selectorOrScheduler; - } - var selector = isFunction_1.isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined; - return function (source) { return multicast_1.multicast(new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source); }; -} -exports.publishReplay = publishReplay; -//# sourceMappingURL=publishReplay.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js.map deleted file mode 100644 index ae0e0aef4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/publishReplay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishReplay.js","sourceRoot":"","sources":["../../../../src/internal/operators/publishReplay.ts"],"names":[],"mappings":";;;AACA,kDAAiD;AACjD,yCAAwC;AAExC,iDAAgD;AA8EhD,SAAgB,aAAa,CAC3B,UAAmB,EACnB,UAAmB,EACnB,mBAAgE,EAChE,iBAAqC;IAErC,IAAI,mBAAmB,IAAI,CAAC,uBAAU,CAAC,mBAAmB,CAAC,EAAE;QAC3D,iBAAiB,GAAG,mBAAmB,CAAC;KACzC;IACD,IAAM,QAAQ,GAAG,uBAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;IAGnF,OAAO,UAAC,MAAqB,IAAK,OAAA,qBAAS,CAAC,IAAI,6BAAa,CAAI,UAAU,EAAE,UAAU,EAAE,iBAAiB,CAAC,EAAE,QAAS,CAAC,CAAC,MAAM,CAAC,EAA7F,CAA6F,CAAC;AAClI,CAAC;AAbD,sCAaC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/race.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/race.js deleted file mode 100755 index cf4df957c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/race.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.race = void 0; -var argsOrArgArray_1 = require("../util/argsOrArgArray"); -var raceWith_1 = require("./raceWith"); -function race() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return raceWith_1.raceWith.apply(void 0, __spreadArray([], __read(argsOrArgArray_1.argsOrArgArray(args)))); -} -exports.race = race; -//# sourceMappingURL=race.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/race.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/race.js.map deleted file mode 100644 index 8d06db05e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/race.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"race.js","sourceRoot":"","sources":["../../../../src/internal/operators/race.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,yDAAwD;AACxD,uCAAsC;AAetC,SAAgB,IAAI;IAAI,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IACpC,OAAO,mBAAQ,wCAAI,+BAAc,CAAC,IAAI,CAAC,IAAE;AAC3C,CAAC;AAFD,oBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js deleted file mode 100755 index a29805db3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.raceWith = void 0; -var race_1 = require("../observable/race"); -var lift_1 = require("../util/lift"); -var identity_1 = require("../util/identity"); -function raceWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return !otherSources.length - ? identity_1.identity - : lift_1.operate(function (source, subscriber) { - race_1.raceInit(__spreadArray([source], __read(otherSources)))(subscriber); - }); -} -exports.raceWith = raceWith; -//# sourceMappingURL=raceWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js.map deleted file mode 100644 index 1bacc7d51..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"raceWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/raceWith.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA8C;AAC9C,qCAAuC;AACvC,6CAA4C;AA4B5C,SAAgB,QAAQ;IACtB,sBAA6C;SAA7C,UAA6C,EAA7C,qBAA6C,EAA7C,IAA6C;QAA7C,iCAA6C;;IAE7C,OAAO,CAAC,YAAY,CAAC,MAAM;QACzB,CAAC,CAAC,mBAAQ;QACV,CAAC,CAAC,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YACzB,eAAQ,gBAAiB,MAAM,UAAK,YAAY,GAAE,CAAC,UAAU,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;AACT,CAAC;AARD,4BAQC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/reduce.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/reduce.js deleted file mode 100755 index 147a26435..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/reduce.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.reduce = void 0; -var scanInternals_1 = require("./scanInternals"); -var lift_1 = require("../util/lift"); -function reduce(accumulator, seed) { - return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, false, true)); -} -exports.reduce = reduce; -//# sourceMappingURL=reduce.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/reduce.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/reduce.js.map deleted file mode 100644 index 1852a6b3b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/reduce.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reduce.js","sourceRoot":"","sources":["../../../../src/internal/operators/reduce.ts"],"names":[],"mappings":";;;AAAA,iDAAgD;AAEhD,qCAAuC;AAyDvC,SAAgB,MAAM,CAAO,WAAuD,EAAE,IAAU;IAC9F,OAAO,cAAO,CAAC,6BAAa,CAAC,WAAW,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AACvF,CAAC;AAFD,wBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/refCount.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/refCount.js deleted file mode 100755 index 1c86a487a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/refCount.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.refCount = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function refCount() { - return lift_1.operate(function (source, subscriber) { - var connection = null; - source._refCount++; - var refCounter = OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, undefined, function () { - if (!source || source._refCount <= 0 || 0 < --source._refCount) { - connection = null; - return; - } - var sharedConnection = source._connection; - var conn = connection; - connection = null; - if (sharedConnection && (!conn || sharedConnection === conn)) { - sharedConnection.unsubscribe(); - } - subscriber.unsubscribe(); - }); - source.subscribe(refCounter); - if (!refCounter.closed) { - connection = source.connect(); - } - }); -} -exports.refCount = refCount; -//# sourceMappingURL=refCount.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/refCount.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/refCount.js.map deleted file mode 100644 index fa771cc21..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/refCount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"refCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/refCount.ts"],"names":[],"mappings":";;;AAGA,qCAAuC;AACvC,2DAAgE;AA4DhE,SAAgB,QAAQ;IACtB,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,UAAU,GAAwB,IAAI,CAAC;QAE1C,MAAc,CAAC,SAAS,EAAE,CAAC;QAE5B,IAAM,UAAU,GAAG,6CAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE;YACvF,IAAI,CAAC,MAAM,IAAK,MAAc,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAG,MAAc,CAAC,SAAS,EAAE;gBAChF,UAAU,GAAG,IAAI,CAAC;gBAClB,OAAO;aACR;YA2BD,IAAM,gBAAgB,GAAI,MAAc,CAAC,WAAW,CAAC;YACrD,IAAM,IAAI,GAAG,UAAU,CAAC;YACxB,UAAU,GAAG,IAAI,CAAC;YAElB,IAAI,gBAAgB,IAAI,CAAC,CAAC,IAAI,IAAI,gBAAgB,KAAK,IAAI,CAAC,EAAE;gBAC5D,gBAAgB,CAAC,WAAW,EAAE,CAAC;aAChC;YAED,UAAU,CAAC,WAAW,EAAE,CAAC;QAC3B,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAE7B,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;YACtB,UAAU,GAAI,MAAmC,CAAC,OAAO,EAAE,CAAC;SAC7D;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAtDD,4BAsDC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeat.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeat.js deleted file mode 100755 index 80e9bf33c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeat.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.repeat = void 0; -var empty_1 = require("../observable/empty"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var innerFrom_1 = require("../observable/innerFrom"); -var timer_1 = require("../observable/timer"); -function repeat(countOrConfig) { - var _a; - var count = Infinity; - var delay; - if (countOrConfig != null) { - if (typeof countOrConfig === 'object') { - (_a = countOrConfig.count, count = _a === void 0 ? Infinity : _a, delay = countOrConfig.delay); - } - else { - count = countOrConfig; - } - } - return count <= 0 - ? function () { return empty_1.EMPTY; } - : lift_1.operate(function (source, subscriber) { - var soFar = 0; - var sourceSub; - var resubscribe = function () { - sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe(); - sourceSub = null; - if (delay != null) { - var notifier = typeof delay === 'number' ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(soFar)); - var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { - notifierSubscriber_1.unsubscribe(); - subscribeToSource(); - }); - notifier.subscribe(notifierSubscriber_1); - } - else { - subscribeToSource(); - } - }; - var subscribeToSource = function () { - var syncUnsub = false; - sourceSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function () { - if (++soFar < count) { - if (sourceSub) { - resubscribe(); - } - else { - syncUnsub = true; - } - } - else { - subscriber.complete(); - } - })); - if (syncUnsub) { - resubscribe(); - } - }; - subscribeToSource(); - }); -} -exports.repeat = repeat; -//# sourceMappingURL=repeat.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeat.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeat.js.map deleted file mode 100644 index 2a290020e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"repeat.js","sourceRoot":"","sources":["../../../../src/internal/operators/repeat.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAC5C,qCAAuC;AAEvC,2DAAgE;AAChE,qDAAoD;AACpD,6CAA4C;AA6G5C,SAAgB,MAAM,CAAI,aAAqC;;IAC7D,IAAI,KAAK,GAAG,QAAQ,CAAC;IACrB,IAAI,KAA4B,CAAC;IAEjC,IAAI,aAAa,IAAI,IAAI,EAAE;QACzB,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;YACrC,CAAG,KAA4B,aAAa,MAAzB,EAAhB,KAAK,mBAAG,QA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H,CAAC,CAAC,CACH,CAAC;gBAEF,IAAI,SAAS,EAAE;oBACb,WAAW,EAAE,CAAC;iBACf;YACH,CAAC,CAAC;YAEF,iBAAiB,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;AACT,CAAC;AAxDD,wBAwDC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js deleted file mode 100755 index e3ca262d3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.repeatWhen = void 0; -var innerFrom_1 = require("../observable/innerFrom"); -var Subject_1 = require("../Subject"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function repeatWhen(notifier) { - return lift_1.operate(function (source, subscriber) { - var innerSub; - var syncResub = false; - var completions$; - var isNotifierComplete = false; - var isMainComplete = false; - var checkComplete = function () { return isMainComplete && isNotifierComplete && (subscriber.complete(), true); }; - var getCompletionSubject = function () { - if (!completions$) { - completions$ = new Subject_1.Subject(); - innerFrom_1.innerFrom(notifier(completions$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { - if (innerSub) { - subscribeForRepeatWhen(); - } - else { - syncResub = true; - } - }, function () { - isNotifierComplete = true; - checkComplete(); - })); - } - return completions$; - }; - var subscribeForRepeatWhen = function () { - isMainComplete = false; - innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, function () { - isMainComplete = true; - !checkComplete() && getCompletionSubject().next(); - })); - if (syncResub) { - innerSub.unsubscribe(); - innerSub = null; - syncResub = false; - subscribeForRepeatWhen(); - } - }; - subscribeForRepeatWhen(); - }); -} -exports.repeatWhen = repeatWhen; -//# sourceMappingURL=repeatWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js.map deleted file mode 100644 index 8202430aa..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/repeatWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"repeatWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/repeatWhen.ts"],"names":[],"mappings":";;;AACA,qDAAoD;AACpD,sCAAqC;AAIrC,qCAAuC;AACvC,2DAAgE;AAoChE,SAAgB,UAAU,CAAI,QAAmE;IAC/F,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAA6B,CAAC;QAClC,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,YAA2B,CAAC;QAChC,IAAI,kBAAkB,GAAG,KAAK,CAAC;QAC/B,IAAI,cAAc,GAAG,KAAK,CAAC;QAK3B,IAAM,aAAa,GAAG,cAAM,OAAA,cAAc,IAAI,kBAAkB,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,EAArE,CAAqE,CAAC;QAKlG,IAAM,oBAAoB,GAAG;YAC3B,IAAI,CAAC,YAAY,EAAE;gBACjB,YAAY,GAAG,IAAI,iBAAO,EAAE,CAAC;gBAI7B,qBAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CACzC,6CAAwB,CACtB,UAAU,EACV;oBACE,IAAI,QAAQ,EAAE;wBACZ,sBAAsB,EAAE,CAAC;qBAC1B;yBAAM;wBAKL,SAAS,GAAG,IAAI,CAAC;qBAClB;gBACH,CAAC,EACD;oBACE,kBAAkB,GAAG,IAAI,CAAC;oBAC1B,aAAa,EAAE,CAAC;gBAClB,CAAC,CACF,CACF,CAAC;aACH;YACD,OAAO,YAAY,CAAC;QACtB,CAAC,CAAC;QAEF,IAAM,sBAAsB,GAAG;YAC7B,cAAc,GAAG,KAAK,CAAC;YAEvB,QAAQ,GAAG,MAAM,CAAC,SAAS,CACzB,6CAAwB,CAAC,UAAU,EAAE,SAAS,EAAE;gBAC9C,cAAc,GAAG,IAAI,CAAC;gBAMtB,CAAC,aAAa,EAAE,IAAI,oBAAoB,EAAE,CAAC,IAAI,EAAE,CAAC;YACpD,CAAC,CAAC,CACH,CAAC;YAEF,IAAI,SAAS,EAAE;gBAKb,QAAQ,CAAC,WAAW,EAAE,CAAC;gBAIvB,QAAQ,GAAG,IAAI,CAAC;gBAEhB,SAAS,GAAG,KAAK,CAAC;gBAElB,sBAAsB,EAAE,CAAC;aAC1B;QACH,CAAC,CAAC;QAGF,sBAAsB,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC;AAjFD,gCAiFC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retry.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retry.js deleted file mode 100755 index f850078d2..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retry.js +++ /dev/null @@ -1,73 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.retry = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var identity_1 = require("../util/identity"); -var timer_1 = require("../observable/timer"); -var innerFrom_1 = require("../observable/innerFrom"); -function retry(configOrCount) { - if (configOrCount === void 0) { configOrCount = Infinity; } - var config; - if (configOrCount && typeof configOrCount === 'object') { - config = configOrCount; - } - else { - config = { - count: configOrCount, - }; - } - var _a = config.count, count = _a === void 0 ? Infinity : _a, delay = config.delay, _b = config.resetOnSuccess, resetOnSuccess = _b === void 0 ? false : _b; - return count <= 0 - ? identity_1.identity - : lift_1.operate(function (source, subscriber) { - var soFar = 0; - var innerSub; - var subscribeForRetry = function () { - var syncUnsub = false; - innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - if (resetOnSuccess) { - soFar = 0; - } - subscriber.next(value); - }, undefined, function (err) { - if (soFar++ < count) { - var resub_1 = function () { - if (innerSub) { - innerSub.unsubscribe(); - innerSub = null; - subscribeForRetry(); - } - else { - syncUnsub = true; - } - }; - if (delay != null) { - var notifier = typeof delay === 'number' ? timer_1.timer(delay) : innerFrom_1.innerFrom(delay(err, soFar)); - var notifierSubscriber_1 = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { - notifierSubscriber_1.unsubscribe(); - resub_1(); - }, function () { - subscriber.complete(); - }); - notifier.subscribe(notifierSubscriber_1); - } - else { - resub_1(); - } - } - else { - subscriber.error(err); - } - })); - if (syncUnsub) { - innerSub.unsubscribe(); - innerSub = null; - subscribeForRetry(); - } - }; - subscribeForRetry(); - }); -} -exports.retry = retry; -//# sourceMappingURL=retry.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retry.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retry.js.map deleted file mode 100644 index 5397e2ce3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"retry.js","sourceRoot":"","sources":["../../../../src/internal/operators/retry.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AAEvC,2DAAgE;AAChE,6CAA4C;AAC5C,6CAA4C;AAC5C,qDAAoD;AA4EpD,SAAgB,KAAK,CAAI,aAA8C;IAA9C,8BAAA,EAAA,wBAA8C;IACrE,IAAI,MAAmB,CAAC;IACxB,IAAI,aAAa,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;QACtD,MAAM,GAAG,aAAa,CAAC;KACxB;SAAM;QACL,MAAM,GAAG;YACP,KAAK,EAAE,aAAuB;SAC/B,CAAC;KACH;IACO,IAAA,KAAoE,MAAM,MAA1D,EAAhB,KAAK,mBAAG,QAAQ,KAAA,EAAE,KAAK,GAA6C,MAAM,MAAnD,EAAE,KAA2C,MAAM,eAAX,EAAtB,cAAc,mBAAG,KAAK,KAAA,CA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AC;yBACT;qBACF;yBAAM;wBAGL,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;qBACvB;gBACH,CAAC,CACF,CACF,CAAC;gBACF,IAAI,SAAS,EAAE;oBACb,QAAQ,CAAC,WAAW,EAAE,CAAC;oBACvB,QAAQ,GAAG,IAAI,CAAC;oBAChB,iBAAiB,EAAE,CAAC;iBACrB;YACH,CAAC,CAAC;YACF,iBAAiB,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;AACT,CAAC;AApFD,sBAoFC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js deleted file mode 100755 index d2c5095d1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.retryWhen = void 0; -var innerFrom_1 = require("../observable/innerFrom"); -var Subject_1 = require("../Subject"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function retryWhen(notifier) { - return lift_1.operate(function (source, subscriber) { - var innerSub; - var syncResub = false; - var errors$; - var subscribeForRetryWhen = function () { - innerSub = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, undefined, undefined, function (err) { - if (!errors$) { - errors$ = new Subject_1.Subject(); - innerFrom_1.innerFrom(notifier(errors$)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { - return innerSub ? subscribeForRetryWhen() : (syncResub = true); - })); - } - if (errors$) { - errors$.next(err); - } - })); - if (syncResub) { - innerSub.unsubscribe(); - innerSub = null; - syncResub = false; - subscribeForRetryWhen(); - } - }; - subscribeForRetryWhen(); - }); -} -exports.retryWhen = retryWhen; -//# sourceMappingURL=retryWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js.map deleted file mode 100644 index e93a7f2f0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/retryWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"retryWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/retryWhen.ts"],"names":[],"mappings":";;;AACA,qDAAoD;AACpD,sCAAqC;AAIrC,qCAAuC;AACvC,2DAAgE;AA2DhE,SAAgB,SAAS,CAAI,QAA2D;IACtF,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAA6B,CAAC;QAClC,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,OAAqB,CAAC;QAE1B,IAAM,qBAAqB,GAAG;YAC5B,QAAQ,GAAG,MAAM,CAAC,SAAS,CACzB,6CAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,UAAC,GAAG;gBAC7D,IAAI,CAAC,OAAO,EAAE;oBACZ,OAAO,GAAG,IAAI,iBAAO,EAAE,CAAC;oBACxB,qBAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CACpC,6CAAwB,CAAC,UAAU,EAAE;wBAMnC,OAAA,QAAQ,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;oBAAvD,CAAuD,CACxD,CACF,CAAC;iBACH;gBACD,IAAI,OAAO,EAAE;oBAEX,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;iBACnB;YACH,CAAC,CAAC,CACH,CAAC;YAEF,IAAI,SAAS,EAAE;gBAKb,QAAQ,CAAC,WAAW,EAAE,CAAC;gBACvB,QAAQ,GAAG,IAAI,CAAC;gBAEhB,SAAS,GAAG,KAAK,CAAC;gBAElB,qBAAqB,EAAE,CAAC;aACzB;QACH,CAAC,CAAC;QAGF,qBAAqB,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC;AA9CD,8BA8CC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sample.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sample.js deleted file mode 100755 index 59b6f7184..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sample.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sample = void 0; -var innerFrom_1 = require("../observable/innerFrom"); -var lift_1 = require("../util/lift"); -var noop_1 = require("../util/noop"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function sample(notifier) { - return lift_1.operate(function (source, subscriber) { - var hasValue = false; - var lastValue = null; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - lastValue = value; - })); - innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { - if (hasValue) { - hasValue = false; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - }, noop_1.noop)); - }); -} -exports.sample = sample; -//# sourceMappingURL=sample.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sample.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sample.js.map deleted file mode 100644 index 12d83a695..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sample.js","sourceRoot":"","sources":["../../../../src/internal/operators/sample.ts"],"names":[],"mappings":";;;AAAA,qDAAoD;AAEpD,qCAAuC;AACvC,qCAAoC;AACpC,2DAAgE;AA0ChE,SAAgB,MAAM,CAAI,QAA8B;IACtD,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,SAAS,GAAa,IAAI,CAAC;QAC/B,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,QAAQ,GAAG,IAAI,CAAC;YAChB,SAAS,GAAG,KAAK,CAAC;QACpB,CAAC,CAAC,CACH,CAAC;QACF,qBAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAC3B,6CAAwB,CACtB,UAAU,EACV;YACE,IAAI,QAAQ,EAAE;gBACZ,QAAQ,GAAG,KAAK,CAAC;gBACjB,IAAM,KAAK,GAAG,SAAU,CAAC;gBACzB,SAAS,GAAG,IAAI,CAAC;gBACjB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,EACD,WAAI,CACL,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAzBD,wBAyBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js deleted file mode 100755 index d01f392e6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sampleTime = void 0; -var async_1 = require("../scheduler/async"); -var sample_1 = require("./sample"); -var interval_1 = require("../observable/interval"); -function sampleTime(period, scheduler) { - if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } - return sample_1.sample(interval_1.interval(period, scheduler)); -} -exports.sampleTime = sampleTime; -//# sourceMappingURL=sampleTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js.map deleted file mode 100644 index 4d479679d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sampleTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sampleTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/sampleTime.ts"],"names":[],"mappings":";;;AAAA,4CAAoD;AAEpD,mCAAkC;AAClC,mDAAkD;AA6ClD,SAAgB,UAAU,CAAI,MAAc,EAAE,SAAyC;IAAzC,0BAAA,EAAA,YAA2B,sBAAc;IACrF,OAAO,eAAM,CAAC,mBAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;AAC7C,CAAC;AAFD,gCAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scan.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scan.js deleted file mode 100755 index eb8d1b375..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scan.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scan = void 0; -var lift_1 = require("../util/lift"); -var scanInternals_1 = require("./scanInternals"); -function scan(accumulator, seed) { - return lift_1.operate(scanInternals_1.scanInternals(accumulator, seed, arguments.length >= 2, true)); -} -exports.scan = scan; -//# sourceMappingURL=scan.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scan.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scan.js.map deleted file mode 100644 index f78aef448..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scan.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../../src/internal/operators/scan.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,iDAAgD;AAqFhD,SAAgB,IAAI,CAAU,WAA2D,EAAE,IAAQ;IAMjG,OAAO,cAAO,CAAC,6BAAa,CAAC,WAAW,EAAE,IAAS,EAAE,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AACrF,CAAC;AAPD,oBAOC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js deleted file mode 100755 index 36fd8b2ed..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scanInternals = void 0; -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) { - return function (source, subscriber) { - var hasState = hasSeed; - var state = seed; - var index = 0; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var i = index++; - state = hasState - ? - accumulator(state, value, i) - : - ((hasState = true), value); - emitOnNext && subscriber.next(state); - }, emitBeforeComplete && - (function () { - hasState && subscriber.next(state); - subscriber.complete(); - }))); - }; -} -exports.scanInternals = scanInternals; -//# sourceMappingURL=scanInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js.map deleted file mode 100644 index d3bfecde3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/scanInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scanInternals.js","sourceRoot":"","sources":["../../../../src/internal/operators/scanInternals.ts"],"names":[],"mappings":";;;AAEA,2DAAgE;AAWhE,SAAgB,aAAa,CAC3B,WAA2D,EAC3D,IAAO,EACP,OAAgB,EAChB,UAAmB,EACnB,kBAAqC;IAErC,OAAO,UAAC,MAAqB,EAAE,UAA2B;QAIxD,IAAI,QAAQ,GAAG,OAAO,CAAC;QAIvB,IAAI,KAAK,GAAQ,IAAI,CAAC;QAEtB,IAAI,KAAK,GAAG,CAAC,CAAC;QAGd,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YAEJ,IAAM,CAAC,GAAG,KAAK,EAAE,CAAC;YAElB,KAAK,GAAG,QAAQ;gBACd,CAAC;oBACC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;gBAC9B,CAAC;oBAGC,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;YAG/B,UAAU,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC,EAGD,kBAAkB;YAChB,CAAC;gBACC,QAAQ,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACnC,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,CAAC,CACL,CACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAhDD,sCAgDC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js deleted file mode 100755 index 9416b3a38..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sequenceEqual = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var innerFrom_1 = require("../observable/innerFrom"); -function sequenceEqual(compareTo, comparator) { - if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } - return lift_1.operate(function (source, subscriber) { - var aState = createState(); - var bState = createState(); - var emit = function (isEqual) { - subscriber.next(isEqual); - subscriber.complete(); - }; - var createSubscriber = function (selfState, otherState) { - var sequenceEqualSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (a) { - var buffer = otherState.buffer, complete = otherState.complete; - if (buffer.length === 0) { - complete ? emit(false) : selfState.buffer.push(a); - } - else { - !comparator(a, buffer.shift()) && emit(false); - } - }, function () { - selfState.complete = true; - var complete = otherState.complete, buffer = otherState.buffer; - complete && emit(buffer.length === 0); - sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe(); - }); - return sequenceEqualSubscriber; - }; - source.subscribe(createSubscriber(aState, bState)); - innerFrom_1.innerFrom(compareTo).subscribe(createSubscriber(bState, aState)); - }); -} -exports.sequenceEqual = sequenceEqual; -function createState() { - return { - buffer: [], - complete: false, - }; -} -//# sourceMappingURL=sequenceEqual.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js.map deleted file mode 100644 index 19faf2727..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/sequenceEqual.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sequenceEqual.js","sourceRoot":"","sources":["../../../../src/internal/operators/sequenceEqual.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AAChE,qDAAoD;AA2DpD,SAAgB,aAAa,CAC3B,SAA6B,EAC7B,UAAuD;IAAvD,2BAAA,EAAA,uBAAuC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,KAAK,CAAC,EAAP,CAAO;IAEvD,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAM,MAAM,GAAG,WAAW,EAAK,CAAC;QAEhC,IAAM,MAAM,GAAG,WAAW,EAAK,CAAC;QAGhC,IAAM,IAAI,GAAG,UAAC,OAAgB;YAC5B,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACzB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CAAC;QAOF,IAAM,gBAAgB,GAAG,UAAC,SAA2B,EAAE,UAA4B;YACjF,IAAM,uBAAuB,GAAG,6CAAwB,CACtD,UAAU,EACV,UAAC,CAAI;gBACK,IAAA,MAAM,GAAe,UAAU,OAAzB,EAAE,QAAQ,GAAK,UAAU,SAAf,CAAgB;gBACxC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;oBAOvB,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;iBACnD;qBAAM;oBAIL,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,EAAG,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;iBAChD;YACH,CAAC,EACD;gBAEE,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC;gBAClB,IAAA,QAAQ,GAAa,UAAU,SAAvB,EAAE,MAAM,GAAK,UAAU,OAAf,CAAgB;gBAKxC,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;gBAEtC,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,WAAW,EAAE,CAAC;YACzC,CAAC,CACF,CAAC;YAEF,OAAO,uBAAuB,CAAC;QACjC,CAAC,CAAC;QAGF,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;QACnD,qBAAS,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC;AA9DD,sCA8DC;AAgBD,SAAS,WAAW;IAClB,OAAO;QACL,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,KAAK;KAChB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/share.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/share.js deleted file mode 100755 index 71d7fda06..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/share.js +++ /dev/null @@ -1,109 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.share = void 0; -var innerFrom_1 = require("../observable/innerFrom"); -var Subject_1 = require("../Subject"); -var Subscriber_1 = require("../Subscriber"); -var lift_1 = require("../util/lift"); -function share(options) { - if (options === void 0) { options = {}; } - var _a = options.connector, connector = _a === void 0 ? function () { return new Subject_1.Subject(); } : _a, _b = options.resetOnError, resetOnError = _b === void 0 ? true : _b, _c = options.resetOnComplete, resetOnComplete = _c === void 0 ? true : _c, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d; - return function (wrapperSource) { - var connection; - var resetConnection; - var subject; - var refCount = 0; - var hasCompleted = false; - var hasErrored = false; - var cancelReset = function () { - resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe(); - resetConnection = undefined; - }; - var reset = function () { - cancelReset(); - connection = subject = undefined; - hasCompleted = hasErrored = false; - }; - var resetAndUnsubscribe = function () { - var conn = connection; - reset(); - conn === null || conn === void 0 ? void 0 : conn.unsubscribe(); - }; - return lift_1.operate(function (source, subscriber) { - refCount++; - if (!hasErrored && !hasCompleted) { - cancelReset(); - } - var dest = (subject = subject !== null && subject !== void 0 ? subject : connector()); - subscriber.add(function () { - refCount--; - if (refCount === 0 && !hasErrored && !hasCompleted) { - resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero); - } - }); - dest.subscribe(subscriber); - if (!connection && - refCount > 0) { - connection = new Subscriber_1.SafeSubscriber({ - next: function (value) { return dest.next(value); }, - error: function (err) { - hasErrored = true; - cancelReset(); - resetConnection = handleReset(reset, resetOnError, err); - dest.error(err); - }, - complete: function () { - hasCompleted = true; - cancelReset(); - resetConnection = handleReset(reset, resetOnComplete); - dest.complete(); - }, - }); - innerFrom_1.innerFrom(source).subscribe(connection); - } - })(wrapperSource); - }; -} -exports.share = share; -function handleReset(reset, on) { - var args = []; - for (var _i = 2; _i < arguments.length; _i++) { - args[_i - 2] = arguments[_i]; - } - if (on === true) { - reset(); - return; - } - if (on === false) { - return; - } - var onSubscriber = new Subscriber_1.SafeSubscriber({ - next: function () { - onSubscriber.unsubscribe(); - reset(); - }, - }); - return innerFrom_1.innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber); -} -//# sourceMappingURL=share.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/share.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/share.js.map deleted file mode 100644 index 768a9b0c5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/share.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"share.js","sourceRoot":"","sources":["../../../../src/internal/operators/share.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAoD;AACpD,sCAAqC;AACrC,4CAA+C;AAG/C,qCAAuC;AAwIvC,SAAgB,KAAK,CAAI,OAA4B;IAA5B,wBAAA,EAAA,YAA4B;IAC3C,IAAA,KAAgH,OAAO,UAArF,EAAlC,SAAS,mBAAG,cAAM,OAAA,IAAI,iBAAO,EAAK,EAAhB,CAAgB,KAAA,EAAE,KAA4E,OAAO,aAAhE,EAAnB,YAAY,mBAAG,IAAI,KAAA,EAAE,KAAuD,OAAO,gBAAxC,EAAtB,eAAe,mBAAG,IAAI,KAAA,EAAE,KAA+B,OAAO,oBAAZ,EAA1B,mBAAmB,mBAAG,IAAI,KAAA,CAAa;IAUhI,OAAO,UAAC,aAAa;QACnB,IAAI,UAAyC,CAAC;QAC9C,IAAI,eAAyC,CAAC;QAC9C,IAAI,OAAmC,CAAC;QACxC,IAAI,QAAQ,G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C,KAAK,CAAC,EAAhB,CAAgB;oBACjC,KAAK,EAAE,UAAC,GAAG;wBACT,UAAU,GAAG,IAAI,CAAC;wBAClB,WAAW,EAAE,CAAC;wBACd,eAAe,GAAG,WAAW,CAAC,KAAK,EAAE,YAAY,EAAE,GAAG,CAAC,CAAC;wBACxD,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBAClB,CAAC;oBACD,QAAQ,EAAE;wBACR,YAAY,GAAG,IAAI,CAAC;wBACpB,WAAW,EAAE,CAAC;wBACd,eAAe,GAAG,WAAW,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;wBACtD,IAAI,CAAC,QAAQ,EAAE,CAAC;oBAClB,CAAC;iBACF,CAAC,CAAC;gBACH,qBAAS,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;aACzC;QACH,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;IACpB,CAAC,CAAC;AACJ,CAAC;AArGD,sBAqGC;AAED,SAAS,WAAW,CAClB,KAAiB,EACjB,EAAoD;IACpD,cAAU;SAAV,UAAU,EAAV,qBAAU,EAAV,IAAU;QAAV,6BAAU;;IAEV,IAAI,EAAE,KAAK,IAAI,EAAE;QACf,KAAK,EAAE,CAAC;QACR,OAAO;KACR;IAED,IAAI,EAAE,KAAK,KAAK,EAAE;QAChB,OAAO;KACR;IAED,IAAM,YAAY,GAAG,IAAI,2BAAc,CAAC;QACtC,IAAI,EAAE;YACJ,YAAY,CAAC,WAAW,EAAE,CAAC;YAC3B,KAAK,EAAE,CAAC;QACV,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,qBAAS,CAAC,EAAE,wCAAI,IAAI,IAAE,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;AACxD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js deleted file mode 100755 index 7fa74a2c7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.shareReplay = void 0; -var ReplaySubject_1 = require("../ReplaySubject"); -var share_1 = require("./share"); -function shareReplay(configOrBufferSize, windowTime, scheduler) { - var _a, _b, _c; - var bufferSize; - var refCount = false; - if (configOrBufferSize && typeof configOrBufferSize === 'object') { - (_a = configOrBufferSize.bufferSize, bufferSize = _a === void 0 ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler); - } - else { - bufferSize = (configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity); - } - return share_1.share({ - connector: function () { return new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler); }, - resetOnError: true, - resetOnComplete: false, - resetOnRefCountZero: refCount, - }); -} -exports.shareReplay = shareReplay; -//# sourceMappingURL=shareReplay.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js.map deleted file mode 100644 index e94278fee..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/shareReplay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shareReplay.js","sourceRoot":"","sources":["../../../../src/internal/operators/shareReplay.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAEjD,iCAAgC;AAwJhC,SAAgB,WAAW,CACzB,kBAA+C,EAC/C,UAAmB,EACnB,SAAyB;;IAEzB,IAAI,UAAkB,CAAC;IACvB,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,kBAAkB,IAAI,OAAO,kBAAkB,KAAK,QAAQ,EAAE;QAChE,CAAG,KAA8E,kBAAkB,WAA3E,EAArB,UAAU,mBAAG,QAAQ,KAAA,EAAE,KAAuD,kBAAkB,WAApD,EAArB,UAAU,mBAAG,QAAQ,KAAA,EAAE,KAAgC,kBAAkB,SAAlC,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAAE,SAAS,GAAK,kBAAkB,UAAvB,CAAwB,CAAC;KACtG;SAAM;QACL,UAAU,GAAG,CAAC,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,QAAQ,CAAW,CAAC;KACzD;IACD,OAAO,aAAK,CAAI;QACd,SAAS,EAAE,cAAM,OAAA,IAAI,6BAAa,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,EAApD,CAAoD;QACrE,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,mBAAmB,EAAE,QAAQ;KAC9B,CAAC,CAAC;AACL,CAAC;AAlBD,kCAkBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/single.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/single.js deleted file mode 100755 index f56f2c05c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/single.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.single = void 0; -var EmptyError_1 = require("../util/EmptyError"); -var SequenceError_1 = require("../util/SequenceError"); -var NotFoundError_1 = require("../util/NotFoundError"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function single(predicate) { - return lift_1.operate(function (source, subscriber) { - var hasValue = false; - var singleValue; - var seenValue = false; - var index = 0; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - seenValue = true; - if (!predicate || predicate(value, index++, source)) { - hasValue && subscriber.error(new SequenceError_1.SequenceError('Too many matching values')); - hasValue = true; - singleValue = value; - } - }, function () { - if (hasValue) { - subscriber.next(singleValue); - subscriber.complete(); - } - else { - subscriber.error(seenValue ? new NotFoundError_1.NotFoundError('No matching values') : new EmptyError_1.EmptyError()); - } - })); - }); -} -exports.single = single; -//# sourceMappingURL=single.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/single.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/single.js.map deleted file mode 100644 index c9a459968..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/single.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"single.js","sourceRoot":"","sources":["../../../../src/internal/operators/single.ts"],"names":[],"mappings":";;;AACA,iDAAgD;AAGhD,uDAAsD;AACtD,uDAAsD;AACtD,qCAAuC;AACvC,2DAAgE;AAiFhE,SAAgB,MAAM,CAAI,SAAuE;IAC/F,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,WAAc,CAAC;QACnB,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,SAAS,GAAG,IAAI,CAAC;YACjB,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,EAAE;gBACnD,QAAQ,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,6BAAa,CAAC,0BAA0B,CAAC,CAAC,CAAC;gBAC5E,QAAQ,GAAG,IAAI,CAAC;gBAChB,WAAW,GAAG,KAAK,CAAC;aACrB;QACH,CAAC,EACD;YACE,IAAI,QAAQ,EAAE;gBACZ,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;gBAC7B,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;iBAAM;gBACL,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,6BAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,IAAI,uBAAU,EAAE,CAAC,CAAC;aAC1F;QACH,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA5BD,wBA4BC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skip.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skip.js deleted file mode 100755 index 0f0af1d92..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skip.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.skip = void 0; -var filter_1 = require("./filter"); -function skip(count) { - return filter_1.filter(function (_, index) { return count <= index; }); -} -exports.skip = skip; -//# sourceMappingURL=skip.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skip.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skip.js.map deleted file mode 100644 index 14739a8ca..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skip.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skip.js","sourceRoot":"","sources":["../../../../src/internal/operators/skip.ts"],"names":[],"mappings":";;;AACA,mCAAkC;AAmClC,SAAgB,IAAI,CAAI,KAAa;IACnC,OAAO,eAAM,CAAC,UAAC,CAAC,EAAE,KAAK,IAAK,OAAA,KAAK,IAAI,KAAK,EAAd,CAAc,CAAC,CAAC;AAC9C,CAAC;AAFD,oBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js deleted file mode 100755 index 66e789d41..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.skipLast = void 0; -var identity_1 = require("../util/identity"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function skipLast(skipCount) { - return skipCount <= 0 - ? - identity_1.identity - : lift_1.operate(function (source, subscriber) { - var ring = new Array(skipCount); - var seen = 0; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var valueIndex = seen++; - if (valueIndex < skipCount) { - ring[valueIndex] = value; - } - else { - var index = valueIndex % skipCount; - var oldValue = ring[index]; - ring[index] = value; - subscriber.next(oldValue); - } - })); - return function () { - ring = null; - }; - }); -} -exports.skipLast = skipLast; -//# sourceMappingURL=skipLast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js.map deleted file mode 100644 index 696e8e63d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipLast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipLast.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipLast.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAC5C,qCAAuC;AACvC,2DAAgE;AA4ChE,SAAgB,QAAQ,CAAI,SAAiB;IAC3C,OAAO,SAAS,IAAI,CAAC;QACnB,CAAC;YACC,mBAAQ;QACV,CAAC,CAAC,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YAIzB,IAAI,IAAI,GAAQ,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;YAGrC,IAAI,IAAI,GAAG,CAAC,CAAC;YACb,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;gBAKzC,IAAM,UAAU,GAAG,IAAI,EAAE,CAAC;gBAC1B,IAAI,UAAU,GAAG,SAAS,EAAE;oBAI1B,IAAI,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;iBAC1B;qBAAM;oBAIL,IAAM,KAAK,GAAG,UAAU,GAAG,SAAS,CAAC;oBAGrC,IAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC7B,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;oBAKpB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBAC3B;YACH,CAAC,CAAC,CACH,CAAC;YAEF,OAAO;gBAEL,IAAI,GAAG,IAAK,CAAC;YACf,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC;AA/CD,4BA+CC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js deleted file mode 100755 index f5d424ecc..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.skipUntil = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var innerFrom_1 = require("../observable/innerFrom"); -var noop_1 = require("../util/noop"); -function skipUntil(notifier) { - return lift_1.operate(function (source, subscriber) { - var taking = false; - var skipSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { - skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe(); - taking = true; - }, noop_1.noop); - innerFrom_1.innerFrom(notifier).subscribe(skipSubscriber); - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return taking && subscriber.next(value); })); - }); -} -exports.skipUntil = skipUntil; -//# sourceMappingURL=skipUntil.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js.map deleted file mode 100644 index 39d8ab94b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipUntil.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipUntil.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipUntil.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AAChE,qDAAoD;AACpD,qCAAoC;AA+CpC,SAAgB,SAAS,CAAI,QAA8B;IACzD,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,MAAM,GAAG,KAAK,CAAC;QAEnB,IAAM,cAAc,GAAG,6CAAwB,CAC7C,UAAU,EACV;YACE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,WAAW,EAAE,CAAC;YAC9B,MAAM,GAAG,IAAI,CAAC;QAChB,CAAC,EACD,WAAI,CACL,CAAC;QAEF,qBAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAE9C,MAAM,CAAC,SAAS,CAAC,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK,IAAK,OAAA,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAhC,CAAgC,CAAC,CAAC,CAAC;IACtG,CAAC,CAAC,CAAC;AACL,CAAC;AAjBD,8BAiBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js deleted file mode 100755 index 31c2c5f79..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.skipWhile = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function skipWhile(predicate) { - return lift_1.operate(function (source, subscriber) { - var taking = false; - var index = 0; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return (taking || (taking = !predicate(value, index++))) && subscriber.next(value); })); - }); -} -exports.skipWhile = skipWhile; -//# sourceMappingURL=skipWhile.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js.map deleted file mode 100644 index dbe7d1996..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/skipWhile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipWhile.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipWhile.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AAiDhE,SAAgB,SAAS,CAAI,SAA+C;IAC1E,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,MAAM,GAAG,KAAK,CAAC;QACnB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK,IAAK,OAAA,CAAC,MAAM,IAAI,CAAC,MAAM,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAA3E,CAA2E,CAAC,CAC7H,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AARD,8BAQC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/startWith.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/startWith.js deleted file mode 100755 index 3142a98b1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/startWith.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.startWith = void 0; -var concat_1 = require("../observable/concat"); -var args_1 = require("../util/args"); -var lift_1 = require("../util/lift"); -function startWith() { - var values = []; - for (var _i = 0; _i < arguments.length; _i++) { - values[_i] = arguments[_i]; - } - var scheduler = args_1.popScheduler(values); - return lift_1.operate(function (source, subscriber) { - (scheduler ? concat_1.concat(values, source, scheduler) : concat_1.concat(values, source)).subscribe(subscriber); - }); -} -exports.startWith = startWith; -//# sourceMappingURL=startWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/startWith.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/startWith.js.map deleted file mode 100644 index 9f28c9d1d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/startWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"startWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/startWith.ts"],"names":[],"mappings":";;;AAAA,+CAA8C;AAE9C,qCAA4C;AAC5C,qCAAuC;AAuDvC,SAAgB,SAAS;IAAO,gBAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,2BAAc;;IAC5C,IAAM,SAAS,GAAG,mBAAY,CAAC,MAAM,CAAC,CAAC;IACvC,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAIhC,CAAC,SAAS,CAAC,CAAC,CAAC,eAAM,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,eAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACjG,CAAC,CAAC,CAAC;AACL,CAAC;AARD,8BAQC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js deleted file mode 100755 index 2cd97abdc..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.subscribeOn = void 0; -var lift_1 = require("../util/lift"); -function subscribeOn(scheduler, delay) { - if (delay === void 0) { delay = 0; } - return lift_1.operate(function (source, subscriber) { - subscriber.add(scheduler.schedule(function () { return source.subscribe(subscriber); }, delay)); - }); -} -exports.subscribeOn = subscribeOn; -//# sourceMappingURL=subscribeOn.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js.map deleted file mode 100644 index 9ba9a68f4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/subscribeOn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subscribeOn.js","sourceRoot":"","sources":["../../../../src/internal/operators/subscribeOn.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AA6DvC,SAAgB,WAAW,CAAI,SAAwB,EAAE,KAAiB;IAAjB,sBAAA,EAAA,SAAiB;IACxE,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,cAAM,OAAA,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,EAA5B,CAA4B,EAAE,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,kCAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js deleted file mode 100755 index 0beb281e6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.switchAll = void 0; -var switchMap_1 = require("./switchMap"); -var identity_1 = require("../util/identity"); -function switchAll() { - return switchMap_1.switchMap(identity_1.identity); -} -exports.switchAll = switchAll; -//# sourceMappingURL=switchAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js.map deleted file mode 100644 index 8b16a7a41..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchAll.ts"],"names":[],"mappings":";;;AACA,yCAAwC;AACxC,6CAA4C;AA4D5C,SAAgB,SAAS;IACvB,OAAO,qBAAS,CAAC,mBAAQ,CAAC,CAAC;AAC7B,CAAC;AAFD,8BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js deleted file mode 100755 index 0abf43d41..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.switchMap = void 0; -var innerFrom_1 = require("../observable/innerFrom"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function switchMap(project, resultSelector) { - return lift_1.operate(function (source, subscriber) { - var innerSubscriber = null; - var index = 0; - var isComplete = false; - var checkComplete = function () { return isComplete && !innerSubscriber && subscriber.complete(); }; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe(); - var innerIndex = 0; - var outerIndex = index++; - innerFrom_1.innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (innerValue) { return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue); }, function () { - innerSubscriber = null; - checkComplete(); - }))); - }, function () { - isComplete = true; - checkComplete(); - })); - }); -} -exports.switchMap = switchMap; -//# sourceMappingURL=switchMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js.map deleted file mode 100644 index d5d78c7f7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchMap.ts"],"names":[],"mappings":";;;AAEA,qDAAoD;AACpD,qCAAuC;AACvC,2DAAgE;AAiFhE,SAAgB,SAAS,CACvB,OAAuC,EACvC,cAA6G;IAE7G,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,eAAe,GAA0C,IAAI,CAAC;QAClE,IAAI,KAAK,GAAG,CAAC,CAAC;QAEd,IAAI,UAAU,GAAG,KAAK,CAAC;QAIvB,IAAM,aAAa,GAAG,cAAM,OAAA,UAAU,IAAI,CAAC,eAAe,IAAI,UAAU,CAAC,QAAQ,EAAE,EAAvD,CAAuD,CAAC;QAEpF,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YAEJ,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,WAAW,EAAE,CAAC;YAC/B,IAAI,UAAU,GAAG,CAAC,CAAC;YACnB,IAAM,UAAU,GAAG,KAAK,EAAE,CAAC;YAE3B,qBAAS,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAC7C,CAAC,eAAe,GAAG,6CAAwB,CACzC,UAAU,EAIV,UAAC,UAAU,IAAK,OAAA,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EAA1G,CAA0G,EAC1H;gBAIE,eAAe,GAAG,IAAK,CAAC;gBACxB,aAAa,EAAE,CAAC;YAClB,CAAC,CACF,CAAC,CACH,CAAC;QACJ,CAAC,EACD;YACE,UAAU,GAAG,IAAI,CAAC;YAClB,aAAa,EAAE,CAAC;QAClB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA/CD,8BA+CC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js deleted file mode 100755 index 626fcc11b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.switchMapTo = void 0; -var switchMap_1 = require("./switchMap"); -var isFunction_1 = require("../util/isFunction"); -function switchMapTo(innerObservable, resultSelector) { - return isFunction_1.isFunction(resultSelector) ? switchMap_1.switchMap(function () { return innerObservable; }, resultSelector) : switchMap_1.switchMap(function () { return innerObservable; }); -} -exports.switchMapTo = switchMapTo; -//# sourceMappingURL=switchMapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js.map deleted file mode 100644 index fa903ae8f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchMapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchMapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchMapTo.ts"],"names":[],"mappings":";;;AAAA,yCAAwC;AAExC,iDAAgD;AAwDhD,SAAgB,WAAW,CACzB,eAAkB,EAClB,cAA6G;IAE7G,OAAO,uBAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,qBAAS,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,CAAC,CAAC;AAC1H,CAAC;AALD,kCAKC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js deleted file mode 100755 index 357c00b6f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.switchScan = void 0; -var switchMap_1 = require("./switchMap"); -var lift_1 = require("../util/lift"); -function switchScan(accumulator, seed) { - return lift_1.operate(function (source, subscriber) { - var state = seed; - switchMap_1.switchMap(function (value, index) { return accumulator(state, value, index); }, function (_, innerValue) { return ((state = innerValue), innerValue); })(source).subscribe(subscriber); - return function () { - state = null; - }; - }); -} -exports.switchScan = switchScan; -//# sourceMappingURL=switchScan.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js.map deleted file mode 100644 index 5bc192b13..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/switchScan.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchScan.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchScan.ts"],"names":[],"mappings":";;;AACA,yCAAwC;AACxC,qCAAuC;AAqBvC,SAAgB,UAAU,CACxB,WAAmD,EACnD,IAAO;IAEP,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAGhC,IAAI,KAAK,GAAG,IAAI,CAAC;QAKjB,qBAAS,CAGP,UAAC,KAAQ,EAAE,KAAK,IAAK,OAAA,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAhC,CAAgC,EAGrD,UAAC,CAAC,EAAE,UAAU,IAAK,OAAA,CAAC,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE,UAAU,CAAC,EAAlC,CAAkC,CACtD,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAEhC,OAAO;YAEL,KAAK,GAAG,IAAK,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA1BD,gCA0BC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/take.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/take.js deleted file mode 100755 index c2c9868b6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/take.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.take = void 0; -var empty_1 = require("../observable/empty"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function take(count) { - return count <= 0 - ? - function () { return empty_1.EMPTY; } - : lift_1.operate(function (source, subscriber) { - var seen = 0; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - if (++seen <= count) { - subscriber.next(value); - if (count <= seen) { - subscriber.complete(); - } - } - })); - }); -} -exports.take = take; -//# sourceMappingURL=take.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/take.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/take.js.map deleted file mode 100644 index 5a9c032a6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/take.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"take.js","sourceRoot":"","sources":["../../../../src/internal/operators/take.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAC5C,qCAAuC;AACvC,2DAAgE;AA4ChE,SAAgB,IAAI,CAAI,KAAa;IACnC,OAAO,KAAK,IAAI,CAAC;QACf,CAAC;YACC,cAAM,OAAA,aAAK,EAAL,CAAK;QACb,CAAC,CAAC,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YACzB,IAAI,IAAI,GAAG,CAAC,CAAC;YACb,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;gBAIzC,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE;oBACnB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAIvB,IAAI,KAAK,IAAI,IAAI,EAAE;wBACjB,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;iBACF;YACH,CAAC,CAAC,CACH,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC;AAvBD,oBAuBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js deleted file mode 100755 index 7b8d9d9e5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.takeLast = void 0; -var empty_1 = require("../observable/empty"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function takeLast(count) { - return count <= 0 - ? function () { return empty_1.EMPTY; } - : lift_1.operate(function (source, subscriber) { - var buffer = []; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - buffer.push(value); - count < buffer.length && buffer.shift(); - }, function () { - var e_1, _a; - try { - for (var buffer_1 = __values(buffer), buffer_1_1 = buffer_1.next(); !buffer_1_1.done; buffer_1_1 = buffer_1.next()) { - var value = buffer_1_1.value; - subscriber.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (buffer_1_1 && !buffer_1_1.done && (_a = buffer_1.return)) _a.call(buffer_1); - } - finally { if (e_1) throw e_1.error; } - } - subscriber.complete(); - }, undefined, function () { - buffer = null; - })); - }); -} -exports.takeLast = takeLast; -//# sourceMappingURL=takeLast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js.map deleted file mode 100644 index d55f5acc7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeLast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeLast.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeLast.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,6CAA4C;AAE5C,qCAAuC;AACvC,2DAAgE;AAyChE,SAAgB,QAAQ,CAAI,KAAa;IACvC,OAAO,KAAK,IAAI,CAAC;QACf,CAAC,CAAC,cAAM,OAAA,aAAK,EAAL,CAAK;QACb,CAAC,CAAC,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YAKzB,IAAI,MAAM,GAAQ,EAAE,CAAC;YACrB,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;gBAEJ,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAGnB,KAAK,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YAC1C,CAAC,EACD;;;oBAGE,KAAoB,IAAA,WAAA,SAAA,MAAM,CAAA,8BAAA,kDAAE;wBAAvB,IAAM,KAAK,mBAAA;wBACd,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;qBACxB;;;;;;;;;gBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,EAED,SAAS,EACT;gBAEE,MAAM,GAAG,IAAK,CAAC;YACjB,CAAC,CACF,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC;AApCD,4BAoCC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js deleted file mode 100755 index 0297e8e6d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.takeUntil = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var innerFrom_1 = require("../observable/innerFrom"); -var noop_1 = require("../util/noop"); -function takeUntil(notifier) { - return lift_1.operate(function (source, subscriber) { - innerFrom_1.innerFrom(notifier).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { return subscriber.complete(); }, noop_1.noop)); - !subscriber.closed && source.subscribe(subscriber); - }); -} -exports.takeUntil = takeUntil; -//# sourceMappingURL=takeUntil.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js.map deleted file mode 100644 index f278807a2..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeUntil.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeUntil.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeUntil.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AAChE,qDAAoD;AACpD,qCAAoC;AAyCpC,SAAgB,SAAS,CAAI,QAA8B;IACzD,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,qBAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,6CAAwB,CAAC,UAAU,EAAE,cAAM,OAAA,UAAU,CAAC,QAAQ,EAAE,EAArB,CAAqB,EAAE,WAAI,CAAC,CAAC,CAAC;QACvG,CAAC,UAAU,CAAC,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC;AALD,8BAKC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js deleted file mode 100755 index 10953cc7a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.takeWhile = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function takeWhile(predicate, inclusive) { - if (inclusive === void 0) { inclusive = false; } - return lift_1.operate(function (source, subscriber) { - var index = 0; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var result = predicate(value, index++); - (result || inclusive) && subscriber.next(value); - !result && subscriber.complete(); - })); - }); -} -exports.takeWhile = takeWhile; -//# sourceMappingURL=takeWhile.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js.map deleted file mode 100644 index eba122e35..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/takeWhile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeWhile.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeWhile.ts"],"names":[],"mappings":";;;AACA,qCAAuC;AACvC,2DAAgE;AAoDhE,SAAgB,SAAS,CAAI,SAA+C,EAAE,SAAiB;IAAjB,0BAAA,EAAA,iBAAiB;IAC7F,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,IAAM,MAAM,GAAG,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;YACzC,CAAC,MAAM,IAAI,SAAS,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAChD,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACnC,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAXD,8BAWC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/tap.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/tap.js deleted file mode 100755 index 585c5c2d2..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/tap.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.tap = void 0; -var isFunction_1 = require("../util/isFunction"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var identity_1 = require("../util/identity"); -function tap(observerOrNext, error, complete) { - var tapObserver = isFunction_1.isFunction(observerOrNext) || error || complete - ? - { next: observerOrNext, error: error, complete: complete } - : observerOrNext; - return tapObserver - ? lift_1.operate(function (source, subscriber) { - var _a; - (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - var isUnsub = true; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var _a; - (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value); - subscriber.next(value); - }, function () { - var _a; - isUnsub = false; - (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - subscriber.complete(); - }, function (err) { - var _a; - isUnsub = false; - (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err); - subscriber.error(err); - }, function () { - var _a, _b; - if (isUnsub) { - (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - } - (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver); - })); - }) - : - identity_1.identity; -} -exports.tap = tap; -//# sourceMappingURL=tap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/tap.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/tap.js.map deleted file mode 100644 index b9611e8b0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/tap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tap.js","sourceRoot":"","sources":["../../../../src/internal/operators/tap.ts"],"names":[],"mappings":";;;AACA,iDAAgD;AAChD,qCAAuC;AACvC,2DAAgE;AAChE,6CAA4C;AAkK5C,SAAgB,GAAG,CACjB,cAAsE,EACtE,KAAiC,EACjC,QAA8B;IAK9B,IAAM,WAAW,GACf,uBAAU,CAAC,cAAc,CAAC,IAAI,KAAK,IAAI,QAAQ;QAC7C,CAAC;YACE,EAAE,IAAI,EAAE,cAAyE,EAAE,KAAK,OAAA,EAAE,QAAQ,UAAA,EAA8B;QACnI,CAAC,CAAC,cAAc,CAAC;IAErB,OAAO,WAAW;QAChB,CAAC,CAAC,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;;YACzB,MAAA,WAAW,CAAC,SAAS,+CAArB,WAAW,CAAc,CAAC;YAC1B,IAAI,OAAO,GAAG,IAAI,CAAC;YACnB,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;;gBACJ,MAAA,WAAW,CAAC,IAAI,+CAAhB,WAAW,EAAQ,KAAK,CAAC,CAAC;gBAC1B,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzB,CAAC,EACD;;gBACE,OAAO,GAAG,KAAK,CAAC;gBAChB,MAAA,WAAW,CAAC,QAAQ,+CAApB,WAAW,CAAa,CAAC;gBACzB,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,EACD,UAAC,GAAG;;gBACF,OAAO,GAAG,KAAK,CAAC;gBAChB,MAAA,WAAW,CAAC,KAAK,+CAAjB,WAAW,EAAS,GAAG,CAAC,CAAC;gBACzB,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC,EACD;;gBACE,IAAI,OAAO,EAAE;oBACX,MAAA,WAAW,CAAC,WAAW,+CAAvB,WAAW,CAAgB,CAAC;iBAC7B;gBACD,MAAA,WAAW,CAAC,QAAQ,+CAApB,WAAW,CAAa,CAAC;YAC3B,CAAC,CACF,CACF,CAAC;QACJ,CAAC,CAAC;QACJ,CAAC;YAGC,mBAAQ,CAAC;AACf,CAAC;AAhDD,kBAgDC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttle.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttle.js deleted file mode 100755 index 474be8c8e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttle.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.throttle = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var innerFrom_1 = require("../observable/innerFrom"); -function throttle(durationSelector, config) { - return lift_1.operate(function (source, subscriber) { - var _a = config !== null && config !== void 0 ? config : {}, _b = _a.leading, leading = _b === void 0 ? true : _b, _c = _a.trailing, trailing = _c === void 0 ? false : _c; - var hasValue = false; - var sendValue = null; - var throttled = null; - var isComplete = false; - var endThrottling = function () { - throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe(); - throttled = null; - if (trailing) { - send(); - isComplete && subscriber.complete(); - } - }; - var cleanupThrottling = function () { - throttled = null; - isComplete && subscriber.complete(); - }; - var startThrottle = function (value) { - return (throttled = innerFrom_1.innerFrom(durationSelector(value)).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling))); - }; - var send = function () { - if (hasValue) { - hasValue = false; - var value = sendValue; - sendValue = null; - subscriber.next(value); - !isComplete && startThrottle(value); - } - }; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - sendValue = value; - !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value)); - }, function () { - isComplete = true; - !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete(); - })); - }); -} -exports.throttle = throttle; -//# sourceMappingURL=throttle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttle.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttle.js.map deleted file mode 100644 index 22b6834df..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../../../src/internal/operators/throttle.ts"],"names":[],"mappings":";;;AAGA,qCAAuC;AACvC,2DAAgE;AAChE,qDAAoD;AA8EpD,SAAgB,QAAQ,CAAI,gBAAoD,EAAE,MAAuB;IACvG,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAC1B,IAAA,KAAuC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,EAAjD,eAAc,EAAd,OAAO,mBAAG,IAAI,KAAA,EAAE,gBAAgB,EAAhB,QAAQ,mBAAG,KAAK,KAAiB,CAAC;QAC1D,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,SAAS,GAAa,IAAI,CAAC;QAC/B,IAAI,SAAS,GAAwB,IAAI,CAAC;QAC1C,IAAI,UAAU,GAAG,KAAK,CAAC;QAEvB,IAAM,aAAa,GAAG;YACpB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,EAAE,CAAC;YACzB,SAAS,GAAG,IAAI,CAAC;YACjB,IAAI,QAAQ,EAAE;gBACZ,IAAI,EAAE,CAAC;gBACP,UAAU,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;aACrC;QACH,CAAC,CAAC;QAEF,IAAM,iBAAiB,GAAG;YACxB,SAAS,GAAG,IAAI,CAAC;YACjB,UAAU,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACtC,CAAC,CAAC;QAEF,IAAM,aAAa,GAAG,UAAC,KAAQ;YAC7B,OAAA,CAAC,SAAS,GAAG,qBAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,6CAAwB,CAAC,UAAU,EAAE,aAAa,EAAE,iBAAiB,CAAC,CAAC,CAAC;QAAlI,CAAkI,CAAC;QAErI,IAAM,IAAI,GAAG;YACX,IAAI,QAAQ,EAAE;gBAIZ,QAAQ,GAAG,KAAK,CAAC;gBACjB,IAAM,KAAK,GAAG,SAAU,CAAC;gBACzB,SAAS,GAAG,IAAI,CAAC;gBAEjB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACvB,CAAC,UAAU,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;aACrC;QACH,CAAC,CAAC;QAEF,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EAMV,UAAC,KAAK;YACJ,QAAQ,GAAG,IAAI,CAAC;YAChB,SAAS,GAAG,KAAK,CAAC;YAClB,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;QACjF,CAAC,EACD;YACE,UAAU,GAAG,IAAI,CAAC;YAClB,CAAC,CAAC,QAAQ,IAAI,QAAQ,IAAI,SAAS,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACrF,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA3DD,4BA2DC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js deleted file mode 100755 index e91124d81..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.throttleTime = void 0; -var async_1 = require("../scheduler/async"); -var throttle_1 = require("./throttle"); -var timer_1 = require("../observable/timer"); -function throttleTime(duration, scheduler, config) { - if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } - var duration$ = timer_1.timer(duration, scheduler); - return throttle_1.throttle(function () { return duration$; }, config); -} -exports.throttleTime = throttleTime; -//# sourceMappingURL=throttleTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js.map deleted file mode 100644 index 1b7737da3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throttleTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throttleTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/throttleTime.ts"],"names":[],"mappings":";;;AAAA,4CAAoD;AACpD,uCAAsD;AAEtD,6CAA4C;AAmD5C,SAAgB,YAAY,CAC1B,QAAgB,EAChB,SAAyC,EACzC,MAAuB;IADvB,0BAAA,EAAA,YAA2B,sBAAc;IAGzC,IAAM,SAAS,GAAG,aAAK,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC7C,OAAO,mBAAQ,CAAC,cAAM,OAAA,SAAS,EAAT,CAAS,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC;AAPD,oCAOC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js deleted file mode 100755 index fe26c0bea..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.throwIfEmpty = void 0; -var EmptyError_1 = require("../util/EmptyError"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function throwIfEmpty(errorFactory) { - if (errorFactory === void 0) { errorFactory = defaultErrorFactory; } - return lift_1.operate(function (source, subscriber) { - var hasValue = false; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - subscriber.next(value); - }, function () { return (hasValue ? subscriber.complete() : subscriber.error(errorFactory())); })); - }); -} -exports.throwIfEmpty = throwIfEmpty; -function defaultErrorFactory() { - return new EmptyError_1.EmptyError(); -} -//# sourceMappingURL=throwIfEmpty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js.map deleted file mode 100644 index 577e656fa..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/throwIfEmpty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwIfEmpty.js","sourceRoot":"","sources":["../../../../src/internal/operators/throwIfEmpty.ts"],"names":[],"mappings":";;;AAAA,iDAAgD;AAEhD,qCAAuC;AACvC,2DAAgE;AAsChE,SAAgB,YAAY,CAAI,YAA6C;IAA7C,6BAAA,EAAA,kCAA6C;IAC3E,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,QAAQ,GAAG,IAAI,CAAC;YAChB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,EACD,cAAM,OAAA,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,EAArE,CAAqE,CAC5E,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAdD,oCAcC;AAED,SAAS,mBAAmB;IAC1B,OAAO,IAAI,uBAAU,EAAE,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js deleted file mode 100755 index 0a32d91cb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TimeInterval = exports.timeInterval = void 0; -var async_1 = require("../scheduler/async"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function timeInterval(scheduler) { - if (scheduler === void 0) { scheduler = async_1.asyncScheduler; } - return lift_1.operate(function (source, subscriber) { - var last = scheduler.now(); - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var now = scheduler.now(); - var interval = now - last; - last = now; - subscriber.next(new TimeInterval(value, interval)); - })); - }); -} -exports.timeInterval = timeInterval; -var TimeInterval = (function () { - function TimeInterval(value, interval) { - this.value = value; - this.interval = interval; - } - return TimeInterval; -}()); -exports.TimeInterval = TimeInterval; -//# sourceMappingURL=timeInterval.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js.map deleted file mode 100644 index c8e43cbf5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeInterval.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeInterval.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeInterval.ts"],"names":[],"mappings":";;;AAAA,4CAAoD;AAEpD,qCAAuC;AACvC,2DAAgE;AAyChE,SAAgB,YAAY,CAAI,SAAyC;IAAzC,0BAAA,EAAA,YAA2B,sBAAc;IACvE,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;QAC3B,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,IAAM,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;YAC5B,IAAM,QAAQ,GAAG,GAAG,GAAG,IAAI,CAAC;YAC5B,IAAI,GAAG,GAAG,CAAC;YACX,UAAU,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACrD,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAZD,oCAYC;AAKD;IAIE,sBAAmB,KAAQ,EAAS,QAAgB;QAAjC,UAAK,GAAL,KAAK,CAAG;QAAS,aAAQ,GAAR,QAAQ,CAAQ;IAAG,CAAC;IAC1D,mBAAC;AAAD,CAAC,AALD,IAKC;AALY,oCAAY"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeout.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeout.js deleted file mode 100755 index eeb0e6b1b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeout.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.timeout = exports.TimeoutError = void 0; -var async_1 = require("../scheduler/async"); -var isDate_1 = require("../util/isDate"); -var lift_1 = require("../util/lift"); -var innerFrom_1 = require("../observable/innerFrom"); -var createErrorClass_1 = require("../util/createErrorClass"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var executeSchedule_1 = require("../util/executeSchedule"); -exports.TimeoutError = createErrorClass_1.createErrorClass(function (_super) { - return function TimeoutErrorImpl(info) { - if (info === void 0) { info = null; } - _super(this); - this.message = 'Timeout has occurred'; - this.name = 'TimeoutError'; - this.info = info; - }; -}); -function timeout(config, schedulerArg) { - var _a = (isDate_1.isValidDate(config) ? { first: config } : typeof config === 'number' ? { each: config } : config), first = _a.first, each = _a.each, _b = _a.with, _with = _b === void 0 ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : async_1.asyncScheduler : _c, _d = _a.meta, meta = _d === void 0 ? null : _d; - if (first == null && each == null) { - throw new TypeError('No timeout provided.'); - } - return lift_1.operate(function (source, subscriber) { - var originalSourceSubscription; - var timerSubscription; - var lastValue = null; - var seen = 0; - var startTimer = function (delay) { - timerSubscription = executeSchedule_1.executeSchedule(subscriber, scheduler, function () { - try { - originalSourceSubscription.unsubscribe(); - innerFrom_1.innerFrom(_with({ - meta: meta, - lastValue: lastValue, - seen: seen, - })).subscribe(subscriber); - } - catch (err) { - subscriber.error(err); - } - }, delay); - }; - originalSourceSubscription = source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); - seen++; - subscriber.next((lastValue = value)); - each > 0 && startTimer(each); - }, undefined, undefined, function () { - if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) { - timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); - } - lastValue = null; - })); - !seen && startTimer(first != null ? (typeof first === 'number' ? first : +first - scheduler.now()) : each); - }); -} -exports.timeout = timeout; -function timeoutErrorFactory(info) { - throw new exports.TimeoutError(info); -} -//# sourceMappingURL=timeout.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeout.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeout.js.map deleted file mode 100644 index 719d47e87..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeout.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeout.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeout.ts"],"names":[],"mappings":";;;AAAA,4CAAoD;AAEpD,yCAA6C;AAE7C,qCAAuC;AAE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AAC,IAAsB;IACjD,MAAM,IAAI,oBAAY,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js deleted file mode 100755 index 5811d86a8..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.timeoutWith = void 0; -var async_1 = require("../scheduler/async"); -var isDate_1 = require("../util/isDate"); -var timeout_1 = require("./timeout"); -function timeoutWith(due, withObservable, scheduler) { - var first; - var each; - var _with; - scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async_1.async; - if (isDate_1.isValidDate(due)) { - first = due; - } - else if (typeof due === 'number') { - each = due; - } - if (withObservable) { - _with = function () { return withObservable; }; - } - else { - throw new TypeError('No observable provided to switch to'); - } - if (first == null && each == null) { - throw new TypeError('No timeout provided.'); - } - return timeout_1.timeout({ - first: first, - each: each, - scheduler: scheduler, - with: _with, - }); -} -exports.timeoutWith = timeoutWith; -//# sourceMappingURL=timeoutWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js.map deleted file mode 100644 index b524d77f1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timeoutWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeoutWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeoutWith.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAC3C,yCAA6C;AAE7C,qCAAoC;AA+EpC,SAAgB,WAAW,CACzB,GAAkB,EAClB,cAAkC,EAClC,SAAyB;IAEzB,IAAI,KAAgC,CAAC;IACrC,IAAI,IAAwB,CAAC;IAC7B,IAAI,KAA+B,CAAC;IACpC,SAAS,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,aAAK,CAAC;IAE/B,IAAI,oBAAW,CAAC,GAAG,CAAC,EAAE;QACpB,KAAK,GAAG,GAAG,CAAC;KACb;SAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAClC,IAAI,GAAG,GAAG,CAAC;KACZ;IAED,IAAI,cAAc,EAAE;QAClB,KAAK,GAAG,cAAM,OAAA,cAAc,EAAd,CAAc,CAAC;KAC9B;SAAM;QACL,MAAM,IAAI,SAAS,CAAC,qCAAqC,CAAC,CAAC;KAC5D;IAED,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE;QAEjC,MAAM,IAAI,SAAS,CAAC,sBAAsB,CAAC,CAAC;KAC7C;IAED,OAAO,iBAAO,CAAwB;QACpC,KAAK,OAAA;QACL,IAAI,MAAA;QACJ,SAAS,WAAA;QACT,IAAI,EAAE,KAAK;KACZ,CAAC,CAAC;AACL,CAAC;AAjCD,kCAiCC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js deleted file mode 100755 index 274b888cb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.timestamp = void 0; -var dateTimestampProvider_1 = require("../scheduler/dateTimestampProvider"); -var map_1 = require("./map"); -function timestamp(timestampProvider) { - if (timestampProvider === void 0) { timestampProvider = dateTimestampProvider_1.dateTimestampProvider; } - return map_1.map(function (value) { return ({ value: value, timestamp: timestampProvider.now() }); }); -} -exports.timestamp = timestamp; -//# sourceMappingURL=timestamp.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js.map deleted file mode 100644 index d3f74a7cb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../src/internal/operators/timestamp.ts"],"names":[],"mappings":";;;AACA,4EAA2E;AAC3E,6BAA4B;AAkC5B,SAAgB,SAAS,CAAI,iBAA4D;IAA5D,kCAAA,EAAA,oBAAuC,6CAAqB;IACvF,OAAO,SAAG,CAAC,UAAC,KAAQ,IAAK,OAAA,CAAC,EAAE,KAAK,OAAA,EAAE,SAAS,EAAE,iBAAiB,CAAC,GAAG,EAAE,EAAE,CAAC,EAA/C,CAA+C,CAAC,CAAC;AAC5E,CAAC;AAFD,8BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/toArray.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/toArray.js deleted file mode 100755 index 51ef7965c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/toArray.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toArray = void 0; -var reduce_1 = require("./reduce"); -var lift_1 = require("../util/lift"); -var arrReducer = function (arr, value) { return (arr.push(value), arr); }; -function toArray() { - return lift_1.operate(function (source, subscriber) { - reduce_1.reduce(arrReducer, [])(source).subscribe(subscriber); - }); -} -exports.toArray = toArray; -//# sourceMappingURL=toArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/toArray.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/toArray.js.map deleted file mode 100644 index 761a761c1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/toArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toArray.js","sourceRoot":"","sources":["../../../../src/internal/operators/toArray.ts"],"names":[],"mappings":";;;AAAA,mCAAkC;AAElC,qCAAuC;AAEvC,IAAM,UAAU,GAAG,UAAC,GAAU,EAAE,KAAU,IAAK,OAAA,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,EAAtB,CAAsB,CAAC;AAgCtE,SAAgB,OAAO;IAIrB,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,eAAM,CAAC,UAAU,EAAE,EAAS,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC;AAPD,0BAOC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/window.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/window.js deleted file mode 100755 index a2bc14bc5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/window.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.window = void 0; -var Subject_1 = require("../Subject"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var noop_1 = require("../util/noop"); -var innerFrom_1 = require("../observable/innerFrom"); -function window(windowBoundaries) { - return lift_1.operate(function (source, subscriber) { - var windowSubject = new Subject_1.Subject(); - subscriber.next(windowSubject.asObservable()); - var errorHandler = function (err) { - windowSubject.error(err); - subscriber.error(err); - }; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value); }, function () { - windowSubject.complete(); - subscriber.complete(); - }, errorHandler)); - innerFrom_1.innerFrom(windowBoundaries).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () { - windowSubject.complete(); - subscriber.next((windowSubject = new Subject_1.Subject())); - }, noop_1.noop, errorHandler)); - return function () { - windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe(); - windowSubject = null; - }; - }); -} -exports.window = window; -//# sourceMappingURL=window.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/window.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/window.js.map deleted file mode 100644 index 244fe91ff..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/window.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"window.js","sourceRoot":"","sources":["../../../../src/internal/operators/window.ts"],"names":[],"mappings":";;;AAEA,sCAAqC;AACrC,qCAAuC;AACvC,2DAAgE;AAChE,qCAAoC;AACpC,qDAAoD;AA8CpD,SAAgB,MAAM,CAAI,gBAAsC;IAC9D,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,aAAa,GAAe,IAAI,iBAAO,EAAK,CAAC;QAEjD,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,CAAC,CAAC;QAE9C,IAAM,YAAY,GAAG,UAAC,GAAQ;YAC5B,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACzB,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC,CAAC;QAGF,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK,IAAK,OAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAI,CAAC,KAAK,CAAC,EAA1B,CAA0B,EACrC;YACE,aAAa,CAAC,QAAQ,EAAE,CAAC;YACzB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,YAAY,CACb,CACF,CAAC;QAGF,qBAAS,CAAC,gBAAgB,CAAC,CAAC,SAAS,CACnC,6CAAwB,CACtB,UAAU,EACV;YACE,aAAa,CAAC,QAAQ,EAAE,CAAC;YACzB,UAAU,CAAC,IAAI,CAAC,CAAC,aAAa,GAAG,IAAI,iBAAO,EAAE,CAAC,CAAC,CAAC;QACnD,CAAC,EACD,WAAI,EACJ,YAAY,CACb,CACF,CAAC;QAEF,OAAO;YAIL,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,WAAW,EAAE,CAAC;YAC7B,aAAa,GAAG,IAAK,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA7CD,wBA6CC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js deleted file mode 100755 index 2de7fb199..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.windowCount = void 0; -var Subject_1 = require("../Subject"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -function windowCount(windowSize, startWindowEvery) { - if (startWindowEvery === void 0) { startWindowEvery = 0; } - var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize; - return lift_1.operate(function (source, subscriber) { - var windows = [new Subject_1.Subject()]; - var starts = []; - var count = 0; - subscriber.next(windows[0].asObservable()); - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - try { - for (var windows_1 = __values(windows), windows_1_1 = windows_1.next(); !windows_1_1.done; windows_1_1 = windows_1.next()) { - var window_1 = windows_1_1.value; - window_1.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (windows_1_1 && !windows_1_1.done && (_a = windows_1.return)) _a.call(windows_1); - } - finally { if (e_1) throw e_1.error; } - } - var c = count - windowSize + 1; - if (c >= 0 && c % startEvery === 0) { - windows.shift().complete(); - } - if (++count % startEvery === 0) { - var window_2 = new Subject_1.Subject(); - windows.push(window_2); - subscriber.next(window_2.asObservable()); - } - }, function () { - while (windows.length > 0) { - windows.shift().complete(); - } - subscriber.complete(); - }, function (err) { - while (windows.length > 0) { - windows.shift().error(err); - } - subscriber.error(err); - }, function () { - starts = null; - windows = null; - })); - }); -} -exports.windowCount = windowCount; -//# sourceMappingURL=windowCount.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js.map deleted file mode 100644 index b349486f6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowCount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowCount.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,sCAAqC;AAErC,qCAAuC;AACvC,2DAAgE;AAgEhE,SAAgB,WAAW,CAAI,UAAkB,EAAE,gBAA4B;IAA5B,iCAAA,EAAA,oBAA4B;IAC7E,IAAM,UAAU,GAAG,gBAAgB,GAAG,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,UAAU,CAAC;IAExE,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,OAAO,GAAG,CAAC,IAAI,iBAAO,EAAK,CAAC,CAAC;QACjC,IAAI,MAAM,GAAa,EAAE,CAAC;QAC1B,IAAI,KAAK,GAAG,CAAC,CAAC;QAGd,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC;QAE3C,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAQ;;;gBAIP,KAAqB,IAAA,YAAA,SAAA,OAAO,CAAA,gCAAA,qDAAE;oBAAzB,IAAM,QAAM,oBAAA;oBACf,QAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACpB;;;;;;;;;YAMD,IAAM,CAAC,GAAG,KAAK,GAAG,UAAU,GAAG,CAAC,CAAC;YACjC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,UAAU,KAAK,CAAC,EAAE;gBAClC,OAAO,CAAC,KAAK,EAAG,CAAC,QAAQ,EAAE,CAAC;aAC7B;YAOD,IAAI,EAAE,KAAK,GAAG,UAAU,KAAK,CAAC,EAAE;gBAC9B,IAAM,QAAM,GAAG,IAAI,iBAAO,EAAK,CAAC;gBAChC,OAAO,CAAC,IAAI,CAAC,QAAM,CAAC,CAAC;gBACrB,UAAU,CAAC,IAAI,CAAC,QAAM,CAAC,YAAY,EAAE,CAAC,CAAC;aACxC;QACH,CAAC,EACD;YACE,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,QAAQ,EAAE,CAAC;aAC7B;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,UAAC,GAAG;YACF,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAC7B;YACD,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC,EACD;YACE,MAAM,GAAG,IAAK,CAAC;YACf,OAAO,GAAG,IAAK,CAAC;QAClB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA7DD,kCA6DC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js deleted file mode 100755 index ba436778e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.windowTime = void 0; -var Subject_1 = require("../Subject"); -var async_1 = require("../scheduler/async"); -var Subscription_1 = require("../Subscription"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var arrRemove_1 = require("../util/arrRemove"); -var args_1 = require("../util/args"); -var executeSchedule_1 = require("../util/executeSchedule"); -function windowTime(windowTimeSpan) { - var _a, _b; - var otherArgs = []; - for (var _i = 1; _i < arguments.length; _i++) { - otherArgs[_i - 1] = arguments[_i]; - } - var scheduler = (_a = args_1.popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : async_1.asyncScheduler; - var windowCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null; - var maxWindowSize = otherArgs[1] || Infinity; - return lift_1.operate(function (source, subscriber) { - var windowRecords = []; - var restartOnClose = false; - var closeWindow = function (record) { - var window = record.window, subs = record.subs; - window.complete(); - subs.unsubscribe(); - arrRemove_1.arrRemove(windowRecords, record); - restartOnClose && startWindow(); - }; - var startWindow = function () { - if (windowRecords) { - var subs = new Subscription_1.Subscription(); - subscriber.add(subs); - var window_1 = new Subject_1.Subject(); - var record_1 = { - window: window_1, - subs: subs, - seen: 0, - }; - windowRecords.push(record_1); - subscriber.next(window_1.asObservable()); - executeSchedule_1.executeSchedule(subs, scheduler, function () { return closeWindow(record_1); }, windowTimeSpan); - } - }; - if (windowCreationInterval !== null && windowCreationInterval >= 0) { - executeSchedule_1.executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true); - } - else { - restartOnClose = true; - } - startWindow(); - var loop = function (cb) { return windowRecords.slice().forEach(cb); }; - var terminate = function (cb) { - loop(function (_a) { - var window = _a.window; - return cb(window); - }); - cb(subscriber); - subscriber.unsubscribe(); - }; - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - loop(function (record) { - record.window.next(value); - maxWindowSize <= ++record.seen && closeWindow(record); - }); - }, function () { return terminate(function (consumer) { return consumer.complete(); }); }, function (err) { return terminate(function (consumer) { return consumer.error(err); }); })); - return function () { - windowRecords = null; - }; - }); -} -exports.windowTime = windowTime; -//# sourceMappingURL=windowTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js.map deleted file mode 100644 index e4d51f934..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowTime.ts"],"names":[],"mappings":";;;AAAA,sCAAqC;AACrC,4CAAoD;AAEpD,gDAA+C;AAE/C,qCAAuC;AACvC,2DAAgE;AAChE,+CAA8C;AAC9C,qCAA4C;AAC5C,2DAA0D;AAgG1D,SAAgB,UAAU,CAAI,cAAsB;;IAAE,mBAAmB;SAAnB,UAAmB,EAAnB,qBAAmB,EAAnB,IAAmB;QAAnB,kCAAmB;;IACvE,IAAM,SAAS,GAAG,MAAA,mBAAY,CAAC,SAAS,CAAC,mCAAI,sBAAc,CAAC;IAC5D,IAAM,sBAAsB,GAAG,MAAC,SAAS,CAAC,CAAC,CAAY,mCAAI,IAAI,CAAC;IAChE,IAAM,aAAa,GAAI,SAAS,CAAC,CAAC,CAAY,IAAI,QAAQ,CAAC;IAE3D,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAI,aAAa,GAA6B,EAAE,CAAC;QAGjD,IAAI,cAAc,GAAG,KAAK,CAAC;QAE3B,IAAM,WAAW,GAAG,UAAC,MAAkD;YAC7D,IAAA,MAAM,GAAW,MAAM,OAAjB,EAAE,IAAI,GAAK,MAAM,KAAX,CAAY;YAChC,MAAM,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,qBAAS,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;YACjC,cAAc,IAAI,WAAW,EAA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AAQ;YAEP,IAAI,CAAC,UAAC,MAAM;gBACV,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAE1B,aAAa,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,WAAW,CAAC,MAAM,CAAC,CAAC;YACxD,CAAC,CAAC,CAAC;QACL,CAAC,EAED,cAAM,OAAA,SAAS,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,QAAQ,EAAE,EAAnB,CAAmB,CAAC,EAA5C,CAA4C,EAElD,UAAC,GAAG,IAAK,OAAA,SAAS,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,EAAnB,CAAmB,CAAC,EAA5C,CAA4C,CACtD,CACF,CAAC;QAKF,OAAO;YAEL,aAAa,GAAG,IAAK,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA/FD,gCA+FC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js deleted file mode 100755 index 10d4d7400..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.windowToggle = void 0; -var Subject_1 = require("../Subject"); -var Subscription_1 = require("../Subscription"); -var lift_1 = require("../util/lift"); -var innerFrom_1 = require("../observable/innerFrom"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var noop_1 = require("../util/noop"); -var arrRemove_1 = require("../util/arrRemove"); -function windowToggle(openings, closingSelector) { - return lift_1.operate(function (source, subscriber) { - var windows = []; - var handleError = function (err) { - while (0 < windows.length) { - windows.shift().error(err); - } - subscriber.error(err); - }; - innerFrom_1.innerFrom(openings).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (openValue) { - var window = new Subject_1.Subject(); - windows.push(window); - var closingSubscription = new Subscription_1.Subscription(); - var closeWindow = function () { - arrRemove_1.arrRemove(windows, window); - window.complete(); - closingSubscription.unsubscribe(); - }; - var closingNotifier; - try { - closingNotifier = innerFrom_1.innerFrom(closingSelector(openValue)); - } - catch (err) { - handleError(err); - return; - } - subscriber.next(window.asObservable()); - closingSubscription.add(closingNotifier.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, closeWindow, noop_1.noop, handleError))); - }, noop_1.noop)); - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - var windowsCopy = windows.slice(); - try { - for (var windowsCopy_1 = __values(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) { - var window_1 = windowsCopy_1_1.value; - window_1.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a = windowsCopy_1.return)) _a.call(windowsCopy_1); - } - finally { if (e_1) throw e_1.error; } - } - }, function () { - while (0 < windows.length) { - windows.shift().complete(); - } - subscriber.complete(); - }, handleError, function () { - while (0 < windows.length) { - windows.shift().unsubscribe(); - } - })); - }); -} -exports.windowToggle = windowToggle; -//# sourceMappingURL=windowToggle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js.map deleted file mode 100644 index 08adabd44..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowToggle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowToggle.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowToggle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,sCAAqC;AACrC,gDAA+C;AAE/C,qCAAuC;AACvC,qDAAoD;AACpD,2DAAgE;AAChE,qCAAoC;AACpC,+CAA8C;AAiD9C,SAAgB,YAAY,CAC1B,QAA4B,EAC5B,eAAuD;IAEvD,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAM,OAAO,GAAiB,EAAE,CAAC;QAEjC,IAAM,WAAW,GAAG,UAAC,GAAQ;YAC3B,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAC7B;YACD,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC,CAAC;QAEF,qBAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAC3B,6CAAwB,CACtB,UAAU,EACV,UAAC,SAAS;YACR,IAAM,MAAM,GAAG,IAAI,iBAAO,EAAK,CAAC;YAChC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,IAAM,mBAAmB,GAAG,IAAI,2BAAY,EAAE,CAAC;YAC/C,IAAM,WAAW,GAAG;gBAClB,qBAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;gBAC3B,MAAM,CAAC,QAAQ,EAAE,CAAC;gBAClB,mBAAmB,CAAC,WAAW,EAAE,CAAC;YACpC,CAAC,CAAC;YAEF,IAAI,eAAgC,CAAC;YACrC,IAAI;gBACF,eAAe,GAAG,qBAAS,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC;aACzD;YAAC,OAAO,GAAG,EAAE;gBACZ,WAAW,CAAC,GAAG,CAAC,CAAC;gBACjB,OAAO;aACR;YAED,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;YAEvC,mBAAmB,CAAC,GAAG,CAAC,eAAe,CAAC,SAAS,CAAC,6CAAwB,CAAC,UAAU,EAAE,WAAW,EAAE,WAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;QAC3H,CAAC,EACD,WAAI,CACL,CACF,CAAC;QAGF,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAQ;;YAGP,IAAM,WAAW,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;;gBACpC,KAAqB,IAAA,gBAAA,SAAA,WAAW,CAAA,wCAAA,iEAAE;oBAA7B,IAAM,QAAM,wBAAA;oBACf,QAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACpB;;;;;;;;;QACH,CAAC,EACD;YAEE,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,QAAQ,EAAE,CAAC;aAC7B;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,WAAW,EACX;YAME,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,WAAW,EAAE,CAAC;aAChC;QACH,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AA5ED,oCA4EC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js deleted file mode 100755 index 8c7ded1d1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.windowWhen = void 0; -var Subject_1 = require("../Subject"); -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var innerFrom_1 = require("../observable/innerFrom"); -function windowWhen(closingSelector) { - return lift_1.operate(function (source, subscriber) { - var window; - var closingSubscriber; - var handleError = function (err) { - window.error(err); - subscriber.error(err); - }; - var openWindow = function () { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - window === null || window === void 0 ? void 0 : window.complete(); - window = new Subject_1.Subject(); - subscriber.next(window.asObservable()); - var closingNotifier; - try { - closingNotifier = innerFrom_1.innerFrom(closingSelector()); - } - catch (err) { - handleError(err); - return; - } - closingNotifier.subscribe((closingSubscriber = OperatorSubscriber_1.createOperatorSubscriber(subscriber, openWindow, openWindow, handleError))); - }; - openWindow(); - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { return window.next(value); }, function () { - window.complete(); - subscriber.complete(); - }, handleError, function () { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - window = null; - })); - }); -} -exports.windowWhen = windowWhen; -//# sourceMappingURL=windowWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js.map deleted file mode 100644 index 50eb8ef0b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/windowWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowWhen.ts"],"names":[],"mappings":";;;AAEA,sCAAqC;AAErC,qCAAuC;AACvC,2DAAgE;AAChE,qDAAoD;AA8CpD,SAAgB,UAAU,CAAI,eAA2C;IACvE,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,MAAyB,CAAC;QAC9B,IAAI,iBAA8C,CAAC;QAMnD,IAAM,WAAW,GAAG,UAAC,GAAQ;YAC3B,MAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACnB,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC,CAAC;QAQF,IAAM,UAAU,GAAG;YAGjB,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,EAAE,CAAC;YAGjC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,EAAE,CAAC;YAGnB,MAAM,GAAG,IAAI,iBAAO,EAAK,CAAC;YAC1B,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;YAGvC,IAAI,eAAgC,CAAC;YACrC,IAAI;gBACF,eAAe,GAAG,qBAAS,CAAC,eAAe,EAAE,CAAC,CAAC;aAChD;YAAC,OAAO,GAAG,EAAE;gBACZ,WAAW,CAAC,GAAG,CAAC,CAAC;gBACjB,OAAO;aACR;YAMD,eAAe,CAAC,SAAS,CAAC,CAAC,iBAAiB,GAAG,6CAAwB,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;QAC7H,CAAC,CAAC;QAGF,UAAU,EAAE,CAAC;QAGb,MAAM,CAAC,SAAS,CACd,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK,IAAK,OAAA,MAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAnB,CAAmB,EAC9B;YAEE,MAAO,CAAC,QAAQ,EAAE,CAAC;YACnB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,WAAW,EACX;YAGE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,EAAE,CAAC;YACjC,MAAM,GAAG,IAAK,CAAC;QACjB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAvED,gCAuEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js deleted file mode 100755 index 8ccfcd986..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.withLatestFrom = void 0; -var lift_1 = require("../util/lift"); -var OperatorSubscriber_1 = require("./OperatorSubscriber"); -var innerFrom_1 = require("../observable/innerFrom"); -var identity_1 = require("../util/identity"); -var noop_1 = require("../util/noop"); -var args_1 = require("../util/args"); -function withLatestFrom() { - var inputs = []; - for (var _i = 0; _i < arguments.length; _i++) { - inputs[_i] = arguments[_i]; - } - var project = args_1.popResultSelector(inputs); - return lift_1.operate(function (source, subscriber) { - var len = inputs.length; - var otherValues = new Array(len); - var hasValue = inputs.map(function () { return false; }); - var ready = false; - var _loop_1 = function (i) { - innerFrom_1.innerFrom(inputs[i]).subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - otherValues[i] = value; - if (!ready && !hasValue[i]) { - hasValue[i] = true; - (ready = hasValue.every(identity_1.identity)) && (hasValue = null); - } - }, noop_1.noop)); - }; - for (var i = 0; i < len; i++) { - _loop_1(i); - } - source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function (value) { - if (ready) { - var values = __spreadArray([value], __read(otherValues)); - subscriber.next(project ? project.apply(void 0, __spreadArray([], __read(values))) : values); - } - })); - }); -} -exports.withLatestFrom = withLatestFrom; -//# sourceMappingURL=withLatestFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js.map deleted file mode 100644 index ddd91b4e5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/withLatestFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"withLatestFrom.js","sourceRoot":"","sources":["../../../../src/internal/operators/withLatestFrom.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAAuC;AACvC,2DAAgE;AAChE,qDAAoD;AACpD,6CAA4C;AAC5C,qCAAoC;AACpC,qCAAiD;AAmDjD,SAAgB,cAAc;IAAO,gBAAgB;SAAhB,UAAgB,EAAhB,qBAAgB,EAAhB,IAAgB;QAAhB,2BAAgB;;IACnD,IAAM,OAAO,GAAG,wBAAiB,CAAC,MAAM,CAAwC,CAAC;IAEjF,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC;QAC1B,IAAM,WAAW,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;QAInC,IAAI,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,cAAM,OAAA,KAAK,EAAL,CAAK,CAAC,CAAC;QAGvC,IAAI,KAAK,GAAG,KAAK,CAAC;gCAMT,CAAC;YACR,qBAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAC5B,6CAAwB,CACtB,UAAU,EACV,UAAC,KAAK;gBACJ,WAAW,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;gBACvB,IAAI,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;oBAE1B,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;oBAKnB,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,mBAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAK,CAAC,CAAC;iBAC1D;YACH,CAAC,EAGD,WAAI,CACL,CACF,CAAC;;QApBJ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE;oBAAnB,CAAC;SAqBT;QAGD,MAAM,CAAC,SAAS,CACd,6CAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,IAAI,KAAK,EAAE;gBAET,IAAM,MAAM,kBAAI,KAAK,UAAK,WAAW,EAAC,CAAC;gBACvC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,wCAAI,MAAM,IAAE,CAAC,CAAC,MAAM,CAAC,CAAC;aACxD;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AApDD,wCAoDC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zip.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zip.js deleted file mode 100755 index 8074fad8e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zip.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.zip = void 0; -var zip_1 = require("../observable/zip"); -var lift_1 = require("../util/lift"); -function zip() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - return lift_1.operate(function (source, subscriber) { - zip_1.zip.apply(void 0, __spreadArray([source], __read(sources))).subscribe(subscriber); - }); -} -exports.zip = zip; -//# sourceMappingURL=zip.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zip.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zip.js.map deleted file mode 100644 index 41755c612..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zip.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zip.js","sourceRoot":"","sources":["../../../../src/internal/operators/zip.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAqD;AAErD,qCAAuC;AAmBvC,SAAgB,GAAG;IAAO,iBAAwE;SAAxE,UAAwE,EAAxE,qBAAwE,EAAxE,IAAwE;QAAxE,4BAAwE;;IAChG,OAAO,cAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,SAAS,8BAAC,MAA8B,UAAM,OAAuC,IAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAC/G,CAAC,CAAC,CAAC;AACL,CAAC;AAJD,kBAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js deleted file mode 100755 index 45c393791..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.zipAll = void 0; -var zip_1 = require("../observable/zip"); -var joinAllInternals_1 = require("./joinAllInternals"); -function zipAll(project) { - return joinAllInternals_1.joinAllInternals(zip_1.zip, project); -} -exports.zipAll = zipAll; -//# sourceMappingURL=zipAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js.map deleted file mode 100644 index a2058de9e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zipAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/zipAll.ts"],"names":[],"mappings":";;;AACA,yCAAwC;AACxC,uDAAsD;AAetD,SAAgB,MAAM,CAAO,OAA+B;IAC1D,OAAO,mCAAgB,CAAC,SAAG,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC;AAFD,wBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js deleted file mode 100755 index 9dc444896..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.zipWith = void 0; -var zip_1 = require("./zip"); -function zipWith() { - var otherInputs = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherInputs[_i] = arguments[_i]; - } - return zip_1.zip.apply(void 0, __spreadArray([], __read(otherInputs))); -} -exports.zipWith = zipWith; -//# sourceMappingURL=zipWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js.map deleted file mode 100644 index f0e7a6dd5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/operators/zipWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zipWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/zipWith.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,6BAA4B;AAyB5B,SAAgB,OAAO;IAAkC,qBAA4C;SAA5C,UAA4C,EAA5C,qBAA4C,EAA5C,IAA4C;QAA5C,gCAA4C;;IACnG,OAAO,SAAG,wCAAI,WAAW,IAAE;AAC7B,CAAC;AAFD,0BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js deleted file mode 100755 index 9af85a71c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scheduleArray = void 0; -var Observable_1 = require("../Observable"); -function scheduleArray(input, scheduler) { - return new Observable_1.Observable(function (subscriber) { - var i = 0; - return scheduler.schedule(function () { - if (i === input.length) { - subscriber.complete(); - } - else { - subscriber.next(input[i++]); - if (!subscriber.closed) { - this.schedule(); - } - } - }); - }); -} -exports.scheduleArray = scheduleArray; -//# sourceMappingURL=scheduleArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js.map deleted file mode 100644 index b42b310a4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleArray.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleArray.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAG3C,SAAgB,aAAa,CAAI,KAAmB,EAAE,SAAwB;IAC5E,OAAO,IAAI,uBAAU,CAAI,UAAC,UAAU;QAElC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEV,OAAO,SAAS,CAAC,QAAQ,CAAC;YACxB,IAAI,CAAC,KAAK,KAAK,CAAC,MAAM,EAAE;gBAGtB,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;iBAAM;gBAGL,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAI5B,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;oBACtB,IAAI,CAAC,QAAQ,EAAE,CAAC;iBACjB;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAvBD,sCAuBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js deleted file mode 100755 index 472989634..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scheduleAsyncIterable = void 0; -var Observable_1 = require("../Observable"); -var executeSchedule_1 = require("../util/executeSchedule"); -function scheduleAsyncIterable(input, scheduler) { - if (!input) { - throw new Error('Iterable cannot be null'); - } - return new Observable_1.Observable(function (subscriber) { - executeSchedule_1.executeSchedule(subscriber, scheduler, function () { - var iterator = input[Symbol.asyncIterator](); - executeSchedule_1.executeSchedule(subscriber, scheduler, function () { - iterator.next().then(function (result) { - if (result.done) { - subscriber.complete(); - } - else { - subscriber.next(result.value); - } - }); - }, 0, true); - }); - }); -} -exports.scheduleAsyncIterable = scheduleAsyncIterable; -//# sourceMappingURL=scheduleAsyncIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js.map deleted file mode 100644 index 1dcd21915..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleAsyncIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleAsyncIterable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleAsyncIterable.ts"],"names":[],"mappings":";;;AACA,4CAA2C;AAC3C,2DAA0D;AAE1D,SAAgB,qBAAqB,CAAI,KAAuB,EAAE,SAAwB;IACxF,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC5C;IACD,OAAO,IAAI,uBAAU,CAAI,UAAC,UAAU;QAClC,iCAAe,CAAC,UAAU,EAAE,SAAS,EAAE;YACrC,IAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;YAC/C,iCAAe,CACb,UAAU,EACV,SAAS,EACT;gBACE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,UAAC,MAAM;oBAC1B,IAAI,MAAM,CAAC,IAAI,EAAE;wBAGf,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;yBAAM;wBACL,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;qBAC/B;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,EACD,CAAC,EACD,IAAI,CACL,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AA1BD,sDA0BC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js deleted file mode 100755 index 0444efe34..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scheduleIterable = void 0; -var Observable_1 = require("../Observable"); -var iterator_1 = require("../symbol/iterator"); -var isFunction_1 = require("../util/isFunction"); -var executeSchedule_1 = require("../util/executeSchedule"); -function scheduleIterable(input, scheduler) { - return new Observable_1.Observable(function (subscriber) { - var iterator; - executeSchedule_1.executeSchedule(subscriber, scheduler, function () { - iterator = input[iterator_1.iterator](); - executeSchedule_1.executeSchedule(subscriber, scheduler, function () { - var _a; - var value; - var done; - try { - (_a = iterator.next(), value = _a.value, done = _a.done); - } - catch (err) { - subscriber.error(err); - return; - } - if (done) { - subscriber.complete(); - } - else { - subscriber.next(value); - } - }, 0, true); - }); - return function () { return isFunction_1.isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return(); }; - }); -} -exports.scheduleIterable = scheduleIterable; -//# sourceMappingURL=scheduleIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js.map deleted file mode 100644 index ead78f7c0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleIterable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleIterable.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAE3C,+CAAiE;AACjE,iDAAgD;AAChD,2DAA0D;AAO1D,SAAgB,gBAAgB,CAAI,KAAkB,EAAE,SAAwB;IAC9E,OAAO,IAAI,uBAAU,CAAI,UAAC,UAAU;QAClC,IAAI,QAAwB,CAAC;QAK7B,iCAAe,CAAC,UAAU,EAAE,SAAS,EAAE;YAErC,QAAQ,GAAI,KAAa,CAAC,mBAAe,CAAC,EAAE,CAAC;YAE7C,iCAAe,CACb,UAAU,EACV,SAAS,EACT;;gBACE,IAAI,KAAQ,CAAC;gBACb,IAAI,IAAyB,CAAC;gBAC9B,IAAI;oBAEF,CAAC,KAAkB,QAAQ,CAAC,IAAI,EAAE,EAA/B,KAAK,WAAA,EAAE,IAAI,UAAA,CAAqB,CAAC;iBACrC;gBAAC,OAAO,GAAG,EAAE;oBAEZ,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACtB,OAAO;iBACR;gBAED,IAAI,IAAI,EAAE;oBAKR,UAAU,CAAC,QAAQ,EAAE,CAAC;iBACvB;qBAAM;oBAEL,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACxB;YACH,CAAC,EACD,CAAC,EACD,IAAI,CACL,CAAC;QACJ,CAAC,CAAC,CAAC;QAMH,OAAO,cAAM,OAAA,uBAAU,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC,IAAI,QAAQ,CAAC,MAAM,EAAE,EAAjD,CAAiD,CAAC;IACjE,CAAC,CAAC,CAAC;AACL,CAAC;AAhDD,4CAgDC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js deleted file mode 100755 index 90ee012bd..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scheduleObservable = void 0; -var innerFrom_1 = require("../observable/innerFrom"); -var observeOn_1 = require("../operators/observeOn"); -var subscribeOn_1 = require("../operators/subscribeOn"); -function scheduleObservable(input, scheduler) { - return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); -} -exports.scheduleObservable = scheduleObservable; -//# sourceMappingURL=scheduleObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js.map deleted file mode 100644 index 3cfdc17be..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleObservable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleObservable.ts"],"names":[],"mappings":";;;AAAA,qDAAoD;AACpD,oDAAmD;AACnD,wDAAuD;AAGvD,SAAgB,kBAAkB,CAAI,KAA2B,EAAE,SAAwB;IACzF,OAAO,qBAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,yBAAW,CAAC,SAAS,CAAC,EAAE,qBAAS,CAAC,SAAS,CAAC,CAAC,CAAC;AAC7E,CAAC;AAFD,gDAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js deleted file mode 100755 index 37629d41b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.schedulePromise = void 0; -var innerFrom_1 = require("../observable/innerFrom"); -var observeOn_1 = require("../operators/observeOn"); -var subscribeOn_1 = require("../operators/subscribeOn"); -function schedulePromise(input, scheduler) { - return innerFrom_1.innerFrom(input).pipe(subscribeOn_1.subscribeOn(scheduler), observeOn_1.observeOn(scheduler)); -} -exports.schedulePromise = schedulePromise; -//# sourceMappingURL=schedulePromise.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js.map deleted file mode 100644 index f6d7bcf9c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/schedulePromise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"schedulePromise.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/schedulePromise.ts"],"names":[],"mappings":";;;AAAA,qDAAoD;AACpD,oDAAmD;AACnD,wDAAuD;AAGvD,SAAgB,eAAe,CAAI,KAAqB,EAAE,SAAwB;IAChF,OAAO,qBAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,yBAAW,CAAC,SAAS,CAAC,EAAE,qBAAS,CAAC,SAAS,CAAC,CAAC,CAAC;AAC7E,CAAC;AAFD,0CAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js deleted file mode 100755 index 067ca619d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scheduleReadableStreamLike = void 0; -var scheduleAsyncIterable_1 = require("./scheduleAsyncIterable"); -var isReadableStreamLike_1 = require("../util/isReadableStreamLike"); -function scheduleReadableStreamLike(input, scheduler) { - return scheduleAsyncIterable_1.scheduleAsyncIterable(isReadableStreamLike_1.readableStreamLikeToAsyncGenerator(input), scheduler); -} -exports.scheduleReadableStreamLike = scheduleReadableStreamLike; -//# sourceMappingURL=scheduleReadableStreamLike.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js.map deleted file mode 100644 index 00be81085..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduleReadableStreamLike.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleReadableStreamLike.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleReadableStreamLike.ts"],"names":[],"mappings":";;;AAEA,iEAAgE;AAChE,qEAAkF;AAElF,SAAgB,0BAA0B,CAAI,KAA4B,EAAE,SAAwB;IAClG,OAAO,6CAAqB,CAAC,yDAAkC,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;AACrF,CAAC;AAFD,gEAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js deleted file mode 100755 index 8b2564b5f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scheduled = void 0; -var scheduleObservable_1 = require("./scheduleObservable"); -var schedulePromise_1 = require("./schedulePromise"); -var scheduleArray_1 = require("./scheduleArray"); -var scheduleIterable_1 = require("./scheduleIterable"); -var scheduleAsyncIterable_1 = require("./scheduleAsyncIterable"); -var isInteropObservable_1 = require("../util/isInteropObservable"); -var isPromise_1 = require("../util/isPromise"); -var isArrayLike_1 = require("../util/isArrayLike"); -var isIterable_1 = require("../util/isIterable"); -var isAsyncIterable_1 = require("../util/isAsyncIterable"); -var throwUnobservableError_1 = require("../util/throwUnobservableError"); -var isReadableStreamLike_1 = require("../util/isReadableStreamLike"); -var scheduleReadableStreamLike_1 = require("./scheduleReadableStreamLike"); -function scheduled(input, scheduler) { - if (input != null) { - if (isInteropObservable_1.isInteropObservable(input)) { - return scheduleObservable_1.scheduleObservable(input, scheduler); - } - if (isArrayLike_1.isArrayLike(input)) { - return scheduleArray_1.scheduleArray(input, scheduler); - } - if (isPromise_1.isPromise(input)) { - return schedulePromise_1.schedulePromise(input, scheduler); - } - if (isAsyncIterable_1.isAsyncIterable(input)) { - return scheduleAsyncIterable_1.scheduleAsyncIterable(input, scheduler); - } - if (isIterable_1.isIterable(input)) { - return scheduleIterable_1.scheduleIterable(input, scheduler); - } - if (isReadableStreamLike_1.isReadableStreamLike(input)) { - return scheduleReadableStreamLike_1.scheduleReadableStreamLike(input, scheduler); - } - } - throw throwUnobservableError_1.createInvalidObservableTypeError(input); -} -exports.scheduled = scheduled; -//# sourceMappingURL=scheduled.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js.map deleted file mode 100644 index bffb909d8..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduled/scheduled.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduled.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduled.ts"],"names":[],"mappings":";;;AAAA,2DAA0D;AAC1D,qDAAoD;AACpD,iDAAgD;AAChD,uDAAsD;AACtD,iEAAgE;AAChE,mEAAkE;AAClE,+CAA8C;AAC9C,mDAAkD;AAClD,iDAAgD;AAGhD,2DAA0D;AAC1D,yEAAkF;AAClF,qEAAoE;AACpE,2EAA0E;AAa1E,SAAgB,SAAS,CAAI,KAAyB,EAAE,SAAwB;IAC9E,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,IAAI,yCAAmB,CAAC,KAAK,CAAC,EAAE;YAC9B,OAAO,uCAAkB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SAC7C;QACD,IAAI,yBAAW,CAAC,KAAK,CAAC,EAAE;YACtB,OAAO,6BAAa,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SACxC;QACD,IAAI,qBAAS,CAAC,KAAK,CAAC,EAAE;YACpB,OAAO,iCAAe,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SAC1C;QACD,IAAI,iCAAe,CAAC,KAAK,CAAC,EAAE;YAC1B,OAAO,6CAAqB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SAChD;QACD,IAAI,uBAAU,CAAC,KAAK,CAAC,EAAE;YACrB,OAAO,mCAAgB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SAC3C;QACD,IAAI,2CAAoB,CAAC,KAAK,CAAC,EAAE;YAC/B,OAAO,uDAA0B,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SACrD;KACF;IACD,MAAM,yDAAgC,CAAC,KAAK,CAAC,CAAC;AAChD,CAAC;AAtBD,8BAsBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js deleted file mode 100755 index bc1216e1f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Action = void 0; -var Subscription_1 = require("../Subscription"); -var Action = (function (_super) { - __extends(Action, _super); - function Action(scheduler, work) { - return _super.call(this) || this; - } - Action.prototype.schedule = function (state, delay) { - if (delay === void 0) { delay = 0; } - return this; - }; - return Action; -}(Subscription_1.Subscription)); -exports.Action = Action; -//# sourceMappingURL=Action.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js.map deleted file mode 100644 index 9c9625ddd..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/Action.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/Action.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,gDAA+C;AAiB/C;IAA+B,0BAAY;IACzC,gBAAY,SAAoB,EAAE,IAAmD;eACnF,iBAAO;IACT,CAAC;IAWM,yBAAQ,GAAf,UAAgB,KAAS,EAAE,KAAiB;QAAjB,sBAAA,EAAA,SAAiB;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IACH,aAAC;AAAD,CAAC,AAjBD,CAA+B,2BAAY,GAiB1C;AAjBY,wBAAM"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js deleted file mode 100755 index 31f72fb9b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AnimationFrameAction = void 0; -var AsyncAction_1 = require("./AsyncAction"); -var animationFrameProvider_1 = require("./animationFrameProvider"); -var AnimationFrameAction = (function (_super) { - __extends(AnimationFrameAction, _super); - function AnimationFrameAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if (delay !== null && delay > 0) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); - } - scheduler.actions.push(this); - return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider_1.animationFrameProvider.requestAnimationFrame(function () { return scheduler.flush(undefined); })); - }; - AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) { - var _a; - if (delay === void 0) { delay = 0; } - if (delay != null ? delay > 0 : this.delay > 0) { - return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay); - } - var actions = scheduler.actions; - if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) { - animationFrameProvider_1.animationFrameProvider.cancelAnimationFrame(id); - scheduler._scheduled = undefined; - } - return undefined; - }; - return AnimationFrameAction; -}(AsyncAction_1.AsyncAction)); -exports.AnimationFrameAction = AnimationFrameAction; -//# sourceMappingURL=AnimationFrameAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js.map deleted file mode 100644 index c5e1a18ee..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameAction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AnimationFrameAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AnimationFrameAction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,6CAA4C;AAG5C,mEAAkE;AAGlE;IAA6C,wCAAc;IACzD,8BAAsB,SAAkC,EAAY,IAAmD;QAAvH,YACE,kBAAM,SAAS,EAAE,IAAI,CAAC,SACvB;QAFqB,eAAS,GAAT,SAAS,CAAyB;QAAY,UAAI,GAAJ,IAAI,CAA+C;;IAEvH,CAAC;IAES,6CAAc,GAAxB,UAAyB,SAAkC,EAAE,EAAgB,EAAE,KAAiB;QAAjB,sBAAA,EAAA,SAAiB;QAE9F,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,EAAE;YAC/B,OAAO,iBAAM,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAED,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAI7B,OAAO,SAAS,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,+CAAsB,CAAC,qBAAqB,CAAC,cAAM,OAAA,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,EAA1B,CAA0B,CAAC,CAAC,CAAC;IACzI,CAAC;IAES,6CAAc,GAAxB,UAAyB,SAAkC,EAAE,EAAgB,EAAE,KAAiB;;QAAjB,sBAAA,EAAA,SAAiB;QAI9F,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE;YAC9C,OAAO,iBAAM,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAIO,IAAA,OAAO,GAAK,SAAS,QAAd,CAAe;QAC9B,IAAI,EAAE,IAAI,IAAI,IAAI,CAAA,MAAA,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,0CAAE,EAAE,MAAK,EAAE,EAAE;YACxD,+CAAsB,CAAC,oBAAoB,CAAC,EAAY,CAAC,CAAC;YAC1D,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;SAClC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IACH,2BAAC;AAAD,CAAC,AApCD,CAA6C,yBAAW,GAoCvD;AApCY,oDAAoB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js deleted file mode 100755 index 74159862f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AnimationFrameScheduler = void 0; -var AsyncScheduler_1 = require("./AsyncScheduler"); -var AnimationFrameScheduler = (function (_super) { - __extends(AnimationFrameScheduler, _super); - function AnimationFrameScheduler() { - return _super !== null && _super.apply(this, arguments) || this; - } - AnimationFrameScheduler.prototype.flush = function (action) { - this._active = true; - var flushId = this._scheduled; - this._scheduled = undefined; - var actions = this.actions; - var error; - action = action || actions.shift(); - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - this._active = false; - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - }; - return AnimationFrameScheduler; -}(AsyncScheduler_1.AsyncScheduler)); -exports.AnimationFrameScheduler = AnimationFrameScheduler; -//# sourceMappingURL=AnimationFrameScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js.map deleted file mode 100644 index 6cde13b6c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AnimationFrameScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AnimationFrameScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AnimationFrameScheduler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,mDAAkD;AAElD;IAA6C,2CAAc;IAA3D;;IAkCA,CAAC;IAjCQ,uCAAK,GAAZ,UAAa,MAAyB;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAUpB,IAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAEpB,IAAA,OAAO,GAAK,IAAI,QAAT,CAAU;QACzB,IAAI,KAAU,CAAC;QACf,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAG,CAAC;QAEpC,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;QAE5E,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;gBACxE,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;IACH,8BAAC;AAAD,CAAC,AAlCD,CAA6C,+BAAc,GAkC1D;AAlCY,0DAAuB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js deleted file mode 100755 index 5056bcd97..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AsapAction = void 0; -var AsyncAction_1 = require("./AsyncAction"); -var immediateProvider_1 = require("./immediateProvider"); -var AsapAction = (function (_super) { - __extends(AsapAction, _super); - function AsapAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if (delay !== null && delay > 0) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); - } - scheduler.actions.push(this); - return scheduler._scheduled || (scheduler._scheduled = immediateProvider_1.immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined))); - }; - AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) { - var _a; - if (delay === void 0) { delay = 0; } - if (delay != null ? delay > 0 : this.delay > 0) { - return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay); - } - var actions = scheduler.actions; - if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) { - immediateProvider_1.immediateProvider.clearImmediate(id); - if (scheduler._scheduled === id) { - scheduler._scheduled = undefined; - } - } - return undefined; - }; - return AsapAction; -}(AsyncAction_1.AsyncAction)); -exports.AsapAction = AsapAction; -//# sourceMappingURL=AsapAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js.map deleted file mode 100644 index 4971d28ec..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapAction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsapAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsapAction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,6CAA4C;AAG5C,yDAAwD;AAGxD;IAAmC,8BAAc;IAC/C,oBAAsB,SAAwB,EAAY,IAAmD;QAA7G,YACE,kBAAM,SAAS,EAAE,IAAI,CAAC,SACvB;QAFqB,eAAS,GAAT,SAAS,CAAe;QAAY,UAAI,GAAJ,IAAI,CAA+C;;IAE7G,CAAC;IAES,mCAAc,GAAxB,UAAyB,SAAwB,EAAE,EAAgB,EAAE,KAAiB;QAAjB,sBAAA,EAAA,SAAiB;QAEpF,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,EAAE;YAC/B,OAAO,iBAAM,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAED,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAI7B,OAAO,SAAS,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,qCAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACrI,CAAC;IAES,mCAAc,GAAxB,UAAyB,SAAwB,EAAE,EAAgB,EAAE,KAAiB;;QAAjB,sBAAA,EAAA,SAAiB;QAIpF,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE;YAC9C,OAAO,iBAAM,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAIO,IAAA,OAAO,GAAK,SAAS,QAAd,CAAe;QAC9B,IAAI,EAAE,IAAI,IAAI,IAAI,CAAA,MAAA,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,0CAAE,EAAE,MAAK,EAAE,EAAE;YACxD,qCAAiB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACrC,IAAI,SAAS,CAAC,UAAU,KAAK,EAAE,EAAE;gBAC/B,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;aAClC;SACF;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IACH,iBAAC;AAAD,CAAC,AAtCD,CAAmC,yBAAW,GAsC7C;AAtCY,gCAAU"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js deleted file mode 100755 index 6a4ddeb4b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AsapScheduler = void 0; -var AsyncScheduler_1 = require("./AsyncScheduler"); -var AsapScheduler = (function (_super) { - __extends(AsapScheduler, _super); - function AsapScheduler() { - return _super !== null && _super.apply(this, arguments) || this; - } - AsapScheduler.prototype.flush = function (action) { - this._active = true; - var flushId = this._scheduled; - this._scheduled = undefined; - var actions = this.actions; - var error; - action = action || actions.shift(); - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - this._active = false; - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - }; - return AsapScheduler; -}(AsyncScheduler_1.AsyncScheduler)); -exports.AsapScheduler = AsapScheduler; -//# sourceMappingURL=AsapScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js.map deleted file mode 100644 index 1684c4085..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsapScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsapScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsapScheduler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,mDAAkD;AAElD;IAAmC,iCAAc;IAAjD;;IAkCA,CAAC;IAjCQ,6BAAK,GAAZ,UAAa,MAAyB;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAUpB,IAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAEpB,IAAA,OAAO,GAAK,IAAI,QAAT,CAAU;QACzB,IAAI,KAAU,CAAC;QACf,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAG,CAAC;QAEpC,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;QAE5E,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;gBACxE,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AAlCD,CAAmC,+BAAc,GAkChD;AAlCY,sCAAa"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js deleted file mode 100755 index 7b6c49666..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js +++ /dev/null @@ -1,107 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AsyncAction = void 0; -var Action_1 = require("./Action"); -var intervalProvider_1 = require("./intervalProvider"); -var arrRemove_1 = require("../util/arrRemove"); -var AsyncAction = (function (_super) { - __extends(AsyncAction, _super); - function AsyncAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - _this.pending = false; - return _this; - } - AsyncAction.prototype.schedule = function (state, delay) { - var _a; - if (delay === void 0) { delay = 0; } - if (this.closed) { - return this; - } - this.state = state; - var id = this.id; - var scheduler = this.scheduler; - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, delay); - } - this.pending = true; - this.delay = delay; - this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay); - return this; - }; - AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) { - if (delay === void 0) { delay = 0; } - return intervalProvider_1.intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay); - }; - AsyncAction.prototype.recycleAsyncId = function (_scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if (delay != null && this.delay === delay && this.pending === false) { - return id; - } - if (id != null) { - intervalProvider_1.intervalProvider.clearInterval(id); - } - return undefined; - }; - AsyncAction.prototype.execute = function (state, delay) { - if (this.closed) { - return new Error('executing a cancelled action'); - } - this.pending = false; - var error = this._execute(state, delay); - if (error) { - return error; - } - else if (this.pending === false && this.id != null) { - this.id = this.recycleAsyncId(this.scheduler, this.id, null); - } - }; - AsyncAction.prototype._execute = function (state, _delay) { - var errored = false; - var errorValue; - try { - this.work(state); - } - catch (e) { - errored = true; - errorValue = e ? e : new Error('Scheduled action threw falsy error'); - } - if (errored) { - this.unsubscribe(); - return errorValue; - } - }; - AsyncAction.prototype.unsubscribe = function () { - if (!this.closed) { - var _a = this, id = _a.id, scheduler = _a.scheduler; - var actions = scheduler.actions; - this.work = this.state = this.scheduler = null; - this.pending = false; - arrRemove_1.arrRemove(actions, this); - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, null); - } - this.delay = null; - _super.prototype.unsubscribe.call(this); - } - }; - return AsyncAction; -}(Action_1.Action)); -exports.AsyncAction = AsyncAction; -//# sourceMappingURL=AsyncAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncAction.js.map deleted file mode 100644 index d6656e7e3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/Asy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AAC,CAAC,CAAC,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;SACtE;QACD,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,OAAO,UAAU,CAAC;SACnB;IACH,CAAC;IAED,iCAAW,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YACV,IAAA,KAAoB,IAAI,EAAtB,EAAE,QAAA,EAAE,SAAS,eAAS,CAAC;YACvB,IAAA,OAAO,GAAK,SAAS,QAAd,CAAe;YAE9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,GAAG,IAAK,CAAC;YAChD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YAErB,qBAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACzB,IAAI,EAAE,IAAI,IAAI,EAAE;gBACd,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;aACpD;YAED,IAAI,CAAC,KAAK,GAAG,IAAK,CAAC;YACnB,iBAAM,WAAW,WAAE,CAAC;SACrB;IACH,CAAC;IACH,kBAAC;AAAD,CAAC,AA9ID,CAAoC,eAAM,GA8IzC;AA9IY,kCAAW"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js deleted file mode 100755 index 9a9c16785..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AsyncScheduler = void 0; -var Scheduler_1 = require("../Scheduler"); -var AsyncScheduler = (function (_super) { - __extends(AsyncScheduler, _super); - function AsyncScheduler(SchedulerAction, now) { - if (now === void 0) { now = Scheduler_1.Scheduler.now; } - var _this = _super.call(this, SchedulerAction, now) || this; - _this.actions = []; - _this._active = false; - return _this; - } - AsyncScheduler.prototype.flush = function (action) { - var actions = this.actions; - if (this._active) { - actions.push(action); - return; - } - var error; - this._active = true; - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions.shift())); - this._active = false; - if (error) { - while ((action = actions.shift())) { - action.unsubscribe(); - } - throw error; - } - }; - return AsyncScheduler; -}(Scheduler_1.Scheduler)); -exports.AsyncScheduler = AsyncScheduler; -//# sourceMappingURL=AsyncScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js.map deleted file mode 100644 index b3b81c13d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/AsyncScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsyncScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsyncScheduler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0CAAyC;AAKzC;IAAoC,kCAAS;IAkB3C,wBAAY,eAA8B,EAAE,GAAiC;QAAjC,oBAAA,EAAA,MAAoB,qBAAS,CAAC,GAAG;QAA7E,YACE,kBAAM,eAAe,EAAE,GAAG,CAAC,SAC5B;QAnBM,aAAO,GAA4B,EAAE,CAAC;QAOtC,aAAO,GAAY,KAAK,CAAC;;IAYhC,CAAC;IAEM,8BAAK,GAAZ,UAAa,MAAwB;QAC3B,IAAA,OAAO,GAAK,IAAI,QAAT,CAAU;QAEzB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,OAAO;SACR;QAED,IAAI,KAAU,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAEpB,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAG,CAAC,EAAE;QAEtC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAG,CAAC,EAAE;gBAClC,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;IACH,qBAAC;AAAD,CAAC,AAhDD,CAAoC,qBAAS,GAgD5C;AAhDY,wCAAc"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js deleted file mode 100755 index 4e370a959..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueueAction = void 0; -var AsyncAction_1 = require("./AsyncAction"); -var QueueAction = (function (_super) { - __extends(QueueAction, _super); - function QueueAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - QueueAction.prototype.schedule = function (state, delay) { - if (delay === void 0) { delay = 0; } - if (delay > 0) { - return _super.prototype.schedule.call(this, state, delay); - } - this.delay = delay; - this.state = state; - this.scheduler.flush(this); - return this; - }; - QueueAction.prototype.execute = function (state, delay) { - return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay); - }; - QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); - } - scheduler.flush(this); - return 0; - }; - return QueueAction; -}(AsyncAction_1.AsyncAction)); -exports.QueueAction = QueueAction; -//# sourceMappingURL=QueueAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js.map deleted file mode 100644 index 746c7ee48..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/QueueAction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QueueAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/QueueAction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,6CAA4C;AAM5C;IAAoC,+BAAc;IAChD,qBAAsB,SAAyB,EAAY,IAAmD;QAA9G,YACE,kBAAM,SAAS,EAAE,IAAI,CAAC,SACvB;QAFqB,eAAS,GAAT,SAAS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ueueScheduler.js deleted file mode 100755 index a38f3f8b1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.QueueScheduler = void 0; -var AsyncScheduler_1 = require("./AsyncScheduler"); -var QueueScheduler = (function (_super) { - __extends(QueueScheduler, _super); - function QueueScheduler() { - return _super !== null && _super.apply(this, arguments) || this; - } - return QueueScheduler; -}(AsyncScheduler_1.AsyncScheduler)); -exports.QueueScheduler = QueueScheduler; -//# sourceMappingURL=QueueScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js.map deleted file mode 100644 index fb2cba39a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/QueueScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QueueScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/QueueScheduler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,mDAAkD;AAElD;IAAoC,kCAAc;IAAlD;;IACA,CAAC;IAAD,qBAAC;AAAD,CAAC,AADD,CAAoC,+BAAc,GACjD;AADY,wCAAc"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js deleted file mode 100755 index a0a7cf5e5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js +++ /dev/null @@ -1,121 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.VirtualAction = exports.VirtualTimeScheduler = void 0; -var AsyncAction_1 = require("./AsyncAction"); -var Subscription_1 = require("../Subscription"); -var AsyncScheduler_1 = require("./AsyncScheduler"); -var VirtualTimeScheduler = (function (_super) { - __extends(VirtualTimeScheduler, _super); - function VirtualTimeScheduler(schedulerActionCtor, maxFrames) { - if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; } - if (maxFrames === void 0) { maxFrames = Infinity; } - var _this = _super.call(this, schedulerActionCtor, function () { return _this.frame; }) || this; - _this.maxFrames = maxFrames; - _this.frame = 0; - _this.index = -1; - return _this; - } - VirtualTimeScheduler.prototype.flush = function () { - var _a = this, actions = _a.actions, maxFrames = _a.maxFrames; - var error; - var action; - while ((action = actions[0]) && action.delay <= maxFrames) { - actions.shift(); - this.frame = action.delay; - if ((error = action.execute(action.state, action.delay))) { - break; - } - } - if (error) { - while ((action = actions.shift())) { - action.unsubscribe(); - } - throw error; - } - }; - VirtualTimeScheduler.frameTimeFactor = 10; - return VirtualTimeScheduler; -}(AsyncScheduler_1.AsyncScheduler)); -exports.VirtualTimeScheduler = VirtualTimeScheduler; -var VirtualAction = (function (_super) { - __extends(VirtualAction, _super); - function VirtualAction(scheduler, work, index) { - if (index === void 0) { index = (scheduler.index += 1); } - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - _this.index = index; - _this.active = true; - _this.index = scheduler.index = index; - return _this; - } - VirtualAction.prototype.schedule = function (state, delay) { - if (delay === void 0) { delay = 0; } - if (Number.isFinite(delay)) { - if (!this.id) { - return _super.prototype.schedule.call(this, state, delay); - } - this.active = false; - var action = new VirtualAction(this.scheduler, this.work); - this.add(action); - return action.schedule(state, delay); - } - else { - return Subscription_1.Subscription.EMPTY; - } - }; - VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - this.delay = scheduler.frame + delay; - var actions = scheduler.actions; - actions.push(this); - actions.sort(VirtualAction.sortActions); - return 1; - }; - VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - return undefined; - }; - VirtualAction.prototype._execute = function (state, delay) { - if (this.active === true) { - return _super.prototype._execute.call(this, state, delay); - } - }; - VirtualAction.sortActions = function (a, b) { - if (a.delay === b.delay) { - if (a.index === b.index) { - return 0; - } - else if (a.index > b.index) { - return 1; - } - else { - return -1; - } - } - else if (a.delay > b.delay) { - return 1; - } - else { - return -1; - } - }; - return VirtualAction; -}(AsyncAction_1.AsyncAction)); -exports.VirtualAction = VirtualAction; -//# sourceMappingURL=VirtualTimeScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js.map deleted file mode 100644 index 8293a9d59..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/VirtualTimeScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VirtualTimeSche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CAAC;QACrE,OAAO,CAAC,CAAC;IACX,CAAC;IAES,sCAAc,GAAxB,UAAyB,SAA+B,EAAE,EAAQ,EAAE,KAAiB;QAAjB,sBAAA,EAAA,SAAiB;QACnF,OAAO,SAAS,CAAC;IACnB,CAAC;IAES,gCAAQ,GAAlB,UAAmB,KAAQ,EAAE,KAAa;QACxC,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE;YACxB,OAAO,iBAAM,QAAQ,YAAC,KAAK,EAAE,KAAK,CAAC,CAAC;SACrC;IACH,CAAC;IAEc,yBAAW,GAA1B,UAA8B,CAAmB,EAAE,CAAmB;QACpE,IAAI,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,EAAE;YACvB,IAAI,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,EAAE;gBACvB,OAAO,CAAC,CAAC;aACV;iBAAM,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE;gBAC5B,OAAO,CAAC,CAAC;aACV;iBAAM;gBACL,OAAO,CAAC,CAAC,CAAC;aACX;SACF;aAAM,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE;YAC5B,OAAO,CAAC,CAAC;SACV;aAAM;YACL,OAAO,CAAC,CAAC,CAAC;SACX;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AAjED,CAAsC,yBAAW,GAiEhD;AAjEY,sCAAa"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js deleted file mode 100755 index b82c164c7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.animationFrame = exports.animationFrameScheduler = void 0; -var AnimationFrameAction_1 = require("./AnimationFrameAction"); -var AnimationFrameScheduler_1 = require("./AnimationFrameScheduler"); -exports.animationFrameScheduler = new AnimationFrameScheduler_1.AnimationFrameScheduler(AnimationFrameAction_1.AnimationFrameAction); -exports.animationFrame = exports.animationFrameScheduler; -//# sourceMappingURL=animationFrame.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js.map deleted file mode 100644 index 775c3741a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrame.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrame.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/animationFrame.ts"],"names":[],"mappings":";;;AAAA,+DAA8D;AAC9D,qEAAoE;AAkCvD,QAAA,uBAAuB,GAAG,IAAI,iDAAuB,CAAC,2CAAoB,CAAC,CAAC;AAK5E,QAAA,cAAc,GAAG,+BAAuB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js deleted file mode 100755 index f2405de26..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.animationFrameProvider = void 0; -var Subscription_1 = require("../Subscription"); -exports.animationFrameProvider = { - schedule: function (callback) { - var request = requestAnimationFrame; - var cancel = cancelAnimationFrame; - var delegate = exports.animationFrameProvider.delegate; - if (delegate) { - request = delegate.requestAnimationFrame; - cancel = delegate.cancelAnimationFrame; - } - var handle = request(function (timestamp) { - cancel = undefined; - callback(timestamp); - }); - return new Subscription_1.Subscription(function () { return cancel === null || cancel === void 0 ? void 0 : cancel(handle); }); - }, - requestAnimationFrame: function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var delegate = exports.animationFrameProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray([], __read(args))); - }, - cancelAnimationFrame: function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var delegate = exports.animationFrameProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray([], __read(args))); - }, - delegate: undefined, -}; -//# sourceMappingURL=animationFrameProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js.map deleted file mode 100644 index f7288d471..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/animationFrameProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrameProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/animationFrameProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,gDAA+C;AAclC,QAAA,sBAAsB,GAA2B;IAG5D,QAAQ,EAAR,UAAS,QAAQ;QACf,IAAI,OAAO,GAAG,qBAAqB,CAAC;QACpC,IAAI,MAAM,GAA4C,oBAAoB,CAAC;QACnE,IAAA,QAAQ,GAAK,8BAAsB,SAA3B,CAA4B;QAC5C,IAAI,QAAQ,EAAE;YACZ,OAAO,GAAG,QAAQ,CAAC,qBAAqB,CAAC;YACzC,MAAM,GAAG,QAAQ,CAAC,oBAAoB,CAAC;SACxC;QACD,IAAM,MAAM,GAAG,OAAO,CAAC,UAAC,SAAS;YAI/B,MAAM,GAAG,SAAS,CAAC;YACnB,QAAQ,CAAC,SAAS,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,2BAAY,CAAC,cAAM,OAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,MAAM,CAAC,EAAhB,CAAgB,CAAC,CAAC;IAClD,CAAC;IACD,qBAAqB;QAAC,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACnB,IAAA,QAAQ,GAAK,8BAAsB,SAA3B,CAA4B;QAC5C,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,qBAAqB,KAAI,qBAAqB,CAAC,wCAAI,IAAI,IAAE;IAC7E,CAAC;IACD,oBAAoB;QAAC,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QAClB,IAAA,QAAQ,GAAK,8BAAsB,SAA3B,CAA4B;QAC5C,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,oBAAoB,KAAI,oBAAoB,CAAC,wCAAI,IAAI,IAAE;IAC3E,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/asap.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/asap.js deleted file mode 100755 index 4a56552be..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/asap.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.asap = exports.asapScheduler = void 0; -var AsapAction_1 = require("./AsapAction"); -var AsapScheduler_1 = require("./AsapScheduler"); -exports.asapScheduler = new AsapScheduler_1.AsapScheduler(AsapAction_1.AsapAction); -exports.asap = exports.asapScheduler; -//# sourceMappingURL=asap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/asap.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/asap.js.map deleted file mode 100644 index 2014dc322..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/asap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"asap.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/asap.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAC1C,iDAAgD;AAqCnC,QAAA,aAAa,GAAG,IAAI,6BAAa,CAAC,uBAAU,CAAC,CAAC;AAK9C,QAAA,IAAI,GAAG,qBAAa,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/async.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/async.js deleted file mode 100755 index b856880c2..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/async.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.async = exports.asyncScheduler = void 0; -var AsyncAction_1 = require("./AsyncAction"); -var AsyncScheduler_1 = require("./AsyncScheduler"); -exports.asyncScheduler = new AsyncScheduler_1.AsyncScheduler(AsyncAction_1.AsyncAction); -exports.async = exports.asyncScheduler; -//# sourceMappingURL=async.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/async.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/async.js.map deleted file mode 100644 index d0e7845a5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/async.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/async.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,mDAAkD;AAiDrC,QAAA,cAAc,GAAG,IAAI,+BAAc,CAAC,yBAAW,CAAC,CAAC;AAKjD,QAAA,KAAK,GAAG,sBAAc,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js deleted file mode 100755 index ff0d65c94..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.dateTimestampProvider = void 0; -exports.dateTimestampProvider = { - now: function () { - return (exports.dateTimestampProvider.delegate || Date).now(); - }, - delegate: undefined, -}; -//# sourceMappingURL=dateTimestampProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js.map deleted file mode 100644 index 8c17b6ed8..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/dateTimestampProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dateTimestampProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/dateTimestampProvider.ts"],"names":[],"mappings":";;;AAMa,QAAA,qBAAqB,GAA0B;IAC1D,GAAG;QAGD,OAAO,CAAC,6BAAqB,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;IACxD,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js deleted file mode 100755 index 8aec321fe..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.immediateProvider = void 0; -var Immediate_1 = require("../util/Immediate"); -var setImmediate = Immediate_1.Immediate.setImmediate, clearImmediate = Immediate_1.Immediate.clearImmediate; -exports.immediateProvider = { - setImmediate: function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var delegate = exports.immediateProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate).apply(void 0, __spreadArray([], __read(args))); - }, - clearImmediate: function (handle) { - var delegate = exports.immediateProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle); - }, - delegate: undefined, -}; -//# sourceMappingURL=immediateProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js.map deleted file mode 100644 index 0f1f16a84..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/immediateProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"immediateProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/immediateProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA8C;AAEtC,IAAA,YAAY,GAAqB,qBAAS,aAA9B,EAAE,cAAc,GAAK,qBAAS,eAAd,CAAe;AAgBtC,QAAA,iBAAiB,GAAsB;IAGlD,YAAY;QAAC,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACV,IAAA,QAAQ,GAAK,yBAAiB,SAAtB,CAAuB;QACvC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,YAAY,KAAI,YAAY,CAAC,wCAAI,IAAI,IAAE;IAC3D,CAAC;IACD,cAAc,EAAd,UAAe,MAAM;QACX,IAAA,QAAQ,GAAK,yBAAiB,SAAtB,CAAuB;QACvC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,cAAc,KAAI,cAAc,CAAC,CAAC,MAAa,CAAC,CAAC;IACrE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js deleted file mode 100755 index e12dcaaf0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.intervalProvider = void 0; -exports.intervalProvider = { - setInterval: function (handler, timeout) { - var args = []; - for (var _i = 2; _i < arguments.length; _i++) { - args[_i - 2] = arguments[_i]; - } - var delegate = exports.intervalProvider.delegate; - if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) { - return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args))); - } - return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args))); - }, - clearInterval: function (handle) { - var delegate = exports.intervalProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle); - }, - delegate: undefined, -}; -//# sourceMappingURL=intervalProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js.map deleted file mode 100644 index b8fe75530..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/intervalProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intervalProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/intervalProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAea,QAAA,gBAAgB,GAAqB;IAGhD,WAAW,EAAX,UAAY,OAAmB,EAAE,OAAgB;QAAE,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,6BAAO;;QAChD,IAAA,QAAQ,GAAK,wBAAgB,SAArB,CAAsB;QACtC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE;YACzB,OAAO,QAAQ,CAAC,WAAW,OAApB,QAAQ,iBAAa,OAAO,EAAE,OAAO,UAAK,IAAI,IAAE;SACxD;QACD,OAAO,WAAW,8BAAC,OAAO,EAAE,OAAO,UAAK,IAAI,IAAE;IAChD,CAAC;IACD,aAAa,EAAb,UAAc,MAAM;QACV,IAAA,QAAQ,GAAK,wBAAgB,SAArB,CAAsB;QACtC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,KAAI,aAAa,CAAC,CAAC,MAAa,CAAC,CAAC;IACnE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js deleted file mode 100755 index f28dd4760..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.performanceTimestampProvider = void 0; -exports.performanceTimestampProvider = { - now: function () { - return (exports.performanceTimestampProvider.delegate || performance).now(); - }, - delegate: undefined, -}; -//# sourceMappingURL=performanceTimestampProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js.map deleted file mode 100644 index 774bfbd1d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/performanceTimestampProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"performanceTimestampProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/performanceTimestampProvider.ts"],"names":[],"mappings":";;;AAMa,QAAA,4BAA4B,GAAiC;IACxE,GAAG;QAGD,OAAO,CAAC,oCAA4B,CAAC,QAAQ,IAAI,WAAW,CAAC,CAAC,GAAG,EAAE,CAAC;IACtE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/queue.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/queue.js deleted file mode 100755 index db9e48541..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/queue.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.queue = exports.queueScheduler = void 0; -var QueueAction_1 = require("./QueueAction"); -var QueueScheduler_1 = require("./QueueScheduler"); -exports.queueScheduler = new QueueScheduler_1.QueueScheduler(QueueAction_1.QueueAction); -exports.queue = exports.queueScheduler; -//# sourceMappingURL=queue.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/queue.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/queue.js.map deleted file mode 100644 index 64600be74..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/queue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/queue.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,mDAAkD;AAiErC,QAAA,cAAc,GAAG,IAAI,+BAAc,CAAC,yBAAW,CAAC,CAAC;AAKjD,QAAA,KAAK,GAAG,sBAAc,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js deleted file mode 100755 index 893c45873..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.timeoutProvider = void 0; -exports.timeoutProvider = { - setTimeout: function (handler, timeout) { - var args = []; - for (var _i = 2; _i < arguments.length; _i++) { - args[_i - 2] = arguments[_i]; - } - var delegate = exports.timeoutProvider.delegate; - if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) { - return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args))); - } - return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args))); - }, - clearTimeout: function (handle) { - var delegate = exports.timeoutProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle); - }, - delegate: undefined, -}; -//# sourceMappingURL=timeoutProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js.map deleted file mode 100644 index efc21bc25..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timeoutProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeoutProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/timeoutProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAea,QAAA,eAAe,GAAoB;IAG9C,UAAU,EAAV,UAAW,OAAmB,EAAE,OAAgB;QAAE,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,6BAAO;;QAC/C,IAAA,QAAQ,GAAK,uBAAe,SAApB,CAAqB;QACrC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,UAAU,EAAE;YACxB,OAAO,QAAQ,CAAC,UAAU,OAAnB,QAAQ,iBAAY,OAAO,EAAE,OAAO,UAAK,IAAI,IAAE;SACvD;QACD,OAAO,UAAU,8BAAC,OAAO,EAAE,OAAO,UAAK,IAAI,IAAE;IAC/C,CAAC;IACD,YAAY,EAAZ,UAAa,MAAM;QACT,IAAA,QAAQ,GAAK,uBAAe,SAApB,CAAqB;QACrC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,YAAY,KAAI,YAAY,CAAC,CAAC,MAAa,CAAC,CAAC;IACjE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timerHandle.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timerHandle.js deleted file mode 100755 index 6480e8973..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timerHandle.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=timerHandle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timerHandle.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timerHandle.js.map deleted file mode 100644 index 8efd320a5..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/scheduler/timerHandle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timerHandle.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/timerHandle.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js deleted file mode 100755 index 61058fcf3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.iterator = exports.getSymbolIterator = void 0; -function getSymbolIterator() { - if (typeof Symbol !== 'function' || !Symbol.iterator) { - return '@@iterator'; - } - return Symbol.iterator; -} -exports.getSymbolIterator = getSymbolIterator; -exports.iterator = getSymbolIterator(); -//# sourceMappingURL=iterator.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js.map deleted file mode 100644 index 7f39958ac..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/iterator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"iterator.js","sourceRoot":"","sources":["../../../../src/internal/symbol/iterator.ts"],"names":[],"mappings":";;;AAAA,SAAgB,iBAAiB;IAC/B,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpD,OAAO,YAAmB,CAAC;KAC5B;IAED,OAAO,MAAM,CAAC,QAAQ,CAAC;AACzB,CAAC;AAND,8CAMC;AAEY,QAAA,QAAQ,GAAG,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/observable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/observable.js deleted file mode 100755 index f80dd59c4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/observable.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.observable = void 0; -exports.observable = (function () { return (typeof Symbol === 'function' && Symbol.observable) || '@@observable'; })(); -//# sourceMappingURL=observable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/observable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/observable.js.map deleted file mode 100644 index 7bf62fec1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/symbol/observable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"observable.js","sourceRoot":"","sources":["../../../../src/internal/symbol/observable.ts"],"names":[],"mappings":";;;AAMa,QAAA,UAAU,GAAoB,CAAC,cAAM,OAAA,CAAC,OAAO,MAAM,KAAK,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,cAAc,EAArE,CAAqE,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/ColdObservable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/ColdObservable.js deleted file mode 100755 index a9b18169c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/ColdObservable.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ColdObservable = void 0; -var Observable_1 = require("../Observable"); -var Subscription_1 = require("../Subscription"); -var SubscriptionLoggable_1 = require("./SubscriptionLoggable"); -var applyMixins_1 = require("../util/applyMixins"); -var Notification_1 = require("../Notification"); -var ColdObservable = (function (_super) { - __extends(ColdObservable, _super); - function ColdObservable(messages, scheduler) { - var _this = _super.call(this, function (subscriber) { - var observable = this; - var index = observable.logSubscribedFrame(); - var subscription = new Subscription_1.Subscription(); - subscription.add(new Subscription_1.Subscription(function () { - observable.logUnsubscribedFrame(index); - })); - observable.scheduleMessages(subscriber); - return subscription; - }) || this; - _this.messages = messages; - _this.subscriptions = []; - _this.scheduler = scheduler; - return _this; - } - ColdObservable.prototype.scheduleMessages = function (subscriber) { - var messagesLength = this.messages.length; - for (var i = 0; i < messagesLength; i++) { - var message = this.messages[i]; - subscriber.add(this.scheduler.schedule(function (state) { - var _a = state, notification = _a.message.notification, destination = _a.subscriber; - Notification_1.observeNotification(notification, destination); - }, message.frame, { message: message, subscriber: subscriber })); - } - }; - return ColdObservable; -}(Observable_1.Observable)); -exports.ColdObservable = ColdObservable; -applyMixins_1.applyMixins(ColdObservable, [SubscriptionLoggable_1.SubscriptionLoggable]); -//# sourceMappingURL=ColdObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/ColdObservable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/ColdObservable.js.map deleted file mode 100644 index 875114d83..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/ColdObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ColdObservable.js","sourceRoot":"","sources":["../../../../src/internal/testing/ColdObservable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,4CAA2C;AAC3C,gDAA+C;AAI/C,+DAA8D;AAC9D,mDAAkD;AAElD,gDAAsD;AAEtD;IAAuC,kCAAa;IAQlD,wBAAmB,QAAuB,EAAE,SAAoB;QAAhE,YACE,kBAAM,UAA+B,UAA2B;YAC9D,IAAM,UAAU,GAAsB,IAAW,CAAC;YAClD,IAAM,KAAK,GAAG,UAAU,CAAC,kBAAkB,EAAE,CAAC;YAC9C,IAAM,YAAY,GAAG,IAAI,2BAAY,EAAE,CAAC;YACxC,YAAY,CAAC,GAAG,CACd,IAAI,2BAAY,CAAC;gBACf,UAAU,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;YACzC,CAAC,CAAC,CACH,CAAC;YACF,UAAU,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC;YACxC,OAAO,YAAY,CAAC;QACtB,CAAC,CAAC,SAEH;QAdkB,cAAQ,GAAR,QAAQ,CAAe;QAPnC,mBAAa,GAAsB,EAAE,CAAC;QAoB3C,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;;IAC7B,CAAC;IAED,yCAAgB,GAAhB,UAAiB,UAA2B;QAC1C,IAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC;QAC5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,EAAE,CAAC,EAAE,EAAE;YACvC,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACjC,UAAU,CAAC,GAAG,CACZ,IAAI,CAAC,SAAS,CAAC,QAAQ,CACrB,UAAC,KAAK;gBACE,IAAA,KAAyD,KAAM,EAAlD,YAAY,0BAAA,EAAgB,WAAW,gBAAW,CAAC;gBACtE,kCAAmB,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;YACjD,CAAC,EACD,OAAO,CAAC,KAAK,EACb,EAAE,OAAO,SAAA,EAAE,UAAU,YAAA,EAAE,CACxB,CACF,CAAC;SACH;IACH,CAAC;IACH,qBAAC;AAAD,CAAC,AAxCD,CAAuC,uBAAU,GAwChD;AAxCY,wCAAc;AAyC3B,yBAAW,CAAC,cAAc,EAAE,CAAC,2CAAoB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/HotObservable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/HotObservable.js deleted file mode 100755 index a01c57036..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/HotObservable.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HotObservable = void 0; -var Subject_1 = require("../Subject"); -var Subscription_1 = require("../Subscription"); -var SubscriptionLoggable_1 = require("./SubscriptionLoggable"); -var applyMixins_1 = require("../util/applyMixins"); -var Notification_1 = require("../Notification"); -var HotObservable = (function (_super) { - __extends(HotObservable, _super); - function HotObservable(messages, scheduler) { - var _this = _super.call(this) || this; - _this.messages = messages; - _this.subscriptions = []; - _this.scheduler = scheduler; - return _this; - } - HotObservable.prototype._subscribe = function (subscriber) { - var subject = this; - var index = subject.logSubscribedFrame(); - var subscription = new Subscription_1.Subscription(); - subscription.add(new Subscription_1.Subscription(function () { - subject.logUnsubscribedFrame(index); - })); - subscription.add(_super.prototype._subscribe.call(this, subscriber)); - return subscription; - }; - HotObservable.prototype.setup = function () { - var subject = this; - var messagesLength = subject.messages.length; - var _loop_1 = function (i) { - (function () { - var _a = subject.messages[i], notification = _a.notification, frame = _a.frame; - subject.scheduler.schedule(function () { - Notification_1.observeNotification(notification, subject); - }, frame); - })(); - }; - for (var i = 0; i < messagesLength; i++) { - _loop_1(i); - } - }; - return HotObservable; -}(Subject_1.Subject)); -exports.HotObservable = HotObservable; -applyMixins_1.applyMixins(HotObservable, [SubscriptionLoggable_1.SubscriptionLoggable]); -//# sourceMappingURL=HotObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/HotObservable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/HotObservable.js.map deleted file mode 100644 index 449a0943d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/HotObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HotObservable.js","sourceRoot":"","sources":["../../../../src/internal/testing/HotObservable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,sCAAqC;AAErC,gDAA+C;AAI/C,+DAA8D;AAC9D,mDAAkD;AAClD,gDAAsD;AAEtD;IAAsC,iCAAU;IAQ9C,uBAAmB,QAAuB,EAAE,SAAoB;QAAhE,YACE,iBAAO,SAER;QAHkB,cAAQ,GAAR,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ptionLog.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/SubscriptionLog.js deleted file mode 100755 index 24120b04c..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/SubscriptionLog.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SubscriptionLog = void 0; -var SubscriptionLog = (function () { - function SubscriptionLog(subscribedFrame, unsubscribedFrame) { - if (unsubscribedFrame === void 0) { unsubscribedFrame = Infinity; } - this.subscribedFrame = subscribedFrame; - this.unsubscribedFrame = unsubscribedFrame; - } - return SubscriptionLog; -}()); -exports.SubscriptionLog = SubscriptionLog; -//# sourceMappingURL=SubscriptionLog.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/SubscriptionLog.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/SubscriptionLog.js.map deleted file mode 100644 index 5356258c4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/SubscriptionLog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SubscriptionLog.js","sourceRoot":"","sources":["../../../../src/internal/testing/SubscriptionLog.ts"],"names":[],"mappings":";;;AAAA;IACE,yBAAmB,eAAuB,EACvB,iBAAoC;QAApC,kCAAA,EAAA,4BAAoC;QADpC,oBAAe,GAAf,eAAe,CAAQ;QACvB,sBAAiB,GAAjB,iBAAiB,CAAmB;IACvD,CAAC;IACH,sBAAC;AAAD,CAAC,AAJD,IAIC;AAJY,0CAAe"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/SubscriptionLoggable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/SubscriptionLoggable.js deleted file mode 100755 index a457305ac..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/SubscriptionLoggable.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SubscriptionLoggable = void 0; -var SubscriptionLog_1 = require("./SubscriptionLog"); -var SubscriptionLoggable = (function () { - function SubscriptionLoggable() { - this.subscriptions = []; - } - SubscriptionLoggable.prototype.logSubscribedFrame = function () { - this.subscriptions.push(new SubscriptionLog_1.SubscriptionLog(this.scheduler.now())); - return this.subscriptions.length - 1; - }; - SubscriptionLoggable.prototype.logUnsubscribedFrame = function (index) { - var subscriptionLogs = this.subscriptions; - var oldSubscriptionLog = subscriptionLogs[index]; - subscriptionLogs[index] = new SubscriptionLog_1.SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now()); - }; - return SubscriptionLoggable; -}()); -exports.SubscriptionLoggable = SubscriptionLoggable; -//# sourceMappingURL=SubscriptionLoggable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/SubscriptionLoggable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/SubscriptionLoggable.js.map deleted file mode 100644 index debaa6d83..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/SubscriptionLoggable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SubscriptionLoggable.js","sourceRoot":"","sources":["../../../../src/internal/testing/SubscriptionLoggable.ts"],"names":[],"mappings":";;;AACA,qDAAoD;AAEpD;IAAA;QACS,kBAAa,GAAsB,EAAE,CAAC;IAiB/C,CAAC;IAbC,iDAAkB,GAAlB;QACE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,iCAAe,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,mDAAoB,GAApB,UAAqB,KAAa;QAChC,IAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC;QAC5C,IAAM,kBAAkB,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACnD,gBAAgB,CAAC,KAAK,CAAC,GAAG,IAAI,iCAAe,CAC3C,kBAAkB,CAAC,eAAe,EAClC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CACrB,CAAC;IACJ,CAAC;IACH,2BAAC;AAAD,CAAC,AAlBD,IAkBC;AAlBY,oDAAoB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestMessage.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestMessage.js deleted file mode 100755 index 7bb158d2a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestMessage.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=TestMessage.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestMessage.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestMessage.js.map deleted file mode 100644 index f91e8da13..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestMessage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TestMessage.js","sourceRoot":"","sources":["../../../../src/internal/testing/TestMessage.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestScheduler.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestScheduler.js deleted file mode 100755 index a7a49249e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestScheduler.js +++ /dev/null @@ -1,618 +0,0 @@ -"use strict"; -var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; -})(); -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TestScheduler = void 0; -var Observable_1 = require("../Observable"); -var ColdObservable_1 = require("./ColdObservable"); -var HotObservable_1 = require("./HotObservable"); -var SubscriptionLog_1 = require("./SubscriptionLog"); -var VirtualTimeScheduler_1 = require("../scheduler/VirtualTimeScheduler"); -var NotificationFactories_1 = require("../NotificationFactories"); -var dateTimestampProvider_1 = require("../scheduler/dateTimestampProvider"); -var performanceTimestampProvider_1 = require("../scheduler/performanceTimestampProvider"); -var animationFrameProvider_1 = require("../scheduler/animationFrameProvider"); -var immediateProvider_1 = require("../scheduler/immediateProvider"); -var intervalProvider_1 = require("../scheduler/intervalProvider"); -var timeoutProvider_1 = require("../scheduler/timeoutProvider"); -var defaultMaxFrame = 750; -var TestScheduler = (function (_super) { - __extends(TestScheduler, _super); - function TestScheduler(assertDeepEqual) { - var _this = _super.call(this, VirtualTimeScheduler_1.VirtualAction, defaultMaxFrame) || this; - _this.assertDeepEqual = assertDeepEqual; - _this.hotObservables = []; - _this.coldObservables = []; - _this.flushTests = []; - _this.runMode = false; - return _this; - } - TestScheduler.prototype.createTime = function (marbles) { - var indexOf = this.runMode ? marbles.trim().indexOf('|') : marbles.indexOf('|'); - if (indexOf === -1) { - throw new Error('marble diagram for time should have a completion marker "|"'); - } - return indexOf * TestScheduler.frameTimeFactor; - }; - TestScheduler.prototype.createColdObservable = function (marbles, values, error) { - if (marbles.indexOf('^') !== -1) { - throw new Error('cold observable cannot have subscription offset "^"'); - } - if (marbles.indexOf('!') !== -1) { - throw new Error('cold observable cannot have unsubscription marker "!"'); - } - var messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode); - var cold = new ColdObservable_1.ColdObservable(messages, this); - this.coldObservables.push(cold); - return cold; - }; - TestScheduler.prototype.createHotObservable = function (marbles, values, error) { - if (marbles.indexOf('!') !== -1) { - throw new Error('hot observable cannot have unsubscription marker "!"'); - } - var messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode); - var subject = new HotObservable_1.HotObservable(messages, this); - this.hotObservables.push(subject); - return subject; - }; - TestScheduler.prototype.materializeInnerObservable = function (observable, outerFrame) { - var _this = this; - var messages = []; - observable.subscribe({ - next: function (value) { - messages.push({ frame: _this.frame - outerFrame, notification: NotificationFactories_1.nextNotification(value) }); - }, - error: function (error) { - messages.push({ frame: _this.frame - outerFrame, notification: NotificationFactories_1.errorNotification(error) }); - }, - complete: function () { - messages.push({ frame: _this.frame - outerFrame, notification: NotificationFactories_1.COMPLETE_NOTIFICATION }); - }, - }); - return messages; - }; - TestScheduler.prototype.expectObservable = function (observable, subscriptionMarbles) { - var _this = this; - if (subscriptionMarbles === void 0) { subscriptionMarbles = null; } - var actual = []; - var flushTest = { actual: actual, ready: false }; - var subscriptionParsed = TestScheduler.parseMarblesAsSubscriptions(subscriptionMarbles, this.runMode); - var subscriptionFrame = subscriptionParsed.subscribedFrame === Infinity ? 0 : subscriptionParsed.subscribedFrame; - var unsubscriptionFrame = subscriptionParsed.unsubscribedFrame; - var subscription; - this.schedule(function () { - subscription = observable.subscribe({ - next: function (x) { - var value = x instanceof Observable_1.Observable ? _this.materializeInnerObservable(x, _this.frame) : x; - actual.push({ frame: _this.frame, notification: NotificationFactories_1.nextNotification(value) }); - }, - error: function (error) { - actual.push({ frame: _this.frame, notification: NotificationFactories_1.errorNotification(error) }); - }, - complete: function () { - actual.push({ frame: _this.frame, notification: NotificationFactories_1.COMPLETE_NOTIFICATION }); - }, - }); - }, subscriptionFrame); - if (unsubscriptionFrame !== Infinity) { - this.schedule(function () { return subscription.unsubscribe(); }, unsubscriptionFrame); - } - this.flushTests.push(flushTest); - var runMode = this.runMode; - return { - toBe: function (marbles, values, errorValue) { - flushTest.ready = true; - flushTest.expected = TestScheduler.parseMarbles(marbles, values, errorValue, true, runMode); - }, - toEqual: function (other) { - flushTest.ready = true; - flushTest.expected = []; - _this.schedule(function () { - subscription = other.subscribe({ - next: function (x) { - var value = x instanceof Observable_1.Observable ? _this.materializeInnerObservable(x, _this.frame) : x; - flushTest.expected.push({ frame: _this.frame, notification: NotificationFactories_1.nextNotification(value) }); - }, - error: function (error) { - flushTest.expected.push({ frame: _this.frame, notification: NotificationFactories_1.errorNotification(error) }); - }, - complete: function () { - flushTest.expected.push({ frame: _this.frame, notification: NotificationFactories_1.COMPLETE_NOTIFICATION }); - }, - }); - }, subscriptionFrame); - }, - }; - }; - TestScheduler.prototype.expectSubscriptions = function (actualSubscriptionLogs) { - var flushTest = { actual: actualSubscriptionLogs, ready: false }; - this.flushTests.push(flushTest); - var runMode = this.runMode; - return { - toBe: function (marblesOrMarblesArray) { - var marblesArray = typeof marblesOrMarblesArray === 'string' ? [marblesOrMarblesArray] : marblesOrMarblesArray; - flushTest.ready = true; - flushTest.expected = marblesArray - .map(function (marbles) { return TestScheduler.parseMarblesAsSubscriptions(marbles, runMode); }) - .filter(function (marbles) { return marbles.subscribedFrame !== Infinity; }); - }, - }; - }; - TestScheduler.prototype.flush = function () { - var _this = this; - var hotObservables = this.hotObservables; - while (hotObservables.length > 0) { - hotObservables.shift().setup(); - } - _super.prototype.flush.call(this); - this.flushTests = this.flushTests.filter(function (test) { - if (test.ready) { - _this.assertDeepEqual(test.actual, test.expected); - return false; - } - return true; - }); - }; - TestScheduler.parseMarblesAsSubscriptions = function (marbles, runMode) { - var _this = this; - if (runMode === void 0) { runMode = false; } - if (typeof marbles !== 'string') { - return new SubscriptionLog_1.SubscriptionLog(Infinity); - } - var characters = __spreadArray([], __read(marbles)); - var len = characters.length; - var groupStart = -1; - var subscriptionFrame = Infinity; - var unsubscriptionFrame = Infinity; - var frame = 0; - var _loop_1 = function (i) { - var nextFrame = frame; - var advanceFrameBy = function (count) { - nextFrame += count * _this.frameTimeFactor; - }; - var c = characters[i]; - switch (c) { - case ' ': - if (!runMode) { - advanceFrameBy(1); - } - break; - case '-': - advanceFrameBy(1); - break; - case '(': - groupStart = frame; - advanceFrameBy(1); - break; - case ')': - groupStart = -1; - advanceFrameBy(1); - break; - case '^': - if (subscriptionFrame !== Infinity) { - throw new Error("found a second subscription point '^' in a " + 'subscription marble diagram. There can only be one.'); - } - subscriptionFrame = groupStart > -1 ? groupStart : frame; - advanceFrameBy(1); - break; - case '!': - if (unsubscriptionFrame !== Infinity) { - throw new Error("found a second unsubscription point '!' in a " + 'subscription marble diagram. There can only be one.'); - } - unsubscriptionFrame = groupStart > -1 ? groupStart : frame; - break; - default: - if (runMode && c.match(/^[0-9]$/)) { - if (i === 0 || characters[i - 1] === ' ') { - var buffer = characters.slice(i).join(''); - var match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /); - if (match) { - i += match[0].length - 1; - var duration = parseFloat(match[1]); - var unit = match[2]; - var durationInMs = void 0; - switch (unit) { - case 'ms': - durationInMs = duration; - break; - case 's': - durationInMs = duration * 1000; - break; - case 'm': - durationInMs = duration * 1000 * 60; - break; - default: - break; - } - advanceFrameBy(durationInMs / this_1.frameTimeFactor); - break; - } - } - } - throw new Error("there can only be '^' and '!' markers in a " + "subscription marble diagram. Found instead '" + c + "'."); - } - frame = nextFrame; - out_i_1 = i; - }; - var this_1 = this, out_i_1; - for (var i = 0; i < len; i++) { - _loop_1(i); - i = out_i_1; - } - if (unsubscriptionFrame < 0) { - return new SubscriptionLog_1.SubscriptionLog(subscriptionFrame); - } - else { - return new SubscriptionLog_1.SubscriptionLog(subscriptionFrame, unsubscriptionFrame); - } - }; - TestScheduler.parseMarbles = function (marbles, values, errorValue, materializeInnerObservables, runMode) { - var _this = this; - if (materializeInnerObservables === void 0) { materializeInnerObservables = false; } - if (runMode === void 0) { runMode = false; } - if (marbles.indexOf('!') !== -1) { - throw new Error('conventional marble diagrams cannot have the ' + 'unsubscription marker "!"'); - } - var characters = __spreadArray([], __read(marbles)); - var len = characters.length; - var testMessages = []; - var subIndex = runMode ? marbles.replace(/^[ ]+/, '').indexOf('^') : marbles.indexOf('^'); - var frame = subIndex === -1 ? 0 : subIndex * -this.frameTimeFactor; - var getValue = typeof values !== 'object' - ? function (x) { return x; } - : function (x) { - if (materializeInnerObservables && values[x] instanceof ColdObservable_1.ColdObservable) { - return values[x].messages; - } - return values[x]; - }; - var groupStart = -1; - var _loop_2 = function (i) { - var nextFrame = frame; - var advanceFrameBy = function (count) { - nextFrame += count * _this.frameTimeFactor; - }; - var notification = void 0; - var c = characters[i]; - switch (c) { - case ' ': - if (!runMode) { - advanceFrameBy(1); - } - break; - case '-': - advanceFrameBy(1); - break; - case '(': - groupStart = frame; - advanceFrameBy(1); - break; - case ')': - groupStart = -1; - advanceFrameBy(1); - break; - case '|': - notification = NotificationFactories_1.COMPLETE_NOTIFICATION; - advanceFrameBy(1); - break; - case '^': - advanceFrameBy(1); - break; - case '#': - notification = NotificationFactories_1.errorNotification(errorValue || 'error'); - advanceFrameBy(1); - break; - default: - if (runMode && c.match(/^[0-9]$/)) { - if (i === 0 || characters[i - 1] === ' ') { - var buffer = characters.slice(i).join(''); - var match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /); - if (match) { - i += match[0].length - 1; - var duration = parseFloat(match[1]); - var unit = match[2]; - var durationInMs = void 0; - switch (unit) { - case 'ms': - durationInMs = duration; - break; - case 's': - durationInMs = duration * 1000; - break; - case 'm': - durationInMs = duration * 1000 * 60; - break; - default: - break; - } - advanceFrameBy(durationInMs / this_2.frameTimeFactor); - break; - } - } - } - notification = NotificationFactories_1.nextNotification(getValue(c)); - advanceFrameBy(1); - break; - } - if (notification) { - testMessages.push({ frame: groupStart > -1 ? groupStart : frame, notification: notification }); - } - frame = nextFrame; - out_i_2 = i; - }; - var this_2 = this, out_i_2; - for (var i = 0; i < len; i++) { - _loop_2(i); - i = out_i_2; - } - return testMessages; - }; - TestScheduler.prototype.createAnimator = function () { - var _this = this; - if (!this.runMode) { - throw new Error('animate() must only be used in run mode'); - } - var lastHandle = 0; - var map; - var delegate = { - requestAnimationFrame: function (callback) { - if (!map) { - throw new Error('animate() was not called within run()'); - } - var handle = ++lastHandle; - map.set(handle, callback); - return handle; - }, - cancelAnimationFrame: function (handle) { - if (!map) { - throw new Error('animate() was not called within run()'); - } - map.delete(handle); - }, - }; - var animate = function (marbles) { - var e_1, _a; - if (map) { - throw new Error('animate() must not be called more than once within run()'); - } - if (/[|#]/.test(marbles)) { - throw new Error('animate() must not complete or error'); - } - map = new Map(); - var messages = TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true); - try { - for (var messages_1 = __values(messages), messages_1_1 = messages_1.next(); !messages_1_1.done; messages_1_1 = messages_1.next()) { - var message = messages_1_1.value; - _this.schedule(function () { - var e_2, _a; - var now = _this.now(); - var callbacks = Array.from(map.values()); - map.clear(); - try { - for (var callbacks_1 = (e_2 = void 0, __values(callbacks)), callbacks_1_1 = callbacks_1.next(); !callbacks_1_1.done; callbacks_1_1 = callbacks_1.next()) { - var callback = callbacks_1_1.value; - callback(now); - } - } - catch (e_2_1) { e_2 = { error: e_2_1 }; } - finally { - try { - if (callbacks_1_1 && !callbacks_1_1.done && (_a = callbacks_1.return)) _a.call(callbacks_1); - } - finally { if (e_2) throw e_2.error; } - } - }, message.frame); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (messages_1_1 && !messages_1_1.done && (_a = messages_1.return)) _a.call(messages_1); - } - finally { if (e_1) throw e_1.error; } - } - }; - return { animate: animate, delegate: delegate }; - }; - TestScheduler.prototype.createDelegates = function () { - var _this = this; - var lastHandle = 0; - var scheduleLookup = new Map(); - var run = function () { - var now = _this.now(); - var scheduledRecords = Array.from(scheduleLookup.values()); - var scheduledRecordsDue = scheduledRecords.filter(function (_a) { - var due = _a.due; - return due <= now; - }); - var dueImmediates = scheduledRecordsDue.filter(function (_a) { - var type = _a.type; - return type === 'immediate'; - }); - if (dueImmediates.length > 0) { - var _a = dueImmediates[0], handle = _a.handle, handler = _a.handler; - scheduleLookup.delete(handle); - handler(); - return; - } - var dueIntervals = scheduledRecordsDue.filter(function (_a) { - var type = _a.type; - return type === 'interval'; - }); - if (dueIntervals.length > 0) { - var firstDueInterval = dueIntervals[0]; - var duration = firstDueInterval.duration, handler = firstDueInterval.handler; - firstDueInterval.due = now + duration; - firstDueInterval.subscription = _this.schedule(run, duration); - handler(); - return; - } - var dueTimeouts = scheduledRecordsDue.filter(function (_a) { - var type = _a.type; - return type === 'timeout'; - }); - if (dueTimeouts.length > 0) { - var _b = dueTimeouts[0], handle = _b.handle, handler = _b.handler; - scheduleLookup.delete(handle); - handler(); - return; - } - throw new Error('Expected a due immediate or interval'); - }; - var immediate = { - setImmediate: function (handler) { - var handle = ++lastHandle; - scheduleLookup.set(handle, { - due: _this.now(), - duration: 0, - handle: handle, - handler: handler, - subscription: _this.schedule(run, 0), - type: 'immediate', - }); - return handle; - }, - clearImmediate: function (handle) { - var value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - var interval = { - setInterval: function (handler, duration) { - if (duration === void 0) { duration = 0; } - var handle = ++lastHandle; - scheduleLookup.set(handle, { - due: _this.now() + duration, - duration: duration, - handle: handle, - handler: handler, - subscription: _this.schedule(run, duration), - type: 'interval', - }); - return handle; - }, - clearInterval: function (handle) { - var value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - var timeout = { - setTimeout: function (handler, duration) { - if (duration === void 0) { duration = 0; } - var handle = ++lastHandle; - scheduleLookup.set(handle, { - due: _this.now() + duration, - duration: duration, - handle: handle, - handler: handler, - subscription: _this.schedule(run, duration), - type: 'timeout', - }); - return handle; - }, - clearTimeout: function (handle) { - var value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - return { immediate: immediate, interval: interval, timeout: timeout }; - }; - TestScheduler.prototype.run = function (callback) { - var prevFrameTimeFactor = TestScheduler.frameTimeFactor; - var prevMaxFrames = this.maxFrames; - TestScheduler.frameTimeFactor = 1; - this.maxFrames = Infinity; - this.runMode = true; - var animator = this.createAnimator(); - var delegates = this.createDelegates(); - animationFrameProvider_1.animationFrameProvider.delegate = animator.delegate; - dateTimestampProvider_1.dateTimestampProvider.delegate = this; - immediateProvider_1.immediateProvider.delegate = delegates.immediate; - intervalProvider_1.intervalProvider.delegate = delegates.interval; - timeoutProvider_1.timeoutProvider.delegate = delegates.timeout; - performanceTimestampProvider_1.performanceTimestampProvider.delegate = this; - var helpers = { - cold: this.createColdObservable.bind(this), - hot: this.createHotObservable.bind(this), - flush: this.flush.bind(this), - time: this.createTime.bind(this), - expectObservable: this.expectObservable.bind(this), - expectSubscriptions: this.expectSubscriptions.bind(this), - animate: animator.animate, - }; - try { - var ret = callback(helpers); - this.flush(); - return ret; - } - finally { - TestScheduler.frameTimeFactor = prevFrameTimeFactor; - this.maxFrames = prevMaxFrames; - this.runMode = false; - animationFrameProvider_1.animationFrameProvider.delegate = undefined; - dateTimestampProvider_1.dateTimestampProvider.delegate = undefined; - immediateProvider_1.immediateProvider.delegate = undefined; - intervalProvider_1.intervalProvider.delegate = undefined; - timeoutProvider_1.timeoutProvider.delegate = undefined; - performanceTimestampProvider_1.performanceTimestampProvider.delegate = undefined; - } - }; - TestScheduler.frameTimeFactor = 10; - return TestScheduler; -}(VirtualTimeScheduler_1.VirtualTimeScheduler)); -exports.TestScheduler = TestScheduler; -//# sourceMappingURL=TestScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestScheduler.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestScheduler.js.map deleted file mode 100644 index ea27091a8..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/testing/TestScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TestScheduler.js","sourceRoot":"","sources":["../../../../src/internal/testing/TestScheduler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAA2C;AAC3C,mDAAkD;AAClD,iDAAgD;AAEhD,qDAAoD;AAEpD,0EAAwF;AAExF,kEAAsG;AACtG,4EAA2E;AAC3E,0FAAyF;AACzF,8EAA6E;AAE7E,oEAAmE;AACnE,kEAAiE;AACjE,gEAA+D;AAE/D,IAAM,eAAe,GAAW,GAAG,CAAC;AAqBpC;IAAmC,iCAAoB;IAkCrD,uBAAmB,eAA+D;QAAlF,YACE,kBAAM,oCAAa,EAAE,eAAe,CAAC,SACtC;QAFkB,qBAAe,GAAf,eAAe,CAAgD;QAtBlE,oBAAc,GAAyB,EAAE,CAAC;QAK1C,qBAAe,GAA0B,EAAE,CAAC;QAKpD,gBAAU,GAAoB,EAAE,CAAC;QAMjC,aAAO,GAAG,KAAK,CAAC;;IAQxB,CAAC;IAED,kCAAU,GAAV,UAAW,OAAe;QACxB,IAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,C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AAQ,GAAG,SAAS,CAAC;YACvC,mCAAgB,CAAC,QAAQ,GAAG,SAAS,CAAC;YACtC,iCAAe,CAAC,QAAQ,GAAG,SAAS,CAAC;YACrC,2DAA4B,CAAC,QAAQ,GAAG,SAAS,CAAC;SACnD;IACH,CAAC;IAtoBM,6BAAe,GAAG,EAAE,CAAC;IAuoB9B,oBAAC;CAAA,AA9oBD,CAAmC,2CAAoB,GA8oBtD;AA9oBY,sCAAa"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/types.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/types.js deleted file mode 100755 index 11e638d1e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/types.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/types.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/types.js.map deleted file mode 100644 index 493d291ce..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/internal/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js deleted file mode 100755 index 8a661e671..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ArgumentOutOfRangeError = void 0; -var createErrorClass_1 = require("./createErrorClass"); -exports.ArgumentOutOfRangeError = createErrorClass_1.createErrorClass(function (_super) { - return function ArgumentOutOfRangeErrorImpl() { - _super(this); - this.name = 'ArgumentOutOfRangeError'; - this.message = 'argument out of range'; - }; -}); -//# sourceMappingURL=ArgumentOutOfRangeError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js.map deleted file mode 100644 index 74c76b50a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ArgumentOutOfRangeError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ArgumentOutOfRangeError.js","sourceRoot":"","sources":["../../../../src/internal/util/ArgumentOutOfRangeError.ts"],"names":[],"mappings":";;;AAAA,uDAAsD;AAsBzC,QAAA,uBAAuB,GAAgC,mCAAgB,CAClF,UAAC,MAAM;IACL,OAAA,SAAS,2BAA2B;QAClC,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,uBAAuB,CAAC;IACzC,CAAC;AAJD,CAIC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js deleted file mode 100755 index 6d54d7fdd..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EmptyError = void 0; -var createErrorClass_1 = require("./createErrorClass"); -exports.EmptyError = createErrorClass_1.createErrorClass(function (_super) { return function EmptyErrorImpl() { - _super(this); - this.name = 'EmptyError'; - this.message = 'no elements in sequence'; -}; }); -//# sourceMappingURL=EmptyError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js.map deleted file mode 100644 index f782eda88..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/EmptyError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EmptyError.js","sourceRoot":"","sources":["../../../../src/internal/util/EmptyError.ts"],"names":[],"mappings":";;;AAAA,uDAAsD;AAwBzC,QAAA,UAAU,GAAmB,mCAAgB,CAAC,UAAC,MAAM,IAAK,OAAA,SAAS,cAAc;IAC5F,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IACzB,IAAI,CAAC,OAAO,GAAG,yBAAyB,CAAC;AAC3C,CAAC,EAJsE,CAItE,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/Immediate.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/Immediate.js deleted file mode 100755 index 34dd82ae4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/Immediate.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TestTools = exports.Immediate = void 0; -var nextHandle = 1; -var resolved; -var activeHandles = {}; -function findAndClearHandle(handle) { - if (handle in activeHandles) { - delete activeHandles[handle]; - return true; - } - return false; -} -exports.Immediate = { - setImmediate: function (cb) { - var handle = nextHandle++; - activeHandles[handle] = true; - if (!resolved) { - resolved = Promise.resolve(); - } - resolved.then(function () { return findAndClearHandle(handle) && cb(); }); - return handle; - }, - clearImmediate: function (handle) { - findAndClearHandle(handle); - }, -}; -exports.TestTools = { - pending: function () { - return Object.keys(activeHandles).length; - } -}; -//# sourceMappingURL=Immediate.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/Immediate.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/Immediate.js.map deleted file mode 100644 index 60a8566d7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/Immediate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Immediate.js","sourceRoot":"","sources":["../../../../src/internal/util/Immediate.ts"],"names":[],"mappings":";;;AAAA,IAAI,UAAU,GAAG,CAAC,CAAC;AAEnB,IAAI,QAAsB,CAAC;AAC3B,IAAM,aAAa,GAA2B,EAAE,CAAC;AAOjD,SAAS,kBAAkB,CAAC,MAAc;IACxC,IAAI,MAAM,IAAI,aAAa,EAAE;QAC3B,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;KACb;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAKY,QAAA,SAAS,GAAG;IACvB,YAAY,EAAZ,UAAa,EAAc;QACzB,IAAM,MAAM,GAAG,UAAU,EAAE,CAAC;QAC5B,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,QAAQ,EAAE;YACb,QAAQ,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;SAC9B;QACD,QAAQ,CAAC,IAAI,CAAC,cAAM,OAAA,kBAAkB,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,EAAlC,CAAkC,CAAC,CAAC;QACxD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,cAAc,EAAd,UAAe,MAAc;QAC3B,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CACF,CAAC;AAKW,QAAA,SAAS,GAAG;IACvB,OAAO;QACL,OAAO,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC;IAC3C,CAAC;CACF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js deleted file mode 100755 index 0c9c88be4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NotFoundError = void 0; -var createErrorClass_1 = require("./createErrorClass"); -exports.NotFoundError = createErrorClass_1.createErrorClass(function (_super) { - return function NotFoundErrorImpl(message) { - _super(this); - this.name = 'NotFoundError'; - this.message = message; - }; -}); -//# sourceMappingURL=NotFoundError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js.map deleted file mode 100644 index 32a74bd00..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/NotFoundError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NotFoundError.js","sourceRoot":"","sources":["../../../../src/internal/util/NotFoundError.ts"],"names":[],"mappings":";;;AAAA,uDAAsD;AAoBzC,QAAA,aAAa,GAAsB,mCAAgB,CAC9D,UAAC,MAAM;IACL,OAAA,SAAS,iBAAiB,CAAY,OAAe;QACnD,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;AAJD,CAIC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js deleted file mode 100755 index b4a968648..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ObjectUnsubscribedError = void 0; -var createErrorClass_1 = require("./createErrorClass"); -exports.ObjectUnsubscribedError = createErrorClass_1.createErrorClass(function (_super) { - return function ObjectUnsubscribedErrorImpl() { - _super(this); - this.name = 'ObjectUnsubscribedError'; - this.message = 'object unsubscribed'; - }; -}); -//# sourceMappingURL=ObjectUnsubscribedError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js.map deleted file mode 100644 index a24c2ce0a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/ObjectUnsubscribedError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ObjectUnsubscribedError.js","sourceRoot":"","sources":["../../../../src/internal/util/ObjectUnsubscribedError.ts"],"names":[],"mappings":";;;AAAA,uDAAsD;AAqBzC,QAAA,uBAAuB,GAAgC,mCAAgB,CAClF,UAAC,MAAM;IACL,OAAA,SAAS,2BAA2B;QAClC,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,qBAAqB,CAAC;IACvC,CAAC;AAJD,CAIC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js deleted file mode 100755 index 1875ff5eb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SequenceError = void 0; -var createErrorClass_1 = require("./createErrorClass"); -exports.SequenceError = createErrorClass_1.createErrorClass(function (_super) { - return function SequenceErrorImpl(message) { - _super(this); - this.name = 'SequenceError'; - this.message = message; - }; -}); -//# sourceMappingURL=SequenceError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js.map deleted file mode 100644 index 7bc006631..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/SequenceError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SequenceError.js","sourceRoot":"","sources":["../../../../src/internal/util/SequenceError.ts"],"names":[],"mappings":";;;AAAA,uDAAsD;AAoBzC,QAAA,aAAa,GAAsB,mCAAgB,CAC9D,UAAC,MAAM;IACL,OAAA,SAAS,iBAAiB,CAAY,OAAe;QACnD,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;AAJD,CAIC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js deleted file mode 100755 index 4ce42750a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnsubscriptionError = void 0; -var createErrorClass_1 = require("./createErrorClass"); -exports.UnsubscriptionError = createErrorClass_1.createErrorClass(function (_super) { - return function UnsubscriptionErrorImpl(errors) { - _super(this); - this.message = errors - ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return i + 1 + ") " + err.toString(); }).join('\n ') - : ''; - this.name = 'UnsubscriptionError'; - this.errors = errors; - }; -}); -//# sourceMappingURL=UnsubscriptionError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js.map deleted file mode 100644 index ce49bb6b4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/UnsubscriptionError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UnsubscriptionError.js","sourceRoot":"","sources":["../../../../src/internal/util/UnsubscriptionError.ts"],"names":[],"mappings":";;;AAAA,uDAAsD;AAkBzC,QAAA,mBAAmB,GAA4B,mCAAgB,CAC1E,UAAC,MAAM;IACL,OAAA,SAAS,uBAAuB,CAAY,MAA0B;QACpE,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,MAAM;YACnB,CAAC,CAAI,MAAM,CAAC,MAAM,iDACxB,MAAM,CAAC,GAAG,CAAC,UAAC,GAAG,EAAE,CAAC,IAAK,OAAG,CAAC,GAAG,CAAC,UAAK,GAAG,CAAC,QAAQ,EAAI,EAA7B,CAA6B,CAAC,CAAC,IAAI,CAAC,MAAM,CAAG;YAC9D,CAAC,CAAC,EAAE,CAAC;QACP,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;AARD,CAQC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/applyMixins.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/applyMixins.js deleted file mode 100755 index 80c7044e7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/applyMixins.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.applyMixins = void 0; -function applyMixins(derivedCtor, baseCtors) { - for (var i = 0, len = baseCtors.length; i < len; i++) { - var baseCtor = baseCtors[i]; - var propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype); - for (var j = 0, len2 = propertyKeys.length; j < len2; j++) { - var name_1 = propertyKeys[j]; - derivedCtor.prototype[name_1] = baseCtor.prototype[name_1]; - } - } -} -exports.applyMixins = applyMixins; -//# sourceMappingURL=applyMixins.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/applyMixins.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/applyMixins.js.map deleted file mode 100644 index 642813df4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/applyMixins.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"applyMixins.js","sourceRoot":"","sources":["../../../../src/internal/util/applyMixins.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CAAC,WAAgB,EAAE,SAAgB;IAC5D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;QACpD,IAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAM,YAAY,GAAG,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACpE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE;YACzD,IAAM,MAAI,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;YAC7B,WAAW,CAAC,SAAS,CAAC,MAAI,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,MAAI,CAAC,CAAC;SACxD;KACF;AACH,CAAC;AATD,kCASC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/args.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/args.js deleted file mode 100755 index e0b354871..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/args.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.popNumber = exports.popScheduler = exports.popResultSelector = void 0; -var isFunction_1 = require("./isFunction"); -var isScheduler_1 = require("./isScheduler"); -function last(arr) { - return arr[arr.length - 1]; -} -function popResultSelector(args) { - return isFunction_1.isFunction(last(args)) ? args.pop() : undefined; -} -exports.popResultSelector = popResultSelector; -function popScheduler(args) { - return isScheduler_1.isScheduler(last(args)) ? args.pop() : undefined; -} -exports.popScheduler = popScheduler; -function popNumber(args, defaultValue) { - return typeof last(args) === 'number' ? args.pop() : defaultValue; -} -exports.popNumber = popNumber; -//# sourceMappingURL=args.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/args.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/args.js.map deleted file mode 100644 index 78419e693..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/args.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"args.js","sourceRoot":"","sources":["../../../../src/internal/util/args.ts"],"names":[],"mappings":";;;AACA,2CAA0C;AAC1C,6CAA4C;AAE5C,SAAS,IAAI,CAAI,GAAQ;IACvB,OAAO,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC7B,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAW;IAC3C,OAAO,uBAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACzD,CAAC;AAFD,8CAEC;AAED,SAAgB,YAAY,CAAC,IAAW;IACtC,OAAO,yBAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1D,CAAC;AAFD,oCAEC;AAED,SAAgB,SAAS,CAAC,IAAW,EAAE,YAAoB;IACzD,OAAO,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAG,CAAC,CAAC,CAAC,YAAY,CAAC;AACrE,CAAC;AAFD,8BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js deleted file mode 100755 index f82fa978e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.argsArgArrayOrObject = void 0; -var isArray = Array.isArray; -var getPrototypeOf = Object.getPrototypeOf, objectProto = Object.prototype, getKeys = Object.keys; -function argsArgArrayOrObject(args) { - if (args.length === 1) { - var first_1 = args[0]; - if (isArray(first_1)) { - return { args: first_1, keys: null }; - } - if (isPOJO(first_1)) { - var keys = getKeys(first_1); - return { - args: keys.map(function (key) { return first_1[key]; }), - keys: keys, - }; - } - } - return { args: args, keys: null }; -} -exports.argsArgArrayOrObject = argsArgArrayOrObject; -function isPOJO(obj) { - return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto; -} -//# sourceMappingURL=argsArgArrayOrObject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js.map deleted file mode 100644 index 377529daa..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsArgArrayOrObject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"argsArgArrayOrObject.js","sourceRoot":"","sources":["../../../../src/internal/util/argsArgArrayOrObject.ts"],"names":[],"mappings":";;;AAAQ,IAAA,OAAO,GAAK,KAAK,QAAV,CAAW;AAClB,IAAA,cAAc,GAA4C,MAAM,eAAlD,EAAa,WAAW,GAAoB,MAAM,UAA1B,EAAQ,OAAO,GAAK,MAAM,KAAX,CAAY;AAQzE,SAAgB,oBAAoB,CAAiC,IAAuB;IAC1F,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACrB,IAAM,OAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,OAAO,CAAC,OAAK,CAAC,EAAE;YAClB,OAAO,EAAE,IAAI,EAAE,OAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;SACpC;QACD,IAAI,MAAM,CAAC,OAAK,CAAC,EAAE;YACjB,IAAM,IAAI,GAAG,OAAO,CAAC,OAAK,CAAC,CAAC;YAC5B,OAAO;gBACL,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,OAAK,CAAC,GAAG,CAAC,EAAV,CAAU,CAAC;gBACnC,IAAI,MAAA;aACL,CAAC;SACH;KACF;IAED,OAAO,EAAE,IAAI,EAAE,IAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC3C,CAAC;AAhBD,oDAgBC;AAED,SAAS,MAAM,CAAC,GAAQ;IACtB,OAAO,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,cAAc,CAAC,GAAG,CAAC,KAAK,WAAW,CAAC;AAC/E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js deleted file mode 100755 index 8048185e6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.argsOrArgArray = void 0; -var isArray = Array.isArray; -function argsOrArgArray(args) { - return args.length === 1 && isArray(args[0]) ? args[0] : args; -} -exports.argsOrArgArray = argsOrArgArray; -//# sourceMappingURL=argsOrArgArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js.map deleted file mode 100644 index c4fb82963..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/argsOrArgArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"argsOrArgArray.js","sourceRoot":"","sources":["../../../../src/internal/util/argsOrArgArray.ts"],"names":[],"mappings":";;;AAAQ,IAAA,OAAO,GAAK,KAAK,QAAV,CAAW;AAM1B,SAAgB,cAAc,CAAI,IAAiB;IACjD,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,IAAY,CAAC;AACzE,CAAC;AAFD,wCAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js deleted file mode 100755 index 38eb259f0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.arrRemove = void 0; -function arrRemove(arr, item) { - if (arr) { - var index = arr.indexOf(item); - 0 <= index && arr.splice(index, 1); - } -} -exports.arrRemove = arrRemove; -//# sourceMappingURL=arrRemove.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js.map deleted file mode 100644 index a6fab5f04..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/arrRemove.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"arrRemove.js","sourceRoot":"","sources":["../../../../src/internal/util/arrRemove.ts"],"names":[],"mappings":";;;AAKA,SAAgB,SAAS,CAAI,GAA2B,EAAE,IAAO;IAC/D,IAAI,GAAG,EAAE;QACP,IAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC,IAAI,KAAK,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;KACpC;AACH,CAAC;AALD,8BAKC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js deleted file mode 100755 index 98a6e5247..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createErrorClass = void 0; -function createErrorClass(createImpl) { - var _super = function (instance) { - Error.call(instance); - instance.stack = new Error().stack; - }; - var ctorFunc = createImpl(_super); - ctorFunc.prototype = Object.create(Error.prototype); - ctorFunc.prototype.constructor = ctorFunc; - return ctorFunc; -} -exports.createErrorClass = createErrorClass; -//# sourceMappingURL=createErrorClass.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js.map deleted file mode 100644 index 008606492..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createErrorClass.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createErrorClass.js","sourceRoot":"","sources":["../../../../src/internal/util/createErrorClass.ts"],"names":[],"mappings":";;;AASA,SAAgB,gBAAgB,CAAI,UAAgC;IAClE,IAAM,MAAM,GAAG,UAAC,QAAa;QAC3B,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrB,QAAQ,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC;IACrC,CAAC,CAAC;IAEF,IAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IACpC,QAAQ,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACpD,QAAQ,CAAC,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC;IAC1C,OAAO,QAAQ,CAAC;AAClB,CAAC;AAVD,4CAUC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createObject.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createObject.js deleted file mode 100755 index 2b6df93c1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createObject.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createObject = void 0; -function createObject(keys, values) { - return keys.reduce(function (result, key, i) { return ((result[key] = values[i]), result); }, {}); -} -exports.createObject = createObject; -//# sourceMappingURL=createObject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createObject.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createObject.js.map deleted file mode 100644 index e5c5df673..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/createObject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createObject.js","sourceRoot":"","sources":["../../../../src/internal/util/createObject.ts"],"names":[],"mappings":";;;AAAA,SAAgB,YAAY,CAAC,IAAc,EAAE,MAAa;IACxD,OAAO,IAAI,CAAC,MAAM,CAAC,UAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAnC,CAAmC,EAAE,EAAS,CAAC,CAAC;AACzF,CAAC;AAFD,oCAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/errorContext.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/errorContext.js deleted file mode 100755 index 7918da154..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/errorContext.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.captureError = exports.errorContext = void 0; -var config_1 = require("../config"); -var context = null; -function errorContext(cb) { - if (config_1.config.useDeprecatedSynchronousErrorHandling) { - var isRoot = !context; - if (isRoot) { - context = { errorThrown: false, error: null }; - } - cb(); - if (isRoot) { - var _a = context, errorThrown = _a.errorThrown, error = _a.error; - context = null; - if (errorThrown) { - throw error; - } - } - } - else { - cb(); - } -} -exports.errorContext = errorContext; -function captureError(err) { - if (config_1.config.useDeprecatedSynchronousErrorHandling && context) { - context.errorThrown = true; - context.error = err; - } -} -exports.captureError = captureError; -//# sourceMappingURL=errorContext.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/errorContext.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/errorContext.js.map deleted file mode 100644 index 6b98e6fa3..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/errorContext.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errorContext.js","sourceRoot":"","sources":["../../../../src/internal/util/errorContext.ts"],"names":[],"mappings":";;;AAAA,oCAAmC;AAEnC,IAAI,OAAO,GAAgD,IAAI,CAAC;AAShE,SAAgB,YAAY,CAAC,EAAc;IACzC,IAAI,eAAM,CAAC,qCAAqC,EAAE;QAChD,IAAM,MAAM,GAAG,CAAC,OAAO,CAAC;QACxB,IAAI,MAAM,EAAE;YACV,OAAO,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;SAC/C;QACD,EAAE,EAAE,CAAC;QACL,IAAI,MAAM,EAAE;YACJ,IAAA,KAAyB,OAAQ,EAA/B,WAAW,iBAAA,EAAE,KAAK,WAAa,CAAC;YACxC,OAAO,GAAG,IAAI,CAAC;YACf,IAAI,WAAW,EAAE;gBACf,MAAM,KAAK,CAAC;aACb;SACF;KACF;SAAM;QAGL,EAAE,EAAE,CAAC;KACN;AACH,CAAC;AAnBD,oCAmBC;AAMD,SAAgB,YAAY,CAAC,GAAQ;IACnC,IAAI,eAAM,CAAC,qCAAqC,IAAI,OAAO,EAAE;QAC3D,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;QAC3B,OAAO,CAAC,KAAK,GAAG,GAAG,CAAC;KACrB;AACH,CAAC;AALD,oCAKC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js deleted file mode 100755 index 8eda971be..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.executeSchedule = void 0; -function executeSchedule(parentSubscription, scheduler, work, delay, repeat) { - if (delay === void 0) { delay = 0; } - if (repeat === void 0) { repeat = false; } - var scheduleSubscription = scheduler.schedule(function () { - work(); - if (repeat) { - parentSubscription.add(this.schedule(null, delay)); - } - else { - this.unsubscribe(); - } - }, delay); - parentSubscription.add(scheduleSubscription); - if (!repeat) { - return scheduleSubscription; - } -} -exports.executeSchedule = executeSchedule; -//# sourceMappingURL=executeSchedule.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js.map deleted file mode 100644 index 8cf548da8..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/executeSchedule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"executeSchedule.js","sourceRoot":"","sources":["../../../../src/internal/util/executeSchedule.ts"],"names":[],"mappings":";;;AAkBA,SAAgB,eAAe,CAC7B,kBAAgC,EAChC,SAAwB,EACxB,IAAgB,EAChB,KAAS,EACT,MAAc;IADd,sBAAA,EAAA,SAAS;IACT,uBAAA,EAAA,cAAc;IAEd,IAAM,oBAAoB,GAAG,SAAS,CAAC,QAAQ,CAAC;QAC9C,IAAI,EAAE,CAAC;QACP,IAAI,MAAM,EAAE;YACV,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;SACpD;aAAM;YACL,IAAI,CAAC,WAAW,EAAE,CAAC;SACpB;IACH,CAAC,EAAE,KAAK,CAAC,CAAC;IAEV,kBAAkB,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAE7C,IAAI,CAAC,MAAM,EAAE;QAKX,OAAO,oBAAoB,CAAC;KAC7B;AACH,CAAC;AAzBD,0CAyBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/identity.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/identity.js deleted file mode 100755 index da61150cd..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/identity.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.identity = void 0; -function identity(x) { - return x; -} -exports.identity = identity; -//# sourceMappingURL=identity.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/identity.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/identity.js.map deleted file mode 100644 index a1e3fd421..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/identity.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../../src/internal/util/identity.ts"],"names":[],"mappings":";;;AA0CA,SAAgB,QAAQ,CAAI,CAAI;IAC9B,OAAO,CAAC,CAAC;AACX,CAAC;AAFD,4BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js deleted file mode 100755 index 682c6173e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isArrayLike = void 0; -exports.isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; }); -//# sourceMappingURL=isArrayLike.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js.map deleted file mode 100644 index 3237b48d4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isArrayLike.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isArrayLike.js","sourceRoot":"","sources":["../../../../src/internal/util/isArrayLike.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,CAAC,UAAI,CAAM,IAAwB,OAAA,CAAC,IAAI,OAAO,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,UAAU,EAA5D,CAA4D,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js deleted file mode 100755 index 0369064eb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isAsyncIterable = void 0; -var isFunction_1 = require("./isFunction"); -function isAsyncIterable(obj) { - return Symbol.asyncIterator && isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]); -} -exports.isAsyncIterable = isAsyncIterable; -//# sourceMappingURL=isAsyncIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js.map deleted file mode 100644 index fdb9371d9..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isAsyncIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isAsyncIterable.js","sourceRoot":"","sources":["../../../../src/internal/util/isAsyncIterable.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAE1C,SAAgB,eAAe,CAAI,GAAQ;IACzC,OAAO,MAAM,CAAC,aAAa,IAAI,uBAAU,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;AACzE,CAAC;AAFD,0CAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isDate.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isDate.js deleted file mode 100755 index bce01138b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isDate.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isValidDate = void 0; -function isValidDate(value) { - return value instanceof Date && !isNaN(value); -} -exports.isValidDate = isValidDate; -//# sourceMappingURL=isDate.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isDate.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isDate.js.map deleted file mode 100644 index 41223d828..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isDate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isDate.js","sourceRoot":"","sources":["../../../../src/internal/util/isDate.ts"],"names":[],"mappings":";;;AAOA,SAAgB,WAAW,CAAC,KAAU;IACpC,OAAO,KAAK,YAAY,IAAI,IAAI,CAAC,KAAK,CAAC,KAAY,CAAC,CAAC;AACvD,CAAC;AAFD,kCAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isFunction.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isFunction.js deleted file mode 100755 index e04791fdb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isFunction.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isFunction = void 0; -function isFunction(value) { - return typeof value === 'function'; -} -exports.isFunction = isFunction; -//# sourceMappingURL=isFunction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isFunction.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isFunction.js.map deleted file mode 100644 index be3106ea7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isFunction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isFunction.js","sourceRoot":"","sources":["../../../../src/internal/util/isFunction.ts"],"names":[],"mappings":";;;AAIA,SAAgB,UAAU,CAAC,KAAU;IACnC,OAAO,OAAO,KAAK,KAAK,UAAU,CAAC;AACrC,CAAC;AAFD,gCAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js deleted file mode 100755 index 63db48e3b..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isInteropObservable = void 0; -var observable_1 = require("../symbol/observable"); -var isFunction_1 = require("./isFunction"); -function isInteropObservable(input) { - return isFunction_1.isFunction(input[observable_1.observable]); -} -exports.isInteropObservable = isInteropObservable; -//# sourceMappingURL=isInteropObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js.map deleted file mode 100644 index 37e5edb4a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isInteropObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isInteropObservable.js","sourceRoot":"","sources":["../../../../src/internal/util/isInteropObservable.ts"],"names":[],"mappings":";;;AACA,mDAAuE;AACvE,2CAA0C;AAG1C,SAAgB,mBAAmB,CAAC,KAAU;IAC5C,OAAO,uBAAU,CAAC,KAAK,CAAC,uBAAiB,CAAC,CAAC,CAAC;AAC9C,CAAC;AAFD,kDAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isIterable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isIterable.js deleted file mode 100755 index dc62d9ab0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isIterable.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isIterable = void 0; -var iterator_1 = require("../symbol/iterator"); -var isFunction_1 = require("./isFunction"); -function isIterable(input) { - return isFunction_1.isFunction(input === null || input === void 0 ? void 0 : input[iterator_1.iterator]); -} -exports.isIterable = isIterable; -//# sourceMappingURL=isIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isIterable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isIterable.js.map deleted file mode 100644 index 1c10e94fa..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isIterable.js","sourceRoot":"","sources":["../../../../src/internal/util/isIterable.ts"],"names":[],"mappings":";;;AAAA,+CAAiE;AACjE,2CAA0C;AAG1C,SAAgB,UAAU,CAAC,KAAU;IACnC,OAAO,uBAAU,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,mBAAe,CAAC,CAAC,CAAC;AAC9C,CAAC;AAFD,gCAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isObservable.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isObservable.js deleted file mode 100755 index 280ece5aa..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isObservable.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isObservable = void 0; -var Observable_1 = require("../Observable"); -var isFunction_1 = require("./isFunction"); -function isObservable(obj) { - return !!obj && (obj instanceof Observable_1.Observable || (isFunction_1.isFunction(obj.lift) && isFunction_1.isFunction(obj.subscribe))); -} -exports.isObservable = isObservable; -//# sourceMappingURL=isObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isObservable.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isObservable.js.map deleted file mode 100644 index 37f51f8f6..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isObservable.js","sourceRoot":"","sources":["../../../../src/internal/util/isObservable.ts"],"names":[],"mappings":";;;AACA,4CAA2C;AAC3C,2CAA0C;AAM1C,SAAgB,YAAY,CAAC,GAAQ;IAGnC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,YAAY,uBAAU,IAAI,CAAC,uBAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,uBAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC;AAJD,oCAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isPromise.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isPromise.js deleted file mode 100755 index fae4d1e47..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isPromise.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isPromise = void 0; -var isFunction_1 = require("./isFunction"); -function isPromise(value) { - return isFunction_1.isFunction(value === null || value === void 0 ? void 0 : value.then); -} -exports.isPromise = isPromise; -//# sourceMappingURL=isPromise.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isPromise.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isPromise.js.map deleted file mode 100644 index 00767ab91..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isPromise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isPromise.js","sourceRoot":"","sources":["../../../../src/internal/util/isPromise.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAM1C,SAAgB,SAAS,CAAC,KAAU;IAClC,OAAO,uBAAU,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC,CAAC;AACjC,CAAC;AAFD,8BAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js deleted file mode 100755 index 3b016e1be..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -}; -var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } -var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isReadableStreamLike = exports.readableStreamLikeToAsyncGenerator = void 0; -var isFunction_1 = require("./isFunction"); -function readableStreamLikeToAsyncGenerator(readableStream) { - return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() { - var reader, _a, value, done; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - reader = readableStream.getReader(); - _b.label = 1; - case 1: - _b.trys.push([1, , 9, 10]); - _b.label = 2; - case 2: - if (!true) return [3, 8]; - return [4, __await(reader.read())]; - case 3: - _a = _b.sent(), value = _a.value, done = _a.done; - if (!done) return [3, 5]; - return [4, __await(void 0)]; - case 4: return [2, _b.sent()]; - case 5: return [4, __await(value)]; - case 6: return [4, _b.sent()]; - case 7: - _b.sent(); - return [3, 2]; - case 8: return [3, 10]; - case 9: - reader.releaseLock(); - return [7]; - case 10: return [2]; - } - }); - }); -} -exports.readableStreamLikeToAsyncGenerator = readableStreamLikeToAsyncGenerator; -function isReadableStreamLike(obj) { - return isFunction_1.isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader); -} -exports.isReadableStreamLike = isReadableStreamLike; -//# sourceMappingURL=isReadableStreamLike.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js.map deleted file mode 100644 index 7b6a7aed0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isReadableStreamLike.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isReadableStreamLike.js","sourceRoot":"","sources":["../../../../src/internal/util/isReadableStreamLike.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C,SAAuB,kCAAkC,CAAI,cAAqC;;;;;;oBAC1F,MAAM,GAAG,cAAc,CAAC,SAAS,EAAE,CAAC;;;;;;yBAEjC,IAAI;oBACe,mBAAM,MAAM,CAAC,IAAI,EAAE,GAAA;;oBAArC,KAAkB,SAAmB,EAAnC,KAAK,WAAA,EAAE,IAAI,UAAA;yBACf,IAAI,EAAJ,cAAI;;wBACN,sBAAO;2CAEH,KAAM;wBAAZ,sBAAY;;oBAAZ,SAAY,CAAC;;;;oBAGf,MAAM,CAAC,WAAW,EAAE,CAAC;;;;;;CAExB;AAbD,gFAaC;AAED,SAAgB,oBAAoB,CAAI,GAAQ;IAG9C,OAAO,uBAAU,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,SAAS,CAAC,CAAC;AACpC,CAAC;AAJD,oDAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js deleted file mode 100755 index 89ea7d551..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isScheduler = void 0; -var isFunction_1 = require("./isFunction"); -function isScheduler(value) { - return value && isFunction_1.isFunction(value.schedule); -} -exports.isScheduler = isScheduler; -//# sourceMappingURL=isScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js.map deleted file mode 100644 index 1f72d1814..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/isScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isScheduler.js","sourceRoot":"","sources":["../../../../src/internal/util/isScheduler.ts"],"names":[],"mappings":";;;AACA,2CAA0C;AAE1C,SAAgB,WAAW,CAAC,KAAU;IACpC,OAAO,KAAK,IAAI,uBAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAFD,kCAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/lift.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/lift.js deleted file mode 100755 index fd489c92d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/lift.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.operate = exports.hasLift = void 0; -var isFunction_1 = require("./isFunction"); -function hasLift(source) { - return isFunction_1.isFunction(source === null || source === void 0 ? void 0 : source.lift); -} -exports.hasLift = hasLift; -function operate(init) { - return function (source) { - if (hasLift(source)) { - return source.lift(function (liftedSource) { - try { - return init(liftedSource, this); - } - catch (err) { - this.error(err); - } - }); - } - throw new TypeError('Unable to lift unknown Observable type'); - }; -} -exports.operate = operate; -//# sourceMappingURL=lift.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/lift.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/lift.js.map deleted file mode 100644 index 481fe6648..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/lift.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lift.js","sourceRoot":"","sources":["../../../../src/internal/util/lift.ts"],"names":[],"mappings":";;;AAGA,2CAA0C;AAK1C,SAAgB,OAAO,CAAC,MAAW;IACjC,OAAO,uBAAU,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC,CAAC;AAClC,CAAC;AAFD,0BAEC;AAMD,SAAgB,OAAO,CACrB,IAAqF;IAErF,OAAO,UAAC,MAAqB;QAC3B,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;YACnB,OAAO,MAAM,CAAC,IAAI,CAAC,UAA+B,YAA2B;gBAC3E,IAAI;oBACF,OAAO,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;iBACjC;gBAAC,OAAO,GAAG,EAAE;oBACZ,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACjB;YACH,CAAC,CAAC,CAAC;SACJ;QACD,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;IAChE,CAAC,CAAC;AACJ,CAAC;AAfD,0BAeC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js deleted file mode 100755 index 8cc61aa69..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -}; -var __spreadArray = (this && this.__spreadArray) || function (to, from) { - for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) - to[j] = from[i]; - return to; -}; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mapOneOrManyArgs = void 0; -var map_1 = require("../operators/map"); -var isArray = Array.isArray; -function callOrApply(fn, args) { - return isArray(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args); -} -function mapOneOrManyArgs(fn) { - return map_1.map(function (args) { return callOrApply(fn, args); }); -} -exports.mapOneOrManyArgs = mapOneOrManyArgs; -//# sourceMappingURL=mapOneOrManyArgs.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js.map deleted file mode 100644 index af09230fb..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/mapOneOrManyArgs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapOneOrManyArgs.js","sourceRoot":"","sources":["../../../../src/internal/util/mapOneOrManyArgs.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,wCAAuC;AAE/B,IAAA,OAAO,GAAK,KAAK,QAAV,CAAW;AAE1B,SAAS,WAAW,CAAO,EAA2B,EAAE,IAAW;IAC/D,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,wCAAI,IAAI,IAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAMD,SAAgB,gBAAgB,CAAO,EAA2B;IAC9D,OAAO,SAAG,CAAC,UAAA,IAAI,IAAI,OAAA,WAAW,CAAC,EAAE,EAAE,IAAI,CAAC,EAArB,CAAqB,CAAC,CAAA;AAC7C,CAAC;AAFD,4CAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/noop.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/noop.js deleted file mode 100755 index d62ac367e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/noop.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.noop = void 0; -function noop() { } -exports.noop = noop; -//# sourceMappingURL=noop.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/noop.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/noop.js.map deleted file mode 100644 index 484103ee8..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/noop.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"noop.js","sourceRoot":"","sources":["../../../../src/internal/util/noop.ts"],"names":[],"mappings":";;;AACA,SAAgB,IAAI,KAAK,CAAC;AAA1B,oBAA0B"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/not.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/not.js deleted file mode 100755 index a02b0ba4a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/not.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.not = void 0; -function not(pred, thisArg) { - return function (value, index) { return !pred.call(thisArg, value, index); }; -} -exports.not = not; -//# sourceMappingURL=not.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/not.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/not.js.map deleted file mode 100644 index 5cdca90f1..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/not.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"not.js","sourceRoot":"","sources":["../../../../src/internal/util/not.ts"],"names":[],"mappings":";;;AAAA,SAAgB,GAAG,CAAI,IAA0C,EAAE,OAAY;IAC7E,OAAO,UAAC,KAAQ,EAAE,KAAa,IAAK,OAAA,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,EAAjC,CAAiC,CAAC;AACxE,CAAC;AAFD,kBAEC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/pipe.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/pipe.js deleted file mode 100755 index b89617e6d..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/pipe.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pipeFromArray = exports.pipe = void 0; -var identity_1 = require("./identity"); -function pipe() { - var fns = []; - for (var _i = 0; _i < arguments.length; _i++) { - fns[_i] = arguments[_i]; - } - return pipeFromArray(fns); -} -exports.pipe = pipe; -function pipeFromArray(fns) { - if (fns.length === 0) { - return identity_1.identity; - } - if (fns.length === 1) { - return fns[0]; - } - return function piped(input) { - return fns.reduce(function (prev, fn) { return fn(prev); }, input); - }; -} -exports.pipeFromArray = pipeFromArray; -//# sourceMappingURL=pipe.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/pipe.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/pipe.js.map deleted file mode 100644 index 75ba2d5b4..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/pipe.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pipe.js","sourceRoot":"","sources":["../../../../src/internal/util/pipe.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AA6EtC,SAAgB,IAAI;IAAC,aAAsC;SAAtC,UAAsC,EAAtC,qBAAsC,EAAtC,IAAsC;QAAtC,wBAAsC;;IACzD,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC;AAFD,oBAEC;AAGD,SAAgB,aAAa,CAAO,GAA+B;IACjE,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;QACpB,OAAO,mBAAmC,CAAC;KAC5C;IAED,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;QACpB,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;KACf;IAED,OAAO,SAAS,KAAK,CAAC,KAAQ;QAC5B,OAAO,GAAG,CAAC,MAAM,CAAC,UAAC,IAAS,EAAE,EAAuB,IAAK,OAAA,EAAE,CAAC,IAAI,CAAC,EAAR,CAAQ,EAAE,KAAY,CAAC,CAAC;IACpF,CAAC,CAAC;AACJ,CAAC;AAZD,sCAYC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js deleted file mode 100755 index b380ca16a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.reportUnhandledError = void 0; -var config_1 = require("../config"); -var timeoutProvider_1 = require("../scheduler/timeoutProvider"); -function reportUnhandledError(err) { - timeoutProvider_1.timeoutProvider.setTimeout(function () { - var onUnhandledError = config_1.config.onUnhandledError; - if (onUnhandledError) { - onUnhandledError(err); - } - else { - throw err; - } - }); -} -exports.reportUnhandledError = reportUnhandledError; -//# sourceMappingURL=reportUnhandledError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js.map deleted file mode 100644 index 59ad080d0..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/reportUnhandledError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reportUnhandledError.js","sourceRoot":"","sources":["../../../../src/internal/util/reportUnhandledError.ts"],"names":[],"mappings":";;;AAAA,oCAAmC;AACnC,gEAA+D;AAW/D,SAAgB,oBAAoB,CAAC,GAAQ;IAC3C,iCAAe,CAAC,UAAU,CAAC;QACjB,IAAA,gBAAgB,GAAK,eAAM,iBAAX,CAAY;QACpC,IAAI,gBAAgB,EAAE;YAEpB,gBAAgB,CAAC,GAAG,CAAC,CAAC;SACvB;aAAM;YAEL,MAAM,GAAG,CAAC;SACX;IACH,CAAC,CAAC,CAAC;AACL,CAAC;AAXD,oDAWC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/subscribeToArray.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/subscribeToArray.js deleted file mode 100755 index 6755f9a1e..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/subscribeToArray.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.subscribeToArray = void 0; -var subscribeToArray = function (array) { return function (subscriber) { - for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) { - subscriber.next(array[i]); - } - subscriber.complete(); -}; }; -exports.subscribeToArray = subscribeToArray; -//# sourceMappingURL=subscribeToArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/subscribeToArray.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/subscribeToArray.js.map deleted file mode 100644 index 6f3e01d76..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/subscribeToArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subscribeToArray.js","sourceRoot":"","sources":["../../../../src/internal/util/subscribeToArray.ts"],"names":[],"mappings":";;;AAMO,IAAM,gBAAgB,GAAG,UAAI,KAAmB,IAAK,OAAA,UAAC,UAAyB;IACpF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3B;IACD,UAAU,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC,EAL2D,CAK3D,CAAC;AALW,QAAA,gBAAgB,oBAK3B"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js deleted file mode 100755 index 82abb2a0f..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createInvalidObservableTypeError = void 0; -function createInvalidObservableTypeError(input) { - return new TypeError("You provided " + (input !== null && typeof input === 'object' ? 'an invalid object' : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); -} -exports.createInvalidObservableTypeError = createInvalidObservableTypeError; -//# sourceMappingURL=throwUnobservableError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js.map deleted file mode 100644 index aa8e5723a..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/throwUnobservableError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwUnobservableError.js","sourceRoot":"","sources":["../../../../src/internal/util/throwUnobservableError.ts"],"names":[],"mappings":";;;AAIA,SAAgB,gCAAgC,CAAC,KAAU;IAEzD,OAAO,IAAI,SAAS,CAClB,mBACE,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,MAAI,KAAK,MAAG,8HACwC,CAC3H,CAAC;AACJ,CAAC;AAPD,4EAOC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/workarounds.js b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/workarounds.js deleted file mode 100755 index d82fbdab9..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/workarounds.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=workarounds.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/workarounds.js.map b/WechatBot/node_modules/rxjs/dist/cjs/internal/util/workarounds.js.map deleted file mode 100644 index 75e727142..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/internal/util/workarounds.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"workarounds.js","sourceRoot":"","sources":["../../../../src/internal/util/workarounds.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/operators/index.js b/WechatBot/node_modules/rxjs/dist/cjs/operators/index.js deleted file mode 100755 index b0ea54e32..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/operators/index.js +++ /dev/null @@ -1,232 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mergeAll = exports.merge = exports.max = exports.materialize = exports.mapTo = exports.map = exports.last = exports.isEmpty = exports.ignoreElements = exports.groupBy = exports.first = exports.findIndex = exports.find = exports.finalize = exports.filter = exports.expand = exports.exhaustMap = exports.exhaustAll = exports.exhaust = exports.every = exports.endWith = exports.elementAt = exports.distinctUntilKeyChanged = exports.distinctUntilChanged = exports.distinct = exports.dematerialize = exports.delayWhen = exports.delay = exports.defaultIfEmpty = exports.debounceTime = exports.debounce = exports.count = exports.connect = exports.concatWith = exports.concatMapTo = exports.concatMap = exports.concatAll = exports.concat = exports.combineLatestWith = exports.combineLatest = exports.combineLatestAll = exports.combineAll = exports.catchError = exports.bufferWhen = exports.bufferToggle = exports.bufferTime = exports.bufferCount = exports.buffer = exports.auditTime = exports.audit = void 0; -exports.timeInterval = exports.throwIfEmpty = exports.throttleTime = exports.throttle = exports.tap = exports.takeWhile = exports.takeUntil = exports.takeLast = exports.take = exports.switchScan = exports.switchMapTo = exports.switchMap = exports.switchAll = exports.subscribeOn = exports.startWith = exports.skipWhile = exports.skipUntil = exports.skipLast = exports.skip = exports.single = exports.shareReplay = exports.share = exports.sequenceEqual = exports.scan = exports.sampleTime = exports.sample = exports.refCount = exports.retryWhen = exports.retry = exports.repeatWhen = exports.repeat = exports.reduce = exports.raceWith = exports.race = exports.publishReplay = exports.publishLast = exports.publishBehavior = exports.publish = exports.pluck = exports.partition = exports.pairwise = exports.onErrorResumeNext = exports.observeOn = exports.multicast = exports.min = exports.mergeWith = exports.mergeScan = exports.mergeMapTo = exports.mergeMap = exports.flatMap = void 0; -exports.zipWith = exports.zipAll = exports.zip = exports.withLatestFrom = exports.windowWhen = exports.windowToggle = exports.windowTime = exports.windowCount = exports.window = exports.toArray = exports.timestamp = exports.timeoutWith = exports.timeout = void 0; -var audit_1 = require("../internal/operators/audit"); -Object.defineProperty(exports, "audit", { enumerable: true, get: function () { return audit_1.audit; } }); -var auditTime_1 = require("../internal/operators/auditTime"); -Object.defineProperty(exports, "auditTime", { enumerable: true, get: function () { return auditTime_1.auditTime; } }); -var buffer_1 = require("../internal/operators/buffer"); -Object.defineProperty(exports, "buffer", { enumerable: true, get: function () { return buffer_1.buffer; } }); -var bufferCount_1 = require("../internal/operators/bufferCount"); -Object.defineProperty(exports, "bufferCount", { enumerable: true, get: function () { return bufferCount_1.bufferCount; } }); -var bufferTime_1 = require("../internal/operators/bufferTime"); -Object.defineProperty(exports, "bufferTime", { enumerable: true, get: function () { return bufferTime_1.bufferTime; } }); -var bufferToggle_1 = require("../internal/operators/bufferToggle"); -Object.defineProperty(exports, "bufferToggle", { enumerable: true, get: function () { return bufferToggle_1.bufferToggle; } }); -var bufferWhen_1 = require("../internal/operators/bufferWhen"); -Object.defineProperty(exports, "bufferWhen", { enumerable: true, get: function () { return bufferWhen_1.bufferWhen; } }); -var catchError_1 = require("../internal/operators/catchError"); -Object.defineProperty(exports, "catchError", { enumerable: true, get: function () { return catchError_1.catchError; } }); -var combineAll_1 = require("../internal/operators/combineAll"); -Object.defineProperty(exports, "combineAll", { enumerable: true, get: function () { return combineAll_1.combineAll; } }); -var combineLatestAll_1 = require("../internal/operators/combineLatestAll"); -Object.defineProperty(exports, "combineLatestAll", { enumerable: true, get: function () { return combineLatestAll_1.combineLatestAll; } }); -var combineLatest_1 = require("../internal/operators/combineLatest"); -Object.defineProperty(exports, "combineLatest", { enumerable: true, get: function () { return combineLatest_1.combineLatest; } }); -var combineLatestWith_1 = require("../internal/operators/combineLatestWith"); -Object.defineProperty(exports, "combineLatestWith", { enumerable: true, get: function () { return combineLatestWith_1.combineLatestWith; } }); -var concat_1 = require("../internal/operators/concat"); -Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return concat_1.concat; } }); -var concatAll_1 = require("../internal/operators/concatAll"); -Object.defineProperty(exports, "concatAll", { enumerable: true, get: function () { return concatAll_1.concatAll; } }); -var concatMap_1 = require("../internal/operators/concatMap"); -Object.defineProperty(exports, "concatMap", { enumerable: true, get: function () { return concatMap_1.concatMap; } }); -var concatMapTo_1 = require("../internal/operators/concatMapTo"); -Object.defineProperty(exports, "concatMapTo", { enumerable: true, get: function () { return concatMapTo_1.concatMapTo; } }); -var concatWith_1 = require("../internal/operators/concatWith"); -Object.defineProperty(exports, "concatWith", { enumerable: true, get: function () { return concatWith_1.concatWith; } }); -var connect_1 = require("../internal/operators/connect"); -Object.defineProperty(exports, "connect", { enumerable: true, get: function () { return connect_1.connect; } }); -var count_1 = require("../internal/operators/count"); -Object.defineProperty(exports, "count", { enumerable: true, get: function () { return count_1.count; } }); -var debounce_1 = require("../internal/operators/debounce"); -Object.defineProperty(exports, "debounce", { enumerable: true, get: function () { return debounce_1.debounce; } }); -var debounceTime_1 = require("../internal/operators/debounceTime"); -Object.defineProperty(exports, "debounceTime", { enumerable: true, get: function () { return debounceTime_1.debounceTime; } }); -var defaultIfEmpty_1 = require("../internal/operators/defaultIfEmpty"); -Object.defineProperty(exports, "defaultIfEmpty", { enumerable: true, get: function () { return defaultIfEmpty_1.defaultIfEmpty; } }); -var delay_1 = require("../internal/operators/delay"); -Object.defineProperty(exports, "delay", { enumerable: true, get: function () { return delay_1.delay; } }); -var delayWhen_1 = require("../internal/operators/delayWhen"); -Object.defineProperty(exports, "delayWhen", { enumerable: true, get: function () { return delayWhen_1.delayWhen; } }); -var dematerialize_1 = require("../internal/operators/dematerialize"); -Object.defineProperty(exports, "dematerialize", { enumerable: true, get: function () { return dematerialize_1.dematerialize; } }); -var distinct_1 = require("../internal/operators/distinct"); -Object.defineProperty(exports, "distinct", { enumerable: true, get: function () { return distinct_1.distinct; } }); -var distinctUntilChanged_1 = require("../internal/operators/distinctUntilChanged"); -Object.defineProperty(exports, "distinctUntilChanged", { enumerable: true, get: function () { return distinctUntilChanged_1.distinctUntilChanged; } }); -var distinctUntilKeyChanged_1 = require("../internal/operators/distinctUntilKeyChanged"); -Object.defineProperty(exports, "distinctUntilKeyChanged", { enumerable: true, get: function () { return distinctUntilKeyChanged_1.distinctUntilKeyChanged; } }); -var elementAt_1 = require("../internal/operators/elementAt"); -Object.defineProperty(exports, "elementAt", { enumerable: true, get: function () { return elementAt_1.elementAt; } }); -var endWith_1 = require("../internal/operators/endWith"); -Object.defineProperty(exports, "endWith", { enumerable: true, get: function () { return endWith_1.endWith; } }); -var every_1 = require("../internal/operators/every"); -Object.defineProperty(exports, "every", { enumerable: true, get: function () { return every_1.every; } }); -var exhaust_1 = require("../internal/operators/exhaust"); -Object.defineProperty(exports, "exhaust", { enumerable: true, get: function () { return exhaust_1.exhaust; } }); -var exhaustAll_1 = require("../internal/operators/exhaustAll"); -Object.defineProperty(exports, "exhaustAll", { enumerable: true, get: function () { return exhaustAll_1.exhaustAll; } }); -var exhaustMap_1 = require("../internal/operators/exhaustMap"); -Object.defineProperty(exports, "exhaustMap", { enumerable: true, get: function () { return exhaustMap_1.exhaustMap; } }); -var expand_1 = require("../internal/operators/expand"); -Object.defineProperty(exports, "expand", { enumerable: true, get: function () { return expand_1.expand; } }); -var filter_1 = require("../internal/operators/filter"); -Object.defineProperty(exports, "filter", { enumerable: true, get: function () { return filter_1.filter; } }); -var finalize_1 = require("../internal/operators/finalize"); -Object.defineProperty(exports, "finalize", { enumerable: true, get: function () { return finalize_1.finalize; } }); -var find_1 = require("../internal/operators/find"); -Object.defineProperty(exports, "find", { enumerable: true, get: function () { return find_1.find; } }); -var findIndex_1 = require("../internal/operators/findIndex"); -Object.defineProperty(exports, "findIndex", { enumerable: true, get: function () { return findIndex_1.findIndex; } }); -var first_1 = require("../internal/operators/first"); -Object.defineProperty(exports, "first", { enumerable: true, get: function () { return first_1.first; } }); -var groupBy_1 = require("../internal/operators/groupBy"); -Object.defineProperty(exports, "groupBy", { enumerable: true, get: function () { return groupBy_1.groupBy; } }); -var ignoreElements_1 = require("../internal/operators/ignoreElements"); -Object.defineProperty(exports, "ignoreElements", { enumerable: true, get: function () { return ignoreElements_1.ignoreElements; } }); -var isEmpty_1 = require("../internal/operators/isEmpty"); -Object.defineProperty(exports, "isEmpty", { enumerable: true, get: function () { return isEmpty_1.isEmpty; } }); -var last_1 = require("../internal/operators/last"); -Object.defineProperty(exports, "last", { enumerable: true, get: function () { return last_1.last; } }); -var map_1 = require("../internal/operators/map"); -Object.defineProperty(exports, "map", { enumerable: true, get: function () { return map_1.map; } }); -var mapTo_1 = require("../internal/operators/mapTo"); -Object.defineProperty(exports, "mapTo", { enumerable: true, get: function () { return mapTo_1.mapTo; } }); -var materialize_1 = require("../internal/operators/materialize"); -Object.defineProperty(exports, "materialize", { enumerable: true, get: function () { return materialize_1.materialize; } }); -var max_1 = require("../internal/operators/max"); -Object.defineProperty(exports, "max", { enumerable: true, get: function () { return max_1.max; } }); -var merge_1 = require("../internal/operators/merge"); -Object.defineProperty(exports, "merge", { enumerable: true, get: function () { return merge_1.merge; } }); -var mergeAll_1 = require("../internal/operators/mergeAll"); -Object.defineProperty(exports, "mergeAll", { enumerable: true, get: function () { return mergeAll_1.mergeAll; } }); -var flatMap_1 = require("../internal/operators/flatMap"); -Object.defineProperty(exports, "flatMap", { enumerable: true, get: function () { return flatMap_1.flatMap; } }); -var mergeMap_1 = require("../internal/operators/mergeMap"); -Object.defineProperty(exports, "mergeMap", { enumerable: true, get: function () { return mergeMap_1.mergeMap; } }); -var mergeMapTo_1 = require("../internal/operators/mergeMapTo"); -Object.defineProperty(exports, "mergeMapTo", { enumerable: true, get: function () { return mergeMapTo_1.mergeMapTo; } }); -var mergeScan_1 = require("../internal/operators/mergeScan"); -Object.defineProperty(exports, "mergeScan", { enumerable: true, get: function () { return mergeScan_1.mergeScan; } }); -var mergeWith_1 = require("../internal/operators/mergeWith"); -Object.defineProperty(exports, "mergeWith", { enumerable: true, get: function () { return mergeWith_1.mergeWith; } }); -var min_1 = require("../internal/operators/min"); -Object.defineProperty(exports, "min", { enumerable: true, get: function () { return min_1.min; } }); -var multicast_1 = require("../internal/operators/multicast"); -Object.defineProperty(exports, "multicast", { enumerable: true, get: function () { return multicast_1.multicast; } }); -var observeOn_1 = require("../internal/operators/observeOn"); -Object.defineProperty(exports, "observeOn", { enumerable: true, get: function () { return observeOn_1.observeOn; } }); -var onErrorResumeNextWith_1 = require("../internal/operators/onErrorResumeNextWith"); -Object.defineProperty(exports, "onErrorResumeNext", { enumerable: true, get: function () { return onErrorResumeNextWith_1.onErrorResumeNext; } }); -var pairwise_1 = require("../internal/operators/pairwise"); -Object.defineProperty(exports, "pairwise", { enumerable: true, get: function () { return pairwise_1.pairwise; } }); -var partition_1 = require("../internal/operators/partition"); -Object.defineProperty(exports, "partition", { enumerable: true, get: function () { return partition_1.partition; } }); -var pluck_1 = require("../internal/operators/pluck"); -Object.defineProperty(exports, "pluck", { enumerable: true, get: function () { return pluck_1.pluck; } }); -var publish_1 = require("../internal/operators/publish"); -Object.defineProperty(exports, "publish", { enumerable: true, get: function () { return publish_1.publish; } }); -var publishBehavior_1 = require("../internal/operators/publishBehavior"); -Object.defineProperty(exports, "publishBehavior", { enumerable: true, get: function () { return publishBehavior_1.publishBehavior; } }); -var publishLast_1 = require("../internal/operators/publishLast"); -Object.defineProperty(exports, "publishLast", { enumerable: true, get: function () { return publishLast_1.publishLast; } }); -var publishReplay_1 = require("../internal/operators/publishReplay"); -Object.defineProperty(exports, "publishReplay", { enumerable: true, get: function () { return publishReplay_1.publishReplay; } }); -var race_1 = require("../internal/operators/race"); -Object.defineProperty(exports, "race", { enumerable: true, get: function () { return race_1.race; } }); -var raceWith_1 = require("../internal/operators/raceWith"); -Object.defineProperty(exports, "raceWith", { enumerable: true, get: function () { return raceWith_1.raceWith; } }); -var reduce_1 = require("../internal/operators/reduce"); -Object.defineProperty(exports, "reduce", { enumerable: true, get: function () { return reduce_1.reduce; } }); -var repeat_1 = require("../internal/operators/repeat"); -Object.defineProperty(exports, "repeat", { enumerable: true, get: function () { return repeat_1.repeat; } }); -var repeatWhen_1 = require("../internal/operators/repeatWhen"); -Object.defineProperty(exports, "repeatWhen", { enumerable: true, get: function () { return repeatWhen_1.repeatWhen; } }); -var retry_1 = require("../internal/operators/retry"); -Object.defineProperty(exports, "retry", { enumerable: true, get: function () { return retry_1.retry; } }); -var retryWhen_1 = require("../internal/operators/retryWhen"); -Object.defineProperty(exports, "retryWhen", { enumerable: true, get: function () { return retryWhen_1.retryWhen; } }); -var refCount_1 = require("../internal/operators/refCount"); -Object.defineProperty(exports, "refCount", { enumerable: true, get: function () { return refCount_1.refCount; } }); -var sample_1 = require("../internal/operators/sample"); -Object.defineProperty(exports, "sample", { enumerable: true, get: function () { return sample_1.sample; } }); -var sampleTime_1 = require("../internal/operators/sampleTime"); -Object.defineProperty(exports, "sampleTime", { enumerable: true, get: function () { return sampleTime_1.sampleTime; } }); -var scan_1 = require("../internal/operators/scan"); -Object.defineProperty(exports, "scan", { enumerable: true, get: function () { return scan_1.scan; } }); -var sequenceEqual_1 = require("../internal/operators/sequenceEqual"); -Object.defineProperty(exports, "sequenceEqual", { enumerable: true, get: function () { return sequenceEqual_1.sequenceEqual; } }); -var share_1 = require("../internal/operators/share"); -Object.defineProperty(exports, "share", { enumerable: true, get: function () { return share_1.share; } }); -var shareReplay_1 = require("../internal/operators/shareReplay"); -Object.defineProperty(exports, "shareReplay", { enumerable: true, get: function () { return shareReplay_1.shareReplay; } }); -var single_1 = require("../internal/operators/single"); -Object.defineProperty(exports, "single", { enumerable: true, get: function () { return single_1.single; } }); -var skip_1 = require("../internal/operators/skip"); -Object.defineProperty(exports, "skip", { enumerable: true, get: function () { return skip_1.skip; } }); -var skipLast_1 = require("../internal/operators/skipLast"); -Object.defineProperty(exports, "skipLast", { enumerable: true, get: function () { return skipLast_1.skipLast; } }); -var skipUntil_1 = require("../internal/operators/skipUntil"); -Object.defineProperty(exports, "skipUntil", { enumerable: true, get: function () { return skipUntil_1.skipUntil; } }); -var skipWhile_1 = require("../internal/operators/skipWhile"); -Object.defineProperty(exports, "skipWhile", { enumerable: true, get: function () { return skipWhile_1.skipWhile; } }); -var startWith_1 = require("../internal/operators/startWith"); -Object.defineProperty(exports, "startWith", { enumerable: true, get: function () { return startWith_1.startWith; } }); -var subscribeOn_1 = require("../internal/operators/subscribeOn"); -Object.defineProperty(exports, "subscribeOn", { enumerable: true, get: function () { return subscribeOn_1.subscribeOn; } }); -var switchAll_1 = require("../internal/operators/switchAll"); -Object.defineProperty(exports, "switchAll", { enumerable: true, get: function () { return switchAll_1.switchAll; } }); -var switchMap_1 = require("../internal/operators/switchMap"); -Object.defineProperty(exports, "switchMap", { enumerable: true, get: function () { return switchMap_1.switchMap; } }); -var switchMapTo_1 = require("../internal/operators/switchMapTo"); -Object.defineProperty(exports, "switchMapTo", { enumerable: true, get: function () { return switchMapTo_1.switchMapTo; } }); -var switchScan_1 = require("../internal/operators/switchScan"); -Object.defineProperty(exports, "switchScan", { enumerable: true, get: function () { return switchScan_1.switchScan; } }); -var take_1 = require("../internal/operators/take"); -Object.defineProperty(exports, "take", { enumerable: true, get: function () { return take_1.take; } }); -var takeLast_1 = require("../internal/operators/takeLast"); -Object.defineProperty(exports, "takeLast", { enumerable: true, get: function () { return takeLast_1.takeLast; } }); -var takeUntil_1 = require("../internal/operators/takeUntil"); -Object.defineProperty(exports, "takeUntil", { enumerable: true, get: function () { return takeUntil_1.takeUntil; } }); -var takeWhile_1 = require("../internal/operators/takeWhile"); -Object.defineProperty(exports, "takeWhile", { enumerable: true, get: function () { return takeWhile_1.takeWhile; } }); -var tap_1 = require("../internal/operators/tap"); -Object.defineProperty(exports, "tap", { enumerable: true, get: function () { return tap_1.tap; } }); -var throttle_1 = require("../internal/operators/throttle"); -Object.defineProperty(exports, "throttle", { enumerable: true, get: function () { return throttle_1.throttle; } }); -var throttleTime_1 = require("../internal/operators/throttleTime"); -Object.defineProperty(exports, "throttleTime", { enumerable: true, get: function () { return throttleTime_1.throttleTime; } }); -var throwIfEmpty_1 = require("../internal/operators/throwIfEmpty"); -Object.defineProperty(exports, "throwIfEmpty", { enumerable: true, get: function () { return throwIfEmpty_1.throwIfEmpty; } }); -var timeInterval_1 = require("../internal/operators/timeInterval"); -Object.defineProperty(exports, "timeInterval", { enumerable: true, get: function () { return timeInterval_1.timeInterval; } }); -var timeout_1 = require("../internal/operators/timeout"); -Object.defineProperty(exports, "timeout", { enumerable: true, get: function () { return timeout_1.timeout; } }); -var timeoutWith_1 = require("../internal/operators/timeoutWith"); -Object.defineProperty(exports, "timeoutWith", { enumerable: true, get: function () { return timeoutWith_1.timeoutWith; } }); -var timestamp_1 = require("../internal/operators/timestamp"); -Object.defineProperty(exports, "timestamp", { enumerable: true, get: function () { return timestamp_1.timestamp; } }); -var toArray_1 = require("../internal/operators/toArray"); -Object.defineProperty(exports, "toArray", { enumerable: true, get: function () { return toArray_1.toArray; } }); -var window_1 = require("../internal/operators/window"); -Object.defineProperty(exports, "window", { enumerable: true, get: function () { return window_1.window; } }); -var windowCount_1 = require("../internal/operators/windowCount"); -Object.defineProperty(exports, "windowCount", { enumerable: true, get: function () { return windowCount_1.windowCount; } }); -var windowTime_1 = require("../internal/operators/windowTime"); -Object.defineProperty(exports, "windowTime", { enumerable: true, get: function () { return windowTime_1.windowTime; } }); -var windowToggle_1 = require("../internal/operators/windowToggle"); -Object.defineProperty(exports, "windowToggle", { enumerable: true, get: function () { return windowToggle_1.windowToggle; } }); -var windowWhen_1 = require("../internal/operators/windowWhen"); -Object.defineProperty(exports, "windowWhen", { enumerable: true, get: function () { return windowWhen_1.windowWhen; } }); -var withLatestFrom_1 = require("../internal/operators/withLatestFrom"); -Object.defineProperty(exports, "withLatestFrom", { enumerable: true, get: function () { return withLatestFrom_1.withLatestFrom; } }); -var zip_1 = require("../internal/operators/zip"); -Object.defineProperty(exports, "zip", { enumerable: true, get: function () { return zip_1.zip; } }); -var zipAll_1 = require("../internal/operators/zipAll"); -Object.defineProperty(exports, "zipAll", { enumerable: true, get: function () { return zipAll_1.zipAll; } }); -var zipWith_1 = require("../internal/operators/zipWith"); -Object.defineProperty(exports, "zipWith", { enumerable: true, get: function () { return zipWith_1.zipWith; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/operators/index.js.map b/WechatBot/node_modules/rxjs/dist/cjs/operators/index.js.map deleted file mode 100644 index 8217be729..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/operators/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operators/index.ts"],"names":[],"mappings":";;;;;AACA,qDAAoD;AAA3C,8FAAA,KAAK,OAAA;AACd,6DAA4D;AAAnD,sGAAA,SAAS,OAAA;AAClB,uDAAsD;AAA7C,gGAAA,MAAM,OAAA;AACf,iEAAgE;AAAvD,0GAAA,WAAW,OAAA;AACpB,+DAA8D;AAArD,wGAAA,UAAU,OAAA;AACnB,mEAAkE;AAAzD,4GAAA,YAAY,OAAA;AACrB,+DAA8D;AAArD,wGAAA,UAAU,OAAA;AACnB,+DAA8D;AAArD,wGAAA,UAAU,OAAA;AACnB,+DAA8D;AAArD,wGAAA,UAAU,OAAA;AACnB,2EAA0E;AAAjE,oHAAA,gBAAgB,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3E,kGAAA,OAAO,OAAA;AAChB,iEAAgE;AAAvD,0GAAA,WAAW,OAAA;AACpB,6DAA4D;AAAnD,sGAAA,SAAS,OAAA;AAClB,yDAAwD;AAA/C,kGAAA,OAAO,OAAA;AAChB,uDAAsD;AAA7C,gGAAA,MAAM,OAAA;AACf,iEAAgE;AAAvD,0GAAA,WAAW,OAAA;AACpB,+DAA8D;AAArD,wGAAA,UAAU,OAAA;AACnB,mEAAkE;AAAzD,4GAAA,YAAY,OAAA;AACrB,+DAA8D;AAArD,wGAAA,UAAU,OAAA;AACnB,uEAAsE;AAA7D,gHAAA,cAAc,OAAA;AACvB,iDAAgD;AAAvC,0FAAA,GAAG,OAAA;AACZ,uDAAsD;AAA7C,gGAAA,MAAM,OAAA;AACf,yDAAwD;AAA/C,kGAAA,OAAO,OAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/testing/index.js b/WechatBot/node_modules/rxjs/dist/cjs/testing/index.js deleted file mode 100755 index b57ab2385..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/testing/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TestScheduler = void 0; -var TestScheduler_1 = require("../internal/testing/TestScheduler"); -Object.defineProperty(exports, "TestScheduler", { enumerable: true, get: function () { return TestScheduler_1.TestScheduler; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/testing/index.js.map b/WechatBot/node_modules/rxjs/dist/cjs/testing/index.js.map deleted file mode 100644 index 290bebf71..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/testing/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":";;;AAAA,mEAA8E;AAArE,8GAAA,aAAa,OAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/webSocket/index.js b/WechatBot/node_modules/rxjs/dist/cjs/webSocket/index.js deleted file mode 100755 index b183bf2ea..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/webSocket/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WebSocketSubject = exports.webSocket = void 0; -var webSocket_1 = require("../internal/observable/dom/webSocket"); -Object.defineProperty(exports, "webSocket", { enumerable: true, get: function () { return webSocket_1.webSocket; } }); -var WebSocketSubject_1 = require("../internal/observable/dom/WebSocketSubject"); -Object.defineProperty(exports, "WebSocketSubject", { enumerable: true, get: function () { return WebSocketSubject_1.WebSocketSubject; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/cjs/webSocket/index.js.map b/WechatBot/node_modules/rxjs/dist/cjs/webSocket/index.js.map deleted file mode 100644 index bfcfc5bd7..000000000 --- a/WechatBot/node_modules/rxjs/dist/cjs/webSocket/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/webSocket/index.ts"],"names":[],"mappings":";;;AAAA,kEAA8E;AAArE,sGAAA,SAAS,OAAa;AAC/B,gFAAuG;AAA9F,oHAAA,gBAAgB,OAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/ajax/index.js b/WechatBot/node_modules/rxjs/dist/esm/ajax/index.js deleted file mode 100755 index e387b2b3d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/ajax/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export { ajax } from '../internal/ajax/ajax'; -export { AjaxError, AjaxTimeoutError } from '../internal/ajax/errors'; -export { AjaxResponse } from '../internal/ajax/AjaxResponse'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/ajax/index.js.map b/WechatBot/node_modules/rxjs/dist/esm/ajax/index.js.map deleted file mode 100644 index d45ff17c0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/ajax/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ajax/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/fetch/index.js b/WechatBot/node_modules/rxjs/dist/esm/fetch/index.js deleted file mode 100755 index e851987c6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/fetch/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { fromFetch } from '../internal/observable/dom/fetch'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/fetch/index.js.map b/WechatBot/node_modules/rxjs/dist/esm/fetch/index.js.map deleted file mode 100644 index 75fe99b3c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/fetch/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/fetch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/index.js b/WechatBot/node_modules/rxjs/dist/esm/index.js deleted file mode 100755 index cda695ddf..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/index.js +++ /dev/null @@ -1,169 +0,0 @@ -export { Observable } from './internal/Observable'; -export { ConnectableObservable } from './internal/observable/ConnectableObservable'; -export { observable } from './internal/symbol/observable'; -export { animationFrames } from './internal/observable/dom/animationFrames'; -export { Subject } from './internal/Subject'; -export { BehaviorSubject } from './internal/BehaviorSubject'; -export { ReplaySubject } from './internal/ReplaySubject'; -export { AsyncSubject } from './internal/AsyncSubject'; -export { asap, asapScheduler } from './internal/scheduler/asap'; -export { async, asyncScheduler } from './internal/scheduler/async'; -export { queue, queueScheduler } from './internal/scheduler/queue'; -export { animationFrame, animationFrameScheduler } from './internal/scheduler/animationFrame'; -export { VirtualTimeScheduler, VirtualAction } from './internal/scheduler/VirtualTimeScheduler'; -export { Scheduler } from './internal/Scheduler'; -export { Subscription } from './internal/Subscription'; -export { Subscriber } from './internal/Subscriber'; -export { Notification, NotificationKind } from './internal/Notification'; -export { pipe } from './internal/util/pipe'; -export { noop } from './internal/util/noop'; -export { identity } from './internal/util/identity'; -export { isObservable } from './internal/util/isObservable'; -export { lastValueFrom } from './internal/lastValueFrom'; -export { firstValueFrom } from './internal/firstValueFrom'; -export { ArgumentOutOfRangeError } from './internal/util/ArgumentOutOfRangeError'; -export { EmptyError } from './internal/util/EmptyError'; -export { NotFoundError } from './internal/util/NotFoundError'; -export { ObjectUnsubscribedError } from './internal/util/ObjectUnsubscribedError'; -export { SequenceError } from './internal/util/SequenceError'; -export { TimeoutError } from './internal/operators/timeout'; -export { UnsubscriptionError } from './internal/util/UnsubscriptionError'; -export { bindCallback } from './internal/observable/bindCallback'; -export { bindNodeCallback } from './internal/observable/bindNodeCallback'; -export { combineLatest } from './internal/observable/combineLatest'; -export { concat } from './internal/observable/concat'; -export { connectable } from './internal/observable/connectable'; -export { defer } from './internal/observable/defer'; -export { empty } from './internal/observable/empty'; -export { forkJoin } from './internal/observable/forkJoin'; -export { from } from './internal/observable/from'; -export { fromEvent } from './internal/observable/fromEvent'; -export { fromEventPattern } from './internal/observable/fromEventPattern'; -export { generate } from './internal/observable/generate'; -export { iif } from './internal/observable/iif'; -export { interval } from './internal/observable/interval'; -export { merge } from './internal/observable/merge'; -export { never } from './internal/observable/never'; -export { of } from './internal/observable/of'; -export { onErrorResumeNext } from './internal/observable/onErrorResumeNext'; -export { pairs } from './internal/observable/pairs'; -export { partition } from './internal/observable/partition'; -export { race } from './internal/observable/race'; -export { range } from './internal/observable/range'; -export { throwError } from './internal/observable/throwError'; -export { timer } from './internal/observable/timer'; -export { using } from './internal/observable/using'; -export { zip } from './internal/observable/zip'; -export { scheduled } from './internal/scheduled/scheduled'; -export { EMPTY } from './internal/observable/empty'; -export { NEVER } from './internal/observable/never'; -export * from './internal/types'; -export { config } from './internal/config'; -export { audit } from './internal/operators/audit'; -export { auditTime } from './internal/operators/auditTime'; -export { buffer } from './internal/operators/buffer'; -export { bufferCount } from './internal/operators/bufferCount'; -export { bufferTime } from './internal/operators/bufferTime'; -export { bufferToggle } from './internal/operators/bufferToggle'; -export { bufferWhen } from './internal/operators/bufferWhen'; -export { catchError } from './internal/operators/catchError'; -export { combineAll } from './internal/operators/combineAll'; -export { combineLatestAll } from './internal/operators/combineLatestAll'; -export { combineLatestWith } from './internal/operators/combineLatestWith'; -export { concatAll } from './internal/operators/concatAll'; -export { concatMap } from './internal/operators/concatMap'; -export { concatMapTo } from './internal/operators/concatMapTo'; -export { concatWith } from './internal/operators/concatWith'; -export { connect } from './internal/operators/connect'; -export { count } from './internal/operators/count'; -export { debounce } from './internal/operators/debounce'; -export { debounceTime } from './internal/operators/debounceTime'; -export { defaultIfEmpty } from './internal/operators/defaultIfEmpty'; -export { delay } from './internal/operators/delay'; -export { delayWhen } from './internal/operators/delayWhen'; -export { dematerialize } from './internal/operators/dematerialize'; -export { distinct } from './internal/operators/distinct'; -export { distinctUntilChanged } from './internal/operators/distinctUntilChanged'; -export { distinctUntilKeyChanged } from './internal/operators/distinctUntilKeyChanged'; -export { elementAt } from './internal/operators/elementAt'; -export { endWith } from './internal/operators/endWith'; -export { every } from './internal/operators/every'; -export { exhaust } from './internal/operators/exhaust'; -export { exhaustAll } from './internal/operators/exhaustAll'; -export { exhaustMap } from './internal/operators/exhaustMap'; -export { expand } from './internal/operators/expand'; -export { filter } from './internal/operators/filter'; -export { finalize } from './internal/operators/finalize'; -export { find } from './internal/operators/find'; -export { findIndex } from './internal/operators/findIndex'; -export { first } from './internal/operators/first'; -export { groupBy } from './internal/operators/groupBy'; -export { ignoreElements } from './internal/operators/ignoreElements'; -export { isEmpty } from './internal/operators/isEmpty'; -export { last } from './internal/operators/last'; -export { map } from './internal/operators/map'; -export { mapTo } from './internal/operators/mapTo'; -export { materialize } from './internal/operators/materialize'; -export { max } from './internal/operators/max'; -export { mergeAll } from './internal/operators/mergeAll'; -export { flatMap } from './internal/operators/flatMap'; -export { mergeMap } from './internal/operators/mergeMap'; -export { mergeMapTo } from './internal/operators/mergeMapTo'; -export { mergeScan } from './internal/operators/mergeScan'; -export { mergeWith } from './internal/operators/mergeWith'; -export { min } from './internal/operators/min'; -export { multicast } from './internal/operators/multicast'; -export { observeOn } from './internal/operators/observeOn'; -export { onErrorResumeNextWith } from './internal/operators/onErrorResumeNextWith'; -export { pairwise } from './internal/operators/pairwise'; -export { pluck } from './internal/operators/pluck'; -export { publish } from './internal/operators/publish'; -export { publishBehavior } from './internal/operators/publishBehavior'; -export { publishLast } from './internal/operators/publishLast'; -export { publishReplay } from './internal/operators/publishReplay'; -export { raceWith } from './internal/operators/raceWith'; -export { reduce } from './internal/operators/reduce'; -export { repeat } from './internal/operators/repeat'; -export { repeatWhen } from './internal/operators/repeatWhen'; -export { retry } from './internal/operators/retry'; -export { retryWhen } from './internal/operators/retryWhen'; -export { refCount } from './internal/operators/refCount'; -export { sample } from './internal/operators/sample'; -export { sampleTime } from './internal/operators/sampleTime'; -export { scan } from './internal/operators/scan'; -export { sequenceEqual } from './internal/operators/sequenceEqual'; -export { share } from './internal/operators/share'; -export { shareReplay } from './internal/operators/shareReplay'; -export { single } from './internal/operators/single'; -export { skip } from './internal/operators/skip'; -export { skipLast } from './internal/operators/skipLast'; -export { skipUntil } from './internal/operators/skipUntil'; -export { skipWhile } from './internal/operators/skipWhile'; -export { startWith } from './internal/operators/startWith'; -export { subscribeOn } from './internal/operators/subscribeOn'; -export { switchAll } from './internal/operators/switchAll'; -export { switchMap } from './internal/operators/switchMap'; -export { switchMapTo } from './internal/operators/switchMapTo'; -export { switchScan } from './internal/operators/switchScan'; -export { take } from './internal/operators/take'; -export { takeLast } from './internal/operators/takeLast'; -export { takeUntil } from './internal/operators/takeUntil'; -export { takeWhile } from './internal/operators/takeWhile'; -export { tap } from './internal/operators/tap'; -export { throttle } from './internal/operators/throttle'; -export { throttleTime } from './internal/operators/throttleTime'; -export { throwIfEmpty } from './internal/operators/throwIfEmpty'; -export { timeInterval } from './internal/operators/timeInterval'; -export { timeout } from './internal/operators/timeout'; -export { timeoutWith } from './internal/operators/timeoutWith'; -export { timestamp } from './internal/operators/timestamp'; -export { toArray } from './internal/operators/toArray'; -export { window } from './internal/operators/window'; -export { windowCount } from './internal/operators/windowCount'; -export { windowTime } from './internal/operators/windowTime'; -export { windowToggle } from './internal/operators/windowToggle'; -export { windowWhen } from './internal/operators/windowWhen'; -export { withLatestFrom } from './internal/operators/withLatestFrom'; -export { zipAll } from './internal/operators/zipAll'; -export { zipWith } from './internal/operators/zipWith'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/index.js.map b/WechatBot/node_modules/rxjs/dist/esm/index.js.map deleted file mode 100644 index c8082be4a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAGpF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAG5E,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,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AAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAe,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAkB,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,OAAO,EAA8B,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/AnyCatcher.js b/WechatBot/node_modules/rxjs/dist/esm/internal/AnyCatcher.js deleted file mode 100755 index 4bc63fdc9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/AnyCatcher.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=AnyCatcher.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/AnyCatcher.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/AnyCatcher.js.map deleted file mode 100644 index 83e9e18f8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/AnyCatcher.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AnyCatcher.js","sourceRoot":"","sources":["../../../src/internal/AnyCatcher.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/AsyncSubject.js b/WechatBot/node_modules/rxjs/dist/esm/internal/AsyncSubject.js deleted file mode 100755 index b7a71a240..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/AsyncSubject.js +++ /dev/null @@ -1,34 +0,0 @@ -import { Subject } from './Subject'; -export class AsyncSubject extends Subject { - constructor() { - super(...arguments); - this._value = null; - this._hasValue = false; - this._isComplete = false; - } - _checkFinalizedStatuses(subscriber) { - const { hasError, _hasValue, _value, thrownError, isStopped, _isComplete } = this; - if (hasError) { - subscriber.error(thrownError); - } - else if (isStopped || _isComplete) { - _hasValue && subscriber.next(_value); - subscriber.complete(); - } - } - next(value) { - if (!this.isStopped) { - this._value = value; - this._hasValue = true; - } - } - complete() { - const { _hasValue, _value, _isComplete } = this; - if (!_isComplete) { - this._isComplete = true; - _hasValue && super.next(_value); - super.complete(); - } - } -} -//# sourceMappingURL=AsyncSubject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/AsyncSubject.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/AsyncSubject.js.map deleted file mode 100644 index c55d4610f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/AsyncSubject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsyncSubject.js","sourceRoot":"","sources":["../../../src/internal/AsyncSubject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,MAAM,OAAO,YAAgB,SAAQ,OAAU;IAA/C;;QACU,WAAM,GAAa,IAAI,CAAC;QACxB,cAAS,GAAG,KAAK,CAAC;QAClB,gBAAW,GAAG,KAAK,CAAC;IA4B9B,CAAC;IAzBW,uBAAuB,CAAC,UAAyB;QACzD,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;QAClF,IAAI,QAAQ,EAAE;YACZ,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;SAC/B;aAAM,IAAI,SAAS,IAAI,WAAW,EAAE;YACnC,SAAS,IAAI,UAAU,CAAC,IAAI,CAAC,MAAO,CAAC,CAAC;YACtC,UAAU,CAAC,QAAQ,EAAE,CAAC;SACvB;IACH,CAAC;IAED,IAAI,CAAC,KAAQ;QACX,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACnB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;SACvB;IACH,CAAC;IAED,QAAQ;QACN,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;QAChD,IAAI,CAAC,WAAW,EAAE;YAChB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,SAAS,IAAI,KAAK,CAAC,IAAI,CAAC,MAAO,CAAC,CAAC;YACjC,KAAK,CAAC,QAAQ,EAAE,CAAC;SAClB;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/BehaviorSubject.js b/WechatBot/node_modules/rxjs/dist/esm/internal/BehaviorSubject.js deleted file mode 100755 index b9d4f6cc9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/BehaviorSubject.js +++ /dev/null @@ -1,27 +0,0 @@ -import { Subject } from './Subject'; -export class BehaviorSubject extends Subject { - constructor(_value) { - super(); - this._value = _value; - } - get value() { - return this.getValue(); - } - _subscribe(subscriber) { - const subscription = super._subscribe(subscriber); - !subscription.closed && subscriber.next(this._value); - return subscription; - } - getValue() { - const { hasError, thrownError, _value } = this; - if (hasError) { - throw thrownError; - } - this._throwIfClosed(); - return _value; - } - next(value) { - super.next((this._value = value)); - } -} -//# sourceMappingURL=BehaviorSubject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/BehaviorSubject.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/BehaviorSubject.js.map deleted file mode 100644 index 6c1621aa3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/BehaviorSubject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BehaviorSubject.js","sourceRoot":"","sources":["../../../src/internal/BehaviorSubject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC,MAAM,OAAO,eAAmB,SAAQ,OAAU;IAChD,YAAoB,MAAS;QAC3B,KAAK,EAAE,CAAC;QADU,WAAM,GAAN,MAAM,CAAG;IAE7B,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;IAGS,UAAU,CAAC,UAAyB;QAC5C,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;QAClD,CAAC,YAAY,CAAC,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrD,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,QAAQ;QACN,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;QAC/C,IAAI,QAAQ,EAAE;YACZ,MAAM,WAAW,CAAC;SACnB;QACD,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,IAAI,CAAC,KAAQ;QACX,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC;IACpC,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Notification.js b/WechatBot/node_modules/rxjs/dist/esm/internal/Notification.js deleted file mode 100755 index 2ea439504..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Notification.js +++ /dev/null @@ -1,70 +0,0 @@ -import { EMPTY } from './observable/empty'; -import { of } from './observable/of'; -import { throwError } from './observable/throwError'; -import { isFunction } from './util/isFunction'; -export var NotificationKind; -(function (NotificationKind) { - NotificationKind["NEXT"] = "N"; - NotificationKind["ERROR"] = "E"; - NotificationKind["COMPLETE"] = "C"; -})(NotificationKind || (NotificationKind = {})); -export class Notification { - constructor(kind, value, error) { - this.kind = kind; - this.value = value; - this.error = error; - this.hasValue = kind === 'N'; - } - observe(observer) { - return observeNotification(this, observer); - } - do(nextHandler, errorHandler, completeHandler) { - const { kind, value, error } = this; - return kind === 'N' ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value) : kind === 'E' ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler(); - } - accept(nextOrObserver, error, complete) { - var _a; - return isFunction((_a = nextOrObserver) === null || _a === void 0 ? void 0 : _a.next) - ? this.observe(nextOrObserver) - : this.do(nextOrObserver, error, complete); - } - toObservable() { - const { kind, value, error } = this; - const result = kind === 'N' - ? - of(value) - : - kind === 'E' - ? - throwError(() => error) - : - kind === 'C' - ? - EMPTY - : - 0; - if (!result) { - throw new TypeError(`Unexpected notification kind ${kind}`); - } - return result; - } - static createNext(value) { - return new Notification('N', value); - } - static createError(err) { - return new Notification('E', undefined, err); - } - static createComplete() { - return Notification.completeNotification; - } -} -Notification.completeNotification = new Notification('C'); -export function observeNotification(notification, observer) { - var _a, _b, _c; - const { kind, value, error } = notification; - if (typeof kind !== 'string') { - throw new TypeError('Invalid notification, missing "kind"'); - } - kind === 'N' ? (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, value) : kind === 'E' ? (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, error) : (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer); -} -//# sourceMappingURL=Notification.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Notification.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/Notification.js.map deleted file mode 100644 index 481faf407..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Notification.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../src/internal/Notification.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAO/C,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,8BAAU,CAAA;IACV,+BAAW,CAAA;IACX,kCAAc,CAAA;AAChB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAkBD,MAAM,OAAO,YAAY;IA6BvB,YAA4B,IAAqB,EAAkB,KAAS,EAAkB,KAAW;QAA7E,SAAI,GAAJ,IAAI,CAAiB;QAAkB,UAAK,GAAL,KAAK,CAAI;QAAkB,UAAK,GAAL,KAAK,CAAM;QACvG,IAAI,CAAC,QAAQ,GAAG,IAAI,KAAK,GAAG,CAAC;IAC/B,CAAC;IAQD,OAAO,CAAC,QAA4B;QAClC,OAAO,mBAAmB,CAAC,IAAiC,EAAE,QAAQ,CAAC,CAAC;IAC1E,CAAC;IA4BD,EAAE,CAAC,WAA+B,EAAE,YAAiC,EAAE,eAA4B;QACjG,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QACpC,OAAO,IAAI,KAAK,GAAG,CAA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C;IAWD,MAAM,CAAC,cAAc;QACnB,OAAO,YAAY,CAAC,oBAAoB,CAAC;IAC3C,CAAC;;AA5Cc,iCAAoB,GAAG,IAAI,YAAY,CAAC,GAAG,CAA+C,CAAC;AAsD5G,MAAM,UAAU,mBAAmB,CAAI,YAAuC,EAAE,QAA4B;;IAC1G,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,YAAmB,CAAC;IACnD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI,SAAS,CAAC,sCAAsC,CAAC,CAAC;KAC7D;IACD,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,MAAA,QAAQ,CAAC,IAAI,+CAAb,QAAQ,EAAQ,KAAM,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,MAAA,QAAQ,CAAC,KAAK,+CAAd,QAAQ,EAAS,KAAK,CAAC,CAAC,CAAC,CAAC,MAAA,QAAQ,CAAC,QAAQ,+CAAjB,QAAQ,CAAa,CAAC;AAC1G,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/NotificationFactories.js b/WechatBot/node_modules/rxjs/dist/esm/internal/NotificationFactories.js deleted file mode 100755 index 536f26505..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/NotificationFactories.js +++ /dev/null @@ -1,15 +0,0 @@ -export const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined))(); -export function errorNotification(error) { - return createNotification('E', undefined, error); -} -export function nextNotification(value) { - return createNotification('N', value, undefined); -} -export function createNotification(kind, value, error) { - return { - kind, - value, - error, - }; -} -//# sourceMappingURL=NotificationFactories.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/NotificationFactories.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/NotificationFactories.js.map deleted file mode 100644 index 12f4c421d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/NotificationFactories.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NotificationFactories.js","sourceRoot":"","sources":["../../../src/internal/NotificationFactories.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,CAAyB,CAAC,EAAE,CAAC;AAOrH,MAAM,UAAU,iBAAiB,CAAC,KAAU;IAC1C,OAAO,kBAAkB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAQ,CAAC;AAC1D,CAAC;AAOD,MAAM,UAAU,gBAAgB,CAAI,KAAQ;IAC1C,OAAO,kBAAkB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,CAAwB,CAAC;AAC1E,CAAC;AAQD,MAAM,UAAU,kBAAkB,CAAC,IAAqB,EAAE,KAAU,EAAE,KAAU;IAC9E,OAAO;QACL,IAAI;QACJ,KAAK;QACL,KAAK;KACN,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Observable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/Observable.js deleted file mode 100755 index a0370b224..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Observable.js +++ /dev/null @@ -1,93 +0,0 @@ -import { SafeSubscriber, Subscriber } from './Subscriber'; -import { isSubscription } from './Subscription'; -import { observable as Symbol_observable } from './symbol/observable'; -import { pipeFromArray } from './util/pipe'; -import { config } from './config'; -import { isFunction } from './util/isFunction'; -import { errorContext } from './util/errorContext'; -export class Observable { - constructor(subscribe) { - if (subscribe) { - this._subscribe = subscribe; - } - } - lift(operator) { - const observable = new Observable(); - observable.source = this; - observable.operator = operator; - return observable; - } - subscribe(observerOrNext, error, complete) { - const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete); - errorContext(() => { - const { operator, source } = this; - subscriber.add(operator - ? - operator.call(subscriber, source) - : source - ? - this._subscribe(subscriber) - : - this._trySubscribe(subscriber)); - }); - return subscriber; - } - _trySubscribe(sink) { - try { - return this._subscribe(sink); - } - catch (err) { - sink.error(err); - } - } - forEach(next, promiseCtor) { - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor((resolve, reject) => { - const subscriber = new SafeSubscriber({ - next: (value) => { - try { - next(value); - } - catch (err) { - reject(err); - subscriber.unsubscribe(); - } - }, - error: reject, - complete: resolve, - }); - this.subscribe(subscriber); - }); - } - _subscribe(subscriber) { - var _a; - return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber); - } - [Symbol_observable]() { - return this; - } - pipe(...operations) { - return pipeFromArray(operations)(this); - } - toPromise(promiseCtor) { - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor((resolve, reject) => { - let value; - this.subscribe((x) => (value = x), (err) => reject(err), () => resolve(value)); - }); - } -} -Observable.create = (subscribe) => { - return new Observable(subscribe); -}; -function getPromiseCtor(promiseCtor) { - var _a; - return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise; -} -function isObserver(value) { - return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete); -} -function isSubscriber(value) { - return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value)); -} -//# sourceMappingURL=Observable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Observable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/Observable.js.map deleted file mode 100644 index a659f5a1c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Observable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Observable.js","sourceRoot":"","sources":["../../../src/internal/Observable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAgB,MAAM,gBAAgB,CAAC;AAE9D,OAAO,EAAE,U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AK,GAAG,CAAC,CAAC,EACrB,CAAC,GAAQ,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,EACzB,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CACrB,CAAC;QACJ,CAAC,CAA2B,CAAC;IAC/B,CAAC;;AA1aM,iBAAM,GAA4B,CAAI,SAAwD,EAAE,EAAE;IACvG,OAAO,IAAI,UAAU,CAAI,SAAS,CAAC,CAAC;AACtC,CAAC,CAAC;AAkbJ,SAAS,cAAc,CAAC,WAA+C;;IACrE,OAAO,MAAA,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,MAAM,CAAC,OAAO,mCAAI,OAAO,CAAC;AAClD,CAAC;AAED,SAAS,UAAU,CAAI,KAAU;IAC/B,OAAO,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAClG,CAAC;AAED,SAAS,YAAY,CAAI,KAAU;IACjC,OAAO,CAAC,KAAK,IAAI,KAAK,YAAY,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;AAChG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Operator.js b/WechatBot/node_modules/rxjs/dist/esm/internal/Operator.js deleted file mode 100755 index b9b664f07..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Operator.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=Operator.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Operator.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/Operator.js.map deleted file mode 100644 index 7401e0c41..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Operator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../src/internal/Operator.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ReplaySubject.js b/WechatBot/node_modules/rxjs/dist/esm/internal/ReplaySubject.js deleted file mode 100755 index 630f42644..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ReplaySubject.js +++ /dev/null @@ -1,50 +0,0 @@ -import { Subject } from './Subject'; -import { dateTimestampProvider } from './scheduler/dateTimestampProvider'; -export class ReplaySubject extends Subject { - constructor(_bufferSize = Infinity, _windowTime = Infinity, _timestampProvider = dateTimestampProvider) { - super(); - this._bufferSize = _bufferSize; - this._windowTime = _windowTime; - this._timestampProvider = _timestampProvider; - this._buffer = []; - this._infiniteTimeWindow = true; - this._infiniteTimeWindow = _windowTime === Infinity; - this._bufferSize = Math.max(1, _bufferSize); - this._windowTime = Math.max(1, _windowTime); - } - next(value) { - const { isStopped, _buffer, _infiniteTimeWindow, _timestampProvider, _windowTime } = this; - if (!isStopped) { - _buffer.push(value); - !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime); - } - this._trimBuffer(); - super.next(value); - } - _subscribe(subscriber) { - this._throwIfClosed(); - this._trimBuffer(); - const subscription = this._innerSubscribe(subscriber); - const { _infiniteTimeWindow, _buffer } = this; - const copy = _buffer.slice(); - for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) { - subscriber.next(copy[i]); - } - this._checkFinalizedStatuses(subscriber); - return subscription; - } - _trimBuffer() { - const { _bufferSize, _timestampProvider, _buffer, _infiniteTimeWindow } = this; - const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize; - _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize); - if (!_infiniteTimeWindow) { - const now = _timestampProvider.now(); - let last = 0; - for (let i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) { - last = i; - } - last && _buffer.splice(0, last + 1); - } - } -} -//# sourceMappingURL=ReplaySubject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ReplaySubject.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/ReplaySubject.js.map deleted file mode 100644 index d8004b8ad..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ReplaySubject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReplaySubject.js","sourceRoot":"","sources":["../../../src/internal/ReplaySubject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAgC1E,MAAM,OAAO,aAAiB,SAAQ,OAAU;IAU9C,YACU,cAAc,QAAQ,EACtB,cAAc,QAAQ,EACtB,qBAAwC,qBAAqB;QAErE,KAAK,EAAE,CAAC;QAJA,gBAAW,GAAX,WAAW,CAAW;QACtB,gBAAW,GAAX,WAAW,CAAW;QACtB,uBAAkB,GAAlB,kBAAkB,CAA2C;QAZ/D,YAAO,GAAmB,EAAE,CAAC;QAC7B,wBAAmB,GAAG,IAAI,CAAC;QAcjC,IAAI,CAAC,mBAAmB,GAAG,WAAW,KAAK,QAAQ,CAAC;QACpD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAC5C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;IAC9C,CAAC;IAED,IAAI,CAAC,KAAQ;QACX,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;QAC1F,IAAI,CAAC,SAAS,EAAE;YACd,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACpB,CAAC,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,kBAAkB,C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C,IAAI,IAAI,GAAG,CAAC,CAAC;YAGb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,IAAK,OAAO,CAAC,CAAC,CAAY,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE;gBAC3E,IAAI,GAAG,CAAC,CAAC;aACV;YACD,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC;SACrC;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Scheduler.js b/WechatBot/node_modules/rxjs/dist/esm/internal/Scheduler.js deleted file mode 100755 index f803a786c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Scheduler.js +++ /dev/null @@ -1,12 +0,0 @@ -import { dateTimestampProvider } from './scheduler/dateTimestampProvider'; -export class Scheduler { - constructor(schedulerActionCtor, now = Scheduler.now) { - this.schedulerActionCtor = schedulerActionCtor; - this.now = now; - } - schedule(work, delay = 0, state) { - return new this.schedulerActionCtor(this, work).schedule(state, delay); - } -} -Scheduler.now = dateTimestampProvider.now; -//# sourceMappingURL=Scheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Scheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/Scheduler.js.map deleted file mode 100644 index a3f9f52a1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Scheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scheduler.js","sourceRoot":"","sources":["../../../src/internal/Scheduler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAqB1E,MAAM,OAAO,SAAS;IAGpB,YAAoB,mBAAkC,EAAE,MAAoB,SAAS,CAAC,GAAG;QAArE,wBAAmB,GAAnB,mBAAmB,CAAe;QACpD,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IA6BM,QAAQ,CAAI,IAAmD,EAAE,QAAgB,CAAC,EAAE,KAAS;QAClG,OAAO,IAAI,IAAI,CAAC,mBAAmB,CAAI,IAAI,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC5E,CAAC;;AAnCa,aAAG,GAAiB,qBAAqB,CAAC,GAAG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Subject.js b/WechatBot/node_modules/rxjs/dist/esm/internal/Subject.js deleted file mode 100755 index 4295f0770..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Subject.js +++ /dev/null @@ -1,134 +0,0 @@ -import { Observable } from './Observable'; -import { Subscription, EMPTY_SUBSCRIPTION } from './Subscription'; -import { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError'; -import { arrRemove } from './util/arrRemove'; -import { errorContext } from './util/errorContext'; -export class Subject extends Observable { - constructor() { - super(); - this.closed = false; - this.currentObservers = null; - this.observers = []; - this.isStopped = false; - this.hasError = false; - this.thrownError = null; - } - lift(operator) { - const subject = new AnonymousSubject(this, this); - subject.operator = operator; - return subject; - } - _throwIfClosed() { - if (this.closed) { - throw new ObjectUnsubscribedError(); - } - } - next(value) { - errorContext(() => { - this._throwIfClosed(); - if (!this.isStopped) { - if (!this.currentObservers) { - this.currentObservers = Array.from(this.observers); - } - for (const observer of this.currentObservers) { - observer.next(value); - } - } - }); - } - error(err) { - errorContext(() => { - this._throwIfClosed(); - if (!this.isStopped) { - this.hasError = this.isStopped = true; - this.thrownError = err; - const { observers } = this; - while (observers.length) { - observers.shift().error(err); - } - } - }); - } - complete() { - errorContext(() => { - this._throwIfClosed(); - if (!this.isStopped) { - this.isStopped = true; - const { observers } = this; - while (observers.length) { - observers.shift().complete(); - } - } - }); - } - unsubscribe() { - this.isStopped = this.closed = true; - this.observers = this.currentObservers = null; - } - get observed() { - var _a; - return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0; - } - _trySubscribe(subscriber) { - this._throwIfClosed(); - return super._trySubscribe(subscriber); - } - _subscribe(subscriber) { - this._throwIfClosed(); - this._checkFinalizedStatuses(subscriber); - return this._innerSubscribe(subscriber); - } - _innerSubscribe(subscriber) { - const { hasError, isStopped, observers } = this; - if (hasError || isStopped) { - return EMPTY_SUBSCRIPTION; - } - this.currentObservers = null; - observers.push(subscriber); - return new Subscription(() => { - this.currentObservers = null; - arrRemove(observers, subscriber); - }); - } - _checkFinalizedStatuses(subscriber) { - const { hasError, thrownError, isStopped } = this; - if (hasError) { - subscriber.error(thrownError); - } - else if (isStopped) { - subscriber.complete(); - } - } - asObservable() { - const observable = new Observable(); - observable.source = this; - return observable; - } -} -Subject.create = (destination, source) => { - return new AnonymousSubject(destination, source); -}; -export class AnonymousSubject extends Subject { - constructor(destination, source) { - super(); - this.destination = destination; - this.source = source; - } - next(value) { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value); - } - error(err) { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err); - } - complete() { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a); - } - _subscribe(subscriber) { - var _a, _b; - return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION; - } -} -//# sourceMappingURL=Subject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Subject.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/Subject.js.map deleted file mode 100644 index a3350eda1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Subject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subject.js","sourceRoot":"","sources":["../../../src/internal/Subject.ts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B,KAAK,EAAE,CAAC;QAHD,gBAAW,GAAX,WAAW,CAAc;QAIhC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED,IAAI,CAAC,KAAQ;;QACX,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,mDAAG,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,KAAK,CAAC,GAAQ;;QACZ,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,KAAK,mDAAG,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,QAAQ;;QACN,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,QAAQ,kDAAI,CAAC;IACjC,CAAC;IAGS,UAAU,CAAC,UAAyB;;QAC5C,OAAO,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,SAAS,CAAC,UAAU,CAAC,mCAAI,kBAAkB,CAAC;IAClE,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Subscriber.js b/WechatBot/node_modules/rxjs/dist/esm/internal/Subscriber.js deleted file mode 100755 index 550efe4ef..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Subscriber.js +++ /dev/null @@ -1,174 +0,0 @@ -import { isFunction } from './util/isFunction'; -import { isSubscription, Subscription } from './Subscription'; -import { config } from './config'; -import { reportUnhandledError } from './util/reportUnhandledError'; -import { noop } from './util/noop'; -import { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories'; -import { timeoutProvider } from './scheduler/timeoutProvider'; -import { captureError } from './util/errorContext'; -export class Subscriber extends Subscription { - constructor(destination) { - super(); - this.isStopped = false; - if (destination) { - this.destination = destination; - if (isSubscription(destination)) { - destination.add(this); - } - } - else { - this.destination = EMPTY_OBSERVER; - } - } - static create(next, error, complete) { - return new SafeSubscriber(next, error, complete); - } - next(value) { - if (this.isStopped) { - handleStoppedNotification(nextNotification(value), this); - } - else { - this._next(value); - } - } - error(err) { - if (this.isStopped) { - handleStoppedNotification(errorNotification(err), this); - } - else { - this.isStopped = true; - this._error(err); - } - } - complete() { - if (this.isStopped) { - handleStoppedNotification(COMPLETE_NOTIFICATION, this); - } - else { - this.isStopped = true; - this._complete(); - } - } - unsubscribe() { - if (!this.closed) { - this.isStopped = true; - super.unsubscribe(); - this.destination = null; - } - } - _next(value) { - this.destination.next(value); - } - _error(err) { - try { - this.destination.error(err); - } - finally { - this.unsubscribe(); - } - } - _complete() { - try { - this.destination.complete(); - } - finally { - this.unsubscribe(); - } - } -} -const _bind = Function.prototype.bind; -function bind(fn, thisArg) { - return _bind.call(fn, thisArg); -} -class ConsumerObserver { - constructor(partialObserver) { - this.partialObserver = partialObserver; - } - next(value) { - const { partialObserver } = this; - if (partialObserver.next) { - try { - partialObserver.next(value); - } - catch (error) { - handleUnhandledError(error); - } - } - } - error(err) { - const { partialObserver } = this; - if (partialObserver.error) { - try { - partialObserver.error(err); - } - catch (error) { - handleUnhandledError(error); - } - } - else { - handleUnhandledError(err); - } - } - complete() { - const { partialObserver } = this; - if (partialObserver.complete) { - try { - partialObserver.complete(); - } - catch (error) { - handleUnhandledError(error); - } - } - } -} -export class SafeSubscriber extends Subscriber { - constructor(observerOrNext, error, complete) { - super(); - let partialObserver; - if (isFunction(observerOrNext) || !observerOrNext) { - partialObserver = { - next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined), - error: error !== null && error !== void 0 ? error : undefined, - complete: complete !== null && complete !== void 0 ? complete : undefined, - }; - } - else { - let context; - if (this && config.useDeprecatedNextContext) { - context = Object.create(observerOrNext); - context.unsubscribe = () => this.unsubscribe(); - partialObserver = { - next: observerOrNext.next && bind(observerOrNext.next, context), - error: observerOrNext.error && bind(observerOrNext.error, context), - complete: observerOrNext.complete && bind(observerOrNext.complete, context), - }; - } - else { - partialObserver = observerOrNext; - } - } - this.destination = new ConsumerObserver(partialObserver); - } -} -function handleUnhandledError(error) { - if (config.useDeprecatedSynchronousErrorHandling) { - captureError(error); - } - else { - reportUnhandledError(error); - } -} -function defaultErrorHandler(err) { - throw err; -} -function handleStoppedNotification(notification, subscriber) { - const { onStoppedNotification } = config; - onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber)); -} -export const EMPTY_OBSERVER = { - closed: true, - next: noop, - error: defaultErrorHandler, - complete: noop, -}; -//# sourceMappingURL=Subscriber.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Subscriber.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/Subscriber.js.map deleted file mode 100644 index eb96ce97a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Subscriber.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subscriber.js","sourceRoot":"","sources":["../../../src/internal/Subscriber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAYnD,MAAM,OAAO,UAAc,SAAQ,YAAY;IA6B7C,YAAY,WAA6C;QACvD,KAAK,EAAE,CAAC;QATA,cAAS,GAAY,KAAK,CAAC;QAUnC,IAAI,WAAW,EAAE;YACf,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;YAG/B,IAAI,cAAc,CAAC,WAAW,CAAC,EAAE;gBAC/B,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;aACvB;SACF;aAA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IAAI,MAAM,CAAC,qCAAqC,EAAE;QAChD,YAAY,CAAC,KAAK,CAAC,CAAC;KACrB;SAAM;QAGL,oBAAoB,CAAC,KAAK,CAAC,CAAC;KAC7B;AACH,CAAC;AAQD,SAAS,mBAAmB,CAAC,GAAQ;IACnC,MAAM,GAAG,CAAC;AACZ,CAAC;AAOD,SAAS,yBAAyB,CAAC,YAAyC,EAAE,UAA2B;IACvG,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,CAAC;IACzC,qBAAqB,IAAI,eAAe,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC;AAC7G,CAAC;AAOD,MAAM,CAAC,MAAM,cAAc,GAA+C;IACxE,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,mBAAmB;IAC1B,QAAQ,EAAE,IAAI;CACf,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Subscription.js b/WechatBot/node_modules/rxjs/dist/esm/internal/Subscription.js deleted file mode 100755 index 69835fb21..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Subscription.js +++ /dev/null @@ -1,119 +0,0 @@ -import { isFunction } from './util/isFunction'; -import { UnsubscriptionError } from './util/UnsubscriptionError'; -import { arrRemove } from './util/arrRemove'; -export class Subscription { - constructor(initialTeardown) { - this.initialTeardown = initialTeardown; - this.closed = false; - this._parentage = null; - this._finalizers = null; - } - unsubscribe() { - let errors; - if (!this.closed) { - this.closed = true; - const { _parentage } = this; - if (_parentage) { - this._parentage = null; - if (Array.isArray(_parentage)) { - for (const parent of _parentage) { - parent.remove(this); - } - } - else { - _parentage.remove(this); - } - } - const { initialTeardown: initialFinalizer } = this; - if (isFunction(initialFinalizer)) { - try { - initialFinalizer(); - } - catch (e) { - errors = e instanceof UnsubscriptionError ? e.errors : [e]; - } - } - const { _finalizers } = this; - if (_finalizers) { - this._finalizers = null; - for (const finalizer of _finalizers) { - try { - execFinalizer(finalizer); - } - catch (err) { - errors = errors !== null && errors !== void 0 ? errors : []; - if (err instanceof UnsubscriptionError) { - errors = [...errors, ...err.errors]; - } - else { - errors.push(err); - } - } - } - } - if (errors) { - throw new UnsubscriptionError(errors); - } - } - } - add(teardown) { - var _a; - if (teardown && teardown !== this) { - if (this.closed) { - execFinalizer(teardown); - } - else { - if (teardown instanceof Subscription) { - if (teardown.closed || teardown._hasParent(this)) { - return; - } - teardown._addParent(this); - } - (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown); - } - } - } - _hasParent(parent) { - const { _parentage } = this; - return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent)); - } - _addParent(parent) { - const { _parentage } = this; - this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent; - } - _removeParent(parent) { - const { _parentage } = this; - if (_parentage === parent) { - this._parentage = null; - } - else if (Array.isArray(_parentage)) { - arrRemove(_parentage, parent); - } - } - remove(teardown) { - const { _finalizers } = this; - _finalizers && arrRemove(_finalizers, teardown); - if (teardown instanceof Subscription) { - teardown._removeParent(this); - } - } -} -Subscription.EMPTY = (() => { - const empty = new Subscription(); - empty.closed = true; - return empty; -})(); -export const EMPTY_SUBSCRIPTION = Subscription.EMPTY; -export function isSubscription(value) { - return (value instanceof Subscription || - (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe))); -} -function execFinalizer(finalizer) { - if (isFunction(finalizer)) { - finalizer(); - } - else { - finalizer.unsubscribe(); - } -} -//# sourceMappingURL=Subscription.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/Subscription.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/Subscription.js.map deleted file mode 100644 index e945abd4e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/Subscription.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subsc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AC,KAAK,IAAI,QAAQ,IAAI,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CACnH,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,SAAwC;IAC7D,IAAI,UAAU,CAAC,SAAS,CAAC,EAAE;QACzB,SAAS,EAAE,CAAC;KACb;SAAM;QACL,SAAS,CAAC,WAAW,EAAE,CAAC;KACzB;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/AjaxResponse.js b/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/AjaxResponse.js deleted file mode 100755 index 1292724e6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/AjaxResponse.js +++ /dev/null @@ -1,26 +0,0 @@ -import { getXHRResponse } from './getXHRResponse'; -export class AjaxResponse { - constructor(originalEvent, xhr, request, type = 'download_load') { - this.originalEvent = originalEvent; - this.xhr = xhr; - this.request = request; - this.type = type; - const { status, responseType } = xhr; - this.status = status !== null && status !== void 0 ? status : 0; - this.responseType = responseType !== null && responseType !== void 0 ? responseType : ''; - const allHeaders = xhr.getAllResponseHeaders(); - this.responseHeaders = allHeaders - ? - allHeaders.split('\n').reduce((headers, line) => { - const index = line.indexOf(': '); - headers[line.slice(0, index)] = line.slice(index + 2); - return headers; - }, {}) - : {}; - this.response = getXHRResponse(xhr); - const { loaded, total } = originalEvent; - this.loaded = loaded; - this.total = total; - } -} -//# sourceMappingURL=AjaxResponse.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/AjaxResponse.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/AjaxResponse.js.map deleted file mode 100644 index 67843240e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/AjaxResponse.js.map +++ /dev/null @@ -1 +0,0 @@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AAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/ajax.js b/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/ajax.js deleted file mode 100755 index b5df317dc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/ajax.js +++ /dev/null @@ -1,236 +0,0 @@ -import { map } from '../operators/map'; -import { Observable } from '../Observable'; -import { AjaxResponse } from './AjaxResponse'; -import { AjaxTimeoutError, AjaxError } from './errors'; -function ajaxGet(url, headers) { - return ajax({ method: 'GET', url, headers }); -} -function ajaxPost(url, body, headers) { - return ajax({ method: 'POST', url, body, headers }); -} -function ajaxDelete(url, headers) { - return ajax({ method: 'DELETE', url, headers }); -} -function ajaxPut(url, body, headers) { - return ajax({ method: 'PUT', url, body, headers }); -} -function ajaxPatch(url, body, headers) { - return ajax({ method: 'PATCH', url, body, headers }); -} -const mapResponse = map((x) => x.response); -function ajaxGetJSON(url, headers) { - return mapResponse(ajax({ - method: 'GET', - url, - headers, - })); -} -export const ajax = (() => { - const create = (urlOrConfig) => { - const config = typeof urlOrConfig === 'string' - ? { - url: urlOrConfig, - } - : urlOrConfig; - return fromAjax(config); - }; - create.get = ajaxGet; - create.post = ajaxPost; - create.delete = ajaxDelete; - create.put = ajaxPut; - create.patch = ajaxPatch; - create.getJSON = ajaxGetJSON; - return create; -})(); -const UPLOAD = 'upload'; -const DOWNLOAD = 'download'; -const LOADSTART = 'loadstart'; -const PROGRESS = 'progress'; -const LOAD = 'load'; -export function fromAjax(init) { - return new Observable((destination) => { - var _a, _b; - const config = Object.assign({ async: true, crossDomain: false, withCredentials: false, method: 'GET', timeout: 0, responseType: 'json' }, init); - const { queryParams, body: configuredBody, headers: configuredHeaders } = config; - let url = config.url; - if (!url) { - throw new TypeError('url is required'); - } - if (queryParams) { - let searchParams; - if (url.includes('?')) { - const parts = url.split('?'); - if (2 < parts.length) { - throw new TypeError('invalid url'); - } - searchParams = new URLSearchParams(parts[1]); - new URLSearchParams(queryParams).forEach((value, key) => searchParams.set(key, value)); - url = parts[0] + '?' + searchParams; - } - else { - searchParams = new URLSearchParams(queryParams); - url = url + '?' + searchParams; - } - } - const headers = {}; - if (configuredHeaders) { - for (const key in configuredHeaders) { - if (configuredHeaders.hasOwnProperty(key)) { - headers[key.toLowerCase()] = configuredHeaders[key]; - } - } - } - const crossDomain = config.crossDomain; - if (!crossDomain && !('x-requested-with' in headers)) { - headers['x-requested-with'] = 'XMLHttpRequest'; - } - const { withCredentials, xsrfCookieName, xsrfHeaderName } = config; - if ((withCredentials || !crossDomain) && xsrfCookieName && xsrfHeaderName) { - const xsrfCookie = (_b = (_a = document === null || document === void 0 ? void 0 : document.cookie.match(new RegExp(`(^|;\\s*)(${xsrfCookieName})=([^;]*)`))) === null || _a === void 0 ? void 0 : _a.pop()) !== null && _b !== void 0 ? _b : ''; - if (xsrfCookie) { - headers[xsrfHeaderName] = xsrfCookie; - } - } - const body = extractContentTypeAndMaybeSerializeBody(configuredBody, headers); - const _request = Object.assign(Object.assign({}, config), { url, - headers, - body }); - let xhr; - xhr = init.createXHR ? init.createXHR() : new XMLHttpRequest(); - { - const { progressSubscriber, includeDownloadProgress = false, includeUploadProgress = false } = init; - const addErrorEvent = (type, errorFactory) => { - xhr.addEventListener(type, () => { - var _a; - const error = errorFactory(); - (_a = progressSubscriber === null || progressSubscriber === void 0 ? void 0 : progressSubscriber.error) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber, error); - destination.error(error); - }); - }; - addErrorEvent('timeout', () => new AjaxTimeoutError(xhr, _request)); - addErrorEvent('abort', () => new AjaxError('aborted', xhr, _request)); - const createResponse = (direction, event) => new AjaxResponse(event, xhr, _request, `${direction}_${event.type}`); - const addProgressEvent = (target, type, direction) => { - target.addEventListener(type, (event) => { - destination.next(createResponse(direction, event)); - }); - }; - if (includeUploadProgress) { - [LOADSTART, PROGRESS, LOAD].forEach((type) => addProgressEvent(xhr.upload, type, UPLOAD)); - } - if (progressSubscriber) { - [LOADSTART, PROGRESS].forEach((type) => xhr.upload.addEventListener(type, (e) => { var _a; return (_a = progressSubscriber === null || progressSubscriber === void 0 ? void 0 : progressSubscriber.next) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber, e); })); - } - if (includeDownloadProgress) { - [LOADSTART, PROGRESS].forEach((type) => addProgressEvent(xhr, type, DOWNLOAD)); - } - const emitError = (status) => { - const msg = 'ajax error' + (status ? ' ' + status : ''); - destination.error(new AjaxError(msg, xhr, _request)); - }; - xhr.addEventListener('error', (e) => { - var _a; - (_a = progressSubscriber === null || progressSubscriber === void 0 ? void 0 : progressSubscriber.error) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber, e); - emitError(); - }); - xhr.addEventListener(LOAD, (event) => { - var _a, _b; - const { status } = xhr; - if (status < 400) { - (_a = progressSubscriber === null || progressSubscriber === void 0 ? void 0 : progressSubscriber.complete) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber); - let response; - try { - response = createResponse(DOWNLOAD, event); - } - catch (err) { - destination.error(err); - return; - } - destination.next(response); - destination.complete(); - } - else { - (_b = progressSubscriber === null || progressSubscriber === void 0 ? void 0 : progressSubscriber.error) === null || _b === void 0 ? void 0 : _b.call(progressSubscriber, event); - emitError(status); - } - }); - } - const { user, method, async } = _request; - if (user) { - xhr.open(method, url, async, user, _request.password); - } - else { - xhr.open(method, url, async); - } - if (async) { - xhr.timeout = _request.timeout; - xhr.responseType = _request.responseType; - } - if ('withCredentials' in xhr) { - xhr.withCredentials = _request.withCredentials; - } - for (const key in headers) { - if (headers.hasOwnProperty(key)) { - xhr.setRequestHeader(key, headers[key]); - } - } - if (body) { - xhr.send(body); - } - else { - xhr.send(); - } - return () => { - if (xhr && xhr.readyState !== 4) { - xhr.abort(); - } - }; - }); -} -function extractContentTypeAndMaybeSerializeBody(body, headers) { - var _a; - if (!body || - typeof body === 'string' || - isFormData(body) || - isURLSearchParams(body) || - isArrayBuffer(body) || - isFile(body) || - isBlob(body) || - isReadableStream(body)) { - return body; - } - if (isArrayBufferView(body)) { - return body.buffer; - } - if (typeof body === 'object') { - headers['content-type'] = (_a = headers['content-type']) !== null && _a !== void 0 ? _a : 'application/json;charset=utf-8'; - return JSON.stringify(body); - } - throw new TypeError('Unknown body type'); -} -const _toString = Object.prototype.toString; -function toStringCheck(obj, name) { - return _toString.call(obj) === `[object ${name}]`; -} -function isArrayBuffer(body) { - return toStringCheck(body, 'ArrayBuffer'); -} -function isFile(body) { - return toStringCheck(body, 'File'); -} -function isBlob(body) { - return toStringCheck(body, 'Blob'); -} -function isArrayBufferView(body) { - return typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView(body); -} -function isFormData(body) { - return typeof FormData !== 'undefined' && body instanceof FormData; -} -function isURLSearchParams(body) { - return typeof URLSearchParams !== 'undefined' && body instanceof URLSearchParams; -} -function isReadableStream(body) { - return typeof ReadableStream !== 'undefined' && body instanceof ReadableStream; -} -//# sourceMappingURL=ajax.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/ajax.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/ajax.js.map deleted file mode 100644 index b4f8c3590..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/ajax.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajax.js","sourceRoot":"","sources":["../../../../src/internal/ajax/ajax.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAqIvD,SAAS,OAAO,CAAI,GAAW,EAAE,OAAgC;IAC/D,OAAO,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EA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cAAc,KAAK,WAAW,IAAI,IAAI,YAAY,cAAc,CAAC;AACjF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/errors.js b/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/errors.js deleted file mode 100755 index 6b5c43dd6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/errors.js +++ /dev/null @@ -1,28 +0,0 @@ -import { getXHRResponse } from './getXHRResponse'; -import { createErrorClass } from '../util/createErrorClass'; -export const AjaxError = createErrorClass((_super) => function AjaxErrorImpl(message, xhr, request) { - this.message = message; - this.name = 'AjaxError'; - this.xhr = xhr; - this.request = request; - this.status = xhr.status; - this.responseType = xhr.responseType; - let response; - try { - response = getXHRResponse(xhr); - } - catch (err) { - response = xhr.responseText; - } - this.response = response; -}); -export const AjaxTimeoutError = (() => { - function AjaxTimeoutErrorImpl(xhr, request) { - AjaxError.call(this, 'ajax timeout', xhr, request); - this.name = 'AjaxTimeoutError'; - return this; - } - AjaxTimeoutErrorImpl.prototype = Object.create(AjaxError.prototype); - return AjaxTimeoutErrorImpl; -})(); -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/errors.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/errors.js.map deleted file mode 100644 index 285981b2f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/internal/ajax/errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAsD5D,MAAM,CAAC,MAAM,SAAS,GAAkB,gBAAgB,CACtD,CAAC,MAAM,EAAE,EAAE,CACT,SAAS,aAAa,CAAY,OAAe,EAAE,GAAmB,EAAE,OAAoB;IAC1F,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;IACxB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;IACzB,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC,YAAY,CAAC;IACrC,IAAI,QAAa,CAAC;IAClB,IAAI;QAGF,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;KAChC;IAAC,OAAO,GAAG,EAAE;QACZ,QAAQ,GAAG,GAAG,CAAC,YAAY,CAAC;KAC7B;IACD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC3B,CAAC,CACJ,CAAC;AAsBF,MAAM,CAAC,MAAM,gBAAgB,GAAyB,CAAC,GAAG,EAAE;IAC1D,SAAS,oBAAoB,CAAY,GAAmB,EAAE,OAAoB;QAChF,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;QACnD,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,oBAAoB,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACpE,OAAO,oBAAoB,CAAC;AAC9B,CAAC,CAAC,EAAS,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/getXHRResponse.js b/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/getXHRResponse.js deleted file mode 100755 index 9f947fd31..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/getXHRResponse.js +++ /dev/null @@ -1,26 +0,0 @@ -export function getXHRResponse(xhr) { - switch (xhr.responseType) { - case 'json': { - if ('response' in xhr) { - return xhr.response; - } - else { - const ieXHR = xhr; - return JSON.parse(ieXHR.responseText); - } - } - case 'document': - return xhr.responseXML; - case 'text': - default: { - if ('response' in xhr) { - return xhr.response; - } - else { - const ieXHR = xhr; - return ieXHR.responseText; - } - } - } -} -//# sourceMappingURL=getXHRResponse.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/getXHRResponse.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/getXHRResponse.js.map deleted file mode 100644 index f9fdf6839..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/getXHRResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getXHRResponse.js","sourceRoot":"","sources":["../../../../src/internal/ajax/getXHRResponse.ts"],"names":[],"mappings":"AAYA,MAAM,UAAU,cAAc,CAAC,GAAmB;IAChD,QAAQ,GAAG,CAAC,YAAY,EAAE;QACxB,KAAK,MAAM,CAAC,CAAC;YACX,IAAI,UAAU,IAAI,GAAG,EAAE;gBACrB,OAAO,GAAG,CAAC,QAAQ,CAAC;aACrB;iBAAM;gBAEL,MAAM,KAAK,GAAQ,GAAG,CAAC;gBACvB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;aACvC;SACF;QACD,KAAK,UAAU;YACb,OAAO,GAAG,CAAC,WAAW,CAAC;QACzB,KAAK,MAAM,CAAC;QACZ,OAAO,CAAC,CAAC;YACP,IAAI,UAAU,IAAI,GAAG,EAAE;gBACrB,OAAO,GAAG,CAAC,QAAQ,CAAC;aACrB;iBAAM;gBAEL,MAAM,KAAK,GAAQ,GAAG,CAAC;gBACvB,OAAO,KAAK,CAAC,YAAY,CAAC;aAC3B;SACF;KACF;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/types.js b/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/types.js deleted file mode 100755 index 718fd38ae..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/types.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/types.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/types.js.map deleted file mode 100644 index f08bdb1f3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/ajax/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/internal/ajax/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/config.js b/WechatBot/node_modules/rxjs/dist/esm/internal/config.js deleted file mode 100755 index 07906c288..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/config.js +++ /dev/null @@ -1,8 +0,0 @@ -export const config = { - onUnhandledError: null, - onStoppedNotification: null, - Promise: undefined, - useDeprecatedSynchronousErrorHandling: false, - useDeprecatedNextContext: false, -}; -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/config.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/config.js.map deleted file mode 100644 index fd7b0e12f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/internal/config.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,MAAM,GAAiB;IAClC,gBAAgB,EAAE,IAAI;IACtB,qBAAqB,EAAE,IAAI;IAC3B,OAAO,EAAE,SAAS;IAClB,qCAAqC,EAAE,KAAK;IAC5C,wBAAwB,EAAE,KAAK;CAChC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/firstValueFrom.js b/WechatBot/node_modules/rxjs/dist/esm/internal/firstValueFrom.js deleted file mode 100755 index 26c8b9f03..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/firstValueFrom.js +++ /dev/null @@ -1,24 +0,0 @@ -import { EmptyError } from './util/EmptyError'; -import { SafeSubscriber } from './Subscriber'; -export function firstValueFrom(source, config) { - const hasConfig = typeof config === 'object'; - return new Promise((resolve, reject) => { - const subscriber = new SafeSubscriber({ - next: (value) => { - resolve(value); - subscriber.unsubscribe(); - }, - error: reject, - complete: () => { - if (hasConfig) { - resolve(config.defaultValue); - } - else { - reject(new EmptyError()); - } - }, - }); - source.subscribe(subscriber); - }); -} -//# sourceMappingURL=firstValueFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/firstValueFrom.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/firstValueFrom.js.map deleted file mode 100644 index 4e16bc73a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/firstValueFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"firstValueFrom.js","sourceRoot":"","sources":["../../../src/internal/firstValueFrom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAqD9C,MAAM,UAAU,cAAc,CAAO,MAAqB,EAAE,MAAgC;IAC1F,MAAM,SAAS,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC;IAC7C,OAAO,IAAI,OAAO,CAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC5C,MAAM,UAAU,GAAG,IAAI,cAAc,CAAI;YACvC,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE;gBACd,OAAO,CAAC,KAAK,CAAC,CAAC;gBACf,UAAU,CAAC,WAAW,EAAE,CAAC;YAC3B,CAAC;YACD,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,GAAG,EAAE;gBACb,IAAI,SAAS,EAAE;oBACb,OAAO,CAAC,MAAO,CAAC,YAAY,CAAC,CAAC;iBAC/B;qBAAM;oBACL,MAAM,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;iBAC1B;YACH,CAAC;SACF,CAAC,CAAC;QACH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/lastValueFrom.js b/WechatBot/node_modules/rxjs/dist/esm/internal/lastValueFrom.js deleted file mode 100755 index 90b7bc35b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/lastValueFrom.js +++ /dev/null @@ -1,27 +0,0 @@ -import { EmptyError } from './util/EmptyError'; -export function lastValueFrom(source, config) { - const hasConfig = typeof config === 'object'; - return new Promise((resolve, reject) => { - let _hasValue = false; - let _value; - source.subscribe({ - next: (value) => { - _value = value; - _hasValue = true; - }, - error: reject, - complete: () => { - if (_hasValue) { - resolve(_value); - } - else if (hasConfig) { - resolve(config.defaultValue); - } - else { - reject(new EmptyError()); - } - }, - }); - }); -} -//# sourceMappingURL=lastValueFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/lastValueFrom.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/lastValueFrom.js.map deleted file mode 100644 index f9e72aca0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/lastValueFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lastValueFrom.js","sourceRoot":"","sources":["../../../src/internal/lastValueFrom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAoD/C,MAAM,UAAU,aAAa,CAAO,MAAqB,EAAE,MAA+B;IACxF,MAAM,SAAS,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC;IAC7C,OAAO,IAAI,OAAO,CAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC5C,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,MAAS,CAAC;QACd,MAAM,CAAC,SAAS,CAAC;YACf,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE;gBACd,MAAM,GAAG,KAAK,CAAC;gBACf,SAAS,GAAG,IAAI,CAAC;YACnB,CAAC;YACD,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE,GAAG,EAAE;gBACb,IAAI,SAAS,EAAE;oBACb,OAAO,CAAC,MAAM,CAAC,CAAC;iBACjB;qBAAM,IAAI,SAAS,EAAE;oBACpB,OAAO,CAAC,MAAO,CAAC,YAAY,CAAC,CAAC;iBAC/B;qBAAM;oBACL,MAAM,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;iBAC1B;YACH,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js deleted file mode 100755 index 0d7c10e46..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js +++ /dev/null @@ -1,57 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscription } from '../Subscription'; -import { refCount as higherOrderRefCount } from '../operators/refCount'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { hasLift } from '../util/lift'; -export class ConnectableObservable extends Observable { - constructor(source, subjectFactory) { - super(); - this.source = source; - this.subjectFactory = subjectFactory; - this._subject = null; - this._refCount = 0; - this._connection = null; - if (hasLift(source)) { - this.lift = source.lift; - } - } - _subscribe(subscriber) { - return this.getSubject().subscribe(subscriber); - } - getSubject() { - const subject = this._subject; - if (!subject || subject.isStopped) { - this._subject = this.subjectFactory(); - } - return this._subject; - } - _teardown() { - this._refCount = 0; - const { _connection } = this; - this._subject = this._connection = null; - _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe(); - } - connect() { - let connection = this._connection; - if (!connection) { - connection = this._connection = new Subscription(); - const subject = this.getSubject(); - connection.add(this.source.subscribe(createOperatorSubscriber(subject, undefined, () => { - this._teardown(); - subject.complete(); - }, (err) => { - this._teardown(); - subject.error(err); - }, () => this._teardown()))); - if (connection.closed) { - this._connection = null; - connection = Subscription.EMPTY; - } - } - return connection; - } - refCount() { - return higherOrderRefCount()(this); - } -} -//# sourceMappingURL=ConnectableObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js.map deleted file mode 100644 index 74fe4e960..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/ConnectableObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConnectableObservable.js","sourceRoot":"","sources":["../../../../src/internal/observable/ConnectableObservable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AASvC,MAAM,OAAO,qBAAyB,SAAQ,UAAa;IAgBzD,YAAmB,MAAqB,EAAY,cAAgC;QAClF,KAAK,EAAE,CAAC;QADS,WAAM,GAAN,MAAM,CAAe;QAAY,mBAAc,GAAd,cAAc,CAAkB;QAf1E,aAAQ,GAAsB,IAAI,CAAC;QACnC,cAAS,GAAW,CAAC,CAAC;QACtB,gBAAW,GAAwB,IAAI,CAAC;QAkBhD,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;YACnB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;SACzB;IACH,CAAC;IAGS,UAAU,CAAC,UAAyB;QAC5C,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACjD,C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,CAAC;IACpB,CAAC;IAMD,QAAQ;QACN,OAAO,mBAAmB,EAAE,CAAC,IAAI,CAAkB,CAAC;IACtD,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallback.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallback.js deleted file mode 100755 index 0f730acff..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallback.js +++ /dev/null @@ -1,5 +0,0 @@ -import { bindCallbackInternals } from './bindCallbackInternals'; -export function bindCallback(callbackFunc, resultSelector, scheduler) { - return bindCallbackInternals(false, callbackFunc, resultSelector, scheduler); -} -//# sourceMappingURL=bindCallback.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallback.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallback.js.map deleted file mode 100644 index 5b6af6fe0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallback.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindCallback.js","sourceRoot":"","sources":["../../../../src/internal/observable/bindCallback.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAuIhE,MAAM,UAAU,YAAY,CAC1B,YAAkE,EAClE,cAA0D,EAC1D,SAAyB;IAEzB,OAAO,qBAAqB,CAAC,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;AAC/E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallbackInternals.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallbackInternals.js deleted file mode 100755 index 79015c5f9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallbackInternals.js +++ /dev/null @@ -1,62 +0,0 @@ -import { isScheduler } from '../util/isScheduler'; -import { Observable } from '../Observable'; -import { subscribeOn } from '../operators/subscribeOn'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { observeOn } from '../operators/observeOn'; -import { AsyncSubject } from '../AsyncSubject'; -export function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) { - if (resultSelector) { - if (isScheduler(resultSelector)) { - scheduler = resultSelector; - } - else { - return function (...args) { - return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler) - .apply(this, args) - .pipe(mapOneOrManyArgs(resultSelector)); - }; - } - } - if (scheduler) { - return function (...args) { - return bindCallbackInternals(isNodeStyle, callbackFunc) - .apply(this, args) - .pipe(subscribeOn(scheduler), observeOn(scheduler)); - }; - } - return function (...args) { - const subject = new AsyncSubject(); - let uninitialized = true; - return new Observable((subscriber) => { - const subs = subject.subscribe(subscriber); - if (uninitialized) { - uninitialized = false; - let isAsync = false; - let isComplete = false; - callbackFunc.apply(this, [ - ...args, - (...results) => { - if (isNodeStyle) { - const err = results.shift(); - if (err != null) { - subject.error(err); - return; - } - } - subject.next(1 < results.length ? results : results[0]); - isComplete = true; - if (isAsync) { - subject.complete(); - } - }, - ]); - if (isComplete) { - subject.complete(); - } - isAsync = true; - } - return subs; - }); - }; -} -//# sourceMappingURL=bindCallbackInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallbackInternals.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallbackInternals.js.map deleted file mode 100644 index 7f87da02d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindCallbackInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindCallbackInternals.js","sourceRoot":"","sources":["../../../../src/internal/observable/bindCallbackInternals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACv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B,IAAI,EACJ;oBAEE,GAAG,IAAI;oBAEP,CAAC,GAAG,OAAc,EAAE,EAAE;wBACpB,IAAI,WAAW,EAAE;4BAIf,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;4BAC5B,IAAI,GAAG,IAAI,IAAI,EAAE;gCACf,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gCAGnB,OAAO;6BACR;yBACF;wBAKD,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC;wBAGxD,UAAU,GAAG,IAAI,CAAC;wBAMlB,IAAI,OAAO,EAAE;4BACX,OAAO,CAAC,QAAQ,EAAE,CAAC;yBACpB;oBACH,CAAC;iBACF,CACF,CAAC;gBAIF,IAAI,UAAU,EAAE;oBACd,OAAO,CAAC,QAAQ,EAAE,CAAC;iBACpB;gBAID,OAAO,GAAG,IAAI,CAAC;aAChB;YAGD,OAAO,IAAI,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindNodeCallback.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindNodeCallback.js deleted file mode 100755 index e8fbf5341..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindNodeCallback.js +++ /dev/null @@ -1,5 +0,0 @@ -import { bindCallbackInternals } from './bindCallbackInternals'; -export function bindNodeCallback(callbackFunc, resultSelector, scheduler) { - return bindCallbackInternals(true, callbackFunc, resultSelector, scheduler); -} -//# sourceMappingURL=bindNodeCallback.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindNodeCallback.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindNodeCallback.js.map deleted file mode 100644 index 81e488773..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/bindNodeCallback.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindNodeCallback.js","sourceRoot":"","sources":["../../../../src/internal/observable/bindNodeCallback.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAsHhE,MAAM,UAAU,gBAAgB,CAC9B,YAA4E,EAC5E,cAA0D,EAC1D,SAAyB;IAEzB,OAAO,qBAAqB,CAAC,IAAI,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;AAC9E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/combineLatest.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/combineLatest.js deleted file mode 100755 index f5d10fda6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/combineLatest.js +++ /dev/null @@ -1,62 +0,0 @@ -import { Observable } from '../Observable'; -import { argsArgArrayOrObject } from '../util/argsArgArrayOrObject'; -import { from } from './from'; -import { identity } from '../util/identity'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { popResultSelector, popScheduler } from '../util/args'; -import { createObject } from '../util/createObject'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { executeSchedule } from '../util/executeSchedule'; -export function combineLatest(...args) { - const scheduler = popScheduler(args); - const resultSelector = popResultSelector(args); - const { args: observables, keys } = argsArgArrayOrObject(args); - if (observables.length === 0) { - return from([], scheduler); - } - const result = new Observable(combineLatestInit(observables, scheduler, keys - ? - (values) => createObject(keys, values) - : - identity)); - return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result; -} -export function combineLatestInit(observables, scheduler, valueTransform = identity) { - return (subscriber) => { - maybeSchedule(scheduler, () => { - const { length } = observables; - const values = new Array(length); - let active = length; - let remainingFirstValues = length; - for (let i = 0; i < length; i++) { - maybeSchedule(scheduler, () => { - const source = from(observables[i], scheduler); - let hasFirstValue = false; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - values[i] = value; - if (!hasFirstValue) { - hasFirstValue = true; - remainingFirstValues--; - } - if (!remainingFirstValues) { - subscriber.next(valueTransform(values.slice())); - } - }, () => { - if (!--active) { - subscriber.complete(); - } - })); - }, subscriber); - } - }, subscriber); - }; -} -function maybeSchedule(scheduler, execute, subscription) { - if (scheduler) { - executeSchedule(subscription, scheduler, execute); - } - else { - execute(); - } -} -//# sourceMappingURL=combineLatest.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/combineLatest.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/combineLatest.js.map deleted file mode 100644 index 400b7d7e0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/combineLatest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatest.js","sourceRoot":"","sources":["../../../../src/internal/observable/combineLatest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AA4L1D,MAAM,UAAU,aAAa,CAAoC,GAAG,IAAW;IAC7E,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;I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AC,CAAC,CAAC,GAAG,KAAK,CAAC;wBAClB,IAAI,CAAC,aAAa,EAAE;4BAElB,aAAa,GAAG,IAAI,CAAC;4BACrB,oBAAoB,EAAE,CAAC;yBACxB;wBACD,IAAI,CAAC,oBAAoB,EAAE;4BAGzB,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;yBACjD;oBACH,CAAC,EACD,GAAG,EAAE;wBACH,IAAI,CAAC,EAAE,MAAM,EAAE;4BAGb,UAAU,CAAC,QAAQ,EAAE,CAAC;yBACvB;oBACH,CAAC,CACF,CACF,CAAC;gBACJ,CAAC,EACD,UAAU,CACX,CAAC;aACH;QACH,CAAC,EACD,UAAU,CACX,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAMD,SAAS,aAAa,CAAC,SAAoC,EAAE,OAAmB,EAAE,YAA0B;IAC1G,IAAI,SAAS,EAAE;QACb,eAAe,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;KACnD;SAAM;QACL,OAAO,EAAE,CAAC;KACX;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/concat.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/concat.js deleted file mode 100755 index f2706e0c5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/concat.js +++ /dev/null @@ -1,7 +0,0 @@ -import { concatAll } from '../operators/concatAll'; -import { popScheduler } from '../util/args'; -import { from } from './from'; -export function concat(...args) { - return concatAll()(from(args, popScheduler(args))); -} -//# sourceMappingURL=concat.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/concat.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/concat.js.map deleted file mode 100644 index 40fe68cf4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/concat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../../src/internal/observable/concat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA4G9B,MAAM,UAAU,MAAM,CAAC,GAAG,IAAW;IACnC,OAAO,SAAS,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/connectable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/connectable.js deleted file mode 100755 index c4cb53029..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/connectable.js +++ /dev/null @@ -1,26 +0,0 @@ -import { Subject } from '../Subject'; -import { Observable } from '../Observable'; -import { defer } from './defer'; -const DEFAULT_CONFIG = { - connector: () => new Subject(), - resetOnDisconnect: true, -}; -export function connectable(source, config = DEFAULT_CONFIG) { - let connection = null; - const { connector, resetOnDisconnect = true } = config; - let subject = connector(); - const result = new Observable((subscriber) => { - return subject.subscribe(subscriber); - }); - result.connect = () => { - if (!connection || connection.closed) { - connection = defer(() => source).subscribe(subject); - if (resetOnDisconnect) { - connection.add(() => (subject = connector())); - } - } - return connection; - }; - return result; -} -//# sourceMappingURL=connectable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/connectable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/connectable.js.map deleted file mode 100644 index 0721330c5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/connectable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"connectable.js","sourceRoot":"","sources":["../../../../src/internal/observable/connectable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAsBhC,MAAM,cAAc,GAA+B;IACjD,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,OAAO,EAAW;IACvC,iBAAiB,EAAE,IAAI;CACxB,CAAC;AAUF,MAAM,UAAU,WAAW,CAAI,MAA0B,EAAE,SAA+B,cAAc;IAEtG,IAAI,UAAU,GAAwB,IAAI,CAAC;IAC3C,MAAM,EAAE,SAAS,EAAE,iBAAiB,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IACvD,IAAI,OAAO,GAAG,SAAS,EAAE,CAAC;IAE1B,MAAM,MAAM,GAAQ,IAAI,UAAU,CAAI,CAAC,UAAU,EAAE,EAAE;QACnD,OAAO,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAKH,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE;QACpB,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,EAAE;YACpC,UAAU,GAAG,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACpD,IAAI,iBAAiB,EAAE;gBACrB,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;aAC/C;SACF;QACD,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/defer.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/defer.js deleted file mode 100755 index 0dd47a363..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/defer.js +++ /dev/null @@ -1,8 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from './innerFrom'; -export function defer(observableFactory) { - return new Observable((subscriber) => { - innerFrom(observableFactory()).subscribe(subscriber); - }); -} -//# sourceMappingURL=defer.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/defer.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/defer.js.map deleted file mode 100644 index e597bf298..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/defer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"defer.js","sourceRoot":"","sources":["../../../../src/internal/observable/defer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAkDxC,MAAM,UAAU,KAAK,CAAiC,iBAA0B;IAC9E,OAAO,IAAI,UAAU,CAAqB,CAAC,UAAU,EAAE,EAAE;QACvD,SAAS,CAAC,iBAAiB,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/WebSocketSubject.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/WebSocketSubject.js deleted file mode 100755 index 7a617228a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/WebSocketSubject.js +++ /dev/null @@ -1,214 +0,0 @@ -import { Subject, AnonymousSubject } from '../../Subject'; -import { Subscriber } from '../../Subscriber'; -import { Observable } from '../../Observable'; -import { Subscription } from '../../Subscription'; -import { ReplaySubject } from '../../ReplaySubject'; -const DEFAULT_WEBSOCKET_CONFIG = { - url: '', - deserializer: (e) => JSON.parse(e.data), - serializer: (value) => JSON.stringify(value), -}; -const WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT = 'WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }'; -export class WebSocketSubject extends AnonymousSubject { - constructor(urlConfigOrSource, destination) { - super(); - this._socket = null; - if (urlConfigOrSource instanceof Observable) { - this.destination = destination; - this.source = urlConfigOrSource; - } - else { - const config = (this._config = Object.assign({}, DEFAULT_WEBSOCKET_CONFIG)); - this._output = new Subject(); - if (typeof urlConfigOrSource === 'string') { - config.url = urlConfigOrSource; - } - else { - for (const key in urlConfigOrSource) { - if (urlConfigOrSource.hasOwnProperty(key)) { - config[key] = urlConfigOrSource[key]; - } - } - } - if (!config.WebSocketCtor && WebSocket) { - config.WebSocketCtor = WebSocket; - } - else if (!config.WebSocketCtor) { - throw new Error('no WebSocket constructor can be found'); - } - this.destination = new ReplaySubject(); - } - } - lift(operator) { - const sock = new WebSocketSubject(this._config, this.destination); - sock.operator = operator; - sock.source = this; - return sock; - } - _resetState() { - this._socket = null; - if (!this.source) { - this.destination = new ReplaySubject(); - } - this._output = new Subject(); - } - multiplex(subMsg, unsubMsg, messageFilter) { - const self = this; - return new Observable((observer) => { - try { - self.next(subMsg()); - } - catch (err) { - observer.error(err); - } - const subscription = self.subscribe({ - next: (x) => { - try { - if (messageFilter(x)) { - observer.next(x); - } - } - catch (err) { - observer.error(err); - } - }, - error: (err) => observer.error(err), - complete: () => observer.complete(), - }); - return () => { - try { - self.next(unsubMsg()); - } - catch (err) { - observer.error(err); - } - subscription.unsubscribe(); - }; - }); - } - _connectSocket() { - const { WebSocketCtor, protocol, url, binaryType } = this._config; - const observer = this._output; - let socket = null; - try { - socket = protocol ? new WebSocketCtor(url, protocol) : new WebSocketCtor(url); - this._socket = socket; - if (binaryType) { - this._socket.binaryType = binaryType; - } - } - catch (e) { - observer.error(e); - return; - } - const subscription = new Subscription(() => { - this._socket = null; - if (socket && socket.readyState === 1) { - socket.close(); - } - }); - socket.onopen = (evt) => { - const { _socket } = this; - if (!_socket) { - socket.close(); - this._resetState(); - return; - } - const { openObserver } = this._config; - if (openObserver) { - openObserver.next(evt); - } - const queue = this.destination; - this.destination = Subscriber.create((x) => { - if (socket.readyState === 1) { - try { - const { serializer } = this._config; - socket.send(serializer(x)); - } - catch (e) { - this.destination.error(e); - } - } - }, (err) => { - const { closingObserver } = this._config; - if (closingObserver) { - closingObserver.next(undefined); - } - if (err && err.code) { - socket.close(err.code, err.reason); - } - else { - observer.error(new TypeError(WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT)); - } - this._resetState(); - }, () => { - const { closingObserver } = this._config; - if (closingObserver) { - closingObserver.next(undefined); - } - socket.close(); - this._resetState(); - }); - if (queue && queue instanceof ReplaySubject) { - subscription.add(queue.subscribe(this.destination)); - } - }; - socket.onerror = (e) => { - this._resetState(); - observer.error(e); - }; - socket.onclose = (e) => { - if (socket === this._socket) { - this._resetState(); - } - const { closeObserver } = this._config; - if (closeObserver) { - closeObserver.next(e); - } - if (e.wasClean) { - observer.complete(); - } - else { - observer.error(e); - } - }; - socket.onmessage = (e) => { - try { - const { deserializer } = this._config; - observer.next(deserializer(e)); - } - catch (err) { - observer.error(err); - } - }; - } - _subscribe(subscriber) { - const { source } = this; - if (source) { - return source.subscribe(subscriber); - } - if (!this._socket) { - this._connectSocket(); - } - this._output.subscribe(subscriber); - subscriber.add(() => { - const { _socket } = this; - if (this._output.observers.length === 0) { - if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) { - _socket.close(); - } - this._resetState(); - } - }); - return subscriber; - } - unsubscribe() { - const { _socket } = this; - if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) { - _socket.close(); - } - this._resetState(); - super.unsubscribe(); - } -} -//# sourceMappingURL=WebSocketSubject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/WebSocketSubject.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/WebSocketSubject.js.map deleted file mode 100644 index 0a1ef94c9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/WebSocketSubject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WebSocketSubject.js","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/Web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AC,WAAW,EAAE,CAAC;QACnB,KAAK,CAAC,WAAW,EAAE,CAAC;IACtB,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/animationFrames.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/animationFrames.js deleted file mode 100755 index d29825fd6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/animationFrames.js +++ /dev/null @@ -1,34 +0,0 @@ -import { Observable } from '../../Observable'; -import { performanceTimestampProvider } from '../../scheduler/performanceTimestampProvider'; -import { animationFrameProvider } from '../../scheduler/animationFrameProvider'; -export function animationFrames(timestampProvider) { - return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES; -} -function animationFramesFactory(timestampProvider) { - return new Observable((subscriber) => { - const provider = timestampProvider || performanceTimestampProvider; - const start = provider.now(); - let id = 0; - const run = () => { - if (!subscriber.closed) { - id = animationFrameProvider.requestAnimationFrame((timestamp) => { - id = 0; - const now = provider.now(); - subscriber.next({ - timestamp: timestampProvider ? now : timestamp, - elapsed: now - start, - }); - run(); - }); - } - }; - run(); - return () => { - if (id) { - animationFrameProvider.cancelAnimationFrame(id); - } - }; - }); -} -const DEFAULT_ANIMATION_FRAMES = animationFramesFactory(); -//# sourceMappingURL=animationFrames.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/animationFrames.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/animationFrames.js.map deleted file mode 100644 index 56c16cddf..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/animationFrames.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrames.js","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/animationFrames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,C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rxjs/dist/esm/internal/observable/dom/fetch.js deleted file mode 100755 index 48b0af321..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/fetch.js +++ /dev/null @@ -1,53 +0,0 @@ -import { __rest } from "tslib"; -import { createOperatorSubscriber } from '../../operators/OperatorSubscriber'; -import { Observable } from '../../Observable'; -import { innerFrom } from '../../observable/innerFrom'; -export function fromFetch(input, initWithSelector = {}) { - const { selector } = initWithSelector, init = __rest(initWithSelector, ["selector"]); - return new Observable((subscriber) => { - const controller = new AbortController(); - const { signal } = controller; - let abortable = true; - const { signal: outerSignal } = init; - if (outerSignal) { - if (outerSignal.aborted) { - controller.abort(); - } - else { - const outerSignalHandler = () => { - if (!signal.aborted) { - controller.abort(); - } - }; - outerSignal.addEventListener('abort', outerSignalHandler); - subscriber.add(() => outerSignal.removeEventListener('abort', outerSignalHandler)); - } - } - const perSubscriberInit = Object.assign(Object.assign({}, init), { signal }); - const handleError = (err) => { - abortable = false; - subscriber.error(err); - }; - fetch(input, perSubscriberInit) - .then((response) => { - if (selector) { - innerFrom(selector(response)).subscribe(createOperatorSubscriber(subscriber, undefined, () => { - abortable = false; - subscriber.complete(); - }, handleError)); - } - else { - abortable = false; - subscriber.next(response); - subscriber.complete(); - } - }) - .catch(handleError); - return () => { - if (abortable) { - controller.abort(); - } - }; - }); -} -//# sourceMappingURL=fetch.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/fetch.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/fetch.js.map deleted file mode 100644 index 14183345f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/fetch.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/fetch.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAA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AQ,EAAE;gBAIZ,SAAS,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CACrC,wBAAwB,CACtB,UAAU,EAEV,SAAS,EAET,GAAG,EAAE;oBACH,SAAS,GAAG,KAAK,CAAC;oBAClB,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACxB,CAAC,EACD,WAAW,CACZ,CACF,CAAC;aACH;iBAAM;gBACL,SAAS,GAAG,KAAK,CAAC;gBAClB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC1B,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,CAAC;aACD,KAAK,CAAC,WAAW,CAAC,CAAC;QAEtB,OAAO,GAAG,EAAE;YACV,IAAI,SAAS,EAAE;gBACb,UAAU,CAAC,KAAK,EAAE,CAAC;aACpB;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/webSocket.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/webSocket.js deleted file mode 100755 index 73a51ab4d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/webSocket.js +++ /dev/null @@ -1,5 +0,0 @@ -import { WebSocketSubject } from './WebSocketSubject'; -export function webSocket(urlConfigOrSource) { - return new WebSocketSubject(urlConfigOrSource); -} -//# sourceMappingURL=webSocket.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/webSocket.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/webSocket.js.map deleted file mode 100644 index ab58e4093..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/dom/webSocket.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webSocket.js","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/webSocket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,oBAAoB,CAAC;AA+J9E,MAAM,UAAU,SAAS,CAAI,iBAAqD;IAChF,OAAO,IAAI,gBAAgB,CAAI,iBAAiB,CAAC,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/empty.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/empty.js deleted file mode 100755 index 13be73627..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/empty.js +++ /dev/null @@ -1,9 +0,0 @@ -import { Observable } from '../Observable'; -export const EMPTY = new Observable((subscriber) => subscriber.complete()); -export function empty(scheduler) { - return scheduler ? emptyScheduled(scheduler) : EMPTY; -} -function emptyScheduled(scheduler) { - return new Observable((subscriber) => scheduler.schedule(() => subscriber.complete())); -} -//# sourceMappingURL=empty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/empty.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/empty.js.map deleted file mode 100644 index 8eb1e1fe4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/empty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../../src/internal/observable/empty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAiE3C,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,UAAU,CAAQ,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;AAOlF,MAAM,UAAU,KAAK,CAAC,SAAyB;IAC7C,OAAO,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AACvD,CAAC;AAED,SAAS,cAAc,CAAC,SAAwB;IAC9C,OAAO,IAAI,UAAU,CAAQ,CAAC,UAAU,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAChG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/forkJoin.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/forkJoin.js deleted file mode 100755 index fe5b0959a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/forkJoin.js +++ /dev/null @@ -1,40 +0,0 @@ -import { Observable } from '../Observable'; -import { argsArgArrayOrObject } from '../util/argsArgArrayOrObject'; -import { innerFrom } from './innerFrom'; -import { popResultSelector } from '../util/args'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { createObject } from '../util/createObject'; -export function forkJoin(...args) { - const resultSelector = popResultSelector(args); - const { args: sources, keys } = argsArgArrayOrObject(args); - const result = new Observable((subscriber) => { - const { length } = sources; - if (!length) { - subscriber.complete(); - return; - } - const values = new Array(length); - let remainingCompletions = length; - let remainingEmissions = length; - for (let sourceIndex = 0; sourceIndex < length; sourceIndex++) { - let hasValue = false; - innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, (value) => { - if (!hasValue) { - hasValue = true; - remainingEmissions--; - } - values[sourceIndex] = value; - }, () => remainingCompletions--, undefined, () => { - if (!remainingCompletions || !hasValue) { - if (!remainingEmissions) { - subscriber.next(keys ? createObject(keys, values) : values); - } - subscriber.complete(); - } - })); - } - }); - return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result; -} -//# sourceMappingURL=forkJoin.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/forkJoin.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/forkJoin.js.map deleted file mode 100644 index ee1d5c1f9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/forkJoin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"forkJoin.js","sourceRoot":"","sources":["../../../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AChB,kBAAkB,EAAE,CAAC;iBACtB;gBACD,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;YAC9B,CAAC,EACD,GAAG,EAAE,CAAC,oBAAoB,EAAE,EAC5B,SAAS,EACT,GAAG,EAAE;gBACH,IAAI,CAAC,oBAAoB,IAAI,CAAC,QAAQ,EAAE;oBACtC,IAAI,CAAC,kBAAkB,EAAE;wBACvB,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;qBAC7D;oBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;iBACvB;YACH,CAAC,CACF,CACF,CAAC;SACH;IACH,CAAC,CAAC,CAAC;IACH,OAAO,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACjF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/from.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/from.js deleted file mode 100755 index 2b61be430..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/from.js +++ /dev/null @@ -1,6 +0,0 @@ -import { scheduled } from '../scheduled/scheduled'; -import { innerFrom } from './innerFrom'; -export function from(input, scheduler) { - return scheduler ? scheduled(input, scheduler) : innerFrom(input); -} -//# sourceMappingURL=from.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/from.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/from.js.map deleted file mode 100644 index baf621f79..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/from.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"from.js","sourceRoot":"","sources":["../../../../src/internal/observable/from.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAkGxC,MAAM,UAAU,IAAI,CAAI,KAAyB,EAAE,SAAyB;IAC1E,OAAO,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACpE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEvent.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEvent.js deleted file mode 100755 index fbb95c989..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEvent.js +++ /dev/null @@ -1,52 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { Observable } from '../Observable'; -import { mergeMap } from '../operators/mergeMap'; -import { isArrayLike } from '../util/isArrayLike'; -import { isFunction } from '../util/isFunction'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -const nodeEventEmitterMethods = ['addListener', 'removeListener']; -const eventTargetMethods = ['addEventListener', 'removeEventListener']; -const jqueryMethods = ['on', 'off']; -export function fromEvent(target, eventName, options, resultSelector) { - if (isFunction(options)) { - resultSelector = options; - options = undefined; - } - if (resultSelector) { - return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector)); - } - const [add, remove] = isEventTarget(target) - ? eventTargetMethods.map((methodName) => (handler) => target[methodName](eventName, handler, options)) - : - isNodeStyleEventEmitter(target) - ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) - : isJQueryStyleEventEmitter(target) - ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) - : []; - if (!add) { - if (isArrayLike(target)) { - return mergeMap((subTarget) => fromEvent(subTarget, eventName, options))(innerFrom(target)); - } - } - if (!add) { - throw new TypeError('Invalid event target'); - } - return new Observable((subscriber) => { - const handler = (...args) => subscriber.next(1 < args.length ? args : args[0]); - add(handler); - return () => remove(handler); - }); -} -function toCommonHandlerRegistry(target, eventName) { - return (methodName) => (handler) => target[methodName](eventName, handler); -} -function isNodeStyleEventEmitter(target) { - return isFunction(target.addListener) && isFunction(target.removeListener); -} -function isJQueryStyleEventEmitter(target) { - return isFunction(target.on) && isFunction(target.off); -} -function isEventTarget(target) { - return isFunction(target.addEventListener) && isFunction(target.removeEventListener); -} -//# sourceMappingURL=fromEvent.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEvent.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEvent.js.map deleted file mode 100644 index 21d63fba3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEvent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fromEvent.js","sourceRoot":"","sources":["../../../../src/internal/observable/fromEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,MAAM,uBAAuB,GAAG,CAAC,aAAa,EAAE,gBAAgB,CAAU,CAAC;AAC3E,MAAM,kBAAkB,GAAG,CAAC,kBAAkB,EAAE,qBAAqB,CAAU,CAAC;AAChF,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU,CAAC;AAkO7C,MAAM,UAAU,SAAS,CACvB,MAAW,EACX,SAAiB,EACjB,OAAwD,EACxD,cAAsC;IAEtC,IAAI,UAAU,CAAC,OAAO,CAAC,EAAE;QACvB,cAAc,GAAG,OAAO,CAAC;QACzB,OAAO,GAAG,SAAS,CAAC;KACrB;IACD,I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CAAC,CAAC,CAAC,CAAC;QAEtF,GAAG,CAAC,OAAO,CAAC,CAAC;QAEb,OAAO,GAAG,EAAE,CAAC,MAAO,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC;AASD,SAAS,uBAAuB,CAAC,MAAW,EAAE,SAAiB;IAC7D,OAAO,CAAC,UAAkB,EAAE,EAAE,CAAC,CAAC,OAAY,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC1F,CAAC;AAOD,SAAS,uBAAuB,CAAC,MAAW;IAC1C,OAAO,UAAU,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;AAC7E,CAAC;AAOD,SAAS,yBAAyB,CAAC,MAAW;IAC5C,OAAO,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACzD,CAAC;AAOD,SAAS,aAAa,CAAC,MAAW;IAChC,OAAO,UAAU,CAAC,MAAM,CAAC,gBAAgB,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC;AACvF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEventPattern.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEventPattern.js deleted file mode 100755 index 6ec311b47..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEventPattern.js +++ /dev/null @@ -1,14 +0,0 @@ -import { Observable } from '../Observable'; -import { isFunction } from '../util/isFunction'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -export function fromEventPattern(addHandler, removeHandler, resultSelector) { - if (resultSelector) { - return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs(resultSelector)); - } - return new Observable((subscriber) => { - const handler = (...e) => subscriber.next(e.length === 1 ? e[0] : e); - const retValue = addHandler(handler); - return isFunction(removeHandler) ? () => removeHandler(handler, retValue) : undefined; - }); -} -//# sourceMappingURL=fromEventPattern.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEventPattern.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEventPattern.js.map deleted file mode 100644 index 704d0e985..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromEventPattern.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fromEventPattern.js","sourceRoot":"","sources":["../../../../src/internal/observable/fromEventPattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAyI5D,MAAM,UAAU,gBAAgB,CAC9B,UAA8C,EAC9C,aAAiE,EACjE,cAAsC;IAEtC,IAAI,cAAc,EAAE;QAClB,OAAO,gBAAgB,CAAI,UAAU,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC;KAC9F;IAED,OAAO,IAAI,UAAU,CAAU,CAAC,UAAU,EAAE,EAAE;QAC5C,MAAM,OAAO,GAAG,CAAC,GAAG,CAAM,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1E,MAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;QACrC,OAAO,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACxF,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromSubscribable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromSubscribable.js deleted file mode 100755 index bfc7c8cc3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromSubscribable.js +++ /dev/null @@ -1,5 +0,0 @@ -import { Observable } from '../Observable'; -export function fromSubscribable(subscribable) { - return new Observable((subscriber) => subscribable.subscribe(subscriber)); -} -//# sourceMappingURL=fromSubscribable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromSubscribable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromSubscribable.js.map deleted file mode 100644 index 072536671..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/fromSubscribable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fromSubscribable.js","sourceRoot":"","sources":["../../../../src/internal/observable/fromSubscribable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAc3C,MAAM,UAAU,gBAAgB,CAAI,YAA6B;IAC/D,OAAO,IAAI,UAAU,CAAC,CAAC,UAAyB,EAAE,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;AAC3F,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/generate.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/generate.js deleted file mode 100755 index 4d709c7e7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/generate.js +++ /dev/null @@ -1,38 +0,0 @@ -import { identity } from '../util/identity'; -import { isScheduler } from '../util/isScheduler'; -import { defer } from './defer'; -import { scheduleIterable } from '../scheduled/scheduleIterable'; -export function generate(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) { - let resultSelector; - let initialState; - if (arguments.length === 1) { - ({ - initialState, - condition, - iterate, - resultSelector = identity, - scheduler, - } = initialStateOrOptions); - } - else { - initialState = initialStateOrOptions; - if (!resultSelectorOrScheduler || isScheduler(resultSelectorOrScheduler)) { - resultSelector = identity; - scheduler = resultSelectorOrScheduler; - } - else { - resultSelector = resultSelectorOrScheduler; - } - } - function* gen() { - for (let state = initialState; !condition || condition(state); state = iterate(state)) { - yield resultSelector(state); - } - } - return defer((scheduler - ? - () => scheduleIterable(gen(), scheduler) - : - gen)); -} -//# sourceMappingURL=generate.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/generate.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/generate.js.map deleted file mode 100644 index a9f9d7886..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/generate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../src/internal/observable/generate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAuUjE,MAAM,UAAU,QAAQ,CACtB,qBAAgD,EAChD,SAA4B,EAC5B,OAAwB,EACxB,yBAA4D,EAC5D,SAAyB;IAEzB,IAAI,cAAgC,CAAC;IACrC,IAAI,YAAe,CAAC;IAIpB,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;QAG1B,CAAC;YACC,YAAY;YACZ,SAAS;YACT,OAAO;YACP,cAAc,GAAG,QAA4B;YAC7C,SAAS;SACV,GAAG,qBAA8C,CAAC,CAAC;KACrD;SAAM;QAGL,YAAY,GAAG,qBAA0B,CAAC;QAC1C,IAAI,CAAC,yBAAyB,IAAI,WAAW,CAAC,yBAAyB,CAAC,EAAE;YACxE,cAAc,GAAG,QAA4B,CAAC;YAC9C,SAAS,GAAG,yBAA0C,CAAC;SACxD;aAAM;YACL,cAAc,GAAG,yBAA6C,CAAC;SAChE;KACF;IAGD,QAAQ,CAAC,CAAC,GAAG;QACX,KAAK,IAAI,KAAK,GAAG,YAAY,EAAE,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,OAAQ,CAAC,KAAK,CAAC,EAAE;YACtF,MAAM,cAAc,CAAC,KAAK,CAAC,CAAC;SAC7B;IACH,CAAC;IAGD,OAAO,KAAK,CACV,CAAC,SAAS;QACR,CAAC;YAEC,GAAG,EAAE,CAAC,gBAAgB,CAAC,GAAG,EAAE,EAAE,SAAU,CAAC;QAC3C,CAAC;YAEC,GAAG,CAA6B,CACrC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/iif.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/iif.js deleted file mode 100755 index 8a204d6b7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/iif.js +++ /dev/null @@ -1,5 +0,0 @@ -import { defer } from './defer'; -export function iif(condition, trueResult, falseResult) { - return defer(() => (condition() ? trueResult : falseResult)); -} -//# sourceMappingURL=iif.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/iif.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/iif.js.map deleted file mode 100644 index a1750516c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/iif.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"iif.js","sourceRoot":"","sources":["../../../../src/internal/observable/iif.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAiFhC,MAAM,UAAU,GAAG,CAAO,SAAwB,EAAE,UAA8B,EAAE,WAA+B;IACjH,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;AAC/D,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/innerFrom.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/innerFrom.js deleted file mode 100755 index f315ce5b1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/innerFrom.js +++ /dev/null @@ -1,110 +0,0 @@ -import { __asyncValues, __awaiter } from "tslib"; -import { isArrayLike } from '../util/isArrayLike'; -import { isPromise } from '../util/isPromise'; -import { Observable } from '../Observable'; -import { isInteropObservable } from '../util/isInteropObservable'; -import { isAsyncIterable } from '../util/isAsyncIterable'; -import { createInvalidObservableTypeError } from '../util/throwUnobservableError'; -import { isIterable } from '../util/isIterable'; -import { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike'; -import { isFunction } from '../util/isFunction'; -import { reportUnhandledError } from '../util/reportUnhandledError'; -import { observable as Symbol_observable } from '../symbol/observable'; -export function innerFrom(input) { - if (input instanceof Observable) { - return input; - } - if (input != null) { - if (isInteropObservable(input)) { - return fromInteropObservable(input); - } - if (isArrayLike(input)) { - return fromArrayLike(input); - } - if (isPromise(input)) { - return fromPromise(input); - } - if (isAsyncIterable(input)) { - return fromAsyncIterable(input); - } - if (isIterable(input)) { - return fromIterable(input); - } - if (isReadableStreamLike(input)) { - return fromReadableStreamLike(input); - } - } - throw createInvalidObservableTypeError(input); -} -export function fromInteropObservable(obj) { - return new Observable((subscriber) => { - const obs = obj[Symbol_observable](); - if (isFunction(obs.subscribe)) { - return obs.subscribe(subscriber); - } - throw new TypeError('Provided object does not correctly implement Symbol.observable'); - }); -} -export function fromArrayLike(array) { - return new Observable((subscriber) => { - for (let i = 0; i < array.length && !subscriber.closed; i++) { - subscriber.next(array[i]); - } - subscriber.complete(); - }); -} -export function fromPromise(promise) { - return new Observable((subscriber) => { - promise - .then((value) => { - if (!subscriber.closed) { - subscriber.next(value); - subscriber.complete(); - } - }, (err) => subscriber.error(err)) - .then(null, reportUnhandledError); - }); -} -export function fromIterable(iterable) { - return new Observable((subscriber) => { - for (const value of iterable) { - subscriber.next(value); - if (subscriber.closed) { - return; - } - } - subscriber.complete(); - }); -} -export function fromAsyncIterable(asyncIterable) { - return new Observable((subscriber) => { - process(asyncIterable, subscriber).catch((err) => subscriber.error(err)); - }); -} -export function fromReadableStreamLike(readableStream) { - return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream)); -} -function process(asyncIterable, subscriber) { - var asyncIterable_1, asyncIterable_1_1; - var e_1, _a; - return __awaiter(this, void 0, void 0, function* () { - try { - for (asyncIterable_1 = __asyncValues(asyncIterable); asyncIterable_1_1 = yield asyncIterable_1.next(), !asyncIterable_1_1.done;) { - const value = asyncIterable_1_1.value; - subscriber.next(value); - if (subscriber.closed) { - return; - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return)) yield _a.call(asyncIterable_1); - } - finally { if (e_1) throw e_1.error; } - } - subscriber.complete(); - }); -} -//# sourceMappingURL=innerFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/innerFrom.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/innerFrom.js.map deleted file mode 100644 index 69c1286f7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/innerFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"innerFrom.js","sourceRoot":"","sources":["../../../../src/internal/observable/innerFrom.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,C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5B,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvB,IAAI,UAAU,CAAC,MAAM,EAAE;gBACrB,OAAO;aACR;SACF;QACD,UAAU,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,aAA+B;IAClE,OAAO,IAAI,UAAU,CAAC,CAAC,UAAyB,EAAE,EAAE;QAClD,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,cAAqC;IAC7E,OAAO,iBAAiB,CAAC,kCAAkC,CAAC,cAAc,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAe,OAAO,CAAI,aAA+B,EAAE,UAAyB;;;;;YAClF,KAA0B,kBAAA,cAAA,aAAa,CAAA;gBAA5B,MAAM,KAAK,0BAAA,CAAA;gBACpB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAGvB,IAAI,UAAU,CAAC,MAAM,EAAE;oBACrB,OAAO;iBACR;aACF;;;;;;;;;QACD,UAAU,CAAC,QAAQ,EAAE,CAAC;;CACvB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/interval.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/interval.js deleted file mode 100755 index 6cec82a29..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/interval.js +++ /dev/null @@ -1,9 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { timer } from './timer'; -export function interval(period = 0, scheduler = asyncScheduler) { - if (period < 0) { - period = 0; - } - return timer(period, period, scheduler); -} -//# sourceMappingURL=interval.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/interval.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/interval.js.map deleted file mode 100644 index 561565d2a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/interval.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"interval.js","sourceRoot":"","sources":["../../../../src/internal/observable/interval.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA+ChC,MAAM,UAAU,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,YAA2B,cAAc;IAC5E,IAAI,MAAM,GAAG,CAAC,EAAE;QAEd,MAAM,GAAG,CAAC,CAAC;KACZ;IAED,OAAO,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;AAC1C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/merge.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/merge.js deleted file mode 100755 index 0275354f4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/merge.js +++ /dev/null @@ -1,19 +0,0 @@ -import { mergeAll } from '../operators/mergeAll'; -import { innerFrom } from './innerFrom'; -import { EMPTY } from './empty'; -import { popNumber, popScheduler } from '../util/args'; -import { from } from './from'; -export function merge(...args) { - const scheduler = popScheduler(args); - const concurrent = popNumber(args, Infinity); - const sources = args; - return !sources.length - ? - EMPTY - : sources.length === 1 - ? - innerFrom(sources[0]) - : - mergeAll(concurrent)(from(sources, scheduler)); -} -//# sourceMappingURL=merge.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/merge.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/merge.js.map deleted file mode 100644 index 54d8d9396..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/merge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../../src/internal/observable/merge.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAmF9B,MAAM,UAAU,KAAK,CAAC,GAAG,IAA2D;IAClF,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,UAAU,GAAG,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAG,IAAkC,CAAC;IACnD,OAAO,CAAC,OAAO,CAAC,MAAM;QACpB,CAAC;YACC,KAAK;QACP,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;YACtB,CAAC;gBACC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACvB,CAAC;gBACC,QAAQ,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/never.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/never.js deleted file mode 100755 index ca45f7577..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/never.js +++ /dev/null @@ -1,7 +0,0 @@ -import { Observable } from '../Observable'; -import { noop } from '../util/noop'; -export const NEVER = new Observable(noop); -export function never() { - return NEVER; -} -//# sourceMappingURL=never.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/never.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/never.js.map deleted file mode 100644 index 7c323ad59..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/never.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"never.js","sourceRoot":"","sources":["../../../../src/internal/observable/never.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAmCpC,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,UAAU,CAAQ,IAAI,CAAC,CAAC;AAKjD,MAAM,UAAU,KAAK;IACnB,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/of.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/of.js deleted file mode 100755 index 711d706e7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/of.js +++ /dev/null @@ -1,7 +0,0 @@ -import { popScheduler } from '../util/args'; -import { from } from './from'; -export function of(...args) { - const scheduler = popScheduler(args); - return from(args, scheduler); -} -//# sourceMappingURL=of.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/of.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/of.js.map deleted file mode 100644 index 97eb298de..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/of.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"of.js","sourceRoot":"","sources":["../../../../src/internal/observable/of.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA4E9B,MAAM,UAAU,EAAE,CAAI,GAAG,IAA8B;IACrD,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,IAAI,CAAC,IAAW,EAAE,SAAS,CAAC,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js deleted file mode 100755 index ef7437745..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js +++ /dev/null @@ -1,31 +0,0 @@ -import { Observable } from '../Observable'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { OperatorSubscriber } from '../operators/OperatorSubscriber'; -import { noop } from '../util/noop'; -import { innerFrom } from './innerFrom'; -export function onErrorResumeNext(...sources) { - const nextSources = argsOrArgArray(sources); - return new Observable((subscriber) => { - let sourceIndex = 0; - const subscribeNext = () => { - if (sourceIndex < nextSources.length) { - let nextSource; - try { - nextSource = innerFrom(nextSources[sourceIndex++]); - } - catch (err) { - subscribeNext(); - return; - } - const innerSubscriber = new OperatorSubscriber(subscriber, undefined, noop, noop); - nextSource.subscribe(innerSubscriber); - innerSubscriber.add(subscribeNext); - } - else { - subscriber.complete(); - } - }; - subscribeNext(); - }); -} -//# sourceMappingURL=onErrorResumeNext.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js.map deleted file mode 100644 index 8c06865d9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/onErrorResumeNext.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"onErrorResumeNext.js","sourceRoot":"","sources":["../../../../src/internal/observable/onErrorResumeNext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAsExC,MAAM,UAAU,iBAAiB,CAC/B,GAAG,OAAsE;IAEzE,MAAM,WAAW,GAA4B,cAAc,CAAC,OAAO,CAAQ,CAAC;IAE5E,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,EAAE;QACnC,IAAI,WAAW,GAAG,CAAC,CAAC;QACpB,MAAM,aAAa,GAAG,GAAG,EAAE;YACzB,IAAI,WAAW,GAAG,WAAW,CAAC,MAAM,EAAE;gBACpC,IAAI,UAAiC,CAAC;gBACtC,IAAI;oBACF,UAAU,GAAG,SAAS,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;iBACpD;gBAAC,OAAO,GAAG,EAAE;oBACZ,aAAa,EAAE,CAAC;oBAChB,OAAO;iBACR;gBACD,MAAM,eAAe,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;gBAClF,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;gBACtC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;aACpC;iBAAM;gBACL,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,CAAC;QACF,aAAa,EAAE,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/pairs.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/pairs.js deleted file mode 100755 index 77cc11052..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/pairs.js +++ /dev/null @@ -1,5 +0,0 @@ -import { from } from './from'; -export function pairs(obj, scheduler) { - return from(Object.entries(obj), scheduler); -} -//# sourceMappingURL=pairs.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/pairs.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/pairs.js.map deleted file mode 100644 index 50c158e5a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/pairs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pairs.js","sourceRoot":"","sources":["../../../../src/internal/observable/pairs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA6E9B,MAAM,UAAU,KAAK,CAAC,GAAQ,EAAE,SAAyB;IACvD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,SAAgB,CAAC,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/partition.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/partition.js deleted file mode 100755 index a5a7d483b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/partition.js +++ /dev/null @@ -1,7 +0,0 @@ -import { not } from '../util/not'; -import { filter } from '../operators/filter'; -import { innerFrom } from './innerFrom'; -export function partition(source, predicate, thisArg) { - return [filter(predicate, thisArg)(innerFrom(source)), filter(not(predicate, thisArg))(innerFrom(source))]; -} -//# sourceMappingURL=partition.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/partition.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/partition.js.map deleted file mode 100644 index 746610448..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/partition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"partition.js","sourceRoot":"","sources":["../../../../src/internal/observable/partition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA0ExC,MAAM,UAAU,SAAS,CACvB,MAA0B,EAC1B,SAA0D,EAC1D,OAAa;IAEb,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAGxG,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/race.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/race.js deleted file mode 100755 index c45a0ee78..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/race.js +++ /dev/null @@ -1,25 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from './innerFrom'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -export function race(...sources) { - sources = argsOrArgArray(sources); - return sources.length === 1 ? innerFrom(sources[0]) : new Observable(raceInit(sources)); -} -export function raceInit(sources) { - return (subscriber) => { - let subscriptions = []; - for (let i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) { - subscriptions.push(innerFrom(sources[i]).subscribe(createOperatorSubscriber(subscriber, (value) => { - if (subscriptions) { - for (let s = 0; s < subscriptions.length; s++) { - s !== i && subscriptions[s].unsubscribe(); - } - subscriptions = null; - } - subscriber.next(value); - }))); - } - }; -} -//# sourceMappingURL=race.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/race.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/race.js.map deleted file mode 100644 index 9df27c2c3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/race.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"race.js","sourceRoot":"","sources":["../../../../src/internal/observable/race.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AA6C3E,MAAM,UAAU,IAAI,CAAI,GAAG,OAAsD;IAC/E,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAElC,OAAO,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAuB,CAAC,CAAC,CAAC,CAAC,IAAI,UAAU,CAAI,QAAQ,CAAC,OAA+B,CAAC,CAAC,CAAC;AAC3I,CAAC;AAOD,MAAM,UAAU,QAAQ,CAAI,OAA6B;IACvD,OAAO,CAAC,UAAyB,EAAE,EAAE;QACnC,IAAI,aAAa,GAAmB,EAAE,CAAC;QAMvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,aAAa,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC9E,aAAa,CAAC,IAAI,CAChB,SAAS,CAAC,OAAO,CAAC,CAAC,CAAuB,CAAC,CAAC,SAAS,CACnD,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;gBAC7C,IAAI,aAAa,EAAE;oBAGjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBAC7C,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;qBAC3C;oBACD,aAAa,GAAG,IAAK,CAAC;iBACvB;gBACD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzB,CAAC,CAAC,CACH,CACF,CAAC;SACH;IACH,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/range.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/range.js deleted file mode 100755 index 7ff311be0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/range.js +++ /dev/null @@ -1,35 +0,0 @@ -import { Observable } from '../Observable'; -import { EMPTY } from './empty'; -export function range(start, count, scheduler) { - if (count == null) { - count = start; - start = 0; - } - if (count <= 0) { - return EMPTY; - } - const end = count + start; - return new Observable(scheduler - ? - (subscriber) => { - let n = start; - return scheduler.schedule(function () { - if (n < end) { - subscriber.next(n++); - this.schedule(); - } - else { - subscriber.complete(); - } - }); - } - : - (subscriber) => { - let n = start; - while (n < end && !subscriber.closed) { - subscriber.next(n++); - } - subscriber.complete(); - }); -} -//# sourceMappingURL=range.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/range.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/range.js.map deleted file mode 100644 index d0edd5223..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.js","sourceRoot":"","sources":["../../../../src/internal/observable/range.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAqDhC,MAAM,UAAU,KAAK,CAAC,KAAa,EAAE,KAAc,EAAE,SAAyB;IAC5E,IAAI,KAAK,IAAI,IAAI,EAAE;QAEjB,KAAK,GAAG,KAAK,CAAC;QACd,KAAK,GAAG,CAAC,CAAC;KACX;IAED,IAAI,KAAK,IAAI,CAAC,EAAE;QAEd,OAAO,KAAK,CAAC;KACd;IAGD,MAAM,GAAG,GAAG,KAAK,GAAG,KAAK,CAAC;IAE1B,OAAO,IAAI,UAAU,CACnB,SAAS;QACP,CAAC;YACC,CAAC,UAAU,EAAE,EAAE;gBACb,IAAI,CAAC,GAAG,KAAK,CAAC;gBACd,OAAO,SAAS,CAAC,QAAQ,CAAC;oBACxB,IAAI,CAAC,GAAG,GAAG,EAAE;wBACX,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;wBACrB,IAAI,CAAC,QAAQ,EAAE,CAAC;qBACjB;yBAAM;wBACL,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;YACC,CAAC,UAAU,EAAE,EAAE;gBACb,IAAI,CAAC,GAAG,KAAK,CAAC;gBACd,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;oBACpC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;iBACtB;gBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,CACN,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/throwError.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/throwError.js deleted file mode 100755 index bf39a7e50..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/throwError.js +++ /dev/null @@ -1,8 +0,0 @@ -import { Observable } from '../Observable'; -import { isFunction } from '../util/isFunction'; -export function throwError(errorOrErrorFactory, scheduler) { - const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory; - const init = (subscriber) => subscriber.error(errorFactory()); - return new Observable(scheduler ? (subscriber) => scheduler.schedule(init, 0, subscriber) : init); -} -//# sourceMappingURL=throwError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/throwError.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/throwError.js.map deleted file mode 100644 index 931a747b7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/throwError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwError.js","sourceRoot":"","sources":["../../../../src/internal/observable/throwError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAqHhD,MAAM,UAAU,UAAU,CAAC,mBAAwB,EAAE,SAAyB;IAC5E,MAAM,YAAY,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC;IACvG,MAAM,IAAI,GAAG,CAAC,UAA6B,EAAE,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC;IACjF,OAAO,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAW,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3G,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/timer.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/timer.js deleted file mode 100755 index 088a051f0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/timer.js +++ /dev/null @@ -1,34 +0,0 @@ -import { Observable } from '../Observable'; -import { async as asyncScheduler } from '../scheduler/async'; -import { isScheduler } from '../util/isScheduler'; -import { isValidDate } from '../util/isDate'; -export function timer(dueTime = 0, intervalOrScheduler, scheduler = asyncScheduler) { - let intervalDuration = -1; - if (intervalOrScheduler != null) { - if (isScheduler(intervalOrScheduler)) { - scheduler = intervalOrScheduler; - } - else { - intervalDuration = intervalOrScheduler; - } - } - return new Observable((subscriber) => { - let due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime; - if (due < 0) { - due = 0; - } - let n = 0; - return scheduler.schedule(function () { - if (!subscriber.closed) { - subscriber.next(n++); - if (0 <= intervalDuration) { - this.schedule(undefined, intervalDuration); - } - else { - subscriber.complete(); - } - } - }, due); - }); -} -//# sourceMappingURL=timer.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/timer.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/timer.js.map deleted file mode 100644 index ba6ba75d7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/timer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timer.js","sourceRoot":"","sources":["../../../../src/internal/observable/timer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAgI7C,MAAM,UAAU,KAAK,CACnB,UAAyB,CAAC,EAC1B,mBAA4C,EAC5C,YAA2B,cAAc;IAIzC,IAAI,gBAAgB,GAAG,CAAC,CAAC,CAAC;IAE1B,IAAI,mBAAmB,IAAI,IAAI,EAAE;QAI/B,IAAI,WAAW,CAAC,mBAAmB,CAAC,EAAE;YACpC,SAAS,GAAG,mBAAmB,CAAC;SACjC;aAAM;YAGL,gBAAgB,GAAG,mBAAmB,CAAC;SACxC;KACF;IAED,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,EAAE;QAInC,IAAI,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,SAAU,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;QAEvE,IAAI,GAAG,GAAG,CAAC,EAAE;YAEX,GAAG,GAAG,CAAC,CAAC;SACT;QAGD,IAAI,CAAC,GAAG,CAAC,CAAC;QAGV,OAAO,SAAS,CAAC,QAAQ,CAAC;YACxB,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;gBAEtB,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;gBAErB,IAAI,CAAC,IAAI,gBAAgB,EAAE;oBAGzB,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;iBAC5C;qBAAM;oBAEL,UAAU,CAAC,QAAQ,EAAE,CAAC;iBACvB;aACF;QACH,CAAC,EAAE,GAAG,CAAC,CAAC;IACV,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/using.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/using.js deleted file mode 100755 index ce38cd6d4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/using.js +++ /dev/null @@ -1,17 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from './innerFrom'; -import { EMPTY } from './empty'; -export function using(resourceFactory, observableFactory) { - return new Observable((subscriber) => { - const resource = resourceFactory(); - const result = observableFactory(resource); - const source = result ? innerFrom(result) : EMPTY; - source.subscribe(subscriber); - return () => { - if (resource) { - resource.unsubscribe(); - } - }; - }); -} -//# sourceMappingURL=using.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/using.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/using.js.map deleted file mode 100644 index 66ad8dff8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/using.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"using.js","sourceRoot":"","sources":["../../../../src/internal/observable/using.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA8BhC,MAAM,UAAU,KAAK,CACnB,eAA4C,EAC5C,iBAAgE;IAEhE,OAAO,IAAI,UAAU,CAAqB,CAAC,UAAU,EAAE,EAAE;QACvD,MAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;QACnC,MAAM,MAAM,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC3C,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAClD,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE;YAGV,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,WAAW,EAAE,CAAC;aACxB;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/zip.js b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/zip.js deleted file mode 100755 index ed4487b5b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/zip.js +++ /dev/null @@ -1,38 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from './innerFrom'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { EMPTY } from './empty'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { popResultSelector } from '../util/args'; -export function zip(...args) { - const resultSelector = popResultSelector(args); - const sources = argsOrArgArray(args); - return sources.length - ? new Observable((subscriber) => { - let buffers = sources.map(() => []); - let completed = sources.map(() => false); - subscriber.add(() => { - buffers = completed = null; - }); - for (let sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) { - innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, (value) => { - buffers[sourceIndex].push(value); - if (buffers.every((buffer) => buffer.length)) { - const result = buffers.map((buffer) => buffer.shift()); - subscriber.next(resultSelector ? resultSelector(...result) : result); - if (buffers.some((buffer, i) => !buffer.length && completed[i])) { - subscriber.complete(); - } - } - }, () => { - completed[sourceIndex] = true; - !buffers[sourceIndex].length && subscriber.complete(); - })); - } - return () => { - buffers = completed = null; - }; - }) - : EMPTY; -} -//# sourceMappingURL=zip.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/zip.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/observable/zip.js.map deleted file mode 100644 index 9e5dffb22..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/observable/zip.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zip.js","sourceRoot":"","sources":["../../../../src/internal/observable/zip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AA4CjD,MAAM,UAAU,GAAG,CAAC,GAAG,IAAe;IACpC,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAE/C,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,CAA0B,CAAC;IAE9D,OAAO,OAAO,CAAC,MAAM;QACnB,CAAC,CAAC,IAAI,UAAU,CAAY,CAAC,UAAU,EAAE,EAAE;YAGvC,IAAI,OAAO,GAAgB,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;YAKjD,IAAI,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;YAGzC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE;gBAClB,OAAO,GAAG,SAAS,GAAG,IAAK,CAAC;YAC9B,CAAC,CAAC,CAAC;YAKH,KAAK,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,IAAI,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE,EAAE;gBAC3F,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CACvC,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;oBACR,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAIjC,IAAI,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE;wBAC5C,MAAM,MAAM,GAAQ,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,EAAG,CAAC,CAAC;wBAE7D,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;wBAIrE,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;4BAC/D,UAAU,CAAC,QAAQ,EAAE,CAAC;yBACvB;qBACF;gBACH,CAAC,EACD,GAAG,EAAE;oBAGH,SAAS,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;oBAI9B,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACxD,CAAC,CACF,CACF,CAAC;aACH;YAGD,OAAO,GAAG,EAAE;gBACV,OAAO,GAAG,SAAS,GAAG,IAAK,CAAC;YAC9B,CAAC,CAAC;QACJ,CAAC,CAAC;QACJ,CAAC,CAAC,KAAK,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js deleted file mode 100755 index 317373b37..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js +++ /dev/null @@ -1,56 +0,0 @@ -import { Subscriber } from '../Subscriber'; -export function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) { - return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize); -} -export class OperatorSubscriber extends Subscriber { - constructor(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) { - super(destination); - this.onFinalize = onFinalize; - this.shouldUnsubscribe = shouldUnsubscribe; - this._next = onNext - ? function (value) { - try { - onNext(value); - } - catch (err) { - destination.error(err); - } - } - : super._next; - this._error = onError - ? function (err) { - try { - onError(err); - } - catch (err) { - destination.error(err); - } - finally { - this.unsubscribe(); - } - } - : super._error; - this._complete = onComplete - ? function () { - try { - onComplete(); - } - catch (err) { - destination.error(err); - } - finally { - this.unsubscribe(); - } - } - : super._complete; - } - unsubscribe() { - var _a; - if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { - const { closed } = this; - super.unsubscribe(); - !closed && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this)); - } - } -} -//# sourceMappingURL=OperatorSubscriber.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js.map deleted file mode 100644 index c679c1064..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/OperatorSubscriber.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OperatorSubscriber.js","sourceRoot":"","sources":["../../../../src/internal/operators/OperatorSubscriber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAc3C,MAAM,UAAU,wBAAwB,CACtC,WAA4B,EAC5B,MAA2B,EAC3B,UAAuB,EACvB,OAA4B,EAC5B,UAAuB;IAEvB,OAAO,IAAI,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;AACtF,CAAC;AAMD,MAAM,OAAO,kBAAsB,SAAQ,UAAa;IAiBtD,YACE,WAA4B,EAC5B,MAA2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,CAAC,UAAU,+CAAf,IAAI,CAAe,CAAA,CAAC;SAChC;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/audit.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/audit.js deleted file mode 100755 index 22139a0c7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/audit.js +++ /dev/null @@ -1,37 +0,0 @@ -import { operate } from '../util/lift'; -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function audit(durationSelector) { - return operate((source, subscriber) => { - let hasValue = false; - let lastValue = null; - let durationSubscriber = null; - let isComplete = false; - const endDuration = () => { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - durationSubscriber = null; - if (hasValue) { - hasValue = false; - const value = lastValue; - lastValue = null; - subscriber.next(value); - } - isComplete && subscriber.complete(); - }; - const cleanupDuration = () => { - durationSubscriber = null; - isComplete && subscriber.complete(); - }; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - hasValue = true; - lastValue = value; - if (!durationSubscriber) { - innerFrom(durationSelector(value)).subscribe((durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration))); - } - }, () => { - isComplete = true; - (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete(); - })); - }); -} -//# sourceMappingURL=audit.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/audit.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/audit.js.map deleted file mode 100644 index eac61f414..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/audit.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../../src/internal/operators/audit.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CA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AClB,CAAC,CAAC,QAAQ,IAAI,CAAC,kBAAkB,IAAI,kBAAkB,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QAC3F,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/auditTime.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/auditTime.js deleted file mode 100755 index 559f36519..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/auditTime.js +++ /dev/null @@ -1,7 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { audit } from './audit'; -import { timer } from '../observable/timer'; -export function auditTime(duration, scheduler = asyncScheduler) { - return audit(() => timer(duration, scheduler)); -} -//# sourceMappingURL=auditTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/auditTime.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/auditTime.js.map deleted file mode 100644 index 2f1f665cf..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/auditTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auditTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/auditTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAkD5C,MAAM,UAAU,SAAS,CAAI,QAAgB,EAAE,YAA2B,cAAc;IACtF,OAAO,KAAK,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AACjD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/buffer.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/buffer.js deleted file mode 100755 index bdce48067..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/buffer.js +++ /dev/null @@ -1,22 +0,0 @@ -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function buffer(closingNotifier) { - return operate((source, subscriber) => { - let currentBuffer = []; - source.subscribe(createOperatorSubscriber(subscriber, (value) => currentBuffer.push(value), () => { - subscriber.next(currentBuffer); - subscriber.complete(); - })); - innerFrom(closingNotifier).subscribe(createOperatorSubscriber(subscriber, () => { - const b = currentBuffer; - currentBuffer = []; - subscriber.next(b); - }, noop)); - return () => { - currentBuffer = null; - }; - }); -} -//# sourceMappingURL=buffer.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/buffer.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/buffer.js.map deleted file mode 100644 index 5633ca35d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/buffer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../../../src/internal/operators/buffer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAwCpD,MAAM,UAAU,MAAM,CAAI,eAAqC;IAC7D,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAEpC,IAAI,aAAa,GAAQ,EAAE,CAAC;QAG5B,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,EACpC,GAAG,EAAE;YACH,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAC/B,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;QAGF,SAAS,CAAC,eAAe,CAAC,CAAC,SAAS,CAClC,wBAAwB,CACtB,UAAU,EACV,GAAG,EAAE;YAEH,MAAM,CAAC,GAAG,aAAa,CAAC;YACxB,aAAa,GAAG,EAAE,CAAC;YACnB,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACrB,CAAC,EACD,IAAI,CACL,CACF,CAAC;QAEF,OAAO,GAAG,EAAE;YAEV,aAAa,GAAG,IAAK,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferCount.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferCount.js deleted file mode 100755 index 2cf2880dd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferCount.js +++ /dev/null @@ -1,37 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { arrRemove } from '../util/arrRemove'; -export function bufferCount(bufferSize, startBufferEvery = null) { - startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize; - return operate((source, subscriber) => { - let buffers = []; - let count = 0; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - let toEmit = null; - if (count++ % startBufferEvery === 0) { - buffers.push([]); - } - for (const buffer of buffers) { - buffer.push(value); - if (bufferSize <= buffer.length) { - toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : []; - toEmit.push(buffer); - } - } - if (toEmit) { - for (const buffer of toEmit) { - arrRemove(buffers, buffer); - subscriber.next(buffer); - } - } - }, () => { - for (const buffer of buffers) { - subscriber.next(buffer); - } - subscriber.complete(); - }, undefined, () => { - buffers = null; - })); - }); -} -//# sourceMappingURL=bufferCount.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferCount.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferCount.js.map deleted file mode 100644 index 713be10f2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferCount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferCount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAqD9C,MAAM,UAAU,WAAW,CAAI,UAAkB,EAAE,mBAAkC,IAAI;IAGvF,gBAAgB,GAAG,gBAAgB,aAAhB,gBAAgB,cAAhB,gBAAgB,GAAI,UAAU,CAAC;IAElD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,OAAO,GAAU,EAAE,CAAC;QACxB,IAAI,KAAK,GAAG,CAAC,CAAC;QAEd,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YACR,IAAI,MAAM,GAAiB,IAAI,CAAC;YAKhC,IAAI,KAAK,EAAE,GAAG,gBAAiB,KAAK,CAAC,EAAE;gBACrC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aAClB;YAGD,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;gBAC5B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAMnB,IAAI,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE;oBAC/B,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAC;oBACtB,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;iBACrB;aACF;YAED,IAAI,MAAM,EAAE;gBAIV,KAAK,MAAM,MAAM,IAAI,MAAM,EAAE;oBAC3B,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;iBACzB;aACF;QACH,CAAC,EACD,GAAG,EAAE;YAGH,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;gBAC5B,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACzB;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EAED,SAAS,EACT,GAAG,EAAE;YAEH,OAAO,GAAG,IAAK,CAAC;QAClB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferTime.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferTime.js deleted file mode 100755 index f5b61b01f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferTime.js +++ /dev/null @@ -1,61 +0,0 @@ -import { Subscription } from '../Subscription'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { arrRemove } from '../util/arrRemove'; -import { asyncScheduler } from '../scheduler/async'; -import { popScheduler } from '../util/args'; -import { executeSchedule } from '../util/executeSchedule'; -export function bufferTime(bufferTimeSpan, ...otherArgs) { - var _a, _b; - const scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler; - const bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null; - const maxBufferSize = otherArgs[1] || Infinity; - return operate((source, subscriber) => { - let bufferRecords = []; - let restartOnEmit = false; - const emit = (record) => { - const { buffer, subs } = record; - subs.unsubscribe(); - arrRemove(bufferRecords, record); - subscriber.next(buffer); - restartOnEmit && startBuffer(); - }; - const startBuffer = () => { - if (bufferRecords) { - const subs = new Subscription(); - subscriber.add(subs); - const buffer = []; - const record = { - buffer, - subs, - }; - bufferRecords.push(record); - executeSchedule(subs, scheduler, () => emit(record), bufferTimeSpan); - } - }; - if (bufferCreationInterval !== null && bufferCreationInterval >= 0) { - executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true); - } - else { - restartOnEmit = true; - } - startBuffer(); - const bufferTimeSubscriber = createOperatorSubscriber(subscriber, (value) => { - const recordsCopy = bufferRecords.slice(); - for (const record of recordsCopy) { - const { buffer } = record; - buffer.push(value); - maxBufferSize <= buffer.length && emit(record); - } - }, () => { - while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) { - subscriber.next(bufferRecords.shift().buffer); - } - bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe(); - subscriber.complete(); - subscriber.unsubscribe(); - }, undefined, () => (bufferRecords = null)); - source.subscribe(bufferTimeSubscriber); - }); -} -//# sourceMappingURL=bufferTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferTime.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferTime.js.map deleted file mode 100644 index 452569b3f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAsE1D,MAAM,UAAU,UAAU,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AAE,WAAW,EAAE,sBAAsB,EAAE,IAAI,CAAC,CAAC;SACnF;aAAM;YACL,aAAa,GAAG,IAAI,CAAC;SACtB;QAED,WAAW,EAAE,CAAC;QAEd,MAAM,oBAAoB,GAAG,wBAAwB,CACnD,UAAU,EACV,CAAC,KAAQ,EAAE,EAAE;YAKX,MAAM,WAAW,GAAG,aAAc,CAAC,KAAK,EAAE,CAAC;YAC3C,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE;gBAEhC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;gBAC1B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAEnB,aAAa,IAAI,MAAM,CAAC,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC;aAChD;QACH,CAAC,EACD,GAAG,EAAE;YAGH,OAAO,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,EAAE;gBAC5B,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,EAAG,CAAC,MAAM,CAAC,CAAC;aAChD;YACD,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,WAAW,EAAE,CAAC;YACpC,UAAU,CAAC,QAAQ,EAAE,CAAC;YACtB,UAAU,CAAC,WAAW,EAAE,CAAC;QAC3B,CAAC,EAED,SAAS,EAET,GAAG,EAAE,CAAC,CAAC,aAAa,GAAG,IAAI,CAAC,CAC7B,CAAC;QAEF,MAAM,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferToggle.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferToggle.js deleted file mode 100755 index dfefe4a16..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferToggle.js +++ /dev/null @@ -1,33 +0,0 @@ -import { Subscription } from '../Subscription'; -import { operate } from '../util/lift'; -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { arrRemove } from '../util/arrRemove'; -export function bufferToggle(openings, closingSelector) { - return operate((source, subscriber) => { - const buffers = []; - innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, (openValue) => { - const buffer = []; - buffers.push(buffer); - const closingSubscription = new Subscription(); - const emitBuffer = () => { - arrRemove(buffers, buffer); - subscriber.next(buffer); - closingSubscription.unsubscribe(); - }; - closingSubscription.add(innerFrom(closingSelector(openValue)).subscribe(createOperatorSubscriber(subscriber, emitBuffer, noop))); - }, noop)); - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - for (const buffer of buffers) { - buffer.push(value); - } - }, () => { - while (buffers.length > 0) { - subscriber.next(buffers.shift()); - } - subscriber.complete(); - })); - }); -} -//# sourceMappingURL=bufferToggle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferToggle.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferToggle.js.map deleted file mode 100644 index b1c0426c6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferToggle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferToggle.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferToggle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AA6C9C,MAAM,UAAU,YAAY,CAC1B,QAA4B,EAC5B,eAAmD;IAEnD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,OAAO,GAAU,EAAE,CAAC;QAG1B,SAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAC3B,wBAAwB,CACtB,UAAU,EACV,CAAC,SAAS,EAAE,EAAE;YACZ,MAAM,MAAM,GAAQ,EAAE,CAAC;YACvB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAGrB,MAAM,mBAAmB,GAAG,IAAI,YAAY,EAAE,CAAC;YAE/C,MAAM,UAAU,GAAG,GAAG,EAAE;gBACtB,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;gBAC3B,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;gBACxB,mBAAmB,CAAC,WAAW,EAAE,CAAC;YACpC,CAAC,CAAC;YAGF,mBAAmB,CAAC,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACnI,CAAC,EACD,IAAI,CACL,CACF,CAAC;QAEF,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YAER,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;gBAC5B,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACpB;QACH,CAAC,EACD,GAAG,EAAE;YAEH,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAG,CAAC,CAAC;aACnC;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferWhen.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferWhen.js deleted file mode 100755 index 8e47b0daa..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferWhen.js +++ /dev/null @@ -1,23 +0,0 @@ -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function bufferWhen(closingSelector) { - return operate((source, subscriber) => { - let buffer = null; - let closingSubscriber = null; - const openBuffer = () => { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - const b = buffer; - buffer = []; - b && subscriber.next(b); - innerFrom(closingSelector()).subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openBuffer, noop))); - }; - openBuffer(); - source.subscribe(createOperatorSubscriber(subscriber, (value) => buffer === null || buffer === void 0 ? void 0 : buffer.push(value), () => { - buffer && subscriber.next(buffer); - subscriber.complete(); - }, undefined, () => (buffer = closingSubscriber = null))); - }); -} -//# sourceMappingURL=bufferWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferWhen.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferWhen.js.map deleted file mode 100644 index 5ea39fa36..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/bufferWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferWhen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAwCpD,MAAM,UAAU,UAAU,CAAI,eAA2C;IACvE,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAEpC,IAAI,MAAM,GAAe,IAAI,CAAC;QAI9B,IAAI,iBAAiB,GAAyB,IAAI,CAAC;QAMnD,MAAM,UAAU,GAAG,GAAG,EAAE;YAGtB,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,EAAE,CAAC;YAEjC,MAAM,CAAC,GAAG,MAAM,CAAC;YACjB,MAAM,GAAG,EAAE,CAAC;YACZ,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAGxB,SAAS,CAAC,eAAe,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,iBAAiB,GAAG,wBAAwB,CAAC,UAAU,EAAE,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;QACvH,CAAC,CAAC;QAGF,UAAU,EAAE,CAAC;QAGb,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EAEV,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC,KAAK,CAAC,EAG9B,GAAG,EAAE;YACH,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAClC,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EAED,SAAS,EAET,GAAG,EAAE,CAAC,CAAC,MAAM,GAAG,iBAAiB,GAAG,IAAK,CAAC,CAC3C,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/catchError.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/catchError.js deleted file mode 100755 index 1dba646e7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/catchError.js +++ /dev/null @@ -1,27 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { operate } from '../util/lift'; -export function catchError(selector) { - return operate((source, subscriber) => { - let innerSub = null; - let syncUnsub = false; - let handledResult; - innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, (err) => { - handledResult = innerFrom(selector(err, catchError(selector)(source))); - if (innerSub) { - innerSub.unsubscribe(); - innerSub = null; - handledResult.subscribe(subscriber); - } - else { - syncUnsub = true; - } - })); - if (syncUnsub) { - innerSub.unsubscribe(); - innerSub = null; - handledResult.subscribe(subscriber); - } - }); -} -//# sourceMappingURL=catchError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/catchError.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/catchError.js.map deleted file mode 100644 index b1c3db7d9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/catchError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"catchError.js","sourceRoot":"","sources":["../../../../src/internal/operators/catchError.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAoGvC,MAAM,UAAU,UAAU,CACxB,QAAgD;IAEhD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,QAAQ,GAAwB,IAAI,CAAC;QACzC,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,aAA6C,CAAC;QAElD,QAAQ,GAAG,MAAM,CAAC,SAAS,CACzB,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE;YACjE,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACvE,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,WAAW,EAAE,CAAC;gBACvB,QAAQ,GAAG,IAAI,CAAC;gBAChB,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;aACrC;iBAAM;gBAGL,SAAS,GAAG,IAAI,CAAC;aAClB;QACH,CAAC,CAAC,CACH,CAAC;QAEF,IAAI,SAAS,EAAE;YAMb,QAAQ,CAAC,WAAW,EAAE,CAAC;YACvB,QAAQ,GAAG,IAAI,CAAC;YAChB,aAAc,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;SACtC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineAll.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineAll.js deleted file mode 100755 index 65f4bbfcb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineAll.js +++ /dev/null @@ -1,3 +0,0 @@ -import { combineLatestAll } from './combineLatestAll'; -export const combineAll = combineLatestAll; -//# sourceMappingURL=combineAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineAll.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineAll.js.map deleted file mode 100644 index 63debb69e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatest.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatest.js deleted file mode 100755 index abed1f5f8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatest.js +++ /dev/null @@ -1,15 +0,0 @@ -import { combineLatestInit } from '../observable/combineLatest'; -import { operate } from '../util/lift'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { pipe } from '../util/pipe'; -import { popResultSelector } from '../util/args'; -export function combineLatest(...args) { - const resultSelector = popResultSelector(args); - return resultSelector - ? pipe(combineLatest(...args), mapOneOrManyArgs(resultSelector)) - : operate((source, subscriber) => { - combineLatestInit([source, ...argsOrArgArray(args)])(subscriber); - }); -} -//# sourceMappingURL=combineLatest.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatest.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatest.js.map deleted file mode 100644 index 0da0c1688..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatest.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAoBjD,MAAM,UAAU,aAAa,CAAO,GAAG,IAA0D;IAC/F,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC/C,OAAO,cAAc;QACnB,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,GAAI,IAAoC,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;QACjG,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAC7B,iBAAiB,CAAC,CAAC,MAAM,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestAll.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestAll.js deleted file mode 100755 index 3af39096e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestAll.js +++ /dev/null @@ -1,6 +0,0 @@ -import { combineLatest } from '../observable/combineLatest'; -import { joinAllInternals } from './joinAllInternals'; -export function combineLatestAll(project) { - return joinAllInternals(combineLatest, project); -} -//# sourceMappingURL=combineLatestAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestAll.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestAll.js.map deleted file mode 100644 index 2adf9b8e2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatestAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatestAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AA6CtD,MAAM,UAAU,gBAAgB,CAAI,OAAsC;IACxE,OAAO,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestWith.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestWith.js deleted file mode 100755 index 880ec8490..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestWith.js +++ /dev/null @@ -1,5 +0,0 @@ -import { combineLatest } from './combineLatest'; -export function combineLatestWith(...otherSources) { - return combineLatest(...otherSources); -} -//# sourceMappingURL=combineLatestWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestWith.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestWith.js.map deleted file mode 100644 index 93deaddc6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/combineLatestWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatestWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatestWith.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AA0ChD,MAAM,UAAU,iBAAiB,CAC/B,GAAG,YAA0C;IAE7C,OAAO,aAAa,CAAC,GAAG,YAAY,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concat.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concat.js deleted file mode 100755 index 7a5502fc4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concat.js +++ /dev/null @@ -1,11 +0,0 @@ -import { operate } from '../util/lift'; -import { concatAll } from './concatAll'; -import { popScheduler } from '../util/args'; -import { from } from '../observable/from'; -export function concat(...args) { - const scheduler = popScheduler(args); - return operate((source, subscriber) => { - concatAll()(from([source, ...args], scheduler)).subscribe(subscriber); - }); -} -//# sourceMappingURL=concat.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concat.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concat.js.map deleted file mode 100644 index f0fc841d1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../../src/internal/operators/concat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAY1C,MAAM,UAAU,MAAM,CAAO,GAAG,IAAW;IACzC,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,SAAS,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatAll.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatAll.js deleted file mode 100755 index 9ef002228..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatAll.js +++ /dev/null @@ -1,5 +0,0 @@ -import { mergeAll } from './mergeAll'; -export function concatAll() { - return mergeAll(1); -} -//# sourceMappingURL=concatAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatAll.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatAll.js.map deleted file mode 100644 index 0231f3f8d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AA2DtC,MAAM,UAAU,SAAS;IACvB,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMap.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMap.js deleted file mode 100755 index bdacda3bf..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMap.js +++ /dev/null @@ -1,6 +0,0 @@ -import { mergeMap } from './mergeMap'; -import { isFunction } from '../util/isFunction'; -export function concatMap(project, resultSelector) { - return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1); -} -//# sourceMappingURL=concatMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMap.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMap.js.map deleted file mode 100644 index cc84ef652..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA4EhD,MAAM,UAAU,SAAS,CACvB,OAAuC,EACvC,cAA6G;IAE7G,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAClG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMapTo.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMapTo.js deleted file mode 100755 index 6aa9800eb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMapTo.js +++ /dev/null @@ -1,6 +0,0 @@ -import { concatMap } from './concatMap'; -import { isFunction } from '../util/isFunction'; -export function concatMapTo(innerObservable, resultSelector) { - return isFunction(resultSelector) ? concatMap(() => innerObservable, resultSelector) : concatMap(() => innerObservable); -} -//# sourceMappingURL=concatMapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMapTo.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMapTo.js.map deleted file mode 100644 index 8bf071c24..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatMapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatMapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatMapTo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAuEhD,MAAM,UAAU,WAAW,CACzB,eAAkB,EAClB,cAA6G;IAE7G,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;AAC1H,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatWith.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatWith.js deleted file mode 100755 index e4be83dd7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatWith.js +++ /dev/null @@ -1,5 +0,0 @@ -import { concat } from './concat'; -export function concatWith(...otherSources) { - return concat(...otherSources); -} -//# sourceMappingURL=concatWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatWith.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatWith.js.map deleted file mode 100644 index 818f89f69..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/concatWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatWith.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA0ClC,MAAM,UAAU,UAAU,CACxB,GAAG,YAA0C;IAE7C,OAAO,MAAM,CAAC,GAAG,YAAY,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/connect.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/connect.js deleted file mode 100755 index 9d3e6dd01..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/connect.js +++ /dev/null @@ -1,16 +0,0 @@ -import { Subject } from '../Subject'; -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { fromSubscribable } from '../observable/fromSubscribable'; -const DEFAULT_CONFIG = { - connector: () => new Subject(), -}; -export function connect(selector, config = DEFAULT_CONFIG) { - const { connector } = config; - return operate((source, subscriber) => { - const subject = connector(); - innerFrom(selector(fromSubscribable(subject))).subscribe(subscriber); - subscriber.add(source.subscribe(subject)); - }); -} -//# sourceMappingURL=connect.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/connect.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/connect.js.map deleted file mode 100644 index cb98156cd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/connect.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../../src/internal/operators/connect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAgBlE,MAAM,cAAc,GAA2B;IAC7C,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,OAAO,EAAW;CACxC,CAAC;AA2EF,MAAM,UAAU,OAAO,CACrB,QAAsC,EACtC,SAA2B,cAAc;IAEzC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;IAC7B,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,OAAO,GAAG,SAAS,EAAE,CAAC;QAC5B,SAAS,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACrE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/count.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/count.js deleted file mode 100755 index e53cbaaf3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/count.js +++ /dev/null @@ -1,5 +0,0 @@ -import { reduce } from './reduce'; -export function count(predicate) { - return reduce((total, value, i) => (!predicate || predicate(value, i) ? total + 1 : total), 0); -} -//# sourceMappingURL=count.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/count.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/count.js.map deleted file mode 100644 index f0a1b080b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/count.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"count.js","sourceRoot":"","sources":["../../../../src/internal/operators/count.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAyDlC,MAAM,UAAU,KAAK,CAAI,SAAgD;IACvE,OAAO,MAAM,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;AACjG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/debounce.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/debounce.js deleted file mode 100755 index 138602e56..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/debounce.js +++ /dev/null @@ -1,34 +0,0 @@ -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function debounce(durationSelector) { - return operate((source, subscriber) => { - let hasValue = false; - let lastValue = null; - let durationSubscriber = null; - const emit = () => { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - durationSubscriber = null; - if (hasValue) { - hasValue = false; - const value = lastValue; - lastValue = null; - subscriber.next(value); - } - }; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - hasValue = true; - lastValue = value; - durationSubscriber = createOperatorSubscriber(subscriber, emit, noop); - innerFrom(durationSelector(value)).subscribe(durationSubscriber); - }, () => { - emit(); - subscriber.complete(); - }, undefined, () => { - lastValue = durationSubscriber = null; - })); - }); -} -//# sourceMappingURL=debounce.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/debounce.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/debounce.js.map deleted file mode 100644 index 45b061546..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/debounce.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../../../src/internal/operators/debounce.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC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ounceTime.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/debounceTime.js deleted file mode 100755 index 28c058ae5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/debounceTime.js +++ /dev/null @@ -1,43 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function debounceTime(dueTime, scheduler = asyncScheduler) { - return operate((source, subscriber) => { - let activeTask = null; - let lastValue = null; - let lastTime = null; - const emit = () => { - if (activeTask) { - activeTask.unsubscribe(); - activeTask = null; - const value = lastValue; - lastValue = null; - subscriber.next(value); - } - }; - function emitWhenIdle() { - const targetTime = lastTime + dueTime; - const now = scheduler.now(); - if (now < targetTime) { - activeTask = this.schedule(undefined, targetTime - now); - subscriber.add(activeTask); - return; - } - emit(); - } - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - lastValue = value; - lastTime = scheduler.now(); - if (!activeTask) { - activeTask = scheduler.schedule(emitWhenIdle, dueTime); - subscriber.add(activeTask); - } - }, () => { - emit(); - subscriber.complete(); - }, undefined, () => { - lastValue = activeTask = null; - })); - }); -} -//# sourceMappingURL=debounceTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/debounceTime.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/debounceTime.js.map deleted file mode 100644 index c5e302e41..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/debounceTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"debounceTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/debounceTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA2DhE,MAAM,UAAU,YAAY,CAAI,OAAe,EAAE,YAA2B,cA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G,EAAE;YAEH,SAAS,GAAG,UAAU,GAAG,IAAI,CAAC;QAChC,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js deleted file mode 100755 index 651de76ef..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js +++ /dev/null @@ -1,17 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function defaultIfEmpty(defaultValue) { - return operate((source, subscriber) => { - let hasValue = false; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - hasValue = true; - subscriber.next(value); - }, () => { - if (!hasValue) { - subscriber.next(defaultValue); - } - subscriber.complete(); - })); - }); -} -//# sourceMappingURL=defaultIfEmpty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js.map deleted file mode 100644 index 230a9df5d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/defaultIfEmpty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"defaultIfEmpty.js","sourceRoot":"","sources":["../../../../src/internal/operators/defaultIfEmpty.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAqChE,MAAM,UAAU,cAAc,CAAO,YAAe;IAClD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YACR,QAAQ,GAAG,IAAI,CAAC;YAChB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,EACD,GAAG,EAAE;YACH,IAAI,CAAC,QAAQ,EAAE;gBACb,UAAU,CAAC,IAAI,CAAC,YAAa,CAAC,CAAC;aAChC;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delay.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delay.js deleted file mode 100755 index 2ceb484c5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delay.js +++ /dev/null @@ -1,8 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { delayWhen } from './delayWhen'; -import { timer } from '../observable/timer'; -export function delay(due, scheduler = asyncScheduler) { - const duration = timer(due, scheduler); - return delayWhen(() => duration); -} -//# sourceMappingURL=delay.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delay.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delay.js.map deleted file mode 100644 index 26fdd7717..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"delay.js","sourceRoot":"","sources":["../../../../src/internal/operators/delay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AA0D5C,MAAM,UAAU,KAAK,CAAI,GAAkB,EAAE,YAA2B,cAAc;IACpF,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACvC,OAAO,SAAS,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC;AACnC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delayWhen.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delayWhen.js deleted file mode 100755 index ec40e71fd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delayWhen.js +++ /dev/null @@ -1,13 +0,0 @@ -import { concat } from '../observable/concat'; -import { take } from './take'; -import { ignoreElements } from './ignoreElements'; -import { mapTo } from './mapTo'; -import { mergeMap } from './mergeMap'; -import { innerFrom } from '../observable/innerFrom'; -export function delayWhen(delayDurationSelector, subscriptionDelay) { - if (subscriptionDelay) { - return (source) => concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector))); - } - return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value))); -} -//# sourceMappingURL=delayWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delayWhen.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delayWhen.js.map deleted file mode 100644 index 8ba7fffab..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/delayWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"delayWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/delayWhen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAoFpD,MAAM,UAAU,SAAS,CACvB,qBAAwE,EACxE,iBAAmC;IAEnC,IAAI,iBAAiB,EAAE;QAErB,OAAO,CAAC,MAAqB,EAAE,EAAE,CAC/B,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC;KAC5G;IAED,OAAO,QAAQ,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAChH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/dematerialize.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/dematerialize.js deleted file mode 100755 index 36fd9f64c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/dematerialize.js +++ /dev/null @@ -1,9 +0,0 @@ -import { observeNotification } from '../Notification'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function dematerialize() { - return operate((source, subscriber) => { - source.subscribe(createOperatorSubscriber(subscriber, (notification) => observeNotification(notification, subscriber))); - }); -} -//# sourceMappingURL=dematerialize.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/dematerialize.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/dematerialize.js.map deleted file mode 100644 index 7e5a2cf92..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/dematerialize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dematerialize.js","sourceRoot":"","sources":["../../../../src/internal/operators/dematerialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAkDhE,MAAM,UAAU,aAAa;IAC3B,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,mBAAmB,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAC1H,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinct.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinct.js deleted file mode 100755 index 597a80542..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinct.js +++ /dev/null @@ -1,18 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { innerFrom } from '../observable/innerFrom'; -export function distinct(keySelector, flushes) { - return operate((source, subscriber) => { - const distinctKeys = new Set(); - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - const key = keySelector ? keySelector(value) : value; - if (!distinctKeys.has(key)) { - distinctKeys.add(key); - subscriber.next(value); - } - })); - flushes && innerFrom(flushes).subscribe(createOperatorSubscriber(subscriber, () => distinctKeys.clear(), noop)); - }); -} -//# sourceMappingURL=distinct.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinct.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinct.js.map deleted file mode 100644 index 46576eb00..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinct.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinct.js","sourceRoot":"","sources":["../../../../src/internal/operators/distinct.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA2DpD,MAAM,UAAU,QAAQ,CAAO,WAA6B,EAAE,OAA8B;IAC1F,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;QAC/B,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;YAC7C,MAAM,GAAG,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YACrD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gBAC1B,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACtB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,CAAC,CACH,CAAC;QAEF,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;IAClH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilChanged.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilChanged.js deleted file mode 100755 index 7e7d17cb3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilChanged.js +++ /dev/null @@ -1,22 +0,0 @@ -import { identity } from '../util/identity'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function distinctUntilChanged(comparator, keySelector = identity) { - comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare; - return operate((source, subscriber) => { - let previousKey; - let first = true; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - const currentKey = keySelector(value); - if (first || !comparator(previousKey, currentKey)) { - first = false; - previousKey = currentKey; - subscriber.next(value); - } - })); - }); -} -function defaultCompare(a, b) { - return a === b; -} -//# sourceMappingURL=distinctUntilChanged.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilChanged.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilChanged.js.map deleted file mode 100644 index 06dc6ccc3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilChanged.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinctUntilChanged.js","sourceRoot":"","sources":["../../../../src/internal/operators/distinctUntilChanged.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAuIhE,MAAM,UAAU,oBAAoB,CAClC,UAAiD,EACjD,cAA+B,QAA2B;IAK1D,UAAU,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,cAAc,CAAC;IAE1C,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAGpC,IAAI,WAAc,CAAC;QAEnB,IAAI,KAAK,GAAG,IAAI,CAAC;QAEjB,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;YAE7C,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;YAKtC,IAAI,KAAK,IAAI,CAAC,UAAW,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE;gBAMlD,KAAK,GAAG,KAAK,CAAC;gBACd,WAAW,GAAG,UAAU,CAAC;gBAGzB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,cAAc,CAAC,CAAM,EAAE,CAAM;IACpC,OAAO,CAAC,KAAK,CAAC,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilKeyChanged.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilKeyChanged.js deleted file mode 100755 index 240fd1a9b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilKeyChanged.js +++ /dev/null @@ -1,5 +0,0 @@ -import { distinctUntilChanged } from './distinctUntilChanged'; -export function distinctUntilKeyChanged(key, compare) { - return distinctUntilChanged((x, y) => compare ? compare(x[key], y[key]) : x[key] === y[key]); -} -//# sourceMappingURL=distinctUntilKeyChanged.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilKeyChanged.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilKeyChanged.js.map deleted file mode 100644 index 2a4f20849..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/distinctUntilKeyChanged.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinctUntilKeyChanged.js","sourceRoot":"","sources":["../../../../src/internal/operators/distinctUntilKeyChanged.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAoE9D,MAAM,UAAU,uBAAuB,CAAuB,GAAM,EAAE,OAAuC;IAC3G,OAAO,oBAAoB,CAAC,CAAC,CAAI,EAAE,CAAI,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACrG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/elementAt.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/elementAt.js deleted file mode 100755 index 4851bd01b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/elementAt.js +++ /dev/null @@ -1,13 +0,0 @@ -import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError'; -import { filter } from './filter'; -import { throwIfEmpty } from './throwIfEmpty'; -import { defaultIfEmpty } from './defaultIfEmpty'; -import { take } from './take'; -export function elementAt(index, defaultValue) { - if (index < 0) { - throw new ArgumentOutOfRangeError(); - } - const hasDefaultValue = arguments.length >= 2; - return (source) => source.pipe(filter((v, i) => i === index), take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new ArgumentOutOfRangeError())); -} -//# sourceMappingURL=elementAt.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/elementAt.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/elementAt.js.map deleted file mode 100644 index 9b7de9b59..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/elementAt.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elementAt.js","sourceRoot":"","sources":["../../../../src/internal/operators/elementAt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAG1E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAkD9B,MAAM,UAAU,SAAS,CAAW,KAAa,EAAE,YAAgB;IACjE,IAAI,KAAK,GAAG,CAAC,EAAE;QACb,MAAM,IAAI,uBAAuB,EAAE,CAAC;KACrC;IACD,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9C,OAAO,CAAC,MAAqB,EAAE,EAAE,CAC/B,MAAM,CAAC,IAAI,CACT,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,EAC7B,IAAI,CAAC,CAAC,CAAC,EACP,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,YAAa,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,IAAI,uBAAuB,EAAE,CAAC,CACpG,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/endWith.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/endWith.js deleted file mode 100755 index b3d371942..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/endWith.js +++ /dev/null @@ -1,6 +0,0 @@ -import { concat } from '../observable/concat'; -import { of } from '../observable/of'; -export function endWith(...values) { - return (source) => concat(source, of(...values)); -} -//# sourceMappingURL=endWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/endWith.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/endWith.js.map deleted file mode 100644 index a3d371b97..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/endWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"endWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/endWith.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AA8DtC,MAAM,UAAU,OAAO,CAAI,GAAG,MAAgC;IAC5D,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,MAAM,CAAC,CAAkB,CAAC;AACnF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/every.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/every.js deleted file mode 100755 index 3692a1c00..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/every.js +++ /dev/null @@ -1,17 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function every(predicate, thisArg) { - return operate((source, subscriber) => { - let index = 0; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - if (!predicate.call(thisArg, value, index++, source)) { - subscriber.next(false); - subscriber.complete(); - } - }, () => { - subscriber.next(true); - subscriber.complete(); - })); - }); -} -//# sourceMappingURL=every.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/every.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/every.js.map deleted file mode 100644 index fc7da5b62..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/every.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"every.js","sourceRoot":"","sources":["../../../../src/internal/operators/every.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAwChE,MAAM,UAAU,KAAK,CACnB,SAAsE,EACtE,OAAa;IAEb,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YACR,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,EAAE;gBACpD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACvB,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,EACD,GAAG,EAAE;YACH,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaust.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaust.js deleted file mode 100755 index 2c5be00d2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaust.js +++ /dev/null @@ -1,3 +0,0 @@ -import { exhaustAll } from './exhaustAll'; -export const exhaust = exhaustAll; -//# sourceMappingURL=exhaust.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaust.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaust.js.map deleted file mode 100644 index e29a1f203..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaust.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaust.js","sourceRoot":"","sources":["../../../../src/internal/operators/exhaust.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustAll.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustAll.js deleted file mode 100755 index c61b4f89d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustAll.js +++ /dev/null @@ -1,6 +0,0 @@ -import { exhaustMap } from './exhaustMap'; -import { identity } from '../util/identity'; -export function exhaustAll() { - return exhaustMap(identity); -} -//# sourceMappingURL=exhaustAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustAll.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustAll.js.map deleted file mode 100644 index 9d961b07a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaustAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/exhaustAll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA8C5C,MAAM,UAAU,UAAU;IACxB,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustMap.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustMap.js deleted file mode 100755 index b4d99a4af..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustMap.js +++ /dev/null @@ -1,27 +0,0 @@ -import { map } from './map'; -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function exhaustMap(project, resultSelector) { - if (resultSelector) { - return (source) => source.pipe(exhaustMap((a, i) => innerFrom(project(a, i)).pipe(map((b, ii) => resultSelector(a, b, i, ii))))); - } - return operate((source, subscriber) => { - let index = 0; - let innerSub = null; - let isComplete = false; - source.subscribe(createOperatorSubscriber(subscriber, (outerValue) => { - if (!innerSub) { - innerSub = createOperatorSubscriber(subscriber, undefined, () => { - innerSub = null; - isComplete && subscriber.complete(); - }); - innerFrom(project(outerValue, index++)).subscribe(innerSub); - } - }, () => { - isComplete = true; - !innerSub && subscriber.complete(); - })); - }); -} -//# sourceMappingURL=exhaustMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustMap.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustMap.js.map deleted file mode 100644 index f86748762..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/exhaustMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaustMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/exhaustMap.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA8DhE,MAAM,UAAU,UAAU,CACxB,OAAuC,EACvC,cAA6G;IAE7G,IAAI,cAAc,EAAE;QAElB,OAAO,CAAC,MAAqB,EAAE,EAAE,CAC/B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAO,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3H;IACD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,QAAQ,GAAyB,IAAI,CAAC;QAC1C,IAAI,UAAU,GAAG,KAAK,CAAC;QACvB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,UAAU,EAAE,EAAE;YACb,IAAI,CAAC,QAAQ,EAAE;gBACb,QAAQ,GAAG,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE;oBAC9D,QAAQ,GAAG,IAAI,CAAC;oBAChB,UAAU,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACtC,CAAC,CAAC,CAAC;gBACH,SAAS,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;aAC7D;QACH,CAAC,EACD,GAAG,EAAE;YACH,UAAU,GAAG,IAAI,CAAC;YAClB,CAAC,QAAQ,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/expand.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/expand.js deleted file mode 100755 index c515da0a4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/expand.js +++ /dev/null @@ -1,7 +0,0 @@ -import { operate } from '../util/lift'; -import { mergeInternals } from './mergeInternals'; -export function expand(project, concurrent = Infinity, scheduler) { - concurrent = (concurrent || 0) < 1 ? Infinity : concurrent; - return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent, undefined, true, scheduler)); -} -//# sourceMappingURL=expand.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/expand.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/expand.js.map deleted file mode 100644 index ade87a418..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/expand.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"expand.js","sourceRoot":"","sources":["../../../../src/internal/operators/expand.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAuElD,MAAM,UAAU,MAAM,CACpB,OAAuC,EACvC,UAAU,GAAG,QAAQ,EACrB,SAAyB;IAEzB,UAAU,GAAG,CAAC,UAAU,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC;IAC3D,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,CACpC,cAAc,CAEZ,MAAM,EACN,UAAU,EACV,OAAO,EACP,UAAU,EAGV,SAAS,EAGT,IAAI,EACJ,SAAS,CACV,CACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/filter.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/filter.js deleted file mode 100755 index d1417651b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/filter.js +++ /dev/null @@ -1,9 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function filter(predicate, thisArg) { - return operate((source, subscriber) => { - let index = 0; - source.subscribe(createOperatorSubscriber(subscriber, (value) => predicate.call(thisArg, value, index++) && subscriber.next(value))); - }); -} -//# sourceMappingURL=filter.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/filter.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/filter.js.map deleted file mode 100644 index e9f3b6cbe..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/filter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../src/internal/operators/filter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA0DhE,MAAM,UAAU,MAAM,CAAI,SAA+C,EAAE,OAAa;IACtF,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAEpC,IAAI,KAAK,GAAG,CAAC,CAAC;QAId,MAAM,CAAC,SAAS,CAId,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CACnH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/finalize.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/finalize.js deleted file mode 100755 index a5dd66f85..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/finalize.js +++ /dev/null @@ -1,12 +0,0 @@ -import { operate } from '../util/lift'; -export function finalize(callback) { - return operate((source, subscriber) => { - try { - source.subscribe(subscriber); - } - finally { - subscriber.add(callback); - } - }); -} -//# sourceMappingURL=finalize.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/finalize.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/finalize.js.map deleted file mode 100644 index c1c095973..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/finalize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"finalize.js","sourceRoot":"","sources":["../../../../src/internal/operators/finalize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA+DvC,MAAM,UAAU,QAAQ,CAAI,QAAoB;IAC9C,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAGpC,IAAI;YACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;SAC9B;gBAAS;YACR,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;SAC1B;IACH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/find.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/find.js deleted file mode 100755 index daf1706f0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/find.js +++ /dev/null @@ -1,22 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function find(predicate, thisArg) { - return operate(createFind(predicate, thisArg, 'value')); -} -export function createFind(predicate, thisArg, emit) { - const findIndex = emit === 'index'; - return (source, subscriber) => { - let index = 0; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - const i = index++; - if (predicate.call(thisArg, value, i, source)) { - subscriber.next(findIndex ? i : value); - subscriber.complete(); - } - }, () => { - subscriber.next(findIndex ? -1 : undefined); - subscriber.complete(); - })); - }; -} -//# sourceMappingURL=find.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/find.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/find.js.map deleted file mode 100644 index a0fd9f6cd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/find.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../../src/internal/operators/find.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4DhE,MAAM,UAAU,IAAI,CAClB,SAAsE,EACtE,OAAa;IAEb,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,UAAU,CACxB,SAAsE,EACtE,OAAY,EACZ,IAAuB;IAEvB,MAAM,SAAS,GAAG,IAAI,KAAK,OAAO,CAAC;IACnC,OAAO,CAAC,MAAqB,EAAE,UAA2B,EAAE,EAAE;QAC5D,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YACR,MAAM,CAAC,GAAG,KAAK,EAAE,CAAC;YAClB,IAAI,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE;gBAC7C,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;gBACvC,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,EACD,GAAG,EAAE;YACH,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC5C,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/findIndex.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/findIndex.js deleted file mode 100755 index d59c5f8c3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/findIndex.js +++ /dev/null @@ -1,6 +0,0 @@ -import { operate } from '../util/lift'; -import { createFind } from './find'; -export function findIndex(predicate, thisArg) { - return operate(createFind(predicate, thisArg, 'index')); -} -//# sourceMappingURL=findIndex.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/findIndex.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/findIndex.js.map deleted file mode 100644 index c4d30fc50..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/findIndex.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"findIndex.js","sourceRoot":"","sources":["../../../../src/internal/operators/findIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAuDpC,MAAM,UAAU,SAAS,CACvB,SAAsE,EACtE,OAAa;IAEb,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1D,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/first.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/first.js deleted file mode 100755 index 406bba069..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/first.js +++ /dev/null @@ -1,11 +0,0 @@ -import { EmptyError } from '../util/EmptyError'; -import { filter } from './filter'; -import { take } from './take'; -import { defaultIfEmpty } from './defaultIfEmpty'; -import { throwIfEmpty } from './throwIfEmpty'; -import { identity } from '../util/identity'; -export function first(predicate, defaultValue) { - const hasDefaultValue = arguments.length >= 2; - return (source) => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError())); -} -//# sourceMappingURL=first.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/first.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/first.js.map deleted file mode 100644 index 17a1bbd86..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/first.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"first.js","sourceRoot":"","sources":["../../../../src/internal/operators/first.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAyE5C,MAAM,UAAU,KAAK,CACnB,SAAgF,EAChF,YAAgB;IAEhB,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9C,OAAO,CAAC,MAAqB,EAAE,EAAE,CAC/B,MAAM,CAAC,IAAI,CACT,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAChE,IAAI,CAAC,CAAC,CAAC,EACP,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,YAAa,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,CACvF,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/flatMap.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/flatMap.js deleted file mode 100755 index 96e084cfc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/flatMap.js +++ /dev/null @@ -1,3 +0,0 @@ -import { mergeMap } from './mergeMap'; -export const flatMap = mergeMap; -//# sourceMappingURL=flatMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/flatMap.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/flatMap.js.map deleted file mode 100644 index 83f9dacd8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/flatMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"flatMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/flatMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/groupBy.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/groupBy.js deleted file mode 100755 index 56f00b698..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/groupBy.js +++ /dev/null @@ -1,63 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber, OperatorSubscriber } from './OperatorSubscriber'; -export function groupBy(keySelector, elementOrOptions, duration, connector) { - return operate((source, subscriber) => { - let element; - if (!elementOrOptions || typeof elementOrOptions === 'function') { - element = elementOrOptions; - } - else { - ({ duration, element, connector } = elementOrOptions); - } - const groups = new Map(); - const notify = (cb) => { - groups.forEach(cb); - cb(subscriber); - }; - const handleError = (err) => notify((consumer) => consumer.error(err)); - let activeGroups = 0; - let teardownAttempted = false; - const groupBySourceSubscriber = new OperatorSubscriber(subscriber, (value) => { - try { - const key = keySelector(value); - let group = groups.get(key); - if (!group) { - groups.set(key, (group = connector ? connector() : new Subject())); - const grouped = createGroupedObservable(key, group); - subscriber.next(grouped); - if (duration) { - const durationSubscriber = createOperatorSubscriber(group, () => { - group.complete(); - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - }, undefined, undefined, () => groups.delete(key)); - groupBySourceSubscriber.add(innerFrom(duration(grouped)).subscribe(durationSubscriber)); - } - } - group.next(element ? element(value) : value); - } - catch (err) { - handleError(err); - } - }, () => notify((consumer) => consumer.complete()), handleError, () => groups.clear(), () => { - teardownAttempted = true; - return activeGroups === 0; - }); - source.subscribe(groupBySourceSubscriber); - function createGroupedObservable(key, groupSubject) { - const result = new Observable((groupSubscriber) => { - activeGroups++; - const innerSub = groupSubject.subscribe(groupSubscriber); - return () => { - innerSub.unsubscribe(); - --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe(); - }; - }); - result.key = key; - return result; - } - }); -} -//# sourceMappingURL=groupBy.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/groupBy.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/groupBy.js.map deleted file mode 100644 index c02375f5e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/groupBy.js.map +++ /dev/null @@ -1 +0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,EAAE,EACpB,GAAG,EAAE;YACH,iBAAiB,GAAG,IAAI,CAAC;YAIzB,OAAO,YAAY,KAAK,CAAC,CAAC;QAC5B,CAAC,CACF,CAAC;QAGF,MAAM,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QAO1C,SAAS,uBAAuB,CAAC,GAAM,EAAE,YAA8B;YACrE,MAAM,MAAM,GAAQ,IAAI,UAAU,CAAI,CAAC,eAAe,EAAE,EAAE;gBACxD,YAAY,EAAE,CAAC;gBACf,MAAM,QAAQ,GAAG,YAAY,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;gBACzD,OAAO,GAAG,EAAE;oBACV,QAAQ,CAAC,WAAW,EAAE,CAAC;oBAIvB,EAAE,YAAY,KAAK,CAAC,IAAI,iBAAiB,IAAI,uBAAuB,CAAC,WAAW,EAAE,CAAC;gBACrF,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;YACH,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC;YACjB,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/ignoreElements.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/ignoreElements.js deleted file mode 100755 index 138ee2b93..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/ignoreElements.js +++ /dev/null @@ -1,9 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -export function ignoreElements() { - return operate((source, subscriber) => { - source.subscribe(createOperatorSubscriber(subscriber, noop)); - }); -} -//# sourceMappingURL=ignoreElements.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/ignoreElements.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/ignoreElements.js.map deleted file mode 100644 index 459e9cff7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/ignoreElements.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ignoreElements.js","sourceRoot":"","sources":["../../../../src/internal/operators/ignoreElements.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAqCpC,MAAM,UAAU,cAAc;IAC5B,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/isEmpty.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/isEmpty.js deleted file mode 100755 index 763aec53b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/isEmpty.js +++ /dev/null @@ -1,14 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function isEmpty() { - return operate((source, subscriber) => { - source.subscribe(createOperatorSubscriber(subscriber, () => { - subscriber.next(false); - subscriber.complete(); - }, () => { - subscriber.next(true); - subscriber.complete(); - })); - }); -} -//# sourceMappingURL=isEmpty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/isEmpty.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/isEmpty.js.map deleted file mode 100644 index e3584eb45..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/isEmpty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isEmpty.js","sourceRoot":"","sources":["../../../../src/internal/operators/isEmpty.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA+DhE,MAAM,UAAU,OAAO;IACrB,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,GAAG,EAAE;YACH,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,GAAG,EAAE;YACH,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/joinAllInternals.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/joinAllInternals.js deleted file mode 100755 index 398bb58e3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/joinAllInternals.js +++ /dev/null @@ -1,9 +0,0 @@ -import { identity } from '../util/identity'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { pipe } from '../util/pipe'; -import { mergeMap } from './mergeMap'; -import { toArray } from './toArray'; -export function joinAllInternals(joinFn, project) { - return pipe(toArray(), mergeMap((sources) => joinFn(sources)), project ? mapOneOrManyArgs(project) : identity); -} -//# sourceMappingURL=joinAllInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/joinAllInternals.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/joinAllInternals.js.map deleted file mode 100644 index bda561d0f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/joinAllInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"joinAllInternals.js","sourceRoot":"","sources":["../../../../src/internal/operators/joinAllInternals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,MAAM,UAAU,gBAAgB,CAAO,MAAwD,EAAE,OAA+B;IAC9H,OAAO,IAAI,CAGT,OAAO,EAAgE,EAEvE,QAAQ,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EAEtC,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,QAAgB,CACxD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/last.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/last.js deleted file mode 100755 index ff65d75f4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/last.js +++ /dev/null @@ -1,11 +0,0 @@ -import { EmptyError } from '../util/EmptyError'; -import { filter } from './filter'; -import { takeLast } from './takeLast'; -import { throwIfEmpty } from './throwIfEmpty'; -import { defaultIfEmpty } from './defaultIfEmpty'; -import { identity } from '../util/identity'; -export function last(predicate, defaultValue) { - const hasDefaultValue = arguments.length >= 2; - return (source) => source.pipe(predicate ? filter((v, i) => predicate(v, i, source)) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(() => new EmptyError())); -} -//# sourceMappingURL=last.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/last.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/last.js.map deleted file mode 100644 index c6042f737..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/last.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"last.js","sourceRoot":"","sources":["../../../../src/internal/operators/last.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAuE5C,MAAM,UAAU,IAAI,CAClB,SAAgF,EAChF,YAAgB;IAEhB,MAAM,eAAe,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9C,OAAO,CAAC,MAAqB,EAAE,EAAE,CAC/B,MAAM,CAAC,IAAI,CACT,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAChE,QAAQ,CAAC,CAAC,CAAC,EACX,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,YAAa,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,CACvF,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/map.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/map.js deleted file mode 100755 index f16375ad8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/map.js +++ /dev/null @@ -1,11 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function map(project, thisArg) { - return operate((source, subscriber) => { - let index = 0; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - subscriber.next(project.call(thisArg, value, index++)); - })); - }); -} -//# sourceMappingURL=map.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/map.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/map.js.map deleted file mode 100644 index 38325e6dd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/map.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"map.js","sourceRoot":"","sources":["../../../../src/internal/operators/map.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA6ChE,MAAM,UAAU,GAAG,CAAO,OAAuC,EAAE,OAAa;IAC9E,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAEpC,IAAI,KAAK,GAAG,CAAC,CAAC;QAGd,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAQ,EAAE,EAAE;YAGhD,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QACzD,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mapTo.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mapTo.js deleted file mode 100755 index 147161a6d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mapTo.js +++ /dev/null @@ -1,5 +0,0 @@ -import { map } from './map'; -export function mapTo(value) { - return map(() => value); -} -//# sourceMappingURL=mapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mapTo.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mapTo.js.map deleted file mode 100644 index 75052d6f5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/mapTo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA4C5B,MAAM,UAAU,KAAK,CAAI,KAAQ;IAC/B,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/materialize.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/materialize.js deleted file mode 100755 index 9fed5d580..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/materialize.js +++ /dev/null @@ -1,17 +0,0 @@ -import { Notification } from '../Notification'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function materialize() { - return operate((source, subscriber) => { - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - subscriber.next(Notification.createNext(value)); - }, () => { - subscriber.next(Notification.createComplete()); - subscriber.complete(); - }, (err) => { - subscriber.next(Notification.createError(err)); - subscriber.complete(); - })); - }); -} -//# sourceMappingURL=materialize.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/materialize.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/materialize.js.map deleted file mode 100644 index 3f551ab89..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/materialize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"materialize.js","sourceRoot":"","sources":["../../../../src/internal/operators/materialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAkDhE,MAAM,UAAU,WAAW;IACzB,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YACR,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,CAAC,EACD,GAAG,EAAE;YACH,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC,CAAC;YAC/C,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,CAAC,GAAG,EAAE,EAAE;YACN,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;YAC/C,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/max.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/max.js deleted file mode 100755 index 73abbb668..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/max.js +++ /dev/null @@ -1,6 +0,0 @@ -import { reduce } from './reduce'; -import { isFunction } from '../util/isFunction'; -export function max(comparer) { - return reduce(isFunction(comparer) ? (x, y) => (comparer(x, y) > 0 ? x : y) : (x, y) => (x > y ? x : y)); -} -//# sourceMappingURL=max.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/max.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/max.js.map deleted file mode 100644 index 9c5296621..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/max.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"max.js","sourceRoot":"","sources":["../../../../src/internal/operators/max.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAgDhD,MAAM,UAAU,GAAG,CAAI,QAAiC;IACtD,OAAO,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3G,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/merge.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/merge.js deleted file mode 100755 index 86604eaba..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/merge.js +++ /dev/null @@ -1,14 +0,0 @@ -import { operate } from '../util/lift'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { mergeAll } from './mergeAll'; -import { popNumber, popScheduler } from '../util/args'; -import { from } from '../observable/from'; -export function merge(...args) { - const scheduler = popScheduler(args); - const concurrent = popNumber(args, Infinity); - args = argsOrArgArray(args); - return operate((source, subscriber) => { - mergeAll(concurrent)(from([source, ...args], scheduler)).subscribe(subscriber); - }); -} -//# sourceMappingURL=merge.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/merge.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/merge.js.map deleted file mode 100644 index f9a386542..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/merge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../../src/internal/operators/merge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAiB1C,MAAM,UAAU,KAAK,CAAI,GAAG,IAAe;IACzC,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,UAAU,GAAG,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC7C,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAE5B,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,QAAQ,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,GAAI,IAA6B,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC3G,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeAll.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeAll.js deleted file mode 100755 index bd26d7abf..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeAll.js +++ /dev/null @@ -1,6 +0,0 @@ -import { mergeMap } from './mergeMap'; -import { identity } from '../util/identity'; -export function mergeAll(concurrent = Infinity) { - return mergeMap(identity, concurrent); -} -//# sourceMappingURL=mergeAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeAll.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeAll.js.map deleted file mode 100644 index 4b41a300e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA8D5C,MAAM,UAAU,QAAQ,CAAiC,aAAqB,QAAQ;IACpF,OAAO,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js deleted file mode 100755 index f387656ec..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js +++ /dev/null @@ -1,58 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { executeSchedule } from '../util/executeSchedule'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) { - const buffer = []; - let active = 0; - let index = 0; - let isComplete = false; - const checkComplete = () => { - if (isComplete && !buffer.length && !active) { - subscriber.complete(); - } - }; - const outerNext = (value) => (active < concurrent ? doInnerSub(value) : buffer.push(value)); - const doInnerSub = (value) => { - expand && subscriber.next(value); - active++; - let innerComplete = false; - innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, (innerValue) => { - onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue); - if (expand) { - outerNext(innerValue); - } - else { - subscriber.next(innerValue); - } - }, () => { - innerComplete = true; - }, undefined, () => { - if (innerComplete) { - try { - active--; - while (buffer.length && active < concurrent) { - const bufferedValue = buffer.shift(); - if (innerSubScheduler) { - executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue)); - } - else { - doInnerSub(bufferedValue); - } - } - checkComplete(); - } - catch (err) { - subscriber.error(err); - } - } - })); - }; - source.subscribe(createOperatorSubscriber(subscriber, outerNext, () => { - isComplete = true; - checkComplete(); - })); - return () => { - additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer(); - }; -} -//# sourceMappingURL=mergeInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js.map deleted file mode 100644 index 7a7ffe0bf..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeInternals.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeInternals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAehE,MAAM,UAAU,cAAc,CAC5B,MAAqB,EACrB,UAAyB,EACzB,OAAwD,EACxD,UAAkB,EAClB,YAAsC,EACtC,MAAgB,EAChB,iBAAiC,EACjC,mBAAgC;IAGhC,MAAM,MAAM,GAAQ,EAAE,CAAC;IAEvB,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,IAAI,UAAU,GAAG,KAAK,CAAC;IAKvB,MAAM,aAAa,GAAG,GAAG,EAAE;QAIzB,IAAI,UAAU,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,EAAE;YAC3C,UAAU,CAAC,QAAQ,EAAE,CAAC;SACvB;IACH,CAAC,CAAC;IAGF,MAAM,SAAS,GAAG,CAAC,KAAQ,EAAE,EAAE,CAAC,CAAC,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAE/F,MAAM,UAAU,GAAG,CAAC,KAAQ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E,CAAC;IAClB,CAAC,CAAC,CACH,CAAC;IAIF,OAAO,GAAG,EAAE;QACV,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,EAAI,CAAC;IAC1B,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMap.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMap.js deleted file mode 100755 index fc2d2fd9a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMap.js +++ /dev/null @@ -1,15 +0,0 @@ -import { map } from './map'; -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { mergeInternals } from './mergeInternals'; -import { isFunction } from '../util/isFunction'; -export function mergeMap(project, resultSelector, concurrent = Infinity) { - if (isFunction(resultSelector)) { - return mergeMap((a, i) => map((b, ii) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent); - } - else if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent)); -} -//# sourceMappingURL=mergeMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMap.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMap.js.map deleted file mode 100644 index 71d4d0993..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA6EhD,MAAM,UAAU,QAAQ,CACtB,OAAuC,EACvC,cAAwH,EACxH,aAAqB,QAAQ;IAE7B,IAAI,UAAU,CAAC,cAAc,CAAC,EAAE;QAE9B,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAU,EAAE,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;KAC3H;SAAM,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;QAC7C,UAAU,GAAG,cAAc,CAAC;KAC7B;IAED,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,CAAC;AAClG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMapTo.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMapTo.js deleted file mode 100755 index bccbabe8f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMapTo.js +++ /dev/null @@ -1,12 +0,0 @@ -import { mergeMap } from './mergeMap'; -import { isFunction } from '../util/isFunction'; -export function mergeMapTo(innerObservable, resultSelector, concurrent = Infinity) { - if (isFunction(resultSelector)) { - return mergeMap(() => innerObservable, resultSelector, concurrent); - } - if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - return mergeMap(() => innerObservable, concurrent); -} -//# sourceMappingURL=mergeMapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMapTo.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMapTo.js.map deleted file mode 100644 index 024ca431d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeMapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeMapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeMapTo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA2DhD,MAAM,UAAU,UAAU,CACxB,eAAkB,EAClB,cAAwH,EACxH,aAAqB,QAAQ;IAE7B,IAAI,UAAU,CAAC,cAAc,CAAC,EAAE;QAC9B,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;KACpE;IACD,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;QACtC,UAAU,GAAG,cAAc,CAAC;KAC7B;IACD,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeScan.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeScan.js deleted file mode 100755 index aa2745952..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeScan.js +++ /dev/null @@ -1,11 +0,0 @@ -import { operate } from '../util/lift'; -import { mergeInternals } from './mergeInternals'; -export function mergeScan(accumulator, seed, concurrent = Infinity) { - return operate((source, subscriber) => { - let state = seed; - return mergeInternals(source, subscriber, (value, index) => accumulator(state, value, index), concurrent, (value) => { - state = value; - }, false, undefined, () => (state = null)); - }); -} -//# sourceMappingURL=mergeScan.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeScan.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeScan.js.map deleted file mode 100644 index d2402e625..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeScan.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeScan.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeScan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAoElD,MAAM,UAAU,SAAS,CACvB,WAAoE,EACpE,IAAO,EACP,UAAU,GAAG,QAAQ;IAErB,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAEpC,IAAI,KAAK,GAAG,IAAI,CAAC;QAEjB,OAAO,cAAc,CACnB,MAAM,EACN,UAAU,EACV,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAClD,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YACR,KAAK,GAAG,KAAK,CAAC;QAChB,CAAC,EACD,KAAK,EACL,SAAS,EACT,GAAG,EAAE,CAAC,CAAC,KAAK,GAAG,IAAK,CAAC,CACtB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeWith.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeWith.js deleted file mode 100755 index 166e2911d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeWith.js +++ /dev/null @@ -1,5 +0,0 @@ -import { merge } from './merge'; -export function mergeWith(...otherSources) { - return merge(...otherSources); -} -//# sourceMappingURL=mergeWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeWith.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeWith.js.map deleted file mode 100644 index 6867e8a96..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/mergeWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeWith.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA2ChC,MAAM,UAAU,SAAS,CACvB,GAAG,YAA0C;IAE7C,OAAO,KAAK,CAAC,GAAG,YAAY,CAAC,CAAC;AAChC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/min.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/min.js deleted file mode 100755 index 708a4d294..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/min.js +++ /dev/null @@ -1,6 +0,0 @@ -import { reduce } from './reduce'; -import { isFunction } from '../util/isFunction'; -export function min(comparer) { - return reduce(isFunction(comparer) ? (x, y) => (comparer(x, y) < 0 ? x : y) : (x, y) => (x < y ? x : y)); -} -//# sourceMappingURL=min.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/min.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/min.js.map deleted file mode 100644 index 32ce865ee..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min.js","sourceRoot":"","sources":["../../../../src/internal/operators/min.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAgDhD,MAAM,UAAU,GAAG,CAAI,QAAiC;IACtD,OAAO,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3G,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/multicast.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/multicast.js deleted file mode 100755 index 717ba9c48..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/multicast.js +++ /dev/null @@ -1,13 +0,0 @@ -import { ConnectableObservable } from '../observable/ConnectableObservable'; -import { isFunction } from '../util/isFunction'; -import { connect } from './connect'; -export function multicast(subjectOrSubjectFactory, selector) { - const subjectFactory = isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : () => subjectOrSubjectFactory; - if (isFunction(selector)) { - return connect(selector, { - connector: subjectFactory, - }); - } - return (source) => new ConnectableObservable(source, subjectFactory); -} -//# sourceMappingURL=multicast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/multicast.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/multicast.js.map deleted file mode 100644 index 24d4b1c08..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/multicast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"multicast.js","sourceRoot":"","sources":["../../../../src/internal/operators/multicast.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4EpC,MAAM,UAAU,SAAS,CACvB,uBAAwD,EACxD,QAAmD;IAEnD,MAAM,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,uBAAuB,CAAC;IAErH,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE;QAIxB,OAAO,OAAO,CAAC,QAAQ,EAAE;YACvB,SAAS,EAAE,cAAc;SAC1B,CAAC,CAAC;KACJ;IAED,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,IAAI,qBAAqB,CAAM,MAAM,EAAE,cAAc,CAAC,CAAC;AAC3F,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/observeOn.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/observeOn.js deleted file mode 100755 index 884979cf4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/observeOn.js +++ /dev/null @@ -1,9 +0,0 @@ -import { executeSchedule } from '../util/executeSchedule'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function observeOn(scheduler, delay = 0) { - return operate((source, subscriber) => { - source.subscribe(createOperatorSubscriber(subscriber, (value) => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay), () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay), (err) => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay))); - }); -} -//# sourceMappingURL=observeOn.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/observeOn.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/observeOn.js.map deleted file mode 100644 index 9ea9fa2f4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/observeOn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"observeOn.js","sourceRoot":"","sources":["../../../../src/internal/operators/observeOn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAsDhE,MAAM,UAAU,SAAS,CAAI,SAAwB,EAAE,KAAK,GAAG,CAAC;IAC9D,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE,CAAC,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,EACtF,GAAG,EAAE,CAAC,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,KAAK,CAAC,EAChF,CAAC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CACpF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/onErrorResumeNextWith.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/onErrorResumeNextWith.js deleted file mode 100755 index a3fd14420..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/onErrorResumeNextWith.js +++ /dev/null @@ -1,8 +0,0 @@ -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { onErrorResumeNext as oERNCreate } from '../observable/onErrorResumeNext'; -export function onErrorResumeNextWith(...sources) { - const nextSources = argsOrArgArray(sources); - return (source) => oERNCreate(source, ...nextSources); -} -export const onErrorResumeNext = onErrorResumeNextWith; -//# sourceMappingURL=onErrorResumeNextWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/onErrorResumeNextWith.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/onErrorResumeNextWith.js.map deleted file mode 100644 index 7bbd7bbe3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/onErrorResumeNextWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"onErrorResumeNextWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/onErrorResumeNextWith.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,iBAAiB,IAAI,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAiFlF,MAAM,UAAU,qBAAqB,CACnC,GAAG,OAAsE;IAMzE,MAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAuC,CAAC;IAElF,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,GAAG,WAAW,CAAC,CAAC;AACxD,CAAC;AAKD,MAAM,CAAC,MAAM,iBAAiB,GAAG,qBAAqB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pairwise.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pairwise.js deleted file mode 100755 index bec8fd806..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pairwise.js +++ /dev/null @@ -1,15 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function pairwise() { - return operate((source, subscriber) => { - let prev; - let hasPrev = false; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - const p = prev; - prev = value; - hasPrev && subscriber.next([p, value]); - hasPrev = true; - })); - }); -} -//# sourceMappingURL=pairwise.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pairwise.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pairwise.js.map deleted file mode 100644 index b0d8eb2d5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pairwise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pairwise.js","sourceRoot":"","sources":["../../../../src/internal/operators/pairwise.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA6ChE,MAAM,UAAU,QAAQ;IACtB,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,IAAO,CAAC;QACZ,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;YAC7C,MAAM,CAAC,GAAG,IAAI,CAAC;YACf,IAAI,GAAG,KAAK,CAAC;YACb,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;YACvC,OAAO,GAAG,IAAI,CAAC;QACjB,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/partition.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/partition.js deleted file mode 100755 index 7125a6290..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/partition.js +++ /dev/null @@ -1,6 +0,0 @@ -import { not } from '../util/not'; -import { filter } from './filter'; -export function partition(predicate, thisArg) { - return (source) => [filter(predicate, thisArg)(source), filter(not(predicate, thisArg))(source)]; -} -//# sourceMappingURL=partition.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/partition.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/partition.js.map deleted file mode 100644 index 1e426fae9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/partition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"partition.js","sourceRoot":"","sources":["../../../../src/internal/operators/partition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAuDlC,MAAM,UAAU,SAAS,CACvB,SAA+C,EAC/C,OAAa;IAEb,OAAO,CAAC,MAAqB,EAAE,EAAE,CAC/B,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAmC,CAAC;AACpH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pluck.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pluck.js deleted file mode 100755 index 66a5f27a0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pluck.js +++ /dev/null @@ -1,21 +0,0 @@ -import { map } from './map'; -export function pluck(...properties) { - const length = properties.length; - if (length === 0) { - throw new Error('list of properties cannot be empty.'); - } - return map((x) => { - let currentProp = x; - for (let i = 0; i < length; i++) { - const p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]]; - if (typeof p !== 'undefined') { - currentProp = p; - } - else { - return undefined; - } - } - return currentProp; - }); -} -//# sourceMappingURL=pluck.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pluck.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pluck.js.map deleted file mode 100644 index bb44249c5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/pluck.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pluck.js","sourceRoot":"","sources":["../../../../src/internal/operators/pluck.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAwF5B,MAAM,UAAU,KAAK,CAAO,GAAG,UAA2C;IACxE,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACjC,IAAI,MAAM,KAAK,CAAC,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;KACxD;IACD,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACf,IAAI,WAAW,GAAQ,CAAC,CAAC;QACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;YAC/B,MAAM,CAAC,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACvC,IAAI,OAAO,CAAC,KAAK,WAAW,EAAE;gBAC5B,WAAW,GAAG,CAAC,CAAC;aACjB;iBAAM;gBACL,OAAO,SAAS,CAAC;aAClB;SACF;QACD,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publish.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publish.js deleted file mode 100755 index 0878c0a57..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publish.js +++ /dev/null @@ -1,7 +0,0 @@ -import { Subject } from '../Subject'; -import { multicast } from './multicast'; -import { connect } from './connect'; -export function publish(selector) { - return selector ? (source) => connect(selector)(source) : (source) => multicast(new Subject())(source); -} -//# sourceMappingURL=publish.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publish.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publish.js.map deleted file mode 100644 index ad0d9698c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publish.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../src/internal/operators/publish.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqFpC,MAAM,UAAU,OAAO,CAAO,QAAiC;IAC7D,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,OAAO,EAAK,CAAC,CAAC,MAAM,CAAC,CAAC;AAC5G,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishBehavior.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishBehavior.js deleted file mode 100755 index ed80476a7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishBehavior.js +++ /dev/null @@ -1,9 +0,0 @@ -import { BehaviorSubject } from '../BehaviorSubject'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -export function publishBehavior(initialValue) { - return (source) => { - const subject = new BehaviorSubject(initialValue); - return new ConnectableObservable(source, () => subject); - }; -} -//# sourceMappingURL=publishBehavior.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishBehavior.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishBehavior.js.map deleted file mode 100644 index f227f5c87..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishBehavior.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishBehavior.js","sourceRoot":"","sources":["../../../../src/internal/operators/publishBehavior.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAiB5E,MAAM,UAAU,eAAe,CAAI,YAAe;IAEhD,OAAO,CAAC,MAAM,EAAE,EAAE;QAChB,MAAM,OAAO,GAAG,IAAI,eAAe,CAAI,YAAY,CAAC,CAAC;QACrD,OAAO,IAAI,qBAAqB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC;IAC1D,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishLast.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishLast.js deleted file mode 100755 index c912bb593..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishLast.js +++ /dev/null @@ -1,9 +0,0 @@ -import { AsyncSubject } from '../AsyncSubject'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -export function publishLast() { - return (source) => { - const subject = new AsyncSubject(); - return new ConnectableObservable(source, () => subject); - }; -} -//# sourceMappingURL=publishLast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishLast.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishLast.js.map deleted file mode 100644 index a9c0240d9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishLast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishLast.js","sourceRoot":"","sources":["../../../../src/internal/operators/publishLast.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAmE5E,MAAM,UAAU,WAAW;IAEzB,OAAO,CAAC,MAAM,EAAE,EAAE;QAChB,MAAM,OAAO,GAAG,IAAI,YAAY,EAAK,CAAC;QACtC,OAAO,IAAI,qBAAqB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC;IAC1D,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishReplay.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishReplay.js deleted file mode 100755 index c3f9dc1ff..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishReplay.js +++ /dev/null @@ -1,11 +0,0 @@ -import { ReplaySubject } from '../ReplaySubject'; -import { multicast } from './multicast'; -import { isFunction } from '../util/isFunction'; -export function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) { - if (selectorOrScheduler && !isFunction(selectorOrScheduler)) { - timestampProvider = selectorOrScheduler; - } - const selector = isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined; - return (source) => multicast(new ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source); -} -//# sourceMappingURL=publishReplay.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishReplay.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishReplay.js.map deleted file mode 100644 index fee688d02..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/publishReplay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishReplay.js","sourceRoot":"","sources":["../../../../src/internal/operators/publishReplay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA8EhD,MAAM,UAAU,aAAa,CAC3B,UAAmB,EACnB,UAAmB,EACnB,mBAAgE,EAChE,iBAAqC;IAErC,IAAI,mBAAmB,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAAE;QAC3D,iBAAiB,GAAG,mBAAmB,CAAC;KACzC;IACD,MAAM,QAAQ,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;IAGnF,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,aAAa,CAAI,UAAU,EAAE,UAAU,EAAE,iBAAiB,CAAC,EAAE,QAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAClI,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/race.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/race.js deleted file mode 100755 index 822b3994f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/race.js +++ /dev/null @@ -1,6 +0,0 @@ -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { raceWith } from './raceWith'; -export function race(...args) { - return raceWith(...argsOrArgArray(args)); -} -//# sourceMappingURL=race.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/race.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/race.js.map deleted file mode 100644 index cac58554f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/race.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"race.js","sourceRoot":"","sources":["../../../../src/internal/operators/race.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAetC,MAAM,UAAU,IAAI,CAAI,GAAG,IAAW;IACpC,OAAO,QAAQ,CAAC,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC;AAC3C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/raceWith.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/raceWith.js deleted file mode 100755 index ff63ee189..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/raceWith.js +++ /dev/null @@ -1,11 +0,0 @@ -import { raceInit } from '../observable/race'; -import { operate } from '../util/lift'; -import { identity } from '../util/identity'; -export function raceWith(...otherSources) { - return !otherSources.length - ? identity - : operate((source, subscriber) => { - raceInit([source, ...otherSources])(subscriber); - }); -} -//# sourceMappingURL=raceWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/raceWith.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/raceWith.js.map deleted file mode 100644 index 96b606525..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/raceWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"raceWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/raceWith.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA4B5C,MAAM,UAAU,QAAQ,CACtB,GAAG,YAA0C;IAE7C,OAAO,CAAC,YAAY,CAAC,MAAM;QACzB,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAC7B,QAAQ,CAAgB,CAAC,MAAM,EAAE,GAAG,YAAY,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/reduce.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/reduce.js deleted file mode 100755 index 55be35a8e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/reduce.js +++ /dev/null @@ -1,6 +0,0 @@ -import { scanInternals } from './scanInternals'; -import { operate } from '../util/lift'; -export function reduce(accumulator, seed) { - return operate(scanInternals(accumulator, seed, arguments.length >= 2, false, true)); -} -//# sourceMappingURL=reduce.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/reduce.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/reduce.js.map deleted file mode 100644 index 2ec4cdc7e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/reduce.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reduce.js","sourceRoot":"","sources":["../../../../src/internal/operators/reduce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAyDvC,MAAM,UAAU,MAAM,CAAO,WAAuD,EAAE,IAAU;IAC9F,OAAO,OAAO,CAAC,aAAa,CAAC,WAAW,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AACvF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/refCount.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/refCount.js deleted file mode 100755 index e666637a9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/refCount.js +++ /dev/null @@ -1,26 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function refCount() { - return operate((source, subscriber) => { - let connection = null; - source._refCount++; - const refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, () => { - if (!source || source._refCount <= 0 || 0 < --source._refCount) { - connection = null; - return; - } - const sharedConnection = source._connection; - const conn = connection; - connection = null; - if (sharedConnection && (!conn || sharedConnection === conn)) { - sharedConnection.unsubscribe(); - } - subscriber.unsubscribe(); - }); - source.subscribe(refCounter); - if (!refCounter.closed) { - connection = source.connect(); - } - }); -} -//# sourceMappingURL=refCount.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/refCount.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/refCount.js.map deleted file mode 100644 index b2a2c03b4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/refCount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"refCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/refCount.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4DhE,MAAM,UAAU,QAAQ;IACtB,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,UAAU,GAAwB,IAAI,CAAC;QAE1C,MAAc,CAAC,SAAS,EAAE,CAAC;QAE5B,MAAM,UAAU,GAAG,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE;YAC5F,IAAI,CAAC,MAAM,IAAK,MAAc,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAG,MAAc,CAAC,SAAS,EAAE;gBAChF,UAAU,GAAG,IAAI,CAAC;gBAClB,OAAO;aACR;YA2BD,MAAM,gBAAgB,GAAI,MAAc,CAAC,WAAW,CAAC;YACrD,MAAM,IAAI,GAAG,UAAU,CAAC;YACxB,UAAU,GAAG,IAAI,CAAC;YAElB,IAAI,gBAAgB,IAAI,CAAC,CAAC,IAAI,IAAI,gBAAgB,KAAK,IAAI,CAAC,EAAE;gBAC5D,gBAAgB,CAAC,WAAW,EAAE,CAAC;aAChC;YAED,UAAU,CAAC,WAAW,EAAE,CAAC;QAC3B,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAE7B,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;YACtB,UAAU,GAAI,MAAmC,CAAC,OAAO,EAAE,CAAC;SAC7D;IACH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeat.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeat.js deleted file mode 100755 index c011f8262..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeat.js +++ /dev/null @@ -1,59 +0,0 @@ -import { EMPTY } from '../observable/empty'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { timer } from '../observable/timer'; -export function repeat(countOrConfig) { - let count = Infinity; - let delay; - if (countOrConfig != null) { - if (typeof countOrConfig === 'object') { - ({ count = Infinity, delay } = countOrConfig); - } - else { - count = countOrConfig; - } - } - return count <= 0 - ? () => EMPTY - : operate((source, subscriber) => { - let soFar = 0; - let sourceSub; - const resubscribe = () => { - sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe(); - sourceSub = null; - if (delay != null) { - const notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar)); - const notifierSubscriber = createOperatorSubscriber(subscriber, () => { - notifierSubscriber.unsubscribe(); - subscribeToSource(); - }); - notifier.subscribe(notifierSubscriber); - } - else { - subscribeToSource(); - } - }; - const subscribeToSource = () => { - let syncUnsub = false; - sourceSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, () => { - if (++soFar < count) { - if (sourceSub) { - resubscribe(); - } - else { - syncUnsub = true; - } - } - else { - subscriber.complete(); - } - })); - if (syncUnsub) { - resubscribe(); - } - }; - subscribeToSource(); - }); -} -//# sourceMappingURL=repeat.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeat.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeat.js.map deleted file mode 100644 index e87a215d7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"repeat.js","sourceRoot":"","sources":["../../../../src/internal/operators/repeat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AA6G5C,MAAM,UAAU,MAAM,CAAI,aAAqC;IAC7D,IAAI,KAAK,GAAG,QAAQ,CAAC;IACrB,IAAI,KA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,EAAE;wBACnB,IAAI,SAAS,EAAE;4BACb,WAAW,EAAE,CAAC;yBACf;6BAAM;4BACL,SAAS,GAAG,IAAI,CAAC;yBAClB;qBACF;yBAAM;wBACL,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;gBACH,CAAC,CAAC,CACH,CAAC;gBAEF,IAAI,SAAS,EAAE;oBACb,WAAW,EAAE,CAAC;iBACf;YACH,CAAC,CAAC;YAEF,iBAAiB,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js deleted file mode 100755 index 82ecdd9d6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js +++ /dev/null @@ -1,46 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function repeatWhen(notifier) { - return operate((source, subscriber) => { - let innerSub; - let syncResub = false; - let completions$; - let isNotifierComplete = false; - let isMainComplete = false; - const checkComplete = () => isMainComplete && isNotifierComplete && (subscriber.complete(), true); - const getCompletionSubject = () => { - if (!completions$) { - completions$ = new Subject(); - innerFrom(notifier(completions$)).subscribe(createOperatorSubscriber(subscriber, () => { - if (innerSub) { - subscribeForRepeatWhen(); - } - else { - syncResub = true; - } - }, () => { - isNotifierComplete = true; - checkComplete(); - })); - } - return completions$; - }; - const subscribeForRepeatWhen = () => { - isMainComplete = false; - innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, () => { - isMainComplete = true; - !checkComplete() && getCompletionSubject().next(); - })); - if (syncResub) { - innerSub.unsubscribe(); - innerSub = null; - syncResub = false; - subscribeForRepeatWhen(); - } - }; - subscribeForRepeatWhen(); - }); -} -//# sourceMappingURL=repeatWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js.map deleted file mode 100644 index 65f5bbfe2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/repeatWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"repeatWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/repeatWhen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAoChE,MAAM,UAAU,UAAU,CAAI,QAAmE;IAC/F,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,QAA6B,CAAC;QAClC,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,YAA2B,CAAC;QAChC,IAAI,kBAAkB,GAAG,KAAK,CAAC;QAC/B,IAAI,cAAc,GAAG,KAAK,CAAC;QAK3B,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,cAAc,IAAI,kBAAkB,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,CAAC;QAKlG,MAAM,oBAAoB,GAAG,GAAG,EAAE;YAChC,IAAI,CAAC,YAAY,EAAE;gBACjB,YAAY,GAAG,IAAI,OAAO,EAAE,CAAC;gBAI7B,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CACzC,wBAAwB,CACtB,UAAU,EACV,GAAG,EAAE;oBACH,IAAI,QAAQ,EAAE;wBACZ,sBAAsB,EAAE,CAAC;qBAC1B;yBAAM;wBAKL,SAAS,GAAG,IAAI,CAAC;qBAClB;gBACH,CAAC,EACD,GAAG,EAAE;oBACH,kBAAkB,GAAG,IAAI,CAAC;oBAC1B,aAAa,EAAE,CAAC;gBAClB,CAAC,CACF,CACF,CAAC;aACH;YACD,OAAO,YAAY,CAAC;QACtB,CAAC,CAAC;QAEF,MAAM,sBAAsB,GAAG,GAAG,EAAE;YAClC,cAAc,GAAG,KAAK,CAAC;YAEvB,QAAQ,GAAG,MAAM,CAAC,SAAS,CACzB,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE;gBACnD,cAAc,GAAG,IAAI,CAAC;gBAMtB,CAAC,aAAa,EAAE,IAAI,oBAAoB,EAAE,CAAC,IAAI,EAAE,CAAC;YACpD,CAAC,CAAC,CACH,CAAC;YAEF,IAAI,SAAS,EAAE;gBAKb,QAAQ,CAAC,WAAW,EAAE,CAAC;gBAIvB,QAAQ,GAAG,IAAI,CAAC;gBAEhB,SAAS,GAAG,KAAK,CAAC;gBAElB,sBAAsB,EAAE,CAAC;aAC1B;QACH,CAAC,CAAC;QAGF,sBAAsB,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retry.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retry.js deleted file mode 100755 index c961747d5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retry.js +++ /dev/null @@ -1,68 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { identity } from '../util/identity'; -import { timer } from '../observable/timer'; -import { innerFrom } from '../observable/innerFrom'; -export function retry(configOrCount = Infinity) { - let config; - if (configOrCount && typeof configOrCount === 'object') { - config = configOrCount; - } - else { - config = { - count: configOrCount, - }; - } - const { count = Infinity, delay, resetOnSuccess: resetOnSuccess = false } = config; - return count <= 0 - ? identity - : operate((source, subscriber) => { - let soFar = 0; - let innerSub; - const subscribeForRetry = () => { - let syncUnsub = false; - innerSub = source.subscribe(createOperatorSubscriber(subscriber, (value) => { - if (resetOnSuccess) { - soFar = 0; - } - subscriber.next(value); - }, undefined, (err) => { - if (soFar++ < count) { - const resub = () => { - if (innerSub) { - innerSub.unsubscribe(); - innerSub = null; - subscribeForRetry(); - } - else { - syncUnsub = true; - } - }; - if (delay != null) { - const notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(err, soFar)); - const notifierSubscriber = createOperatorSubscriber(subscriber, () => { - notifierSubscriber.unsubscribe(); - resub(); - }, () => { - subscriber.complete(); - }); - notifier.subscribe(notifierSubscriber); - } - else { - resub(); - } - } - else { - subscriber.error(err); - } - })); - if (syncUnsub) { - innerSub.unsubscribe(); - innerSub = null; - subscribeForRetry(); - } - }; - subscribeForRetry(); - }); -} -//# sourceMappingURL=retry.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retry.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retry.js.map deleted file mode 100644 index 81bdf98ce..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"retry.js","sourceRoot":"","sources":["../../../../src/internal/operators/retry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA4EpD,MAAM,UAAU,KAAK,CAAI,gBAAsC,QAAQ;IACrE,IAAI,MAAmB,CAAC;IACxB,IAAI,aAAa,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;QACtD,MAAM,GAAG,aAAa,CAAC;KACxB;SAAM;QACL,MAAM,GAAG;YACP,KAAK,EAAE,aAAuB;SAC/B,CAAC;KACH;IACD,MAAM,EAAE,KAAK,GA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AAG,EAAE;gCAGH,UAAU,CAAC,QAAQ,EAAE,CAAC;4BACxB,CAAC,CACF,CAAC;4BACF,QAAQ,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;yBACxC;6BAAM;4BAEL,KAAK,EAAE,CAAC;yBACT;qBACF;yBAAM;wBAGL,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;qBACvB;gBACH,CAAC,CACF,CACF,CAAC;gBACF,IAAI,SAAS,EAAE;oBACb,QAAQ,CAAC,WAAW,EAAE,CAAC;oBACvB,QAAQ,GAAG,IAAI,CAAC;oBAChB,iBAAiB,EAAE,CAAC;iBACrB;YACH,CAAC,CAAC;YACF,iBAAiB,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retryWhen.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retryWhen.js deleted file mode 100755 index cda09f2f8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retryWhen.js +++ /dev/null @@ -1,30 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function retryWhen(notifier) { - return operate((source, subscriber) => { - let innerSub; - let syncResub = false; - let errors$; - const subscribeForRetryWhen = () => { - innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, (err) => { - if (!errors$) { - errors$ = new Subject(); - innerFrom(notifier(errors$)).subscribe(createOperatorSubscriber(subscriber, () => innerSub ? subscribeForRetryWhen() : (syncResub = true))); - } - if (errors$) { - errors$.next(err); - } - })); - if (syncResub) { - innerSub.unsubscribe(); - innerSub = null; - syncResub = false; - subscribeForRetryWhen(); - } - }; - subscribeForRetryWhen(); - }); -} -//# sourceMappingURL=retryWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retryWhen.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retryWhen.js.map deleted file mode 100644 index 5a870c0c4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/retryWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"retryWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/retryWhen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA2DhE,MAAM,UAAU,SAAS,CAAI,QAA2D;IACtF,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,QAA6B,CAAC;QAClC,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,OAAqB,CAAC;QAE1B,MAAM,qBAAqB,GAAG,GAAG,EAAE;YACjC,QAAQ,GAAG,MAAM,CAAC,SAAS,CACzB,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE;gBACjE,IAAI,CAAC,OAAO,EAAE;oBACZ,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;oBACxB,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CACpC,wBAAwB,CAAC,UAAU,EAAE,GAAG,EAAE,CAMxC,QAAQ,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC,CACxD,CACF,CAAC;iBACH;gBACD,IAAI,OAAO,EAAE;oBAEX,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;iBACnB;YACH,CAAC,CAAC,CACH,CAAC;YAEF,IAAI,SAAS,EAAE;gBAKb,QAAQ,CAAC,WAAW,EAAE,CAAC;gBACvB,QAAQ,GAAG,IAAI,CAAC;gBAEhB,SAAS,GAAG,KAAK,CAAC;gBAElB,qBAAqB,EAAE,CAAC;aACzB;QACH,CAAC,CAAC;QAGF,qBAAqB,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sample.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sample.js deleted file mode 100755 index 5c36c5744..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sample.js +++ /dev/null @@ -1,23 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function sample(notifier) { - return operate((source, subscriber) => { - let hasValue = false; - let lastValue = null; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - hasValue = true; - lastValue = value; - })); - innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => { - if (hasValue) { - hasValue = false; - const value = lastValue; - lastValue = null; - subscriber.next(value); - } - }, noop)); - }); -} -//# sourceMappingURL=sample.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sample.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sample.js.map deleted file mode 100644 index fb0440c55..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sample.js","sourceRoot":"","sources":["../../../../src/internal/operators/sample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA0ChE,MAAM,UAAU,MAAM,CAAI,QAA8B;IACtD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,SAAS,GAAa,IAAI,CAAC;QAC/B,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;YAC7C,QAAQ,GAAG,IAAI,CAAC;YAChB,SAAS,GAAG,KAAK,CAAC;QACpB,CAAC,CAAC,CACH,CAAC;QACF,SAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAC3B,wBAAwB,CACtB,UAAU,EACV,GAAG,EAAE;YACH,IAAI,QAAQ,EAAE;gBACZ,QAAQ,GAAG,KAAK,CAAC;gBACjB,MAAM,KAAK,GAAG,SAAU,CAAC;gBACzB,SAAS,GAAG,IAAI,CAAC;gBACjB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,EACD,IAAI,CACL,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sampleTime.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sampleTime.js deleted file mode 100755 index b95210bf7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sampleTime.js +++ /dev/null @@ -1,7 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { sample } from './sample'; -import { interval } from '../observable/interval'; -export function sampleTime(period, scheduler = asyncScheduler) { - return sample(interval(period, scheduler)); -} -//# sourceMappingURL=sampleTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sampleTime.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sampleTime.js.map deleted file mode 100644 index 4842d3bca..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sampleTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sampleTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/sampleTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA6ClD,MAAM,UAAU,UAAU,CAAI,MAAc,EAAE,YAA2B,cAAc;IACrF,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;AAC7C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scan.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scan.js deleted file mode 100755 index b60b8e00d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scan.js +++ /dev/null @@ -1,6 +0,0 @@ -import { operate } from '../util/lift'; -import { scanInternals } from './scanInternals'; -export function scan(accumulator, seed) { - return operate(scanInternals(accumulator, seed, arguments.length >= 2, true)); -} -//# sourceMappingURL=scan.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scan.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scan.js.map deleted file mode 100644 index dd32f366b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scan.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../../src/internal/operators/scan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAqFhD,MAAM,UAAU,IAAI,CAAU,WAA2D,EAAE,IAAQ;IAMjG,OAAO,OAAO,CAAC,aAAa,CAAC,WAAW,EAAE,IAAS,EAAE,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AACrF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scanInternals.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scanInternals.js deleted file mode 100755 index 9074cd1ef..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scanInternals.js +++ /dev/null @@ -1,22 +0,0 @@ -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) { - return (source, subscriber) => { - let hasState = hasSeed; - let state = seed; - let index = 0; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - const i = index++; - state = hasState - ? - accumulator(state, value, i) - : - ((hasState = true), value); - emitOnNext && subscriber.next(state); - }, emitBeforeComplete && - (() => { - hasState && subscriber.next(state); - subscriber.complete(); - }))); - }; -} -//# sourceMappingURL=scanInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scanInternals.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scanInternals.js.map deleted file mode 100644 index 5df4e951c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/scanInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scanInternals.js","sourceRoot":"","sources":["../../../../src/internal/operators/scanInternals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAWhE,MAAM,UAAU,aAAa,CAC3B,WAA2D,EAC3D,IAAO,EACP,OAAgB,EAChB,UAAmB,EACnB,kBAAqC;IAErC,OAAO,CAAC,MAAqB,EAAE,UAA2B,EAAE,EAAE;QAI5D,IAAI,QAAQ,GAAG,OAAO,CAAC;QAIvB,IAAI,KAAK,GAAQ,IAAI,CAAC;QAEtB,IAAI,KAAK,GAAG,CAAC,CAAC;QAGd,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YAER,MAAM,CAAC,GAAG,KAAK,EAAE,CAAC;YAElB,KAAK,GAAG,QAAQ;gBACd,CAAC;oBACC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;gBAC9B,CAAC;oBAGC,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;YAG/B,UAAU,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC,EAGD,kBAAkB;YAChB,CAAC,GAAG,EAAE;gBACJ,QAAQ,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACnC,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,CAAC,CACL,CACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sequenceEqual.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sequenceEqual.js deleted file mode 100755 index 9b9f17706..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sequenceEqual.js +++ /dev/null @@ -1,39 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function sequenceEqual(compareTo, comparator = (a, b) => a === b) { - return operate((source, subscriber) => { - const aState = createState(); - const bState = createState(); - const emit = (isEqual) => { - subscriber.next(isEqual); - subscriber.complete(); - }; - const createSubscriber = (selfState, otherState) => { - const sequenceEqualSubscriber = createOperatorSubscriber(subscriber, (a) => { - const { buffer, complete } = otherState; - if (buffer.length === 0) { - complete ? emit(false) : selfState.buffer.push(a); - } - else { - !comparator(a, buffer.shift()) && emit(false); - } - }, () => { - selfState.complete = true; - const { complete, buffer } = otherState; - complete && emit(buffer.length === 0); - sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe(); - }); - return sequenceEqualSubscriber; - }; - source.subscribe(createSubscriber(aState, bState)); - innerFrom(compareTo).subscribe(createSubscriber(bState, aState)); - }); -} -function createState() { - return { - buffer: [], - complete: false, - }; -} -//# sourceMappingURL=sequenceEqual.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sequenceEqual.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sequenceEqual.js.map deleted file mode 100644 index 4d5f853fd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/sequenceEqual.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sequenceEqual.js","sourceRoot":"","sources":["../../../../src/internal/operators/sequenceEqual.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA2DpD,MAAM,UAAU,aAAa,CAC3B,SAA6B,EAC7B,aAAsC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC;IAEvD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAEpC,MAAM,MAAM,GAAG,WAAW,EAAK,CAAC;QAEhC,MAAM,MAAM,GAAG,WAAW,EAAK,CAAC;QAGhC,MAAM,IAAI,GAAG,CAAC,OAAgB,EAAE,EAAE;YAChC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACzB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CAAC;QAOF,MAAM,gBAAgB,GAAG,CAAC,SAA2B,EAAE,UAA4B,EAAE,EAAE;YACrF,MAAM,uBAAuB,GAAG,wBAAwB,CACtD,UAAU,EACV,CAAC,CAAI,EAAE,EAAE;gBACP,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,UAAU,CAAC;gBACxC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;oBAOvB,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;iBACnD;qBAAM;oBAIL,CAAC,UAAU,CAAC,CAAC,EAAE,MAAM,CAAC,KAAK,EAAG,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;iBAChD;YACH,CAAC,EACD,GAAG,EAAE;gBAEH,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC;gBAC1B,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,UAAU,CAAC;gBAKxC,QAAQ,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC;gBAEtC,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,WAAW,EAAE,CAAC;YACzC,CAAC,CACF,CAAC;YAEF,OAAO,uBAAuB,CAAC;QACjC,CAAC,CAAC;QAGF,MAAM,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;QACnD,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,SAAS,WAAW;IAClB,OAAO;QACL,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,KAAK;KAChB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/share.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/share.js deleted file mode 100755 index da778309d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/share.js +++ /dev/null @@ -1,79 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { SafeSubscriber } from '../Subscriber'; -import { operate } from '../util/lift'; -export function share(options = {}) { - const { connector = () => new Subject(), resetOnError = true, resetOnComplete = true, resetOnRefCountZero = true } = options; - return (wrapperSource) => { - let connection; - let resetConnection; - let subject; - let refCount = 0; - let hasCompleted = false; - let hasErrored = false; - const cancelReset = () => { - resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe(); - resetConnection = undefined; - }; - const reset = () => { - cancelReset(); - connection = subject = undefined; - hasCompleted = hasErrored = false; - }; - const resetAndUnsubscribe = () => { - const conn = connection; - reset(); - conn === null || conn === void 0 ? void 0 : conn.unsubscribe(); - }; - return operate((source, subscriber) => { - refCount++; - if (!hasErrored && !hasCompleted) { - cancelReset(); - } - const dest = (subject = subject !== null && subject !== void 0 ? subject : connector()); - subscriber.add(() => { - refCount--; - if (refCount === 0 && !hasErrored && !hasCompleted) { - resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero); - } - }); - dest.subscribe(subscriber); - if (!connection && - refCount > 0) { - connection = new SafeSubscriber({ - next: (value) => dest.next(value), - error: (err) => { - hasErrored = true; - cancelReset(); - resetConnection = handleReset(reset, resetOnError, err); - dest.error(err); - }, - complete: () => { - hasCompleted = true; - cancelReset(); - resetConnection = handleReset(reset, resetOnComplete); - dest.complete(); - }, - }); - innerFrom(source).subscribe(connection); - } - })(wrapperSource); - }; -} -function handleReset(reset, on, ...args) { - if (on === true) { - reset(); - return; - } - if (on === false) { - return; - } - const onSubscriber = new SafeSubscriber({ - next: () => { - onSubscriber.unsubscribe(); - reset(); - }, - }); - return innerFrom(on(...args)).subscribe(onSubscriber); -} -//# sourceMappingURL=share.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/share.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/share.js.map deleted file mode 100644 index 589eff57a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/share.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"share.js","sourceRoot":"","sources":["../../../../src/internal/operators/share.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EA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D,EACpD,GAAG,IAAO;IAEV,IAAI,EAAE,KAAK,IAAI,EAAE;QACf,KAAK,EAAE,CAAC;QACR,OAAO;KACR;IAED,IAAI,EAAE,KAAK,KAAK,EAAE;QAChB,OAAO;KACR;IAED,MAAM,YAAY,GAAG,IAAI,cAAc,CAAC;QACtC,IAAI,EAAE,GAAG,EAAE;YACT,YAAY,CAAC,WAAW,EAAE,CAAC;YAC3B,KAAK,EAAE,CAAC;QACV,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,SAAS,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;AACxD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/shareReplay.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/shareReplay.js deleted file mode 100755 index aaf03bdb9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/shareReplay.js +++ /dev/null @@ -1,19 +0,0 @@ -import { ReplaySubject } from '../ReplaySubject'; -import { share } from './share'; -export function shareReplay(configOrBufferSize, windowTime, scheduler) { - let bufferSize; - let refCount = false; - if (configOrBufferSize && typeof configOrBufferSize === 'object') { - ({ bufferSize = Infinity, windowTime = Infinity, refCount = false, scheduler } = configOrBufferSize); - } - else { - bufferSize = (configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity); - } - return share({ - connector: () => new ReplaySubject(bufferSize, windowTime, scheduler), - resetOnError: true, - resetOnComplete: false, - resetOnRefCountZero: refCount, - }); -} -//# sourceMappingURL=shareReplay.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/shareReplay.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/shareReplay.js.map deleted file mode 100644 index 48a09d0bd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/shareReplay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shareReplay.js","sourceRoot":"","sources":["../../../../src/internal/operators/shareReplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAwJhC,MAAM,UAAU,WAAW,CACzB,kBAA+C,EAC/C,UAAmB,EACnB,SAAyB;IAEzB,IAAI,UAAkB,CAAC;IACvB,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,kBAAkB,IAAI,OAAO,kBAAkB,KAAK,QAAQ,EAAE;QAChE,CAAC,EAAE,UAAU,GAAG,QAAQ,EAAE,UAAU,GAAG,QAAQ,EAAE,QAAQ,GAAG,KAAK,EAAE,SAAS,EAAE,GAAG,kBAAkB,CAAC,CAAC;KACtG;SAAM;QACL,UAAU,GAAG,CAAC,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,QAAQ,CAAW,CAAC;KACzD;IACD,OAAO,KAAK,CAAI;QACd,SAAS,EAAE,GAAG,EAAE,CAAC,IAAI,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC;QACrE,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,mBAAmB,EAAE,QAAQ;KAC9B,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/single.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/single.js deleted file mode 100755 index ccf5ac270..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/single.js +++ /dev/null @@ -1,30 +0,0 @@ -import { EmptyError } from '../util/EmptyError'; -import { SequenceError } from '../util/SequenceError'; -import { NotFoundError } from '../util/NotFoundError'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function single(predicate) { - return operate((source, subscriber) => { - let hasValue = false; - let singleValue; - let seenValue = false; - let index = 0; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - seenValue = true; - if (!predicate || predicate(value, index++, source)) { - hasValue && subscriber.error(new SequenceError('Too many matching values')); - hasValue = true; - singleValue = value; - } - }, () => { - if (hasValue) { - subscriber.next(singleValue); - subscriber.complete(); - } - else { - subscriber.error(seenValue ? new NotFoundError('No matching values') : new EmptyError()); - } - })); - }); -} -//# sourceMappingURL=single.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/single.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/single.js.map deleted file mode 100644 index fe9adb084..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/single.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"single.js","sourceRoot":"","sources":["../../../../src/internal/operators/single.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAiFhE,MAAM,UAAU,MAAM,CAAI,SAAuE;IAC/F,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,WAAc,CAAC;QACnB,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YACR,SAAS,GAAG,IAAI,CAAC;YACjB,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,EAAE;gBACnD,QAAQ,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,0BAA0B,CAAC,CAAC,CAAC;gBAC5E,QAAQ,GAAG,IAAI,CAAC;gBAChB,WAAW,GAAG,KAAK,CAAC;aACrB;QACH,CAAC,EACD,GAAG,EAAE;YACH,IAAI,QAAQ,EAAE;gBACZ,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;gBAC7B,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;iBAAM;gBACL,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;aAC1F;QACH,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skip.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skip.js deleted file mode 100755 index 0b3ef2658..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skip.js +++ /dev/null @@ -1,5 +0,0 @@ -import { filter } from './filter'; -export function skip(count) { - return filter((_, index) => count <= index); -} -//# sourceMappingURL=skip.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skip.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skip.js.map deleted file mode 100644 index 37a3d3b55..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skip.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skip.js","sourceRoot":"","sources":["../../../../src/internal/operators/skip.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAmClC,MAAM,UAAU,IAAI,CAAI,KAAa;IACnC,OAAO,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipLast.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipLast.js deleted file mode 100755 index 5e99e1dec..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipLast.js +++ /dev/null @@ -1,28 +0,0 @@ -import { identity } from '../util/identity'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function skipLast(skipCount) { - return skipCount <= 0 - ? - identity - : operate((source, subscriber) => { - let ring = new Array(skipCount); - let seen = 0; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - const valueIndex = seen++; - if (valueIndex < skipCount) { - ring[valueIndex] = value; - } - else { - const index = valueIndex % skipCount; - const oldValue = ring[index]; - ring[index] = value; - subscriber.next(oldValue); - } - })); - return () => { - ring = null; - }; - }); -} -//# sourceMappingURL=skipLast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipLast.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipLast.js.map deleted file mode 100644 index 9a4b519da..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipLast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipLast.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipLast.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4ChE,MAAM,UAAU,QAAQ,CAAI,SAAiB;IAC3C,OAAO,SAAS,IAAI,CAAC;QACnB,CAAC;YACC,QAAQ;QACV,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAI7B,IAAI,IAAI,GAAQ,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;YAGrC,IAAI,IAAI,GAAG,CAAC,CAAC;YACb,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;gBAK7C,MAAM,UAAU,GAAG,IAAI,EAAE,CAAC;gBAC1B,IAAI,UAAU,GAAG,SAAS,EAAE;oBAI1B,IAAI,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;iBAC1B;qBAAM;oBAIL,MAAM,KAAK,GAAG,UAAU,GAAG,SAAS,CAAC;oBAGrC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC7B,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;oBAKpB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBAC3B;YACH,CAAC,CAAC,CACH,CAAC;YAEF,OAAO,GAAG,EAAE;gBAEV,IAAI,GAAG,IAAK,CAAC;YACf,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipUntil.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipUntil.js deleted file mode 100755 index 9de3cf896..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipUntil.js +++ /dev/null @@ -1,16 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { noop } from '../util/noop'; -export function skipUntil(notifier) { - return operate((source, subscriber) => { - let taking = false; - const skipSubscriber = createOperatorSubscriber(subscriber, () => { - skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe(); - taking = true; - }, noop); - innerFrom(notifier).subscribe(skipSubscriber); - source.subscribe(createOperatorSubscriber(subscriber, (value) => taking && subscriber.next(value))); - }); -} -//# sourceMappingURL=skipUntil.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipUntil.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipUntil.js.map deleted file mode 100644 index 41f7991b3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipUntil.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipUntil.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipUntil.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AA+CpC,MAAM,UAAU,SAAS,CAAI,QAA8B;IACzD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,MAAM,GAAG,KAAK,CAAC;QAEnB,MAAM,cAAc,GAAG,wBAAwB,CAC7C,UAAU,EACV,GAAG,EAAE;YACH,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,WAAW,EAAE,CAAC;YAC9B,MAAM,GAAG,IAAI,CAAC;QAChB,CAAC,EACD,IAAI,CACL,CAAC;QAEF,SAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAE9C,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACtG,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipWhile.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipWhile.js deleted file mode 100755 index 4ce61e231..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipWhile.js +++ /dev/null @@ -1,10 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function skipWhile(predicate) { - return operate((source, subscriber) => { - let taking = false; - let index = 0; - source.subscribe(createOperatorSubscriber(subscriber, (value) => (taking || (taking = !predicate(value, index++))) && subscriber.next(value))); - }); -} -//# sourceMappingURL=skipWhile.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipWhile.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipWhile.js.map deleted file mode 100644 index 09bae37ea..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/skipWhile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipWhile.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipWhile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAiDhE,MAAM,UAAU,SAAS,CAAI,SAA+C;IAC1E,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,MAAM,GAAG,KAAK,CAAC;QACnB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAC7H,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/startWith.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/startWith.js deleted file mode 100755 index 7a3887eb7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/startWith.js +++ /dev/null @@ -1,10 +0,0 @@ -import { concat } from '../observable/concat'; -import { popScheduler } from '../util/args'; -import { operate } from '../util/lift'; -export function startWith(...values) { - const scheduler = popScheduler(values); - return operate((source, subscriber) => { - (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber); - }); -} -//# sourceMappingURL=startWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/startWith.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/startWith.js.map deleted file mode 100644 index 976a00ba9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/startWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"startWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/startWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAuDvC,MAAM,UAAU,SAAS,CAAO,GAAG,MAAW;IAC5C,MAAM,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IACvC,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAIpC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACjG,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js deleted file mode 100755 index 35e23c082..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js +++ /dev/null @@ -1,7 +0,0 @@ -import { operate } from '../util/lift'; -export function subscribeOn(scheduler, delay = 0) { - return operate((source, subscriber) => { - subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay)); - }); -} -//# sourceMappingURL=subscribeOn.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js.map deleted file mode 100644 index 8a70bd5da..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/subscribeOn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subscribeOn.js","sourceRoot":"","sources":["../../../../src/internal/operators/subscribeOn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA6DvC,MAAM,UAAU,WAAW,CAAI,SAAwB,EAAE,QAAgB,CAAC;IACxE,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchAll.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchAll.js deleted file mode 100755 index f0db5993c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchAll.js +++ /dev/null @@ -1,6 +0,0 @@ -import { switchMap } from './switchMap'; -import { identity } from '../util/identity'; -export function switchAll() { - return switchMap(identity); -} -//# sourceMappingURL=switchAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchAll.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchAll.js.map deleted file mode 100644 index f4b643897..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchAll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA4D5C,MAAM,UAAU,SAAS;IACvB,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMap.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMap.js deleted file mode 100755 index 10256d6cd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMap.js +++ /dev/null @@ -1,24 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function switchMap(project, resultSelector) { - return operate((source, subscriber) => { - let innerSubscriber = null; - let index = 0; - let isComplete = false; - const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete(); - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe(); - let innerIndex = 0; - const outerIndex = index++; - innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = createOperatorSubscriber(subscriber, (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), () => { - innerSubscriber = null; - checkComplete(); - }))); - }, () => { - isComplete = true; - checkComplete(); - })); - }); -} -//# sourceMappingURL=switchMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMap.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMap.js.map deleted file mode 100644 index a60c28b88..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchMap.ts"],"names":[],"mappings":"AAEA,OAAO,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L,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js deleted file mode 100755 index 7d1cfb944..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js +++ /dev/null @@ -1,6 +0,0 @@ -import { switchMap } from './switchMap'; -import { isFunction } from '../util/isFunction'; -export function switchMapTo(innerObservable, resultSelector) { - return isFunction(resultSelector) ? switchMap(() => innerObservable, resultSelector) : switchMap(() => innerObservable); -} -//# sourceMappingURL=switchMapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js.map deleted file mode 100644 index 3483daa52..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchMapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchMapTo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAwDhD,MAAM,UAAU,WAAW,CACzB,eAAkB,EAClB,cAA6G;IAE7G,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;AAC1H,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchScan.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchScan.js deleted file mode 100755 index 0013b6dd8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchScan.js +++ /dev/null @@ -1,12 +0,0 @@ -import { switchMap } from './switchMap'; -import { operate } from '../util/lift'; -export function switchScan(accumulator, seed) { - return operate((source, subscriber) => { - let state = seed; - switchMap((value, index) => accumulator(state, value, index), (_, innerValue) => ((state = innerValue), innerValue))(source).subscribe(subscriber); - return () => { - state = null; - }; - }); -} -//# sourceMappingURL=switchScan.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchScan.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchScan.js.map deleted file mode 100644 index bf7328840..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/switchScan.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchScan.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchScan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAqBvC,MAAM,UAAU,UAAU,CACxB,WAAmD,EACnD,IAAO;IAEP,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QAGpC,IAAI,KAAK,GAAG,IAAI,CAAC;QAKjB,SAAS,CAGP,CAAC,KAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAGrD,CAAC,CAAC,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE,UAAU,CAAC,CACtD,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAEhC,OAAO,GAAG,EAAE;YAEV,KAAK,GAAG,IAAK,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/take.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/take.js deleted file mode 100755 index 6319139e4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/take.js +++ /dev/null @@ -1,20 +0,0 @@ -import { EMPTY } from '../observable/empty'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function take(count) { - return count <= 0 - ? - () => EMPTY - : operate((source, subscriber) => { - let seen = 0; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - if (++seen <= count) { - subscriber.next(value); - if (count <= seen) { - subscriber.complete(); - } - } - })); - }); -} -//# sourceMappingURL=take.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/take.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/take.js.map deleted file mode 100644 index d3cc7ac03..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/take.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"take.js","sourceRoot":"","sources":["../../../../src/internal/operators/take.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4ChE,MAAM,UAAU,IAAI,CAAI,KAAa;IACnC,OAAO,KAAK,IAAI,CAAC;QACf,CAAC;YACC,GAAG,EAAE,CAAC,KAAK;QACb,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAC7B,IAAI,IAAI,GAAG,CAAC,CAAC;YACb,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;gBAI7C,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE;oBACnB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAIvB,IAAI,KAAK,IAAI,IAAI,EAAE;wBACjB,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;iBACF;YACH,CAAC,CAAC,CACH,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeLast.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeLast.js deleted file mode 100755 index 089d723e7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeLast.js +++ /dev/null @@ -1,22 +0,0 @@ -import { EMPTY } from '../observable/empty'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function takeLast(count) { - return count <= 0 - ? () => EMPTY - : operate((source, subscriber) => { - let buffer = []; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - buffer.push(value); - count < buffer.length && buffer.shift(); - }, () => { - for (const value of buffer) { - subscriber.next(value); - } - subscriber.complete(); - }, undefined, () => { - buffer = null; - })); - }); -} -//# sourceMappingURL=takeLast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeLast.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeLast.js.map deleted file mode 100644 index 33585c298..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeLast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeLast.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeLast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAyChE,MAAM,UAAU,QAAQ,CAAI,KAAa;IACvC,OAAO,KAAK,IAAI,CAAC;QACf,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK;QACb,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;YAK7B,IAAI,MAAM,GAAQ,EAAE,CAAC;YACrB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;gBAER,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAGnB,KAAK,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YAC1C,CAAC,EACD,GAAG,EAAE;gBAGH,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;oBAC1B,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACxB;gBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,EAED,SAAS,EACT,GAAG,EAAE;gBAEH,MAAM,GAAG,IAAK,CAAC;YACjB,CAAC,CACF,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeUntil.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeUntil.js deleted file mode 100755 index 5913741bd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeUntil.js +++ /dev/null @@ -1,11 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { noop } from '../util/noop'; -export function takeUntil(notifier) { - return operate((source, subscriber) => { - innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop)); - !subscriber.closed && source.subscribe(subscriber); - }); -} -//# sourceMappingURL=takeUntil.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeUntil.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeUntil.js.map deleted file mode 100644 index 818cdacfc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeUntil.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeUntil.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeUntil.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAyCpC,MAAM,UAAU,SAAS,CAAI,QAA8B;IACzD,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,SAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;QACvG,CAAC,UAAU,CAAC,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeWhile.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeWhile.js deleted file mode 100755 index 1884fdac6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeWhile.js +++ /dev/null @@ -1,13 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function takeWhile(predicate, inclusive = false) { - return operate((source, subscriber) => { - let index = 0; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - const result = predicate(value, index++); - (result || inclusive) && subscriber.next(value); - !result && subscriber.complete(); - })); - }); -} -//# sourceMappingURL=takeWhile.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeWhile.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeWhile.js.map deleted file mode 100644 index 7b83c9d92..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/takeWhile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeWhile.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeWhile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAoDhE,MAAM,UAAU,SAAS,CAAI,SAA+C,EAAE,SAAS,GAAG,KAAK;IAC7F,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;YAC7C,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;YACzC,CAAC,MAAM,IAAI,SAAS,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAChD,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACnC,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/tap.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/tap.js deleted file mode 100755 index 96d1832cb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/tap.js +++ /dev/null @@ -1,40 +0,0 @@ -import { isFunction } from '../util/isFunction'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { identity } from '../util/identity'; -export function tap(observerOrNext, error, complete) { - const tapObserver = isFunction(observerOrNext) || error || complete - ? - { next: observerOrNext, error, complete } - : observerOrNext; - return tapObserver - ? operate((source, subscriber) => { - var _a; - (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - let isUnsub = true; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - var _a; - (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value); - subscriber.next(value); - }, () => { - var _a; - isUnsub = false; - (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - subscriber.complete(); - }, (err) => { - var _a; - isUnsub = false; - (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err); - subscriber.error(err); - }, () => { - var _a, _b; - if (isUnsub) { - (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - } - (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver); - })); - }) - : - identity; -} -//# sourceMappingURL=tap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/tap.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/tap.js.map deleted file mode 100644 index 549b69d2d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/tap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tap.js","sourceRoot":"","sources":["../../../../src/internal/operators/tap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAkK5C,MAAM,UAAU,GAAG,CACjB,cAAsE,EACtE,KAAiC,EACjC,QAA8B;IAK9B,MAAM,WAAW,GACf,UAAU,CAAC,cAAc,CAAC,IAAI,KAAK,IAAI,QAAQ;QAC7C,CAAC;YACE,EAAE,IAAI,EAAE,cAAyE,EAAE,KAAK,EAAE,QAAQ,EAA8B;QACnI,CAAC,CAAC,cAAc,CAAC;IAErB,OAAO,WAAW;QAChB,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;;YAC7B,MAAA,WAAW,CAAC,SAAS,+CAArB,WAAW,CAAc,CAAC;YAC1B,IAAI,OAAO,GAAG,IAAI,CAAC;YACnB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;;gBACR,MAAA,WAAW,CAAC,IAAI,+CAAhB,WAAW,EAAQ,KAAK,CAAC,CAAC;gBAC1B,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzB,CAAC,EACD,GAAG,EAAE;;gBACH,OAAO,GAAG,KAAK,CAAC;gBAChB,MAAA,WAAW,CAAC,QAAQ,+CAApB,WAAW,CAAa,CAAC;gBACzB,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,EACD,CAAC,GAAG,EAAE,EAAE;;gBACN,OAAO,GAAG,KAAK,CAAC;gBAChB,MAAA,WAAW,CAAC,KAAK,+CAAjB,WAAW,EAAS,GAAG,CAAC,CAAC;gBACzB,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC,EACD,GAAG,EAAE;;gBACH,IAAI,OAAO,EAAE;oBACX,MAAA,WAAW,CAAC,WAAW,+CAAvB,WAAW,CAAgB,CAAC;iBAC7B;gBACD,MAAA,WAAW,CAAC,QAAQ,+CAApB,WAAW,CAAa,CAAC;YAC3B,CAAC,CACF,CACF,CAAC;QACJ,CAAC,CAAC;QACJ,CAAC;YAGC,QAAQ,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttle.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttle.js deleted file mode 100755 index 704be4b2e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttle.js +++ /dev/null @@ -1,43 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function throttle(durationSelector, config) { - return operate((source, subscriber) => { - const { leading = true, trailing = false } = config !== null && config !== void 0 ? config : {}; - let hasValue = false; - let sendValue = null; - let throttled = null; - let isComplete = false; - const endThrottling = () => { - throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe(); - throttled = null; - if (trailing) { - send(); - isComplete && subscriber.complete(); - } - }; - const cleanupThrottling = () => { - throttled = null; - isComplete && subscriber.complete(); - }; - const startThrottle = (value) => (throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling))); - const send = () => { - if (hasValue) { - hasValue = false; - const value = sendValue; - sendValue = null; - subscriber.next(value); - !isComplete && startThrottle(value); - } - }; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - hasValue = true; - sendValue = value; - !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value)); - }, () => { - isComplete = true; - !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete(); - })); - }); -} -//# sourceMappingURL=throttle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttle.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttle.js.map deleted file mode 100644 index e79ba8d2c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../../../src/internal/operators/throttle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA8EpD,MAAM,UAAU,QAAQ,CAAI,gBAAoD,EAAE,MAAuB;IACvG,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,EAAE,OAAO,GAAG,IAAI,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAC;QAC1D,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,SAAS,GAAa,IAAI,CAA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aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;QACjF,CAAC,EACD,GAAG,EAAE;YACH,UAAU,GAAG,IAAI,CAAC;YAClB,CAAC,CAAC,QAAQ,IAAI,QAAQ,IAAI,SAAS,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACrF,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttleTime.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttleTime.js deleted file mode 100755 index 4398d507a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttleTime.js +++ /dev/null @@ -1,8 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { throttle } from './throttle'; -import { timer } from '../observable/timer'; -export function throttleTime(duration, scheduler = asyncScheduler, config) { - const duration$ = timer(duration, scheduler); - return throttle(() => duration$, config); -} -//# sourceMappingURL=throttleTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttleTime.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttleTime.js.map deleted file mode 100644 index 67c3997d8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throttleTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throttleTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/throttleTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAkB,MAAM,YAAY,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAmD5C,MAAM,UAAU,YAAY,CAC1B,QAAgB,EAChB,YAA2B,cAAc,EACzC,MAAuB;IAEvB,MAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC7C,OAAO,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js deleted file mode 100755 index ca881bd7a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js +++ /dev/null @@ -1,16 +0,0 @@ -import { EmptyError } from '../util/EmptyError'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function throwIfEmpty(errorFactory = defaultErrorFactory) { - return operate((source, subscriber) => { - let hasValue = false; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - hasValue = true; - subscriber.next(value); - }, () => (hasValue ? subscriber.complete() : subscriber.error(errorFactory())))); - }); -} -function defaultErrorFactory() { - return new EmptyError(); -} -//# sourceMappingURL=throwIfEmpty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js.map deleted file mode 100644 index ba28c324f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/throwIfEmpty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwIfEmpty.js","sourceRoot":"","sources":["../../../../src/internal/operators/throwIfEmpty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAsChE,MAAM,UAAU,YAAY,CAAI,eAA0B,mBAAmB;IAC3E,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE;YACR,QAAQ,GAAG,IAAI,CAAC;YAChB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,EACD,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,CAC5E,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO,IAAI,UAAU,EAAE,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeInterval.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeInterval.js deleted file mode 100755 index 3f93bf74e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeInterval.js +++ /dev/null @@ -1,21 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function timeInterval(scheduler = asyncScheduler) { - return operate((source, subscriber) => { - let last = scheduler.now(); - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - const now = scheduler.now(); - const interval = now - last; - last = now; - subscriber.next(new TimeInterval(value, interval)); - })); - }); -} -export class TimeInterval { - constructor(value, interval) { - this.value = value; - this.interval = interval; - } -} -//# sourceMappingURL=timeInterval.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeInterval.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeInterval.js.map deleted file mode 100644 index c1e0b6056..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeInterval.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeInterval.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAyChE,MAAM,UAAU,YAAY,CAAI,YAA2B,cAAc;IACvE,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;QAC3B,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,CAAC,KAAK,EAAE,EAAE;YAC7C,MAAM,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;YAC5B,MAAM,QAAQ,GAAG,GAAG,GAAG,IAAI,CAAC;YAC5B,IAAI,GAAG,GAAG,CAAC;YACX,UAAU,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACrD,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAKD,MAAM,OAAO,YAAY;IAIvB,YAAmB,KAAQ,EAAS,QAAgB;QAAjC,UAAK,GAAL,KAAK,CAAG;QAAS,aAAQ,GAAR,QAAQ,CAAQ;IAAG,CAAC;CACzD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeout.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeout.js deleted file mode 100755 index 354446170..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeout.js +++ /dev/null @@ -1,56 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { isValidDate } from '../util/isDate'; -import { operate } from '../util/lift'; -import { innerFrom } from '../observable/innerFrom'; -import { createErrorClass } from '../util/createErrorClass'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { executeSchedule } from '../util/executeSchedule'; -export const TimeoutError = createErrorClass((_super) => function TimeoutErrorImpl(info = null) { - _super(this); - this.message = 'Timeout has occurred'; - this.name = 'TimeoutError'; - this.info = info; -}); -export function timeout(config, schedulerArg) { - const { first, each, with: _with = timeoutErrorFactory, scheduler = schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : asyncScheduler, meta = null, } = (isValidDate(config) ? { first: config } : typeof config === 'number' ? { each: config } : config); - if (first == null && each == null) { - throw new TypeError('No timeout provided.'); - } - return operate((source, subscriber) => { - let originalSourceSubscription; - let timerSubscription; - let lastValue = null; - let seen = 0; - const startTimer = (delay) => { - timerSubscription = executeSchedule(subscriber, scheduler, () => { - try { - originalSourceSubscription.unsubscribe(); - innerFrom(_with({ - meta, - lastValue, - seen, - })).subscribe(subscriber); - } - catch (err) { - subscriber.error(err); - } - }, delay); - }; - originalSourceSubscription = source.subscribe(createOperatorSubscriber(subscriber, (value) => { - timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); - seen++; - subscriber.next((lastValue = value)); - each > 0 && startTimer(each); - }, undefined, undefined, () => { - if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) { - timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); - } - lastValue = null; - })); - !seen && startTimer(first != null ? (typeof first === 'number' ? first : +first - scheduler.now()) : each); - }); -} -function timeoutErrorFactory(info) { - throw new TimeoutError(info); -} -//# sourceMappingURL=timeout.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeout.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeout.js.map deleted file mode 100644 index fea4b6c8b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeout.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeout.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO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K,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,SAAU,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,IAAK,CAAC,CAAC;IAC/G,CAAC,CAAC,CAAC;AACL,CAAC;AAOD,SAAS,mBAAmB,CAAC,IAAsB;IACjD,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js deleted file mode 100755 index 7016ce103..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js +++ /dev/null @@ -1,31 +0,0 @@ -import { async } from '../scheduler/async'; -import { isValidDate } from '../util/isDate'; -import { timeout } from './timeout'; -export function timeoutWith(due, withObservable, scheduler) { - let first; - let each; - let _with; - scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async; - if (isValidDate(due)) { - first = due; - } - else if (typeof due === 'number') { - each = due; - } - if (withObservable) { - _with = () => withObservable; - } - else { - throw new TypeError('No observable provided to switch to'); - } - if (first == null && each == null) { - throw new TypeError('No timeout provided.'); - } - return timeout({ - first, - each, - scheduler, - with: _with, - }); -} -//# sourceMappingURL=timeoutWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js.map deleted file mode 100644 index 76cfe45ba..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timeoutWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeoutWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeoutWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+EpC,MAAM,UAAU,WAAW,CACzB,GAAkB,EAClB,cAAkC,EAClC,SAAyB;IAEzB,IAAI,KAAgC,CAAC;IACrC,IAAI,IAAwB,CAAC;IAC7B,IAAI,KAA+B,CAAC;IACpC,SAAS,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,KAAK,CAAC;IAE/B,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;QACpB,KAAK,GAAG,GAAG,CAAC;KACb;SAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAClC,IAAI,GAAG,GAAG,CAAC;KACZ;IAED,IAAI,cAAc,EAAE;QAClB,KAAK,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC;KAC9B;SAAM;QACL,MAAM,IAAI,SAAS,CAAC,qCAAqC,CAAC,CAAC;KAC5D;IAED,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE;QAEjC,MAAM,IAAI,SAAS,CAAC,sBAAsB,CAAC,CAAC;KAC7C;IAED,OAAO,OAAO,CAAwB;QACpC,KAAK;QACL,IAAI;QACJ,SAAS;QACT,IAAI,EAAE,KAAK;KACZ,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timestamp.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timestamp.js deleted file mode 100755 index b96206e99..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timestamp.js +++ /dev/null @@ -1,6 +0,0 @@ -import { dateTimestampProvider } from '../scheduler/dateTimestampProvider'; -import { map } from './map'; -export function timestamp(timestampProvider = dateTimestampProvider) { - return map((value) => ({ value, timestamp: timestampProvider.now() })); -} -//# sourceMappingURL=timestamp.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timestamp.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timestamp.js.map deleted file mode 100644 index 1b623c9cc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/timestamp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../src/internal/operators/timestamp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAkC5B,MAAM,UAAU,SAAS,CAAI,oBAAuC,qBAAqB;IACvF,OAAO,GAAG,CAAC,CAAC,KAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,iBAAiB,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;AAC5E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/toArray.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/toArray.js deleted file mode 100755 index 01b9a1f33..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/toArray.js +++ /dev/null @@ -1,9 +0,0 @@ -import { reduce } from './reduce'; -import { operate } from '../util/lift'; -const arrReducer = (arr, value) => (arr.push(value), arr); -export function toArray() { - return operate((source, subscriber) => { - reduce(arrReducer, [])(source).subscribe(subscriber); - }); -} -//# sourceMappingURL=toArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/toArray.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/toArray.js.map deleted file mode 100644 index 745c86505..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/toArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toArray.js","sourceRoot":"","sources":["../../../../src/internal/operators/toArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,UAAU,GAAG,CAAC,GAAU,EAAE,KAAU,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC;AAgCtE,MAAM,UAAU,OAAO;IAIrB,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,MAAM,CAAC,UAAU,EAAE,EAAS,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/window.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/window.js deleted file mode 100755 index 0cd28da07..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/window.js +++ /dev/null @@ -1,28 +0,0 @@ -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { innerFrom } from '../observable/innerFrom'; -export function window(windowBoundaries) { - return operate((source, subscriber) => { - let windowSubject = new Subject(); - subscriber.next(windowSubject.asObservable()); - const errorHandler = (err) => { - windowSubject.error(err); - subscriber.error(err); - }; - source.subscribe(createOperatorSubscriber(subscriber, (value) => windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value), () => { - windowSubject.complete(); - subscriber.complete(); - }, errorHandler)); - innerFrom(windowBoundaries).subscribe(createOperatorSubscriber(subscriber, () => { - windowSubject.complete(); - subscriber.next((windowSubject = new Subject())); - }, noop, errorHandler)); - return () => { - windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe(); - windowSubject = null; - }; - }); -} -//# sourceMappingURL=window.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/window.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/window.js.map deleted file mode 100644 index 0f7885ce0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/window.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"window.js","sourceRoot":"","sources":["../../../../src/internal/operators/window.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA8CpD,MAAM,UAAU,MAAM,CAAI,gBAAsC;IAC9D,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,IAAI,aAAa,GAAe,IAAI,OAAO,EAAK,CAAC;QAEjD,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,CAAC,CAAC;QAE9C,MAAM,YAAY,GAAG,CAAC,GAAQ,EAAE,EAAE;YAChC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACzB,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC,CAAC;QAGF,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAK,EAAE,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAI,CAAC,KAAK,CAAC,EACrC,GAAG,EAAE;YACH,aAAa,CAAC,QAAQ,EAAE,CAAC;YACzB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,YAAY,CACb,CACF,CAAC;QAGF,SAAS,CAAC,gBAAgB,CAAC,CAAC,SAAS,CACnC,wBAAwB,CACtB,UAAU,EACV,GAAG,EAAE;YACH,aAAa,CAAC,QAAQ,EAAE,CAAC;YACzB,UAAU,CAAC,IAAI,CAAC,CAAC,aAAa,GAAG,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC;QACnD,CAAC,EACD,IAAI,EACJ,YAAY,CACb,CACF,CAAC;QAEF,OAAO,GAAG,EAAE;YAIV,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,WAAW,EAAE,CAAC;YAC7B,aAAa,GAAG,IAAK,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowCount.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowCount.js deleted file mode 100755 index 6597452d7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowCount.js +++ /dev/null @@ -1,40 +0,0 @@ -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function windowCount(windowSize, startWindowEvery = 0) { - const startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize; - return operate((source, subscriber) => { - let windows = [new Subject()]; - let starts = []; - let count = 0; - subscriber.next(windows[0].asObservable()); - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - for (const window of windows) { - window.next(value); - } - const c = count - windowSize + 1; - if (c >= 0 && c % startEvery === 0) { - windows.shift().complete(); - } - if (++count % startEvery === 0) { - const window = new Subject(); - windows.push(window); - subscriber.next(window.asObservable()); - } - }, () => { - while (windows.length > 0) { - windows.shift().complete(); - } - subscriber.complete(); - }, (err) => { - while (windows.length > 0) { - windows.shift().error(err); - } - subscriber.error(err); - }, () => { - starts = null; - windows = null; - })); - }); -} -//# sourceMappingURL=windowCount.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowCount.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowCount.js.map deleted file mode 100644 index 45668a294..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowCount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowCount.ts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E;YACH,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,QAAQ,EAAE,CAAC;aAC7B;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,CAAC,GAAG,EAAE,EAAE;YACN,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAC7B;YACD,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC,EACD,GAAG,EAAE;YACH,MAAM,GAAG,IAAK,CAAC;YACf,OAAO,GAAG,IAAK,CAAC;QAClB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowTime.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowTime.js deleted file mode 100755 index eb37ebbb7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowTime.js +++ /dev/null @@ -1,63 +0,0 @@ -import { Subject } from '../Subject'; -import { asyncScheduler } from '../scheduler/async'; -import { Subscription } from '../Subscription'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { arrRemove } from '../util/arrRemove'; -import { popScheduler } from '../util/args'; -import { executeSchedule } from '../util/executeSchedule'; -export function windowTime(windowTimeSpan, ...otherArgs) { - var _a, _b; - const scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler; - const windowCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null; - const maxWindowSize = otherArgs[1] || Infinity; - return operate((source, subscriber) => { - let windowRecords = []; - let restartOnClose = false; - const closeWindow = (record) => { - const { window, subs } = record; - window.complete(); - subs.unsubscribe(); - arrRemove(windowRecords, record); - restartOnClose && startWindow(); - }; - const startWindow = () => { - if (windowRecords) { - const subs = new Subscription(); - subscriber.add(subs); - const window = new Subject(); - const record = { - window, - subs, - seen: 0, - }; - windowRecords.push(record); - subscriber.next(window.asObservable()); - executeSchedule(subs, scheduler, () => closeWindow(record), windowTimeSpan); - } - }; - if (windowCreationInterval !== null && windowCreationInterval >= 0) { - executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true); - } - else { - restartOnClose = true; - } - startWindow(); - const loop = (cb) => windowRecords.slice().forEach(cb); - const terminate = (cb) => { - loop(({ window }) => cb(window)); - cb(subscriber); - subscriber.unsubscribe(); - }; - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - loop((record) => { - record.window.next(value); - maxWindowSize <= ++record.seen && closeWindow(record); - }); - }, () => terminate((consumer) => consumer.complete()), (err) => terminate((consumer) => consumer.error(err)))); - return () => { - windowRecords = null; - }; - }); -} -//# sourceMappingURL=windowTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowTime.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowTime.js.map deleted file mode 100644 index f2ef41e73..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB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L,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowToggle.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowToggle.js deleted file mode 100755 index d7c27fbeb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowToggle.js +++ /dev/null @@ -1,54 +0,0 @@ -import { Subject } from '../Subject'; -import { Subscription } from '../Subscription'; -import { operate } from '../util/lift'; -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { arrRemove } from '../util/arrRemove'; -export function windowToggle(openings, closingSelector) { - return operate((source, subscriber) => { - const windows = []; - const handleError = (err) => { - while (0 < windows.length) { - windows.shift().error(err); - } - subscriber.error(err); - }; - innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, (openValue) => { - const window = new Subject(); - windows.push(window); - const closingSubscription = new Subscription(); - const closeWindow = () => { - arrRemove(windows, window); - window.complete(); - closingSubscription.unsubscribe(); - }; - let closingNotifier; - try { - closingNotifier = innerFrom(closingSelector(openValue)); - } - catch (err) { - handleError(err); - return; - } - subscriber.next(window.asObservable()); - closingSubscription.add(closingNotifier.subscribe(createOperatorSubscriber(subscriber, closeWindow, noop, handleError))); - }, noop)); - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - const windowsCopy = windows.slice(); - for (const window of windowsCopy) { - window.next(value); - } - }, () => { - while (0 < windows.length) { - windows.shift().complete(); - } - subscriber.complete(); - }, handleError, () => { - while (0 < windows.length) { - windows.shift().unsubscribe(); - } - })); - }); -} -//# sourceMappingURL=windowToggle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowToggle.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowToggle.js.map deleted file mode 100644 index a5cc88f88..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowToggle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"window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AC;YAEF,IAAI,eAAgC,CAAC;YACrC,IAAI;gBACF,eAAe,GAAG,SAAS,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC;aACzD;YAAC,OAAO,GAAG,EAAE;gBACZ,WAAW,CAAC,GAAG,CAAC,CAAC;gBACjB,OAAO;aACR;YAED,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC,CAAC;YAEvC,mBAAmB,CAAC,GAAG,CAAC,eAAe,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;QAC3H,CAAC,EACD,IAAI,CACL,CACF,CAAC;QAGF,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,CAAC,KAAQ,EAAE,EAAE;YAGX,MAAM,WAAW,GAAG,OAAO,CAAC,KAAK,EAAE,CAAC;YACpC,KAAK,MAAM,MAAM,IAAI,WAAW,EAAE;gBAChC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACpB;QACH,CAAC,EACD,GAAG,EAAE;YAEH,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,QAAQ,EAAE,CAAC;aAC7B;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,WAAW,EACX,GAAG,EAAE;YAMH,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,WAAW,EAAE,CAAC;aAChC;QACH,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowWhen.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowWhen.js deleted file mode 100755 index 10e4972e1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowWhen.js +++ /dev/null @@ -1,38 +0,0 @@ -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function windowWhen(closingSelector) { - return operate((source, subscriber) => { - let window; - let closingSubscriber; - const handleError = (err) => { - window.error(err); - subscriber.error(err); - }; - const openWindow = () => { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - window === null || window === void 0 ? void 0 : window.complete(); - window = new Subject(); - subscriber.next(window.asObservable()); - let closingNotifier; - try { - closingNotifier = innerFrom(closingSelector()); - } - catch (err) { - handleError(err); - return; - } - closingNotifier.subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openWindow, openWindow, handleError))); - }; - openWindow(); - source.subscribe(createOperatorSubscriber(subscriber, (value) => window.next(value), () => { - window.complete(); - subscriber.complete(); - }, handleError, () => { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - window = null; - })); - }); -} -//# sourceMappingURL=windowWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowWhen.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowWhen.js.map deleted file mode 100644 index 486bcec3d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/windowWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowWhen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA8CpD,MAAM,UAAU,UAAU,CAAI,eAA2C;IACvE,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU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C,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js deleted file mode 100755 index 94a481155..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js +++ /dev/null @@ -1,31 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { identity } from '../util/identity'; -import { noop } from '../util/noop'; -import { popResultSelector } from '../util/args'; -export function withLatestFrom(...inputs) { - const project = popResultSelector(inputs); - return operate((source, subscriber) => { - const len = inputs.length; - const otherValues = new Array(len); - let hasValue = inputs.map(() => false); - let ready = false; - for (let i = 0; i < len; i++) { - innerFrom(inputs[i]).subscribe(createOperatorSubscriber(subscriber, (value) => { - otherValues[i] = value; - if (!ready && !hasValue[i]) { - hasValue[i] = true; - (ready = hasValue.every(identity)) && (hasValue = null); - } - }, noop)); - } - source.subscribe(createOperatorSubscriber(subscriber, (value) => { - if (ready) { - const values = [value, ...otherValues]; - subscriber.next(project ? project(...values) : values); - } - })); - }); -} -//# sourceMappingURL=withLatestFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js.map deleted file mode 100644 index b1ef97134..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/withLatestFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"withLatestFrom.js","sourceRoot":"","sources":["../../../../src/internal/operators/withLatestFrom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAA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AAC,KAAK,EAAE,GAAG,WAAW,CAAC,CAAC;gBACvC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;aACxD;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zip.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zip.js deleted file mode 100755 index 39709edda..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zip.js +++ /dev/null @@ -1,8 +0,0 @@ -import { zip as zipStatic } from '../observable/zip'; -import { operate } from '../util/lift'; -export function zip(...sources) { - return operate((source, subscriber) => { - zipStatic(source, ...sources).subscribe(subscriber); - }); -} -//# sourceMappingURL=zip.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zip.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zip.js.map deleted file mode 100644 index 59aadb9db..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zip.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zip.js","sourceRoot":"","sources":["../../../../src/internal/operators/zip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAmBvC,MAAM,UAAU,GAAG,CAAO,GAAG,OAAqE;IAChG,OAAO,OAAO,CAAC,CAAC,MAAM,EAAE,UAAU,EAAE,EAAE;QACpC,SAAS,CAAC,MAA8B,EAAE,GAAI,OAAuC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC/G,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipAll.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipAll.js deleted file mode 100755 index c3faf7e2b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipAll.js +++ /dev/null @@ -1,6 +0,0 @@ -import { zip } from '../observable/zip'; -import { joinAllInternals } from './joinAllInternals'; -export function zipAll(project) { - return joinAllInternals(zip, project); -} -//# sourceMappingURL=zipAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipAll.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipAll.js.map deleted file mode 100644 index 92c858ebe..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zipAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/zipAll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAetD,MAAM,UAAU,MAAM,CAAO,OAA+B;IAC1D,OAAO,gBAAgB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipWith.js b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipWith.js deleted file mode 100755 index 102d36201..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipWith.js +++ /dev/null @@ -1,5 +0,0 @@ -import { zip } from './zip'; -export function zipWith(...otherInputs) { - return zip(...otherInputs); -} -//# sourceMappingURL=zipWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipWith.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipWith.js.map deleted file mode 100644 index 2949854f6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/operators/zipWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zipWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/zipWith.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAyB5B,MAAM,UAAU,OAAO,CAAkC,GAAG,WAAyC;IACnG,OAAO,GAAG,CAAC,GAAG,WAAW,CAAC,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js deleted file mode 100755 index ea7b5cbe9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js +++ /dev/null @@ -1,18 +0,0 @@ -import { Observable } from '../Observable'; -export function scheduleArray(input, scheduler) { - return new Observable((subscriber) => { - let i = 0; - return scheduler.schedule(function () { - if (i === input.length) { - subscriber.complete(); - } - else { - subscriber.next(input[i++]); - if (!subscriber.closed) { - this.schedule(); - } - } - }); - }); -} -//# sourceMappingURL=scheduleArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js.map deleted file mode 100644 index b14139b58..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleArray.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,UAAU,aAAa,CAAI,KAAmB,EAAE,SAAwB;IAC5E,OAAO,IAAI,UAAU,CAAI,CAAC,UAAU,EAAE,EAAE;QAEtC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEV,OAAO,SAAS,CAAC,QAAQ,CAAC;YACxB,IAAI,CAAC,KAAK,KAAK,CAAC,MAAM,EAAE;gBAGtB,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;iBAAM;gBAGL,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAI5B,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;oBACtB,IAAI,CAAC,QAAQ,EAAE,CAAC;iBACjB;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js deleted file mode 100755 index 2ab8199f3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js +++ /dev/null @@ -1,23 +0,0 @@ -import { Observable } from '../Observable'; -import { executeSchedule } from '../util/executeSchedule'; -export function scheduleAsyncIterable(input, scheduler) { - if (!input) { - throw new Error('Iterable cannot be null'); - } - return new Observable((subscriber) => { - executeSchedule(subscriber, scheduler, () => { - const iterator = input[Symbol.asyncIterator](); - executeSchedule(subscriber, scheduler, () => { - iterator.next().then((result) => { - if (result.done) { - subscriber.complete(); - } - else { - subscriber.next(result.value); - } - }); - }, 0, true); - }); - }); -} -//# sourceMappingURL=scheduleAsyncIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js.map deleted file mode 100644 index 80005cd82..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleAsyncIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleAsyncIterable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleAsyncIterable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,UAAU,qBAAqB,CAAI,KAAuB,EAAE,SAAwB;IACxF,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC5C;IACD,OAAO,IAAI,UAAU,CAAI,CAAC,UAAU,EAAE,EAAE;QACtC,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE;YAC1C,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;YAC/C,eAAe,CACb,UAAU,EACV,SAAS,EACT,GAAG,EAAE;gBACH,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;oBAC9B,IAAI,MAAM,CAAC,IAAI,EAAE;wBAGf,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;yBAAM;wBACL,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;qBAC/B;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,EACD,CAAC,EACD,IAAI,CACL,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js deleted file mode 100755 index c4f6236e8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js +++ /dev/null @@ -1,31 +0,0 @@ -import { Observable } from '../Observable'; -import { iterator as Symbol_iterator } from '../symbol/iterator'; -import { isFunction } from '../util/isFunction'; -import { executeSchedule } from '../util/executeSchedule'; -export function scheduleIterable(input, scheduler) { - return new Observable((subscriber) => { - let iterator; - executeSchedule(subscriber, scheduler, () => { - iterator = input[Symbol_iterator](); - executeSchedule(subscriber, scheduler, () => { - let value; - let done; - try { - ({ value, done } = iterator.next()); - } - catch (err) { - subscriber.error(err); - return; - } - if (done) { - subscriber.complete(); - } - else { - subscriber.next(value); - } - }, 0, true); - }); - return () => isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return(); - }); -} -//# sourceMappingURL=scheduleIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js.map deleted file mode 100644 index 16ebd84da..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleIterable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAO1D,MAAM,UAAU,gBAAgB,CAAI,KAAkB,EAAE,SAAwB;IAC9E,OAAO,IAAI,UAAU,CAAI,CAAC,UAAU,EAAE,EAAE;QACtC,IAAI,QAAwB,CAAC;QAK7B,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,EAAE;YAE1C,QAAQ,GAAI,KAAa,CAAC,eAAe,CAAC,EAAE,CAAC;YAE7C,eAAe,CACb,UAAU,EACV,SAAS,EACT,GAAG,EAAE;gBACH,IAAI,KAAQ,CAAC;gBACb,IAAI,IAAyB,CAAC;gBAC9B,IAAI;oBAEF,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;iBACrC;gBAAC,OAAO,GAAG,EAAE;oBAEZ,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACtB,OAAO;iBACR;gBAED,IAAI,IAAI,EAAE;oBAKR,UAAU,CAAC,QAAQ,EAAE,CAAC;iBACvB;qBAAM;oBAEL,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACxB;YACH,CAAC,EACD,CAAC,EACD,IAAI,CACL,CAAC;QACJ,CAAC,CAAC,CAAC;QAMH,OAAO,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;IACjE,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js deleted file mode 100755 index 979b0091b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js +++ /dev/null @@ -1,7 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { observeOn } from '../operators/observeOn'; -import { subscribeOn } from '../operators/subscribeOn'; -export function scheduleObservable(input, scheduler) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); -} -//# sourceMappingURL=scheduleObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js.map deleted file mode 100644 index 20100503c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleObservable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,MAAM,UAAU,kBAAkB,CAAI,KAA2B,EAAE,SAAwB;IACzF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;AAC7E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js deleted file mode 100755 index 287c986a0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js +++ /dev/null @@ -1,7 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { observeOn } from '../operators/observeOn'; -import { subscribeOn } from '../operators/subscribeOn'; -export function schedulePromise(input, scheduler) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); -} -//# sourceMappingURL=schedulePromise.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js.map deleted file mode 100644 index 8da74adb8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/schedulePromise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"schedulePromise.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/schedulePromise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,MAAM,UAAU,eAAe,CAAI,KAAqB,EAAE,SAAwB;IAChF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;AAC7E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js deleted file mode 100755 index 4bfbfc298..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js +++ /dev/null @@ -1,6 +0,0 @@ -import { scheduleAsyncIterable } from './scheduleAsyncIterable'; -import { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike'; -export function scheduleReadableStreamLike(input, scheduler) { - return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler); -} -//# sourceMappingURL=scheduleReadableStreamLike.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js.map deleted file mode 100644 index 6026c9028..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduleReadableStreamLike.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleReadableStreamLike.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleReadableStreamLike.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AAElF,MAAM,UAAU,0BAA0B,CAAI,KAA4B,EAAE,SAAwB;IAClG,OAAO,qBAAqB,CAAC,kCAAkC,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;AACrF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js deleted file mode 100755 index 3ed108513..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js +++ /dev/null @@ -1,37 +0,0 @@ -import { scheduleObservable } from './scheduleObservable'; -import { schedulePromise } from './schedulePromise'; -import { scheduleArray } from './scheduleArray'; -import { scheduleIterable } from './scheduleIterable'; -import { scheduleAsyncIterable } from './scheduleAsyncIterable'; -import { isInteropObservable } from '../util/isInteropObservable'; -import { isPromise } from '../util/isPromise'; -import { isArrayLike } from '../util/isArrayLike'; -import { isIterable } from '../util/isIterable'; -import { isAsyncIterable } from '../util/isAsyncIterable'; -import { createInvalidObservableTypeError } from '../util/throwUnobservableError'; -import { isReadableStreamLike } from '../util/isReadableStreamLike'; -import { scheduleReadableStreamLike } from './scheduleReadableStreamLike'; -export function scheduled(input, scheduler) { - if (input != null) { - if (isInteropObservable(input)) { - return scheduleObservable(input, scheduler); - } - if (isArrayLike(input)) { - return scheduleArray(input, scheduler); - } - if (isPromise(input)) { - return schedulePromise(input, scheduler); - } - if (isAsyncIterable(input)) { - return scheduleAsyncIterable(input, scheduler); - } - if (isIterable(input)) { - return scheduleIterable(input, scheduler); - } - if (isReadableStreamLike(input)) { - return scheduleReadableStreamLike(input, scheduler); - } - } - throw createInvalidObservableTypeError(input); -} -//# sourceMappingURL=scheduled.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js.map deleted file mode 100644 index 635593196..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduled/scheduled.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduled.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC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C;AAChD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/Action.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/Action.js deleted file mode 100755 index 4ded474fe..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/Action.js +++ /dev/null @@ -1,10 +0,0 @@ -import { Subscription } from '../Subscription'; -export class Action extends Subscription { - constructor(scheduler, work) { - super(); - } - schedule(state, delay = 0) { - return this; - } -} -//# sourceMappingURL=Action.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/Action.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/Action.js.map deleted file mode 100644 index 811a949c3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/Action.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/Action.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAiB/C,MAAM,OAAO,MAAU,SAAQ,YAAY;IACzC,YAAY,SAAoB,EAAE,IAAmD;QACnF,KAAK,EAAE,CAAC;IACV,CAAC;IAWM,QAAQ,CAAC,KAAS,EAAE,QAAgB,CAAC;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js deleted file mode 100755 index 3e550afb1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js +++ /dev/null @@ -1,29 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { animationFrameProvider } from './animationFrameProvider'; -export class AnimationFrameAction extends AsyncAction { - constructor(scheduler, work) { - super(scheduler, work); - this.scheduler = scheduler; - this.work = work; - } - requestAsyncId(scheduler, id, delay = 0) { - if (delay !== null && delay > 0) { - return super.requestAsyncId(scheduler, id, delay); - } - scheduler.actions.push(this); - return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(() => scheduler.flush(undefined))); - } - recycleAsyncId(scheduler, id, delay = 0) { - var _a; - if (delay != null ? delay > 0 : this.delay > 0) { - return super.recycleAsyncId(scheduler, id, delay); - } - const { actions } = scheduler; - if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) { - animationFrameProvider.cancelAnimationFrame(id); - scheduler._scheduled = undefined; - } - return undefined; - } -} -//# sourceMappingURL=AnimationFrameAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js.map deleted file mode 100644 index fbef604b4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameAction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AnimationFrameAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AnimationFrameAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,MAAM,OAAO,oBAAwB,SAAQ,WAAc;IACzD,YAAsB,SAAkC,EAAY,IAAmD;QACrH,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QADH,cAAS,GAAT,SAAS,CAAyB;QAAY,SAAI,GAAJ,IAAI,CAA+C;IAEvH,CAAC;IAES,cAAc,CAAC,SAAkC,EAAE,EAAgB,EAAE,QAAgB,CAAC;QAE9F,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,EAAE;YAC/B,OAAO,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAED,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAI7B,OAAO,SAAS,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,sBAAsB,CAAC,qBAAqB,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IACzI,CAAC;IAES,cAAc,CAAC,SAAkC,EAAE,EAAgB,EAAE,QAAgB,CAAC;;QAI9F,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE;YAC9C,OAAO,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAID,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;QAC9B,IAAI,EAAE,IAAI,IAAI,IAAI,CAAA,MAAA,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,0CAAE,EAAE,MAAK,EAAE,EAAE;YACxD,sBAAsB,CAAC,oBAAoB,CAAC,EAAY,CAAC,CAAC;YAC1D,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;SAClC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js deleted file mode 100755 index 3bcf48c3b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js +++ /dev/null @@ -1,24 +0,0 @@ -import { AsyncScheduler } from './AsyncScheduler'; -export class AnimationFrameScheduler extends AsyncScheduler { - flush(action) { - this._active = true; - const flushId = this._scheduled; - this._scheduled = undefined; - const { actions } = this; - let error; - action = action || actions.shift(); - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - this._active = false; - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - } -} -//# sourceMappingURL=AnimationFrameScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js.map deleted file mode 100644 index d7042ce1f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AnimationFrameScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AnimationFrameScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AnimationFrameScheduler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,OAAO,uBAAwB,SAAQ,cAAc;IAClD,KAAK,CAAC,MAAyB;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAUpB,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAE5B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACzB,IAAI,KAAU,CAAC;QACf,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAG,CAAC;QAEpC,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;QAE5E,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;gBACxE,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js deleted file mode 100755 index 8a2ba77fa..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js +++ /dev/null @@ -1,31 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { immediateProvider } from './immediateProvider'; -export class AsapAction extends AsyncAction { - constructor(scheduler, work) { - super(scheduler, work); - this.scheduler = scheduler; - this.work = work; - } - requestAsyncId(scheduler, id, delay = 0) { - if (delay !== null && delay > 0) { - return super.requestAsyncId(scheduler, id, delay); - } - scheduler.actions.push(this); - return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined))); - } - recycleAsyncId(scheduler, id, delay = 0) { - var _a; - if (delay != null ? delay > 0 : this.delay > 0) { - return super.recycleAsyncId(scheduler, id, delay); - } - const { actions } = scheduler; - if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) { - immediateProvider.clearImmediate(id); - if (scheduler._scheduled === id) { - scheduler._scheduled = undefined; - } - } - return undefined; - } -} -//# sourceMappingURL=AsapAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js.map deleted file mode 100644 index 9491c08fc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapAction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsapAction.js","sourceRoot":"","sources":["../../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iBAAiB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACrC,IAAI,SAAS,CAAC,UAAU,KAAK,EAAE,EAAE;gBAC/B,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;aAClC;SACF;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js deleted file mode 100755 index 2aa86c93c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js +++ /dev/null @@ -1,24 +0,0 @@ -import { AsyncScheduler } from './AsyncScheduler'; -export class AsapScheduler extends AsyncScheduler { - flush(action) { - this._active = true; - const flushId = this._scheduled; - this._scheduled = undefined; - const { actions } = this; - let error; - action = action || actions.shift(); - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - this._active = false; - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - } -} -//# sourceMappingURL=AsapScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js.map deleted file mode 100644 index 4d4d92c1e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsapScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsapScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsapScheduler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,OAAO,aAAc,SAAQ,cAAc;IACxC,KAAK,CAAC,MAAyB;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAUpB,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAE5B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QACzB,IAAI,KAAU,CAAC;QACf,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAG,CAAC;QAEpC,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;QAE5E,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;gBACxE,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js deleted file mode 100755 index e0774f3bb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js +++ /dev/null @@ -1,82 +0,0 @@ -import { Action } from './Action'; -import { intervalProvider } from './intervalProvider'; -import { arrRemove } from '../util/arrRemove'; -export class AsyncAction extends Action { - constructor(scheduler, work) { - super(scheduler, work); - this.scheduler = scheduler; - this.work = work; - this.pending = false; - } - schedule(state, delay = 0) { - var _a; - if (this.closed) { - return this; - } - this.state = state; - const id = this.id; - const scheduler = this.scheduler; - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, delay); - } - this.pending = true; - this.delay = delay; - this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay); - return this; - } - requestAsyncId(scheduler, _id, delay = 0) { - return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay); - } - recycleAsyncId(_scheduler, id, delay = 0) { - if (delay != null && this.delay === delay && this.pending === false) { - return id; - } - if (id != null) { - intervalProvider.clearInterval(id); - } - return undefined; - } - execute(state, delay) { - if (this.closed) { - return new Error('executing a cancelled action'); - } - this.pending = false; - const error = this._execute(state, delay); - if (error) { - return error; - } - else if (this.pending === false && this.id != null) { - this.id = this.recycleAsyncId(this.scheduler, this.id, null); - } - } - _execute(state, _delay) { - let errored = false; - let errorValue; - try { - this.work(state); - } - catch (e) { - errored = true; - errorValue = e ? e : new Error('Scheduled action threw falsy error'); - } - if (errored) { - this.unsubscribe(); - return errorValue; - } - } - unsubscribe() { - if (!this.closed) { - const { id, scheduler } = this; - const { actions } = scheduler; - this.work = this.state = this.scheduler = null; - this.pending = false; - arrRemove(actions, this); - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, null); - } - this.delay = null; - super.unsubscribe(); - } - } -} -//# sourceMappingURL=AsyncAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js.map deleted file mode 100644 index a10b1809d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncAction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsyncAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsyncAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,MAAM,OAAO,WAAe,SAA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SAAS,CAAC;YAE9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,SAAS,GAAG,IAAK,CAAC;YAChD,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YAErB,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;YACzB,IAAI,EAAE,IAAI,IAAI,EAAE;gBACd,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;aACpD;YAED,IAAI,CAAC,KAAK,GAAG,IAAK,CAAC;YACnB,KAAK,CAAC,WAAW,EAAE,CAAC;SACrB;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js deleted file mode 100755 index c57668c9c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js +++ /dev/null @@ -1,30 +0,0 @@ -import { Scheduler } from '../Scheduler'; -export class AsyncScheduler extends Scheduler { - constructor(SchedulerAction, now = Scheduler.now) { - super(SchedulerAction, now); - this.actions = []; - this._active = false; - } - flush(action) { - const { actions } = this; - if (this._active) { - actions.push(action); - return; - } - let error; - this._active = true; - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions.shift())); - this._active = false; - if (error) { - while ((action = actions.shift())) { - action.unsubscribe(); - } - throw error; - } - } -} -//# sourceMappingURL=AsyncScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js.map deleted file mode 100644 index 2c6d7908d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/AsyncScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsyncScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsyncScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC,MAAM,OAAO,cAAe,SAAQ,SAAS;IAkB3C,YAAY,eAA8B,EAAE,MAAoB,SAAS,CAAC,GAAG;QAC3E,KAAK,CAAC,eAAe,EAAE,GAAG,CAAC,CAAC;QAlBvB,YAAO,GAA4B,EAAE,CAAC;QAOtC,YAAO,GAAY,KAAK,CAAC;IAYhC,CAAC;IAEM,KAAK,CAAC,MAAwB;QACnC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC;QAEzB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,OAAO;SACR;QAED,IAAI,KAAU,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAEpB,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAG,CAAC,EAAE;QAEtC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAG,CAAC,EAAE;gBAClC,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueAction.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueAction.js deleted file mode 100755 index 002b94a74..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueAction.js +++ /dev/null @@ -1,28 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -export class QueueAction extends AsyncAction { - constructor(scheduler, work) { - super(scheduler, work); - this.scheduler = scheduler; - this.work = work; - } - schedule(state, delay = 0) { - if (delay > 0) { - return super.schedule(state, delay); - } - this.delay = delay; - this.state = state; - this.scheduler.flush(this); - return this; - } - execute(state, delay) { - return delay > 0 || this.closed ? super.execute(state, delay) : this._execute(state, delay); - } - requestAsyncId(scheduler, id, delay = 0) { - if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) { - return super.requestAsyncId(scheduler, id, delay); - } - scheduler.flush(this); - return 0; - } -} -//# sourceMappingURL=QueueAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueAction.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueAction.js.map deleted file mode 100644 index 91db28eb2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueAction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QueueAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/QueueAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAM5C,MAAM,OAAO,WAAe,SAAQ,WAAc;IAChD,YAAsB,SAAyB,EAAY,IAAmD;QAC5G,KAAK,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QADH,cAAS,GAAT,SAAS,CAAgB;QAAY,SAAI,GAAJ,IAAI,CAA+C;IAE9G,CAAC;IAEM,QAAQ,CAAC,KAAS,EAAE,QAAgB,CAAC;QAC1C,IAAI,KAAK,GAAG,CAAC,EAAE;YACb,OAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;SACrC;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,OAAO,CAAC,KAAQ,EAAE,KAAa;QACpC,OAAO,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC9F,CAAC;IAES,cAAc,CAAC,SAAyB,EAAE,EAAgB,EAAE,QAAgB,CAAC;QAKrF,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE;YACrE,OAAO,KAAK,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAGD,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAMtB,OAAO,CAAC,CAAC;IACX,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueScheduler.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueScheduler.js deleted file mode 100755 index cc1fb4d50..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueScheduler.js +++ /dev/null @@ -1,4 +0,0 @@ -import { AsyncScheduler } from './AsyncScheduler'; -export class QueueScheduler extends AsyncScheduler { -} -//# sourceMappingURL=QueueScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueScheduler.js.map deleted file mode 100644 index 3cad8d88f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/QueueScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QueueScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/QueueScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,MAAM,OAAO,cAAe,SAAQ,cAAc;CACjD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/VirtualTimeScheduler.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/VirtualTimeScheduler.js deleted file mode 100755 index 607ced6e3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/VirtualTimeScheduler.js +++ /dev/null @@ -1,89 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { Subscription } from '../Subscription'; -import { AsyncScheduler } from './AsyncScheduler'; -export class VirtualTimeScheduler extends AsyncScheduler { - constructor(schedulerActionCtor = VirtualAction, maxFrames = Infinity) { - super(schedulerActionCtor, () => this.frame); - this.maxFrames = maxFrames; - this.frame = 0; - this.index = -1; - } - flush() { - const { actions, maxFrames } = this; - let error; - let action; - while ((action = actions[0]) && action.delay <= maxFrames) { - actions.shift(); - this.frame = action.delay; - if ((error = action.execute(action.state, action.delay))) { - break; - } - } - if (error) { - while ((action = actions.shift())) { - action.unsubscribe(); - } - throw error; - } - } -} -VirtualTimeScheduler.frameTimeFactor = 10; -export class VirtualAction extends AsyncAction { - constructor(scheduler, work, index = (scheduler.index += 1)) { - super(scheduler, work); - this.scheduler = scheduler; - this.work = work; - this.index = index; - this.active = true; - this.index = scheduler.index = index; - } - schedule(state, delay = 0) { - if (Number.isFinite(delay)) { - if (!this.id) { - return super.schedule(state, delay); - } - this.active = false; - const action = new VirtualAction(this.scheduler, this.work); - this.add(action); - return action.schedule(state, delay); - } - else { - return Subscription.EMPTY; - } - } - requestAsyncId(scheduler, id, delay = 0) { - this.delay = scheduler.frame + delay; - const { actions } = scheduler; - actions.push(this); - actions.sort(VirtualAction.sortActions); - return 1; - } - recycleAsyncId(scheduler, id, delay = 0) { - return undefined; - } - _execute(state, delay) { - if (this.active === true) { - return super._execute(state, delay); - } - } - static sortActions(a, b) { - if (a.delay === b.delay) { - if (a.index === b.index) { - return 0; - } - else if (a.index > b.index) { - return 1; - } - else { - return -1; - } - } - else if (a.delay > b.delay) { - return 1; - } - else { - return -1; - } - } -} -//# sourceMappingURL=VirtualTimeScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/VirtualTimeScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/VirtualTimeScheduler.js.map deleted file mode 100644 index c4d75be65..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/VirtualTimeScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VirtualTimeScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/VirtualTimeScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD,MAAM,OAAO,oBAAqB,SAAQ,cAAc;IAyBtD,YAAY,sBAA0C,aAAoB,EAAS,YAAoB,QAAQ;QAC7G,KAAK,CAAC,mBAAmB,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QADoC,cAAS,GAAT,SAAS,CAAmB;QAfxG,UAAK,GAAW,CAAC,CAAC;QAMlB,UAAK,GAAW,CAAC,CAAC,CAAC;IAW1B,CAAC;IAOM,KAAK;QACV,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QACpC,IAAI,KAAU,CAAC;QACf,IAAI,MAAoC,CAAC;QAEzC,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,IAAI,SAAS,EAAE;YACzD,OAAO,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,KAAK,GAA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;aAAM;YAGL,OAAO,YAAY,CAAC,KAAK,CAAC;SAC3B;IACH,CAAC;IAES,cAAc,CAAC,SAA+B,EAAE,EAAQ,EAAE,QAAgB,CAAC;QACnF,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,GAAG,KAAK,CAAC;QACrC,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;QAC9B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClB,OAAmC,CAAC,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;QACrE,OAAO,CAAC,CAAC;IACX,CAAC;IAES,cAAc,CAAC,SAA+B,EAAE,EAAQ,EAAE,QAAgB,CAAC;QACnF,OAAO,SAAS,CAAC;IACnB,CAAC;IAES,QAAQ,CAAC,KAAQ,EAAE,KAAa;QACxC,IAAI,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE;YACxB,OAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;SACrC;IACH,CAAC;IAEO,MAAM,CAAC,WAAW,CAAI,CAAmB,EAAE,CAAmB;QACpE,IAAI,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,EAAE;YACvB,IAAI,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,KAAK,EAAE;gBACvB,OAAO,CAAC,CAAC;aACV;iBAAM,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE;gBAC5B,OAAO,CAAC,CAAC;aACV;iBAAM;gBACL,OAAO,CAAC,CAAC,CAAC;aACX;SACF;aAAM,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,EAAE;YAC5B,OAAO,CAAC,CAAC;SACV;aAAM;YACL,OAAO,CAAC,CAAC,CAAC;SACX;IACH,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrame.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrame.js deleted file mode 100755 index 6575d95bc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrame.js +++ /dev/null @@ -1,5 +0,0 @@ -import { AnimationFrameAction } from './AnimationFrameAction'; -import { AnimationFrameScheduler } from './AnimationFrameScheduler'; -export const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction); -export const animationFrame = animationFrameScheduler; -//# sourceMappingURL=animationFrame.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrame.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrame.js.map deleted file mode 100644 index 010517144..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrame.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrame.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/animationFrame.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAkCpE,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,uBAAuB,CAAC,oBAAoB,CAAC,CAAC;AAKzF,MAAM,CAAC,MAAM,cAAc,GAAG,uBAAuB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrameProvider.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrameProvider.js deleted file mode 100755 index 6bf861bbb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrameProvider.js +++ /dev/null @@ -1,27 +0,0 @@ -import { Subscription } from '../Subscription'; -export const animationFrameProvider = { - schedule(callback) { - let request = requestAnimationFrame; - let cancel = cancelAnimationFrame; - const { delegate } = animationFrameProvider; - if (delegate) { - request = delegate.requestAnimationFrame; - cancel = delegate.cancelAnimationFrame; - } - const handle = request((timestamp) => { - cancel = undefined; - callback(timestamp); - }); - return new Subscription(() => cancel === null || cancel === void 0 ? void 0 : cancel(handle)); - }, - requestAnimationFrame(...args) { - const { delegate } = animationFrameProvider; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame)(...args); - }, - cancelAnimationFrame(...args) { - const { delegate } = animationFrameProvider; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame)(...args); - }, - delegate: undefined, -}; -//# sourceMappingURL=animationFrameProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrameProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrameProvider.js.map deleted file mode 100644 index 635cc93c2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/animationFrameProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrameProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/animationFrameProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAc/C,MAAM,CAAC,MAAM,sBAAsB,GAA2B;IAG5D,QAAQ,CAAC,QAAQ;QACf,IAAI,OAAO,GAAG,qBAAqB,CAAC;QACpC,IAAI,MAAM,GAA4C,oBAAoB,CAAC;QAC3E,MAAM,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC;QAC5C,IAAI,QAAQ,EAAE;YACZ,OAAO,GAAG,QAAQ,CAAC,qBAAqB,CAAC;YACzC,MAAM,GAAG,QAAQ,CAAC,oBAAoB,CAAC;SACxC;QACD,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YAInC,MAAM,GAAG,SAAS,CAAC;YACnB,QAAQ,CAAC,SAAS,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,YAAY,CAAC,GAAG,EAAE,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,MAAM,CAAC,CAAC,CAAC;IAClD,CAAC;IACD,qBAAqB,CAAC,GAAG,IAAI;QAC3B,MAAM,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC;QAC5C,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,qBAAqB,KAAI,qBAAqB,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC7E,CAAC;IACD,oBAAoB,CAAC,GAAG,IAAI;QAC1B,MAAM,EAAE,QAAQ,EAAE,GAAG,sBAAsB,CAAC;QAC5C,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,oBAAoB,KAAI,oBAAoB,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC3E,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/asap.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/asap.js deleted file mode 100755 index 29ae3a84f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/asap.js +++ /dev/null @@ -1,5 +0,0 @@ -import { AsapAction } from './AsapAction'; -import { AsapScheduler } from './AsapScheduler'; -export const asapScheduler = new AsapScheduler(AsapAction); -export const asap = asapScheduler; -//# sourceMappingURL=asap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/asap.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/asap.js.map deleted file mode 100644 index a38738a13..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/asap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"asap.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/asap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAqChD,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;AAK3D,MAAM,CAAC,MAAM,IAAI,GAAG,aAAa,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/async.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/async.js deleted file mode 100755 index 8d0283e17..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/async.js +++ /dev/null @@ -1,5 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { AsyncScheduler } from './AsyncScheduler'; -export const asyncScheduler = new AsyncScheduler(AsyncAction); -export const async = asyncScheduler; -//# sourceMappingURL=async.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/async.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/async.js.map deleted file mode 100644 index f14b80d55..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/async.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAiDlD,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,WAAW,CAAC,CAAC;AAK9D,MAAM,CAAC,MAAM,KAAK,GAAG,cAAc,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js deleted file mode 100755 index 085f1cf92..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js +++ /dev/null @@ -1,7 +0,0 @@ -export const dateTimestampProvider = { - now() { - return (dateTimestampProvider.delegate || Date).now(); - }, - delegate: undefined, -}; -//# sourceMappingURL=dateTimestampProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js.map deleted file mode 100644 index 7b947fed7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/dateTimestampProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dateTimestampProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/dateTimestampProvider.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,qBAAqB,GAA0B;IAC1D,GAAG;QAGD,OAAO,CAAC,qBAAqB,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;IACxD,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/immediateProvider.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/immediateProvider.js deleted file mode 100755 index 1825ab0a4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/immediateProvider.js +++ /dev/null @@ -1,14 +0,0 @@ -import { Immediate } from '../util/Immediate'; -const { setImmediate, clearImmediate } = Immediate; -export const immediateProvider = { - setImmediate(...args) { - const { delegate } = immediateProvider; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate)(...args); - }, - clearImmediate(handle) { - const { delegate } = immediateProvider; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle); - }, - delegate: undefined, -}; -//# sourceMappingURL=immediateProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/immediateProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/immediateProvider.js.map deleted file mode 100644 index 22ad31973..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/immediateProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"immediateProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/immediateProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,SAAS,CAAC;AAgBnD,MAAM,CAAC,MAAM,iBAAiB,GAAsB;IAGlD,YAAY,CAAC,GAAG,IAAI;QAClB,MAAM,EAAE,QAAQ,EAAE,GAAG,iBAAiB,CAAC;QACvC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,YAAY,KAAI,YAAY,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC3D,CAAC;IACD,cAAc,CAAC,MAAM;QACnB,MAAM,EAAE,QAAQ,EAAE,GAAG,iBAAiB,CAAC;QACvC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,cAAc,KAAI,cAAc,CAAC,CAAC,MAAa,CAAC,CAAC;IACrE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js deleted file mode 100755 index 3e528f141..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js +++ /dev/null @@ -1,15 +0,0 @@ -export const intervalProvider = { - setInterval(handler, timeout, ...args) { - const { delegate } = intervalProvider; - if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) { - return delegate.setInterval(handler, timeout, ...args); - } - return setInterval(handler, timeout, ...args); - }, - clearInterval(handle) { - const { delegate } = intervalProvider; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle); - }, - delegate: undefined, -}; -//# sourceMappingURL=intervalProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js.map deleted file mode 100644 index 7daf0dc1e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/intervalProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intervalProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/intervalProvider.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,gBAAgB,GAAqB;IAGhD,WAAW,CAAC,OAAmB,EAAE,OAAgB,EAAE,GAAG,IAAI;QACxD,MAAM,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC;QACtC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE;YACzB,OAAO,QAAQ,CAAC,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;SACxD;QACD,OAAO,WAAW,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IAChD,CAAC;IACD,aAAa,CAAC,MAAM;QAClB,MAAM,EAAE,QAAQ,EAAE,GAAG,gBAAgB,CAAC;QACtC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,KAAI,aAAa,CAAC,CAAC,MAAa,CAAC,CAAC;IACnE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/performanceTimestampProvider.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/performanceTimestampProvider.js deleted file mode 100755 index e82dfb780..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/performanceTimestampProvider.js +++ /dev/null @@ -1,7 +0,0 @@ -export const performanceTimestampProvider = { - now() { - return (performanceTimestampProvider.delegate || performance).now(); - }, - delegate: undefined, -}; -//# sourceMappingURL=performanceTimestampProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/performanceTimestampProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/performanceTimestampProvider.js.map deleted file mode 100644 index 79585a78e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/performanceTimestampProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"performanceTimestampProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/performanceTimestampProvider.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,4BAA4B,GAAiC;IACxE,GAAG;QAGD,OAAO,CAAC,4BAA4B,CAAC,QAAQ,IAAI,WAAW,CAAC,CAAC,GAAG,EAAE,CAAC;IACtE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/queue.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/queue.js deleted file mode 100755 index cb4f218d6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/queue.js +++ /dev/null @@ -1,5 +0,0 @@ -import { QueueAction } from './QueueAction'; -import { QueueScheduler } from './QueueScheduler'; -export const queueScheduler = new QueueScheduler(QueueAction); -export const queue = queueScheduler; -//# sourceMappingURL=queue.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/queue.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/queue.js.map deleted file mode 100644 index d4b5e442b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/queue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAiElD,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,CAAC,WAAW,CAAC,CAAC;AAK9D,MAAM,CAAC,MAAM,KAAK,GAAG,cAAc,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js deleted file mode 100755 index 56f8bbb08..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js +++ /dev/null @@ -1,15 +0,0 @@ -export const timeoutProvider = { - setTimeout(handler, timeout, ...args) { - const { delegate } = timeoutProvider; - if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) { - return delegate.setTimeout(handler, timeout, ...args); - } - return setTimeout(handler, timeout, ...args); - }, - clearTimeout(handle) { - const { delegate } = timeoutProvider; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle); - }, - delegate: undefined, -}; -//# sourceMappingURL=timeoutProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js.map deleted file mode 100644 index dfc06f53b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timeoutProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeoutProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/timeoutProvider.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,eAAe,GAAoB;IAG9C,UAAU,CAAC,OAAmB,EAAE,OAAgB,EAAE,GAAG,IAAI;QACvD,MAAM,EAAE,QAAQ,EAAE,GAAG,eAAe,CAAC;QACrC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,UAAU,EAAE;YACxB,OAAO,QAAQ,CAAC,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;SACvD;QACD,OAAO,UAAU,CAAC,OAAO,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;IAC/C,CAAC;IACD,YAAY,CAAC,MAAM;QACjB,MAAM,EAAE,QAAQ,EAAE,GAAG,eAAe,CAAC;QACrC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,YAAY,KAAI,YAAY,CAAC,CAAC,MAAa,CAAC,CAAC;IACjE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timerHandle.js b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timerHandle.js deleted file mode 100755 index 40cf60657..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timerHandle.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=timerHandle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timerHandle.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timerHandle.js.map deleted file mode 100644 index 8efd320a5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/scheduler/timerHandle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timerHandle.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/timerHandle.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/iterator.js b/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/iterator.js deleted file mode 100755 index 6f2c37d4c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/iterator.js +++ /dev/null @@ -1,8 +0,0 @@ -export function getSymbolIterator() { - if (typeof Symbol !== 'function' || !Symbol.iterator) { - return '@@iterator'; - } - return Symbol.iterator; -} -export const iterator = getSymbolIterator(); -//# sourceMappingURL=iterator.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/iterator.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/iterator.js.map deleted file mode 100644 index c9fb6e7f5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/iterator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"iterator.js","sourceRoot":"","sources":["../../../../src/internal/symbol/iterator.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,iBAAiB;IAC/B,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpD,OAAO,YAAmB,CAAC;KAC5B;IAED,OAAO,MAAM,CAAC,QAAQ,CAAC;AACzB,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/observable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/observable.js deleted file mode 100755 index bf38e0632..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/observable.js +++ /dev/null @@ -1,2 +0,0 @@ -export const observable = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')(); -//# sourceMappingURL=observable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/observable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/observable.js.map deleted file mode 100644 index da070abd5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/symbol/observable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"observable.js","sourceRoot":"","sources":["../../../../src/internal/symbol/observable.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,UAAU,GAAoB,CAAC,GAAG,EAAE,CAAC,CAAC,OAAO,MAAM,KAAK,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,cAAc,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/ColdObservable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/ColdObservable.js deleted file mode 100755 index 0733e6e2c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/ColdObservable.js +++ /dev/null @@ -1,34 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscription } from '../Subscription'; -import { SubscriptionLoggable } from './SubscriptionLoggable'; -import { applyMixins } from '../util/applyMixins'; -import { observeNotification } from '../Notification'; -export class ColdObservable extends Observable { - constructor(messages, scheduler) { - super(function (subscriber) { - const observable = this; - const index = observable.logSubscribedFrame(); - const subscription = new Subscription(); - subscription.add(new Subscription(() => { - observable.logUnsubscribedFrame(index); - })); - observable.scheduleMessages(subscriber); - return subscription; - }); - this.messages = messages; - this.subscriptions = []; - this.scheduler = scheduler; - } - scheduleMessages(subscriber) { - const messagesLength = this.messages.length; - for (let i = 0; i < messagesLength; i++) { - const message = this.messages[i]; - subscriber.add(this.scheduler.schedule((state) => { - const { message: { notification }, subscriber: destination } = state; - observeNotification(notification, destination); - }, message.frame, { message, subscriber })); - } - } -} -applyMixins(ColdObservable, [SubscriptionLoggable]); -//# sourceMappingURL=ColdObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/ColdObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/ColdObservable.js.map deleted file mode 100644 index d573dee05..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/ColdObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ColdObservable.js","sourceRoot":"","sources":["../../../../src/internal/testing/ColdObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,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EAAE,OAAO,EAAE,UAAU,EAAE,CACxB,CACF,CAAC;SACH;IACH,CAAC;CACF;AACD,WAAW,CAAC,cAAc,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/HotObservable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/HotObservable.js deleted file mode 100755 index 403247e19..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/HotObservable.js +++ /dev/null @@ -1,37 +0,0 @@ -import { Subject } from '../Subject'; -import { Subscription } from '../Subscription'; -import { SubscriptionLoggable } from './SubscriptionLoggable'; -import { applyMixins } from '../util/applyMixins'; -import { observeNotification } from '../Notification'; -export class HotObservable extends Subject { - constructor(messages, scheduler) { - super(); - this.messages = messages; - this.subscriptions = []; - this.scheduler = scheduler; - } - _subscribe(subscriber) { - const subject = this; - const index = subject.logSubscribedFrame(); - const subscription = new Subscription(); - subscription.add(new Subscription(() => { - subject.logUnsubscribedFrame(index); - })); - subscription.add(super._subscribe(subscriber)); - return subscription; - } - setup() { - const subject = this; - const messagesLength = subject.messages.length; - for (let i = 0; i < messagesLength; i++) { - (() => { - const { notification, frame } = subject.messages[i]; - subject.scheduler.schedule(() => { - observeNotification(notification, subject); - }, frame); - })(); - } - } -} -applyMixins(HotObservable, [SubscriptionLoggable]); -//# sourceMappingURL=HotObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/HotObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/HotObservable.js.map deleted file mode 100644 index a549885a3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/HotObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HotObservable.js","sourceRoot":"","sources":["../../../../src/internal/testing/HotObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,YAAY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,OAAO,CAAC,CAAC;gBAC7C,CAAC,EAAE,KAAK,CAAC,CAAC;YACZ,CAAC,CAAC,EAAE,CAAC;SACN;IACH,CAAC;CACF;AACD,WAAW,CAAC,aAAa,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLog.js b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLog.js deleted file mode 100755 index 56eb69022..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLog.js +++ /dev/null @@ -1,7 +0,0 @@ -export class SubscriptionLog { - constructor(subscribedFrame, unsubscribedFrame = Infinity) { - this.subscribedFrame = subscribedFrame; - this.unsubscribedFrame = unsubscribedFrame; - } -} -//# sourceMappingURL=SubscriptionLog.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLog.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLog.js.map deleted file mode 100644 index c4d842c85..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SubscriptionLog.js","sourceRoot":"","sources":["../../../../src/internal/testing/SubscriptionLog.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,eAAe;IAC1B,YAAmB,eAAuB,EACvB,oBAA4B,QAAQ;QADpC,oBAAe,GAAf,eAAe,CAAQ;QACvB,sBAAiB,GAAjB,iBAAiB,CAAmB;IACvD,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLoggable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLoggable.js deleted file mode 100755 index 08a00d72f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLoggable.js +++ /dev/null @@ -1,16 +0,0 @@ -import { SubscriptionLog } from './SubscriptionLog'; -export class SubscriptionLoggable { - constructor() { - this.subscriptions = []; - } - logSubscribedFrame() { - this.subscriptions.push(new SubscriptionLog(this.scheduler.now())); - return this.subscriptions.length - 1; - } - logUnsubscribedFrame(index) { - const subscriptionLogs = this.subscriptions; - const oldSubscriptionLog = subscriptionLogs[index]; - subscriptionLogs[index] = new SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now()); - } -} -//# sourceMappingURL=SubscriptionLoggable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLoggable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLoggable.js.map deleted file mode 100644 index 6dbcb6387..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/SubscriptionLoggable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SubscriptionLoggable.js","sourceRoot":"","sources":["../../../../src/internal/testing/SubscriptionLoggable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,OAAO,oBAAoB;IAAjC;QACS,kBAAa,GAAsB,EAAE,CAAC;IAiB/C,CAAC;IAbC,kBAAkB;QAChB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,oBAAoB,CAAC,KAAa;QAChC,MAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC;QAC5C,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACnD,gBAAgB,CAAC,KAAK,CAAC,GAAG,IAAI,eAAe,CAC3C,kBAAkB,CAAC,eAAe,EAClC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CACrB,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestMessage.js b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestMessage.js deleted file mode 100755 index 47c15dbf5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestMessage.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=TestMessage.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestMessage.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestMessage.js.map deleted file mode 100644 index f91e8da13..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestMessage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TestMessage.js","sourceRoot":"","sources":["../../../../src/internal/testing/TestMessage.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestScheduler.js b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestScheduler.js deleted file mode 100755 index 90419db80..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestScheduler.js +++ /dev/null @@ -1,505 +0,0 @@ -import { Observable } from '../Observable'; -import { ColdObservable } from './ColdObservable'; -import { HotObservable } from './HotObservable'; -import { SubscriptionLog } from './SubscriptionLog'; -import { VirtualTimeScheduler, VirtualAction } from '../scheduler/VirtualTimeScheduler'; -import { COMPLETE_NOTIFICATION, errorNotification, nextNotification } from '../NotificationFactories'; -import { dateTimestampProvider } from '../scheduler/dateTimestampProvider'; -import { performanceTimestampProvider } from '../scheduler/performanceTimestampProvider'; -import { animationFrameProvider } from '../scheduler/animationFrameProvider'; -import { immediateProvider } from '../scheduler/immediateProvider'; -import { intervalProvider } from '../scheduler/intervalProvider'; -import { timeoutProvider } from '../scheduler/timeoutProvider'; -const defaultMaxFrame = 750; -export class TestScheduler extends VirtualTimeScheduler { - constructor(assertDeepEqual) { - super(VirtualAction, defaultMaxFrame); - this.assertDeepEqual = assertDeepEqual; - this.hotObservables = []; - this.coldObservables = []; - this.flushTests = []; - this.runMode = false; - } - createTime(marbles) { - const indexOf = this.runMode ? marbles.trim().indexOf('|') : marbles.indexOf('|'); - if (indexOf === -1) { - throw new Error('marble diagram for time should have a completion marker "|"'); - } - return indexOf * TestScheduler.frameTimeFactor; - } - createColdObservable(marbles, values, error) { - if (marbles.indexOf('^') !== -1) { - throw new Error('cold observable cannot have subscription offset "^"'); - } - if (marbles.indexOf('!') !== -1) { - throw new Error('cold observable cannot have unsubscription marker "!"'); - } - const messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode); - const cold = new ColdObservable(messages, this); - this.coldObservables.push(cold); - return cold; - } - createHotObservable(marbles, values, error) { - if (marbles.indexOf('!') !== -1) { - throw new Error('hot observable cannot have unsubscription marker "!"'); - } - const messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode); - const subject = new HotObservable(messages, this); - this.hotObservables.push(subject); - return subject; - } - materializeInnerObservable(observable, outerFrame) { - const messages = []; - observable.subscribe({ - next: (value) => { - messages.push({ frame: this.frame - outerFrame, notification: nextNotification(value) }); - }, - error: (error) => { - messages.push({ frame: this.frame - outerFrame, notification: errorNotification(error) }); - }, - complete: () => { - messages.push({ frame: this.frame - outerFrame, notification: COMPLETE_NOTIFICATION }); - }, - }); - return messages; - } - expectObservable(observable, subscriptionMarbles = null) { - const actual = []; - const flushTest = { actual, ready: false }; - const subscriptionParsed = TestScheduler.parseMarblesAsSubscriptions(subscriptionMarbles, this.runMode); - const subscriptionFrame = subscriptionParsed.subscribedFrame === Infinity ? 0 : subscriptionParsed.subscribedFrame; - const unsubscriptionFrame = subscriptionParsed.unsubscribedFrame; - let subscription; - this.schedule(() => { - subscription = observable.subscribe({ - next: (x) => { - const value = x instanceof Observable ? this.materializeInnerObservable(x, this.frame) : x; - actual.push({ frame: this.frame, notification: nextNotification(value) }); - }, - error: (error) => { - actual.push({ frame: this.frame, notification: errorNotification(error) }); - }, - complete: () => { - actual.push({ frame: this.frame, notification: COMPLETE_NOTIFICATION }); - }, - }); - }, subscriptionFrame); - if (unsubscriptionFrame !== Infinity) { - this.schedule(() => subscription.unsubscribe(), unsubscriptionFrame); - } - this.flushTests.push(flushTest); - const { runMode } = this; - return { - toBe(marbles, values, errorValue) { - flushTest.ready = true; - flushTest.expected = TestScheduler.parseMarbles(marbles, values, errorValue, true, runMode); - }, - toEqual: (other) => { - flushTest.ready = true; - flushTest.expected = []; - this.schedule(() => { - subscription = other.subscribe({ - next: (x) => { - const value = x instanceof Observable ? this.materializeInnerObservable(x, this.frame) : x; - flushTest.expected.push({ frame: this.frame, notification: nextNotification(value) }); - }, - error: (error) => { - flushTest.expected.push({ frame: this.frame, notification: errorNotification(error) }); - }, - complete: () => { - flushTest.expected.push({ frame: this.frame, notification: COMPLETE_NOTIFICATION }); - }, - }); - }, subscriptionFrame); - }, - }; - } - expectSubscriptions(actualSubscriptionLogs) { - const flushTest = { actual: actualSubscriptionLogs, ready: false }; - this.flushTests.push(flushTest); - const { runMode } = this; - return { - toBe(marblesOrMarblesArray) { - const marblesArray = typeof marblesOrMarblesArray === 'string' ? [marblesOrMarblesArray] : marblesOrMarblesArray; - flushTest.ready = true; - flushTest.expected = marblesArray - .map((marbles) => TestScheduler.parseMarblesAsSubscriptions(marbles, runMode)) - .filter((marbles) => marbles.subscribedFrame !== Infinity); - }, - }; - } - flush() { - const hotObservables = this.hotObservables; - while (hotObservables.length > 0) { - hotObservables.shift().setup(); - } - super.flush(); - this.flushTests = this.flushTests.filter((test) => { - if (test.ready) { - this.assertDeepEqual(test.actual, test.expected); - return false; - } - return true; - }); - } - static parseMarblesAsSubscriptions(marbles, runMode = false) { - if (typeof marbles !== 'string') { - return new SubscriptionLog(Infinity); - } - const characters = [...marbles]; - const len = characters.length; - let groupStart = -1; - let subscriptionFrame = Infinity; - let unsubscriptionFrame = Infinity; - let frame = 0; - for (let i = 0; i < len; i++) { - let nextFrame = frame; - const advanceFrameBy = (count) => { - nextFrame += count * this.frameTimeFactor; - }; - const c = characters[i]; - switch (c) { - case ' ': - if (!runMode) { - advanceFrameBy(1); - } - break; - case '-': - advanceFrameBy(1); - break; - case '(': - groupStart = frame; - advanceFrameBy(1); - break; - case ')': - groupStart = -1; - advanceFrameBy(1); - break; - case '^': - if (subscriptionFrame !== Infinity) { - throw new Error("found a second subscription point '^' in a " + 'subscription marble diagram. There can only be one.'); - } - subscriptionFrame = groupStart > -1 ? groupStart : frame; - advanceFrameBy(1); - break; - case '!': - if (unsubscriptionFrame !== Infinity) { - throw new Error("found a second unsubscription point '!' in a " + 'subscription marble diagram. There can only be one.'); - } - unsubscriptionFrame = groupStart > -1 ? groupStart : frame; - break; - default: - if (runMode && c.match(/^[0-9]$/)) { - if (i === 0 || characters[i - 1] === ' ') { - const buffer = characters.slice(i).join(''); - const match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /); - if (match) { - i += match[0].length - 1; - const duration = parseFloat(match[1]); - const unit = match[2]; - let durationInMs; - switch (unit) { - case 'ms': - durationInMs = duration; - break; - case 's': - durationInMs = duration * 1000; - break; - case 'm': - durationInMs = duration * 1000 * 60; - break; - default: - break; - } - advanceFrameBy(durationInMs / this.frameTimeFactor); - break; - } - } - } - throw new Error("there can only be '^' and '!' markers in a " + "subscription marble diagram. Found instead '" + c + "'."); - } - frame = nextFrame; - } - if (unsubscriptionFrame < 0) { - return new SubscriptionLog(subscriptionFrame); - } - else { - return new SubscriptionLog(subscriptionFrame, unsubscriptionFrame); - } - } - static parseMarbles(marbles, values, errorValue, materializeInnerObservables = false, runMode = false) { - if (marbles.indexOf('!') !== -1) { - throw new Error('conventional marble diagrams cannot have the ' + 'unsubscription marker "!"'); - } - const characters = [...marbles]; - const len = characters.length; - const testMessages = []; - const subIndex = runMode ? marbles.replace(/^[ ]+/, '').indexOf('^') : marbles.indexOf('^'); - let frame = subIndex === -1 ? 0 : subIndex * -this.frameTimeFactor; - const getValue = typeof values !== 'object' - ? (x) => x - : (x) => { - if (materializeInnerObservables && values[x] instanceof ColdObservable) { - return values[x].messages; - } - return values[x]; - }; - let groupStart = -1; - for (let i = 0; i < len; i++) { - let nextFrame = frame; - const advanceFrameBy = (count) => { - nextFrame += count * this.frameTimeFactor; - }; - let notification; - const c = characters[i]; - switch (c) { - case ' ': - if (!runMode) { - advanceFrameBy(1); - } - break; - case '-': - advanceFrameBy(1); - break; - case '(': - groupStart = frame; - advanceFrameBy(1); - break; - case ')': - groupStart = -1; - advanceFrameBy(1); - break; - case '|': - notification = COMPLETE_NOTIFICATION; - advanceFrameBy(1); - break; - case '^': - advanceFrameBy(1); - break; - case '#': - notification = errorNotification(errorValue || 'error'); - advanceFrameBy(1); - break; - default: - if (runMode && c.match(/^[0-9]$/)) { - if (i === 0 || characters[i - 1] === ' ') { - const buffer = characters.slice(i).join(''); - const match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /); - if (match) { - i += match[0].length - 1; - const duration = parseFloat(match[1]); - const unit = match[2]; - let durationInMs; - switch (unit) { - case 'ms': - durationInMs = duration; - break; - case 's': - durationInMs = duration * 1000; - break; - case 'm': - durationInMs = duration * 1000 * 60; - break; - default: - break; - } - advanceFrameBy(durationInMs / this.frameTimeFactor); - break; - } - } - } - notification = nextNotification(getValue(c)); - advanceFrameBy(1); - break; - } - if (notification) { - testMessages.push({ frame: groupStart > -1 ? groupStart : frame, notification }); - } - frame = nextFrame; - } - return testMessages; - } - createAnimator() { - if (!this.runMode) { - throw new Error('animate() must only be used in run mode'); - } - let lastHandle = 0; - let map; - const delegate = { - requestAnimationFrame(callback) { - if (!map) { - throw new Error('animate() was not called within run()'); - } - const handle = ++lastHandle; - map.set(handle, callback); - return handle; - }, - cancelAnimationFrame(handle) { - if (!map) { - throw new Error('animate() was not called within run()'); - } - map.delete(handle); - }, - }; - const animate = (marbles) => { - if (map) { - throw new Error('animate() must not be called more than once within run()'); - } - if (/[|#]/.test(marbles)) { - throw new Error('animate() must not complete or error'); - } - map = new Map(); - const messages = TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true); - for (const message of messages) { - this.schedule(() => { - const now = this.now(); - const callbacks = Array.from(map.values()); - map.clear(); - for (const callback of callbacks) { - callback(now); - } - }, message.frame); - } - }; - return { animate, delegate }; - } - createDelegates() { - let lastHandle = 0; - const scheduleLookup = new Map(); - const run = () => { - const now = this.now(); - const scheduledRecords = Array.from(scheduleLookup.values()); - const scheduledRecordsDue = scheduledRecords.filter(({ due }) => due <= now); - const dueImmediates = scheduledRecordsDue.filter(({ type }) => type === 'immediate'); - if (dueImmediates.length > 0) { - const { handle, handler } = dueImmediates[0]; - scheduleLookup.delete(handle); - handler(); - return; - } - const dueIntervals = scheduledRecordsDue.filter(({ type }) => type === 'interval'); - if (dueIntervals.length > 0) { - const firstDueInterval = dueIntervals[0]; - const { duration, handler } = firstDueInterval; - firstDueInterval.due = now + duration; - firstDueInterval.subscription = this.schedule(run, duration); - handler(); - return; - } - const dueTimeouts = scheduledRecordsDue.filter(({ type }) => type === 'timeout'); - if (dueTimeouts.length > 0) { - const { handle, handler } = dueTimeouts[0]; - scheduleLookup.delete(handle); - handler(); - return; - } - throw new Error('Expected a due immediate or interval'); - }; - const immediate = { - setImmediate: (handler) => { - const handle = ++lastHandle; - scheduleLookup.set(handle, { - due: this.now(), - duration: 0, - handle, - handler, - subscription: this.schedule(run, 0), - type: 'immediate', - }); - return handle; - }, - clearImmediate: (handle) => { - const value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - const interval = { - setInterval: (handler, duration = 0) => { - const handle = ++lastHandle; - scheduleLookup.set(handle, { - due: this.now() + duration, - duration, - handle, - handler, - subscription: this.schedule(run, duration), - type: 'interval', - }); - return handle; - }, - clearInterval: (handle) => { - const value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - const timeout = { - setTimeout: (handler, duration = 0) => { - const handle = ++lastHandle; - scheduleLookup.set(handle, { - due: this.now() + duration, - duration, - handle, - handler, - subscription: this.schedule(run, duration), - type: 'timeout', - }); - return handle; - }, - clearTimeout: (handle) => { - const value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - return { immediate, interval, timeout }; - } - run(callback) { - const prevFrameTimeFactor = TestScheduler.frameTimeFactor; - const prevMaxFrames = this.maxFrames; - TestScheduler.frameTimeFactor = 1; - this.maxFrames = Infinity; - this.runMode = true; - const animator = this.createAnimator(); - const delegates = this.createDelegates(); - animationFrameProvider.delegate = animator.delegate; - dateTimestampProvider.delegate = this; - immediateProvider.delegate = delegates.immediate; - intervalProvider.delegate = delegates.interval; - timeoutProvider.delegate = delegates.timeout; - performanceTimestampProvider.delegate = this; - const helpers = { - cold: this.createColdObservable.bind(this), - hot: this.createHotObservable.bind(this), - flush: this.flush.bind(this), - time: this.createTime.bind(this), - expectObservable: this.expectObservable.bind(this), - expectSubscriptions: this.expectSubscriptions.bind(this), - animate: animator.animate, - }; - try { - const ret = callback(helpers); - this.flush(); - return ret; - } - finally { - TestScheduler.frameTimeFactor = prevFrameTimeFactor; - this.maxFrames = prevMaxFrames; - this.runMode = false; - animationFrameProvider.delegate = undefined; - dateTimestampProvider.delegate = undefined; - immediateProvider.delegate = undefined; - intervalProvider.delegate = undefined; - timeoutProvider.delegate = undefined; - performanceTimestampProvider.delegate = undefined; - } - } -} -TestScheduler.frameTimeFactor = 10; -//# sourceMappingURL=TestScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestScheduler.js.map deleted file mode 100644 index 6691fa49a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/testing/TestScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TestScheduler.js","sourceRoot":"","sources":["../../../../src/internal/testing/TestScheduler.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IAAI,CAAC,IAAI,CAAC;YACxC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;YAC5B,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;YAChC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC;YAClD,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC;YACxD,OAAO,EAAE,QAAQ,CAAC,OAAO;SAC1B,CAAC;QACF,IAAI;YACF,MAAM,GAAG,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;YAC9B,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,OAAO,GAAG,CAAC;SACZ;gBAAS;YACR,aAAa,CAAC,eAAe,GAAG,mBAAmB,CAAC;YACpD,IAAI,CAAC,SAAS,GAAG,aAAa,CAAC;YAC/B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,sBAAsB,CAAC,QAAQ,GAAG,SAAS,CAAC;YAC5C,qBAAqB,CAAC,QAAQ,GAAG,SAAS,CAAC;YAC3C,iBAAiB,CAAC,QAAQ,GAAG,SAAS,CAAC;YACvC,gBAAgB,CAAC,QAAQ,GAAG,SAAS,CAAC;YACtC,eAAe,CAAC,QAAQ,GAAG,SAAS,CAAC;YACrC,4BAA4B,CAAC,QAAQ,GAAG,SAAS,CAAC;SACnD;IACH,CAAC;;AAtoBM,6BAAe,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/types.js b/WechatBot/node_modules/rxjs/dist/esm/internal/types.js deleted file mode 100755 index 718fd38ae..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/types.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/types.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/types.js.map deleted file mode 100644 index 493d291ce..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/internal/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/umd.js b/WechatBot/node_modules/rxjs/dist/esm/internal/umd.js deleted file mode 100755 index 25c05ff3c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/umd.js +++ /dev/null @@ -1,12 +0,0 @@ -export * from '../index'; -import * as _operators from '../operators/index'; -export const operators = _operators; -import * as _testing from '../testing/index'; -export const testing = _testing; -import * as _ajax from '../ajax/index'; -export const ajax = _ajax; -import * as _webSocket from '../webSocket/index'; -export const webSocket = _webSocket; -import * as _fetch from '../fetch/index'; -export const fetch = _fetch; -//# sourceMappingURL=umd.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/umd.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/umd.js.map deleted file mode 100644 index a9cfe2857..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/umd.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"umd.js","sourceRoot":"","sources":["../../../src/internal/umd.ts"],"names":[],"mappings":"AAKA,cAAc,UAAU,CAAC;AAGzB,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAC;AAGpC,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAC7C,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC;AAGhC,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AACvC,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAC;AAG1B,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAC;AAGpC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/ArgumentOutOfRangeError.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/ArgumentOutOfRangeError.js deleted file mode 100755 index da0d113f4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/ArgumentOutOfRangeError.js +++ /dev/null @@ -1,7 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export const ArgumentOutOfRangeError = createErrorClass((_super) => function ArgumentOutOfRangeErrorImpl() { - _super(this); - this.name = 'ArgumentOutOfRangeError'; - this.message = 'argument out of range'; -}); -//# sourceMappingURL=ArgumentOutOfRangeError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/ArgumentOutOfRangeError.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/ArgumentOutOfRangeError.js.map deleted file mode 100644 index ba59cfbf2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/ArgumentOutOfRangeError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ArgumentOutOfRangeError.js","sourceRoot":"","sources":["../../../../src/internal/util/ArgumentOutOfRangeError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAsBtD,MAAM,CAAC,MAAM,uBAAuB,GAAgC,gBAAgB,CAClF,CAAC,MAAM,EAAE,EAAE,CACT,SAAS,2BAA2B;IAClC,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;IACtC,IAAI,CAAC,OAAO,GAAG,uBAAuB,CAAC;AACzC,CAAC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/EmptyError.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/EmptyError.js deleted file mode 100755 index de16998c0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/EmptyError.js +++ /dev/null @@ -1,7 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export const EmptyError = createErrorClass((_super) => function EmptyErrorImpl() { - _super(this); - this.name = 'EmptyError'; - this.message = 'no elements in sequence'; -}); -//# sourceMappingURL=EmptyError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/EmptyError.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/EmptyError.js.map deleted file mode 100644 index a82060622..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/EmptyError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EmptyError.js","sourceRoot":"","sources":["../../../../src/internal/util/EmptyError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAwBtD,MAAM,CAAC,MAAM,UAAU,GAAmB,gBAAgB,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,SAAS,cAAc;IAC5F,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IACzB,IAAI,CAAC,OAAO,GAAG,yBAAyB,CAAC;AAC3C,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/Immediate.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/Immediate.js deleted file mode 100755 index 8633e1dbc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/Immediate.js +++ /dev/null @@ -1,30 +0,0 @@ -let nextHandle = 1; -let resolved; -const activeHandles = {}; -function findAndClearHandle(handle) { - if (handle in activeHandles) { - delete activeHandles[handle]; - return true; - } - return false; -} -export const Immediate = { - setImmediate(cb) { - const handle = nextHandle++; - activeHandles[handle] = true; - if (!resolved) { - resolved = Promise.resolve(); - } - resolved.then(() => findAndClearHandle(handle) && cb()); - return handle; - }, - clearImmediate(handle) { - findAndClearHandle(handle); - }, -}; -export const TestTools = { - pending() { - return Object.keys(activeHandles).length; - } -}; -//# sourceMappingURL=Immediate.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/Immediate.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/Immediate.js.map deleted file mode 100644 index 9716813e0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/Immediate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Immediate.js","sourceRoot":"","sources":["../../../../src/internal/util/Immediate.ts"],"names":[],"mappings":"AAAA,IAAI,UAAU,GAAG,CAAC,CAAC;AAEnB,IAAI,QAAsB,CAAC;AAC3B,MAAM,aAAa,GAA2B,EAAE,CAAC;AAOjD,SAAS,kBAAkB,CAAC,MAAc;IACxC,IAAI,MAAM,IAAI,aAAa,EAAE;QAC3B,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;KACb;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAKD,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,YAAY,CAAC,EAAc;QACzB,MAAM,MAAM,GAAG,UAAU,EAAE,CAAC;QAC5B,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,QAAQ,EAAE;YACb,QAAQ,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;SAC9B;QACD,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kBAAkB,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACxD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,cAAc,CAAC,MAAc;QAC3B,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CACF,CAAC;AAKF,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,OAAO;QACL,OAAO,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC;IAC3C,CAAC;CACF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/NotFoundError.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/NotFoundError.js deleted file mode 100755 index f3f523b76..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/NotFoundError.js +++ /dev/null @@ -1,7 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export const NotFoundError = createErrorClass((_super) => function NotFoundErrorImpl(message) { - _super(this); - this.name = 'NotFoundError'; - this.message = message; -}); -//# sourceMappingURL=NotFoundError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/NotFoundError.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/NotFoundError.js.map deleted file mode 100644 index 02d209737..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/NotFoundError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NotFoundError.js","sourceRoot":"","sources":["../../../../src/internal/util/NotFoundError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAoBtD,MAAM,CAAC,MAAM,aAAa,GAAsB,gBAAgB,CAC9D,CAAC,MAAM,EAAE,EAAE,CACT,SAAS,iBAAiB,CAAY,OAAe;IACnD,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACzB,CAAC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js deleted file mode 100755 index 4f04e58f7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js +++ /dev/null @@ -1,7 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export const ObjectUnsubscribedError = createErrorClass((_super) => function ObjectUnsubscribedErrorImpl() { - _super(this); - this.name = 'ObjectUnsubscribedError'; - this.message = 'object unsubscribed'; -}); -//# sourceMappingURL=ObjectUnsubscribedError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js.map deleted file mode 100644 index ac07ceee6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/ObjectUnsubscribedError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ObjectUnsubscribedError.js","sourceRoot":"","sources":["../../../../src/internal/util/ObjectUnsubscribedError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAqBtD,MAAM,CAAC,MAAM,uBAAuB,GAAgC,gBAAgB,CAClF,CAAC,MAAM,EAAE,EAAE,CACT,SAAS,2BAA2B;IAClC,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;IACtC,IAAI,CAAC,OAAO,GAAG,qBAAqB,CAAC;AACvC,CAAC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/SequenceError.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/SequenceError.js deleted file mode 100755 index a1558ffd3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/SequenceError.js +++ /dev/null @@ -1,7 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export const SequenceError = createErrorClass((_super) => function SequenceErrorImpl(message) { - _super(this); - this.name = 'SequenceError'; - this.message = message; -}); -//# sourceMappingURL=SequenceError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/SequenceError.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/SequenceError.js.map deleted file mode 100644 index 550f93d70..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/SequenceError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SequenceError.js","sourceRoot":"","sources":["../../../../src/internal/util/SequenceError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAoBtD,MAAM,CAAC,MAAM,aAAa,GAAsB,gBAAgB,CAC9D,CAAC,MAAM,EAAE,EAAE,CACT,SAAS,iBAAiB,CAAY,OAAe;IACnD,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;IAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACzB,CAAC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js deleted file mode 100755 index e46ca565c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js +++ /dev/null @@ -1,11 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export const UnsubscriptionError = createErrorClass((_super) => function UnsubscriptionErrorImpl(errors) { - _super(this); - this.message = errors - ? `${errors.length} errors occurred during unsubscription: -${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` - : ''; - this.name = 'UnsubscriptionError'; - this.errors = errors; -}); -//# sourceMappingURL=UnsubscriptionError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js.map deleted file mode 100644 index bbfad225c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/UnsubscriptionError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UnsubscriptionError.js","sourceRoot":"","sources":["../../../../src/internal/util/UnsubscriptionError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAkBtD,MAAM,CAAC,MAAM,mBAAmB,GAA4B,gBAAgB,CAC1E,CAAC,MAAM,EAAE,EAAE,CACT,SAAS,uBAAuB,CAAY,MAA0B;IACpE,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,IAAI,CAAC,OAAO,GAAG,MAAM;QACnB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM;EACxB,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;QAC9D,CAAC,CAAC,EAAE,CAAC;IACP,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;IAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACvB,CAAC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/applyMixins.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/applyMixins.js deleted file mode 100755 index dfbeb913d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/applyMixins.js +++ /dev/null @@ -1,11 +0,0 @@ -export function applyMixins(derivedCtor, baseCtors) { - for (let i = 0, len = baseCtors.length; i < len; i++) { - const baseCtor = baseCtors[i]; - const propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype); - for (let j = 0, len2 = propertyKeys.length; j < len2; j++) { - const name = propertyKeys[j]; - derivedCtor.prototype[name] = baseCtor.prototype[name]; - } - } -} -//# sourceMappingURL=applyMixins.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/applyMixins.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/applyMixins.js.map deleted file mode 100644 index 99a61fa88..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/applyMixins.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"applyMixins.js","sourceRoot":"","sources":["../../../../src/internal/util/applyMixins.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW,CAAC,WAAgB,EAAE,SAAgB;IAC5D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;QACpD,MAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QAC9B,MAAM,YAAY,GAAG,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACpE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE;YACzD,MAAM,IAAI,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;YAC7B,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;SACxD;KACF;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/args.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/args.js deleted file mode 100755 index ead7fc561..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/args.js +++ /dev/null @@ -1,15 +0,0 @@ -import { isFunction } from './isFunction'; -import { isScheduler } from './isScheduler'; -function last(arr) { - return arr[arr.length - 1]; -} -export function popResultSelector(args) { - return isFunction(last(args)) ? args.pop() : undefined; -} -export function popScheduler(args) { - return isScheduler(last(args)) ? args.pop() : undefined; -} -export function popNumber(args, defaultValue) { - return typeof last(args) === 'number' ? args.pop() : defaultValue; -} -//# sourceMappingURL=args.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/args.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/args.js.map deleted file mode 100644 index 707c54c73..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/args.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"args.js","sourceRoot":"","sources":["../../../../src/internal/util/args.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,SAAS,IAAI,CAAI,GAAQ;IACvB,OAAO,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAW;IAC3C,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAW;IACtC,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,IAAW,EAAE,YAAoB;IACzD,OAAO,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAG,CAAC,CAAC,CAAC,YAAY,CAAC;AACrE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js deleted file mode 100755 index 210cec78b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js +++ /dev/null @@ -1,22 +0,0 @@ -const { isArray } = Array; -const { getPrototypeOf, prototype: objectProto, keys: getKeys } = Object; -export function argsArgArrayOrObject(args) { - if (args.length === 1) { - const first = args[0]; - if (isArray(first)) { - return { args: first, keys: null }; - } - if (isPOJO(first)) { - const keys = getKeys(first); - return { - args: keys.map((key) => first[key]), - keys, - }; - } - } - return { args: args, keys: null }; -} -function isPOJO(obj) { - return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto; -} -//# sourceMappingURL=argsArgArrayOrObject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js.map deleted file mode 100644 index 76c79495a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsArgArrayOrObject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"argsArgArrayOrObject.js","sourceRoot":"","sources":["../../../../src/internal/util/argsArgArrayOrObject.ts"],"names":[],"mappings":"AAAA,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAC1B,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC;AAQzE,MAAM,UAAU,oBAAoB,CAAiC,IAAuB;IAC1F,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACrB,MAAM,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;YAClB,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;SACpC;QACD,IAAI,MAAM,CAAC,KAAK,CAAC,EAAE;YACjB,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;YAC5B,OAAO;gBACL,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACnC,IAAI;aACL,CAAC;SACH;KACF;IAED,OAAO,EAAE,IAAI,EAAE,IAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC3C,CAAC;AAED,SAAS,MAAM,CAAC,GAAQ;IACtB,OAAO,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,cAAc,CAAC,GAAG,CAAC,KAAK,WAAW,CAAC;AAC/E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsOrArgArray.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsOrArgArray.js deleted file mode 100755 index 7f4cccf79..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsOrArgArray.js +++ /dev/null @@ -1,5 +0,0 @@ -const { isArray } = Array; -export function argsOrArgArray(args) { - return args.length === 1 && isArray(args[0]) ? args[0] : args; -} -//# sourceMappingURL=argsOrArgArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsOrArgArray.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsOrArgArray.js.map deleted file mode 100644 index 25584e93c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/argsOrArgArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"argsOrArgArray.js","sourceRoot":"","sources":["../../../../src/internal/util/argsOrArgArray.ts"],"names":[],"mappings":"AAAA,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAM1B,MAAM,UAAU,cAAc,CAAI,IAAiB;IACjD,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,IAAY,CAAC;AACzE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/arrRemove.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/arrRemove.js deleted file mode 100755 index c1909a3e7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/arrRemove.js +++ /dev/null @@ -1,7 +0,0 @@ -export function arrRemove(arr, item) { - if (arr) { - const index = arr.indexOf(item); - 0 <= index && arr.splice(index, 1); - } -} -//# sourceMappingURL=arrRemove.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/arrRemove.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/arrRemove.js.map deleted file mode 100644 index 035914691..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/arrRemove.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"arrRemove.js","sourceRoot":"","sources":["../../../../src/internal/util/arrRemove.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,SAAS,CAAI,GAA2B,EAAE,IAAO;IAC/D,IAAI,GAAG,EAAE;QACP,MAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC,IAAI,KAAK,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;KACpC;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/createErrorClass.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/createErrorClass.js deleted file mode 100755 index 1d2112e19..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/createErrorClass.js +++ /dev/null @@ -1,11 +0,0 @@ -export function createErrorClass(createImpl) { - const _super = (instance) => { - Error.call(instance); - instance.stack = new Error().stack; - }; - const ctorFunc = createImpl(_super); - ctorFunc.prototype = Object.create(Error.prototype); - ctorFunc.prototype.constructor = ctorFunc; - return ctorFunc; -} -//# sourceMappingURL=createErrorClass.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/createErrorClass.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/createErrorClass.js.map deleted file mode 100644 index 23869e4e9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/createErrorClass.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createErrorClass.js","sourceRoot":"","sources":["../../../../src/internal/util/createErrorClass.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,gBAAgB,CAAI,UAAgC;IAClE,MAAM,MAAM,GAAG,CAAC,QAAa,EAAE,EAAE;QAC/B,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrB,QAAQ,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC;IACrC,CAAC,CAAC;IAEF,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IACpC,QAAQ,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACpD,QAAQ,CAAC,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC;IAC1C,OAAO,QAAQ,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/createObject.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/createObject.js deleted file mode 100755 index d61c5d2b7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/createObject.js +++ /dev/null @@ -1,4 +0,0 @@ -export function createObject(keys, values) { - return keys.reduce((result, key, i) => ((result[key] = values[i]), result), {}); -} -//# sourceMappingURL=createObject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/createObject.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/createObject.js.map deleted file mode 100644 index a7d24c178..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/createObject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createObject.js","sourceRoot":"","sources":["../../../../src/internal/util/createObject.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,YAAY,CAAC,IAAc,EAAE,MAAa;IACxD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,EAAS,CAAC,CAAC;AACzF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/errorContext.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/errorContext.js deleted file mode 100755 index e0a92d120..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/errorContext.js +++ /dev/null @@ -1,28 +0,0 @@ -import { config } from '../config'; -let context = null; -export function errorContext(cb) { - if (config.useDeprecatedSynchronousErrorHandling) { - const isRoot = !context; - if (isRoot) { - context = { errorThrown: false, error: null }; - } - cb(); - if (isRoot) { - const { errorThrown, error } = context; - context = null; - if (errorThrown) { - throw error; - } - } - } - else { - cb(); - } -} -export function captureError(err) { - if (config.useDeprecatedSynchronousErrorHandling && context) { - context.errorThrown = true; - context.error = err; - } -} -//# sourceMappingURL=errorContext.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/errorContext.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/errorContext.js.map deleted file mode 100644 index 4eb66def2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/errorContext.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errorContext.js","sourceRoot":"","sources":["../../../../src/internal/util/errorContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,IAAI,OAAO,GAAgD,IAAI,CAAC;AAShE,MAAM,UAAU,YAAY,CAAC,EAAc;IACzC,IAAI,MAAM,CAAC,qCAAqC,EAAE;QAChD,MAAM,MAAM,GAAG,CAAC,OAAO,CAAC;QACxB,IAAI,MAAM,EAAE;YACV,OAAO,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;SAC/C;QACD,EAAE,EAAE,CAAC;QACL,IAAI,MAAM,EAAE;YACV,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,GAAG,OAAQ,CAAC;YACxC,OAAO,GAAG,IAAI,CAAC;YACf,IAAI,WAAW,EAAE;gBACf,MAAM,KAAK,CAAC;aACb;SACF;KACF;SAAM;QAGL,EAAE,EAAE,CAAC;KACN;AACH,CAAC;AAMD,MAAM,UAAU,YAAY,CAAC,GAAQ;IACnC,IAAI,MAAM,CAAC,qCAAqC,IAAI,OAAO,EAAE;QAC3D,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;QAC3B,OAAO,CAAC,KAAK,GAAG,GAAG,CAAC;KACrB;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/executeSchedule.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/executeSchedule.js deleted file mode 100755 index c823fcd21..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/executeSchedule.js +++ /dev/null @@ -1,16 +0,0 @@ -export function executeSchedule(parentSubscription, scheduler, work, delay = 0, repeat = false) { - const scheduleSubscription = scheduler.schedule(function () { - work(); - if (repeat) { - parentSubscription.add(this.schedule(null, delay)); - } - else { - this.unsubscribe(); - } - }, delay); - parentSubscription.add(scheduleSubscription); - if (!repeat) { - return scheduleSubscription; - } -} -//# sourceMappingURL=executeSchedule.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/executeSchedule.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/executeSchedule.js.map deleted file mode 100644 index beaccd143..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/executeSchedule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"executeSchedule.js","sourceRoot":"","sources":["../../../../src/internal/util/executeSchedule.ts"],"names":[],"mappings":"AAkBA,MAAM,UAAU,eAAe,CAC7B,kBAAgC,EAChC,SAAwB,EACxB,IAAgB,EAChB,KAAK,GAAG,CAAC,EACT,MAAM,GAAG,KAAK;IAEd,MAAM,oBAAoB,GAAG,SAAS,CAAC,QAAQ,CAAC;QAC9C,IAAI,EAAE,CAAC;QACP,IAAI,MAAM,EAAE;YACV,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;SACpD;aAAM;YACL,IAAI,CAAC,WAAW,EAAE,CAAC;SACpB;IACH,CAAC,EAAE,KAAK,CAAC,CAAC;IAEV,kBAAkB,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAE7C,IAAI,CAAC,MAAM,EAAE;QAKX,OAAO,oBAAoB,CAAC;KAC7B;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/identity.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/identity.js deleted file mode 100755 index 1084d77f2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/identity.js +++ /dev/null @@ -1,4 +0,0 @@ -export function identity(x) { - return x; -} -//# sourceMappingURL=identity.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/identity.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/identity.js.map deleted file mode 100644 index 28a2f4062..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/identity.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../../src/internal/util/identity.ts"],"names":[],"mappings":"AA0CA,MAAM,UAAU,QAAQ,CAAI,CAAI;IAC9B,OAAO,CAAC,CAAC;AACX,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isArrayLike.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isArrayLike.js deleted file mode 100755 index 393c8b893..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isArrayLike.js +++ /dev/null @@ -1,2 +0,0 @@ -export const isArrayLike = ((x) => x && typeof x.length === 'number' && typeof x !== 'function'); -//# sourceMappingURL=isArrayLike.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isArrayLike.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isArrayLike.js.map deleted file mode 100644 index 49b464d53..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isArrayLike.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isArrayLike.js","sourceRoot":"","sources":["../../../../src/internal/util/isArrayLike.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAI,CAAM,EAAqB,EAAE,CAAC,CAAC,IAAI,OAAO,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,UAAU,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js deleted file mode 100755 index 99da2ebc9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js +++ /dev/null @@ -1,5 +0,0 @@ -import { isFunction } from './isFunction'; -export function isAsyncIterable(obj) { - return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]); -} -//# sourceMappingURL=isAsyncIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js.map deleted file mode 100644 index 2e736bd4f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isAsyncIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isAsyncIterable.js","sourceRoot":"","sources":["../../../../src/internal/util/isAsyncIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,UAAU,eAAe,CAAI,GAAQ;IACzC,OAAO,MAAM,CAAC,aAAa,IAAI,UAAU,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;AACzE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isDate.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isDate.js deleted file mode 100755 index 74ddf327a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isDate.js +++ /dev/null @@ -1,4 +0,0 @@ -export function isValidDate(value) { - return value instanceof Date && !isNaN(value); -} -//# sourceMappingURL=isDate.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isDate.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isDate.js.map deleted file mode 100644 index 9e2ef136f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isDate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isDate.js","sourceRoot":"","sources":["../../../../src/internal/util/isDate.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,WAAW,CAAC,KAAU;IACpC,OAAO,KAAK,YAAY,IAAI,IAAI,CAAC,KAAK,CAAC,KAAY,CAAC,CAAC;AACvD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isFunction.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isFunction.js deleted file mode 100755 index 558eec7f6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isFunction.js +++ /dev/null @@ -1,4 +0,0 @@ -export function isFunction(value) { - return typeof value === 'function'; -} -//# sourceMappingURL=isFunction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isFunction.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isFunction.js.map deleted file mode 100644 index 452906c6e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isFunction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isFunction.js","sourceRoot":"","sources":["../../../../src/internal/util/isFunction.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,UAAU,CAAC,KAAU;IACnC,OAAO,OAAO,KAAK,KAAK,UAAU,CAAC;AACrC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js deleted file mode 100755 index da58ece24..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js +++ /dev/null @@ -1,6 +0,0 @@ -import { observable as Symbol_observable } from '../symbol/observable'; -import { isFunction } from './isFunction'; -export function isInteropObservable(input) { - return isFunction(input[Symbol_observable]); -} -//# sourceMappingURL=isInteropObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js.map deleted file mode 100644 index f5ddd94fe..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isInteropObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isInteropObservable.js","sourceRoot":"","sources":["../../../../src/internal/util/isInteropObservable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,UAAU,mBAAmB,CAAC,KAAU;IAC5C,OAAO,UAAU,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isIterable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isIterable.js deleted file mode 100755 index 20c52a68c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isIterable.js +++ /dev/null @@ -1,6 +0,0 @@ -import { iterator as Symbol_iterator } from '../symbol/iterator'; -import { isFunction } from './isFunction'; -export function isIterable(input) { - return isFunction(input === null || input === void 0 ? void 0 : input[Symbol_iterator]); -} -//# sourceMappingURL=isIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isIterable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isIterable.js.map deleted file mode 100644 index 353293110..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isIterable.js","sourceRoot":"","sources":["../../../../src/internal/util/isIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,UAAU,UAAU,CAAC,KAAU;IACnC,OAAO,UAAU,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,eAAe,CAAC,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isObservable.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isObservable.js deleted file mode 100755 index cc149c608..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isObservable.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Observable } from '../Observable'; -import { isFunction } from './isFunction'; -export function isObservable(obj) { - return !!obj && (obj instanceof Observable || (isFunction(obj.lift) && isFunction(obj.subscribe))); -} -//# sourceMappingURL=isObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isObservable.js.map deleted file mode 100644 index b82f9617f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isObservable.js","sourceRoot":"","sources":["../../../../src/internal/util/isObservable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,MAAM,UAAU,YAAY,CAAC,GAAQ;IAGnC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,YAAY,UAAU,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isPromise.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isPromise.js deleted file mode 100755 index 5114f67c3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isPromise.js +++ /dev/null @@ -1,5 +0,0 @@ -import { isFunction } from "./isFunction"; -export function isPromise(value) { - return isFunction(value === null || value === void 0 ? void 0 : value.then); -} -//# sourceMappingURL=isPromise.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isPromise.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isPromise.js.map deleted file mode 100644 index bb81d6065..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isPromise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isPromise.js","sourceRoot":"","sources":["../../../../src/internal/util/isPromise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,MAAM,UAAU,SAAS,CAAC,KAAU;IAClC,OAAO,UAAU,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js deleted file mode 100755 index bc75c6d99..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js +++ /dev/null @@ -1,23 +0,0 @@ -import { __asyncGenerator, __await } from "tslib"; -import { isFunction } from './isFunction'; -export function readableStreamLikeToAsyncGenerator(readableStream) { - return __asyncGenerator(this, arguments, function* readableStreamLikeToAsyncGenerator_1() { - const reader = readableStream.getReader(); - try { - while (true) { - const { value, done } = yield __await(reader.read()); - if (done) { - return yield __await(void 0); - } - yield yield __await(value); - } - } - finally { - reader.releaseLock(); - } - }); -} -export function isReadableStreamLike(obj) { - return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader); -} -//# sourceMappingURL=isReadableStreamLike.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js.map deleted file mode 100644 index 9635f7043..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isReadableStreamLike.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isReadableStreamLike.js","sourceRoot":"","sources":["../../../../src/internal/util/isReadableStreamLike.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,UAAiB,kCAAkC,CAAI,cAAqC;;QAChG,MAAM,MAAM,GAAG,cAAc,CAAC,SAAS,EAAE,CAAC;QAC1C,IAAI;YACF,OAAO,IAAI,EAAE;gBACX,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,cAAM,MAAM,CAAC,IAAI,EAAE,CAAA,CAAC;gBAC5C,IAAI,IAAI,EAAE;oBACR,6BAAO;iBACR;gBACD,oBAAM,KAAM,CAAA,CAAC;aACd;SACF;gBAAS;YACR,MAAM,CAAC,WAAW,EAAE,CAAC;SACtB;IACH,CAAC;CAAA;AAED,MAAM,UAAU,oBAAoB,CAAI,GAAQ;IAG9C,OAAO,UAAU,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,SAAS,CAAC,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isScheduler.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isScheduler.js deleted file mode 100755 index 05b4f3feb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isScheduler.js +++ /dev/null @@ -1,5 +0,0 @@ -import { isFunction } from './isFunction'; -export function isScheduler(value) { - return value && isFunction(value.schedule); -} -//# sourceMappingURL=isScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/isScheduler.js.map deleted file mode 100644 index 33c0d90d2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/isScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isScheduler.js","sourceRoot":"","sources":["../../../../src/internal/util/isScheduler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,UAAU,WAAW,CAAC,KAAU;IACpC,OAAO,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC7C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/lift.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/lift.js deleted file mode 100755 index 280b95f42..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/lift.js +++ /dev/null @@ -1,20 +0,0 @@ -import { isFunction } from './isFunction'; -export function hasLift(source) { - return isFunction(source === null || source === void 0 ? void 0 : source.lift); -} -export function operate(init) { - return (source) => { - if (hasLift(source)) { - return source.lift(function (liftedSource) { - try { - return init(liftedSource, this); - } - catch (err) { - this.error(err); - } - }); - } - throw new TypeError('Unable to lift unknown Observable type'); - }; -} -//# sourceMappingURL=lift.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/lift.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/lift.js.map deleted file mode 100644 index a4a2869b8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/lift.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lift.js","sourceRoot":"","sources":["../../../../src/internal/util/lift.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,MAAM,UAAU,OAAO,CAAC,MAAW;IACjC,OAAO,UAAU,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC,CAAC;AAClC,CAAC;AAMD,MAAM,UAAU,OAAO,CACrB,IAAqF;IAErF,OAAO,CAAC,MAAqB,EAAE,EAAE;QAC/B,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;YACnB,OAAO,MAAM,CAAC,IAAI,CAAC,UAA+B,YAA2B;gBAC3E,IAAI;oBACF,OAAO,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;iBACjC;gBAAC,OAAO,GAAG,EAAE;oBACZ,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACjB;YACH,CAAC,CAAC,CAAC;SACJ;QACD,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;IAChE,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js deleted file mode 100755 index faf7dc7cc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js +++ /dev/null @@ -1,9 +0,0 @@ -import { map } from "../operators/map"; -const { isArray } = Array; -function callOrApply(fn, args) { - return isArray(args) ? fn(...args) : fn(args); -} -export function mapOneOrManyArgs(fn) { - return map(args => callOrApply(fn, args)); -} -//# sourceMappingURL=mapOneOrManyArgs.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js.map deleted file mode 100644 index be9763f4d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/mapOneOrManyArgs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapOneOrManyArgs.js","sourceRoot":"","sources":["../../../../src/internal/util/mapOneOrManyArgs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAEvC,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;AAE1B,SAAS,WAAW,CAAO,EAA2B,EAAE,IAAW;IAC/D,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAMD,MAAM,UAAU,gBAAgB,CAAO,EAA2B;IAC9D,OAAO,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/noop.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/noop.js deleted file mode 100755 index 1a78a542e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/noop.js +++ /dev/null @@ -1,2 +0,0 @@ -export function noop() { } -//# sourceMappingURL=noop.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/noop.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/noop.js.map deleted file mode 100644 index 05e521a45..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/noop.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"noop.js","sourceRoot":"","sources":["../../../../src/internal/util/noop.ts"],"names":[],"mappings":"AACA,MAAM,UAAU,IAAI,KAAK,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/not.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/not.js deleted file mode 100755 index a388b0bbd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/not.js +++ /dev/null @@ -1,4 +0,0 @@ -export function not(pred, thisArg) { - return (value, index) => !pred.call(thisArg, value, index); -} -//# sourceMappingURL=not.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/not.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/not.js.map deleted file mode 100644 index 7062664b2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/not.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"not.js","sourceRoot":"","sources":["../../../../src/internal/util/not.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,CAAI,IAA0C,EAAE,OAAY;IAC7E,OAAO,CAAC,KAAQ,EAAE,KAAa,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AACxE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/pipe.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/pipe.js deleted file mode 100755 index fb1cccf1f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/pipe.js +++ /dev/null @@ -1,16 +0,0 @@ -import { identity } from './identity'; -export function pipe(...fns) { - return pipeFromArray(fns); -} -export function pipeFromArray(fns) { - if (fns.length === 0) { - return identity; - } - if (fns.length === 1) { - return fns[0]; - } - return function piped(input) { - return fns.reduce((prev, fn) => fn(prev), input); - }; -} -//# sourceMappingURL=pipe.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/pipe.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/pipe.js.map deleted file mode 100644 index c910717e9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/pipe.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pipe.js","sourceRoot":"","sources":["../../../../src/internal/util/pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AA6EtC,MAAM,UAAU,IAAI,CAAC,GAAG,GAAmC;IACzD,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC;AAGD,MAAM,UAAU,aAAa,CAAO,GAA+B;IACjE,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;QACpB,OAAO,QAAmC,CAAC;KAC5C;IAED,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;QACpB,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;KACf;IAED,OAAO,SAAS,KAAK,CAAC,KAAQ;QAC5B,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,IAAS,EAAE,EAAuB,EAAE,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAY,CAAC,CAAC;IACpF,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js deleted file mode 100755 index 9ce5f5667..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js +++ /dev/null @@ -1,14 +0,0 @@ -import { config } from '../config'; -import { timeoutProvider } from '../scheduler/timeoutProvider'; -export function reportUnhandledError(err) { - timeoutProvider.setTimeout(() => { - const { onUnhandledError } = config; - if (onUnhandledError) { - onUnhandledError(err); - } - else { - throw err; - } - }); -} -//# sourceMappingURL=reportUnhandledError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js.map deleted file mode 100644 index f76d2eb48..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/reportUnhandledError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reportUnhandledError.js","sourceRoot":"","sources":["../../../../src/internal/util/reportUnhandledError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAW/D,MAAM,UAAU,oBAAoB,CAAC,GAAQ;IAC3C,eAAe,CAAC,UAAU,CAAC,GAAG,EAAE;QAC9B,MAAM,EAAE,gBAAgB,EAAE,GAAG,MAAM,CAAC;QACpC,IAAI,gBAAgB,EAAE;YAEpB,gBAAgB,CAAC,GAAG,CAAC,CAAC;SACvB;aAAM;YAEL,MAAM,GAAG,CAAC;SACX;IACH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/subscribeToArray.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/subscribeToArray.js deleted file mode 100755 index 2693661a3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/subscribeToArray.js +++ /dev/null @@ -1,7 +0,0 @@ -export const subscribeToArray = (array) => (subscriber) => { - for (let i = 0, len = array.length; i < len && !subscriber.closed; i++) { - subscriber.next(array[i]); - } - subscriber.complete(); -}; -//# sourceMappingURL=subscribeToArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/subscribeToArray.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/subscribeToArray.js.map deleted file mode 100644 index cb13aea82..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/subscribeToArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subscribeToArray.js","sourceRoot":"","sources":["../../../../src/internal/util/subscribeToArray.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAI,KAAmB,EAAE,EAAE,CAAC,CAAC,UAAyB,EAAE,EAAE;IACxF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3B;IACD,UAAU,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js deleted file mode 100755 index dedd6675d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js +++ /dev/null @@ -1,4 +0,0 @@ -export function createInvalidObservableTypeError(input) { - return new TypeError(`You provided ${input !== null && typeof input === 'object' ? 'an invalid object' : `'${input}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`); -} -//# sourceMappingURL=throwUnobservableError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js.map deleted file mode 100644 index 24684b46d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/throwUnobservableError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwUnobservableError.js","sourceRoot":"","sources":["../../../../src/internal/util/throwUnobservableError.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,gCAAgC,CAAC,KAAU;IAEzD,OAAO,IAAI,SAAS,CAClB,gBACE,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,IAAI,KAAK,GAC/E,0HAA0H,CAC3H,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/workarounds.js b/WechatBot/node_modules/rxjs/dist/esm/internal/util/workarounds.js deleted file mode 100755 index 380c6e799..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/workarounds.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=workarounds.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/internal/util/workarounds.js.map b/WechatBot/node_modules/rxjs/dist/esm/internal/util/workarounds.js.map deleted file mode 100644 index 75e727142..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/internal/util/workarounds.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"workarounds.js","sourceRoot":"","sources":["../../../../src/internal/util/workarounds.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/operators/index.js b/WechatBot/node_modules/rxjs/dist/esm/operators/index.js deleted file mode 100755 index 79bbd8862..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/operators/index.js +++ /dev/null @@ -1,114 +0,0 @@ -export { audit } from '../internal/operators/audit'; -export { auditTime } from '../internal/operators/auditTime'; -export { buffer } from '../internal/operators/buffer'; -export { bufferCount } from '../internal/operators/bufferCount'; -export { bufferTime } from '../internal/operators/bufferTime'; -export { bufferToggle } from '../internal/operators/bufferToggle'; -export { bufferWhen } from '../internal/operators/bufferWhen'; -export { catchError } from '../internal/operators/catchError'; -export { combineAll } from '../internal/operators/combineAll'; -export { combineLatestAll } from '../internal/operators/combineLatestAll'; -export { combineLatest } from '../internal/operators/combineLatest'; -export { combineLatestWith } from '../internal/operators/combineLatestWith'; -export { concat } from '../internal/operators/concat'; -export { concatAll } from '../internal/operators/concatAll'; -export { concatMap } from '../internal/operators/concatMap'; -export { concatMapTo } from '../internal/operators/concatMapTo'; -export { concatWith } from '../internal/operators/concatWith'; -export { connect } from '../internal/operators/connect'; -export { count } from '../internal/operators/count'; -export { debounce } from '../internal/operators/debounce'; -export { debounceTime } from '../internal/operators/debounceTime'; -export { defaultIfEmpty } from '../internal/operators/defaultIfEmpty'; -export { delay } from '../internal/operators/delay'; -export { delayWhen } from '../internal/operators/delayWhen'; -export { dematerialize } from '../internal/operators/dematerialize'; -export { distinct } from '../internal/operators/distinct'; -export { distinctUntilChanged } from '../internal/operators/distinctUntilChanged'; -export { distinctUntilKeyChanged } from '../internal/operators/distinctUntilKeyChanged'; -export { elementAt } from '../internal/operators/elementAt'; -export { endWith } from '../internal/operators/endWith'; -export { every } from '../internal/operators/every'; -export { exhaust } from '../internal/operators/exhaust'; -export { exhaustAll } from '../internal/operators/exhaustAll'; -export { exhaustMap } from '../internal/operators/exhaustMap'; -export { expand } from '../internal/operators/expand'; -export { filter } from '../internal/operators/filter'; -export { finalize } from '../internal/operators/finalize'; -export { find } from '../internal/operators/find'; -export { findIndex } from '../internal/operators/findIndex'; -export { first } from '../internal/operators/first'; -export { groupBy } from '../internal/operators/groupBy'; -export { ignoreElements } from '../internal/operators/ignoreElements'; -export { isEmpty } from '../internal/operators/isEmpty'; -export { last } from '../internal/operators/last'; -export { map } from '../internal/operators/map'; -export { mapTo } from '../internal/operators/mapTo'; -export { materialize } from '../internal/operators/materialize'; -export { max } from '../internal/operators/max'; -export { merge } from '../internal/operators/merge'; -export { mergeAll } from '../internal/operators/mergeAll'; -export { flatMap } from '../internal/operators/flatMap'; -export { mergeMap } from '../internal/operators/mergeMap'; -export { mergeMapTo } from '../internal/operators/mergeMapTo'; -export { mergeScan } from '../internal/operators/mergeScan'; -export { mergeWith } from '../internal/operators/mergeWith'; -export { min } from '../internal/operators/min'; -export { multicast } from '../internal/operators/multicast'; -export { observeOn } from '../internal/operators/observeOn'; -export { onErrorResumeNext } from '../internal/operators/onErrorResumeNextWith'; -export { pairwise } from '../internal/operators/pairwise'; -export { partition } from '../internal/operators/partition'; -export { pluck } from '../internal/operators/pluck'; -export { publish } from '../internal/operators/publish'; -export { publishBehavior } from '../internal/operators/publishBehavior'; -export { publishLast } from '../internal/operators/publishLast'; -export { publishReplay } from '../internal/operators/publishReplay'; -export { race } from '../internal/operators/race'; -export { raceWith } from '../internal/operators/raceWith'; -export { reduce } from '../internal/operators/reduce'; -export { repeat } from '../internal/operators/repeat'; -export { repeatWhen } from '../internal/operators/repeatWhen'; -export { retry } from '../internal/operators/retry'; -export { retryWhen } from '../internal/operators/retryWhen'; -export { refCount } from '../internal/operators/refCount'; -export { sample } from '../internal/operators/sample'; -export { sampleTime } from '../internal/operators/sampleTime'; -export { scan } from '../internal/operators/scan'; -export { sequenceEqual } from '../internal/operators/sequenceEqual'; -export { share } from '../internal/operators/share'; -export { shareReplay } from '../internal/operators/shareReplay'; -export { single } from '../internal/operators/single'; -export { skip } from '../internal/operators/skip'; -export { skipLast } from '../internal/operators/skipLast'; -export { skipUntil } from '../internal/operators/skipUntil'; -export { skipWhile } from '../internal/operators/skipWhile'; -export { startWith } from '../internal/operators/startWith'; -export { subscribeOn } from '../internal/operators/subscribeOn'; -export { switchAll } from '../internal/operators/switchAll'; -export { switchMap } from '../internal/operators/switchMap'; -export { switchMapTo } from '../internal/operators/switchMapTo'; -export { switchScan } from '../internal/operators/switchScan'; -export { take } from '../internal/operators/take'; -export { takeLast } from '../internal/operators/takeLast'; -export { takeUntil } from '../internal/operators/takeUntil'; -export { takeWhile } from '../internal/operators/takeWhile'; -export { tap } from '../internal/operators/tap'; -export { throttle } from '../internal/operators/throttle'; -export { throttleTime } from '../internal/operators/throttleTime'; -export { throwIfEmpty } from '../internal/operators/throwIfEmpty'; -export { timeInterval } from '../internal/operators/timeInterval'; -export { timeout } from '../internal/operators/timeout'; -export { timeoutWith } from '../internal/operators/timeoutWith'; -export { timestamp } from '../internal/operators/timestamp'; -export { toArray } from '../internal/operators/toArray'; -export { window } from '../internal/operators/window'; -export { windowCount } from '../internal/operators/windowCount'; -export { windowTime } from '../internal/operators/windowTime'; -export { windowToggle } from '../internal/operators/windowToggle'; -export { windowWhen } from '../internal/operators/windowWhen'; -export { withLatestFrom } from '../internal/operators/withLatestFrom'; -export { zip } from '../internal/operators/zip'; -export { zipAll } from '../internal/operators/zipAll'; -export { zipWith } from '../internal/operators/zipWith'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/operators/index.js.map b/WechatBot/node_modules/rxjs/dist/esm/operators/index.js.map deleted file mode 100644 index 9028717be..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/operators/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operators/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;A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tE,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/testing/index.js b/WechatBot/node_modules/rxjs/dist/esm/testing/index.js deleted file mode 100755 index f0f7b53c2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/testing/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { TestScheduler } from '../internal/testing/TestScheduler'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/testing/index.js.map b/WechatBot/node_modules/rxjs/dist/esm/testing/index.js.map deleted file mode 100644 index bc7fd0d18..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/testing/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAc,MAAM,mCAAmC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/webSocket/index.js b/WechatBot/node_modules/rxjs/dist/esm/webSocket/index.js deleted file mode 100755 index a4bb4ea07..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/webSocket/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export { webSocket as webSocket } from '../internal/observable/dom/webSocket'; -export { WebSocketSubject } from '../internal/observable/dom/WebSocketSubject'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm/webSocket/index.js.map b/WechatBot/node_modules/rxjs/dist/esm/webSocket/index.js.map deleted file mode 100644 index 0912982e9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm/webSocket/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/webSocket/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAA0B,MAAM,6CAA6C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/ajax/index.js b/WechatBot/node_modules/rxjs/dist/esm5/ajax/index.js deleted file mode 100755 index e387b2b3d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/ajax/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export { ajax } from '../internal/ajax/ajax'; -export { AjaxError, AjaxTimeoutError } from '../internal/ajax/errors'; -export { AjaxResponse } from '../internal/ajax/AjaxResponse'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/ajax/index.js.map b/WechatBot/node_modules/rxjs/dist/esm5/ajax/index.js.map deleted file mode 100644 index d45ff17c0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/ajax/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ajax/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/fetch/index.js b/WechatBot/node_modules/rxjs/dist/esm5/fetch/index.js deleted file mode 100755 index e851987c6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/fetch/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { fromFetch } from '../internal/observable/dom/fetch'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/fetch/index.js.map b/WechatBot/node_modules/rxjs/dist/esm5/fetch/index.js.map deleted file mode 100644 index 75fe99b3c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/fetch/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/fetch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/index.js b/WechatBot/node_modules/rxjs/dist/esm5/index.js deleted file mode 100755 index cda695ddf..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/index.js +++ /dev/null @@ -1,169 +0,0 @@ -export { Observable } from './internal/Observable'; -export { ConnectableObservable } from './internal/observable/ConnectableObservable'; -export { observable } from './internal/symbol/observable'; -export { animationFrames } from './internal/observable/dom/animationFrames'; -export { Subject } from './internal/Subject'; -export { BehaviorSubject } from './internal/BehaviorSubject'; -export { ReplaySubject } from './internal/ReplaySubject'; -export { AsyncSubject } from './internal/AsyncSubject'; -export { asap, asapScheduler } from './internal/scheduler/asap'; -export { async, asyncScheduler } from './internal/scheduler/async'; -export { queue, queueScheduler } from './internal/scheduler/queue'; -export { animationFrame, animationFrameScheduler } from './internal/scheduler/animationFrame'; -export { VirtualTimeScheduler, VirtualAction } from './internal/scheduler/VirtualTimeScheduler'; -export { Scheduler } from './internal/Scheduler'; -export { Subscription } from './internal/Subscription'; -export { Subscriber } from './internal/Subscriber'; -export { Notification, NotificationKind } from './internal/Notification'; -export { pipe } from './internal/util/pipe'; -export { noop } from './internal/util/noop'; -export { identity } from './internal/util/identity'; -export { isObservable } from './internal/util/isObservable'; -export { lastValueFrom } from './internal/lastValueFrom'; -export { firstValueFrom } from './internal/firstValueFrom'; -export { ArgumentOutOfRangeError } from './internal/util/ArgumentOutOfRangeError'; -export { EmptyError } from './internal/util/EmptyError'; -export { NotFoundError } from './internal/util/NotFoundError'; -export { ObjectUnsubscribedError } from './internal/util/ObjectUnsubscribedError'; -export { SequenceError } from './internal/util/SequenceError'; -export { TimeoutError } from './internal/operators/timeout'; -export { UnsubscriptionError } from './internal/util/UnsubscriptionError'; -export { bindCallback } from './internal/observable/bindCallback'; -export { bindNodeCallback } from './internal/observable/bindNodeCallback'; -export { combineLatest } from './internal/observable/combineLatest'; -export { concat } from './internal/observable/concat'; -export { connectable } from './internal/observable/connectable'; -export { defer } from './internal/observable/defer'; -export { empty } from './internal/observable/empty'; -export { forkJoin } from './internal/observable/forkJoin'; -export { from } from './internal/observable/from'; -export { fromEvent } from './internal/observable/fromEvent'; -export { fromEventPattern } from './internal/observable/fromEventPattern'; -export { generate } from './internal/observable/generate'; -export { iif } from './internal/observable/iif'; -export { interval } from './internal/observable/interval'; -export { merge } from './internal/observable/merge'; -export { never } from './internal/observable/never'; -export { of } from './internal/observable/of'; -export { onErrorResumeNext } from './internal/observable/onErrorResumeNext'; -export { pairs } from './internal/observable/pairs'; -export { partition } from './internal/observable/partition'; -export { race } from './internal/observable/race'; -export { range } from './internal/observable/range'; -export { throwError } from './internal/observable/throwError'; -export { timer } from './internal/observable/timer'; -export { using } from './internal/observable/using'; -export { zip } from './internal/observable/zip'; -export { scheduled } from './internal/scheduled/scheduled'; -export { EMPTY } from './internal/observable/empty'; -export { NEVER } from './internal/observable/never'; -export * from './internal/types'; -export { config } from './internal/config'; -export { audit } from './internal/operators/audit'; -export { auditTime } from './internal/operators/auditTime'; -export { buffer } from './internal/operators/buffer'; -export { bufferCount } from './internal/operators/bufferCount'; -export { bufferTime } from './internal/operators/bufferTime'; -export { bufferToggle } from './internal/operators/bufferToggle'; -export { bufferWhen } from './internal/operators/bufferWhen'; -export { catchError } from './internal/operators/catchError'; -export { combineAll } from './internal/operators/combineAll'; -export { combineLatestAll } from './internal/operators/combineLatestAll'; -export { combineLatestWith } from './internal/operators/combineLatestWith'; -export { concatAll } from './internal/operators/concatAll'; -export { concatMap } from './internal/operators/concatMap'; -export { concatMapTo } from './internal/operators/concatMapTo'; -export { concatWith } from './internal/operators/concatWith'; -export { connect } from './internal/operators/connect'; -export { count } from './internal/operators/count'; -export { debounce } from './internal/operators/debounce'; -export { debounceTime } from './internal/operators/debounceTime'; -export { defaultIfEmpty } from './internal/operators/defaultIfEmpty'; -export { delay } from './internal/operators/delay'; -export { delayWhen } from './internal/operators/delayWhen'; -export { dematerialize } from './internal/operators/dematerialize'; -export { distinct } from './internal/operators/distinct'; -export { distinctUntilChanged } from './internal/operators/distinctUntilChanged'; -export { distinctUntilKeyChanged } from './internal/operators/distinctUntilKeyChanged'; -export { elementAt } from './internal/operators/elementAt'; -export { endWith } from './internal/operators/endWith'; -export { every } from './internal/operators/every'; -export { exhaust } from './internal/operators/exhaust'; -export { exhaustAll } from './internal/operators/exhaustAll'; -export { exhaustMap } from './internal/operators/exhaustMap'; -export { expand } from './internal/operators/expand'; -export { filter } from './internal/operators/filter'; -export { finalize } from './internal/operators/finalize'; -export { find } from './internal/operators/find'; -export { findIndex } from './internal/operators/findIndex'; -export { first } from './internal/operators/first'; -export { groupBy } from './internal/operators/groupBy'; -export { ignoreElements } from './internal/operators/ignoreElements'; -export { isEmpty } from './internal/operators/isEmpty'; -export { last } from './internal/operators/last'; -export { map } from './internal/operators/map'; -export { mapTo } from './internal/operators/mapTo'; -export { materialize } from './internal/operators/materialize'; -export { max } from './internal/operators/max'; -export { mergeAll } from './internal/operators/mergeAll'; -export { flatMap } from './internal/operators/flatMap'; -export { mergeMap } from './internal/operators/mergeMap'; -export { mergeMapTo } from './internal/operators/mergeMapTo'; -export { mergeScan } from './internal/operators/mergeScan'; -export { mergeWith } from './internal/operators/mergeWith'; -export { min } from './internal/operators/min'; -export { multicast } from './internal/operators/multicast'; -export { observeOn } from './internal/operators/observeOn'; -export { onErrorResumeNextWith } from './internal/operators/onErrorResumeNextWith'; -export { pairwise } from './internal/operators/pairwise'; -export { pluck } from './internal/operators/pluck'; -export { publish } from './internal/operators/publish'; -export { publishBehavior } from './internal/operators/publishBehavior'; -export { publishLast } from './internal/operators/publishLast'; -export { publishReplay } from './internal/operators/publishReplay'; -export { raceWith } from './internal/operators/raceWith'; -export { reduce } from './internal/operators/reduce'; -export { repeat } from './internal/operators/repeat'; -export { repeatWhen } from './internal/operators/repeatWhen'; -export { retry } from './internal/operators/retry'; -export { retryWhen } from './internal/operators/retryWhen'; -export { refCount } from './internal/operators/refCount'; -export { sample } from './internal/operators/sample'; -export { sampleTime } from './internal/operators/sampleTime'; -export { scan } from './internal/operators/scan'; -export { sequenceEqual } from './internal/operators/sequenceEqual'; -export { share } from './internal/operators/share'; -export { shareReplay } from './internal/operators/shareReplay'; -export { single } from './internal/operators/single'; -export { skip } from './internal/operators/skip'; -export { skipLast } from './internal/operators/skipLast'; -export { skipUntil } from './internal/operators/skipUntil'; -export { skipWhile } from './internal/operators/skipWhile'; -export { startWith } from './internal/operators/startWith'; -export { subscribeOn } from './internal/operators/subscribeOn'; -export { switchAll } from './internal/operators/switchAll'; -export { switchMap } from './internal/operators/switchMap'; -export { switchMapTo } from './internal/operators/switchMapTo'; -export { switchScan } from './internal/operators/switchScan'; -export { take } from './internal/operators/take'; -export { takeLast } from './internal/operators/takeLast'; -export { takeUntil } from './internal/operators/takeUntil'; -export { takeWhile } from './internal/operators/takeWhile'; -export { tap } from './internal/operators/tap'; -export { throttle } from './internal/operators/throttle'; -export { throttleTime } from './internal/operators/throttleTime'; -export { throwIfEmpty } from './internal/operators/throwIfEmpty'; -export { timeInterval } from './internal/operators/timeInterval'; -export { timeout } from './internal/operators/timeout'; -export { timeoutWith } from './internal/operators/timeoutWith'; -export { timestamp } from './internal/operators/timestamp'; -export { toArray } from './internal/operators/toArray'; -export { window } from './internal/operators/window'; -export { windowCount } from './internal/operators/windowCount'; -export { windowTime } from './internal/operators/windowTime'; -export { windowToggle } from './internal/operators/windowToggle'; -export { windowWhen } from './internal/operators/windowWhen'; -export { withLatestFrom } from './internal/operators/withLatestFrom'; -export { zipAll } from './internal/operators/zipAll'; -export { zipWith } from './internal/operators/zipWith'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/index.js.map b/WechatBot/node_modules/rxjs/dist/esm5/index.js.map deleted file mode 100644 index c8082be4a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAGpF,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAG5E,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGvD,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,I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,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/AnyCatcher.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/AnyCatcher.js deleted file mode 100755 index 4bc63fdc9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/AnyCatcher.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=AnyCatcher.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/AnyCatcher.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/AnyCatcher.js.map deleted file mode 100644 index 83e9e18f8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/AnyCatcher.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AnyCatcher.js","sourceRoot":"","sources":["../../../src/internal/AnyCatcher.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/AsyncSubject.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/AsyncSubject.js deleted file mode 100755 index 0513c21d8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/AsyncSubject.js +++ /dev/null @@ -1,39 +0,0 @@ -import { __extends } from "tslib"; -import { Subject } from './Subject'; -var AsyncSubject = (function (_super) { - __extends(AsyncSubject, _super); - function AsyncSubject() { - var _this = _super !== null && _super.apply(this, arguments) || this; - _this._value = null; - _this._hasValue = false; - _this._isComplete = false; - return _this; - } - AsyncSubject.prototype._checkFinalizedStatuses = function (subscriber) { - var _a = this, hasError = _a.hasError, _hasValue = _a._hasValue, _value = _a._value, thrownError = _a.thrownError, isStopped = _a.isStopped, _isComplete = _a._isComplete; - if (hasError) { - subscriber.error(thrownError); - } - else if (isStopped || _isComplete) { - _hasValue && subscriber.next(_value); - subscriber.complete(); - } - }; - AsyncSubject.prototype.next = function (value) { - if (!this.isStopped) { - this._value = value; - this._hasValue = true; - } - }; - AsyncSubject.prototype.complete = function () { - var _a = this, _hasValue = _a._hasValue, _value = _a._value, _isComplete = _a._isComplete; - if (!_isComplete) { - this._isComplete = true; - _hasValue && _super.prototype.next.call(this, _value); - _super.prototype.complete.call(this); - } - }; - return AsyncSubject; -}(Subject)); -export { AsyncSubject }; -//# sourceMappingURL=AsyncSubject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/AsyncSubject.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/AsyncSubject.js.map deleted file mode 100644 index be1ba9964..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/AsyncSubject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsyncSubject.js","sourceRoot":"","sources":["../../../src/internal/AsyncSubject.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC;IAAqC,gCAAU;IAA/C;QAAA,qEA+BC;QA9BS,YAAM,GAAa,IAAI,CAAC;QACxB,eAAS,GAAG,KAAK,CAAC;QAClB,iBAAW,GAAG,KAAK,CAAC;;IA4B9B,CAAC;IAzBW,8CAAuB,GAAjC,UAAkC,UAAyB;QACnD,IAAA,KAAuE,IAAI,EAAzE,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,MAAM,YAAA,EAAE,WAAW,iBAAA,EAAE,SAAS,eAAA,EAAE,WAAW,iBAAS,CAAC;QAClF,IAAI,QAAQ,EAAE;YACZ,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;SAC/B;aAAM,IAAI,SAAS,IAAI,WAAW,EAAE;YACnC,SAAS,IAAI,UAAU,CAAC,IAAI,CAAC,MAAO,CAAC,CAAC;YACtC,UAAU,CAAC,QAAQ,EAAE,CAAC;SACvB;IACH,CAAC;IAED,2BAAI,GAAJ,UAAK,KAAQ;QACX,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACnB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YACpB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;SACvB;IACH,CAAC;IAED,+BAAQ,GAAR;QACQ,IAAA,KAAqC,IAAI,EAAvC,SAAS,eAAA,EAAE,MAAM,YAAA,EAAE,WAAW,iBAAS,CAAC;QAChD,IAAI,CAAC,WAAW,EAAE;YAChB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;YACxB,SAAS,IAAI,iBAAM,IAAI,YAAC,MAAO,CAAC,CAAC;YACjC,iBAAM,QAAQ,WAAE,CAAC;SAClB;IACH,CAAC;IACH,mBAAC;AAAD,CAAC,AA/BD,CAAqC,OAAO,GA+B3C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js deleted file mode 100755 index b74e7e272..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js +++ /dev/null @@ -1,36 +0,0 @@ -import { __extends } from "tslib"; -import { Subject } from './Subject'; -var BehaviorSubject = (function (_super) { - __extends(BehaviorSubject, _super); - function BehaviorSubject(_value) { - var _this = _super.call(this) || this; - _this._value = _value; - return _this; - } - Object.defineProperty(BehaviorSubject.prototype, "value", { - get: function () { - return this.getValue(); - }, - enumerable: false, - configurable: true - }); - BehaviorSubject.prototype._subscribe = function (subscriber) { - var subscription = _super.prototype._subscribe.call(this, subscriber); - !subscription.closed && subscriber.next(this._value); - return subscription; - }; - BehaviorSubject.prototype.getValue = function () { - var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, _value = _a._value; - if (hasError) { - throw thrownError; - } - this._throwIfClosed(); - return _value; - }; - BehaviorSubject.prototype.next = function (value) { - _super.prototype.next.call(this, (this._value = value)); - }; - return BehaviorSubject; -}(Subject)); -export { BehaviorSubject }; -//# sourceMappingURL=BehaviorSubject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js.map deleted file mode 100644 index 88510195b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BehaviorSubject.js","sourceRoot":"","sources":["../../../src/internal/BehaviorSubject.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAUpC;IAAwC,mCAAU;IAChD,yBAAoB,MAAS;QAA7B,YACE,iBAAO,SACR;QAFmB,YAAM,GAAN,MAAM,CAAG;;IAE7B,CAAC;IAED,sBAAI,kCAAK;aAAT;YACE,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;QACzB,CAAC;;;OAAA;IAGS,oCAAU,GAApB,UAAqB,UAAyB;QAC5C,IAAM,YAAY,GAAG,iBAAM,UAAU,YAAC,UAAU,CAAC,CAAC;QAClD,CAAC,YAAY,CAAC,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrD,OAAO,YAAY,CAAC;IACtB,CAAC;IAED,kCAAQ,GAAR;QACQ,IAAA,KAAoC,IAAI,EAAtC,QAAQ,cAAA,EAAE,WAAW,iBAAA,EAAE,MAAM,YAAS,CAAC;QAC/C,IAAI,QAAQ,EAAE;YACZ,MAAM,WAAW,CAAC;SACnB;QACD,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,8BAAI,GAAJ,UAAK,KAAQ;QACX,iBAAM,IAAI,YAAC,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC,CAAC;IACpC,CAAC;IACH,sBAAC;AAAD,CAAC,AA5BD,CAAwC,OAAO,GA4B9C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Notification.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/Notification.js deleted file mode 100755 index 8670ae55c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Notification.js +++ /dev/null @@ -1,72 +0,0 @@ -import { EMPTY } from './observable/empty'; -import { of } from './observable/of'; -import { throwError } from './observable/throwError'; -import { isFunction } from './util/isFunction'; -export var NotificationKind; -(function (NotificationKind) { - NotificationKind["NEXT"] = "N"; - NotificationKind["ERROR"] = "E"; - NotificationKind["COMPLETE"] = "C"; -})(NotificationKind || (NotificationKind = {})); -var Notification = (function () { - function Notification(kind, value, error) { - this.kind = kind; - this.value = value; - this.error = error; - this.hasValue = kind === 'N'; - } - Notification.prototype.observe = function (observer) { - return observeNotification(this, observer); - }; - Notification.prototype.do = function (nextHandler, errorHandler, completeHandler) { - var _a = this, kind = _a.kind, value = _a.value, error = _a.error; - return kind === 'N' ? nextHandler === null || nextHandler === void 0 ? void 0 : nextHandler(value) : kind === 'E' ? errorHandler === null || errorHandler === void 0 ? void 0 : errorHandler(error) : completeHandler === null || completeHandler === void 0 ? void 0 : completeHandler(); - }; - Notification.prototype.accept = function (nextOrObserver, error, complete) { - var _a; - return isFunction((_a = nextOrObserver) === null || _a === void 0 ? void 0 : _a.next) - ? this.observe(nextOrObserver) - : this.do(nextOrObserver, error, complete); - }; - Notification.prototype.toObservable = function () { - var _a = this, kind = _a.kind, value = _a.value, error = _a.error; - var result = kind === 'N' - ? - of(value) - : - kind === 'E' - ? - throwError(function () { return error; }) - : - kind === 'C' - ? - EMPTY - : - 0; - if (!result) { - throw new TypeError("Unexpected notification kind " + kind); - } - return result; - }; - Notification.createNext = function (value) { - return new Notification('N', value); - }; - Notification.createError = function (err) { - return new Notification('E', undefined, err); - }; - Notification.createComplete = function () { - return Notification.completeNotification; - }; - Notification.completeNotification = new Notification('C'); - return Notification; -}()); -export { Notification }; -export function observeNotification(notification, observer) { - var _a, _b, _c; - var _d = notification, kind = _d.kind, value = _d.value, error = _d.error; - if (typeof kind !== 'string') { - throw new TypeError('Invalid notification, missing "kind"'); - } - kind === 'N' ? (_a = observer.next) === null || _a === void 0 ? void 0 : _a.call(observer, value) : kind === 'E' ? (_b = observer.error) === null || _b === void 0 ? void 0 : _b.call(observer, error) : (_c = observer.complete) === null || _c === void 0 ? void 0 : _c.call(observer); -} -//# sourceMappingURL=Notification.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Notification.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/Notification.js.map deleted file mode 100644 index 60c5a7a42..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Notification.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Notification.js","sourceRoot":"","sources":["../../../src/internal/Notification.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAO/C,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,8BAAU,CAAA;IACV,+BAAW,CAAA;IACX,kCAAc,CAAA;AAChB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAkBD;IA6BE,sBAA4B,IAAqB,EAAkB,KAAS,EAAkB,KAAW;QAA7E,SAAI,GAAJ,IAAI,CAAiB;QAAkB,UAAK,GAAL,KAAK,CAAI;QAAkB,UAAK,GAAL,KAAK,CAAM;QACvG,IAAI,CAAC,QAAQ,GAAG,IAAI,KAAK,GAAG,CAAC;IAC/B,CAA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IAAI,SAAS,CAAC,kCAAgC,IAAM,CAAC,CAAC;SAC7D;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAeM,uBAAU,GAAjB,UAAqB,KAAQ;QAC3B,OAAO,IAAI,YAAY,CAAC,GAAG,EAAE,KAAK,CAA0C,CAAC;IAC/E,CAAC;IAcM,wBAAW,GAAlB,UAAmB,GAAS;QAC1B,OAAO,IAAI,YAAY,CAAC,GAAG,EAAE,SAAS,EAAE,GAAG,CAA4C,CAAC;IAC1F,CAAC;IAWM,2BAAc,GAArB;QACE,OAAO,YAAY,CAAC,oBAAoB,CAAC;IAC3C,CAAC;IA5Cc,iCAAoB,GAAG,IAAI,YAAY,CAAC,GAAG,CAA+C,CAAC;IA6C5G,mBAAC;CAAA,AAjMD,IAiMC;SAjMY,YAAY;AA0MzB,MAAM,UAAU,mBAAmB,CAAI,YAAuC,EAAE,QAA4B;;IACpG,IAAA,KAAyB,YAAmB,EAA1C,IAAI,UAAA,EAAE,KAAK,WAAA,EAAE,KAAK,WAAwB,CAAC;IACnD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI,SAAS,CAAC,sCAAsC,CAAC,CAAC;KAC7D;IACD,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,MAAA,QAAQ,CAAC,IAAI,+CAAb,QAAQ,EAAQ,KAAM,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,MAAA,QAAQ,CAAC,KAAK,+CAAd,QAAQ,EAAS,KAAK,CAAC,CAAC,CAAC,CAAC,MAAA,QAAQ,CAAC,QAAQ,+CAAjB,QAAQ,CAAa,CAAC;AAC1G,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js deleted file mode 100755 index 6a3de7fa8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js +++ /dev/null @@ -1,15 +0,0 @@ -export var COMPLETE_NOTIFICATION = (function () { return createNotification('C', undefined, undefined); })(); -export function errorNotification(error) { - return createNotification('E', undefined, error); -} -export function nextNotification(value) { - return createNotification('N', value, undefined); -} -export function createNotification(kind, value, error) { - return { - kind: kind, - value: value, - error: error, - }; -} -//# sourceMappingURL=NotificationFactories.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map deleted file mode 100644 index 4b7775d56..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/NotificationFactories.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NotificationFactories.js","sourceRoot":"","sources":["../../../src/internal/NotificationFactories.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,IAAM,qBAAqB,GAAG,CAAC,cAAM,OAAA,kBAAkB,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,CAAyB,EAArE,CAAqE,CAAC,EAAE,CAAC;AAOrH,MAAM,UAAU,iBAAiB,CAAC,KAAU;IAC1C,OAAO,kBAAkB,CAAC,GAAG,EAAE,SAAS,EAAE,KAAK,CAAQ,CAAC;AAC1D,CAAC;AAOD,MAAM,UAAU,gBAAgB,CAAI,KAAQ;IAC1C,OAAO,kBAAkB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,CAAwB,CAAC;AAC1E,CAAC;AAQD,MAAM,UAAU,kBAAkB,CAAC,IAAqB,EAAE,KAAU,EAAE,KAAU;IAC9E,OAAO;QACL,IAAI,MAAA;QACJ,KAAK,OAAA;QACL,KAAK,OAAA;KACN,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Observable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/Observable.js deleted file mode 100755 index 28a041f36..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Observable.js +++ /dev/null @@ -1,102 +0,0 @@ -import { SafeSubscriber, Subscriber } from './Subscriber'; -import { isSubscription } from './Subscription'; -import { observable as Symbol_observable } from './symbol/observable'; -import { pipeFromArray } from './util/pipe'; -import { config } from './config'; -import { isFunction } from './util/isFunction'; -import { errorContext } from './util/errorContext'; -var Observable = (function () { - function Observable(subscribe) { - if (subscribe) { - this._subscribe = subscribe; - } - } - Observable.prototype.lift = function (operator) { - var observable = new Observable(); - observable.source = this; - observable.operator = operator; - return observable; - }; - Observable.prototype.subscribe = function (observerOrNext, error, complete) { - var _this = this; - var subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete); - errorContext(function () { - var _a = _this, operator = _a.operator, source = _a.source; - subscriber.add(operator - ? - operator.call(subscriber, source) - : source - ? - _this._subscribe(subscriber) - : - _this._trySubscribe(subscriber)); - }); - return subscriber; - }; - Observable.prototype._trySubscribe = function (sink) { - try { - return this._subscribe(sink); - } - catch (err) { - sink.error(err); - } - }; - Observable.prototype.forEach = function (next, promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function (resolve, reject) { - var subscriber = new SafeSubscriber({ - next: function (value) { - try { - next(value); - } - catch (err) { - reject(err); - subscriber.unsubscribe(); - } - }, - error: reject, - complete: resolve, - }); - _this.subscribe(subscriber); - }); - }; - Observable.prototype._subscribe = function (subscriber) { - var _a; - return (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber); - }; - Observable.prototype[Symbol_observable] = function () { - return this; - }; - Observable.prototype.pipe = function () { - var operations = []; - for (var _i = 0; _i < arguments.length; _i++) { - operations[_i] = arguments[_i]; - } - return pipeFromArray(operations)(this); - }; - Observable.prototype.toPromise = function (promiseCtor) { - var _this = this; - promiseCtor = getPromiseCtor(promiseCtor); - return new promiseCtor(function (resolve, reject) { - var value; - _this.subscribe(function (x) { return (value = x); }, function (err) { return reject(err); }, function () { return resolve(value); }); - }); - }; - Observable.create = function (subscribe) { - return new Observable(subscribe); - }; - return Observable; -}()); -export { Observable }; -function getPromiseCtor(promiseCtor) { - var _a; - return (_a = promiseCtor !== null && promiseCtor !== void 0 ? promiseCtor : config.Promise) !== null && _a !== void 0 ? _a : Promise; -} -function isObserver(value) { - return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete); -} -function isSubscriber(value) { - return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value)); -} -//# sourceMappingURL=Observable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Observable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/Observable.js.map deleted file mode 100644 index 741b84902..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Observable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Observable.js","sourceRoot":"","sources":["../../../src/internal/Observable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAgB,MAAM,gBAAgB,CAAC;AAE9D,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAQnD;IAkBE,oBAAY,SAA6E;QACvF,IAAI,SAAS,EAAE;YACb,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;SAC7B;IACH,CAAC;IA4BD,yBAAI,GAAJ,UAAQ,QAAyB;QAC/B,IAAM,UAAU,GAAG,IAAI,UAAU,EAAK,CAAC;QACvC,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC;QACzB,UAAU,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAC/B,OAAO,UAAU,CAAC;IACpB,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AO,mCAAI,OAAO,CAAC;AAClD,CAAC;AAED,SAAS,UAAU,CAAI,KAAU;IAC/B,OAAO,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAClG,CAAC;AAED,SAAS,YAAY,CAAI,KAAU;IACjC,OAAO,CAAC,KAAK,IAAI,KAAK,YAAY,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;AAChG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Operator.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/Operator.js deleted file mode 100755 index b9b664f07..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Operator.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=Operator.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Operator.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/Operator.js.map deleted file mode 100644 index 7401e0c41..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Operator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Operator.js","sourceRoot":"","sources":["../../../src/internal/Operator.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ReplaySubject.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/ReplaySubject.js deleted file mode 100755 index 0cf238d6b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ReplaySubject.js +++ /dev/null @@ -1,58 +0,0 @@ -import { __extends } from "tslib"; -import { Subject } from './Subject'; -import { dateTimestampProvider } from './scheduler/dateTimestampProvider'; -var ReplaySubject = (function (_super) { - __extends(ReplaySubject, _super); - function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) { - if (_bufferSize === void 0) { _bufferSize = Infinity; } - if (_windowTime === void 0) { _windowTime = Infinity; } - if (_timestampProvider === void 0) { _timestampProvider = dateTimestampProvider; } - var _this = _super.call(this) || this; - _this._bufferSize = _bufferSize; - _this._windowTime = _windowTime; - _this._timestampProvider = _timestampProvider; - _this._buffer = []; - _this._infiniteTimeWindow = true; - _this._infiniteTimeWindow = _windowTime === Infinity; - _this._bufferSize = Math.max(1, _bufferSize); - _this._windowTime = Math.max(1, _windowTime); - return _this; - } - ReplaySubject.prototype.next = function (value) { - var _a = this, isStopped = _a.isStopped, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow, _timestampProvider = _a._timestampProvider, _windowTime = _a._windowTime; - if (!isStopped) { - _buffer.push(value); - !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime); - } - this._trimBuffer(); - _super.prototype.next.call(this, value); - }; - ReplaySubject.prototype._subscribe = function (subscriber) { - this._throwIfClosed(); - this._trimBuffer(); - var subscription = this._innerSubscribe(subscriber); - var _a = this, _infiniteTimeWindow = _a._infiniteTimeWindow, _buffer = _a._buffer; - var copy = _buffer.slice(); - for (var i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) { - subscriber.next(copy[i]); - } - this._checkFinalizedStatuses(subscriber); - return subscription; - }; - ReplaySubject.prototype._trimBuffer = function () { - var _a = this, _bufferSize = _a._bufferSize, _timestampProvider = _a._timestampProvider, _buffer = _a._buffer, _infiniteTimeWindow = _a._infiniteTimeWindow; - var adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize; - _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize); - if (!_infiniteTimeWindow) { - var now = _timestampProvider.now(); - var last = 0; - for (var i = 1; i < _buffer.length && _buffer[i] <= now; i += 2) { - last = i; - } - last && _buffer.splice(0, last + 1); - } - }; - return ReplaySubject; -}(Subject)); -export { ReplaySubject }; -//# sourceMappingURL=ReplaySubject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ReplaySubject.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/ReplaySubject.js.map deleted file mode 100644 index 4d6491914..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ReplaySubject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReplaySubject.js","sourceRoot":"","sources":["../../../src/internal/ReplaySubject.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAgC1E;IAAsC,iCAAU;IAU9C,uBACU,WAAsB,EACtB,WAAsB,EACtB,kBAA6D;QAF7D,4BAAA,EAAA,sBAAsB;QACtB,4BAAA,EAAA,sBAAsB;QACtB,mCAAA,EAAA,0CAA6D;QAHvE,YAKE,iBAAO,SAIR;QARS,iBAAW,GAAX,WAAW,CAAW;QACtB,iBAAW,GAAX,WAAW,CAAW;QACtB,wBAAkB,GAAlB,kBAAkB,CAA2C;QAZ/D,aAAO,GAAmB,EAAE,CAAC;QAC7B,yBAAmB,GAAG,IAAI,CAAC;QAcjC,KAAI,CAAC,mBAAmB,GAAG,WAAW,KAAK,QAAQ,CAAC;QACpD,KAAI,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;QAC5C,KAAI,CAAC,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;;IAC9C,CAAC;IAED,4BAAI,GAAJ,UAAK,KAAQ;QACL,IAAA,KAA+E,IAAI,EAAjF,SAAS,eAAA,EAAE,OAAO,aAAA,EAAE,mBAAmB,yBAAA,EAAE,kBAAkB,wBAAA,EAAE,WAAW,iBAAS,CAAC;QAC1F,IAAI,CAAC,SAAS,EAAE;YACd,OAAO,CAAC,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O,CAAC,MAAM,GAAG,kBAAkB,CAAC,CAAC;QAIxH,IAAI,CAAC,mBAAmB,EAAE;YACxB,IAAM,GAAG,GAAG,kBAAkB,CAAC,GAAG,EAAE,CAAC;YACrC,IAAI,IAAI,GAAG,CAAC,CAAC;YAGb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,IAAK,OAAO,CAAC,CAAC,CAAY,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE;gBAC3E,IAAI,GAAG,CAAC,CAAC;aACV;YACD,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,GAAG,CAAC,CAAC,CAAC;SACrC;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AAzED,CAAsC,OAAO,GAyE5C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Scheduler.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/Scheduler.js deleted file mode 100755 index 4c7d5ede4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Scheduler.js +++ /dev/null @@ -1,16 +0,0 @@ -import { dateTimestampProvider } from './scheduler/dateTimestampProvider'; -var Scheduler = (function () { - function Scheduler(schedulerActionCtor, now) { - if (now === void 0) { now = Scheduler.now; } - this.schedulerActionCtor = schedulerActionCtor; - this.now = now; - } - Scheduler.prototype.schedule = function (work, delay, state) { - if (delay === void 0) { delay = 0; } - return new this.schedulerActionCtor(this, work).schedule(state, delay); - }; - Scheduler.now = dateTimestampProvider.now; - return Scheduler; -}()); -export { Scheduler }; -//# sourceMappingURL=Scheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Scheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/Scheduler.js.map deleted file mode 100644 index 5ee908fb7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Scheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scheduler.js","sourceRoot":"","sources":["../../../src/internal/Scheduler.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAqB1E;IAGE,mBAAoB,mBAAkC,EAAE,GAAiC;QAAjC,oBAAA,EAAA,MAAoB,SAAS,CAAC,GAAG;QAArE,wBAAmB,GAAnB,mBAAmB,CAAe;QACpD,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IA6BM,4BAAQ,GAAf,UAAmB,IAAmD,EAAE,KAAiB,EAAE,KAAS;QAA5B,sBAAA,EAAA,SAAiB;QACvF,OAAO,IAAI,IAAI,CAAC,mBAAmB,CAAI,IAAI,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC5E,CAAC;IAnCa,aAAG,GAAiB,qBAAqB,CAAC,GAAG,CAAC;IAoC9D,gBAAC;CAAA,AArCD,IAqCC;SArCY,SAAS"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subject.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/Subject.js deleted file mode 100755 index b29d8f6ba..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subject.js +++ /dev/null @@ -1,162 +0,0 @@ -import { __extends, __values } from "tslib"; -import { Observable } from './Observable'; -import { Subscription, EMPTY_SUBSCRIPTION } from './Subscription'; -import { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError'; -import { arrRemove } from './util/arrRemove'; -import { errorContext } from './util/errorContext'; -var Subject = (function (_super) { - __extends(Subject, _super); - function Subject() { - var _this = _super.call(this) || this; - _this.closed = false; - _this.currentObservers = null; - _this.observers = []; - _this.isStopped = false; - _this.hasError = false; - _this.thrownError = null; - return _this; - } - Subject.prototype.lift = function (operator) { - var subject = new AnonymousSubject(this, this); - subject.operator = operator; - return subject; - }; - Subject.prototype._throwIfClosed = function () { - if (this.closed) { - throw new ObjectUnsubscribedError(); - } - }; - Subject.prototype.next = function (value) { - var _this = this; - errorContext(function () { - var e_1, _a; - _this._throwIfClosed(); - if (!_this.isStopped) { - if (!_this.currentObservers) { - _this.currentObservers = Array.from(_this.observers); - } - try { - for (var _b = __values(_this.currentObservers), _c = _b.next(); !_c.done; _c = _b.next()) { - var observer = _c.value; - observer.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (_c && !_c.done && (_a = _b.return)) _a.call(_b); - } - finally { if (e_1) throw e_1.error; } - } - } - }); - }; - Subject.prototype.error = function (err) { - var _this = this; - errorContext(function () { - _this._throwIfClosed(); - if (!_this.isStopped) { - _this.hasError = _this.isStopped = true; - _this.thrownError = err; - var observers = _this.observers; - while (observers.length) { - observers.shift().error(err); - } - } - }); - }; - Subject.prototype.complete = function () { - var _this = this; - errorContext(function () { - _this._throwIfClosed(); - if (!_this.isStopped) { - _this.isStopped = true; - var observers = _this.observers; - while (observers.length) { - observers.shift().complete(); - } - } - }); - }; - Subject.prototype.unsubscribe = function () { - this.isStopped = this.closed = true; - this.observers = this.currentObservers = null; - }; - Object.defineProperty(Subject.prototype, "observed", { - get: function () { - var _a; - return ((_a = this.observers) === null || _a === void 0 ? void 0 : _a.length) > 0; - }, - enumerable: false, - configurable: true - }); - Subject.prototype._trySubscribe = function (subscriber) { - this._throwIfClosed(); - return _super.prototype._trySubscribe.call(this, subscriber); - }; - Subject.prototype._subscribe = function (subscriber) { - this._throwIfClosed(); - this._checkFinalizedStatuses(subscriber); - return this._innerSubscribe(subscriber); - }; - Subject.prototype._innerSubscribe = function (subscriber) { - var _this = this; - var _a = this, hasError = _a.hasError, isStopped = _a.isStopped, observers = _a.observers; - if (hasError || isStopped) { - return EMPTY_SUBSCRIPTION; - } - this.currentObservers = null; - observers.push(subscriber); - return new Subscription(function () { - _this.currentObservers = null; - arrRemove(observers, subscriber); - }); - }; - Subject.prototype._checkFinalizedStatuses = function (subscriber) { - var _a = this, hasError = _a.hasError, thrownError = _a.thrownError, isStopped = _a.isStopped; - if (hasError) { - subscriber.error(thrownError); - } - else if (isStopped) { - subscriber.complete(); - } - }; - Subject.prototype.asObservable = function () { - var observable = new Observable(); - observable.source = this; - return observable; - }; - Subject.create = function (destination, source) { - return new AnonymousSubject(destination, source); - }; - return Subject; -}(Observable)); -export { Subject }; -var AnonymousSubject = (function (_super) { - __extends(AnonymousSubject, _super); - function AnonymousSubject(destination, source) { - var _this = _super.call(this) || this; - _this.destination = destination; - _this.source = source; - return _this; - } - AnonymousSubject.prototype.next = function (value) { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.next) === null || _b === void 0 ? void 0 : _b.call(_a, value); - }; - AnonymousSubject.prototype.error = function (err) { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.error) === null || _b === void 0 ? void 0 : _b.call(_a, err); - }; - AnonymousSubject.prototype.complete = function () { - var _a, _b; - (_b = (_a = this.destination) === null || _a === void 0 ? void 0 : _a.complete) === null || _b === void 0 ? void 0 : _b.call(_a); - }; - AnonymousSubject.prototype._subscribe = function (subscriber) { - var _a, _b; - return (_b = (_a = this.source) === null || _a === void 0 ? void 0 : _a.subscribe(subscriber)) !== null && _b !== void 0 ? _b : EMPTY_SUBSCRIPTION; - }; - return AnonymousSubject; -}(Subject)); -export { AnonymousSubject }; -//# sourceMappingURL=Subject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subject.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/Subject.js.map deleted file mode 100644 index a9421c62d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subject.js","sourceRoot":"","sources":["../../../src/internal/Subject.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAElE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JpB;IAAyC,oCAAU;IACjD,0BAES,WAAyB,EAChC,MAAsB;QAHxB,YAKE,iBAAO,SAER;QALQ,iBAAW,GAAX,WAAW,CAAc;QAIhC,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACvB,CAAC;IAED,+BAAI,GAAJ,UAAK,KAAQ;;QACX,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,mDAAG,KAAK,CAAC,CAAC;IAClC,CAAC;IAED,gCAAK,GAAL,UAAM,GAAQ;;QACZ,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,KAAK,mDAAG,GAAG,CAAC,CAAC;IACjC,CAAC;IAED,mCAAQ,GAAR;;QACE,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,QAAQ,kDAAI,CAAC;IACjC,CAAC;IAGS,qCAAU,GAApB,UAAqB,UAAyB;;QAC5C,OAAO,MAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,SAAS,CAAC,UAAU,CAAC,mCAAI,kBAAkB,CAAC;IAClE,CAAC;IACH,uBAAC;AAAD,CAAC,AA1BD,CAAyC,OAAO,GA0B/C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscriber.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscriber.js deleted file mode 100755 index c14778ef7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscriber.js +++ /dev/null @@ -1,184 +0,0 @@ -import { __extends } from "tslib"; -import { isFunction } from './util/isFunction'; -import { isSubscription, Subscription } from './Subscription'; -import { config } from './config'; -import { reportUnhandledError } from './util/reportUnhandledError'; -import { noop } from './util/noop'; -import { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories'; -import { timeoutProvider } from './scheduler/timeoutProvider'; -import { captureError } from './util/errorContext'; -var Subscriber = (function (_super) { - __extends(Subscriber, _super); - function Subscriber(destination) { - var _this = _super.call(this) || this; - _this.isStopped = false; - if (destination) { - _this.destination = destination; - if (isSubscription(destination)) { - destination.add(_this); - } - } - else { - _this.destination = EMPTY_OBSERVER; - } - return _this; - } - Subscriber.create = function (next, error, complete) { - return new SafeSubscriber(next, error, complete); - }; - Subscriber.prototype.next = function (value) { - if (this.isStopped) { - handleStoppedNotification(nextNotification(value), this); - } - else { - this._next(value); - } - }; - Subscriber.prototype.error = function (err) { - if (this.isStopped) { - handleStoppedNotification(errorNotification(err), this); - } - else { - this.isStopped = true; - this._error(err); - } - }; - Subscriber.prototype.complete = function () { - if (this.isStopped) { - handleStoppedNotification(COMPLETE_NOTIFICATION, this); - } - else { - this.isStopped = true; - this._complete(); - } - }; - Subscriber.prototype.unsubscribe = function () { - if (!this.closed) { - this.isStopped = true; - _super.prototype.unsubscribe.call(this); - this.destination = null; - } - }; - Subscriber.prototype._next = function (value) { - this.destination.next(value); - }; - Subscriber.prototype._error = function (err) { - try { - this.destination.error(err); - } - finally { - this.unsubscribe(); - } - }; - Subscriber.prototype._complete = function () { - try { - this.destination.complete(); - } - finally { - this.unsubscribe(); - } - }; - return Subscriber; -}(Subscription)); -export { Subscriber }; -var _bind = Function.prototype.bind; -function bind(fn, thisArg) { - return _bind.call(fn, thisArg); -} -var ConsumerObserver = (function () { - function ConsumerObserver(partialObserver) { - this.partialObserver = partialObserver; - } - ConsumerObserver.prototype.next = function (value) { - var partialObserver = this.partialObserver; - if (partialObserver.next) { - try { - partialObserver.next(value); - } - catch (error) { - handleUnhandledError(error); - } - } - }; - ConsumerObserver.prototype.error = function (err) { - var partialObserver = this.partialObserver; - if (partialObserver.error) { - try { - partialObserver.error(err); - } - catch (error) { - handleUnhandledError(error); - } - } - else { - handleUnhandledError(err); - } - }; - ConsumerObserver.prototype.complete = function () { - var partialObserver = this.partialObserver; - if (partialObserver.complete) { - try { - partialObserver.complete(); - } - catch (error) { - handleUnhandledError(error); - } - } - }; - return ConsumerObserver; -}()); -var SafeSubscriber = (function (_super) { - __extends(SafeSubscriber, _super); - function SafeSubscriber(observerOrNext, error, complete) { - var _this = _super.call(this) || this; - var partialObserver; - if (isFunction(observerOrNext) || !observerOrNext) { - partialObserver = { - next: (observerOrNext !== null && observerOrNext !== void 0 ? observerOrNext : undefined), - error: error !== null && error !== void 0 ? error : undefined, - complete: complete !== null && complete !== void 0 ? complete : undefined, - }; - } - else { - var context_1; - if (_this && config.useDeprecatedNextContext) { - context_1 = Object.create(observerOrNext); - context_1.unsubscribe = function () { return _this.unsubscribe(); }; - partialObserver = { - next: observerOrNext.next && bind(observerOrNext.next, context_1), - error: observerOrNext.error && bind(observerOrNext.error, context_1), - complete: observerOrNext.complete && bind(observerOrNext.complete, context_1), - }; - } - else { - partialObserver = observerOrNext; - } - } - _this.destination = new ConsumerObserver(partialObserver); - return _this; - } - return SafeSubscriber; -}(Subscriber)); -export { SafeSubscriber }; -function handleUnhandledError(error) { - if (config.useDeprecatedSynchronousErrorHandling) { - captureError(error); - } - else { - reportUnhandledError(error); - } -} -function defaultErrorHandler(err) { - throw err; -} -function handleStoppedNotification(notification, subscriber) { - var onStoppedNotification = config.onStoppedNotification; - onStoppedNotification && timeoutProvider.setTimeout(function () { return onStoppedNotification(notification, subscriber); }); -} -export var EMPTY_OBSERVER = { - closed: true, - next: noop, - error: defaultErrorHandler, - complete: noop, -}; -//# sourceMappingURL=Subscriber.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map deleted file mode 100644 index 730473dda..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subscriber.js","sourceRoot":"","sources":["../../../src/internal/Subscriber.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,C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Z,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,mBAAmB;IAC1B,QAAQ,EAAE,IAAI;CACf,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscription.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscription.js deleted file mode 100755 index 867b4b081..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscription.js +++ /dev/null @@ -1,143 +0,0 @@ -import { __read, __spreadArray, __values } from "tslib"; -import { isFunction } from './util/isFunction'; -import { UnsubscriptionError } from './util/UnsubscriptionError'; -import { arrRemove } from './util/arrRemove'; -var Subscription = (function () { - function Subscription(initialTeardown) { - this.initialTeardown = initialTeardown; - this.closed = false; - this._parentage = null; - this._finalizers = null; - } - Subscription.prototype.unsubscribe = function () { - var e_1, _a, e_2, _b; - var errors; - if (!this.closed) { - this.closed = true; - var _parentage = this._parentage; - if (_parentage) { - this._parentage = null; - if (Array.isArray(_parentage)) { - try { - for (var _parentage_1 = __values(_parentage), _parentage_1_1 = _parentage_1.next(); !_parentage_1_1.done; _parentage_1_1 = _parentage_1.next()) { - var parent_1 = _parentage_1_1.value; - parent_1.remove(this); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (_parentage_1_1 && !_parentage_1_1.done && (_a = _parentage_1.return)) _a.call(_parentage_1); - } - finally { if (e_1) throw e_1.error; } - } - } - else { - _parentage.remove(this); - } - } - var initialFinalizer = this.initialTeardown; - if (isFunction(initialFinalizer)) { - try { - initialFinalizer(); - } - catch (e) { - errors = e instanceof UnsubscriptionError ? e.errors : [e]; - } - } - var _finalizers = this._finalizers; - if (_finalizers) { - this._finalizers = null; - try { - for (var _finalizers_1 = __values(_finalizers), _finalizers_1_1 = _finalizers_1.next(); !_finalizers_1_1.done; _finalizers_1_1 = _finalizers_1.next()) { - var finalizer = _finalizers_1_1.value; - try { - execFinalizer(finalizer); - } - catch (err) { - errors = errors !== null && errors !== void 0 ? errors : []; - if (err instanceof UnsubscriptionError) { - errors = __spreadArray(__spreadArray([], __read(errors)), __read(err.errors)); - } - else { - errors.push(err); - } - } - } - } - catch (e_2_1) { e_2 = { error: e_2_1 }; } - finally { - try { - if (_finalizers_1_1 && !_finalizers_1_1.done && (_b = _finalizers_1.return)) _b.call(_finalizers_1); - } - finally { if (e_2) throw e_2.error; } - } - } - if (errors) { - throw new UnsubscriptionError(errors); - } - } - }; - Subscription.prototype.add = function (teardown) { - var _a; - if (teardown && teardown !== this) { - if (this.closed) { - execFinalizer(teardown); - } - else { - if (teardown instanceof Subscription) { - if (teardown.closed || teardown._hasParent(this)) { - return; - } - teardown._addParent(this); - } - (this._finalizers = (_a = this._finalizers) !== null && _a !== void 0 ? _a : []).push(teardown); - } - } - }; - Subscription.prototype._hasParent = function (parent) { - var _parentage = this._parentage; - return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent)); - }; - Subscription.prototype._addParent = function (parent) { - var _parentage = this._parentage; - this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent; - }; - Subscription.prototype._removeParent = function (parent) { - var _parentage = this._parentage; - if (_parentage === parent) { - this._parentage = null; - } - else if (Array.isArray(_parentage)) { - arrRemove(_parentage, parent); - } - }; - Subscription.prototype.remove = function (teardown) { - var _finalizers = this._finalizers; - _finalizers && arrRemove(_finalizers, teardown); - if (teardown instanceof Subscription) { - teardown._removeParent(this); - } - }; - Subscription.EMPTY = (function () { - var empty = new Subscription(); - empty.closed = true; - return empty; - })(); - return Subscription; -}()); -export { Subscription }; -export var EMPTY_SUBSCRIPTION = Subscription.EMPTY; -export function isSubscription(value) { - return (value instanceof Subscription || - (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe))); -} -function execFinalizer(finalizer) { - if (isFunction(finalizer)) { - finalizer(); - } - else { - finalizer.unsubscribe(); - } -} -//# sourceMappingURL=Subscription.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscription.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscription.js.map deleted file mode 100644 index e0e032571..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subscription.js","sourceRoot":"","sources":["../../../src/internal/Subscription.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAc7C;IAyBE,sBAAoB,eAA4B;QAA5B,oBAAe,GAAf,eAAe,CAAa;QAdzC,WAAM,GAAG,KAAK,CAAC;QAEd,eAAU,GAAyC,IAAI,CAAC;QAMxD,gBAAW,GAA0C,IAAI,CAAC;IAMf,CAAC;IAQpD,kCAAW,GAAX;;QACE,IAAI,MAAyB,CAAC;QAE9B,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;YAChB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YAGX,IAAA,UAAU,GAAK,IAAI,WAAT,CAAU;YAC5B,IAAI,UAAU,EAAE;gBACd,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;gBACvB,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;;wBAC7B,KAAqB,IAAA,eAAA,SAAA,UAAU,CAAA,sCAAA,8DAAE;4BAA5B,IAAM,QAAM,uBAAA;4BACf,QAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;yBACrB;;;;;;;;;iBACF;qBAAM;oBACL,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;iBACzB;aACF;YAEO,IAAiB,gBAAgB,GAAK,IAAI,gBAAT,CAAU;YACnD,IAAI,UAAU,CAAC,gBAAgB,CAAC,EAAE;gBAChC,IAAI;oBACF,gBAAgB,EAAE,CAAC;iBACpB;gBAAC,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;QACjC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;QACpB,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,EAAE,CAAC;IA+KP,mBAAC;CAAA,AArLD,IAqLC;SArLY,YAAY;AAuLzB,MAAM,CAAC,IAAM,kBAAkB,GAAG,YAAY,CAAC,KAAK,CAAC;AAErD,MAAM,UAAU,cAAc,CAAC,KAAU;IACvC,OAAO,CACL,KAAK,YAAY,YAAY;QAC7B,CAAC,KAAK,IAAI,QAAQ,IAAI,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CACnH,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,SAAwC;IAC7D,IAAI,UAAU,CAAC,SAAS,CAAC,EAAE;QACzB,SAAS,EAAE,CAAC;KACb;SAAM;QACL,SAAS,CAAC,WAAW,EAAE,CAAC;KACzB;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/AjaxResponse.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/AjaxResponse.js deleted file mode 100755 index b6c75d19b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/AjaxResponse.js +++ /dev/null @@ -1,29 +0,0 @@ -import { getXHRResponse } from './getXHRResponse'; -var AjaxResponse = (function () { - function AjaxResponse(originalEvent, xhr, request, type) { - if (type === void 0) { type = 'download_load'; } - this.originalEvent = originalEvent; - this.xhr = xhr; - this.request = request; - this.type = type; - var status = xhr.status, responseType = xhr.responseType; - this.status = status !== null && status !== void 0 ? status : 0; - this.responseType = responseType !== null && responseType !== void 0 ? responseType : ''; - var allHeaders = xhr.getAllResponseHeaders(); - this.responseHeaders = allHeaders - ? - allHeaders.split('\n').reduce(function (headers, line) { - var index = line.indexOf(': '); - headers[line.slice(0, index)] = line.slice(index + 2); - return headers; - }, {}) - : {}; - this.response = getXHRResponse(xhr); - var loaded = originalEvent.loaded, total = originalEvent.total; - this.loaded = loaded; - this.total = total; - } - return AjaxResponse; -}()); -export { AjaxResponse }; -//# sourceMappingURL=AjaxResponse.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/AjaxResponse.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/AjaxResponse.js.map deleted file mode 100644 index 932739697..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/AjaxResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AjaxResponse.js","sourceRoot":"","sources":["../../../../src/internal/ajax/AjaxResponse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAgBlD;IA+CE,sBAIkB,aAA4B,EAM5B,GAAmB,EAInB,OAAoB,EAcpB,IAAwC;QAAxC,qBAAA,EAAA,sBAAwC;QAxBxC,kBAAa,GAAb,aAAa,CAAe;QAM5B,QAAG,GAAH,GAAG,CAAgB;QAInB,YAAO,GAAP,OAAO,CAAa;QAcpB,SAAI,GAAJ,IAAI,CAAoC;QAEhD,IAAA,MAAM,GAAmB,GAAG,OAAtB,EAAE,YAAY,GAAK,GAAG,aAAR,CAAS;QACrC,IAAI,CAAC,MAAM,GAAG,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,CAAC,CAAC;QAC1B,IAAI,CAAC,YAAY,GAAG,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,EAAE,CAAC;QASvC,IAAM,UAAU,GAAG,GAAG,CAAC,qBAAqB,EAAE,CAAC;QAC/C,IAAI,CAAC,eAAe,GAAG,UAAU;YAC/B,CAAC;gBACC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,UAAC,OAA+B,EAAE,IAAI;oBAIlE,IAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;oBACjC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;oBACtD,OAAO,OAAO,CAAC;gBACjB,CAAC,EAAE,EAAE,CAAC;YACR,CAAC,CAAC,EAAE,CAAC;QAEP,IAAI,CAAC,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;QAC5B,IAAA,MAAM,GAAY,aAAa,OAAzB,EAAE,KAAK,GAAK,aAAa,MAAlB,CAAmB;QACxC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACrB,CAAC;IACH,mBAAC;AAAD,CAAC,AA1GD,IA0GC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/ajax.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/ajax.js deleted file mode 100755 index 6b07b855f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/ajax.js +++ /dev/null @@ -1,239 +0,0 @@ -import { __assign } from "tslib"; -import { map } from '../operators/map'; -import { Observable } from '../Observable'; -import { AjaxResponse } from './AjaxResponse'; -import { AjaxTimeoutError, AjaxError } from './errors'; -function ajaxGet(url, headers) { - return ajax({ method: 'GET', url: url, headers: headers }); -} -function ajaxPost(url, body, headers) { - return ajax({ method: 'POST', url: url, body: body, headers: headers }); -} -function ajaxDelete(url, headers) { - return ajax({ method: 'DELETE', url: url, headers: headers }); -} -function ajaxPut(url, body, headers) { - return ajax({ method: 'PUT', url: url, body: body, headers: headers }); -} -function ajaxPatch(url, body, headers) { - return ajax({ method: 'PATCH', url: url, body: body, headers: headers }); -} -var mapResponse = map(function (x) { return x.response; }); -function ajaxGetJSON(url, headers) { - return mapResponse(ajax({ - method: 'GET', - url: url, - headers: headers, - })); -} -export var ajax = (function () { - var create = function (urlOrConfig) { - var config = typeof urlOrConfig === 'string' - ? { - url: urlOrConfig, - } - : urlOrConfig; - return fromAjax(config); - }; - create.get = ajaxGet; - create.post = ajaxPost; - create.delete = ajaxDelete; - create.put = ajaxPut; - create.patch = ajaxPatch; - create.getJSON = ajaxGetJSON; - return create; -})(); -var UPLOAD = 'upload'; -var DOWNLOAD = 'download'; -var LOADSTART = 'loadstart'; -var PROGRESS = 'progress'; -var LOAD = 'load'; -export function fromAjax(init) { - return new Observable(function (destination) { - var _a, _b; - var config = __assign({ async: true, crossDomain: false, withCredentials: false, method: 'GET', timeout: 0, responseType: 'json' }, init); - var queryParams = config.queryParams, configuredBody = config.body, configuredHeaders = config.headers; - var url = config.url; - if (!url) { - throw new TypeError('url is required'); - } - if (queryParams) { - var searchParams_1; - if (url.includes('?')) { - var parts = url.split('?'); - if (2 < parts.length) { - throw new TypeError('invalid url'); - } - searchParams_1 = new URLSearchParams(parts[1]); - new URLSearchParams(queryParams).forEach(function (value, key) { return searchParams_1.set(key, value); }); - url = parts[0] + '?' + searchParams_1; - } - else { - searchParams_1 = new URLSearchParams(queryParams); - url = url + '?' + searchParams_1; - } - } - var headers = {}; - if (configuredHeaders) { - for (var key in configuredHeaders) { - if (configuredHeaders.hasOwnProperty(key)) { - headers[key.toLowerCase()] = configuredHeaders[key]; - } - } - } - var crossDomain = config.crossDomain; - if (!crossDomain && !('x-requested-with' in headers)) { - headers['x-requested-with'] = 'XMLHttpRequest'; - } - var withCredentials = config.withCredentials, xsrfCookieName = config.xsrfCookieName, xsrfHeaderName = config.xsrfHeaderName; - if ((withCredentials || !crossDomain) && xsrfCookieName && xsrfHeaderName) { - var xsrfCookie = (_b = (_a = document === null || document === void 0 ? void 0 : document.cookie.match(new RegExp("(^|;\\s*)(" + xsrfCookieName + ")=([^;]*)"))) === null || _a === void 0 ? void 0 : _a.pop()) !== null && _b !== void 0 ? _b : ''; - if (xsrfCookie) { - headers[xsrfHeaderName] = xsrfCookie; - } - } - var body = extractContentTypeAndMaybeSerializeBody(configuredBody, headers); - var _request = __assign(__assign({}, config), { url: url, - headers: headers, - body: body }); - var xhr; - xhr = init.createXHR ? init.createXHR() : new XMLHttpRequest(); - { - var progressSubscriber_1 = init.progressSubscriber, _c = init.includeDownloadProgress, includeDownloadProgress = _c === void 0 ? false : _c, _d = init.includeUploadProgress, includeUploadProgress = _d === void 0 ? false : _d; - var addErrorEvent = function (type, errorFactory) { - xhr.addEventListener(type, function () { - var _a; - var error = errorFactory(); - (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, error); - destination.error(error); - }); - }; - addErrorEvent('timeout', function () { return new AjaxTimeoutError(xhr, _request); }); - addErrorEvent('abort', function () { return new AjaxError('aborted', xhr, _request); }); - var createResponse_1 = function (direction, event) { - return new AjaxResponse(event, xhr, _request, direction + "_" + event.type); - }; - var addProgressEvent_1 = function (target, type, direction) { - target.addEventListener(type, function (event) { - destination.next(createResponse_1(direction, event)); - }); - }; - if (includeUploadProgress) { - [LOADSTART, PROGRESS, LOAD].forEach(function (type) { return addProgressEvent_1(xhr.upload, type, UPLOAD); }); - } - if (progressSubscriber_1) { - [LOADSTART, PROGRESS].forEach(function (type) { return xhr.upload.addEventListener(type, function (e) { var _a; return (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.next) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, e); }); }); - } - if (includeDownloadProgress) { - [LOADSTART, PROGRESS].forEach(function (type) { return addProgressEvent_1(xhr, type, DOWNLOAD); }); - } - var emitError_1 = function (status) { - var msg = 'ajax error' + (status ? ' ' + status : ''); - destination.error(new AjaxError(msg, xhr, _request)); - }; - xhr.addEventListener('error', function (e) { - var _a; - (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1, e); - emitError_1(); - }); - xhr.addEventListener(LOAD, function (event) { - var _a, _b; - var status = xhr.status; - if (status < 400) { - (_a = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.complete) === null || _a === void 0 ? void 0 : _a.call(progressSubscriber_1); - var response = void 0; - try { - response = createResponse_1(DOWNLOAD, event); - } - catch (err) { - destination.error(err); - return; - } - destination.next(response); - destination.complete(); - } - else { - (_b = progressSubscriber_1 === null || progressSubscriber_1 === void 0 ? void 0 : progressSubscriber_1.error) === null || _b === void 0 ? void 0 : _b.call(progressSubscriber_1, event); - emitError_1(status); - } - }); - } - var user = _request.user, method = _request.method, async = _request.async; - if (user) { - xhr.open(method, url, async, user, _request.password); - } - else { - xhr.open(method, url, async); - } - if (async) { - xhr.timeout = _request.timeout; - xhr.responseType = _request.responseType; - } - if ('withCredentials' in xhr) { - xhr.withCredentials = _request.withCredentials; - } - for (var key in headers) { - if (headers.hasOwnProperty(key)) { - xhr.setRequestHeader(key, headers[key]); - } - } - if (body) { - xhr.send(body); - } - else { - xhr.send(); - } - return function () { - if (xhr && xhr.readyState !== 4) { - xhr.abort(); - } - }; - }); -} -function extractContentTypeAndMaybeSerializeBody(body, headers) { - var _a; - if (!body || - typeof body === 'string' || - isFormData(body) || - isURLSearchParams(body) || - isArrayBuffer(body) || - isFile(body) || - isBlob(body) || - isReadableStream(body)) { - return body; - } - if (isArrayBufferView(body)) { - return body.buffer; - } - if (typeof body === 'object') { - headers['content-type'] = (_a = headers['content-type']) !== null && _a !== void 0 ? _a : 'application/json;charset=utf-8'; - return JSON.stringify(body); - } - throw new TypeError('Unknown body type'); -} -var _toString = Object.prototype.toString; -function toStringCheck(obj, name) { - return _toString.call(obj) === "[object " + name + "]"; -} -function isArrayBuffer(body) { - return toStringCheck(body, 'ArrayBuffer'); -} -function isFile(body) { - return toStringCheck(body, 'File'); -} -function isBlob(body) { - return toStringCheck(body, 'Blob'); -} -function isArrayBufferView(body) { - return typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView(body); -} -function isFormData(body) { - return typeof FormData !== 'undefined' && body instanceof FormData; -} -function isURLSearchParams(body) { - return typeof URLSearchParams !== 'undefined' && body instanceof URLSearchParams; -} -function isReadableStream(body) { - return typeof ReadableStream !== 'undefined' && body instanceof ReadableStream; -} -//# sourceMappingURL=ajax.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/ajax.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/ajax.js.map deleted file mode 100644 index a8fc73e7b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/ajax.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajax.js","sourceRoot":"","sources":["../../../../src/internal/ajax/ajax.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAqIvD,SAAS,OAAO,CAAI,GAAW,EAAE,OAAgC;IAC/D,OAAO,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAA,EAAE,OAAO,SAAA,EAAE,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,QAAQ,CAAI,GAAW,EAAE,IAAU,EAAE,OAAgC;IAC5E,OAAO,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAA,EAAE,IAAI,MAAA,EAAE,OAAO,SAAA,EAAE,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,UAAU,CAAI,GAAW,EAAE,OAAgC;IAClE,OAAO,IAAI,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAA,EAAE,OAAO,SAAA,EAAE,CAAC,CAAC;AAClD,CAAC;AAED,SAAS,OAAO,CAAI,GAAW,EAAE,I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CAAC;KAC7B;IAID,MAAM,IAAI,SAAS,CAAC,mBAAmB,CAAC,CAAC;AAC3C,CAAC;AAED,IAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;AAE5C,SAAS,aAAa,CAAC,GAAQ,EAAE,IAAY;IAC3C,OAAO,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,aAAW,IAAI,MAAG,CAAC;AACpD,CAAC;AAED,SAAS,aAAa,CAAC,IAAS;IAC9B,OAAO,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,MAAM,CAAC,IAAS;IACvB,OAAO,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,MAAM,CAAC,IAAS;IACvB,OAAO,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACrC,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAS;IAClC,OAAO,OAAO,WAAW,KAAK,WAAW,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACxE,CAAC;AAED,SAAS,UAAU,CAAC,IAAS;IAC3B,OAAO,OAAO,QAAQ,KAAK,WAAW,IAAI,IAAI,YAAY,QAAQ,CAAC;AACrE,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAS;IAClC,OAAO,OAAO,eAAe,KAAK,WAAW,IAAI,IAAI,YAAY,eAAe,CAAC;AACnF,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAS;IACjC,OAAO,OAAO,cAAc,KAAK,WAAW,IAAI,IAAI,YAAY,cAAc,CAAC;AACjF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/errors.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/errors.js deleted file mode 100755 index ce4dd0905..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/errors.js +++ /dev/null @@ -1,30 +0,0 @@ -import { getXHRResponse } from './getXHRResponse'; -import { createErrorClass } from '../util/createErrorClass'; -export var AjaxError = createErrorClass(function (_super) { - return function AjaxErrorImpl(message, xhr, request) { - this.message = message; - this.name = 'AjaxError'; - this.xhr = xhr; - this.request = request; - this.status = xhr.status; - this.responseType = xhr.responseType; - var response; - try { - response = getXHRResponse(xhr); - } - catch (err) { - response = xhr.responseText; - } - this.response = response; - }; -}); -export var AjaxTimeoutError = (function () { - function AjaxTimeoutErrorImpl(xhr, request) { - AjaxError.call(this, 'ajax timeout', xhr, request); - this.name = 'AjaxTimeoutError'; - return this; - } - AjaxTimeoutErrorImpl.prototype = Object.create(AjaxError.prototype); - return AjaxTimeoutErrorImpl; -})(); -//# sourceMappingURL=errors.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/errors.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/errors.js.map deleted file mode 100644 index 290ce68cf..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/errors.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../src/internal/ajax/errors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAsD5D,MAAM,CAAC,IAAM,SAAS,GAAkB,gBAAgB,CACtD,UAAC,MAAM;IACL,OAAA,SAAS,aAAa,CAAY,OAAe,EAAE,GAAmB,EAAE,OAAoB;QAC1F,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC;QACxB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC,YAAY,CAAC;QACrC,IAAI,QAAa,CAAC;QAClB,IAAI;YAGF,QAAQ,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;SAChC;QAAC,OAAO,GAAG,EAAE;YACZ,QAAQ,GAAG,GAAG,CAAC,YAAY,CAAC;SAC7B;QACD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;AAhBD,CAgBC,CACJ,CAAC;AAsBF,MAAM,CAAC,IAAM,gBAAgB,GAAyB,CAAC;IACrD,SAAS,oBAAoB,CAAY,GAAmB,EAAE,OAAoB;QAChF,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;QACnD,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;QAC/B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,oBAAoB,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACpE,OAAO,oBAAoB,CAAC;AAC9B,CAAC,CAAC,EAAS,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/getXHRResponse.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/getXHRResponse.js deleted file mode 100755 index 6d597125e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/getXHRResponse.js +++ /dev/null @@ -1,26 +0,0 @@ -export function getXHRResponse(xhr) { - switch (xhr.responseType) { - case 'json': { - if ('response' in xhr) { - return xhr.response; - } - else { - var ieXHR = xhr; - return JSON.parse(ieXHR.responseText); - } - } - case 'document': - return xhr.responseXML; - case 'text': - default: { - if ('response' in xhr) { - return xhr.response; - } - else { - var ieXHR = xhr; - return ieXHR.responseText; - } - } - } -} -//# sourceMappingURL=getXHRResponse.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/getXHRResponse.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/getXHRResponse.js.map deleted file mode 100644 index f3bac3581..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/getXHRResponse.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getXHRResponse.js","sourceRoot":"","sources":["../../../../src/internal/ajax/getXHRResponse.ts"],"names":[],"mappings":"AAYA,MAAM,UAAU,cAAc,CAAC,GAAmB;IAChD,QAAQ,GAAG,CAAC,YAAY,EAAE;QACxB,KAAK,MAAM,CAAC,CAAC;YACX,IAAI,UAAU,IAAI,GAAG,EAAE;gBACrB,OAAO,GAAG,CAAC,QAAQ,CAAC;aACrB;iBAAM;gBAEL,IAAM,KAAK,GAAQ,GAAG,CAAC;gBACvB,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;aACvC;SACF;QACD,KAAK,UAAU;YACb,OAAO,GAAG,CAAC,WAAW,CAAC;QACzB,KAAK,MAAM,CAAC;QACZ,OAAO,CAAC,CAAC;YACP,IAAI,UAAU,IAAI,GAAG,EAAE;gBACrB,OAAO,GAAG,CAAC,QAAQ,CAAC;aACrB;iBAAM;gBAEL,IAAM,KAAK,GAAQ,GAAG,CAAC;gBACvB,OAAO,KAAK,CAAC,YAAY,CAAC;aAC3B;SACF;KACF;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/types.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/types.js deleted file mode 100755 index 718fd38ae..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/types.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/types.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/types.js.map deleted file mode 100644 index f08bdb1f3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/ajax/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/internal/ajax/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/config.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/config.js deleted file mode 100755 index c993d2827..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/config.js +++ /dev/null @@ -1,8 +0,0 @@ -export var config = { - onUnhandledError: null, - onStoppedNotification: null, - Promise: undefined, - useDeprecatedSynchronousErrorHandling: false, - useDeprecatedNextContext: false, -}; -//# sourceMappingURL=config.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/config.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/config.js.map deleted file mode 100644 index 8c9126021..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/config.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/internal/config.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,IAAM,MAAM,GAAiB;IAClC,gBAAgB,EAAE,IAAI;IACtB,qBAAqB,EAAE,IAAI;IAC3B,OAAO,EAAE,SAAS;IAClB,qCAAqC,EAAE,KAAK;IAC5C,wBAAwB,EAAE,KAAK;CAChC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js deleted file mode 100755 index 4734676fd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js +++ /dev/null @@ -1,24 +0,0 @@ -import { EmptyError } from './util/EmptyError'; -import { SafeSubscriber } from './Subscriber'; -export function firstValueFrom(source, config) { - var hasConfig = typeof config === 'object'; - return new Promise(function (resolve, reject) { - var subscriber = new SafeSubscriber({ - next: function (value) { - resolve(value); - subscriber.unsubscribe(); - }, - error: reject, - complete: function () { - if (hasConfig) { - resolve(config.defaultValue); - } - else { - reject(new EmptyError()); - } - }, - }); - source.subscribe(subscriber); - }); -} -//# sourceMappingURL=firstValueFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js.map deleted file mode 100644 index 11ec1e7ee..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/firstValueFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"firstValueFrom.js","sourceRoot":"","sources":["../../../src/internal/firstValueFrom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAqD9C,MAAM,UAAU,cAAc,CAAO,MAAqB,EAAE,MAAgC;IAC1F,IAAM,SAAS,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC;IAC7C,OAAO,IAAI,OAAO,CAAQ,UAAC,OAAO,EAAE,MAAM;QACxC,IAAM,UAAU,GAAG,IAAI,cAAc,CAAI;YACvC,IAAI,EAAE,UAAC,KAAK;gBACV,OAAO,CAAC,KAAK,CAAC,CAAC;gBACf,UAAU,CAAC,WAAW,EAAE,CAAC;YAC3B,CAAC;YACD,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE;gBACR,IAAI,SAAS,EAAE;oBACb,OAAO,CAAC,MAAO,CAAC,YAAY,CAAC,CAAC;iBAC/B;qBAAM;oBACL,MAAM,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;iBAC1B;YACH,CAAC;SACF,CAAC,CAAC;QACH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC/B,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/lastValueFrom.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/lastValueFrom.js deleted file mode 100755 index 5d7791581..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/lastValueFrom.js +++ /dev/null @@ -1,27 +0,0 @@ -import { EmptyError } from './util/EmptyError'; -export function lastValueFrom(source, config) { - var hasConfig = typeof config === 'object'; - return new Promise(function (resolve, reject) { - var _hasValue = false; - var _value; - source.subscribe({ - next: function (value) { - _value = value; - _hasValue = true; - }, - error: reject, - complete: function () { - if (_hasValue) { - resolve(_value); - } - else if (hasConfig) { - resolve(config.defaultValue); - } - else { - reject(new EmptyError()); - } - }, - }); - }); -} -//# sourceMappingURL=lastValueFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/lastValueFrom.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/lastValueFrom.js.map deleted file mode 100644 index 2bc02a0b6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/lastValueFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lastValueFrom.js","sourceRoot":"","sources":["../../../src/internal/lastValueFrom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAoD/C,MAAM,UAAU,aAAa,CAAO,MAAqB,EAAE,MAA+B;IACxF,IAAM,SAAS,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC;IAC7C,OAAO,IAAI,OAAO,CAAQ,UAAC,OAAO,EAAE,MAAM;QACxC,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,MAAS,CAAC;QACd,MAAM,CAAC,SAAS,CAAC;YACf,IAAI,EAAE,UAAC,KAAK;gBACV,MAAM,GAAG,KAAK,CAAC;gBACf,SAAS,GAAG,IAAI,CAAC;YACnB,CAAC;YACD,KAAK,EAAE,MAAM;YACb,QAAQ,EAAE;gBACR,IAAI,SAAS,EAAE;oBACb,OAAO,CAAC,MAAM,CAAC,CAAC;iBACjB;qBAAM,IAAI,SAAS,EAAE;oBACpB,OAAO,CAAC,MAAO,CAAC,YAAY,CAAC,CAAC;iBAC/B;qBAAM;oBACL,MAAM,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;iBAC1B;YACH,CAAC;SACF,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/ConnectableObservable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/ConnectableObservable.js deleted file mode 100755 index e51b47d9c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/ConnectableObservable.js +++ /dev/null @@ -1,63 +0,0 @@ -import { __extends } from "tslib"; -import { Observable } from '../Observable'; -import { Subscription } from '../Subscription'; -import { refCount as higherOrderRefCount } from '../operators/refCount'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { hasLift } from '../util/lift'; -var ConnectableObservable = (function (_super) { - __extends(ConnectableObservable, _super); - function ConnectableObservable(source, subjectFactory) { - var _this = _super.call(this) || this; - _this.source = source; - _this.subjectFactory = subjectFactory; - _this._subject = null; - _this._refCount = 0; - _this._connection = null; - if (hasLift(source)) { - _this.lift = source.lift; - } - return _this; - } - ConnectableObservable.prototype._subscribe = function (subscriber) { - return this.getSubject().subscribe(subscriber); - }; - ConnectableObservable.prototype.getSubject = function () { - var subject = this._subject; - if (!subject || subject.isStopped) { - this._subject = this.subjectFactory(); - } - return this._subject; - }; - ConnectableObservable.prototype._teardown = function () { - this._refCount = 0; - var _connection = this._connection; - this._subject = this._connection = null; - _connection === null || _connection === void 0 ? void 0 : _connection.unsubscribe(); - }; - ConnectableObservable.prototype.connect = function () { - var _this = this; - var connection = this._connection; - if (!connection) { - connection = this._connection = new Subscription(); - var subject_1 = this.getSubject(); - connection.add(this.source.subscribe(createOperatorSubscriber(subject_1, undefined, function () { - _this._teardown(); - subject_1.complete(); - }, function (err) { - _this._teardown(); - subject_1.error(err); - }, function () { return _this._teardown(); }))); - if (connection.closed) { - this._connection = null; - connection = Subscription.EMPTY; - } - } - return connection; - }; - ConnectableObservable.prototype.refCount = function () { - return higherOrderRefCount()(this); - }; - return ConnectableObservable; -}(Observable)); -export { ConnectableObservable }; -//# sourceMappingURL=ConnectableObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/ConnectableObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/ConnectableObservable.js.map deleted file mode 100644 index 54d944662..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/ConnectableObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConnectableObservable.js","sourceRoot":"","sources":["../../../../src/internal/observable/ConnectableObservable.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AASvC;IAA8C,yCAAa;IAgBzD,+BAAmB,MAAqB,EAAY,cAAgC;QAApF,YACE,iBAAO,SAOR;QARkB,YAAM,GAAN,MAAM,CAAe;QAAY,oBAAc,GAAd,cAAc,CAAkB;QAf1E,cAAQ,GAAsB,IAAI,CAAC;QACnC,eAAS,GAAW,CAAC,CAAC;QACtB,iBAAW,GAAwB,IAAI,CAAC;QAkBhD,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;YACnB,KAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;SACzB;;IACH,CAAC;IAGS,0CAAU,GAApB,UAAqB,UAAyB;QAC5C,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;IAES,0CAAU,GAApB;QACE,IAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IA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AAC,IAAI,CAAkB,CAAC;IACtD,CAAC;IACH,4BAAC;AAAD,CAAC,AAxFD,CAA8C,UAAU,GAwFvD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallback.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallback.js deleted file mode 100755 index 0f730acff..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallback.js +++ /dev/null @@ -1,5 +0,0 @@ -import { bindCallbackInternals } from './bindCallbackInternals'; -export function bindCallback(callbackFunc, resultSelector, scheduler) { - return bindCallbackInternals(false, callbackFunc, resultSelector, scheduler); -} -//# sourceMappingURL=bindCallback.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallback.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallback.js.map deleted file mode 100644 index 5b6af6fe0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallback.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindCallback.js","sourceRoot":"","sources":["../../../../src/internal/observable/bindCallback.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAuIhE,MAAM,UAAU,YAAY,CAC1B,YAAkE,EAClE,cAA0D,EAC1D,SAAyB;IAEzB,OAAO,qBAAqB,CAAC,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;AAC/E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallbackInternals.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallbackInternals.js deleted file mode 100755 index 659f5f318..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallbackInternals.js +++ /dev/null @@ -1,79 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { isScheduler } from '../util/isScheduler'; -import { Observable } from '../Observable'; -import { subscribeOn } from '../operators/subscribeOn'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { observeOn } from '../operators/observeOn'; -import { AsyncSubject } from '../AsyncSubject'; -export function bindCallbackInternals(isNodeStyle, callbackFunc, resultSelector, scheduler) { - if (resultSelector) { - if (isScheduler(resultSelector)) { - scheduler = resultSelector; - } - else { - return function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return bindCallbackInternals(isNodeStyle, callbackFunc, scheduler) - .apply(this, args) - .pipe(mapOneOrManyArgs(resultSelector)); - }; - } - } - if (scheduler) { - return function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return bindCallbackInternals(isNodeStyle, callbackFunc) - .apply(this, args) - .pipe(subscribeOn(scheduler), observeOn(scheduler)); - }; - } - return function () { - var _this = this; - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var subject = new AsyncSubject(); - var uninitialized = true; - return new Observable(function (subscriber) { - var subs = subject.subscribe(subscriber); - if (uninitialized) { - uninitialized = false; - var isAsync_1 = false; - var isComplete_1 = false; - callbackFunc.apply(_this, __spreadArray(__spreadArray([], __read(args)), [ - function () { - var results = []; - for (var _i = 0; _i < arguments.length; _i++) { - results[_i] = arguments[_i]; - } - if (isNodeStyle) { - var err = results.shift(); - if (err != null) { - subject.error(err); - return; - } - } - subject.next(1 < results.length ? results : results[0]); - isComplete_1 = true; - if (isAsync_1) { - subject.complete(); - } - }, - ])); - if (isComplete_1) { - subject.complete(); - } - isAsync_1 = true; - } - return subs; - }); - }; -} -//# sourceMappingURL=bindCallbackInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallbackInternals.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallbackInternals.js.map deleted file mode 100644 index cc1fc69cb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindCallbackInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindCallbackInternals.js","sourceRoot":"","sources":["../../../../src/internal/observable/bindCallbackInternals.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,UAAU,qBAAqB,CACnC,WAAoB,EACpB,YAAiB,EACjB,cAAoB,EACpB,SAAyB;IAEzB,IAAI,cAAc,EAAE;QAClB,IAAI,WAAW,CAAC,cAAc,CAAC,EAAE;YAC/B,SAAS,GAAG,cAAc,CAAC;SAC5B;aAAM;YAEL,OAAO;gBAAqB,cAAc;qBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;oBAAd,yBAAc;;gBACxC,OAAQ,qBAAqB,CAAC,WAAW,EAAE,YAAY,EAAE,SAAS,CAAS;qBACxE,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC;qBACjB,IAAI,CAAC,gBAAgB,CAAC,cAAqB,CAAC,CAAC,CAAC;YACnD,CAAC,CAAC;SACH;KACF;IAID,IAAI,SAAS,EAAE;QACb,OAAO;YAAqB,cAAc;iBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;gBAAd,yBAAc;;YACxC,OAAQ,qBAAqB,CAAC,WAAW,EAAE,YAAY,CAAS;iBAC7D,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC;iBACjB,IAAI,CAAC,WAAW,CAAC,SAAU,CAAC,EAAE,SAAS,CAAC,SAAU,CAAC,CAAC,CAAC;QAC1D,CAAC,CAAC;KACH;IAED,OAAO;QAAA,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m5/internal/observable/bindNodeCallback.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindNodeCallback.js deleted file mode 100755 index e8fbf5341..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindNodeCallback.js +++ /dev/null @@ -1,5 +0,0 @@ -import { bindCallbackInternals } from './bindCallbackInternals'; -export function bindNodeCallback(callbackFunc, resultSelector, scheduler) { - return bindCallbackInternals(true, callbackFunc, resultSelector, scheduler); -} -//# sourceMappingURL=bindNodeCallback.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindNodeCallback.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindNodeCallback.js.map deleted file mode 100644 index 81e488773..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/bindNodeCallback.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindNodeCallback.js","sourceRoot":"","sources":["../../../../src/internal/observable/bindNodeCallback.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAsHhE,MAAM,UAAU,gBAAgB,CAC9B,YAA4E,EAC5E,cAA0D,EAC1D,SAAyB;IAEzB,OAAO,qBAAqB,CAAC,IAAI,EAAE,YAAY,EAAE,cAAc,EAAE,SAAS,CAAC,CAAC;AAC9E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js deleted file mode 100755 index 35a4ec80a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js +++ /dev/null @@ -1,70 +0,0 @@ -import { Observable } from '../Observable'; -import { argsArgArrayOrObject } from '../util/argsArgArrayOrObject'; -import { from } from './from'; -import { identity } from '../util/identity'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { popResultSelector, popScheduler } from '../util/args'; -import { createObject } from '../util/createObject'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { executeSchedule } from '../util/executeSchedule'; -export function combineLatest() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = popScheduler(args); - var resultSelector = popResultSelector(args); - var _a = argsArgArrayOrObject(args), observables = _a.args, keys = _a.keys; - if (observables.length === 0) { - return from([], scheduler); - } - var result = new Observable(combineLatestInit(observables, scheduler, keys - ? - function (values) { return createObject(keys, values); } - : - identity)); - return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result; -} -export function combineLatestInit(observables, scheduler, valueTransform) { - if (valueTransform === void 0) { valueTransform = identity; } - return function (subscriber) { - maybeSchedule(scheduler, function () { - var length = observables.length; - var values = new Array(length); - var active = length; - var remainingFirstValues = length; - var _loop_1 = function (i) { - maybeSchedule(scheduler, function () { - var source = from(observables[i], scheduler); - var hasFirstValue = false; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - values[i] = value; - if (!hasFirstValue) { - hasFirstValue = true; - remainingFirstValues--; - } - if (!remainingFirstValues) { - subscriber.next(valueTransform(values.slice())); - } - }, function () { - if (!--active) { - subscriber.complete(); - } - })); - }, subscriber); - }; - for (var i = 0; i < length; i++) { - _loop_1(i); - } - }, subscriber); - }; -} -function maybeSchedule(scheduler, execute, subscription) { - if (scheduler) { - executeSchedule(subscription, scheduler, execute); - } - else { - execute(); - } -} -//# sourceMappingURL=combineLatest.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js.map deleted file mode 100644 index c8b3bdf17..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatest.js","sourceRoot":"","sources":["../../../../src/internal/observable/combineLatest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA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,eAAe,CAAC,YAAY,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;KACnD;SAAM;QACL,OAAO,EAAE,CAAC;KACX;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/concat.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/concat.js deleted file mode 100755 index 4fc8e8dbc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/concat.js +++ /dev/null @@ -1,11 +0,0 @@ -import { concatAll } from '../operators/concatAll'; -import { popScheduler } from '../util/args'; -import { from } from './from'; -export function concat() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return concatAll()(from(args, popScheduler(args))); -} -//# sourceMappingURL=concat.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/concat.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/concat.js.map deleted file mode 100644 index bd20f15bc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/concat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../../src/internal/observable/concat.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA4G9B,MAAM,UAAU,MAAM;IAAC,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IACnC,OAAO,SAAS,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/connectable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/connectable.js deleted file mode 100755 index 360064106..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/connectable.js +++ /dev/null @@ -1,27 +0,0 @@ -import { Subject } from '../Subject'; -import { Observable } from '../Observable'; -import { defer } from './defer'; -var DEFAULT_CONFIG = { - connector: function () { return new Subject(); }, - resetOnDisconnect: true, -}; -export function connectable(source, config) { - if (config === void 0) { config = DEFAULT_CONFIG; } - var connection = null; - var connector = config.connector, _a = config.resetOnDisconnect, resetOnDisconnect = _a === void 0 ? true : _a; - var subject = connector(); - var result = new Observable(function (subscriber) { - return subject.subscribe(subscriber); - }); - result.connect = function () { - if (!connection || connection.closed) { - connection = defer(function () { return source; }).subscribe(subject); - if (resetOnDisconnect) { - connection.add(function () { return (subject = connector()); }); - } - } - return connection; - }; - return result; -} -//# sourceMappingURL=connectable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/connectable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/connectable.js.map deleted file mode 100644 index 596f9512b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/connectable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"connectable.js","sourceRoot":"","sources":["../../../../src/internal/observable/connectable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAsBhC,IAAM,cAAc,GAA+B;IACjD,SAAS,EAAE,cAAM,OAAA,IAAI,OAAO,EAAW,EAAtB,CAAsB;IACvC,iBAAiB,EAAE,IAAI;CACxB,CAAC;AAUF,MAAM,UAAU,WAAW,CAAI,MAA0B,EAAE,MAA6C;IAA7C,uBAAA,EAAA,uBAA6C;IAEtG,IAAI,UAAU,GAAwB,IAAI,CAAC;IACnC,IAAA,SAAS,GAA+B,MAAM,UAArC,EAAE,KAA6B,MAAM,kBAAX,EAAxB,iBAAiB,mBAAG,IAAI,KAAA,CAAY;IACvD,IAAI,OAAO,GAAG,SAAS,EAAE,CAAC;IAE1B,IAAM,MAAM,GAAQ,IAAI,UAAU,CAAI,UAAC,UAAU;QAC/C,OAAO,OAAO,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC,CAAC,CAAC;IAKH,MAAM,CAAC,OAAO,GAAG;QACf,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,EAAE;YACpC,UAAU,GAAG,KAAK,CAAC,cAAM,OAAA,MAAM,EAAN,CAAM,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;YACpD,IAAI,iBAAiB,EAAE;gBACrB,UAAU,CAAC,GAAG,CAAC,cAAM,OAAA,CAAC,OAAO,GAAG,SAAS,EAAE,CAAC,EAAvB,CAAuB,CAAC,CAAC;aAC/C;SACF;QACD,OAAO,UAAU,CAAC;IACpB,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/defer.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/defer.js deleted file mode 100755 index b0a600e2c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/defer.js +++ /dev/null @@ -1,8 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from './innerFrom'; -export function defer(observableFactory) { - return new Observable(function (subscriber) { - innerFrom(observableFactory()).subscribe(subscriber); - }); -} -//# sourceMappingURL=defer.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/defer.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/defer.js.map deleted file mode 100644 index eb02dda50..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/defer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"defer.js","sourceRoot":"","sources":["../../../../src/internal/observable/defer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAkDxC,MAAM,UAAU,KAAK,CAAiC,iBAA0B;IAC9E,OAAO,IAAI,UAAU,CAAqB,UAAC,UAAU;QACnD,SAAS,CAAC,iBAAiB,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACvD,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/WebSocketSubject.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/WebSocketSubject.js deleted file mode 100755 index cbce16e1d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/WebSocketSubject.js +++ /dev/null @@ -1,221 +0,0 @@ -import { __assign, __extends } from "tslib"; -import { Subject, AnonymousSubject } from '../../Subject'; -import { Subscriber } from '../../Subscriber'; -import { Observable } from '../../Observable'; -import { Subscription } from '../../Subscription'; -import { ReplaySubject } from '../../ReplaySubject'; -var DEFAULT_WEBSOCKET_CONFIG = { - url: '', - deserializer: function (e) { return JSON.parse(e.data); }, - serializer: function (value) { return JSON.stringify(value); }, -}; -var WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT = 'WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }'; -var WebSocketSubject = (function (_super) { - __extends(WebSocketSubject, _super); - function WebSocketSubject(urlConfigOrSource, destination) { - var _this = _super.call(this) || this; - _this._socket = null; - if (urlConfigOrSource instanceof Observable) { - _this.destination = destination; - _this.source = urlConfigOrSource; - } - else { - var config = (_this._config = __assign({}, DEFAULT_WEBSOCKET_CONFIG)); - _this._output = new Subject(); - if (typeof urlConfigOrSource === 'string') { - config.url = urlConfigOrSource; - } - else { - for (var key in urlConfigOrSource) { - if (urlConfigOrSource.hasOwnProperty(key)) { - config[key] = urlConfigOrSource[key]; - } - } - } - if (!config.WebSocketCtor && WebSocket) { - config.WebSocketCtor = WebSocket; - } - else if (!config.WebSocketCtor) { - throw new Error('no WebSocket constructor can be found'); - } - _this.destination = new ReplaySubject(); - } - return _this; - } - WebSocketSubject.prototype.lift = function (operator) { - var sock = new WebSocketSubject(this._config, this.destination); - sock.operator = operator; - sock.source = this; - return sock; - }; - WebSocketSubject.prototype._resetState = function () { - this._socket = null; - if (!this.source) { - this.destination = new ReplaySubject(); - } - this._output = new Subject(); - }; - WebSocketSubject.prototype.multiplex = function (subMsg, unsubMsg, messageFilter) { - var self = this; - return new Observable(function (observer) { - try { - self.next(subMsg()); - } - catch (err) { - observer.error(err); - } - var subscription = self.subscribe({ - next: function (x) { - try { - if (messageFilter(x)) { - observer.next(x); - } - } - catch (err) { - observer.error(err); - } - }, - error: function (err) { return observer.error(err); }, - complete: function () { return observer.complete(); }, - }); - return function () { - try { - self.next(unsubMsg()); - } - catch (err) { - observer.error(err); - } - subscription.unsubscribe(); - }; - }); - }; - WebSocketSubject.prototype._connectSocket = function () { - var _this = this; - var _a = this._config, WebSocketCtor = _a.WebSocketCtor, protocol = _a.protocol, url = _a.url, binaryType = _a.binaryType; - var observer = this._output; - var socket = null; - try { - socket = protocol ? new WebSocketCtor(url, protocol) : new WebSocketCtor(url); - this._socket = socket; - if (binaryType) { - this._socket.binaryType = binaryType; - } - } - catch (e) { - observer.error(e); - return; - } - var subscription = new Subscription(function () { - _this._socket = null; - if (socket && socket.readyState === 1) { - socket.close(); - } - }); - socket.onopen = function (evt) { - var _socket = _this._socket; - if (!_socket) { - socket.close(); - _this._resetState(); - return; - } - var openObserver = _this._config.openObserver; - if (openObserver) { - openObserver.next(evt); - } - var queue = _this.destination; - _this.destination = Subscriber.create(function (x) { - if (socket.readyState === 1) { - try { - var serializer = _this._config.serializer; - socket.send(serializer(x)); - } - catch (e) { - _this.destination.error(e); - } - } - }, function (err) { - var closingObserver = _this._config.closingObserver; - if (closingObserver) { - closingObserver.next(undefined); - } - if (err && err.code) { - socket.close(err.code, err.reason); - } - else { - observer.error(new TypeError(WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT)); - } - _this._resetState(); - }, function () { - var closingObserver = _this._config.closingObserver; - if (closingObserver) { - closingObserver.next(undefined); - } - socket.close(); - _this._resetState(); - }); - if (queue && queue instanceof ReplaySubject) { - subscription.add(queue.subscribe(_this.destination)); - } - }; - socket.onerror = function (e) { - _this._resetState(); - observer.error(e); - }; - socket.onclose = function (e) { - if (socket === _this._socket) { - _this._resetState(); - } - var closeObserver = _this._config.closeObserver; - if (closeObserver) { - closeObserver.next(e); - } - if (e.wasClean) { - observer.complete(); - } - else { - observer.error(e); - } - }; - socket.onmessage = function (e) { - try { - var deserializer = _this._config.deserializer; - observer.next(deserializer(e)); - } - catch (err) { - observer.error(err); - } - }; - }; - WebSocketSubject.prototype._subscribe = function (subscriber) { - var _this = this; - var source = this.source; - if (source) { - return source.subscribe(subscriber); - } - if (!this._socket) { - this._connectSocket(); - } - this._output.subscribe(subscriber); - subscriber.add(function () { - var _socket = _this._socket; - if (_this._output.observers.length === 0) { - if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) { - _socket.close(); - } - _this._resetState(); - } - }); - return subscriber; - }; - WebSocketSubject.prototype.unsubscribe = function () { - var _socket = this._socket; - if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) { - _socket.close(); - } - this._resetState(); - _super.prototype.unsubscribe.call(this); - }; - return WebSocketSubject; -}(AnonymousSubject)); -export { WebSocketSubject }; -//# sourceMappingURL=WebSocketSubject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/WebSocketSubject.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/WebSocketSubject.js.map deleted file mode 100644 index 005a2c30b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/WebSocketSubject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WebSocketSubject.js","sourceRoot":"","sources":["../../../../../src/internal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AAC;IACH,uBAAC;AAAD,CAAC,AAhPD,CAAyC,gBAAgB,GAgPxD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/animationFrames.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/animationFrames.js deleted file mode 100755 index 8fec6cd29..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/animationFrames.js +++ /dev/null @@ -1,34 +0,0 @@ -import { Observable } from '../../Observable'; -import { performanceTimestampProvider } from '../../scheduler/performanceTimestampProvider'; -import { animationFrameProvider } from '../../scheduler/animationFrameProvider'; -export function animationFrames(timestampProvider) { - return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES; -} -function animationFramesFactory(timestampProvider) { - return new Observable(function (subscriber) { - var provider = timestampProvider || performanceTimestampProvider; - var start = provider.now(); - var id = 0; - var run = function () { - if (!subscriber.closed) { - id = animationFrameProvider.requestAnimationFrame(function (timestamp) { - id = 0; - var now = provider.now(); - subscriber.next({ - timestamp: timestampProvider ? now : timestamp, - elapsed: now - start, - }); - run(); - }); - } - }; - run(); - return function () { - if (id) { - animationFrameProvider.cancelAnimationFrame(id); - } - }; - }); -} -var DEFAULT_ANIMATION_FRAMES = animationFramesFactory(); -//# sourceMappingURL=animationFrames.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/animationFrames.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/animationFrames.js.map deleted file mode 100644 index e5af4e419..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/animationFrames.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrames.js","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/animationFrames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,4BAA4B,EAAE,MAAM,8CAA8C,CAAC;AAC5F,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAuEhF,MAAM,UAAU,eAAe,CAAC,iBAAqC;IACnE,OAAO,iBAAiB,CAAC,CAAC,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,wBAAwB,CAAC;AAClG,CAAC;AAMD,SAAS,sBAAsB,CAAC,iBAAqC;IACnE,OAAO,IAAI,UAAU,CAAyC,UAAC,UAAU;QAIvE,IAAM,QAAQ,GAAG,iBAAiB,IAAI,4BAA4B,CAAC;QAMnE,IAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC;QAE7B,IAAI,EAAE,GAAG,CAAC,CAAC;QACX,IAAM,GAAG,GAAG;YACV,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;gBACtB,EAAE,GAAG,sBAAsB,CAAC,qBAAqB,CAAC,UAAC,SAAuC;oBACxF,EAAE,GAAG,CAAC,CAAC;oBAQP,IAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC;wBACd,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS;wBAC9C,OAAO,EAAE,GAAG,GAAG,KAAK;qBACrB,CAAC,CAAC;oBACH,GAAG,EAAE,CAAC;gBACR,CAAC,CAAC,CAAC;aACJ;QACH,CAAC,CAAC;QAEF,GAAG,EAAE,CAAC;QAEN,OAAO;YACL,IAAI,EAAE,EAAE;gBACN,sBAAsB,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;aACjD;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAMD,IAAM,wBAAwB,GAAG,sBAAsB,EAAE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/fetch.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/fetch.js deleted file mode 100755 index ff9361e4e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/fetch.js +++ /dev/null @@ -1,54 +0,0 @@ -import { __assign, __rest } from "tslib"; -import { createOperatorSubscriber } from '../../operators/OperatorSubscriber'; -import { Observable } from '../../Observable'; -import { innerFrom } from '../../observable/innerFrom'; -export function fromFetch(input, initWithSelector) { - if (initWithSelector === void 0) { initWithSelector = {}; } - var selector = initWithSelector.selector, init = __rest(initWithSelector, ["selector"]); - return new Observable(function (subscriber) { - var controller = new AbortController(); - var signal = controller.signal; - var abortable = true; - var outerSignal = init.signal; - if (outerSignal) { - if (outerSignal.aborted) { - controller.abort(); - } - else { - var outerSignalHandler_1 = function () { - if (!signal.aborted) { - controller.abort(); - } - }; - outerSignal.addEventListener('abort', outerSignalHandler_1); - subscriber.add(function () { return outerSignal.removeEventListener('abort', outerSignalHandler_1); }); - } - } - var perSubscriberInit = __assign(__assign({}, init), { signal: signal }); - var handleError = function (err) { - abortable = false; - subscriber.error(err); - }; - fetch(input, perSubscriberInit) - .then(function (response) { - if (selector) { - innerFrom(selector(response)).subscribe(createOperatorSubscriber(subscriber, undefined, function () { - abortable = false; - subscriber.complete(); - }, handleError)); - } - else { - abortable = false; - subscriber.next(response); - subscriber.complete(); - } - }) - .catch(handleError); - return function () { - if (abortable) { - controller.abort(); - } - }; - }); -} -//# sourceMappingURL=fetch.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/fetch.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/fetch.js.map deleted file mode 100644 index c402c035f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/fetch.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fetch.js","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/fetch.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MA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,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CACrC,wBAAwB,CACtB,UAAU,EAEV,SAAS,EAET;oBACE,SAAS,GAAG,KAAK,CAAC;oBAClB,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACxB,CAAC,EACD,WAAW,CACZ,CACF,CAAC;aACH;iBAAM;gBACL,SAAS,GAAG,KAAK,CAAC;gBAClB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC1B,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,CAAC;aACD,KAAK,CAAC,WAAW,CAAC,CAAC;QAEtB,OAAO;YACL,IAAI,SAAS,EAAE;gBACb,UAAU,CAAC,KAAK,EAAE,CAAC;aACpB;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/webSocket.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/webSocket.js deleted file mode 100755 index 73a51ab4d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/webSocket.js +++ /dev/null @@ -1,5 +0,0 @@ -import { WebSocketSubject } from './WebSocketSubject'; -export function webSocket(urlConfigOrSource) { - return new WebSocketSubject(urlConfigOrSource); -} -//# sourceMappingURL=webSocket.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/webSocket.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/webSocket.js.map deleted file mode 100644 index ab58e4093..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/dom/webSocket.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webSocket.js","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/webSocket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,oBAAoB,CAAC;AA+J9E,MAAM,UAAU,SAAS,CAAI,iBAAqD;IAChF,OAAO,IAAI,gBAAgB,CAAI,iBAAiB,CAAC,CAAC;AACpD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/empty.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/empty.js deleted file mode 100755 index 7d889fc43..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/empty.js +++ /dev/null @@ -1,9 +0,0 @@ -import { Observable } from '../Observable'; -export var EMPTY = new Observable(function (subscriber) { return subscriber.complete(); }); -export function empty(scheduler) { - return scheduler ? emptyScheduled(scheduler) : EMPTY; -} -function emptyScheduled(scheduler) { - return new Observable(function (subscriber) { return scheduler.schedule(function () { return subscriber.complete(); }); }); -} -//# sourceMappingURL=empty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map deleted file mode 100644 index c29b9480e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"empty.js","sourceRoot":"","sources":["../../../../src/internal/observable/empty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAiE3C,MAAM,CAAC,IAAM,KAAK,GAAG,IAAI,UAAU,CAAQ,UAAC,UAAU,IAAK,OAAA,UAAU,CAAC,QAAQ,EAAE,EAArB,CAAqB,CAAC,CAAC;AAOlF,MAAM,UAAU,KAAK,CAAC,SAAyB;IAC7C,OAAO,SAAS,CAAC,CAAC,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;AACvD,CAAC;AAED,SAAS,cAAc,CAAC,SAAwB;IAC9C,OAAO,IAAI,UAAU,CAAQ,UAAC,UAAU,IAAK,OAAA,SAAS,CAAC,QAAQ,CAAC,cAAM,OAAA,UAAU,CAAC,QAAQ,EAAE,EAArB,CAAqB,CAAC,EAA/C,CAA+C,CAAC,CAAC;AAChG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/forkJoin.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/forkJoin.js deleted file mode 100755 index 3337e2c6b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/forkJoin.js +++ /dev/null @@ -1,47 +0,0 @@ -import { Observable } from '../Observable'; -import { argsArgArrayOrObject } from '../util/argsArgArrayOrObject'; -import { innerFrom } from './innerFrom'; -import { popResultSelector } from '../util/args'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { createObject } from '../util/createObject'; -export function forkJoin() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var resultSelector = popResultSelector(args); - var _a = argsArgArrayOrObject(args), sources = _a.args, keys = _a.keys; - var result = new Observable(function (subscriber) { - var length = sources.length; - if (!length) { - subscriber.complete(); - return; - } - var values = new Array(length); - var remainingCompletions = length; - var remainingEmissions = length; - var _loop_1 = function (sourceIndex) { - var hasValue = false; - innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, function (value) { - if (!hasValue) { - hasValue = true; - remainingEmissions--; - } - values[sourceIndex] = value; - }, function () { return remainingCompletions--; }, undefined, function () { - if (!remainingCompletions || !hasValue) { - if (!remainingEmissions) { - subscriber.next(keys ? createObject(keys, values) : values); - } - subscriber.complete(); - } - })); - }; - for (var sourceIndex = 0; sourceIndex < length; sourceIndex++) { - _loop_1(sourceIndex); - } - }); - return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result; -} -//# sourceMappingURL=forkJoin.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/forkJoin.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/forkJoin.js.map deleted file mode 100644 index 48cd3ac94..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/forkJoin.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"forkJoin.js","sourceRoot":"","sources":["../../../../src/internal/observable/forkJoin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AA2IpD,MAAM,UAAU,QAAQ;IAAC,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IACrC,IAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACzC,IAAA,KAA0B,oBAAoB,CAAC,IAAI,CAAC,EAA5C,OAAO,UAAA,EAAE,IAAI,UAA+B,CAAC;IAC3D,IAAM,MAAM,GAAG,IAAI,UAAU,CAAC,UAAC,UAAU;QAC/B,IAAA,MAAM,GAAK,OAAO,OAAZ,CAAa;QAC3B,IAAI,CAAC,MAAM,EAAE;YACX,UAAU,CAAC,QAAQ,EAAE,CAAC;YACtB,OAAO;SACR;QACD,IAAM,MAAM,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,oBAAoB,GAAG,MAAM,CAAC;QAClC,IAAI,kBAAkB,GAAG,MAAM,CAAC;gCACvB,WAAW;YAClB,IAAI,QAAQ,GAAG,KAAK,CAAC;YACrB,SAAS,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CACvC,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;gBACJ,IAAI,CAAC,QAAQ,EAAE;oBACb,QAAQ,GAAG,IAAI,CAAC;oBAChB,kBAAkB,EAAE,CAAC;iBACtB;gBACD,MAAM,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;YAC9B,CAAC,EACD,cAAM,OAAA,oBAAoB,EAAE,EAAtB,CAAsB,EAC5B,SAAS,EACT;gBACE,IAAI,CAAC,oBAAoB,IAAI,CAAC,QAAQ,EAAE;oBACtC,IAAI,CAAC,kBAAkB,EAAE;wBACvB,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;qBAC7D;oBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;iBACvB;YACH,CAAC,CACF,CACF,CAAC;;QAvBJ,KAAK,IAAI,WAAW,GAAG,CAAC,EAAE,WAAW,GAAG,MAAM,EAAE,WAAW,EAAE;oBAApD,WAAW;SAwBnB;IACH,CAAC,CAAC,CAAC;IACH,OAAO,cAAc,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;AACjF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/from.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/from.js deleted file mode 100755 index 2b61be430..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/from.js +++ /dev/null @@ -1,6 +0,0 @@ -import { scheduled } from '../scheduled/scheduled'; -import { innerFrom } from './innerFrom'; -export function from(input, scheduler) { - return scheduler ? scheduled(input, scheduler) : innerFrom(input); -} -//# sourceMappingURL=from.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/from.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/from.js.map deleted file mode 100644 index baf621f79..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/from.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"from.js","sourceRoot":"","sources":["../../../../src/internal/observable/from.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAkGxC,MAAM,UAAU,IAAI,CAAI,KAAyB,EAAE,SAAyB;IAC1E,OAAO,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACpE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js deleted file mode 100755 index a6835d710..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js +++ /dev/null @@ -1,59 +0,0 @@ -import { __read } from "tslib"; -import { innerFrom } from '../observable/innerFrom'; -import { Observable } from '../Observable'; -import { mergeMap } from '../operators/mergeMap'; -import { isArrayLike } from '../util/isArrayLike'; -import { isFunction } from '../util/isFunction'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -var nodeEventEmitterMethods = ['addListener', 'removeListener']; -var eventTargetMethods = ['addEventListener', 'removeEventListener']; -var jqueryMethods = ['on', 'off']; -export function fromEvent(target, eventName, options, resultSelector) { - if (isFunction(options)) { - resultSelector = options; - options = undefined; - } - if (resultSelector) { - return fromEvent(target, eventName, options).pipe(mapOneOrManyArgs(resultSelector)); - } - var _a = __read(isEventTarget(target) - ? eventTargetMethods.map(function (methodName) { return function (handler) { return target[methodName](eventName, handler, options); }; }) - : - isNodeStyleEventEmitter(target) - ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) - : isJQueryStyleEventEmitter(target) - ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) - : [], 2), add = _a[0], remove = _a[1]; - if (!add) { - if (isArrayLike(target)) { - return mergeMap(function (subTarget) { return fromEvent(subTarget, eventName, options); })(innerFrom(target)); - } - } - if (!add) { - throw new TypeError('Invalid event target'); - } - return new Observable(function (subscriber) { - var handler = function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return subscriber.next(1 < args.length ? args : args[0]); - }; - add(handler); - return function () { return remove(handler); }; - }); -} -function toCommonHandlerRegistry(target, eventName) { - return function (methodName) { return function (handler) { return target[methodName](eventName, handler); }; }; -} -function isNodeStyleEventEmitter(target) { - return isFunction(target.addListener) && isFunction(target.removeListener); -} -function isJQueryStyleEventEmitter(target) { - return isFunction(target.on) && isFunction(target.off); -} -function isEventTarget(target) { - return isFunction(target.addEventListener) && isFunction(target.removeEventListener); -} -//# sourceMappingURL=fromEvent.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js.map deleted file mode 100644 index 8cd08bd32..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fromEvent.js","sourceRoot":"","sources":["../../../../src/internal/observable/fromEvent.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D,IAAM,uBAAuB,GAAG,CAAC,aAAa,EAAE,gBAAgB,CAAU,CAAC;AAC3E,IAAM,kBAAkB,GAAG,CA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able/fromEventPattern.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromEventPattern.js deleted file mode 100755 index 9c16f5fa5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromEventPattern.js +++ /dev/null @@ -1,20 +0,0 @@ -import { Observable } from '../Observable'; -import { isFunction } from '../util/isFunction'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -export function fromEventPattern(addHandler, removeHandler, resultSelector) { - if (resultSelector) { - return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs(resultSelector)); - } - return new Observable(function (subscriber) { - var handler = function () { - var e = []; - for (var _i = 0; _i < arguments.length; _i++) { - e[_i] = arguments[_i]; - } - return subscriber.next(e.length === 1 ? e[0] : e); - }; - var retValue = addHandler(handler); - return isFunction(removeHandler) ? function () { return removeHandler(handler, retValue); } : undefined; - }); -} -//# sourceMappingURL=fromEventPattern.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromEventPattern.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromEventPattern.js.map deleted file mode 100644 index de6d4c77a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromEventPattern.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fromEventPattern.js","sourceRoot":"","sources":["../../../../src/internal/observable/fromEventPattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAyI5D,MAAM,UAAU,gBAAgB,CAC9B,UAA8C,EAC9C,aAAiE,EACjE,cAAsC;IAEtC,IAAI,cAAc,EAAE;QAClB,OAAO,gBAAgB,CAAI,UAAU,EAAE,aAAa,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC;KAC9F;IAED,OAAO,IAAI,UAAU,CAAU,UAAC,UAAU;QACxC,IAAM,OAAO,GAAG;YAAC,WAAS;iBAAT,UAAS,EAAT,qBAAS,EAAT,IAAS;gBAAT,sBAAS;;YAAK,OAAA,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAA1C,CAA0C,CAAC;QAC1E,IAAM,QAAQ,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;QACrC,OAAO,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,cAAM,OAAA,aAAa,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAhC,CAAgC,CAAC,CAAC,CAAC,SAAS,CAAC;IACxF,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromSubscribable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromSubscribable.js deleted file mode 100755 index 5e8a5f119..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromSubscribable.js +++ /dev/null @@ -1,5 +0,0 @@ -import { Observable } from '../Observable'; -export function fromSubscribable(subscribable) { - return new Observable(function (subscriber) { return subscribable.subscribe(subscriber); }); -} -//# sourceMappingURL=fromSubscribable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromSubscribable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromSubscribable.js.map deleted file mode 100644 index b594a6c8b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/fromSubscribable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fromSubscribable.js","sourceRoot":"","sources":["../../../../src/internal/observable/fromSubscribable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAc3C,MAAM,UAAU,gBAAgB,CAAI,YAA6B;IAC/D,OAAO,IAAI,UAAU,CAAC,UAAC,UAAyB,IAAK,OAAA,YAAY,CAAC,SAAS,CAAC,UAAU,CAAC,EAAlC,CAAkC,CAAC,CAAC;AAC3F,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/generate.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/generate.js deleted file mode 100755 index d6f93b12d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/generate.js +++ /dev/null @@ -1,49 +0,0 @@ -import { __generator } from "tslib"; -import { identity } from '../util/identity'; -import { isScheduler } from '../util/isScheduler'; -import { defer } from './defer'; -import { scheduleIterable } from '../scheduled/scheduleIterable'; -export function generate(initialStateOrOptions, condition, iterate, resultSelectorOrScheduler, scheduler) { - var _a, _b; - var resultSelector; - var initialState; - if (arguments.length === 1) { - (_a = initialStateOrOptions, initialState = _a.initialState, condition = _a.condition, iterate = _a.iterate, _b = _a.resultSelector, resultSelector = _b === void 0 ? identity : _b, scheduler = _a.scheduler); - } - else { - initialState = initialStateOrOptions; - if (!resultSelectorOrScheduler || isScheduler(resultSelectorOrScheduler)) { - resultSelector = identity; - scheduler = resultSelectorOrScheduler; - } - else { - resultSelector = resultSelectorOrScheduler; - } - } - function gen() { - var state; - return __generator(this, function (_a) { - switch (_a.label) { - case 0: - state = initialState; - _a.label = 1; - case 1: - if (!(!condition || condition(state))) return [3, 4]; - return [4, resultSelector(state)]; - case 2: - _a.sent(); - _a.label = 3; - case 3: - state = iterate(state); - return [3, 1]; - case 4: return [2]; - } - }); - } - return defer((scheduler - ? - function () { return scheduleIterable(gen(), scheduler); } - : - gen)); -} -//# sourceMappingURL=generate.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/generate.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/generate.js.map deleted file mode 100644 index 463625693..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/generate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../src/internal/observable/generate.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAuUjE,MAAM,UAAU,QAAQ,CACtB,qBAAgD,EAChD,SAA4B,EAC5B,OAAwB,EACxB,yBAA4D,EAC5D,SAAyB;;IAEzB,IAAI,cAAgC,CAAC;IACrC,IAAI,YAAe,CAAC;IAIpB,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;QAG1B,CAAC,KAMG,qBAA8C,EALhD,YAAY,kBAAA,EACZ,SAAS,eAAA,EACT,OAAO,aAAA,EACP,sBAA6C,EAA7C,cAAc,mBAAG,QAA4B,KAAA,EAC7C,SAAS,eAAA,CACwC,CAAC;KACrD;SAAM;QAGL,YAAY,GAAG,qBAA0B,CAAC;QAC1C,IAAI,CAAC,yBAAyB,IAAI,WAAW,CAAC,yBAAyB,CAAC,EAAE;YACxE,cAAc,GAAG,QAA4B,CAAC;YAC9C,SAAS,GAAG,yBAA0C,CAAC;SACxD;aAAM;YACL,cAAc,GAAG,yBAA6C,CAAC;SAChE;KACF;IAGD,SAAU,GAAG;;;;;oBACF,KAAK,GAAG,YAAY;;;yBAAE,CAAA,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,CAAC,CAAA;oBAC3D,WAAM,cAAc,CAAC,KAAK,CAAC,EAAA;;oBAA3B,SAA2B,CAAC;;;oBADiC,KAAK,GAAG,OAAQ,CAAC,KAAK,CAAC,CAAA;;;;;KAGvF;IAGD,OAAO,KAAK,CACV,CAAC,SAAS;QACR,CAAC;YAEC,cAAM,OAAA,gBAAgB,CAAC,GAAG,EAAE,EAAE,SAAU,CAAC,EAAnC,CAAmC;QAC3C,CAAC;YAEC,GAAG,CAA6B,CACrC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/iif.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/iif.js deleted file mode 100755 index 0e5425a93..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/iif.js +++ /dev/null @@ -1,5 +0,0 @@ -import { defer } from './defer'; -export function iif(condition, trueResult, falseResult) { - return defer(function () { return (condition() ? trueResult : falseResult); }); -} -//# sourceMappingURL=iif.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/iif.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/iif.js.map deleted file mode 100644 index df79d319f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/iif.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"iif.js","sourceRoot":"","sources":["../../../../src/internal/observable/iif.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAiFhC,MAAM,UAAU,GAAG,CAAO,SAAwB,EAAE,UAA8B,EAAE,WAA+B;IACjH,OAAO,KAAK,CAAC,cAAM,OAAA,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,EAAxC,CAAwC,CAAC,CAAC;AAC/D,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js deleted file mode 100755 index ac77ca7d6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js +++ /dev/null @@ -1,143 +0,0 @@ -import { __asyncValues, __awaiter, __generator, __values } from "tslib"; -import { isArrayLike } from '../util/isArrayLike'; -import { isPromise } from '../util/isPromise'; -import { Observable } from '../Observable'; -import { isInteropObservable } from '../util/isInteropObservable'; -import { isAsyncIterable } from '../util/isAsyncIterable'; -import { createInvalidObservableTypeError } from '../util/throwUnobservableError'; -import { isIterable } from '../util/isIterable'; -import { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike'; -import { isFunction } from '../util/isFunction'; -import { reportUnhandledError } from '../util/reportUnhandledError'; -import { observable as Symbol_observable } from '../symbol/observable'; -export function innerFrom(input) { - if (input instanceof Observable) { - return input; - } - if (input != null) { - if (isInteropObservable(input)) { - return fromInteropObservable(input); - } - if (isArrayLike(input)) { - return fromArrayLike(input); - } - if (isPromise(input)) { - return fromPromise(input); - } - if (isAsyncIterable(input)) { - return fromAsyncIterable(input); - } - if (isIterable(input)) { - return fromIterable(input); - } - if (isReadableStreamLike(input)) { - return fromReadableStreamLike(input); - } - } - throw createInvalidObservableTypeError(input); -} -export function fromInteropObservable(obj) { - return new Observable(function (subscriber) { - var obs = obj[Symbol_observable](); - if (isFunction(obs.subscribe)) { - return obs.subscribe(subscriber); - } - throw new TypeError('Provided object does not correctly implement Symbol.observable'); - }); -} -export function fromArrayLike(array) { - return new Observable(function (subscriber) { - for (var i = 0; i < array.length && !subscriber.closed; i++) { - subscriber.next(array[i]); - } - subscriber.complete(); - }); -} -export function fromPromise(promise) { - return new Observable(function (subscriber) { - promise - .then(function (value) { - if (!subscriber.closed) { - subscriber.next(value); - subscriber.complete(); - } - }, function (err) { return subscriber.error(err); }) - .then(null, reportUnhandledError); - }); -} -export function fromIterable(iterable) { - return new Observable(function (subscriber) { - var e_1, _a; - try { - for (var iterable_1 = __values(iterable), iterable_1_1 = iterable_1.next(); !iterable_1_1.done; iterable_1_1 = iterable_1.next()) { - var value = iterable_1_1.value; - subscriber.next(value); - if (subscriber.closed) { - return; - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (iterable_1_1 && !iterable_1_1.done && (_a = iterable_1.return)) _a.call(iterable_1); - } - finally { if (e_1) throw e_1.error; } - } - subscriber.complete(); - }); -} -export function fromAsyncIterable(asyncIterable) { - return new Observable(function (subscriber) { - process(asyncIterable, subscriber).catch(function (err) { return subscriber.error(err); }); - }); -} -export function fromReadableStreamLike(readableStream) { - return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream)); -} -function process(asyncIterable, subscriber) { - var asyncIterable_1, asyncIterable_1_1; - var e_2, _a; - return __awaiter(this, void 0, void 0, function () { - var value, e_2_1; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - _b.trys.push([0, 5, 6, 11]); - asyncIterable_1 = __asyncValues(asyncIterable); - _b.label = 1; - case 1: return [4, asyncIterable_1.next()]; - case 2: - if (!(asyncIterable_1_1 = _b.sent(), !asyncIterable_1_1.done)) return [3, 4]; - value = asyncIterable_1_1.value; - subscriber.next(value); - if (subscriber.closed) { - return [2]; - } - _b.label = 3; - case 3: return [3, 1]; - case 4: return [3, 11]; - case 5: - e_2_1 = _b.sent(); - e_2 = { error: e_2_1 }; - return [3, 11]; - case 6: - _b.trys.push([6, , 9, 10]); - if (!(asyncIterable_1_1 && !asyncIterable_1_1.done && (_a = asyncIterable_1.return))) return [3, 8]; - return [4, _a.call(asyncIterable_1)]; - case 7: - _b.sent(); - _b.label = 8; - case 8: return [3, 10]; - case 9: - if (e_2) throw e_2.error; - return [7]; - case 10: return [7]; - case 11: - subscriber.complete(); - return [2]; - } - }); - }); -} -//# sourceMappingURL=innerFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js.map deleted file mode 100644 index 2044d768c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"innerFrom.js","sourceRoot":"","sources":["../../../../src/internal/observable/innerFrom.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WA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AC;AAED,MAAM,UAAU,YAAY,CAAI,QAAqB;IACnD,OAAO,IAAI,UAAU,CAAC,UAAC,UAAyB;;;YAC9C,KAAoB,IAAA,aAAA,SAAA,QAAQ,CAAA,kCAAA,wDAAE;gBAAzB,IAAM,KAAK,qBAAA;gBACd,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACvB,IAAI,UAAU,CAAC,MAAM,EAAE;oBACrB,OAAO;iBACR;aACF;;;;;;;;;QACD,UAAU,CAAC,QAAQ,EAAE,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAI,aAA+B;IAClE,OAAO,IAAI,UAAU,CAAC,UAAC,UAAyB;QAC9C,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,UAAC,GAAG,IAAK,OAAA,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAArB,CAAqB,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,cAAqC;IAC7E,OAAO,iBAAiB,CAAC,kCAAkC,CAAC,cAAc,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAe,OAAO,CAAI,aAA+B,EAAE,UAAyB;;;;;;;;;oBACxD,kBAAA,cAAA,aAAa,CAAA;;;;;oBAAtB,KAAK,0BAAA,CAAA;oBACpB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAGvB,IAAI,UAAU,CAAC,MAAM,EAAE;wBACrB,WAAO;qBACR;;;;;;;;;;;;;;;;;;;;;oBAEH,UAAU,CAAC,QAAQ,EAAE,CAAC;;;;;CACvB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/interval.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/interval.js deleted file mode 100755 index 6944be4cb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/interval.js +++ /dev/null @@ -1,11 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { timer } from './timer'; -export function interval(period, scheduler) { - if (period === void 0) { period = 0; } - if (scheduler === void 0) { scheduler = asyncScheduler; } - if (period < 0) { - period = 0; - } - return timer(period, period, scheduler); -} -//# sourceMappingURL=interval.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/interval.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/interval.js.map deleted file mode 100644 index c542e9cca..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/interval.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"interval.js","sourceRoot":"","sources":["../../../../src/internal/observable/interval.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA+ChC,MAAM,UAAU,QAAQ,CAAC,MAAU,EAAE,SAAyC;IAArD,uBAAA,EAAA,UAAU;IAAE,0BAAA,EAAA,0BAAyC;IAC5E,IAAI,MAAM,GAAG,CAAC,EAAE;QAEd,MAAM,GAAG,CAAC,CAAC;KACZ;IAED,OAAO,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;AAC1C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/merge.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/merge.js deleted file mode 100755 index 99f4ab95e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/merge.js +++ /dev/null @@ -1,23 +0,0 @@ -import { mergeAll } from '../operators/mergeAll'; -import { innerFrom } from './innerFrom'; -import { EMPTY } from './empty'; -import { popNumber, popScheduler } from '../util/args'; -import { from } from './from'; -export function merge() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = popScheduler(args); - var concurrent = popNumber(args, Infinity); - var sources = args; - return !sources.length - ? - EMPTY - : sources.length === 1 - ? - innerFrom(sources[0]) - : - mergeAll(concurrent)(from(sources, scheduler)); -} -//# sourceMappingURL=merge.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/merge.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/merge.js.map deleted file mode 100644 index 3be8053a2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/merge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../../src/internal/observable/merge.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAmF9B,MAAM,UAAU,KAAK;IAAC,cAA8D;SAA9D,UAA8D,EAA9D,qBAA8D,EAA9D,IAA8D;QAA9D,yBAA8D;;IAClF,IAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,IAAM,UAAU,GAAG,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC7C,IAAM,OAAO,GAAG,IAAkC,CAAC;IACnD,OAAO,CAAC,OAAO,CAAC,MAAM;QACpB,CAAC;YACC,KAAK;QACP,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;YACtB,CAAC;gBACC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACvB,CAAC;gBACC,QAAQ,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/never.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/never.js deleted file mode 100755 index 376b03089..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/never.js +++ /dev/null @@ -1,7 +0,0 @@ -import { Observable } from '../Observable'; -import { noop } from '../util/noop'; -export var NEVER = new Observable(noop); -export function never() { - return NEVER; -} -//# sourceMappingURL=never.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/never.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/never.js.map deleted file mode 100644 index 63f161ce4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/never.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"never.js","sourceRoot":"","sources":["../../../../src/internal/observable/never.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAmCpC,MAAM,CAAC,IAAM,KAAK,GAAG,IAAI,UAAU,CAAQ,IAAI,CAAC,CAAC;AAKjD,MAAM,UAAU,KAAK;IACnB,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/of.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/of.js deleted file mode 100755 index 11e56e45d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/of.js +++ /dev/null @@ -1,11 +0,0 @@ -import { popScheduler } from '../util/args'; -import { from } from './from'; -export function of() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = popScheduler(args); - return from(args, scheduler); -} -//# sourceMappingURL=of.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/of.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/of.js.map deleted file mode 100644 index f72c4de91..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/of.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"of.js","sourceRoot":"","sources":["../../../../src/internal/observable/of.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA4E9B,MAAM,UAAU,EAAE;IAAI,cAAiC;SAAjC,UAAiC,EAAjC,qBAAiC,EAAjC,IAAiC;QAAjC,yBAAiC;;IACrD,IAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,IAAI,CAAC,IAAW,EAAE,SAAS,CAAC,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/onErrorResumeNext.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/onErrorResumeNext.js deleted file mode 100755 index b47af23de..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/onErrorResumeNext.js +++ /dev/null @@ -1,35 +0,0 @@ -import { Observable } from '../Observable'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { OperatorSubscriber } from '../operators/OperatorSubscriber'; -import { noop } from '../util/noop'; -import { innerFrom } from './innerFrom'; -export function onErrorResumeNext() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - var nextSources = argsOrArgArray(sources); - return new Observable(function (subscriber) { - var sourceIndex = 0; - var subscribeNext = function () { - if (sourceIndex < nextSources.length) { - var nextSource = void 0; - try { - nextSource = innerFrom(nextSources[sourceIndex++]); - } - catch (err) { - subscribeNext(); - return; - } - var innerSubscriber = new OperatorSubscriber(subscriber, undefined, noop, noop); - nextSource.subscribe(innerSubscriber); - innerSubscriber.add(subscribeNext); - } - else { - subscriber.complete(); - } - }; - subscribeNext(); - }); -} -//# sourceMappingURL=onErrorResumeNext.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/onErrorResumeNext.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/onErrorResumeNext.js.map deleted file mode 100644 index f03e09584..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/onErrorResumeNext.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"onErrorResumeNext.js","sourceRoot":"","sources":["../../../../src/internal/observable/onErrorResumeNext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAsExC,MAAM,UAAU,iBAAiB;IAC/B,iBAAyE;SAAzE,UAAyE,EAAzE,qBAAyE,EAAzE,IAAyE;QAAzE,4BAAyE;;IAEzE,IAAM,WAAW,GAA4B,cAAc,CAAC,OAAO,CAAQ,CAAC;IAE5E,OAAO,IAAI,UAAU,CAAC,UAAC,UAAU;QAC/B,IAAI,WAAW,GAAG,CAAC,CAAC;QACpB,IAAM,aAAa,GAAG;YACpB,IAAI,WAAW,GAAG,WAAW,CAAC,MAAM,EAAE;gBACpC,IAAI,UAAU,SAAuB,CAAC;gBACtC,IAAI;oBACF,UAAU,GAAG,SAAS,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;iBACpD;gBAAC,OAAO,GAAG,EAAE;oBACZ,aAAa,EAAE,CAAC;oBAChB,OAAO;iBACR;gBACD,IAAM,eAAe,GAAG,IAAI,kBAAkB,CAAC,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;gBAClF,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;gBACtC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;aACpC;iBAAM;gBACL,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,CAAC;QACF,aAAa,EAAE,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/pairs.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/pairs.js deleted file mode 100755 index 77cc11052..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/pairs.js +++ /dev/null @@ -1,5 +0,0 @@ -import { from } from './from'; -export function pairs(obj, scheduler) { - return from(Object.entries(obj), scheduler); -} -//# sourceMappingURL=pairs.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/pairs.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/pairs.js.map deleted file mode 100644 index 50c158e5a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/pairs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pairs.js","sourceRoot":"","sources":["../../../../src/internal/observable/pairs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AA6E9B,MAAM,UAAU,KAAK,CAAC,GAAQ,EAAE,SAAyB;IACvD,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,SAAgB,CAAC,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/partition.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/partition.js deleted file mode 100755 index a5a7d483b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/partition.js +++ /dev/null @@ -1,7 +0,0 @@ -import { not } from '../util/not'; -import { filter } from '../operators/filter'; -import { innerFrom } from './innerFrom'; -export function partition(source, predicate, thisArg) { - return [filter(predicate, thisArg)(innerFrom(source)), filter(not(predicate, thisArg))(innerFrom(source))]; -} -//# sourceMappingURL=partition.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/partition.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/partition.js.map deleted file mode 100644 index 746610448..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/partition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"partition.js","sourceRoot":"","sources":["../../../../src/internal/observable/partition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AA0ExC,MAAM,UAAU,SAAS,CACvB,MAA0B,EAC1B,SAA0D,EAC1D,OAAa;IAEb,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAGxG,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/race.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/race.js deleted file mode 100755 index d1b0fd65e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/race.js +++ /dev/null @@ -1,32 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from './innerFrom'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -export function race() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - sources = argsOrArgArray(sources); - return sources.length === 1 ? innerFrom(sources[0]) : new Observable(raceInit(sources)); -} -export function raceInit(sources) { - return function (subscriber) { - var subscriptions = []; - var _loop_1 = function (i) { - subscriptions.push(innerFrom(sources[i]).subscribe(createOperatorSubscriber(subscriber, function (value) { - if (subscriptions) { - for (var s = 0; s < subscriptions.length; s++) { - s !== i && subscriptions[s].unsubscribe(); - } - subscriptions = null; - } - subscriber.next(value); - }))); - }; - for (var i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) { - _loop_1(i); - } - }; -} -//# sourceMappingURL=race.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/race.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/race.js.map deleted file mode 100644 index 5cc4b88b9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/race.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"race.js","sourceRoot":"","sources":["../../../../src/internal/observable/race.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AA6C3E,MAAM,UAAU,IAAI;IAAI,iBAAyD;SAAzD,UAAyD,EAAzD,qBAAyD,EAAzD,IAAyD;QAAzD,4BAAyD;;IAC/E,OAAO,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAElC,OAAO,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAuB,CAAC,CAAC,CAAC,CAAC,IAAI,UAAU,CAAI,QAAQ,CAAC,OAA+B,CAAC,CAAC,CAAC;AAC3I,CAAC;AAOD,MAAM,UAAU,QAAQ,CAAI,OAA6B;IACvD,OAAO,UAAC,UAAyB;QAC/B,IAAI,aAAa,GAAmB,EAAE,CAAC;gCAM9B,CAAC;YACR,aAAa,CAAC,IAAI,CAChB,SAAS,CAAC,OAAO,CAAC,CAAC,CAAuB,CAAC,CAAC,SAAS,CACnD,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;gBACzC,IAAI,aAAa,EAAE;oBAGjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,aAAa,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBAC7C,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;qBAC3C;oBACD,aAAa,GAAG,IAAK,CAAC;iBACvB;gBACD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzB,CAAC,CAAC,CACH,CACF,CAAC;;QAfJ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,aAAa,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE;oBAArE,CAAC;SAgBT;IACH,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/range.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/range.js deleted file mode 100755 index 23c734332..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/range.js +++ /dev/null @@ -1,35 +0,0 @@ -import { Observable } from '../Observable'; -import { EMPTY } from './empty'; -export function range(start, count, scheduler) { - if (count == null) { - count = start; - start = 0; - } - if (count <= 0) { - return EMPTY; - } - var end = count + start; - return new Observable(scheduler - ? - function (subscriber) { - var n = start; - return scheduler.schedule(function () { - if (n < end) { - subscriber.next(n++); - this.schedule(); - } - else { - subscriber.complete(); - } - }); - } - : - function (subscriber) { - var n = start; - while (n < end && !subscriber.closed) { - subscriber.next(n++); - } - subscriber.complete(); - }); -} -//# sourceMappingURL=range.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/range.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/range.js.map deleted file mode 100644 index 8c8227ca2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/range.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.js","sourceRoot":"","sources":["../../../../src/internal/observable/range.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAqDhC,MAAM,UAAU,KAAK,CAAC,KAAa,EAAE,KAAc,EAAE,SAAyB;IAC5E,IAAI,KAAK,IAAI,IAAI,EAAE;QAEjB,KAAK,GAAG,KAAK,CAAC;QACd,KAAK,GAAG,CAAC,CAAC;KACX;IAED,IAAI,KAAK,IAAI,CAAC,EAAE;QAEd,OAAO,KAAK,CAAC;KACd;IAGD,IAAM,GAAG,GAAG,KAAK,GAAG,KAAK,CAAC;IAE1B,OAAO,IAAI,UAAU,CACnB,SAAS;QACP,CAAC;YACC,UAAC,UAAU;gBACT,IAAI,CAAC,GAAG,KAAK,CAAC;gBACd,OAAO,SAAS,CAAC,QAAQ,CAAC;oBACxB,IAAI,CAAC,GAAG,GAAG,EAAE;wBACX,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;wBACrB,IAAI,CAAC,QAAQ,EAAE,CAAC;qBACjB;yBAAM;wBACL,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;gBACH,CAAC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;YACC,UAAC,UAAU;gBACT,IAAI,CAAC,GAAG,KAAK,CAAC;gBACd,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;oBACpC,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;iBACtB;gBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,CACN,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/throwError.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/throwError.js deleted file mode 100755 index 1498dde27..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/throwError.js +++ /dev/null @@ -1,8 +0,0 @@ -import { Observable } from '../Observable'; -import { isFunction } from '../util/isFunction'; -export function throwError(errorOrErrorFactory, scheduler) { - var errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : function () { return errorOrErrorFactory; }; - var init = function (subscriber) { return subscriber.error(errorFactory()); }; - return new Observable(scheduler ? function (subscriber) { return scheduler.schedule(init, 0, subscriber); } : init); -} -//# sourceMappingURL=throwError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/throwError.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/throwError.js.map deleted file mode 100644 index e9606c19a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/throwError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwError.js","sourceRoot":"","sources":["../../../../src/internal/observable/throwError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAqHhD,MAAM,UAAU,UAAU,CAAC,mBAAwB,EAAE,SAAyB;IAC5E,IAAM,YAAY,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,cAAM,OAAA,mBAAmB,EAAnB,CAAmB,CAAC;IACvG,IAAM,IAAI,GAAG,UAAC,UAA6B,IAAK,OAAA,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,EAAhC,CAAgC,CAAC;IACjF,OAAO,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,UAAC,UAAU,IAAK,OAAA,SAAS,CAAC,QAAQ,CAAC,IAAW,EAAE,CAAC,EAAE,UAAU,CAAC,EAA9C,CAA8C,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAC3G,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/timer.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/timer.js deleted file mode 100755 index 8caa9bc72..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/timer.js +++ /dev/null @@ -1,36 +0,0 @@ -import { Observable } from '../Observable'; -import { async as asyncScheduler } from '../scheduler/async'; -import { isScheduler } from '../util/isScheduler'; -import { isValidDate } from '../util/isDate'; -export function timer(dueTime, intervalOrScheduler, scheduler) { - if (dueTime === void 0) { dueTime = 0; } - if (scheduler === void 0) { scheduler = asyncScheduler; } - var intervalDuration = -1; - if (intervalOrScheduler != null) { - if (isScheduler(intervalOrScheduler)) { - scheduler = intervalOrScheduler; - } - else { - intervalDuration = intervalOrScheduler; - } - } - return new Observable(function (subscriber) { - var due = isValidDate(dueTime) ? +dueTime - scheduler.now() : dueTime; - if (due < 0) { - due = 0; - } - var n = 0; - return scheduler.schedule(function () { - if (!subscriber.closed) { - subscriber.next(n++); - if (0 <= intervalDuration) { - this.schedule(undefined, intervalDuration); - } - else { - subscriber.complete(); - } - } - }, due); - }); -} -//# sourceMappingURL=timer.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/timer.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/timer.js.map deleted file mode 100644 index 00e0f5803..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/timer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timer.js","sourceRoot":"","sources":["../../../../src/internal/observable/timer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,KAAK,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAgI7C,MAAM,UAAU,KAAK,CACnB,OAA0B,EAC1B,mBAA4C,EAC5C,SAAyC;IAFzC,wBAAA,EAAA,WAA0B;IAE1B,0BAAA,EAAA,0BAAyC;IAIzC,IAAI,gBAAgB,GAAG,CAAC,CAAC,CAAC;IAE1B,IAAI,mBAAmB,IAAI,IAAI,EAAE;QAI/B,IAAI,WAAW,CAAC,mBAAmB,CAAC,EAAE;YACpC,SAAS,GAAG,mBAAmB,CAAC;SACjC;aAAM;YAGL,gBAAgB,GAAG,mBAAmB,CAAC;SACxC;KACF;IAED,OAAO,IAAI,UAAU,CAAC,UAAC,UAAU;QAI/B,IAAI,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,GAAG,SAAU,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;QAEvE,IAAI,GAAG,GAAG,CAAC,EAAE;YAEX,GAAG,GAAG,CAAC,CAAC;SACT;QAGD,IAAI,CAAC,GAAG,CAAC,CAAC;QAGV,OAAO,SAAS,CAAC,QAAQ,CAAC;YACxB,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;gBAEtB,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;gBAErB,IAAI,CAAC,IAAI,gBAAgB,EAAE;oBAGzB,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;iBAC5C;qBAAM;oBAEL,UAAU,CAAC,QAAQ,EAAE,CAAC;iBACvB;aACF;QACH,CAAC,EAAE,GAAG,CAAC,CAAC;IACV,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/using.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/using.js deleted file mode 100755 index 6e244cc82..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/using.js +++ /dev/null @@ -1,17 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from './innerFrom'; -import { EMPTY } from './empty'; -export function using(resourceFactory, observableFactory) { - return new Observable(function (subscriber) { - var resource = resourceFactory(); - var result = observableFactory(resource); - var source = result ? innerFrom(result) : EMPTY; - source.subscribe(subscriber); - return function () { - if (resource) { - resource.unsubscribe(); - } - }; - }); -} -//# sourceMappingURL=using.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/using.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/using.js.map deleted file mode 100644 index a1b6c8400..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/using.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"using.js","sourceRoot":"","sources":["../../../../src/internal/observable/using.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA8BhC,MAAM,UAAU,KAAK,CACnB,eAA4C,EAC5C,iBAAgE;IAEhE,OAAO,IAAI,UAAU,CAAqB,UAAC,UAAU;QACnD,IAAM,QAAQ,GAAG,eAAe,EAAE,CAAC;QACnC,IAAM,MAAM,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;QAClD,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAC7B,OAAO;YAGL,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,WAAW,EAAE,CAAC;aACxB;QACH,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/zip.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/zip.js deleted file mode 100755 index a3b2b246e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/zip.js +++ /dev/null @@ -1,46 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { Observable } from '../Observable'; -import { innerFrom } from './innerFrom'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { EMPTY } from './empty'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { popResultSelector } from '../util/args'; -export function zip() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var resultSelector = popResultSelector(args); - var sources = argsOrArgArray(args); - return sources.length - ? new Observable(function (subscriber) { - var buffers = sources.map(function () { return []; }); - var completed = sources.map(function () { return false; }); - subscriber.add(function () { - buffers = completed = null; - }); - var _loop_1 = function (sourceIndex) { - innerFrom(sources[sourceIndex]).subscribe(createOperatorSubscriber(subscriber, function (value) { - buffers[sourceIndex].push(value); - if (buffers.every(function (buffer) { return buffer.length; })) { - var result = buffers.map(function (buffer) { return buffer.shift(); }); - subscriber.next(resultSelector ? resultSelector.apply(void 0, __spreadArray([], __read(result))) : result); - if (buffers.some(function (buffer, i) { return !buffer.length && completed[i]; })) { - subscriber.complete(); - } - } - }, function () { - completed[sourceIndex] = true; - !buffers[sourceIndex].length && subscriber.complete(); - })); - }; - for (var sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) { - _loop_1(sourceIndex); - } - return function () { - buffers = completed = null; - }; - }) - : EMPTY; -} -//# sourceMappingURL=zip.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/zip.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/zip.js.map deleted file mode 100644 index f445757b3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/observable/zip.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zip.js","sourceRoot":"","sources":["../../../../src/internal/observable/zip.ts"],"names":[],"mappings":";AAAA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OAAA,MAAM,CAAC,KAAK,EAAG,EAAf,CAAe,CAAC,CAAC;wBAE7D,UAAU,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,cAAc,wCAAI,MAAM,IAAE,CAAC,CAAC,MAAM,CAAC,CAAC;wBAIrE,IAAI,OAAO,CAAC,IAAI,CAAC,UAAC,MAAM,EAAE,CAAC,IAAK,OAAA,CAAC,MAAM,CAAC,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,EAA9B,CAA8B,CAAC,EAAE;4BAC/D,UAAU,CAAC,QAAQ,EAAE,CAAC;yBACvB;qBACF;gBACH,CAAC,EACD;oBAGE,SAAS,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC;oBAI9B,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACxD,CAAC,CACF,CACF,CAAC;;YA/BJ,KAAK,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,IAAI,WAAW,GAAG,OAAO,CAAC,MAAM,EAAE,WAAW,EAAE;wBAAlF,WAAW;aAgCnB;YAGD,OAAO;gBACL,OAAO,GAAG,SAAS,GAAG,IAAK,CAAC;YAC9B,CAAC,CAAC;QACJ,CAAC,CAAC;QACJ,CAAC,CAAC,KAAK,CAAC;AACZ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js deleted file mode 100755 index 55d932149..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js +++ /dev/null @@ -1,61 +0,0 @@ -import { __extends } from "tslib"; -import { Subscriber } from '../Subscriber'; -export function createOperatorSubscriber(destination, onNext, onComplete, onError, onFinalize) { - return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize); -} -var OperatorSubscriber = (function (_super) { - __extends(OperatorSubscriber, _super); - function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) { - var _this = _super.call(this, destination) || this; - _this.onFinalize = onFinalize; - _this.shouldUnsubscribe = shouldUnsubscribe; - _this._next = onNext - ? function (value) { - try { - onNext(value); - } - catch (err) { - destination.error(err); - } - } - : _super.prototype._next; - _this._error = onError - ? function (err) { - try { - onError(err); - } - catch (err) { - destination.error(err); - } - finally { - this.unsubscribe(); - } - } - : _super.prototype._error; - _this._complete = onComplete - ? function () { - try { - onComplete(); - } - catch (err) { - destination.error(err); - } - finally { - this.unsubscribe(); - } - } - : _super.prototype._complete; - return _this; - } - OperatorSubscriber.prototype.unsubscribe = function () { - var _a; - if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { - var closed_1 = this.closed; - _super.prototype.unsubscribe.call(this); - !closed_1 && ((_a = this.onFinalize) === null || _a === void 0 ? void 0 : _a.call(this)); - } - }; - return OperatorSubscriber; -}(Subscriber)); -export { OperatorSubscriber }; -//# sourceMappingURL=OperatorSubscriber.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js.map deleted file mode 100644 index ba9ebaa80..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OperatorSubscriber.js","sourceRoot":"","sources":["../../../../src/internal/operators/OperatorSubscriber.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAc3C,MAAM,UAAU,wBAAwB,CACtC,WAA4B,EAC5B,MAA2B,EAC3B,UAAuB,EACvB,OAA4B,EAC5B,UAAuB;IAEvB,OAAO,IAAI,kBAAkB,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC;AACtF,CAAC;AAMD;IAA2C,sCAA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CAAC,QAAM,KAAI,MAAA,IAAI,CAAC,UAAU,+CAAf,IAAI,CAAe,CAAA,CAAC;SAChC;IACH,CAAC;IACH,yBAAC;AAAD,CAAC,AAnFD,CAA2C,UAAU,GAmFpD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/audit.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/audit.js deleted file mode 100755 index cb6dd127d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/audit.js +++ /dev/null @@ -1,37 +0,0 @@ -import { operate } from '../util/lift'; -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function audit(durationSelector) { - return operate(function (source, subscriber) { - var hasValue = false; - var lastValue = null; - var durationSubscriber = null; - var isComplete = false; - var endDuration = function () { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - durationSubscriber = null; - if (hasValue) { - hasValue = false; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - isComplete && subscriber.complete(); - }; - var cleanupDuration = function () { - durationSubscriber = null; - isComplete && subscriber.complete(); - }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - lastValue = value; - if (!durationSubscriber) { - innerFrom(durationSelector(value)).subscribe((durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration))); - } - }, function () { - isComplete = true; - (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete(); - })); - }); -} -//# sourceMappingURL=audit.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/audit.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/audit.js.map deleted file mode 100644 index 2b5ad4f94..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/audit.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"audit.js","sourceRoot":"","sources":["../../../../src/internal/operators/audit.ts"],"names":[],"mappings":"AAGA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YACE,UAAU,GAAG,IAAI,CAAC;YAClB,CAAC,CAAC,QAAQ,IAAI,CAAC,kBAAkB,IAAI,kBAAkB,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QAC3F,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/auditTime.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/auditTime.js deleted file mode 100755 index 5d3b5de54..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/auditTime.js +++ /dev/null @@ -1,8 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { audit } from './audit'; -import { timer } from '../observable/timer'; -export function auditTime(duration, scheduler) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - return audit(function () { return timer(duration, scheduler); }); -} -//# sourceMappingURL=auditTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/auditTime.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/auditTime.js.map deleted file mode 100644 index bed4a8bd2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/auditTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auditTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/auditTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAkD5C,MAAM,UAAU,SAAS,CAAI,QAAgB,EAAE,SAAyC;IAAzC,0BAAA,EAAA,0BAAyC;IACtF,OAAO,KAAK,CAAC,cAAM,OAAA,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC,EAA1B,CAA0B,CAAC,CAAC;AACjD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/buffer.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/buffer.js deleted file mode 100755 index a8d23271a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/buffer.js +++ /dev/null @@ -1,22 +0,0 @@ -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function buffer(closingNotifier) { - return operate(function (source, subscriber) { - var currentBuffer = []; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return currentBuffer.push(value); }, function () { - subscriber.next(currentBuffer); - subscriber.complete(); - })); - innerFrom(closingNotifier).subscribe(createOperatorSubscriber(subscriber, function () { - var b = currentBuffer; - currentBuffer = []; - subscriber.next(b); - }, noop)); - return function () { - currentBuffer = null; - }; - }); -} -//# sourceMappingURL=buffer.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/buffer.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/buffer.js.map deleted file mode 100644 index b1811122f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/buffer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../../../src/internal/operators/buffer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAwCpD,MAAM,UAAU,MAAM,CAAI,eAAqC;IAC7D,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAI,aAAa,GAAQ,EAAE,CAAC;QAG5B,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK,IAAK,OAAA,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,EAAzB,CAAyB,EACpC;YACE,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAC/B,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;QAGF,SAAS,CAAC,eAAe,CAAC,CAAC,SAAS,CAClC,wBAAwB,CACtB,UAAU,EACV;YAEE,IAAM,CAAC,GAAG,aAAa,CAAC;YACxB,aAAa,GAAG,EAAE,CAAC;YACnB,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACrB,CAAC,EACD,IAAI,CACL,CACF,CAAC;QAEF,OAAO;YAEL,aAAa,GAAG,IAAK,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferCount.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferCount.js deleted file mode 100755 index 69eb3ed1c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferCount.js +++ /dev/null @@ -1,71 +0,0 @@ -import { __values } from "tslib"; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { arrRemove } from '../util/arrRemove'; -export function bufferCount(bufferSize, startBufferEvery) { - if (startBufferEvery === void 0) { startBufferEvery = null; } - startBufferEvery = startBufferEvery !== null && startBufferEvery !== void 0 ? startBufferEvery : bufferSize; - return operate(function (source, subscriber) { - var buffers = []; - var count = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var e_1, _a, e_2, _b; - var toEmit = null; - if (count++ % startBufferEvery === 0) { - buffers.push([]); - } - try { - for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { - var buffer = buffers_1_1.value; - buffer.push(value); - if (bufferSize <= buffer.length) { - toEmit = toEmit !== null && toEmit !== void 0 ? toEmit : []; - toEmit.push(buffer); - } - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1); - } - finally { if (e_1) throw e_1.error; } - } - if (toEmit) { - try { - for (var toEmit_1 = __values(toEmit), toEmit_1_1 = toEmit_1.next(); !toEmit_1_1.done; toEmit_1_1 = toEmit_1.next()) { - var buffer = toEmit_1_1.value; - arrRemove(buffers, buffer); - subscriber.next(buffer); - } - } - catch (e_2_1) { e_2 = { error: e_2_1 }; } - finally { - try { - if (toEmit_1_1 && !toEmit_1_1.done && (_b = toEmit_1.return)) _b.call(toEmit_1); - } - finally { if (e_2) throw e_2.error; } - } - } - }, function () { - var e_3, _a; - try { - for (var buffers_2 = __values(buffers), buffers_2_1 = buffers_2.next(); !buffers_2_1.done; buffers_2_1 = buffers_2.next()) { - var buffer = buffers_2_1.value; - subscriber.next(buffer); - } - } - catch (e_3_1) { e_3 = { error: e_3_1 }; } - finally { - try { - if (buffers_2_1 && !buffers_2_1.done && (_a = buffers_2.return)) _a.call(buffers_2); - } - finally { if (e_3) throw e_3.error; } - } - subscriber.complete(); - }, undefined, function () { - buffers = null; - })); - }); -} -//# sourceMappingURL=bufferCount.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferCount.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferCount.js.map deleted file mode 100644 index 045b2e861..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferCount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferCount.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAA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ACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EAED,SAAS,EACT;YAEE,OAAO,GAAG,IAAK,CAAC;QAClB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js deleted file mode 100755 index b8f2715e1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js +++ /dev/null @@ -1,77 +0,0 @@ -import { __values } from "tslib"; -import { Subscription } from '../Subscription'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { arrRemove } from '../util/arrRemove'; -import { asyncScheduler } from '../scheduler/async'; -import { popScheduler } from '../util/args'; -import { executeSchedule } from '../util/executeSchedule'; -export function bufferTime(bufferTimeSpan) { - var _a, _b; - var otherArgs = []; - for (var _i = 1; _i < arguments.length; _i++) { - otherArgs[_i - 1] = arguments[_i]; - } - var scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler; - var bufferCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null; - var maxBufferSize = otherArgs[1] || Infinity; - return operate(function (source, subscriber) { - var bufferRecords = []; - var restartOnEmit = false; - var emit = function (record) { - var buffer = record.buffer, subs = record.subs; - subs.unsubscribe(); - arrRemove(bufferRecords, record); - subscriber.next(buffer); - restartOnEmit && startBuffer(); - }; - var startBuffer = function () { - if (bufferRecords) { - var subs = new Subscription(); - subscriber.add(subs); - var buffer = []; - var record_1 = { - buffer: buffer, - subs: subs, - }; - bufferRecords.push(record_1); - executeSchedule(subs, scheduler, function () { return emit(record_1); }, bufferTimeSpan); - } - }; - if (bufferCreationInterval !== null && bufferCreationInterval >= 0) { - executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true); - } - else { - restartOnEmit = true; - } - startBuffer(); - var bufferTimeSubscriber = createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - var recordsCopy = bufferRecords.slice(); - try { - for (var recordsCopy_1 = __values(recordsCopy), recordsCopy_1_1 = recordsCopy_1.next(); !recordsCopy_1_1.done; recordsCopy_1_1 = recordsCopy_1.next()) { - var record = recordsCopy_1_1.value; - var buffer = record.buffer; - buffer.push(value); - maxBufferSize <= buffer.length && emit(record); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (recordsCopy_1_1 && !recordsCopy_1_1.done && (_a = recordsCopy_1.return)) _a.call(recordsCopy_1); - } - finally { if (e_1) throw e_1.error; } - } - }, function () { - while (bufferRecords === null || bufferRecords === void 0 ? void 0 : bufferRecords.length) { - subscriber.next(bufferRecords.shift().buffer); - } - bufferTimeSubscriber === null || bufferTimeSubscriber === void 0 ? void 0 : bufferTimeSubscriber.unsubscribe(); - subscriber.complete(); - subscriber.unsubscribe(); - }, undefined, function () { return (bufferRecords = null); }); - source.subscribe(bufferTimeSubscriber); - }); -} -//# sourceMappingURL=bufferTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js.map deleted file mode 100644 index 26455f14a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/bufferTime.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,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echatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferToggle.js deleted file mode 100755 index d18359ba9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferToggle.js +++ /dev/null @@ -1,45 +0,0 @@ -import { __values } from "tslib"; -import { Subscription } from '../Subscription'; -import { operate } from '../util/lift'; -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { arrRemove } from '../util/arrRemove'; -export function bufferToggle(openings, closingSelector) { - return operate(function (source, subscriber) { - var buffers = []; - innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, function (openValue) { - var buffer = []; - buffers.push(buffer); - var closingSubscription = new Subscription(); - var emitBuffer = function () { - arrRemove(buffers, buffer); - subscriber.next(buffer); - closingSubscription.unsubscribe(); - }; - closingSubscription.add(innerFrom(closingSelector(openValue)).subscribe(createOperatorSubscriber(subscriber, emitBuffer, noop))); - }, noop)); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - try { - for (var buffers_1 = __values(buffers), buffers_1_1 = buffers_1.next(); !buffers_1_1.done; buffers_1_1 = buffers_1.next()) { - var buffer = buffers_1_1.value; - buffer.push(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (buffers_1_1 && !buffers_1_1.done && (_a = buffers_1.return)) _a.call(buffers_1); - } - finally { if (e_1) throw e_1.error; } - } - }, function () { - while (buffers.length > 0) { - subscriber.next(buffers.shift()); - } - subscriber.complete(); - })); - }); -} -//# sourceMappingURL=bufferToggle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferToggle.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferToggle.js.map deleted file mode 100644 index 65d0cbceb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferToggle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferToggle.js","sourceRoot":"","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,IAAM,MAAM,oBAAA;oBACf,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACpB;;;;;;;;;QACH,CAAC,EACD;YAEE,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,EAAG,CAAC,CAAC;aACnC;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferWhen.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferWhen.js deleted file mode 100755 index 019fb5217..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferWhen.js +++ /dev/null @@ -1,23 +0,0 @@ -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function bufferWhen(closingSelector) { - return operate(function (source, subscriber) { - var buffer = null; - var closingSubscriber = null; - var openBuffer = function () { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - var b = buffer; - buffer = []; - b && subscriber.next(b); - innerFrom(closingSelector()).subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openBuffer, noop))); - }; - openBuffer(); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return buffer === null || buffer === void 0 ? void 0 : buffer.push(value); }, function () { - buffer && subscriber.next(buffer); - subscriber.complete(); - }, undefined, function () { return (buffer = closingSubscriber = null); })); - }); -} -//# sourceMappingURL=bufferWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferWhen.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/bufferWhen.js.map deleted file mode 100644 index 3adee4c86..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/buffer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AC,EAApC,CAAoC,CAC3C,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/catchError.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/catchError.js deleted file mode 100755 index 646352f44..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/catchError.js +++ /dev/null @@ -1,27 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { operate } from '../util/lift'; -export function catchError(selector) { - return operate(function (source, subscriber) { - var innerSub = null; - var syncUnsub = false; - var handledResult; - innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, function (err) { - handledResult = innerFrom(selector(err, catchError(selector)(source))); - if (innerSub) { - innerSub.unsubscribe(); - innerSub = null; - handledResult.subscribe(subscriber); - } - else { - syncUnsub = true; - } - })); - if (syncUnsub) { - innerSub.unsubscribe(); - innerSub = null; - handledResult.subscribe(subscriber); - } - }); -} -//# sourceMappingURL=catchError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/catchError.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/catchError.js.map deleted file mode 100644 index 98b54113d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/catchError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"catchError.js","sourceRoot":"","sources":["../../../../src/internal/operators/catchError.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAoGvC,MAAM,UAAU,UAAU,CACxB,QAAgD;IAEhD,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAwB,IAAI,CAAC;QACzC,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,aAA6C,CAAC;QAElD,QAAQ,GAAG,MAAM,CAAC,SAAS,CACzB,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,UAAC,GAAG;YAC7D,aAAa,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACvE,IAAI,QAAQ,EAAE;gBACZ,QAAQ,CAAC,WAAW,EAAE,CAAC;gBACvB,QAAQ,GAAG,IAAI,CAAC;gBAChB,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;aACrC;iBAAM;gBAGL,SAAS,GAAG,IAAI,CAAC;aAClB;QACH,CAAC,CAAC,CACH,CAAC;QAEF,IAAI,SAAS,EAAE;YAMb,QAAQ,CAAC,WAAW,EAAE,CAAC;YACvB,QAAQ,GAAG,IAAI,CAAC;YAChB,aAAc,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;SACtC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineAll.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineAll.js deleted file mode 100755 index 4db17c2b4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineAll.js +++ /dev/null @@ -1,3 +0,0 @@ -import { combineLatestAll } from './combineLatestAll'; -export var combineAll = combineLatestAll; -//# sourceMappingURL=combineAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineAll.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineAll.js.map deleted file mode 100644 index da39afa22..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,MAAM,CAAC,IAAM,UAAU,GAAG,gBAAgB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatest.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatest.js deleted file mode 100755 index 68b4c5992..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatest.js +++ /dev/null @@ -1,20 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { combineLatestInit } from '../observable/combineLatest'; -import { operate } from '../util/lift'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { pipe } from '../util/pipe'; -import { popResultSelector } from '../util/args'; -export function combineLatest() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var resultSelector = popResultSelector(args); - return resultSelector - ? pipe(combineLatest.apply(void 0, __spreadArray([], __read(args))), mapOneOrManyArgs(resultSelector)) - : operate(function (source, subscriber) { - combineLatestInit(__spreadArray([source], __read(argsOrArgArray(args))))(subscriber); - }); -} -//# sourceMappingURL=combineLatest.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatest.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatest.js.map deleted file mode 100644 index c9ef6ed3a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatest.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatest.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAoBjD,MAAM,UAAU,aAAa;IAAO,cAA6D;SAA7D,UAA6D,EAA7D,qBAA6D,EAA7D,IAA6D;QAA7D,yBAA6D;;IAC/F,IAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC/C,OAAO,cAAc;QACnB,CAAC,CAAC,IAAI,CAAC,aAAa,wCAAK,IAAoC,KAAG,gBAAgB,CAAC,cAAc,CAAC,CAAC;QACjG,CAAC,CAAC,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YACzB,iBAAiB,gBAAE,MAAM,UAAK,cAAc,CAAC,IAAI,CAAC,GAAE,CAAC,UAAU,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestAll.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestAll.js deleted file mode 100755 index 3af39096e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestAll.js +++ /dev/null @@ -1,6 +0,0 @@ -import { combineLatest } from '../observable/combineLatest'; -import { joinAllInternals } from './joinAllInternals'; -export function combineLatestAll(project) { - return joinAllInternals(combineLatest, project); -} -//# sourceMappingURL=combineLatestAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestAll.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestAll.js.map deleted file mode 100644 index 2adf9b8e2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatestAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatestAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AA6CtD,MAAM,UAAU,gBAAgB,CAAI,OAAsC;IACxE,OAAO,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestWith.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestWith.js deleted file mode 100755 index 30e376190..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestWith.js +++ /dev/null @@ -1,10 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { combineLatest } from './combineLatest'; -export function combineLatestWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return combineLatest.apply(void 0, __spreadArray([], __read(otherSources))); -} -//# sourceMappingURL=combineLatestWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestWith.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestWith.js.map deleted file mode 100644 index 2e30fb9e5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/combineLatestWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatestWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatestWith.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AA0ChD,MAAM,UAAU,iBAAiB;IAC/B,sBAA6C;SAA7C,UAA6C,EAA7C,qBAA6C,EAA7C,IAA6C;QAA7C,iCAA6C;;IAE7C,OAAO,aAAa,wCAAI,YAAY,IAAE;AACxC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concat.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concat.js deleted file mode 100755 index b31a3933c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concat.js +++ /dev/null @@ -1,16 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { operate } from '../util/lift'; -import { concatAll } from './concatAll'; -import { popScheduler } from '../util/args'; -import { from } from '../observable/from'; -export function concat() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = popScheduler(args); - return operate(function (source, subscriber) { - concatAll()(from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber); - }); -} -//# sourceMappingURL=concat.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concat.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concat.js.map deleted file mode 100644 index 0e9abef42..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../../src/internal/operators/concat.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAY1C,MAAM,UAAU,MAAM;IAAO,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IACzC,IAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,SAAS,EAAE,CAAC,IAAI,gBAAE,MAAM,UAAK,IAAI,IAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACxE,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatAll.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatAll.js deleted file mode 100755 index 9ef002228..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatAll.js +++ /dev/null @@ -1,5 +0,0 @@ -import { mergeAll } from './mergeAll'; -export function concatAll() { - return mergeAll(1); -} -//# sourceMappingURL=concatAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatAll.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatAll.js.map deleted file mode 100644 index 0231f3f8d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AA2DtC,MAAM,UAAU,SAAS;IACvB,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMap.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMap.js deleted file mode 100755 index bdacda3bf..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMap.js +++ /dev/null @@ -1,6 +0,0 @@ -import { mergeMap } from './mergeMap'; -import { isFunction } from '../util/isFunction'; -export function concatMap(project, resultSelector) { - return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1); -} -//# sourceMappingURL=concatMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMap.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMap.js.map deleted file mode 100644 index cc84ef652..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA4EhD,MAAM,UAAU,SAAS,CACvB,OAAuC,EACvC,cAA6G;IAE7G,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AAClG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMapTo.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMapTo.js deleted file mode 100755 index 44a5eb341..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMapTo.js +++ /dev/null @@ -1,6 +0,0 @@ -import { concatMap } from './concatMap'; -import { isFunction } from '../util/isFunction'; -export function concatMapTo(innerObservable, resultSelector) { - return isFunction(resultSelector) ? concatMap(function () { return innerObservable; }, resultSelector) : concatMap(function () { return innerObservable; }); -} -//# sourceMappingURL=concatMapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMapTo.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMapTo.js.map deleted file mode 100644 index 23617e9d7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatMapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatMapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatMapTo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAuEhD,MAAM,UAAU,WAAW,CACzB,eAAkB,EAClB,cAA6G;IAE7G,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,CAAC,CAAC;AAC1H,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatWith.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatWith.js deleted file mode 100755 index c1d0bf648..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatWith.js +++ /dev/null @@ -1,10 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { concat } from './concat'; -export function concatWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return concat.apply(void 0, __spreadArray([], __read(otherSources))); -} -//# sourceMappingURL=concatWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatWith.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatWith.js.map deleted file mode 100644 index 0f7613cf6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/concatWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/concatWith.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AA0ClC,MAAM,UAAU,UAAU;IACxB,sBAA6C;SAA7C,UAA6C,EAA7C,qBAA6C,EAA7C,IAA6C;QAA7C,iCAA6C;;IAE7C,OAAO,MAAM,wCAAI,YAAY,IAAE;AACjC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/connect.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/connect.js deleted file mode 100755 index 3ffd469d9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/connect.js +++ /dev/null @@ -1,17 +0,0 @@ -import { Subject } from '../Subject'; -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { fromSubscribable } from '../observable/fromSubscribable'; -var DEFAULT_CONFIG = { - connector: function () { return new Subject(); }, -}; -export function connect(selector, config) { - if (config === void 0) { config = DEFAULT_CONFIG; } - var connector = config.connector; - return operate(function (source, subscriber) { - var subject = connector(); - innerFrom(selector(fromSubscribable(subject))).subscribe(subscriber); - subscriber.add(source.subscribe(subject)); - }); -} -//# sourceMappingURL=connect.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/connect.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/connect.js.map deleted file mode 100644 index bdc6b7a98..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/connect.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"connect.js","sourceRoot":"","sources":["../../../../src/internal/operators/connect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAgBlE,IAAM,cAAc,GAA2B;IAC7C,SAAS,EAAE,cAAM,OAAA,IAAI,OAAO,EAAW,EAAtB,CAAsB;CACxC,CAAC;AA2EF,MAAM,UAAU,OAAO,CACrB,QAAsC,EACtC,MAAyC;IAAzC,uBAAA,EAAA,uBAAyC;IAEjC,IAAA,SAAS,GAAK,MAAM,UAAX,CAAY;IAC7B,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAM,OAAO,GAAG,SAAS,EAAE,CAAC;QAC5B,SAAS,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QACrE,UAAU,CAAC,GAAG,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/count.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/count.js deleted file mode 100755 index 73511a96c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/count.js +++ /dev/null @@ -1,5 +0,0 @@ -import { reduce } from './reduce'; -export function count(predicate) { - return reduce(function (total, value, i) { return (!predicate || predicate(value, i) ? total + 1 : total); }, 0); -} -//# sourceMappingURL=count.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/count.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/count.js.map deleted file mode 100644 index ebec8cd67..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/count.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"count.js","sourceRoot":"","sources":["../../../../src/internal/operators/count.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAyDlC,MAAM,UAAU,KAAK,CAAI,SAAgD;IACvE,OAAO,MAAM,CAAC,UAAC,KAAK,EAAE,KAAK,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAvD,CAAuD,EAAE,CAAC,CAAC,CAAC;AACjG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounce.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounce.js deleted file mode 100755 index 7c0d2891a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounce.js +++ /dev/null @@ -1,34 +0,0 @@ -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function debounce(durationSelector) { - return operate(function (source, subscriber) { - var hasValue = false; - var lastValue = null; - var durationSubscriber = null; - var emit = function () { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - durationSubscriber = null; - if (hasValue) { - hasValue = false; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - durationSubscriber === null || durationSubscriber === void 0 ? void 0 : durationSubscriber.unsubscribe(); - hasValue = true; - lastValue = value; - durationSubscriber = createOperatorSubscriber(subscriber, emit, noop); - innerFrom(durationSelector(value)).subscribe(durationSubscriber); - }, function () { - emit(); - subscriber.complete(); - }, undefined, function () { - lastValue = durationSubscriber = null; - })); - }); -} -//# sourceMappingURL=debounce.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounce.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounce.js.map deleted file mode 100644 index 889ae7f0f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounce.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"debounce.js","sourceRoot":"","sources":["../../../../src/internal/operators/debounce.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA4DpD,MAAM,UAAU,QAAQ,CAAI,gBAAoD;IAC9E,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,SAAS,GAAa,IAAI,CAAC;QAE/B,IAAI,kBAAkB,GAA2B,IAAI,CAAC;QAEtD,IAAM,IAAI,GAAG;YAIX,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,WAAW,EAAE,CAAC;YAClC,kBAAkB,GAAG,IAAI,CAAC;YAC1B,IAAI,QAAQ,EAAE;gBAEZ,QAAQ,GAAG,KAAK,CAAC;gBACjB,IAAM,KAAK,GAAG,SAAU,CAAC;gBACzB,SAAS,GAAG,IAAI,CAAC;gBACjB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,CAAC;QAEF,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAQ;YAIP,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,WAAW,EAAE,CAAC;YAClC,QAAQ,GAAG,IAAI,CAAC;YAChB,SAAS,GAAG,KAAK,CAAC;YAGlB,kBAAkB,GAAG,wBAAwB,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;YAEtE,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;QACnE,CAAC,EACD;YAGE,IAAI,EAAE,CAAC;YACP,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EAED,SAAS,EACT;YAEE,SAAS,GAAG,kBAAkB,GAAG,IAAI,CAAC;QACxC,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js deleted file mode 100755 index 7e4f96c76..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js +++ /dev/null @@ -1,44 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function debounceTime(dueTime, scheduler) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - return operate(function (source, subscriber) { - var activeTask = null; - var lastValue = null; - var lastTime = null; - var emit = function () { - if (activeTask) { - activeTask.unsubscribe(); - activeTask = null; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - }; - function emitWhenIdle() { - var targetTime = lastTime + dueTime; - var now = scheduler.now(); - if (now < targetTime) { - activeTask = this.schedule(undefined, targetTime - now); - subscriber.add(activeTask); - return; - } - emit(); - } - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - lastValue = value; - lastTime = scheduler.now(); - if (!activeTask) { - activeTask = scheduler.schedule(emitWhenIdle, dueTime); - subscriber.add(activeTask); - } - }, function () { - emit(); - subscriber.complete(); - }, undefined, function () { - lastValue = activeTask = null; - })); - }); -} -//# sourceMappingURL=debounceTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js.map deleted file mode 100644 index f94e482ae..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/debounceTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"debounceTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/debounceTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA2DhE,MAAM,UAAU,YAAY,CAAI,OAAe,EAAE,SAAyC;IAAzC,0BAAA,EAAA,0BAAyC;IACxF,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,UAAU,GAAwB,IAAI,CAAC;QAC3C,IAAI,SAAS,GAAa,IAAI,CAAC;QA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node_modules/rxjs/dist/esm5/internal/operators/defaultIfEmpty.js deleted file mode 100755 index bf46020c0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/defaultIfEmpty.js +++ /dev/null @@ -1,17 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function defaultIfEmpty(defaultValue) { - return operate(function (source, subscriber) { - var hasValue = false; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - subscriber.next(value); - }, function () { - if (!hasValue) { - subscriber.next(defaultValue); - } - subscriber.complete(); - })); - }); -} -//# sourceMappingURL=defaultIfEmpty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/defaultIfEmpty.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/defaultIfEmpty.js.map deleted file mode 100644 index 248518e46..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/defaultIfEmpty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"defaultIfEmpty.js","sourceRoot":"","sources":["../../../../src/internal/operators/defaultIfEmpty.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAqChE,MAAM,UAAU,cAAc,CAAO,YAAe;IAClD,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,QAAQ,GAAG,IAAI,CAAC;YAChB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,EACD;YACE,IAAI,CAAC,QAAQ,EAAE;gBACb,UAAU,CAAC,IAAI,CAAC,YAAa,CAAC,CAAC;aAChC;YACD,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delay.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delay.js deleted file mode 100755 index cd2bfd0c4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delay.js +++ /dev/null @@ -1,9 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { delayWhen } from './delayWhen'; -import { timer } from '../observable/timer'; -export function delay(due, scheduler) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - var duration = timer(due, scheduler); - return delayWhen(function () { return duration; }); -} -//# sourceMappingURL=delay.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delay.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delay.js.map deleted file mode 100644 index 444b1fe7e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"delay.js","sourceRoot":"","sources":["../../../../src/internal/operators/delay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AA0D5C,MAAM,UAAU,KAAK,CAAI,GAAkB,EAAE,SAAyC;IAAzC,0BAAA,EAAA,0BAAyC;IACpF,IAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;IACvC,OAAO,SAAS,CAAC,cAAM,OAAA,QAAQ,EAAR,CAAQ,CAAC,CAAC;AACnC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delayWhen.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delayWhen.js deleted file mode 100755 index 60869efaf..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delayWhen.js +++ /dev/null @@ -1,15 +0,0 @@ -import { concat } from '../observable/concat'; -import { take } from './take'; -import { ignoreElements } from './ignoreElements'; -import { mapTo } from './mapTo'; -import { mergeMap } from './mergeMap'; -import { innerFrom } from '../observable/innerFrom'; -export function delayWhen(delayDurationSelector, subscriptionDelay) { - if (subscriptionDelay) { - return function (source) { - return concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector))); - }; - } - return mergeMap(function (value, index) { return innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value)); }); -} -//# sourceMappingURL=delayWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delayWhen.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delayWhen.js.map deleted file mode 100644 index a1dbf6b2a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/delayWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"delayWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/delayWhen.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAoFpD,MAAM,UAAU,SAAS,CACvB,qBAAwE,EACxE,iBAAmC;IAEnC,IAAI,iBAAiB,EAAE;QAErB,OAAO,UAAC,MAAqB;YAC3B,OAAA,MAAM,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC,CAAC;QAAxG,CAAwG,CAAC;KAC5G;IAED,OAAO,QAAQ,CAAC,UAAC,KAAK,EAAE,KAAK,IAAK,OAAA,SAAS,CAAC,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,EAA1E,CAA0E,CAAC,CAAC;AAChH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/dematerialize.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/dematerialize.js deleted file mode 100755 index afcd092bd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/dematerialize.js +++ /dev/null @@ -1,9 +0,0 @@ -import { observeNotification } from '../Notification'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function dematerialize() { - return operate(function (source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, function (notification) { return observeNotification(notification, subscriber); })); - }); -} -//# sourceMappingURL=dematerialize.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/dematerialize.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/dematerialize.js.map deleted file mode 100644 index 01d72f531..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/dematerialize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dematerialize.js","sourceRoot":"","sources":["../../../../src/internal/operators/dematerialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAkDhE,MAAM,UAAU,aAAa;IAC3B,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,UAAC,YAAY,IAAK,OAAA,mBAAmB,CAAC,YAAY,EAAE,UAAU,CAAC,EAA7C,CAA6C,CAAC,CAAC,CAAC;IAC1H,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinct.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinct.js deleted file mode 100755 index f8503f3a5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinct.js +++ /dev/null @@ -1,18 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { innerFrom } from '../observable/innerFrom'; -export function distinct(keySelector, flushes) { - return operate(function (source, subscriber) { - var distinctKeys = new Set(); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var key = keySelector ? keySelector(value) : value; - if (!distinctKeys.has(key)) { - distinctKeys.add(key); - subscriber.next(value); - } - })); - flushes && innerFrom(flushes).subscribe(createOperatorSubscriber(subscriber, function () { return distinctKeys.clear(); }, noop)); - }); -} -//# sourceMappingURL=distinct.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinct.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinct.js.map deleted file mode 100644 index 0cf50e8f5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinct.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinct.js","sourceRoot":"","sources":["../../../../src/internal/operators/distinct.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA2DpD,MAAM,UAAU,QAAQ,CAAO,WAA6B,EAAE,OAA8B;IAC1F,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAM,YAAY,GAAG,IAAI,GAAG,EAAE,CAAC;QAC/B,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,IAAM,GAAG,GAAG,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;YACrD,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE;gBAC1B,YAAY,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBACtB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,CAAC,CACH,CAAC;QAEF,OAAO,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,cAAM,OAAA,YAAY,CAAC,KAAK,EAAE,EAApB,CAAoB,EAAE,IAAI,CAAC,CAAC,CAAC;IAClH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js deleted file mode 100755 index 309444272..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js +++ /dev/null @@ -1,23 +0,0 @@ -import { identity } from '../util/identity'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function distinctUntilChanged(comparator, keySelector) { - if (keySelector === void 0) { keySelector = identity; } - comparator = comparator !== null && comparator !== void 0 ? comparator : defaultCompare; - return operate(function (source, subscriber) { - var previousKey; - var first = true; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var currentKey = keySelector(value); - if (first || !comparator(previousKey, currentKey)) { - first = false; - previousKey = currentKey; - subscriber.next(value); - } - })); - }); -} -function defaultCompare(a, b) { - return a === b; -} -//# sourceMappingURL=distinctUntilChanged.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js.map deleted file mode 100644 index 5652b1d6c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinctUntilChanged.js","sourceRoot":"","sources":["../../../../src/internal/operators/distinctUntilChanged.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAuIhE,MAAM,UAAU,oBAAoB,CAClC,UAAiD,EACjD,WAA0D;IAA1D,4BAAA,EAAA,cAA+B,QAA2B;IAK1D,UAAU,GAAG,UAAU,aAAV,UAAU,cAAV,UAAU,GAAI,cAAc,CAAC;IAE1C,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAGhC,IAAI,WAAc,CAAC;QAEnB,IAAI,KAAK,GAAG,IAAI,CAAC;QAEjB,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YAEzC,IAAM,UAAU,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;YAKtC,IAAI,KAAK,IAAI,CAAC,UAAW,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE;gBAMlD,KAAK,GAAG,KAAK,CAAC;gBACd,WAAW,GAAG,UAAU,CAAC;gBAGzB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,cAAc,CAAC,CAAM,EAAE,CAAM;IACpC,OAAO,CAAC,KAAK,CAAC,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilKeyChanged.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilKeyChanged.js deleted file mode 100755 index 64c7a50dd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilKeyChanged.js +++ /dev/null @@ -1,5 +0,0 @@ -import { distinctUntilChanged } from './distinctUntilChanged'; -export function distinctUntilKeyChanged(key, compare) { - return distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; }); -} -//# sourceMappingURL=distinctUntilKeyChanged.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilKeyChanged.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilKeyChanged.js.map deleted file mode 100644 index e3aa612ba..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilKeyChanged.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinctUntilKeyChanged.js","sourceRoot":"","sources":["../../../../src/internal/operators/distinctUntilKeyChanged.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAoE9D,MAAM,UAAU,uBAAuB,CAAuB,GAAM,EAAE,OAAuC;IAC3G,OAAO,oBAAoB,CAAC,UAAC,CAAI,EAAE,CAAI,IAAK,OAAA,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAArD,CAAqD,CAAC,CAAC;AACrG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js deleted file mode 100755 index 4d53c6641..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js +++ /dev/null @@ -1,15 +0,0 @@ -import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError'; -import { filter } from './filter'; -import { throwIfEmpty } from './throwIfEmpty'; -import { defaultIfEmpty } from './defaultIfEmpty'; -import { take } from './take'; -export function elementAt(index, defaultValue) { - if (index < 0) { - throw new ArgumentOutOfRangeError(); - } - var hasDefaultValue = arguments.length >= 2; - return function (source) { - return source.pipe(filter(function (v, i) { return i === index; }), take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new ArgumentOutOfRangeError(); })); - }; -} -//# sourceMappingURL=elementAt.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js.map deleted file mode 100644 index 7c802cd12..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/elementAt.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elementAt.js","sourceRoot":"","sources":["../../../../src/internal/operators/elementAt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAG1E,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAkD9B,MAAM,UAAU,SAAS,CAAW,KAAa,EAAE,YAAgB;IACjE,IAAI,KAAK,GAAG,CAAC,EAAE;QACb,MAAM,IAAI,uBAAuB,EAAE,CAAC;KACrC;IACD,IAAM,eAAe,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9C,OAAO,UAAC,MAAqB;QAC3B,OAAA,MAAM,CAAC,IAAI,CACT,MAAM,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,KAAK,KAAK,EAAX,CAAW,CAAC,EAC7B,IAAI,CAAC,CAAC,CAAC,EACP,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,YAAa,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,cAAM,OAAA,IAAI,uBAAuB,EAAE,EAA7B,CAA6B,CAAC,CACpG;IAJD,CAIC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/endWith.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/endWith.js deleted file mode 100755 index 81f68080b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/endWith.js +++ /dev/null @@ -1,11 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { concat } from '../observable/concat'; -import { of } from '../observable/of'; -export function endWith() { - var values = []; - for (var _i = 0; _i < arguments.length; _i++) { - values[_i] = arguments[_i]; - } - return function (source) { return concat(source, of.apply(void 0, __spreadArray([], __read(values)))); }; -} -//# sourceMappingURL=endWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/endWith.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/endWith.js.map deleted file mode 100644 index 6e406b33d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/endWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"endWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/endWith.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAC;AA8DtC,MAAM,UAAU,OAAO;IAAI,gBAAmC;SAAnC,UAAmC,EAAnC,qBAAmC,EAAnC,IAAmC;QAAnC,2BAAmC;;IAC5D,OAAO,UAAC,MAAqB,IAAK,OAAA,MAAM,CAAC,MAAM,EAAE,EAAE,wCAAI,MAAM,IAAmB,EAA9C,CAA8C,CAAC;AACnF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/every.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/every.js deleted file mode 100755 index 579ffb721..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/every.js +++ /dev/null @@ -1,17 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function every(predicate, thisArg) { - return operate(function (source, subscriber) { - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - if (!predicate.call(thisArg, value, index++, source)) { - subscriber.next(false); - subscriber.complete(); - } - }, function () { - subscriber.next(true); - subscriber.complete(); - })); - }); -} -//# sourceMappingURL=every.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/every.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/every.js.map deleted file mode 100644 index c94bfc6d5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/every.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"every.js","sourceRoot":"","sources":["../../../../src/internal/operators/every.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAwChE,MAAM,UAAU,KAAK,CACnB,SAAsE,EACtE,OAAa;IAEb,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,EAAE;gBACpD,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACvB,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,EACD;YACE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaust.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaust.js deleted file mode 100755 index 90f8c7574..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaust.js +++ /dev/null @@ -1,3 +0,0 @@ -import { exhaustAll } from './exhaustAll'; -export var exhaust = exhaustAll; -//# sourceMappingURL=exhaust.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaust.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaust.js.map deleted file mode 100644 index a490626d9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaust.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaust.js","sourceRoot":"","sources":["../../../../src/internal/operators/exhaust.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,MAAM,CAAC,IAAM,OAAO,GAAG,UAAU,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustAll.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustAll.js deleted file mode 100755 index c61b4f89d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustAll.js +++ /dev/null @@ -1,6 +0,0 @@ -import { exhaustMap } from './exhaustMap'; -import { identity } from '../util/identity'; -export function exhaustAll() { - return exhaustMap(identity); -} -//# sourceMappingURL=exhaustAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustAll.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustAll.js.map deleted file mode 100644 index 9d961b07a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaustAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/exhaustAll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA8C5C,MAAM,UAAU,UAAU;IACxB,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js deleted file mode 100755 index ad922ab22..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js +++ /dev/null @@ -1,29 +0,0 @@ -import { map } from './map'; -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function exhaustMap(project, resultSelector) { - if (resultSelector) { - return function (source) { - return source.pipe(exhaustMap(function (a, i) { return innerFrom(project(a, i)).pipe(map(function (b, ii) { return resultSelector(a, b, i, ii); })); })); - }; - } - return operate(function (source, subscriber) { - var index = 0; - var innerSub = null; - var isComplete = false; - source.subscribe(createOperatorSubscriber(subscriber, function (outerValue) { - if (!innerSub) { - innerSub = createOperatorSubscriber(subscriber, undefined, function () { - innerSub = null; - isComplete && subscriber.complete(); - }); - innerFrom(project(outerValue, index++)).subscribe(innerSub); - } - }, function () { - isComplete = true; - !innerSub && subscriber.complete(); - })); - }); -} -//# sourceMappingURL=exhaustMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js.map deleted file mode 100644 index ae34dc2de..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaustMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/exhaustMap.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA8DhE,MAAM,UAAU,UAAU,CACxB,OAAuC,EACvC,cAA6G;IAE7G,IAAI,cAAc,EAAE;QAElB,OAAO,UAAC,MAAqB;YAC3B,OAAA,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,CAAM,EAAE,EAAO,IAAK,OAAA,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAA3B,CAA2B,CAAC,CAAC,EAApF,CAAoF,CAAC,CAAC;QAAvH,CAAuH,CAAC;KAC3H;IACD,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,QAAQ,GAAyB,IAAI,CAAC;QAC1C,IAAI,UAAU,GAAG,KAAK,CAAC;QACvB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,UAAU;YACT,IAAI,CAAC,QAAQ,EAAE;gBACb,QAAQ,GAAG,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE;oBACzD,QAAQ,GAAG,IAAI,CAAC;oBAChB,UAAU,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACtC,CAAC,CAAC,CAAC;gBACH,SAAS,CAAC,OAAO,CAAC,UAAU,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;aAC7D;QACH,CAAC,EACD;YACE,UAAU,GAAG,IAAI,CAAC;YAClB,CAAC,QAAQ,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACrC,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/expand.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/expand.js deleted file mode 100755 index 4bdc75318..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/expand.js +++ /dev/null @@ -1,10 +0,0 @@ -import { operate } from '../util/lift'; -import { mergeInternals } from './mergeInternals'; -export function expand(project, concurrent, scheduler) { - if (concurrent === void 0) { concurrent = Infinity; } - concurrent = (concurrent || 0) < 1 ? Infinity : concurrent; - return operate(function (source, subscriber) { - return mergeInternals(source, subscriber, project, concurrent, undefined, true, scheduler); - }); -} -//# sourceMappingURL=expand.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/expand.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/expand.js.map deleted file mode 100644 index 950b1d3e8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/expand.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"expand.js","sourceRoot":"","sources":["../../../../src/internal/operators/expand.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAuElD,MAAM,UAAU,MAAM,CACpB,OAAuC,EACvC,UAAqB,EACrB,SAAyB;IADzB,2BAAA,EAAA,qBAAqB;IAGrB,UAAU,GAAG,CAAC,UAAU,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC;IAC3D,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,OAAA,cAAc,CAEZ,MAAM,EACN,UAAU,EACV,OAAO,EACP,UAAU,EAGV,SAAS,EAGT,IAAI,EACJ,SAAS,CACV;IAbD,CAaC,CACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/filter.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/filter.js deleted file mode 100755 index 273fa5b5d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/filter.js +++ /dev/null @@ -1,9 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function filter(predicate, thisArg) { - return operate(function (source, subscriber) { - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return predicate.call(thisArg, value, index++) && subscriber.next(value); })); - }); -} -//# sourceMappingURL=filter.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/filter.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/filter.js.map deleted file mode 100644 index 4e2ba5ae5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/filter.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"filter.js","sourceRoot":"","sources":["../../../../src/internal/operators/filter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA0DhE,MAAM,UAAU,MAAM,CAAI,SAA+C,EAAE,OAAa;IACtF,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAI,KAAK,GAAG,CAAC,CAAC;QAId,MAAM,CAAC,SAAS,CAId,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK,IAAK,OAAA,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAjE,CAAiE,CAAC,CACnH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/finalize.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/finalize.js deleted file mode 100755 index f86b28584..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/finalize.js +++ /dev/null @@ -1,12 +0,0 @@ -import { operate } from '../util/lift'; -export function finalize(callback) { - return operate(function (source, subscriber) { - try { - source.subscribe(subscriber); - } - finally { - subscriber.add(callback); - } - }); -} -//# sourceMappingURL=finalize.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/finalize.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/finalize.js.map deleted file mode 100644 index 5ccebb09f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/finalize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"finalize.js","sourceRoot":"","sources":["../../../../src/internal/operators/finalize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA+DvC,MAAM,UAAU,QAAQ,CAAI,QAAoB;IAC9C,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAGhC,IAAI;YACF,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;SAC9B;gBAAS;YACR,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;SAC1B;IACH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/find.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/find.js deleted file mode 100755 index 2ea8da7a6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/find.js +++ /dev/null @@ -1,22 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function find(predicate, thisArg) { - return operate(createFind(predicate, thisArg, 'value')); -} -export function createFind(predicate, thisArg, emit) { - var findIndex = emit === 'index'; - return function (source, subscriber) { - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var i = index++; - if (predicate.call(thisArg, value, i, source)) { - subscriber.next(findIndex ? i : value); - subscriber.complete(); - } - }, function () { - subscriber.next(findIndex ? -1 : undefined); - subscriber.complete(); - })); - }; -} -//# sourceMappingURL=find.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/find.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/find.js.map deleted file mode 100644 index 4d7d9b5c7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/find.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"find.js","sourceRoot":"","sources":["../../../../src/internal/operators/find.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4DhE,MAAM,UAAU,IAAI,CAClB,SAAsE,EACtE,OAAa;IAEb,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,UAAU,CACxB,SAAsE,EACtE,OAAY,EACZ,IAAuB;IAEvB,IAAM,SAAS,GAAG,IAAI,KAAK,OAAO,CAAC;IACnC,OAAO,UAAC,MAAqB,EAAE,UAA2B;QACxD,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,IAAM,CAAC,GAAG,KAAK,EAAE,CAAC;YAClB,IAAI,SAAS,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE;gBAC7C,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;gBACvC,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;QACH,CAAC,EACD;YACE,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;YAC5C,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/findIndex.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/findIndex.js deleted file mode 100755 index d59c5f8c3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/findIndex.js +++ /dev/null @@ -1,6 +0,0 @@ -import { operate } from '../util/lift'; -import { createFind } from './find'; -export function findIndex(predicate, thisArg) { - return operate(createFind(predicate, thisArg, 'index')); -} -//# sourceMappingURL=findIndex.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/findIndex.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/findIndex.js.map deleted file mode 100644 index c4d30fc50..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/findIndex.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"findIndex.js","sourceRoot":"","sources":["../../../../src/internal/operators/findIndex.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAuDpC,MAAM,UAAU,SAAS,CACvB,SAAsE,EACtE,OAAa;IAEb,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC;AAC1D,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/first.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/first.js deleted file mode 100755 index 2718af902..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/first.js +++ /dev/null @@ -1,13 +0,0 @@ -import { EmptyError } from '../util/EmptyError'; -import { filter } from './filter'; -import { take } from './take'; -import { defaultIfEmpty } from './defaultIfEmpty'; -import { throwIfEmpty } from './throwIfEmpty'; -import { identity } from '../util/identity'; -export function first(predicate, defaultValue) { - var hasDefaultValue = arguments.length >= 2; - return function (source) { - return source.pipe(predicate ? filter(function (v, i) { return predicate(v, i, source); }) : identity, take(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new EmptyError(); })); - }; -} -//# sourceMappingURL=first.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/first.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/first.js.map deleted file mode 100644 index 13e76ff5f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/first.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"first.js","sourceRoot":"","sources":["../../../../src/internal/operators/first.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAyE5C,MAAM,UAAU,KAAK,CACnB,SAAgF,EAChF,YAAgB;IAEhB,IAAM,eAAe,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9C,OAAO,UAAC,MAAqB;QAC3B,OAAA,MAAM,CAAC,IAAI,CACT,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,EAAvB,CAAuB,CAAC,CAAC,CAAC,CAAC,QAAQ,EAChE,IAAI,CAAC,CAAC,CAAC,EACP,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,YAAa,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,cAAM,OAAA,IAAI,UAAU,EAAE,EAAhB,CAAgB,CAAC,CACvF;IAJD,CAIC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/flatMap.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/flatMap.js deleted file mode 100755 index 937d334db..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/flatMap.js +++ /dev/null @@ -1,3 +0,0 @@ -import { mergeMap } from './mergeMap'; -export var flatMap = mergeMap; -//# sourceMappingURL=flatMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/flatMap.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/flatMap.js.map deleted file mode 100644 index 6fd4c84a3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/flatMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"flatMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/flatMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,CAAC,IAAM,OAAO,GAAG,QAAQ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/groupBy.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/groupBy.js deleted file mode 100755 index 3d721a4c6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/groupBy.js +++ /dev/null @@ -1,63 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber, OperatorSubscriber } from './OperatorSubscriber'; -export function groupBy(keySelector, elementOrOptions, duration, connector) { - return operate(function (source, subscriber) { - var element; - if (!elementOrOptions || typeof elementOrOptions === 'function') { - element = elementOrOptions; - } - else { - (duration = elementOrOptions.duration, element = elementOrOptions.element, connector = elementOrOptions.connector); - } - var groups = new Map(); - var notify = function (cb) { - groups.forEach(cb); - cb(subscriber); - }; - var handleError = function (err) { return notify(function (consumer) { return consumer.error(err); }); }; - var activeGroups = 0; - var teardownAttempted = false; - var groupBySourceSubscriber = new OperatorSubscriber(subscriber, function (value) { - try { - var key_1 = keySelector(value); - var group_1 = groups.get(key_1); - if (!group_1) { - groups.set(key_1, (group_1 = connector ? connector() : new Subject())); - var grouped = createGroupedObservable(key_1, group_1); - subscriber.next(grouped); - if (duration) { - var durationSubscriber_1 = createOperatorSubscriber(group_1, function () { - group_1.complete(); - durationSubscriber_1 === null || durationSubscriber_1 === void 0 ? void 0 : durationSubscriber_1.unsubscribe(); - }, undefined, undefined, function () { return groups.delete(key_1); }); - groupBySourceSubscriber.add(innerFrom(duration(grouped)).subscribe(durationSubscriber_1)); - } - } - group_1.next(element ? element(value) : value); - } - catch (err) { - handleError(err); - } - }, function () { return notify(function (consumer) { return consumer.complete(); }); }, handleError, function () { return groups.clear(); }, function () { - teardownAttempted = true; - return activeGroups === 0; - }); - source.subscribe(groupBySourceSubscriber); - function createGroupedObservable(key, groupSubject) { - var result = new Observable(function (groupSubscriber) { - activeGroups++; - var innerSub = groupSubject.subscribe(groupSubscriber); - return function () { - innerSub.unsubscribe(); - --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe(); - }; - }); - result.key = key; - return result; - } - }); -} -//# sourceMappingURL=groupBy.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/groupBy.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/groupBy.js.map deleted file mode 100644 index b4a4285ee..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/groupBy.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"groupBy.js","sourceRoot":"","sources":["../../../../src/internal/operators/groupBy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAuIpF,MAAM,UAAU,OAAO,CACrB,WAA4B,EAC5B,gBAAgH,EAChH,QAAyE,EACzE,SAAkC;IAElC,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,OAAqC,CAAC;QAC1C,IAAI,CAAC,gBAAgB,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;YAC/D,OAAO,GAAG,gBAAyC,CAAC;SACrD;aAAM;YACL,CAAG,QAAQ,GAAyB,gBAAgB,SAAzC,EAAE,OAAO,GAAgB,gBAAgB,QAAhC,EAAE,SAAS,GAAK,gBAAgB,UAArB,CAAsB,CAAC;SACvD;QAGD,IAAM,MAAM,GAAG,IAAI,GAAG,EAAuB,CAAC;QAG9C,IAAM,MAAM,GAAG,UAAC,EAAkC;YAChD,MAAM,CAAC,OAAO,CAAC,EAAE,CAA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C,CAAC,CAAC;qBACzF;iBACF;gBAGD,OAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;aAC9C;YAAC,OAAO,GAAG,EAAE;gBACZ,WAAW,CAAC,GAAG,CAAC,CAAC;aAClB;QACH,CAAC,EAED,cAAM,OAAA,MAAM,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,QAAQ,EAAE,EAAnB,CAAmB,CAAC,EAAzC,CAAyC,EAE/C,WAAW,EAKX,cAAM,OAAA,MAAM,CAAC,KAAK,EAAE,EAAd,CAAc,EACpB;YACE,iBAAiB,GAAG,IAAI,CAAC;YAIzB,OAAO,YAAY,KAAK,CAAC,CAAC;QAC5B,CAAC,CACF,CAAC;QAGF,MAAM,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QAO1C,SAAS,uBAAuB,CAAC,GAAM,EAAE,YAA8B;YACrE,IAAM,MAAM,GAAQ,IAAI,UAAU,CAAI,UAAC,eAAe;gBACpD,YAAY,EAAE,CAAC;gBACf,IAAM,QAAQ,GAAG,YAAY,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;gBACzD,OAAO;oBACL,QAAQ,CAAC,WAAW,EAAE,CAAC;oBAIvB,EAAE,YAAY,KAAK,CAAC,IAAI,iBAAiB,IAAI,uBAAuB,CAAC,WAAW,EAAE,CAAC;gBACrF,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;YACH,MAAM,CAAC,GAAG,GAAG,GAAG,CAAC;YACjB,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/ignoreElements.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/ignoreElements.js deleted file mode 100755 index e590c337f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/ignoreElements.js +++ /dev/null @@ -1,9 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -export function ignoreElements() { - return operate(function (source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, noop)); - }); -} -//# sourceMappingURL=ignoreElements.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/ignoreElements.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/ignoreElements.js.map deleted file mode 100644 index 66249f8de..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/ignoreElements.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ignoreElements.js","sourceRoot":"","sources":["../../../../src/internal/operators/ignoreElements.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAqCpC,MAAM,UAAU,cAAc;IAC5B,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/isEmpty.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/isEmpty.js deleted file mode 100755 index 8a140b58c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/isEmpty.js +++ /dev/null @@ -1,14 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function isEmpty() { - return operate(function (source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, function () { - subscriber.next(false); - subscriber.complete(); - }, function () { - subscriber.next(true); - subscriber.complete(); - })); - }); -} -//# sourceMappingURL=isEmpty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/isEmpty.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/isEmpty.js.map deleted file mode 100644 index 68b5d63b0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/isEmpty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isEmpty.js","sourceRoot":"","sources":["../../../../src/internal/operators/isEmpty.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA+DhE,MAAM,UAAU,OAAO;IACrB,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV;YACE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD;YACE,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/joinAllInternals.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/joinAllInternals.js deleted file mode 100755 index 62a00fc9c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/joinAllInternals.js +++ /dev/null @@ -1,9 +0,0 @@ -import { identity } from '../util/identity'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { pipe } from '../util/pipe'; -import { mergeMap } from './mergeMap'; -import { toArray } from './toArray'; -export function joinAllInternals(joinFn, project) { - return pipe(toArray(), mergeMap(function (sources) { return joinFn(sources); }), project ? mapOneOrManyArgs(project) : identity); -} -//# sourceMappingURL=joinAllInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/joinAllInternals.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/joinAllInternals.js.map deleted file mode 100644 index fb6cc39ec..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/joinAllInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"joinAllInternals.js","sourceRoot":"","sources":["../../../../src/internal/operators/joinAllInternals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAYpC,MAAM,UAAU,gBAAgB,CAAO,MAAwD,EAAE,OAA+B;IAC9H,OAAO,IAAI,CAGT,OAAO,EAAgE,EAEvE,QAAQ,CAAC,UAAC,OAAO,IAAK,OAAA,MAAM,CAAC,OAAO,CAAC,EAAf,CAAe,CAAC,EAEtC,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAE,QAAgB,CACxD,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/last.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/last.js deleted file mode 100755 index b77d79213..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/last.js +++ /dev/null @@ -1,13 +0,0 @@ -import { EmptyError } from '../util/EmptyError'; -import { filter } from './filter'; -import { takeLast } from './takeLast'; -import { throwIfEmpty } from './throwIfEmpty'; -import { defaultIfEmpty } from './defaultIfEmpty'; -import { identity } from '../util/identity'; -export function last(predicate, defaultValue) { - var hasDefaultValue = arguments.length >= 2; - return function (source) { - return source.pipe(predicate ? filter(function (v, i) { return predicate(v, i, source); }) : identity, takeLast(1), hasDefaultValue ? defaultIfEmpty(defaultValue) : throwIfEmpty(function () { return new EmptyError(); })); - }; -} -//# sourceMappingURL=last.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/last.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/last.js.map deleted file mode 100644 index 8c87fcdbe..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/last.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"last.js","sourceRoot":"","sources":["../../../../src/internal/operators/last.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAuE5C,MAAM,UAAU,IAAI,CAClB,SAAgF,EAChF,YAAgB;IAEhB,IAAM,eAAe,GAAG,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC;IAC9C,OAAO,UAAC,MAAqB;QAC3B,OAAA,MAAM,CAAC,IAAI,CACT,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,EAAvB,CAAuB,CAAC,CAAC,CAAC,CAAC,QAAQ,EAChE,QAAQ,CAAC,CAAC,CAAC,EACX,eAAe,CAAC,CAAC,CAAC,cAAc,CAAC,YAAa,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,cAAM,OAAA,IAAI,UAAU,EAAE,EAAhB,CAAgB,CAAC,CACvF;IAJD,CAIC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/map.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/map.js deleted file mode 100755 index 84d27b4eb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/map.js +++ /dev/null @@ -1,11 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function map(project, thisArg) { - return operate(function (source, subscriber) { - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - subscriber.next(project.call(thisArg, value, index++)); - })); - }); -} -//# sourceMappingURL=map.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/map.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/map.js.map deleted file mode 100644 index 85b7e290a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/map.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"map.js","sourceRoot":"","sources":["../../../../src/internal/operators/map.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA6ChE,MAAM,UAAU,GAAG,CAAO,OAAuC,EAAE,OAAa;IAC9E,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAI,KAAK,GAAG,CAAC,CAAC;QAGd,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAQ;YAG5C,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;QACzD,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mapTo.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mapTo.js deleted file mode 100755 index da6eaa297..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mapTo.js +++ /dev/null @@ -1,5 +0,0 @@ -import { map } from './map'; -export function mapTo(value) { - return map(function () { return value; }); -} -//# sourceMappingURL=mapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mapTo.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mapTo.js.map deleted file mode 100644 index bc5313cc5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/mapTo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA4C5B,MAAM,UAAU,KAAK,CAAI,KAAQ;IAC/B,OAAO,GAAG,CAAC,cAAM,OAAA,KAAK,EAAL,CAAK,CAAC,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/materialize.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/materialize.js deleted file mode 100755 index f2c4839d6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/materialize.js +++ /dev/null @@ -1,17 +0,0 @@ -import { Notification } from '../Notification'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function materialize() { - return operate(function (source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - subscriber.next(Notification.createNext(value)); - }, function () { - subscriber.next(Notification.createComplete()); - subscriber.complete(); - }, function (err) { - subscriber.next(Notification.createError(err)); - subscriber.complete(); - })); - }); -} -//# sourceMappingURL=materialize.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/materialize.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/materialize.js.map deleted file mode 100644 index 786d9800f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/materialize.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"materialize.js","sourceRoot":"","sources":["../../../../src/internal/operators/materialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAkDhE,MAAM,UAAU,WAAW;IACzB,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,CAAC,EACD;YACE,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,cAAc,EAAE,CAAC,CAAC;YAC/C,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,UAAC,GAAG;YACF,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC;YAC/C,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/max.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/max.js deleted file mode 100755 index 5e16431c5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/max.js +++ /dev/null @@ -1,6 +0,0 @@ -import { reduce } from './reduce'; -import { isFunction } from '../util/isFunction'; -export function max(comparer) { - return reduce(isFunction(comparer) ? function (x, y) { return (comparer(x, y) > 0 ? x : y); } : function (x, y) { return (x > y ? x : y); }); -} -//# sourceMappingURL=max.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/max.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/max.js.map deleted file mode 100644 index 250492baa..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/max.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"max.js","sourceRoot":"","sources":["../../../../src/internal/operators/max.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAgDhD,MAAM,UAAU,GAAG,CAAI,QAAiC;IACtD,OAAO,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAA5B,CAA4B,CAAC,CAAC,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAf,CAAe,CAAC,CAAC;AAC3G,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/merge.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/merge.js deleted file mode 100755 index 6491054b2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/merge.js +++ /dev/null @@ -1,19 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { operate } from '../util/lift'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { mergeAll } from './mergeAll'; -import { popNumber, popScheduler } from '../util/args'; -import { from } from '../observable/from'; -export function merge() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var scheduler = popScheduler(args); - var concurrent = popNumber(args, Infinity); - args = argsOrArgArray(args); - return operate(function (source, subscriber) { - mergeAll(concurrent)(from(__spreadArray([source], __read(args)), scheduler)).subscribe(subscriber); - }); -} -//# sourceMappingURL=merge.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/merge.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/merge.js.map deleted file mode 100644 index dc3960d0b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/merge.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge.js","sourceRoot":"","sources":["../../../../src/internal/operators/merge.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAiB1C,MAAM,UAAU,KAAK;IAAI,cAAkB;SAAlB,UAAkB,EAAlB,qBAAkB,EAAlB,IAAkB;QAAlB,yBAAkB;;IACzC,IAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IACrC,IAAM,UAAU,GAAG,SAAS,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC7C,IAAI,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;IAE5B,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,QAAQ,CAAC,UAAU,CAAC,CAAC,IAAI,gBAAE,MAAM,UAAM,IAA6B,IAAG,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC3G,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js deleted file mode 100755 index 7a1ca269f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js +++ /dev/null @@ -1,7 +0,0 @@ -import { mergeMap } from './mergeMap'; -import { identity } from '../util/identity'; -export function mergeAll(concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - return mergeMap(identity, concurrent); -} -//# sourceMappingURL=mergeAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js.map deleted file mode 100644 index 2d24b8263..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA8D5C,MAAM,UAAU,QAAQ,CAAiC,UAA6B;IAA7B,2BAAA,EAAA,qBAA6B;IACpF,OAAO,QAAQ,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js deleted file mode 100755 index e91f04e5b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js +++ /dev/null @@ -1,61 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { executeSchedule } from '../util/executeSchedule'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function mergeInternals(source, subscriber, project, concurrent, onBeforeNext, expand, innerSubScheduler, additionalFinalizer) { - var buffer = []; - var active = 0; - var index = 0; - var isComplete = false; - var checkComplete = function () { - if (isComplete && !buffer.length && !active) { - subscriber.complete(); - } - }; - var outerNext = function (value) { return (active < concurrent ? doInnerSub(value) : buffer.push(value)); }; - var doInnerSub = function (value) { - expand && subscriber.next(value); - active++; - var innerComplete = false; - innerFrom(project(value, index++)).subscribe(createOperatorSubscriber(subscriber, function (innerValue) { - onBeforeNext === null || onBeforeNext === void 0 ? void 0 : onBeforeNext(innerValue); - if (expand) { - outerNext(innerValue); - } - else { - subscriber.next(innerValue); - } - }, function () { - innerComplete = true; - }, undefined, function () { - if (innerComplete) { - try { - active--; - var _loop_1 = function () { - var bufferedValue = buffer.shift(); - if (innerSubScheduler) { - executeSchedule(subscriber, innerSubScheduler, function () { return doInnerSub(bufferedValue); }); - } - else { - doInnerSub(bufferedValue); - } - }; - while (buffer.length && active < concurrent) { - _loop_1(); - } - checkComplete(); - } - catch (err) { - subscriber.error(err); - } - } - })); - }; - source.subscribe(createOperatorSubscriber(subscriber, outerNext, function () { - isComplete = true; - checkComplete(); - })); - return function () { - additionalFinalizer === null || additionalFinalizer === void 0 ? void 0 : additionalFinalizer(); - }; -} -//# sourceMappingURL=mergeInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js.map deleted file mode 100644 index 13a2a5059..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeInternals.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeInternals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAGpD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAehE,MAAM,UAAU,cAAc,CAC5B,MAAqB,EACrB,UAAyB,EAC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AAM,CAAC,KAAK,EAAG,CAAC;wBAItC,IAAI,iBAAiB,EAAE;4BACrB,eAAe,CAAC,UAAU,EAAE,iBAAiB,EAAE,cAAM,OAAA,UAAU,CAAC,aAAa,CAAC,EAAzB,CAAyB,CAAC,CAAC;yBACjF;6BAAM;4BACL,UAAU,CAAC,aAAa,CAAC,CAAC;yBAC3B;;oBATH,OAAO,MAAM,CAAC,MAAM,IAAI,MAAM,GAAG,UAAU;;qBAU1C;oBAED,aAAa,EAAE,CAAC;iBACjB;gBAAC,OAAO,GAAG,EAAE;oBACZ,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACvB;aACF;QACH,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC;IAGF,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE;QAE9C,UAAU,GAAG,IAAI,CAAC;QAClB,aAAa,EAAE,CAAC;IAClB,CAAC,CAAC,CACH,CAAC;IAIF,OAAO;QACL,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,EAAI,CAAC;IAC1B,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js deleted file mode 100755 index 9eb2c265a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js +++ /dev/null @@ -1,16 +0,0 @@ -import { map } from './map'; -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { mergeInternals } from './mergeInternals'; -import { isFunction } from '../util/isFunction'; -export function mergeMap(project, resultSelector, concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - if (isFunction(resultSelector)) { - return mergeMap(function (a, i) { return map(function (b, ii) { return resultSelector(a, b, i, ii); })(innerFrom(project(a, i))); }, concurrent); - } - else if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - return operate(function (source, subscriber) { return mergeInternals(source, subscriber, project, concurrent); }); -} -//# sourceMappingURL=mergeMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js.map deleted file mode 100644 index 5885bf656..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA6EhD,MAAM,UAAU,QAAQ,CACtB,OAAuC,EACvC,cAAwH,EACxH,UAA6B;IAA7B,2BAAA,EAAA,qBAA6B;IAE7B,IAAI,UAAU,CAAC,cAAc,CAAC,EAAE;QAE9B,OAAO,QAAQ,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,GAAG,CAAC,UAAC,CAAM,EAAE,EAAU,IAAK,OAAA,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAA3B,CAA2B,CAAC,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAlF,CAAkF,EAAE,UAAU,CAAC,CAAC;KAC3H;SAAM,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;QAC7C,UAAU,GAAG,cAAc,CAAC;KAC7B;IAED,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU,IAAK,OAAA,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,EAAvD,CAAuD,CAAC,CAAC;AAClG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMapTo.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMapTo.js deleted file mode 100755 index 4f06e2b84..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMapTo.js +++ /dev/null @@ -1,13 +0,0 @@ -import { mergeMap } from './mergeMap'; -import { isFunction } from '../util/isFunction'; -export function mergeMapTo(innerObservable, resultSelector, concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - if (isFunction(resultSelector)) { - return mergeMap(function () { return innerObservable; }, resultSelector, concurrent); - } - if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - return mergeMap(function () { return innerObservable; }, concurrent); -} -//# sourceMappingURL=mergeMapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMapTo.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMapTo.js.map deleted file mode 100644 index d3df6eec2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeMapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeMapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeMapTo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA2DhD,MAAM,UAAU,UAAU,CACxB,eAAkB,EAClB,cAAwH,EACxH,UAA6B;IAA7B,2BAAA,EAAA,qBAA6B;IAE7B,IAAI,UAAU,CAAC,cAAc,CAAC,EAAE;QAC9B,OAAO,QAAQ,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,EAAE,cAAc,EAAE,UAAU,CAAC,CAAC;KACpE;IACD,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;QACtC,UAAU,GAAG,cAAc,CAAC;KAC7B;IACD,OAAO,QAAQ,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,EAAE,UAAU,CAAC,CAAC;AACrD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js deleted file mode 100755 index a8d7bc7bc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js +++ /dev/null @@ -1,12 +0,0 @@ -import { operate } from '../util/lift'; -import { mergeInternals } from './mergeInternals'; -export function mergeScan(accumulator, seed, concurrent) { - if (concurrent === void 0) { concurrent = Infinity; } - return operate(function (source, subscriber) { - var state = seed; - return mergeInternals(source, subscriber, function (value, index) { return accumulator(state, value, index); }, concurrent, function (value) { - state = value; - }, false, undefined, function () { return (state = null); }); - }); -} -//# sourceMappingURL=mergeScan.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js.map deleted file mode 100644 index 5adde5e1b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeScan.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeScan.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeScan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAoElD,MAAM,UAAU,SAAS,CACvB,WAAoE,EACpE,IAAO,EACP,UAAqB;IAArB,2BAAA,EAAA,qBAAqB;IAErB,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAEhC,IAAI,KAAK,GAAG,IAAI,CAAC;QAEjB,OAAO,cAAc,CACnB,MAAM,EACN,UAAU,EACV,UAAC,KAAK,EAAE,KAAK,IAAK,OAAA,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAhC,CAAgC,EAClD,UAAU,EACV,UAAC,KAAK;YACJ,KAAK,GAAG,KAAK,CAAC;QAChB,CAAC,EACD,KAAK,EACL,SAAS,EACT,cAAM,OAAA,CAAC,KAAK,GAAG,IAAK,CAAC,EAAf,CAAe,CACtB,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeWith.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeWith.js deleted file mode 100755 index 037ea38b4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeWith.js +++ /dev/null @@ -1,10 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { merge } from './merge'; -export function mergeWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return merge.apply(void 0, __spreadArray([], __read(otherSources))); -} -//# sourceMappingURL=mergeWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeWith.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeWith.js.map deleted file mode 100644 index 1ce77eaf3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/mergeWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/mergeWith.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AA2ChC,MAAM,UAAU,SAAS;IACvB,sBAA6C;SAA7C,UAA6C,EAA7C,qBAA6C,EAA7C,IAA6C;QAA7C,iCAA6C;;IAE7C,OAAO,KAAK,wCAAI,YAAY,IAAE;AAChC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/min.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/min.js deleted file mode 100755 index 5eedf3343..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/min.js +++ /dev/null @@ -1,6 +0,0 @@ -import { reduce } from './reduce'; -import { isFunction } from '../util/isFunction'; -export function min(comparer) { - return reduce(isFunction(comparer) ? function (x, y) { return (comparer(x, y) < 0 ? x : y); } : function (x, y) { return (x < y ? x : y); }); -} -//# sourceMappingURL=min.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/min.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/min.js.map deleted file mode 100644 index 48a79f0ed..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/min.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min.js","sourceRoot":"","sources":["../../../../src/internal/operators/min.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAgDhD,MAAM,UAAU,GAAG,CAAI,QAAiC;IACtD,OAAO,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAA5B,CAA4B,CAAC,CAAC,CAAC,UAAC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAf,CAAe,CAAC,CAAC;AAC3G,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/multicast.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/multicast.js deleted file mode 100755 index 9bea36616..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/multicast.js +++ /dev/null @@ -1,13 +0,0 @@ -import { ConnectableObservable } from '../observable/ConnectableObservable'; -import { isFunction } from '../util/isFunction'; -import { connect } from './connect'; -export function multicast(subjectOrSubjectFactory, selector) { - var subjectFactory = isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : function () { return subjectOrSubjectFactory; }; - if (isFunction(selector)) { - return connect(selector, { - connector: subjectFactory, - }); - } - return function (source) { return new ConnectableObservable(source, subjectFactory); }; -} -//# sourceMappingURL=multicast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/multicast.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/multicast.js.map deleted file mode 100644 index d7533c874..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/multicast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"multicast.js","sourceRoot":"","sources":["../../../../src/internal/operators/multicast.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA4EpC,MAAM,UAAU,SAAS,CACvB,uBAAwD,EACxD,QAAmD;IAEnD,IAAM,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,cAAM,OAAA,uBAAuB,EAAvB,CAAuB,CAAC;IAErH,IAAI,UAAU,CAAC,QAAQ,CAAC,EAAE;QAIxB,OAAO,OAAO,CAAC,QAAQ,EAAE;YACvB,SAAS,EAAE,cAAc;SAC1B,CAAC,CAAC;KACJ;IAED,OAAO,UAAC,MAAqB,IAAK,OAAA,IAAI,qBAAqB,CAAM,MAAM,EAAE,cAAc,CAAC,EAAtD,CAAsD,CAAC;AAC3F,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js deleted file mode 100755 index ab3028aa9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js +++ /dev/null @@ -1,10 +0,0 @@ -import { executeSchedule } from '../util/executeSchedule'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function observeOn(scheduler, delay) { - if (delay === void 0) { delay = 0; } - return operate(function (source, subscriber) { - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return executeSchedule(subscriber, scheduler, function () { return subscriber.next(value); }, delay); }, function () { return executeSchedule(subscriber, scheduler, function () { return subscriber.complete(); }, delay); }, function (err) { return executeSchedule(subscriber, scheduler, function () { return subscriber.error(err); }, delay); })); - }); -} -//# sourceMappingURL=observeOn.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js.map deleted file mode 100644 index b6537a9c7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"observeOn.js","sourceRoot":"","sources":["../../../../src/internal/operators/observeOn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAsDhE,MAAM,UAAU,SAAS,CAAI,SAAwB,EAAE,KAAS;IAAT,sBAAA,EAAA,SAAS;IAC9D,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK,IAAK,OAAA,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,cAAM,OAAA,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAtB,CAAsB,EAAE,KAAK,CAAC,EAA3E,CAA2E,EACtF,cAAM,OAAA,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,cAAM,OAAA,UAAU,CAAC,QAAQ,EAAE,EAArB,CAAqB,EAAE,KAAK,CAAC,EAA1E,CAA0E,EAChF,UAAC,GAAG,IAAK,OAAA,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,cAAM,OAAA,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,EAArB,CAAqB,EAAE,KAAK,CAAC,EAA1E,CAA0E,CACpF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/onErrorResumeNextWith.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/onErrorResumeNextWith.js deleted file mode 100755 index 2981576a0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/onErrorResumeNextWith.js +++ /dev/null @@ -1,13 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { onErrorResumeNext as oERNCreate } from '../observable/onErrorResumeNext'; -export function onErrorResumeNextWith() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - var nextSources = argsOrArgArray(sources); - return function (source) { return oERNCreate.apply(void 0, __spreadArray([source], __read(nextSources))); }; -} -export var onErrorResumeNext = onErrorResumeNextWith; -//# sourceMappingURL=onErrorResumeNextWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/onErrorResumeNextWith.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/onErrorResumeNextWith.js.map deleted file mode 100644 index ab9568231..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/onErrorResumeNextWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"onErrorResumeNextWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/onErrorResumeNextWith.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,iBAAiB,IAAI,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAiFlF,MAAM,UAAU,qBAAqB;IACnC,iBAAyE;SAAzE,UAAyE,EAAzE,qBAAyE,EAAzE,IAAyE;QAAzE,4BAAyE;;IAMzE,IAAM,WAAW,GAAG,cAAc,CAAC,OAAO,CAAuC,CAAC;IAElF,OAAO,UAAC,MAAM,IAAK,OAAA,UAAU,8BAAC,MAAM,UAAK,WAAW,KAAjC,CAAkC,CAAC;AACxD,CAAC;AAKD,MAAM,CAAC,IAAM,iBAAiB,GAAG,qBAAqB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pairwise.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pairwise.js deleted file mode 100755 index 213044298..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pairwise.js +++ /dev/null @@ -1,15 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function pairwise() { - return operate(function (source, subscriber) { - var prev; - var hasPrev = false; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var p = prev; - prev = value; - hasPrev && subscriber.next([p, value]); - hasPrev = true; - })); - }); -} -//# sourceMappingURL=pairwise.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pairwise.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pairwise.js.map deleted file mode 100644 index 74195323d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pairwise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pairwise.js","sourceRoot":"","sources":["../../../../src/internal/operators/pairwise.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA6ChE,MAAM,UAAU,QAAQ;IACtB,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,IAAO,CAAC;QACZ,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,IAAM,CAAC,GAAG,IAAI,CAAC;YACf,IAAI,GAAG,KAAK,CAAC;YACb,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;YACvC,OAAO,GAAG,IAAI,CAAC;QACjB,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/partition.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/partition.js deleted file mode 100755 index f5deaa053..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/partition.js +++ /dev/null @@ -1,8 +0,0 @@ -import { not } from '../util/not'; -import { filter } from './filter'; -export function partition(predicate, thisArg) { - return function (source) { - return [filter(predicate, thisArg)(source), filter(not(predicate, thisArg))(source)]; - }; -} -//# sourceMappingURL=partition.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/partition.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/partition.js.map deleted file mode 100644 index ece5de580..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/partition.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"partition.js","sourceRoot":"","sources":["../../../../src/internal/operators/partition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAuDlC,MAAM,UAAU,SAAS,CACvB,SAA+C,EAC/C,OAAa;IAEb,OAAO,UAAC,MAAqB;QAC3B,OAAA,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAmC;IAA/G,CAA+G,CAAC;AACpH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pluck.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pluck.js deleted file mode 100755 index ea59337de..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pluck.js +++ /dev/null @@ -1,25 +0,0 @@ -import { map } from './map'; -export function pluck() { - var properties = []; - for (var _i = 0; _i < arguments.length; _i++) { - properties[_i] = arguments[_i]; - } - var length = properties.length; - if (length === 0) { - throw new Error('list of properties cannot be empty.'); - } - return map(function (x) { - var currentProp = x; - for (var i = 0; i < length; i++) { - var p = currentProp === null || currentProp === void 0 ? void 0 : currentProp[properties[i]]; - if (typeof p !== 'undefined') { - currentProp = p; - } - else { - return undefined; - } - } - return currentProp; - }); -} -//# sourceMappingURL=pluck.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pluck.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pluck.js.map deleted file mode 100644 index 10087b148..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/pluck.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pluck.js","sourceRoot":"","sources":["../../../../src/internal/operators/pluck.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAwF5B,MAAM,UAAU,KAAK;IAAO,oBAA8C;SAA9C,UAA8C,EAA9C,qBAA8C,EAA9C,IAA8C;QAA9C,+BAA8C;;IACxE,IAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IACjC,IAAI,MAAM,KAAK,CAAC,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;KACxD;IACD,OAAO,GAAG,CAAC,UAAC,CAAC;QACX,IAAI,WAAW,GAAQ,CAAC,CAAC;QACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;YAC/B,IAAM,CAAC,GAAG,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;YACvC,IAAI,OAAO,CAAC,KAAK,WAAW,EAAE;gBAC5B,WAAW,GAAG,CAAC,CAAC;aACjB;iBAAM;gBACL,OAAO,SAAS,CAAC;aAClB;SACF;QACD,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publish.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publish.js deleted file mode 100755 index 8d003f919..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publish.js +++ /dev/null @@ -1,7 +0,0 @@ -import { Subject } from '../Subject'; -import { multicast } from './multicast'; -import { connect } from './connect'; -export function publish(selector) { - return selector ? function (source) { return connect(selector)(source); } : function (source) { return multicast(new Subject())(source); }; -} -//# sourceMappingURL=publish.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publish.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publish.js.map deleted file mode 100644 index 377db203a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publish.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../../src/internal/operators/publish.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAqFpC,MAAM,UAAU,OAAO,CAAO,QAAiC;IAC7D,OAAO,QAAQ,CAAC,CAAC,CAAC,UAAC,MAAM,IAAK,OAAA,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAzB,CAAyB,CAAC,CAAC,CAAC,UAAC,MAAM,IAAK,OAAA,SAAS,CAAC,IAAI,OAAO,EAAK,CAAC,CAAC,MAAM,CAAC,EAAnC,CAAmC,CAAC;AAC5G,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js deleted file mode 100755 index 42ae70cb1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js +++ /dev/null @@ -1,9 +0,0 @@ -import { BehaviorSubject } from '../BehaviorSubject'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -export function publishBehavior(initialValue) { - return function (source) { - var subject = new BehaviorSubject(initialValue); - return new ConnectableObservable(source, function () { return subject; }); - }; -} -//# sourceMappingURL=publishBehavior.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js.map deleted file mode 100644 index 6a7b85a04..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishBehavior.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishBehavior.js","sourceRoot":"","sources":["../../../../src/internal/operators/publishBehavior.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAiB5E,MAAM,UAAU,eAAe,CAAI,YAAe;IAEhD,OAAO,UAAC,MAAM;QACZ,IAAM,OAAO,GAAG,IAAI,eAAe,CAAI,YAAY,CAAC,CAAC;QACrD,OAAO,IAAI,qBAAqB,CAAC,MAAM,EAAE,cAAM,OAAA,OAAO,EAAP,CAAO,CAAC,CAAC;IAC1D,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishLast.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishLast.js deleted file mode 100755 index c312d8652..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishLast.js +++ /dev/null @@ -1,9 +0,0 @@ -import { AsyncSubject } from '../AsyncSubject'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -export function publishLast() { - return function (source) { - var subject = new AsyncSubject(); - return new ConnectableObservable(source, function () { return subject; }); - }; -} -//# sourceMappingURL=publishLast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishLast.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishLast.js.map deleted file mode 100644 index e173ca7fe..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishLast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishLast.js","sourceRoot":"","sources":["../../../../src/internal/operators/publishLast.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAmE5E,MAAM,UAAU,WAAW;IAEzB,OAAO,UAAC,MAAM;QACZ,IAAM,OAAO,GAAG,IAAI,YAAY,EAAK,CAAC;QACtC,OAAO,IAAI,qBAAqB,CAAC,MAAM,EAAE,cAAM,OAAA,OAAO,EAAP,CAAO,CAAC,CAAC;IAC1D,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishReplay.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishReplay.js deleted file mode 100755 index 4f7325d24..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishReplay.js +++ /dev/null @@ -1,11 +0,0 @@ -import { ReplaySubject } from '../ReplaySubject'; -import { multicast } from './multicast'; -import { isFunction } from '../util/isFunction'; -export function publishReplay(bufferSize, windowTime, selectorOrScheduler, timestampProvider) { - if (selectorOrScheduler && !isFunction(selectorOrScheduler)) { - timestampProvider = selectorOrScheduler; - } - var selector = isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined; - return function (source) { return multicast(new ReplaySubject(bufferSize, windowTime, timestampProvider), selector)(source); }; -} -//# sourceMappingURL=publishReplay.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishReplay.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishReplay.js.map deleted file mode 100644 index 71b67768e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/publishReplay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishReplay.js","sourceRoot":"","sources":["../../../../src/internal/operators/publishReplay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA8EhD,MAAM,UAAU,aAAa,CAC3B,UAAmB,EACnB,UAAmB,EACnB,mBAAgE,EAChE,iBAAqC;IAErC,IAAI,mBAAmB,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,EAAE;QAC3D,iBAAiB,GAAG,mBAAmB,CAAC;KACzC;IACD,IAAM,QAAQ,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,SAAS,CAAC;IAGnF,OAAO,UAAC,MAAqB,IAAK,OAAA,SAAS,CAAC,IAAI,aAAa,CAAI,UAAU,EAAE,UAAU,EAAE,iBAAiB,CAAC,EAAE,QAAS,CAAC,CAAC,MAAM,CAAC,EAA7F,CAA6F,CAAC;AAClI,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/race.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/race.js deleted file mode 100755 index 063ecb322..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/race.js +++ /dev/null @@ -1,11 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { raceWith } from './raceWith'; -export function race() { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - return raceWith.apply(void 0, __spreadArray([], __read(argsOrArgArray(args)))); -} -//# sourceMappingURL=race.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/race.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/race.js.map deleted file mode 100644 index a2049a5f5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/race.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"race.js","sourceRoot":"","sources":["../../../../src/internal/operators/race.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAetC,MAAM,UAAU,IAAI;IAAI,cAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,yBAAc;;IACpC,OAAO,QAAQ,wCAAI,cAAc,CAAC,IAAI,CAAC,IAAE;AAC3C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/raceWith.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/raceWith.js deleted file mode 100755 index cff7a6aa4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/raceWith.js +++ /dev/null @@ -1,16 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { raceInit } from '../observable/race'; -import { operate } from '../util/lift'; -import { identity } from '../util/identity'; -export function raceWith() { - var otherSources = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherSources[_i] = arguments[_i]; - } - return !otherSources.length - ? identity - : operate(function (source, subscriber) { - raceInit(__spreadArray([source], __read(otherSources)))(subscriber); - }); -} -//# sourceMappingURL=raceWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/raceWith.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/raceWith.js.map deleted file mode 100644 index 5547fedf5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/raceWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"raceWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/raceWith.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA4B5C,MAAM,UAAU,QAAQ;IACtB,sBAA6C;SAA7C,UAA6C,EAA7C,qBAA6C,EAA7C,IAA6C;QAA7C,iCAA6C;;IAE7C,OAAO,CAAC,YAAY,CAAC,MAAM;QACzB,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YACzB,QAAQ,gBAAiB,MAAM,UAAK,YAAY,GAAE,CAAC,UAAU,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/reduce.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/reduce.js deleted file mode 100755 index 55be35a8e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/reduce.js +++ /dev/null @@ -1,6 +0,0 @@ -import { scanInternals } from './scanInternals'; -import { operate } from '../util/lift'; -export function reduce(accumulator, seed) { - return operate(scanInternals(accumulator, seed, arguments.length >= 2, false, true)); -} -//# sourceMappingURL=reduce.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/reduce.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/reduce.js.map deleted file mode 100644 index 2ec4cdc7e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/reduce.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reduce.js","sourceRoot":"","sources":["../../../../src/internal/operators/reduce.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAyDvC,MAAM,UAAU,MAAM,CAAO,WAAuD,EAAE,IAAU;IAC9F,OAAO,OAAO,CAAC,aAAa,CAAC,WAAW,EAAE,IAAI,EAAE,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AACvF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/refCount.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/refCount.js deleted file mode 100755 index ee0182d61..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/refCount.js +++ /dev/null @@ -1,26 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function refCount() { - return operate(function (source, subscriber) { - var connection = null; - source._refCount++; - var refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, function () { - if (!source || source._refCount <= 0 || 0 < --source._refCount) { - connection = null; - return; - } - var sharedConnection = source._connection; - var conn = connection; - connection = null; - if (sharedConnection && (!conn || sharedConnection === conn)) { - sharedConnection.unsubscribe(); - } - subscriber.unsubscribe(); - }); - source.subscribe(refCounter); - if (!refCounter.closed) { - connection = source.connect(); - } - }); -} -//# sourceMappingURL=refCount.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/refCount.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/refCount.js.map deleted file mode 100644 index b7cf3a27e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/refCount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"refCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/refCount.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4DhE,MAAM,UAAU,QAAQ;IACtB,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,UAAU,GAAwB,IAAI,CAAC;QAE1C,MAAc,CAAC,SAAS,EAAE,CAAC;QAE5B,IAAM,UAAU,GAAG,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE;YACvF,IAAI,CAAC,MAAM,IAAK,MAAc,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,GAAG,EAAG,MAAc,CAAC,SAAS,EAAE;gBAChF,UAAU,GAAG,IAAI,CAAC;gBAClB,OAAO;aACR;YA2BD,IAAM,gBAAgB,GAAI,MAAc,CAAC,WAAW,CAAC;YACrD,IAAM,IAAI,GAAG,UAAU,CAAC;YACxB,UAAU,GAAG,IAAI,CAAC;YAElB,IAAI,gBAAgB,IAAI,CAAC,CAAC,IAAI,IAAI,gBAAgB,KAAK,IAAI,CAAC,EAAE;gBAC5D,gBAAgB,CAAC,WAAW,EAAE,CAAC;aAChC;YAED,UAAU,CAAC,WAAW,EAAE,CAAC;QAC3B,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAE7B,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;YACtB,UAAU,GAAI,MAAmC,CAAC,OAAO,EAAE,CAAC;SAC7D;IACH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeat.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeat.js deleted file mode 100755 index d5daec000..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeat.js +++ /dev/null @@ -1,60 +0,0 @@ -import { EMPTY } from '../observable/empty'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { timer } from '../observable/timer'; -export function repeat(countOrConfig) { - var _a; - var count = Infinity; - var delay; - if (countOrConfig != null) { - if (typeof countOrConfig === 'object') { - (_a = countOrConfig.count, count = _a === void 0 ? Infinity : _a, delay = countOrConfig.delay); - } - else { - count = countOrConfig; - } - } - return count <= 0 - ? function () { return EMPTY; } - : operate(function (source, subscriber) { - var soFar = 0; - var sourceSub; - var resubscribe = function () { - sourceSub === null || sourceSub === void 0 ? void 0 : sourceSub.unsubscribe(); - sourceSub = null; - if (delay != null) { - var notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar)); - var notifierSubscriber_1 = createOperatorSubscriber(subscriber, function () { - notifierSubscriber_1.unsubscribe(); - subscribeToSource(); - }); - notifier.subscribe(notifierSubscriber_1); - } - else { - subscribeToSource(); - } - }; - var subscribeToSource = function () { - var syncUnsub = false; - sourceSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, function () { - if (++soFar < count) { - if (sourceSub) { - resubscribe(); - } - else { - syncUnsub = true; - } - } - else { - subscriber.complete(); - } - })); - if (syncUnsub) { - resubscribe(); - } - }; - subscribeToSource(); - }); -} -//# sourceMappingURL=repeat.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeat.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeat.js.map deleted file mode 100644 index 6c78356b7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeat.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"repeat.js","sourceRoot":"","sources":["../../../../src/internal/operators/repeat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AA6G5C,MAAM,UAAU,MAAM,CAAI,aAAqC;;IAC7D,IAAI,KAAK,GAAG,QAAQ,CAAC;IACrB,IAAI,KAA4B,CAAC;IAEjC,IAAI,aAAa,IAAI,IAAI,EAAE;QACzB,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;YACrC,CAAG,KAA4B,aAAa,MAAzB,EAAhB,KAAK,mBAAG,QAAQ,KAAA,EAAE,KAAK,GAAK,aAAa,MAAlB,CAAmB,CAAC;SAC/C;aAAM;YACL,KAAK,GAAG,aAAa,CAAC;SACvB;KACF;IAED,OAAO,KAAK,IAAI,CAAC;QACf,CAAC,CAAC,cAAM,OAAA,KAAK,EAAL,CAAK;QACb,CAAC,CAAC,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YACzB,IAAI,KAAK,GAAG,CAAC,CAAC;YACd,IAAI,SAA8B,CAAC;YAEnC,IAAM,WAAW,GAAG;gBAClB,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,EAAE,CAAC;gBACzB,SAAS,GAAG,IAAI,CAAC;gBACjB,IAAI,KAAK,IAAI,IAAI,EAAE;oBACjB,IAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;oBACpF,IAAM,oBAAkB,GAAG,wBAAwB,CAAC,UAAU,EAAE;wBAC9D,oBAAkB,CAAC,WAAW,EAAE,CAAC;wBACjC,iBAAiB,EAAE,CAAC;oBACtB,CAAC,CAAC,CAAC;oBACH,QAAQ,CAAC,SAAS,CAAC,oBAAkB,CAAC,CAAC;iBACxC;qBAAM;oBACL,iBAAiB,EAAE,CAAC;iBACrB;YACH,CAAC,CAAC;YAEF,IAAM,iBAAiB,GAAG;gBACxB,IAAI,SAAS,GAAG,KAAK,CAAC;gBACtB,SAAS,GAAG,MAAM,CAAC,SAAS,CAC1B,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE;oBAC9C,IAAI,EAAE,KAAK,GAAG,KAAK,EAAE;wBACnB,IAAI,SAAS,EAAE;4BACb,WAAW,EAAE,CAAC;yBACf;6BAAM;4BACL,SAAS,GAAG,IAAI,CAAC;yBAClB;qBACF;yBAAM;wBACL,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;gBACH,CAAC,CAAC,CACH,CAAC;gBAEF,IAAI,SAAS,EAAE;oBACb,WAAW,EAAE,CAAC;iBACf;YACH,CAAC,CAAC;YAEF,iBAAiB,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeatWhen.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeatWhen.js deleted file mode 100755 index 583978160..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeatWhen.js +++ /dev/null @@ -1,46 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function repeatWhen(notifier) { - return operate(function (source, subscriber) { - var innerSub; - var syncResub = false; - var completions$; - var isNotifierComplete = false; - var isMainComplete = false; - var checkComplete = function () { return isMainComplete && isNotifierComplete && (subscriber.complete(), true); }; - var getCompletionSubject = function () { - if (!completions$) { - completions$ = new Subject(); - innerFrom(notifier(completions$)).subscribe(createOperatorSubscriber(subscriber, function () { - if (innerSub) { - subscribeForRepeatWhen(); - } - else { - syncResub = true; - } - }, function () { - isNotifierComplete = true; - checkComplete(); - })); - } - return completions$; - }; - var subscribeForRepeatWhen = function () { - isMainComplete = false; - innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, function () { - isMainComplete = true; - !checkComplete() && getCompletionSubject().next(); - })); - if (syncResub) { - innerSub.unsubscribe(); - innerSub = null; - syncResub = false; - subscribeForRepeatWhen(); - } - }; - subscribeForRepeatWhen(); - }); -} -//# sourceMappingURL=repeatWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeatWhen.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeatWhen.js.map deleted file mode 100644 index 365f486d1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/repeatWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"repeatWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/repeatWhen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAoChE,MAAM,UAAU,UAAU,CAAI,QAAmE;IAC/F,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAA6B,CAAC;QAClC,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,YAA2B,CAAC;QAChC,IAAI,kBAAkB,GAAG,KAAK,CAAC;QAC/B,IAAI,cAAc,GAAG,KAAK,CAAC;QAK3B,IAAM,aAAa,GAAG,cAAM,OAAA,cAAc,IAAI,kBAAkB,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,EAArE,CAAqE,CAAC;QAKlG,IAAM,oBAAoB,GAAG;YAC3B,IAAI,CAAC,YAAY,EAAE;gBACjB,YAAY,GAAG,IAAI,OAAO,EAAE,CAAC;gBAI7B,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CACzC,wBAAwB,CACtB,UAAU,EACV;oBACE,IAAI,QAAQ,EAAE;wBACZ,sBAAsB,EAAE,CAAC;qBAC1B;yBAAM;wBAKL,SAAS,GAAG,IAAI,CAAC;qBAClB;gBACH,CAAC,EACD;oBACE,kBAAkB,GAAG,IAAI,CAAC;oBAC1B,aAAa,EAAE,CAAC;gBAClB,CAAC,CACF,CACF,CAAC;aACH;YACD,OAAO,YAAY,CAAC;QACtB,CAAC,CAAC;QAEF,IAAM,sBAAsB,GAAG;YAC7B,cAAc,GAAG,KAAK,CAAC;YAEvB,QAAQ,GAAG,MAAM,CAAC,SAAS,CACzB,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE;gBAC9C,cAAc,GAAG,IAAI,CAAC;gBAMtB,CAAC,aAAa,EAAE,IAAI,oBAAoB,EAAE,CAAC,IAAI,EAAE,CAAC;YACpD,CAAC,CAAC,CACH,CAAC;YAEF,IAAI,SAAS,EAAE;gBAKb,QAAQ,CAAC,WAAW,EAAE,CAAC;gBAIvB,QAAQ,GAAG,IAAI,CAAC;gBAEhB,SAAS,GAAG,KAAK,CAAC;gBAElB,sBAAsB,EAAE,CAAC;aAC1B;QACH,CAAC,CAAC;QAGF,sBAAsB,EAAE,CAAC;IAC3B,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retry.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retry.js deleted file mode 100755 index 3ba2a04f2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retry.js +++ /dev/null @@ -1,69 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { identity } from '../util/identity'; -import { timer } from '../observable/timer'; -import { innerFrom } from '../observable/innerFrom'; -export function retry(configOrCount) { - if (configOrCount === void 0) { configOrCount = Infinity; } - var config; - if (configOrCount && typeof configOrCount === 'object') { - config = configOrCount; - } - else { - config = { - count: configOrCount, - }; - } - var _a = config.count, count = _a === void 0 ? Infinity : _a, delay = config.delay, _b = config.resetOnSuccess, resetOnSuccess = _b === void 0 ? false : _b; - return count <= 0 - ? identity - : operate(function (source, subscriber) { - var soFar = 0; - var innerSub; - var subscribeForRetry = function () { - var syncUnsub = false; - innerSub = source.subscribe(createOperatorSubscriber(subscriber, function (value) { - if (resetOnSuccess) { - soFar = 0; - } - subscriber.next(value); - }, undefined, function (err) { - if (soFar++ < count) { - var resub_1 = function () { - if (innerSub) { - innerSub.unsubscribe(); - innerSub = null; - subscribeForRetry(); - } - else { - syncUnsub = true; - } - }; - if (delay != null) { - var notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(err, soFar)); - var notifierSubscriber_1 = createOperatorSubscriber(subscriber, function () { - notifierSubscriber_1.unsubscribe(); - resub_1(); - }, function () { - subscriber.complete(); - }); - notifier.subscribe(notifierSubscriber_1); - } - else { - resub_1(); - } - } - else { - subscriber.error(err); - } - })); - if (syncUnsub) { - innerSub.unsubscribe(); - innerSub = null; - subscribeForRetry(); - } - }; - subscribeForRetry(); - }); -} -//# sourceMappingURL=retry.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retry.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retry.js.map deleted file mode 100644 index ea2ad165c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retry.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"retry.js","sourceRoot":"","sources":["../../../../src/internal/operators/retry.ts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QAAQ,EAAE;gCACZ,QAAQ,CAAC,WAAW,EAAE,CAAC;gCACvB,QAAQ,GAAG,IAAI,CAAC;gCAChB,iBAAiB,EAAE,CAAC;6BACrB;iCAAM;gCACL,SAAS,GAAG,IAAI,CAAC;6BAClB;wBACH,CAAC,CAAC;wBAEF,IAAI,KAAK,IAAI,IAAI,EAAE;4BAIjB,IAAM,QAAQ,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;4BACzF,IAAM,oBAAkB,GAAG,wBAAwB,CACjD,UAAU,EACV;gCAIE,oBAAkB,CAAC,WAAW,EAAE,CAAC;gCACjC,OAAK,EAAE,CAAC;4BACV,CAAC,EACD;gCAGE,UAAU,CAAC,QAAQ,EAAE,CAAC;4BACxB,CAAC,CACF,CAAC;4BACF,QAAQ,CAAC,SAAS,CAAC,oBAAkB,CAAC,CAAC;yBACxC;6BAAM;4BAEL,OAAK,EAAE,CAAC;yBACT;qBACF;yBAAM;wBAGL,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;qBACvB;gBACH,CAAC,CACF,CACF,CAAC;gBACF,IAAI,SAAS,EAAE;oBACb,QAAQ,CAAC,WAAW,EAAE,CAAC;oBACvB,QAAQ,GAAG,IAAI,CAAC;oBAChB,iBAAiB,EAAE,CAAC;iBACrB;YACH,CAAC,CAAC;YACF,iBAAiB,EAAE,CAAC;QACtB,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retryWhen.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retryWhen.js deleted file mode 100755 index e6e1c09f6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retryWhen.js +++ /dev/null @@ -1,32 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function retryWhen(notifier) { - return operate(function (source, subscriber) { - var innerSub; - var syncResub = false; - var errors$; - var subscribeForRetryWhen = function () { - innerSub = source.subscribe(createOperatorSubscriber(subscriber, undefined, undefined, function (err) { - if (!errors$) { - errors$ = new Subject(); - innerFrom(notifier(errors$)).subscribe(createOperatorSubscriber(subscriber, function () { - return innerSub ? subscribeForRetryWhen() : (syncResub = true); - })); - } - if (errors$) { - errors$.next(err); - } - })); - if (syncResub) { - innerSub.unsubscribe(); - innerSub = null; - syncResub = false; - subscribeForRetryWhen(); - } - }; - subscribeForRetryWhen(); - }); -} -//# sourceMappingURL=retryWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retryWhen.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retryWhen.js.map deleted file mode 100644 index 7ccab1a8c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/retryWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"retryWhen.js","sourceRoot":"","sources":["../../../../src/internal/operators/retryWhen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAIrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA2DhE,MAAM,UAAU,SAAS,CAAI,QAA2D;IACtF,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAA6B,CAAC;QAClC,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,OAAqB,CAAC;QAE1B,IAAM,qBAAqB,GAAG;YAC5B,QAAQ,GAAG,MAAM,CAAC,SAAS,CACzB,wBAAwB,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,UAAC,GAAG;gBAC7D,IAAI,CAAC,OAAO,EAAE;oBACZ,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;oBACxB,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CACpC,wBAAwB,CAAC,UAAU,EAAE;wBAMnC,OAAA,QAAQ,CAAC,CAAC,CAAC,qBAAqB,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;oBAAvD,CAAuD,CACxD,CACF,CAAC;iBACH;gBACD,IAAI,OAAO,EAAE;oBAEX,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;iBACnB;YACH,CAAC,CAAC,CACH,CAAC;YAEF,IAAI,SAAS,EAAE;gBAKb,QAAQ,CAAC,WAAW,EAAE,CAAC;gBACvB,QAAQ,GAAG,IAAI,CAAC;gBAEhB,SAAS,GAAG,KAAK,CAAC;gBAElB,qBAAqB,EAAE,CAAC;aACzB;QACH,CAAC,CAAC;QAGF,qBAAqB,EAAE,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sample.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sample.js deleted file mode 100755 index feff985e2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sample.js +++ /dev/null @@ -1,23 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function sample(notifier) { - return operate(function (source, subscriber) { - var hasValue = false; - var lastValue = null; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - lastValue = value; - })); - innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, function () { - if (hasValue) { - hasValue = false; - var value = lastValue; - lastValue = null; - subscriber.next(value); - } - }, noop)); - }); -} -//# sourceMappingURL=sample.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sample.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sample.js.map deleted file mode 100644 index 34b7662db..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sample.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sample.js","sourceRoot":"","sources":["../../../../src/internal/operators/sample.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA0ChE,MAAM,UAAU,MAAM,CAAI,QAA8B;IACtD,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,SAAS,GAAa,IAAI,CAAC;QAC/B,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,QAAQ,GAAG,IAAI,CAAC;YAChB,SAAS,GAAG,KAAK,CAAC;QACpB,CAAC,CAAC,CACH,CAAC;QACF,SAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAC3B,wBAAwB,CACtB,UAAU,EACV;YACE,IAAI,QAAQ,EAAE;gBACZ,QAAQ,GAAG,KAAK,CAAC;gBACjB,IAAM,KAAK,GAAG,SAAU,CAAC;gBACzB,SAAS,GAAG,IAAI,CAAC;gBACjB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aACxB;QACH,CAAC,EACD,IAAI,CACL,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sampleTime.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sampleTime.js deleted file mode 100755 index 8be13a05c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sampleTime.js +++ /dev/null @@ -1,8 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { sample } from './sample'; -import { interval } from '../observable/interval'; -export function sampleTime(period, scheduler) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - return sample(interval(period, scheduler)); -} -//# sourceMappingURL=sampleTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sampleTime.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sampleTime.js.map deleted file mode 100644 index 473a76399..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sampleTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sampleTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/sampleTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AA6ClD,MAAM,UAAU,UAAU,CAAI,MAAc,EAAE,SAAyC;IAAzC,0BAAA,EAAA,0BAAyC;IACrF,OAAO,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC;AAC7C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scan.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scan.js deleted file mode 100755 index b60b8e00d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scan.js +++ /dev/null @@ -1,6 +0,0 @@ -import { operate } from '../util/lift'; -import { scanInternals } from './scanInternals'; -export function scan(accumulator, seed) { - return operate(scanInternals(accumulator, seed, arguments.length >= 2, true)); -} -//# sourceMappingURL=scan.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scan.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scan.js.map deleted file mode 100644 index dd32f366b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scan.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scan.js","sourceRoot":"","sources":["../../../../src/internal/operators/scan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAqFhD,MAAM,UAAU,IAAI,CAAU,WAA2D,EAAE,IAAQ;IAMjG,OAAO,OAAO,CAAC,aAAa,CAAC,WAAW,EAAE,IAAS,EAAE,SAAS,CAAC,MAAM,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;AACrF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scanInternals.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scanInternals.js deleted file mode 100755 index 66eaff631..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scanInternals.js +++ /dev/null @@ -1,22 +0,0 @@ -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function scanInternals(accumulator, seed, hasSeed, emitOnNext, emitBeforeComplete) { - return function (source, subscriber) { - var hasState = hasSeed; - var state = seed; - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var i = index++; - state = hasState - ? - accumulator(state, value, i) - : - ((hasState = true), value); - emitOnNext && subscriber.next(state); - }, emitBeforeComplete && - (function () { - hasState && subscriber.next(state); - subscriber.complete(); - }))); - }; -} -//# sourceMappingURL=scanInternals.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scanInternals.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scanInternals.js.map deleted file mode 100644 index 94e2abb23..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/scanInternals.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scanInternals.js","sourceRoot":"","sources":["../../../../src/internal/operators/scanInternals.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAWhE,MAAM,UAAU,aAAa,CAC3B,WAA2D,EAC3D,IAAO,EACP,OAAgB,EAChB,UAAmB,EACnB,kBAAqC;IAErC,OAAO,UAAC,MAAqB,EAAE,UAA2B;QAIxD,IAAI,QAAQ,GAAG,OAAO,CAAC;QAIvB,IAAI,KAAK,GAAQ,IAAI,CAAC;QAEtB,IAAI,KAAK,GAAG,CAAC,CAAC;QAGd,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YAEJ,IAAM,CAAC,GAAG,KAAK,EAAE,CAAC;YAElB,KAAK,GAAG,QAAQ;gBACd,CAAC;oBACC,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;gBAC9B,CAAC;oBAGC,CAAC,CAAC,QAAQ,GAAG,IAAI,CAAC,EAAE,KAAK,CAAC,CAAC;YAG/B,UAAU,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC,EAGD,kBAAkB;YAChB,CAAC;gBACC,QAAQ,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBACnC,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,CAAC,CACL,CACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sequenceEqual.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sequenceEqual.js deleted file mode 100755 index 2bd711358..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sequenceEqual.js +++ /dev/null @@ -1,40 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function sequenceEqual(compareTo, comparator) { - if (comparator === void 0) { comparator = function (a, b) { return a === b; }; } - return operate(function (source, subscriber) { - var aState = createState(); - var bState = createState(); - var emit = function (isEqual) { - subscriber.next(isEqual); - subscriber.complete(); - }; - var createSubscriber = function (selfState, otherState) { - var sequenceEqualSubscriber = createOperatorSubscriber(subscriber, function (a) { - var buffer = otherState.buffer, complete = otherState.complete; - if (buffer.length === 0) { - complete ? emit(false) : selfState.buffer.push(a); - } - else { - !comparator(a, buffer.shift()) && emit(false); - } - }, function () { - selfState.complete = true; - var complete = otherState.complete, buffer = otherState.buffer; - complete && emit(buffer.length === 0); - sequenceEqualSubscriber === null || sequenceEqualSubscriber === void 0 ? void 0 : sequenceEqualSubscriber.unsubscribe(); - }); - return sequenceEqualSubscriber; - }; - source.subscribe(createSubscriber(aState, bState)); - innerFrom(compareTo).subscribe(createSubscriber(bState, aState)); - }); -} -function createState() { - return { - buffer: [], - complete: false, - }; -} -//# sourceMappingURL=sequenceEqual.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sequenceEqual.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sequenceEqual.js.map deleted file mode 100644 index df29e7bc0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/sequenceEqual.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sequenceEqual.js","sourceRoot":"","sources":["../../../../src/internal/operators/sequenceEqual.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA2DpD,MAAM,UAAU,aAAa,CAC3B,SAA6B,EAC7B,UAAuD;IAAvD,2BAAA,EAAA,uBAAuC,CAAC,EAAE,CAAC,IAAK,OAAA,CAAC,KAAK,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D,SAAS,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC;AAgBD,SAAS,WAAW;IAClB,OAAO;QACL,MAAM,EAAE,EAAE;QACV,QAAQ,EAAE,KAAK;KAChB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/share.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/share.js deleted file mode 100755 index f2e2c10a7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/share.js +++ /dev/null @@ -1,85 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { SafeSubscriber } from '../Subscriber'; -import { operate } from '../util/lift'; -export function share(options) { - if (options === void 0) { options = {}; } - var _a = options.connector, connector = _a === void 0 ? function () { return new Subject(); } : _a, _b = options.resetOnError, resetOnError = _b === void 0 ? true : _b, _c = options.resetOnComplete, resetOnComplete = _c === void 0 ? true : _c, _d = options.resetOnRefCountZero, resetOnRefCountZero = _d === void 0 ? true : _d; - return function (wrapperSource) { - var connection; - var resetConnection; - var subject; - var refCount = 0; - var hasCompleted = false; - var hasErrored = false; - var cancelReset = function () { - resetConnection === null || resetConnection === void 0 ? void 0 : resetConnection.unsubscribe(); - resetConnection = undefined; - }; - var reset = function () { - cancelReset(); - connection = subject = undefined; - hasCompleted = hasErrored = false; - }; - var resetAndUnsubscribe = function () { - var conn = connection; - reset(); - conn === null || conn === void 0 ? void 0 : conn.unsubscribe(); - }; - return operate(function (source, subscriber) { - refCount++; - if (!hasErrored && !hasCompleted) { - cancelReset(); - } - var dest = (subject = subject !== null && subject !== void 0 ? subject : connector()); - subscriber.add(function () { - refCount--; - if (refCount === 0 && !hasErrored && !hasCompleted) { - resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero); - } - }); - dest.subscribe(subscriber); - if (!connection && - refCount > 0) { - connection = new SafeSubscriber({ - next: function (value) { return dest.next(value); }, - error: function (err) { - hasErrored = true; - cancelReset(); - resetConnection = handleReset(reset, resetOnError, err); - dest.error(err); - }, - complete: function () { - hasCompleted = true; - cancelReset(); - resetConnection = handleReset(reset, resetOnComplete); - dest.complete(); - }, - }); - innerFrom(source).subscribe(connection); - } - })(wrapperSource); - }; -} -function handleReset(reset, on) { - var args = []; - for (var _i = 2; _i < arguments.length; _i++) { - args[_i - 2] = arguments[_i]; - } - if (on === true) { - reset(); - return; - } - if (on === false) { - return; - } - var onSubscriber = new SafeSubscriber({ - next: function () { - onSubscriber.unsubscribe(); - reset(); - }, - }); - return innerFrom(on.apply(void 0, __spreadArray([], __read(args)))).subscribe(onSubscriber); -} -//# sourceMappingURL=share.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/share.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/share.js.map deleted file mode 100644 index 229a03891..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/share.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"share.js","sourceRoot":"","sources":["../../../../src/internal/operators/share.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAwIvC,MAAM,UAAU,KAAK,CAAI,OAA4B;IAA5B,wBAAA,EAAA,YAA4B;IAC3C,IAAA,KAAgH,OAAO,UAArF,EAAlC,SAAS,mBAAG,cAAM,OAAA,IAAI,OAAO,EAAK,EAAhB,CAAgB,KAAA,EAAE,KAA4E,OAAO,aAAhE,EAAnB,YAAY,mBAAG,IAAI,KAAA,EAAE,KAAuD,OAAO,gBAAx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AE,wCAAI,IAAI,IAAE,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;AACxD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js deleted file mode 100755 index 857e37b11..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js +++ /dev/null @@ -1,20 +0,0 @@ -import { ReplaySubject } from '../ReplaySubject'; -import { share } from './share'; -export function shareReplay(configOrBufferSize, windowTime, scheduler) { - var _a, _b, _c; - var bufferSize; - var refCount = false; - if (configOrBufferSize && typeof configOrBufferSize === 'object') { - (_a = configOrBufferSize.bufferSize, bufferSize = _a === void 0 ? Infinity : _a, _b = configOrBufferSize.windowTime, windowTime = _b === void 0 ? Infinity : _b, _c = configOrBufferSize.refCount, refCount = _c === void 0 ? false : _c, scheduler = configOrBufferSize.scheduler); - } - else { - bufferSize = (configOrBufferSize !== null && configOrBufferSize !== void 0 ? configOrBufferSize : Infinity); - } - return share({ - connector: function () { return new ReplaySubject(bufferSize, windowTime, scheduler); }, - resetOnError: true, - resetOnComplete: false, - resetOnRefCountZero: refCount, - }); -} -//# sourceMappingURL=shareReplay.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js.map deleted file mode 100644 index 240861836..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/shareReplay.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shareReplay.js","sourceRoot":"","sources":["../../../../src/internal/operators/shareReplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAwJhC,MAAM,UAAU,WAAW,CACzB,kBAA+C,EAC/C,UAAmB,EACnB,SAAyB;;IAEzB,IAAI,UAAkB,CAAC;IACvB,IAAI,QAAQ,GAAG,KAAK,CAAC;IACrB,IAAI,kBAAkB,IAAI,OAAO,kBAAkB,KAAK,QAAQ,EAAE;QAChE,CAAG,KAA8E,kBAAkB,WAA3E,EAArB,UAAU,mBAAG,QAAQ,KAAA,EAAE,KAAuD,kBAAkB,WAApD,EAArB,UAAU,mBAAG,QAAQ,KAAA,EAAE,KAAgC,kBAAkB,SAAlC,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAAE,SAAS,GAAK,kBAAkB,UAAvB,CAAwB,CAAC;KACtG;SAAM;QACL,UAAU,GAAG,CAAC,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,QAAQ,CAAW,CAAC;KACzD;IACD,OAAO,KAAK,CAAI;QACd,SAAS,EAAE,cAAM,OAAA,IAAI,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,SAAS,CAAC,EAApD,CAAoD;QACrE,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,KAAK;QACtB,mBAAmB,EAAE,QAAQ;KAC9B,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/single.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/single.js deleted file mode 100755 index ed324d08b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/single.js +++ /dev/null @@ -1,30 +0,0 @@ -import { EmptyError } from '../util/EmptyError'; -import { SequenceError } from '../util/SequenceError'; -import { NotFoundError } from '../util/NotFoundError'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function single(predicate) { - return operate(function (source, subscriber) { - var hasValue = false; - var singleValue; - var seenValue = false; - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - seenValue = true; - if (!predicate || predicate(value, index++, source)) { - hasValue && subscriber.error(new SequenceError('Too many matching values')); - hasValue = true; - singleValue = value; - } - }, function () { - if (hasValue) { - subscriber.next(singleValue); - subscriber.complete(); - } - else { - subscriber.error(seenValue ? new NotFoundError('No matching values') : new EmptyError()); - } - })); - }); -} -//# sourceMappingURL=single.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/single.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/single.js.map deleted file mode 100644 index 985c1e081..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/single.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"single.js","sourceRoot":"","sources":["../../../../src/internal/operators/single.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAiFhE,MAAM,UAAU,MAAM,CAAI,SAAuE;IAC/F,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,IAAI,WAAc,CAAC;QACnB,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,SAAS,GAAG,IAAI,CAAC;YACjB,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,MAAM,CAAC,EAAE;gBACnD,QAAQ,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,0BAA0B,CAAC,CAAC,CAAC;gBAC5E,QAAQ,GAAG,IAAI,CAAC;gBAChB,WAAW,GAAG,KAAK,CAAC;aACrB;QACH,CAAC,EACD;YACE,IAAI,QAAQ,EAAE;gBACZ,UAAU,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;gBAC7B,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;iBAAM;gBACL,UAAU,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;aAC1F;QACH,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skip.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skip.js deleted file mode 100755 index 480442185..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skip.js +++ /dev/null @@ -1,5 +0,0 @@ -import { filter } from './filter'; -export function skip(count) { - return filter(function (_, index) { return count <= index; }); -} -//# sourceMappingURL=skip.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skip.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skip.js.map deleted file mode 100644 index a6aa41c56..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skip.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skip.js","sourceRoot":"","sources":["../../../../src/internal/operators/skip.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAmClC,MAAM,UAAU,IAAI,CAAI,KAAa;IACnC,OAAO,MAAM,CAAC,UAAC,CAAC,EAAE,KAAK,IAAK,OAAA,KAAK,IAAI,KAAK,EAAd,CAAc,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipLast.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipLast.js deleted file mode 100755 index 8a69d325e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipLast.js +++ /dev/null @@ -1,28 +0,0 @@ -import { identity } from '../util/identity'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function skipLast(skipCount) { - return skipCount <= 0 - ? - identity - : operate(function (source, subscriber) { - var ring = new Array(skipCount); - var seen = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var valueIndex = seen++; - if (valueIndex < skipCount) { - ring[valueIndex] = value; - } - else { - var index = valueIndex % skipCount; - var oldValue = ring[index]; - ring[index] = value; - subscriber.next(oldValue); - } - })); - return function () { - ring = null; - }; - }); -} -//# sourceMappingURL=skipLast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipLast.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipLast.js.map deleted file mode 100644 index a35e8900b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipLast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipLast.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipLast.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4ChE,MAAM,UAAU,QAAQ,CAAI,SAAiB;IAC3C,OAAO,SAAS,IAAI,CAAC;QACnB,CAAC;YACC,QAAQ;QACV,CAAC,CAAC,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YAIzB,IAAI,IAAI,GAAQ,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;YAGrC,IAAI,IAAI,GAAG,CAAC,CAAC;YACb,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;gBAKzC,IAAM,UAAU,GAAG,IAAI,EAAE,CAAC;gBAC1B,IAAI,UAAU,GAAG,SAAS,EAAE;oBAI1B,IAAI,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC;iBAC1B;qBAAM;oBAIL,IAAM,KAAK,GAAG,UAAU,GAAG,SAAS,CAAC;oBAGrC,IAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;oBAC7B,IAAI,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC;oBAKpB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;iBAC3B;YACH,CAAC,CAAC,CACH,CAAC;YAEF,OAAO;gBAEL,IAAI,GAAG,IAAK,CAAC;YACf,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipUntil.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipUntil.js deleted file mode 100755 index 12aa7aaea..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipUntil.js +++ /dev/null @@ -1,16 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { noop } from '../util/noop'; -export function skipUntil(notifier) { - return operate(function (source, subscriber) { - var taking = false; - var skipSubscriber = createOperatorSubscriber(subscriber, function () { - skipSubscriber === null || skipSubscriber === void 0 ? void 0 : skipSubscriber.unsubscribe(); - taking = true; - }, noop); - innerFrom(notifier).subscribe(skipSubscriber); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return taking && subscriber.next(value); })); - }); -} -//# sourceMappingURL=skipUntil.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipUntil.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipUntil.js.map deleted file mode 100644 index b9c47b8f2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipUntil.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipUntil.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipUntil.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AA+CpC,MAAM,UAAU,SAAS,CAAI,QAA8B;IACzD,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,MAAM,GAAG,KAAK,CAAC;QAEnB,IAAM,cAAc,GAAG,wBAAwB,CAC7C,UAAU,EACV;YACE,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,WAAW,EAAE,CAAC;YAC9B,MAAM,GAAG,IAAI,CAAC;QAChB,CAAC,EACD,IAAI,CACL,CAAC;QAEF,SAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;QAE9C,MAAM,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK,IAAK,OAAA,MAAM,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAAhC,CAAgC,CAAC,CAAC,CAAC;IACtG,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js deleted file mode 100755 index 4f86f1343..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js +++ /dev/null @@ -1,10 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function skipWhile(predicate) { - return operate(function (source, subscriber) { - var taking = false; - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return (taking || (taking = !predicate(value, index++))) && subscriber.next(value); })); - }); -} -//# sourceMappingURL=skipWhile.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js.map deleted file mode 100644 index c4e201d64..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipWhile.js","sourceRoot":"","sources":["../../../../src/internal/operators/skipWhile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAiDhE,MAAM,UAAU,SAAS,CAAI,SAA+C;IAC1E,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,MAAM,GAAG,KAAK,CAAC;QACnB,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK,IAAK,OAAA,CAAC,MAAM,IAAI,CAAC,MAAM,GAAG,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,EAA3E,CAA2E,CAAC,CAC7H,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/startWith.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/startWith.js deleted file mode 100755 index f10bfca37..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/startWith.js +++ /dev/null @@ -1,14 +0,0 @@ -import { concat } from '../observable/concat'; -import { popScheduler } from '../util/args'; -import { operate } from '../util/lift'; -export function startWith() { - var values = []; - for (var _i = 0; _i < arguments.length; _i++) { - values[_i] = arguments[_i]; - } - var scheduler = popScheduler(values); - return operate(function (source, subscriber) { - (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber); - }); -} -//# sourceMappingURL=startWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/startWith.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/startWith.js.map deleted file mode 100644 index f32f49c55..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/startWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"startWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/startWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAuDvC,MAAM,UAAU,SAAS;IAAO,gBAAc;SAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;QAAd,2BAAc;;IAC5C,IAAM,SAAS,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;IACvC,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAIhC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACjG,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js deleted file mode 100755 index d77b94964..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js +++ /dev/null @@ -1,8 +0,0 @@ -import { operate } from '../util/lift'; -export function subscribeOn(scheduler, delay) { - if (delay === void 0) { delay = 0; } - return operate(function (source, subscriber) { - subscriber.add(scheduler.schedule(function () { return source.subscribe(subscriber); }, delay)); - }); -} -//# sourceMappingURL=subscribeOn.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js.map deleted file mode 100644 index c04f3441a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subscribeOn.js","sourceRoot":"","sources":["../../../../src/internal/operators/subscribeOn.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AA6DvC,MAAM,UAAU,WAAW,CAAI,SAAwB,EAAE,KAAiB;IAAjB,sBAAA,EAAA,SAAiB;IACxE,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,cAAM,OAAA,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,EAA5B,CAA4B,EAAE,KAAK,CAAC,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchAll.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchAll.js deleted file mode 100755 index f0db5993c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchAll.js +++ /dev/null @@ -1,6 +0,0 @@ -import { switchMap } from './switchMap'; -import { identity } from '../util/identity'; -export function switchAll() { - return switchMap(identity); -} -//# sourceMappingURL=switchAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchAll.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchAll.js.map deleted file mode 100644 index f4b643897..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchAll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AA4D5C,MAAM,UAAU,SAAS;IACvB,OAAO,SAAS,CAAC,QAAQ,CAAC,CAAC;AAC7B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMap.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMap.js deleted file mode 100755 index aed4575a9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMap.js +++ /dev/null @@ -1,24 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function switchMap(project, resultSelector) { - return operate(function (source, subscriber) { - var innerSubscriber = null; - var index = 0; - var isComplete = false; - var checkComplete = function () { return isComplete && !innerSubscriber && subscriber.complete(); }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - innerSubscriber === null || innerSubscriber === void 0 ? void 0 : innerSubscriber.unsubscribe(); - var innerIndex = 0; - var outerIndex = index++; - innerFrom(project(value, outerIndex)).subscribe((innerSubscriber = createOperatorSubscriber(subscriber, function (innerValue) { return subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue); }, function () { - innerSubscriber = null; - checkComplete(); - }))); - }, function () { - isComplete = true; - checkComplete(); - })); - }); -} -//# sourceMappingURL=switchMap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMap.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMap.js.map deleted file mode 100644 index e6e2aa731..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchMap.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchMap.ts"],"names":[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} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMapTo.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMapTo.js deleted file mode 100755 index b4eeada23..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMapTo.js +++ /dev/null @@ -1,6 +0,0 @@ -import { switchMap } from './switchMap'; -import { isFunction } from '../util/isFunction'; -export function switchMapTo(innerObservable, resultSelector) { - return isFunction(resultSelector) ? switchMap(function () { return innerObservable; }, resultSelector) : switchMap(function () { return innerObservable; }); -} -//# sourceMappingURL=switchMapTo.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMapTo.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMapTo.js.map deleted file mode 100644 index 046d5a749..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchMapTo.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchMapTo.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchMapTo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAwDhD,MAAM,UAAU,WAAW,CACzB,eAAkB,EAClB,cAA6G;IAE7G,OAAO,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,cAAM,OAAA,eAAe,EAAf,CAAe,CAAC,CAAC;AAC1H,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchScan.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchScan.js deleted file mode 100755 index 8b28312f0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchScan.js +++ /dev/null @@ -1,12 +0,0 @@ -import { switchMap } from './switchMap'; -import { operate } from '../util/lift'; -export function switchScan(accumulator, seed) { - return operate(function (source, subscriber) { - var state = seed; - switchMap(function (value, index) { return accumulator(state, value, index); }, function (_, innerValue) { return ((state = innerValue), innerValue); })(source).subscribe(subscriber); - return function () { - state = null; - }; - }); -} -//# sourceMappingURL=switchScan.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchScan.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchScan.js.map deleted file mode 100644 index 31a40229f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/switchScan.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchScan.js","sourceRoot":"","sources":["../../../../src/internal/operators/switchScan.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAqBvC,MAAM,UAAU,UAAU,CACxB,WAAmD,EACnD,IAAO;IAEP,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAGhC,IAAI,KAAK,GAAG,IAAI,CAAC;QAKjB,SAAS,CAGP,UAAC,KAAQ,EAAE,KAAK,IAAK,OAAA,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,EAAhC,CAAgC,EAGrD,UAAC,CAAC,EAAE,UAAU,IAAK,OAAA,CAAC,CAAC,KAAK,GAAG,UAAU,CAAC,EAAE,UAAU,CAAC,EAAlC,CAAkC,CACtD,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;QAEhC,OAAO;YAEL,KAAK,GAAG,IAAK,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/take.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/take.js deleted file mode 100755 index e2c24c0b0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/take.js +++ /dev/null @@ -1,20 +0,0 @@ -import { EMPTY } from '../observable/empty'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function take(count) { - return count <= 0 - ? - function () { return EMPTY; } - : operate(function (source, subscriber) { - var seen = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - if (++seen <= count) { - subscriber.next(value); - if (count <= seen) { - subscriber.complete(); - } - } - })); - }); -} -//# sourceMappingURL=take.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/take.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/take.js.map deleted file mode 100644 index fd2e22b3c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/take.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"take.js","sourceRoot":"","sources":["../../../../src/internal/operators/take.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4ChE,MAAM,UAAU,IAAI,CAAI,KAAa;IACnC,OAAO,KAAK,IAAI,CAAC;QACf,CAAC;YACC,cAAM,OAAA,KAAK,EAAL,CAAK;QACb,CAAC,CAAC,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YACzB,IAAI,IAAI,GAAG,CAAC,CAAC;YACb,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;gBAIzC,IAAI,EAAE,IAAI,IAAI,KAAK,EAAE;oBACnB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;oBAIvB,IAAI,KAAK,IAAI,IAAI,EAAE;wBACjB,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;iBACF;YACH,CAAC,CAAC,CACH,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeLast.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeLast.js deleted file mode 100755 index 9de2aa38d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeLast.js +++ /dev/null @@ -1,34 +0,0 @@ -import { __values } from "tslib"; -import { EMPTY } from '../observable/empty'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function takeLast(count) { - return count <= 0 - ? function () { return EMPTY; } - : operate(function (source, subscriber) { - var buffer = []; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - buffer.push(value); - count < buffer.length && buffer.shift(); - }, function () { - var e_1, _a; - try { - for (var buffer_1 = __values(buffer), buffer_1_1 = buffer_1.next(); !buffer_1_1.done; buffer_1_1 = buffer_1.next()) { - var value = buffer_1_1.value; - subscriber.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (buffer_1_1 && !buffer_1_1.done && (_a = buffer_1.return)) _a.call(buffer_1); - } - finally { if (e_1) throw e_1.error; } - } - subscriber.complete(); - }, undefined, function () { - buffer = null; - })); - }); -} -//# sourceMappingURL=takeLast.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeLast.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeLast.js.map deleted file mode 100644 index 615173fcd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeLast.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeLast.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeLast.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAE5C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAyChE,MAAM,UAAU,QAAQ,CAAI,KAAa;IACvC,OAAO,KAAK,IAAI,CAAC;QACf,CAAC,CAAC,cAAM,OAAA,KAAK,EAAL,CAAK;QACb,CAAC,CAAC,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;YAKzB,IAAI,MAAM,GAAQ,EAAE,CAAC;YACrB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;gBAEJ,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;gBAGnB,KAAK,GAAG,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,KAAK,EAAE,CAAC;YAC1C,CAAC,EACD;;;oBAGE,KAAoB,IAAA,WAAA,SAAA,MAAM,CAAA,8BAAA,kDAAE;wBAAvB,IAAM,KAAK,mBAAA;wBACd,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;qBACxB;;;;;;;;;gBACD,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,EAED,SAAS,EACT;gBAEE,MAAM,GAAG,IAAK,CAAC;YACjB,CAAC,CACF,CACF,CAAC;QACJ,CAAC,CAAC,CAAC;AACT,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js deleted file mode 100755 index d9e3351ed..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js +++ /dev/null @@ -1,11 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { noop } from '../util/noop'; -export function takeUntil(notifier) { - return operate(function (source, subscriber) { - innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, function () { return subscriber.complete(); }, noop)); - !subscriber.closed && source.subscribe(subscriber); - }); -} -//# sourceMappingURL=takeUntil.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js.map deleted file mode 100644 index 427d10280..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeUntil.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeUntil.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAyCpC,MAAM,UAAU,SAAS,CAAI,QAA8B;IACzD,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,SAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,wBAAwB,CAAC,UAAU,EAAE,cAAM,OAAA,UAAU,CAAC,QAAQ,EAAE,EAArB,CAAqB,EAAE,IAAI,CAAC,CAAC,CAAC;QACvG,CAAC,UAAU,CAAC,MAAM,IAAI,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IACrD,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeWhile.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeWhile.js deleted file mode 100755 index 855c60640..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeWhile.js +++ /dev/null @@ -1,14 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function takeWhile(predicate, inclusive) { - if (inclusive === void 0) { inclusive = false; } - return operate(function (source, subscriber) { - var index = 0; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var result = predicate(value, index++); - (result || inclusive) && subscriber.next(value); - !result && subscriber.complete(); - })); - }); -} -//# sourceMappingURL=takeWhile.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeWhile.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeWhile.js.map deleted file mode 100644 index e93b34462..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/takeWhile.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeWhile.js","sourceRoot":"","sources":["../../../../src/internal/operators/takeWhile.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAoDhE,MAAM,UAAU,SAAS,CAAI,SAA+C,EAAE,SAAiB;IAAjB,0BAAA,EAAA,iBAAiB;IAC7F,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,IAAM,MAAM,GAAG,SAAS,CAAC,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;YACzC,CAAC,MAAM,IAAI,SAAS,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YAChD,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACnC,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/tap.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/tap.js deleted file mode 100755 index 868735a45..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/tap.js +++ /dev/null @@ -1,40 +0,0 @@ -import { isFunction } from '../util/isFunction'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { identity } from '../util/identity'; -export function tap(observerOrNext, error, complete) { - var tapObserver = isFunction(observerOrNext) || error || complete - ? - { next: observerOrNext, error: error, complete: complete } - : observerOrNext; - return tapObserver - ? operate(function (source, subscriber) { - var _a; - (_a = tapObserver.subscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - var isUnsub = true; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var _a; - (_a = tapObserver.next) === null || _a === void 0 ? void 0 : _a.call(tapObserver, value); - subscriber.next(value); - }, function () { - var _a; - isUnsub = false; - (_a = tapObserver.complete) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - subscriber.complete(); - }, function (err) { - var _a; - isUnsub = false; - (_a = tapObserver.error) === null || _a === void 0 ? void 0 : _a.call(tapObserver, err); - subscriber.error(err); - }, function () { - var _a, _b; - if (isUnsub) { - (_a = tapObserver.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(tapObserver); - } - (_b = tapObserver.finalize) === null || _b === void 0 ? void 0 : _b.call(tapObserver); - })); - }) - : - identity; -} -//# sourceMappingURL=tap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/tap.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/tap.js.map deleted file mode 100644 index 634703884..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/tap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tap.js","sourceRoot":"","sources":["../../../../src/internal/operators/tap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAkK5C,MAAM,UAAU,GAAG,CACjB,cAAsE,EACtE,KAAiC,EACjC,QAA8B;IAK9B,IAAM,WAAW,GACf,UAAU,CAAC,cAAc,CAAC,IAAI,KAAK,IAAI,QAAQ;QAC7C,CAAC;YACE,EAAE,IAAI,EAAE,cAAyE,EAAE,KAAK,OAAA,EAAE,QAAQ,UAAA,EAA8B;QACnI,CAAC,CAAC,cAAc,CAAC;IAErB,OAAO,WAAW;QAChB,CAAC,CAAC,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;;YACzB,MAAA,WAAW,CAAC,SAAS,+CAArB,WAAW,CAAc,CAAC;YAC1B,IAAI,OAAO,GAAG,IAAI,CAAC;YACnB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;;gBACJ,MAAA,WAAW,CAAC,IAAI,+CAAhB,WAAW,EAAQ,KAAK,CAAC,CAAC;gBAC1B,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzB,CAAC,EACD;;gBACE,OAAO,GAAG,KAAK,CAAC;gBAChB,MAAA,WAAW,CAAC,QAAQ,+CAApB,WAAW,CAAa,CAAC;gBACzB,UAAU,CAAC,QAAQ,EAAE,CAAC;YACxB,CAAC,EACD,UAAC,GAAG;;gBACF,OAAO,GAAG,KAAK,CAAC;gBAChB,MAAA,WAAW,CAAC,KAAK,+CAAjB,WAAW,EAAS,GAAG,CAAC,CAAC;gBACzB,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACxB,CAAC,EACD;;gBACE,IAAI,OAAO,EAAE;oBACX,MAAA,WAAW,CAAC,WAAW,+CAAvB,WAAW,CAAgB,CAAC;iBAC7B;gBACD,MAAA,WAAW,CAAC,QAAQ,+CAApB,WAAW,CAAa,CAAC;YAC3B,CAAC,CACF,CACF,CAAC;QACJ,CAAC,CAAC;QACJ,CAAC;YAGC,QAAQ,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttle.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttle.js deleted file mode 100755 index 9fac6aac8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttle.js +++ /dev/null @@ -1,45 +0,0 @@ -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function throttle(durationSelector, config) { - return operate(function (source, subscriber) { - var _a = config !== null && config !== void 0 ? config : {}, _b = _a.leading, leading = _b === void 0 ? true : _b, _c = _a.trailing, trailing = _c === void 0 ? false : _c; - var hasValue = false; - var sendValue = null; - var throttled = null; - var isComplete = false; - var endThrottling = function () { - throttled === null || throttled === void 0 ? void 0 : throttled.unsubscribe(); - throttled = null; - if (trailing) { - send(); - isComplete && subscriber.complete(); - } - }; - var cleanupThrottling = function () { - throttled = null; - isComplete && subscriber.complete(); - }; - var startThrottle = function (value) { - return (throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling))); - }; - var send = function () { - if (hasValue) { - hasValue = false; - var value = sendValue; - sendValue = null; - subscriber.next(value); - !isComplete && startThrottle(value); - } - }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - sendValue = value; - !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value)); - }, function () { - isComplete = true; - !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete(); - })); - }); -} -//# sourceMappingURL=throttle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttle.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttle.js.map deleted file mode 100644 index 66877b7c4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../../../src/internal/operators/throttle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OA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,CAAC;gBACvB,CAAC,UAAU,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;aACrC;QACH,CAAC,CAAC;QAEF,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EAMV,UAAC,KAAK;YACJ,QAAQ,GAAG,IAAI,CAAC;YAChB,SAAS,GAAG,KAAK,CAAC;YAClB,CAAC,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;QACjF,CAAC,EACD;YACE,UAAU,GAAG,IAAI,CAAC;YAClB,CAAC,CAAC,QAAQ,IAAI,QAAQ,IAAI,SAAS,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;QACrF,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttleTime.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttleTime.js deleted file mode 100755 index 95b0a39d0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttleTime.js +++ /dev/null @@ -1,9 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { throttle } from './throttle'; -import { timer } from '../observable/timer'; -export function throttleTime(duration, scheduler, config) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - var duration$ = timer(duration, scheduler); - return throttle(function () { return duration$; }, config); -} -//# sourceMappingURL=throttleTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttleTime.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttleTime.js.map deleted file mode 100644 index c5b9cdae5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throttleTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throttleTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/throttleTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAkB,MAAM,YAAY,CAAC;AAEtD,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAmD5C,MAAM,UAAU,YAAY,CAC1B,QAAgB,EAChB,SAAyC,EACzC,MAAuB;IADvB,0BAAA,EAAA,0BAAyC;IAGzC,IAAM,SAAS,GAAG,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC7C,OAAO,QAAQ,CAAC,cAAM,OAAA,SAAS,EAAT,CAAS,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js deleted file mode 100755 index e3179a3ff..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js +++ /dev/null @@ -1,17 +0,0 @@ -import { EmptyError } from '../util/EmptyError'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function throwIfEmpty(errorFactory) { - if (errorFactory === void 0) { errorFactory = defaultErrorFactory; } - return operate(function (source, subscriber) { - var hasValue = false; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - hasValue = true; - subscriber.next(value); - }, function () { return (hasValue ? subscriber.complete() : subscriber.error(errorFactory())); })); - }); -} -function defaultErrorFactory() { - return new EmptyError(); -} -//# sourceMappingURL=throwIfEmpty.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js.map deleted file mode 100644 index 724b0085a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/throwIfEmpty.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwIfEmpty.js","sourceRoot":"","sources":["../../../../src/internal/operators/throwIfEmpty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAsChE,MAAM,UAAU,YAAY,CAAI,YAA6C;IAA7C,6BAAA,EAAA,kCAA6C;IAC3E,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,QAAQ,GAAG,KAAK,CAAC;QACrB,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;YACJ,QAAQ,GAAG,IAAI,CAAC;YAChB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC,EACD,cAAM,OAAA,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC,CAAC,EAArE,CAAqE,CAC5E,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,SAAS,mBAAmB;IAC1B,OAAO,IAAI,UAAU,EAAE,CAAC;AAC1B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeInterval.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeInterval.js deleted file mode 100755 index a0f655eb5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeInterval.js +++ /dev/null @@ -1,24 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function timeInterval(scheduler) { - if (scheduler === void 0) { scheduler = asyncScheduler; } - return operate(function (source, subscriber) { - var last = scheduler.now(); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var now = scheduler.now(); - var interval = now - last; - last = now; - subscriber.next(new TimeInterval(value, interval)); - })); - }); -} -var TimeInterval = (function () { - function TimeInterval(value, interval) { - this.value = value; - this.interval = interval; - } - return TimeInterval; -}()); -export { TimeInterval }; -//# sourceMappingURL=timeInterval.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeInterval.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeInterval.js.map deleted file mode 100644 index 40f917950..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeInterval.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeInterval.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeInterval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAyChE,MAAM,UAAU,YAAY,CAAI,SAAyC;IAAzC,0BAAA,EAAA,0BAAyC;IACvE,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,IAAI,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;QAC3B,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,IAAM,GAAG,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;YAC5B,IAAM,QAAQ,GAAG,GAAG,GAAG,IAAI,CAAC;YAC5B,IAAI,GAAG,GAAG,CAAC;YACX,UAAU,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC;QACrD,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAKD;IAIE,sBAAmB,KAAQ,EAAS,QAAgB;QAAjC,UAAK,GAAL,KAAK,CAAG;QAAS,aAAQ,GAAR,QAAQ,CAAQ;IAAG,CAAC;IAC1D,mBAAC;AAAD,CAAC,AALD,IAKC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeout.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeout.js deleted file mode 100755 index e508e02d1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeout.js +++ /dev/null @@ -1,59 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { isValidDate } from '../util/isDate'; -import { operate } from '../util/lift'; -import { innerFrom } from '../observable/innerFrom'; -import { createErrorClass } from '../util/createErrorClass'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { executeSchedule } from '../util/executeSchedule'; -export var TimeoutError = createErrorClass(function (_super) { - return function TimeoutErrorImpl(info) { - if (info === void 0) { info = null; } - _super(this); - this.message = 'Timeout has occurred'; - this.name = 'TimeoutError'; - this.info = info; - }; -}); -export function timeout(config, schedulerArg) { - var _a = (isValidDate(config) ? { first: config } : typeof config === 'number' ? { each: config } : config), first = _a.first, each = _a.each, _b = _a.with, _with = _b === void 0 ? timeoutErrorFactory : _b, _c = _a.scheduler, scheduler = _c === void 0 ? schedulerArg !== null && schedulerArg !== void 0 ? schedulerArg : asyncScheduler : _c, _d = _a.meta, meta = _d === void 0 ? null : _d; - if (first == null && each == null) { - throw new TypeError('No timeout provided.'); - } - return operate(function (source, subscriber) { - var originalSourceSubscription; - var timerSubscription; - var lastValue = null; - var seen = 0; - var startTimer = function (delay) { - timerSubscription = executeSchedule(subscriber, scheduler, function () { - try { - originalSourceSubscription.unsubscribe(); - innerFrom(_with({ - meta: meta, - lastValue: lastValue, - seen: seen, - })).subscribe(subscriber); - } - catch (err) { - subscriber.error(err); - } - }, delay); - }; - originalSourceSubscription = source.subscribe(createOperatorSubscriber(subscriber, function (value) { - timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); - seen++; - subscriber.next((lastValue = value)); - each > 0 && startTimer(each); - }, undefined, undefined, function () { - if (!(timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.closed)) { - timerSubscription === null || timerSubscription === void 0 ? void 0 : timerSubscription.unsubscribe(); - } - lastValue = null; - })); - !seen && startTimer(first != null ? (typeof first === 'number' ? first : +first - scheduler.now()) : each); - }); -} -function timeoutErrorFactory(info) { - throw new TimeoutError(info); -} -//# sourceMappingURL=timeout.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeout.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeout.js.map deleted file mode 100644 index 807cd3222..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeout.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeout.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AA8E1D,MAAM,CAAC,IAAM,YAAY,GAAqB,gBAAgB,CAC5D,UAAC,MAAM;IACL,OAAA,SAAS,gBAAgB,CAAY,IAAoC;QAApC,qBAAA,EAAA,WAAoC;QACvE,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,sBAAsB,CAAC;QACtC,IAAI,CAAC,IAAI,GAAG,cAAc,CAAC;QAC3B,IAAI,CAAC,IAAI,GAAG,IAAI,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QACJ,CAAC,CAAC;QAEF,0BAA0B,GAAG,MAAM,CAAC,SAAS,CAC3C,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAQ;YAEP,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,EAAE,CAAC;YACjC,IAAI,EAAE,CAAC;YAEP,UAAU,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC;YAErC,IAAK,GAAG,CAAC,IAAI,UAAU,CAAC,IAAK,CAAC,CAAC;QACjC,CAAC,EACD,SAAS,EACT,SAAS,EACT;YACE,IAAI,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,MAAM,CAAA,EAAE;gBAC9B,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,EAAE,CAAC;aAClC;YAGD,SAAS,GAAG,IAAI,CAAC;QACnB,CAAC,CACF,CACF,CAAC;QAQF,CAAC,IAAI,IAAI,UAAU,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,SAAU,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,IAAK,CAAC,CAAC;IAC/G,CAAC,CAAC,CAAC;AACL,CAAC;AAOD,SAAS,mBAAmB,CAAC,IAAsB;IACjD,MAAM,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;AAC/B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeoutWith.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeoutWith.js deleted file mode 100755 index de633b6fe..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeoutWith.js +++ /dev/null @@ -1,31 +0,0 @@ -import { async } from '../scheduler/async'; -import { isValidDate } from '../util/isDate'; -import { timeout } from './timeout'; -export function timeoutWith(due, withObservable, scheduler) { - var first; - var each; - var _with; - scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async; - if (isValidDate(due)) { - first = due; - } - else if (typeof due === 'number') { - each = due; - } - if (withObservable) { - _with = function () { return withObservable; }; - } - else { - throw new TypeError('No observable provided to switch to'); - } - if (first == null && each == null) { - throw new TypeError('No timeout provided.'); - } - return timeout({ - first: first, - each: each, - scheduler: scheduler, - with: _with, - }); -} -//# sourceMappingURL=timeoutWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeoutWith.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeoutWith.js.map deleted file mode 100644 index fff73ca0c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timeoutWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeoutWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/timeoutWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AA+EpC,MAAM,UAAU,WAAW,CACzB,GAAkB,EAClB,cAAkC,EAClC,SAAyB;IAEzB,IAAI,KAAgC,CAAC;IACrC,IAAI,IAAwB,CAAC;IAC7B,IAAI,KAA+B,CAAC;IACpC,SAAS,GAAG,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,KAAK,CAAC;IAE/B,IAAI,WAAW,CAAC,GAAG,CAAC,EAAE;QACpB,KAAK,GAAG,GAAG,CAAC;KACb;SAAM,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAClC,IAAI,GAAG,GAAG,CAAC;KACZ;IAED,IAAI,cAAc,EAAE;QAClB,KAAK,GAAG,cAAM,OAAA,cAAc,EAAd,CAAc,CAAC;KAC9B;SAAM;QACL,MAAM,IAAI,SAAS,CAAC,qCAAqC,CAAC,CAAC;KAC5D;IAED,IAAI,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE;QAEjC,MAAM,IAAI,SAAS,CAAC,sBAAsB,CAAC,CAAC;KAC7C;IAED,OAAO,OAAO,CAAwB;QACpC,KAAK,OAAA;QACL,IAAI,MAAA;QACJ,SAAS,WAAA;QACT,IAAI,EAAE,KAAK;KACZ,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timestamp.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timestamp.js deleted file mode 100755 index 413265e3a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timestamp.js +++ /dev/null @@ -1,7 +0,0 @@ -import { dateTimestampProvider } from '../scheduler/dateTimestampProvider'; -import { map } from './map'; -export function timestamp(timestampProvider) { - if (timestampProvider === void 0) { timestampProvider = dateTimestampProvider; } - return map(function (value) { return ({ value: value, timestamp: timestampProvider.now() }); }); -} -//# sourceMappingURL=timestamp.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timestamp.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timestamp.js.map deleted file mode 100644 index 7dde5f071..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/timestamp.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timestamp.js","sourceRoot":"","sources":["../../../../src/internal/operators/timestamp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAkC5B,MAAM,UAAU,SAAS,CAAI,iBAA4D;IAA5D,kCAAA,EAAA,yCAA4D;IACvF,OAAO,GAAG,CAAC,UAAC,KAAQ,IAAK,OAAA,CAAC,EAAE,KAAK,OAAA,EAAE,SAAS,EAAE,iBAAiB,CAAC,GAAG,EAAE,EAAE,CAAC,EAA/C,CAA+C,CAAC,CAAC;AAC5E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/toArray.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/toArray.js deleted file mode 100755 index 5f7855df7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/toArray.js +++ /dev/null @@ -1,9 +0,0 @@ -import { reduce } from './reduce'; -import { operate } from '../util/lift'; -var arrReducer = function (arr, value) { return (arr.push(value), arr); }; -export function toArray() { - return operate(function (source, subscriber) { - reduce(arrReducer, [])(source).subscribe(subscriber); - }); -} -//# sourceMappingURL=toArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/toArray.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/toArray.js.map deleted file mode 100644 index a1e222443..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/toArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toArray.js","sourceRoot":"","sources":["../../../../src/internal/operators/toArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,IAAM,UAAU,GAAG,UAAC,GAAU,EAAE,KAAU,IAAK,OAAA,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,EAAtB,CAAsB,CAAC;AAgCtE,MAAM,UAAU,OAAO;IAIrB,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,MAAM,CAAC,UAAU,EAAE,EAAS,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAC9D,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/window.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/window.js deleted file mode 100755 index 657c94465..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/window.js +++ /dev/null @@ -1,28 +0,0 @@ -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { innerFrom } from '../observable/innerFrom'; -export function window(windowBoundaries) { - return operate(function (source, subscriber) { - var windowSubject = new Subject(); - subscriber.next(windowSubject.asObservable()); - var errorHandler = function (err) { - windowSubject.error(err); - subscriber.error(err); - }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.next(value); }, function () { - windowSubject.complete(); - subscriber.complete(); - }, errorHandler)); - innerFrom(windowBoundaries).subscribe(createOperatorSubscriber(subscriber, function () { - windowSubject.complete(); - subscriber.next((windowSubject = new Subject())); - }, noop, errorHandler)); - return function () { - windowSubject === null || windowSubject === void 0 ? void 0 : windowSubject.unsubscribe(); - windowSubject = null; - }; - }); -} -//# sourceMappingURL=window.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/window.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/window.js.map deleted file mode 100644 index 52e6e3411..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/window.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"window.js","sourceRoot":"","sources":["../../../../src/internal/operators/window.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AA8CpD,MAAM,UAAU,MAAM,CAAI,gBAAsC;IAC9D,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAI,aAAa,GAAe,IAAI,OAAO,EAAK,CAAC;QAEjD,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,CAAC,CAAC;QAE9C,IAAM,YAAY,GAAG,UAAC,GAAQ;YAC5B,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACzB,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC,CAAC;QAGF,MAAM,CAAC,SAAS,CACd,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK,IAAK,OAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAI,CAAC,KAAK,CAAC,EAA1B,CAA0B,EACrC;YACE,aAAa,CAAC,QAAQ,EAAE,CAAC;YACzB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,YAAY,CACb,CACF,CAAC;QAGF,SAAS,CAAC,gBAAgB,CAAC,CAAC,SAAS,CACnC,wBAAwB,CACtB,UAAU,EACV;YACE,aAAa,CAAC,QAAQ,EAAE,CAAC;YACzB,UAAU,CAAC,IAAI,CAAC,CAAC,aAAa,GAAG,IAAI,OAAO,EAAE,CAAC,CAAC,CAAC;QACnD,CAAC,EACD,IAAI,EACJ,YAAY,CACb,CACF,CAAC;QAEF,OAAO;YAIL,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,WAAW,EAAE,CAAC;YAC7B,aAAa,GAAG,IAAK,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowCount.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowCount.js deleted file mode 100755 index e10cd4a52..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowCount.js +++ /dev/null @@ -1,53 +0,0 @@ -import { __values } from "tslib"; -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -export function windowCount(windowSize, startWindowEvery) { - if (startWindowEvery === void 0) { startWindowEvery = 0; } - var startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize; - return operate(function (source, subscriber) { - var windows = [new Subject()]; - var starts = []; - var count = 0; - subscriber.next(windows[0].asObservable()); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - try { - for (var windows_1 = __values(windows), windows_1_1 = windows_1.next(); !windows_1_1.done; windows_1_1 = windows_1.next()) { - var window_1 = windows_1_1.value; - window_1.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (windows_1_1 && !windows_1_1.done && (_a = windows_1.return)) _a.call(windows_1); - } - finally { if (e_1) throw e_1.error; } - } - var c = count - windowSize + 1; - if (c >= 0 && c % startEvery === 0) { - windows.shift().complete(); - } - if (++count % startEvery === 0) { - var window_2 = new Subject(); - windows.push(window_2); - subscriber.next(window_2.asObservable()); - } - }, function () { - while (windows.length > 0) { - windows.shift().complete(); - } - subscriber.complete(); - }, function (err) { - while (windows.length > 0) { - windows.shift().error(err); - } - subscriber.error(err); - }, function () { - starts = null; - windows = null; - })); - }); -} -//# sourceMappingURL=windowCount.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowCount.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowCount.js.map deleted file mode 100644 index 13b6baa9f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowCount.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowCount.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowCount.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAg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AAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,UAAC,GAAG;YACF,OAAO,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAC7B;YACD,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC,EACD;YACE,MAAM,GAAG,IAAK,CAAC;YACf,OAAO,GAAG,IAAK,CAAC;QAClB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowTime.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowTime.js deleted file mode 100755 index 6c163424f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowTime.js +++ /dev/null @@ -1,70 +0,0 @@ -import { Subject } from '../Subject'; -import { asyncScheduler } from '../scheduler/async'; -import { Subscription } from '../Subscription'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { arrRemove } from '../util/arrRemove'; -import { popScheduler } from '../util/args'; -import { executeSchedule } from '../util/executeSchedule'; -export function windowTime(windowTimeSpan) { - var _a, _b; - var otherArgs = []; - for (var _i = 1; _i < arguments.length; _i++) { - otherArgs[_i - 1] = arguments[_i]; - } - var scheduler = (_a = popScheduler(otherArgs)) !== null && _a !== void 0 ? _a : asyncScheduler; - var windowCreationInterval = (_b = otherArgs[0]) !== null && _b !== void 0 ? _b : null; - var maxWindowSize = otherArgs[1] || Infinity; - return operate(function (source, subscriber) { - var windowRecords = []; - var restartOnClose = false; - var closeWindow = function (record) { - var window = record.window, subs = record.subs; - window.complete(); - subs.unsubscribe(); - arrRemove(windowRecords, record); - restartOnClose && startWindow(); - }; - var startWindow = function () { - if (windowRecords) { - var subs = new Subscription(); - subscriber.add(subs); - var window_1 = new Subject(); - var record_1 = { - window: window_1, - subs: subs, - seen: 0, - }; - windowRecords.push(record_1); - subscriber.next(window_1.asObservable()); - executeSchedule(subs, scheduler, function () { return closeWindow(record_1); }, windowTimeSpan); - } - }; - if (windowCreationInterval !== null && windowCreationInterval >= 0) { - executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true); - } - else { - restartOnClose = true; - } - startWindow(); - var loop = function (cb) { return windowRecords.slice().forEach(cb); }; - var terminate = function (cb) { - loop(function (_a) { - var window = _a.window; - return cb(window); - }); - cb(subscriber); - subscriber.unsubscribe(); - }; - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - loop(function (record) { - record.window.next(value); - maxWindowSize <= ++record.seen && closeWindow(record); - }); - }, function () { return terminate(function (consumer) { return consumer.complete(); }); }, function (err) { return terminate(function (consumer) { return consumer.error(err); }); })); - return function () { - windowRecords = null; - }; - }); -} -//# sourceMappingURL=windowTime.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowTime.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowTime.js.map deleted file mode 100644 index 484ab83fe..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowTime.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowTime.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowTime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;A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AK,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowToggle.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowToggle.js deleted file mode 100755 index 43ad33567..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowToggle.js +++ /dev/null @@ -1,66 +0,0 @@ -import { __values } from "tslib"; -import { Subject } from '../Subject'; -import { Subscription } from '../Subscription'; -import { operate } from '../util/lift'; -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { arrRemove } from '../util/arrRemove'; -export function windowToggle(openings, closingSelector) { - return operate(function (source, subscriber) { - var windows = []; - var handleError = function (err) { - while (0 < windows.length) { - windows.shift().error(err); - } - subscriber.error(err); - }; - innerFrom(openings).subscribe(createOperatorSubscriber(subscriber, function (openValue) { - var window = new Subject(); - windows.push(window); - var closingSubscription = new Subscription(); - var closeWindow = function () { - arrRemove(windows, window); - window.complete(); - closingSubscription.unsubscribe(); - }; - var closingNotifier; - try { - closingNotifier = innerFrom(closingSelector(openValue)); - } - catch (err) { - handleError(err); - return; - } - subscriber.next(window.asObservable()); - closingSubscription.add(closingNotifier.subscribe(createOperatorSubscriber(subscriber, closeWindow, noop, handleError))); - }, noop)); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - var e_1, _a; - var windowsCopy = windows.slice(); - try { - for (var windowsCopy_1 = __values(windowsCopy), windowsCopy_1_1 = windowsCopy_1.next(); !windowsCopy_1_1.done; windowsCopy_1_1 = windowsCopy_1.next()) { - var window_1 = windowsCopy_1_1.value; - window_1.next(value); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (windowsCopy_1_1 && !windowsCopy_1_1.done && (_a = windowsCopy_1.return)) _a.call(windowsCopy_1); - } - finally { if (e_1) throw e_1.error; } - } - }, function () { - while (0 < windows.length) { - windows.shift().complete(); - } - subscriber.complete(); - }, handleError, function () { - while (0 < windows.length) { - windows.shift().unsubscribe(); - } - })); - }); -} -//# sourceMappingURL=windowToggle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowToggle.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowToggle.js.map deleted file mode 100644 index 309eb7209..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowToggle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowToggle.js","sourceRoot":"","sources":["../../../../src/internal/operators/windowToggle.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAiD9C,MAAM,UAAU,YAAY,CAC1B,QAA4B,EAC5B,eAAuD;IAEvD,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAM,OAAO,GAAiB,EAAE,CAAC;QAEjC,IAAM,WAAW,GAAG,UAAC,GAAQ;YAC3B,OAAO,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAC7B;YACD,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxB,CAAC,CAAC;QAEF,SAAS,CAAC,QAAQ,CAAC,CAAC,SAAS,CAC3B,wBAAwB,CACtB,UAAU,EACV,UAAC,SAAS;YACR,IAAM,MAAM,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AC,MAAM,EAAE;gBACzB,OAAO,CAAC,KAAK,EAAG,CAAC,WAAW,EAAE,CAAC;aAChC;QACH,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowWhen.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowWhen.js deleted file mode 100755 index a078bb2c7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowWhen.js +++ /dev/null @@ -1,38 +0,0 @@ -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -export function windowWhen(closingSelector) { - return operate(function (source, subscriber) { - var window; - var closingSubscriber; - var handleError = function (err) { - window.error(err); - subscriber.error(err); - }; - var openWindow = function () { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - window === null || window === void 0 ? void 0 : window.complete(); - window = new Subject(); - subscriber.next(window.asObservable()); - var closingNotifier; - try { - closingNotifier = innerFrom(closingSelector()); - } - catch (err) { - handleError(err); - return; - } - closingNotifier.subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openWindow, openWindow, handleError))); - }; - openWindow(); - source.subscribe(createOperatorSubscriber(subscriber, function (value) { return window.next(value); }, function () { - window.complete(); - subscriber.complete(); - }, handleError, function () { - closingSubscriber === null || closingSubscriber === void 0 ? void 0 : closingSubscriber.unsubscribe(); - window = null; - })); - }); -} -//# sourceMappingURL=windowWhen.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowWhen.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowWhen.js.map deleted file mode 100644 index badaa64e5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/windowWhen.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowWhen.js","sourceRoot":"","s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,OAAA,MAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAnB,CAAmB,EAC9B;YAEE,MAAO,CAAC,QAAQ,EAAE,CAAC;YACnB,UAAU,CAAC,QAAQ,EAAE,CAAC;QACxB,CAAC,EACD,WAAW,EACX;YAGE,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,WAAW,EAAE,CAAC;YACjC,MAAM,GAAG,IAAK,CAAC;QACjB,CAAC,CACF,CACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js deleted file mode 100755 index 62408998c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js +++ /dev/null @@ -1,39 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { identity } from '../util/identity'; -import { noop } from '../util/noop'; -import { popResultSelector } from '../util/args'; -export function withLatestFrom() { - var inputs = []; - for (var _i = 0; _i < arguments.length; _i++) { - inputs[_i] = arguments[_i]; - } - var project = popResultSelector(inputs); - return operate(function (source, subscriber) { - var len = inputs.length; - var otherValues = new Array(len); - var hasValue = inputs.map(function () { return false; }); - var ready = false; - var _loop_1 = function (i) { - innerFrom(inputs[i]).subscribe(createOperatorSubscriber(subscriber, function (value) { - otherValues[i] = value; - if (!ready && !hasValue[i]) { - hasValue[i] = true; - (ready = hasValue.every(identity)) && (hasValue = null); - } - }, noop)); - }; - for (var i = 0; i < len; i++) { - _loop_1(i); - } - source.subscribe(createOperatorSubscriber(subscriber, function (value) { - if (ready) { - var values = __spreadArray([value], __read(otherValues)); - subscriber.next(project ? project.apply(void 0, __spreadArray([], __read(values))) : values); - } - })); - }); -} -//# sourceMappingURL=withLatestFrom.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js.map deleted file mode 100644 index 3abdcecc0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"withLatestFrom.js","sourceRoot":"","sources":["../../../../src/internal/operators/withLatestFrom.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAmDjD,MAAM,UAAU,cAAc;IAAO,gBAAgB;SAAhB,UAAgB,EAAhB,qBAAgB,EAAhB,IAAgB;QAAhB,2BAAgB;;IACnD,IAAM,OAAO,GAAG,iBAAiB,CAAC,MAAM,CAAwC,CAAC;IAEjF,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,IAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC;QAC1B,IAAM,WAAW,GAAG,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC;QAInC,IAAI,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,cAAM,OAAA,KAAK,EAAL,CAAK,CAAC,CAAC;QAGvC,IAAI,KAAK,GAAG,KAAK,CAAC;gCAMT,CAAC;YACR,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAC5B,wBAAwB,CACtB,UAAU,EACV,UAAC,KAAK;gBACJ,WAAW,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;gBACvB,IAAI,CAAC,KAAK,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;oBAE1B,QAAQ,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;oBAKnB,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAK,CAAC,CAAC;iBAC1D;YACH,CAAC,EAGD,IAAI,CACL,CACF,CAAC;;QApBJ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE;oBAAnB,CAAC;SAqBT;QAGD,MAAM,CAAC,SAAS,CACd,wBAAwB,CAAC,UAAU,EAAE,UAAC,KAAK;YACzC,IAAI,KAAK,EAAE;gBAET,IAAM,MAAM,kBAAI,KAAK,UAAK,WAAW,EAAC,CAAC;gBACvC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,wCAAI,MAAM,IAAE,CAAC,CAAC,MAAM,CAAC,CAAC;aACxD;QACH,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zip.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zip.js deleted file mode 100755 index 044095f4f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zip.js +++ /dev/null @@ -1,13 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { zip as zipStatic } from '../observable/zip'; -import { operate } from '../util/lift'; -export function zip() { - var sources = []; - for (var _i = 0; _i < arguments.length; _i++) { - sources[_i] = arguments[_i]; - } - return operate(function (source, subscriber) { - zipStatic.apply(void 0, __spreadArray([source], __read(sources))).subscribe(subscriber); - }); -} -//# sourceMappingURL=zip.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zip.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zip.js.map deleted file mode 100644 index f9dced7fb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zip.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zip.js","sourceRoot":"","sources":["../../../../src/internal/operators/zip.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAmBvC,MAAM,UAAU,GAAG;IAAO,iBAAwE;SAAxE,UAAwE,EAAxE,qBAAwE,EAAxE,IAAwE;QAAxE,4BAAwE;;IAChG,OAAO,OAAO,CAAC,UAAC,MAAM,EAAE,UAAU;QAChC,SAAS,8BAAC,MAA8B,UAAM,OAAuC,IAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAC/G,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipAll.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipAll.js deleted file mode 100755 index c3faf7e2b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipAll.js +++ /dev/null @@ -1,6 +0,0 @@ -import { zip } from '../observable/zip'; -import { joinAllInternals } from './joinAllInternals'; -export function zipAll(project) { - return joinAllInternals(zip, project); -} -//# sourceMappingURL=zipAll.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipAll.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipAll.js.map deleted file mode 100644 index 92c858ebe..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipAll.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zipAll.js","sourceRoot":"","sources":["../../../../src/internal/operators/zipAll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAetD,MAAM,UAAU,MAAM,CAAO,OAA+B;IAC1D,OAAO,gBAAgB,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACxC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipWith.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipWith.js deleted file mode 100755 index 07c60d507..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipWith.js +++ /dev/null @@ -1,10 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { zip } from './zip'; -export function zipWith() { - var otherInputs = []; - for (var _i = 0; _i < arguments.length; _i++) { - otherInputs[_i] = arguments[_i]; - } - return zip.apply(void 0, __spreadArray([], __read(otherInputs))); -} -//# sourceMappingURL=zipWith.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipWith.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipWith.js.map deleted file mode 100644 index 9633894a2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/operators/zipWith.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zipWith.js","sourceRoot":"","sources":["../../../../src/internal/operators/zipWith.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAyB5B,MAAM,UAAU,OAAO;IAAkC,qBAA4C;SAA5C,UAA4C,EAA5C,qBAA4C,EAA5C,IAA4C;QAA5C,gCAA4C;;IACnG,OAAO,GAAG,wCAAI,WAAW,IAAE;AAC7B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js deleted file mode 100755 index a40911667..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js +++ /dev/null @@ -1,18 +0,0 @@ -import { Observable } from '../Observable'; -export function scheduleArray(input, scheduler) { - return new Observable(function (subscriber) { - var i = 0; - return scheduler.schedule(function () { - if (i === input.length) { - subscriber.complete(); - } - else { - subscriber.next(input[i++]); - if (!subscriber.closed) { - this.schedule(); - } - } - }); - }); -} -//# sourceMappingURL=scheduleArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js.map deleted file mode 100644 index e1e42e785..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleArray.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,MAAM,UAAU,aAAa,CAAI,KAAmB,EAAE,SAAwB;IAC5E,OAAO,IAAI,UAAU,CAAI,UAAC,UAAU;QAElC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEV,OAAO,SAAS,CAAC,QAAQ,CAAC;YACxB,IAAI,CAAC,KAAK,KAAK,CAAC,MAAM,EAAE;gBAGtB,UAAU,CAAC,QAAQ,EAAE,CAAC;aACvB;iBAAM;gBAGL,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAI5B,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;oBACtB,IAAI,CAAC,QAAQ,EAAE,CAAC;iBACjB;aACF;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js deleted file mode 100755 index c5d5e2112..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js +++ /dev/null @@ -1,23 +0,0 @@ -import { Observable } from '../Observable'; -import { executeSchedule } from '../util/executeSchedule'; -export function scheduleAsyncIterable(input, scheduler) { - if (!input) { - throw new Error('Iterable cannot be null'); - } - return new Observable(function (subscriber) { - executeSchedule(subscriber, scheduler, function () { - var iterator = input[Symbol.asyncIterator](); - executeSchedule(subscriber, scheduler, function () { - iterator.next().then(function (result) { - if (result.done) { - subscriber.complete(); - } - else { - subscriber.next(result.value); - } - }); - }, 0, true); - }); - }); -} -//# sourceMappingURL=scheduleAsyncIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js.map deleted file mode 100644 index 0b0413e3a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleAsyncIterable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleAsyncIterable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAE1D,MAAM,UAAU,qBAAqB,CAAI,KAAuB,EAAE,SAAwB;IACxF,IAAI,CAAC,KAAK,EAAE;QACV,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC5C;IACD,OAAO,IAAI,UAAU,CAAI,UAAC,UAAU;QAClC,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE;YACrC,IAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;YAC/C,eAAe,CACb,UAAU,EACV,SAAS,EACT;gBACE,QAAQ,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,UAAC,MAAM;oBAC1B,IAAI,MAAM,CAAC,IAAI,EAAE;wBAGf,UAAU,CAAC,QAAQ,EAAE,CAAC;qBACvB;yBAAM;wBACL,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;qBAC/B;gBACH,CAAC,CAAC,CAAC;YACL,CAAC,EACD,CAAC,EACD,IAAI,CACL,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js deleted file mode 100755 index 20b934547..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js +++ /dev/null @@ -1,32 +0,0 @@ -import { Observable } from '../Observable'; -import { iterator as Symbol_iterator } from '../symbol/iterator'; -import { isFunction } from '../util/isFunction'; -import { executeSchedule } from '../util/executeSchedule'; -export function scheduleIterable(input, scheduler) { - return new Observable(function (subscriber) { - var iterator; - executeSchedule(subscriber, scheduler, function () { - iterator = input[Symbol_iterator](); - executeSchedule(subscriber, scheduler, function () { - var _a; - var value; - var done; - try { - (_a = iterator.next(), value = _a.value, done = _a.done); - } - catch (err) { - subscriber.error(err); - return; - } - if (done) { - subscriber.complete(); - } - else { - subscriber.next(value); - } - }, 0, true); - }); - return function () { return isFunction(iterator === null || iterator === void 0 ? void 0 : iterator.return) && iterator.return(); }; - }); -} -//# sourceMappingURL=scheduleIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js.map deleted file mode 100644 index e970e5b44..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleIterable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAO1D,MAAM,UAAU,gBAAgB,CAAI,KAAkB,EAAE,SAAwB;IAC9E,OAAO,IAAI,UAAU,CAAI,UAAC,UAAU;QAClC,IAAI,QAAwB,CAAC;QAK7B,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE;YAErC,QAAQ,GAAI,KAAa,CAAC,eAAe,CAAC,EAAE,CAAC;YAE7C,eAAe,CACb,UAAU,EACV,SAAS,EACT;;gBACE,IAAI,KAAQ,CAAC;gBACb,IAAI,IAAyB,CAAC;gBAC9B,IAAI;oBAEF,CAAC,KAAkB,QAAQ,CAAC,IAAI,EAAE,EAA/B,KAAK,WAAA,EAAE,IAAI,UAAA,CAAqB,CAAC;iBACrC;gBAAC,OAAO,GAAG,EAAE;oBAEZ,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACtB,OAAO;iBACR;gBAED,IAAI,IAAI,EAAE;oBAKR,UAAU,CAAC,QAAQ,EAAE,CAAC;iBACvB;qBAAM;oBAEL,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;iBACxB;YACH,CAAC,EACD,CAAC,EACD,IAAI,CACL,CAAC;QACJ,CAAC,CAAC,CAAC;QAMH,OAAO,cAAM,OAAA,UAAU,CAAC,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,CAAC,IAAI,QAAQ,CAAC,MAAM,EAAE,EAAjD,CAAiD,CAAC;IACjE,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js deleted file mode 100755 index 979b0091b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js +++ /dev/null @@ -1,7 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { observeOn } from '../operators/observeOn'; -import { subscribeOn } from '../operators/subscribeOn'; -export function scheduleObservable(input, scheduler) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); -} -//# sourceMappingURL=scheduleObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js.map deleted file mode 100644 index 20100503c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleObservable.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,MAAM,UAAU,kBAAkB,CAAI,KAA2B,EAAE,SAAwB;IACzF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;AAC7E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js deleted file mode 100755 index 287c986a0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js +++ /dev/null @@ -1,7 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { observeOn } from '../operators/observeOn'; -import { subscribeOn } from '../operators/subscribeOn'; -export function schedulePromise(input, scheduler) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); -} -//# sourceMappingURL=schedulePromise.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js.map deleted file mode 100644 index 8da74adb8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"schedulePromise.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/schedulePromise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,MAAM,UAAU,eAAe,CAAI,KAAqB,EAAE,SAAwB;IAChF,OAAO,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;AAC7E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js deleted file mode 100755 index 4bfbfc298..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js +++ /dev/null @@ -1,6 +0,0 @@ -import { scheduleAsyncIterable } from './scheduleAsyncIterable'; -import { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike'; -export function scheduleReadableStreamLike(input, scheduler) { - return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler); -} -//# sourceMappingURL=scheduleReadableStreamLike.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js.map deleted file mode 100644 index 6026c9028..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleReadableStreamLike.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleReadableStreamLike.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,kCAAkC,EAAE,MAAM,8BAA8B,CAAC;AAElF,MAAM,UAAU,0BAA0B,CAAI,KAA4B,EAAE,SAAwB;IAClG,OAAO,qBAAqB,CAAC,kCAAkC,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,CAAC;AACrF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js deleted file mode 100755 index 3ed108513..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js +++ /dev/null @@ -1,37 +0,0 @@ -import { scheduleObservable } from './scheduleObservable'; -import { schedulePromise } from './schedulePromise'; -import { scheduleArray } from './scheduleArray'; -import { scheduleIterable } from './scheduleIterable'; -import { scheduleAsyncIterable } from './scheduleAsyncIterable'; -import { isInteropObservable } from '../util/isInteropObservable'; -import { isPromise } from '../util/isPromise'; -import { isArrayLike } from '../util/isArrayLike'; -import { isIterable } from '../util/isIterable'; -import { isAsyncIterable } from '../util/isAsyncIterable'; -import { createInvalidObservableTypeError } from '../util/throwUnobservableError'; -import { isReadableStreamLike } from '../util/isReadableStreamLike'; -import { scheduleReadableStreamLike } from './scheduleReadableStreamLike'; -export function scheduled(input, scheduler) { - if (input != null) { - if (isInteropObservable(input)) { - return scheduleObservable(input, scheduler); - } - if (isArrayLike(input)) { - return scheduleArray(input, scheduler); - } - if (isPromise(input)) { - return schedulePromise(input, scheduler); - } - if (isAsyncIterable(input)) { - return scheduleAsyncIterable(input, scheduler); - } - if (isIterable(input)) { - return scheduleIterable(input, scheduler); - } - if (isReadableStreamLike(input)) { - return scheduleReadableStreamLike(input, scheduler); - } - } - throw createInvalidObservableTypeError(input); -} -//# sourceMappingURL=scheduled.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js.map deleted file mode 100644 index 635593196..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduled.js","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,gCAAgC,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAa1E,MAAM,UAAU,SAAS,CAAI,KAAyB,EAAE,SAAwB;IAC9E,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAAE;YAC9B,OAAO,kBAAkB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SAC7C;QACD,IAAI,WAAW,CAAC,KAAK,CAAC,EAAE;YACtB,OAAO,aAAa,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SACxC;QACD,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE;YACpB,OAAO,eAAe,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SAC1C;QACD,IAAI,eAAe,CAAC,KAAK,CAAC,EAAE;YAC1B,OAAO,qBAAqB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SAChD;QACD,IAAI,UAAU,CAAC,KAAK,CAAC,EAAE;YACrB,OAAO,gBAAgB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SAC3C;QACD,IAAI,oBAAoB,CAAC,KAAK,CAAC,EAAE;YAC/B,OAAO,0BAA0B,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;SACrD;KACF;IACD,MAAM,gCAAgC,CAAC,KAAK,CAAC,CAAC;AAChD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js deleted file mode 100755 index 5a8874b4f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js +++ /dev/null @@ -1,15 +0,0 @@ -import { __extends } from "tslib"; -import { Subscription } from '../Subscription'; -var Action = (function (_super) { - __extends(Action, _super); - function Action(scheduler, work) { - return _super.call(this) || this; - } - Action.prototype.schedule = function (state, delay) { - if (delay === void 0) { delay = 0; } - return this; - }; - return Action; -}(Subscription)); -export { Action }; -//# sourceMappingURL=Action.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js.map deleted file mode 100644 index a6aca6941..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Action.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/Action.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAiB/C;IAA+B,0BAAY;IACzC,gBAAY,SAAoB,EAAE,IAAmD;eACnF,iBAAO;IACT,CAAC;IAWM,yBAAQ,GAAf,UAAgB,KAAS,EAAE,KAAiB;QAAjB,sBAAA,EAAA,SAAiB;QAC1C,OAAO,IAAI,CAAC;IACd,CAAC;IACH,aAAC;AAAD,CAAC,AAjBD,CAA+B,YAAY,GAiB1C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameAction.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameAction.js deleted file mode 100755 index dd98ec256..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameAction.js +++ /dev/null @@ -1,36 +0,0 @@ -import { __extends } from "tslib"; -import { AsyncAction } from './AsyncAction'; -import { animationFrameProvider } from './animationFrameProvider'; -var AnimationFrameAction = (function (_super) { - __extends(AnimationFrameAction, _super); - function AnimationFrameAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - AnimationFrameAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if (delay !== null && delay > 0) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); - } - scheduler.actions.push(this); - return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(function () { return scheduler.flush(undefined); })); - }; - AnimationFrameAction.prototype.recycleAsyncId = function (scheduler, id, delay) { - var _a; - if (delay === void 0) { delay = 0; } - if (delay != null ? delay > 0 : this.delay > 0) { - return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay); - } - var actions = scheduler.actions; - if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) { - animationFrameProvider.cancelAnimationFrame(id); - scheduler._scheduled = undefined; - } - return undefined; - }; - return AnimationFrameAction; -}(AsyncAction)); -export { AnimationFrameAction }; -//# sourceMappingURL=AnimationFrameAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameAction.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameAction.js.map deleted file mode 100644 index 49a101ba5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameAction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AnimationFrameAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AnimationFrameAction.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE;IAA6C,wCAAc;IACzD,8BAAsB,SAAkC,EAAY,IAAmD;QAAvH,YACE,kBAAM,SAAS,EAAE,IAAI,CAAC,SACvB;QAFqB,eAAS,GAAT,SAAS,CAAyB;QAAY,UAAI,GAAJ,IAAI,CAA+C;;IAEvH,CAAC;IAES,6CAAc,GAAxB,UAAyB,SAAkC,EAAE,EAAgB,EAAE,KAAiB;QAAjB,sBAAA,EAAA,SAAiB;QAE9F,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,EAAE;YAC/B,OAAO,iBAAM,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAED,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAI7B,OAAO,SAAS,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,sBAAsB,CAAC,qBAAqB,CAAC,cAAM,OAAA,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,EAA1B,CAA0B,CAAC,CAAC,CAAC;IACzI,CAAC;IAES,6CAAc,GAAxB,UAAyB,SAAkC,EAAE,EAAgB,EAAE,KAAiB;;QAAjB,sBAAA,EAAA,SAAiB;QAI9F,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE;YAC9C,OAAO,iBAAM,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAIO,IAAA,OAAO,GAAK,SAAS,QAAd,CAAe;QAC9B,IAAI,EAAE,IAAI,IAAI,IAAI,CAAA,MAAA,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,0CAAE,EAAE,MAAK,EAAE,EAAE;YACxD,sBAAsB,CAAC,oBAAoB,CAAC,EAAY,CAAC,CAAC;YAC1D,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;SAClC;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IACH,2BAAC;AAAD,CAAC,AApCD,CAA6C,WAAW,GAoCvD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameScheduler.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameScheduler.js deleted file mode 100755 index 67308050a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameScheduler.js +++ /dev/null @@ -1,31 +0,0 @@ -import { __extends } from "tslib"; -import { AsyncScheduler } from './AsyncScheduler'; -var AnimationFrameScheduler = (function (_super) { - __extends(AnimationFrameScheduler, _super); - function AnimationFrameScheduler() { - return _super !== null && _super.apply(this, arguments) || this; - } - AnimationFrameScheduler.prototype.flush = function (action) { - this._active = true; - var flushId = this._scheduled; - this._scheduled = undefined; - var actions = this.actions; - var error; - action = action || actions.shift(); - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - this._active = false; - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - }; - return AnimationFrameScheduler; -}(AsyncScheduler)); -export { AnimationFrameScheduler }; -//# sourceMappingURL=AnimationFrameScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameScheduler.js.map deleted file mode 100644 index 8617a9628..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AnimationFrameScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AnimationFrameScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AnimationFrameScheduler.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;IAA6C,2CAAc;IAA3D;;IAkCA,CAAC;IAjCQ,uCAAK,GAAZ,UAAa,MAAyB;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAUpB,IAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAEpB,IAAA,OAAO,GAAK,IAAI,QAAT,CAAU;QACzB,IAAI,KAAU,CAAC;QACf,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAG,CAAC;QAEpC,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;QAE5E,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;gBACxE,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;IACH,8BAAC;AAAD,CAAC,AAlCD,CAA6C,cAAc,GAkC1D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js deleted file mode 100755 index ba5d2a1d4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js +++ /dev/null @@ -1,38 +0,0 @@ -import { __extends } from "tslib"; -import { AsyncAction } from './AsyncAction'; -import { immediateProvider } from './immediateProvider'; -var AsapAction = (function (_super) { - __extends(AsapAction, _super); - function AsapAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - AsapAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if (delay !== null && delay > 0) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); - } - scheduler.actions.push(this); - return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined))); - }; - AsapAction.prototype.recycleAsyncId = function (scheduler, id, delay) { - var _a; - if (delay === void 0) { delay = 0; } - if (delay != null ? delay > 0 : this.delay > 0) { - return _super.prototype.recycleAsyncId.call(this, scheduler, id, delay); - } - var actions = scheduler.actions; - if (id != null && ((_a = actions[actions.length - 1]) === null || _a === void 0 ? void 0 : _a.id) !== id) { - immediateProvider.clearImmediate(id); - if (scheduler._scheduled === id) { - scheduler._scheduled = undefined; - } - } - return undefined; - }; - return AsapAction; -}(AsyncAction)); -export { AsapAction }; -//# sourceMappingURL=AsapAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js.map deleted file mode 100644 index fe3c31477..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapAction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsapAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsapAction.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD;IAAmC,8BAAc;IAC/C,oBAAsB,SAAwB,EAAY,IAAmD;QAA7G,YACE,kBAAM,SAAS,EAAE,IAAI,CAAC,SACvB;QAFqB,eAAS,GAAT,SAAS,CAAe;QAAY,UAAI,GAAJ,IAAI,CAA+C;;IAE7G,CAAC;IAES,mCAAc,GAAxB,UAAyB,SAAwB,EAAE,EAAgB,EAAE,KAAiB;QAAjB,sBAAA,EAAA,SAAiB;QAEpF,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,GAAG,CAAC,EAAE;YAC/B,OAAO,iBAAM,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAED,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAI7B,OAAO,SAAS,CAAC,UAAU,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,iBAAiB,CAAC,YAAY,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACrI,CAAC;IAES,mCAAc,GAAxB,UAAyB,SAAwB,EAAE,EAAgB,EAAE,KAAiB;;QAAjB,sBAAA,EAAA,SAAiB;QAIpF,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE;YAC9C,OAAO,iBAAM,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAIO,IAAA,OAAO,GAAK,SAAS,QAAd,CAAe;QAC9B,IAAI,EAAE,IAAI,IAAI,IAAI,CAAA,MAAA,OAAO,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,0CAAE,EAAE,MAAK,EAAE,EAAE;YACxD,iBAAiB,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACrC,IAAI,SAAS,CAAC,UAAU,KAAK,EAAE,EAAE;gBAC/B,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;aAClC;SACF;QAED,OAAO,SAAS,CAAC;IACnB,CAAC;IACH,iBAAC;AAAD,CAAC,AAtCD,CAAmC,WAAW,GAsC7C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js deleted file mode 100755 index 180fbdef7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js +++ /dev/null @@ -1,31 +0,0 @@ -import { __extends } from "tslib"; -import { AsyncScheduler } from './AsyncScheduler'; -var AsapScheduler = (function (_super) { - __extends(AsapScheduler, _super); - function AsapScheduler() { - return _super !== null && _super.apply(this, arguments) || this; - } - AsapScheduler.prototype.flush = function (action) { - this._active = true; - var flushId = this._scheduled; - this._scheduled = undefined; - var actions = this.actions; - var error; - action = action || actions.shift(); - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - this._active = false; - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - }; - return AsapScheduler; -}(AsyncScheduler)); -export { AsapScheduler }; -//# sourceMappingURL=AsapScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js.map deleted file mode 100644 index a42f27cc2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsapScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsapScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsapScheduler.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;IAAmC,iCAAc;IAAjD;;IAkCA,CAAC;IAjCQ,6BAAK,GAAZ,UAAa,MAAyB;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAUpB,IAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC;QAChC,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAEpB,IAAA,OAAO,GAAK,IAAI,QAAT,CAAU;QACzB,IAAI,KAAU,CAAC;QACf,MAAM,GAAG,MAAM,IAAI,OAAO,CAAC,KAAK,EAAG,CAAC;QAEpC,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;QAE5E,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,EAAE,KAAK,OAAO,IAAI,OAAO,CAAC,KAAK,EAAE,EAAE;gBACxE,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AAlCD,CAAmC,cAAc,GAkChD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js deleted file mode 100755 index 1844b98d7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js +++ /dev/null @@ -1,90 +0,0 @@ -import { __extends } from "tslib"; -import { Action } from './Action'; -import { intervalProvider } from './intervalProvider'; -import { arrRemove } from '../util/arrRemove'; -var AsyncAction = (function (_super) { - __extends(AsyncAction, _super); - function AsyncAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - _this.pending = false; - return _this; - } - AsyncAction.prototype.schedule = function (state, delay) { - var _a; - if (delay === void 0) { delay = 0; } - if (this.closed) { - return this; - } - this.state = state; - var id = this.id; - var scheduler = this.scheduler; - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, delay); - } - this.pending = true; - this.delay = delay; - this.id = (_a = this.id) !== null && _a !== void 0 ? _a : this.requestAsyncId(scheduler, this.id, delay); - return this; - }; - AsyncAction.prototype.requestAsyncId = function (scheduler, _id, delay) { - if (delay === void 0) { delay = 0; } - return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay); - }; - AsyncAction.prototype.recycleAsyncId = function (_scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if (delay != null && this.delay === delay && this.pending === false) { - return id; - } - if (id != null) { - intervalProvider.clearInterval(id); - } - return undefined; - }; - AsyncAction.prototype.execute = function (state, delay) { - if (this.closed) { - return new Error('executing a cancelled action'); - } - this.pending = false; - var error = this._execute(state, delay); - if (error) { - return error; - } - else if (this.pending === false && this.id != null) { - this.id = this.recycleAsyncId(this.scheduler, this.id, null); - } - }; - AsyncAction.prototype._execute = function (state, _delay) { - var errored = false; - var errorValue; - try { - this.work(state); - } - catch (e) { - errored = true; - errorValue = e ? e : new Error('Scheduled action threw falsy error'); - } - if (errored) { - this.unsubscribe(); - return errorValue; - } - }; - AsyncAction.prototype.unsubscribe = function () { - if (!this.closed) { - var _a = this, id = _a.id, scheduler = _a.scheduler; - var actions = scheduler.actions; - this.work = this.state = this.scheduler = null; - this.pending = false; - arrRemove(actions, this); - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, null); - } - this.delay = null; - _super.prototype.unsubscribe.call(this); - } - }; - return AsyncAction; -}(Action)); -export { AsyncAction }; -//# sourceMappingURL=AsyncAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js.map deleted file mode 100644 index f50e5d29d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsyncAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsyncAction.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C;IAAoC,+BAAS;IAO3C,qBAAsB,SAAyB,EAAY,IAAmD;QAA9G,YACE,kBAAM,SAAS,EAAE,IAAI,CAAC,SACvB;QAFqB,eAAS,GAAT,SAAS,CAAgB;QAAY,UAAI,GAAJ,IAAI,CAA+C;QAFpG,aAAO,GAAY,KAAK,CAAC;;IAInC,CAAC;IAEM,8BAAQ,GAAf,UAAgB,KAAS,EAAE,KAAiB;;QAAjB,sBAAA,EAAA,SAAiB;QAC1C,IAAI,I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E,IAAI,CAAC,CAAC;YACzB,IAAI,EAAE,IAAI,IAAI,EAAE;gBACd,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;aACpD;YAED,IAAI,CAAC,KAAK,GAAG,IAAK,CAAC;YACnB,iBAAM,WAAW,WAAE,CAAC;SACrB;IACH,CAAC;IACH,kBAAC;AAAD,CAAC,AA9ID,CAAoC,MAAM,GA8IzC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js deleted file mode 100755 index 01b08ee87..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js +++ /dev/null @@ -1,36 +0,0 @@ -import { __extends } from "tslib"; -import { Scheduler } from '../Scheduler'; -var AsyncScheduler = (function (_super) { - __extends(AsyncScheduler, _super); - function AsyncScheduler(SchedulerAction, now) { - if (now === void 0) { now = Scheduler.now; } - var _this = _super.call(this, SchedulerAction, now) || this; - _this.actions = []; - _this._active = false; - return _this; - } - AsyncScheduler.prototype.flush = function (action) { - var actions = this.actions; - if (this._active) { - actions.push(action); - return; - } - var error; - this._active = true; - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions.shift())); - this._active = false; - if (error) { - while ((action = actions.shift())) { - action.unsubscribe(); - } - throw error; - } - }; - return AsyncScheduler; -}(Scheduler)); -export { AsyncScheduler }; -//# sourceMappingURL=AsyncScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js.map deleted file mode 100644 index 2f7cf2f2e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsyncScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsyncScheduler.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAKzC;IAAoC,kCAAS;IAkB3C,wBAAY,eAA8B,EAAE,GAAiC;QAAjC,oBAAA,EAAA,MAAoB,SAAS,CAAC,GAAG;QAA7E,YACE,kBAAM,eAAe,EAAE,GAAG,CAAC,SAC5B;QAnBM,aAAO,GAA4B,EAAE,CAAC;QAOtC,aAAO,GAAY,KAAK,CAAC;;IAYhC,CAAC;IAEM,8BAAK,GAAZ,UAAa,MAAwB;QAC3B,IAAA,OAAO,GAAK,IAAI,QAAT,CAAU;QAEzB,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,OAAO;SACR;QAED,IAAI,KAAU,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAEpB,GAAG;YACD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE;gBACxD,MAAM;aACP;SACF,QAAQ,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAG,CAAC,EAAE;QAEtC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,KAAK,EAAE;YACT,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,KAAK,EAAG,CAAC,EAAE;gBAClC,MAAM,CAAC,WAAW,EAAE,CAAC;aACtB;YACD,MAAM,KAAK,CAAC;SACb;IACH,CAAC;IACH,qBAAC;AAAD,CAAC,AAhDD,CAAoC,SAAS,GAgD5C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueAction.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueAction.js deleted file mode 100755 index dd7ccbf44..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueAction.js +++ /dev/null @@ -1,35 +0,0 @@ -import { __extends } from "tslib"; -import { AsyncAction } from './AsyncAction'; -var QueueAction = (function (_super) { - __extends(QueueAction, _super); - function QueueAction(scheduler, work) { - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - return _this; - } - QueueAction.prototype.schedule = function (state, delay) { - if (delay === void 0) { delay = 0; } - if (delay > 0) { - return _super.prototype.schedule.call(this, state, delay); - } - this.delay = delay; - this.state = state; - this.scheduler.flush(this); - return this; - }; - QueueAction.prototype.execute = function (state, delay) { - return delay > 0 || this.closed ? _super.prototype.execute.call(this, state, delay) : this._execute(state, delay); - }; - QueueAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) { - return _super.prototype.requestAsyncId.call(this, scheduler, id, delay); - } - scheduler.flush(this); - return 0; - }; - return QueueAction; -}(AsyncAction)); -export { QueueAction }; -//# sourceMappingURL=QueueAction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueAction.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueAction.js.map deleted file mode 100644 index 0fdf216da..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueAction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QueueAction.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/QueueAction.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAM5C;IAAoC,+BAAc;IAChD,qBAAsB,SAAyB,EAAY,IAAmD;QAA9G,YACE,kBAAM,SAAS,EAAE,IAAI,CAAC,SACvB;QAFqB,eAAS,GAAT,SAAS,CAAgB;QAAY,UAAI,GAAJ,IAAI,CAA+C;;IAE9G,CAAC;IAEM,8BAAQ,GAAf,UAAgB,KAAS,EAAE,KAAiB;QAAjB,sBAAA,EAAA,SAAiB;QAC1C,IAAI,KAAK,GAAG,CAAC,EAAE;YACb,OAAO,iBAAM,QAAQ,YAAC,KAAK,EAAE,KAAK,CAAC,CAAC;SACrC;QACD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3B,OAAO,IAAI,CAAC;IACd,CAAC;IAEM,6BAAO,GAAd,UAAe,KAAQ,EAAE,KAAa;QACpC,OAAO,KAAK,GAAG,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,iBAAM,OAAO,YAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC9F,CAAC;IAES,oCAAc,GAAxB,UAAyB,SAAyB,EAAE,EAAgB,EAAE,KAAiB;QAAjB,sBAAA,EAAA,SAAiB;QAKrF,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE;YACrE,OAAO,iBAAM,cAAc,YAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;SACnD;QAGD,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAMtB,OAAO,CAAC,CAAC;IACX,CAAC;IACH,kBAAC;AAAD,CAAC,AArCD,CAAoC,WAAW,GAqC9C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueScheduler.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueScheduler.js deleted file mode 100755 index 735a46fc4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueScheduler.js +++ /dev/null @@ -1,11 +0,0 @@ -import { __extends } from "tslib"; -import { AsyncScheduler } from './AsyncScheduler'; -var QueueScheduler = (function (_super) { - __extends(QueueScheduler, _super); - function QueueScheduler() { - return _super !== null && _super.apply(this, arguments) || this; - } - return QueueScheduler; -}(AsyncScheduler)); -export { QueueScheduler }; -//# sourceMappingURL=QueueScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueScheduler.js.map deleted file mode 100644 index 0d8874a75..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/QueueScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QueueScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/QueueScheduler.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;IAAoC,kCAAc;IAAlD;;IACA,CAAC;IAAD,qBAAC;AAAD,CAAC,AADD,CAAoC,cAAc,GACjD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/VirtualTimeScheduler.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/VirtualTimeScheduler.js deleted file mode 100755 index 47890a480..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/VirtualTimeScheduler.js +++ /dev/null @@ -1,104 +0,0 @@ -import { __extends } from "tslib"; -import { AsyncAction } from './AsyncAction'; -import { Subscription } from '../Subscription'; -import { AsyncScheduler } from './AsyncScheduler'; -var VirtualTimeScheduler = (function (_super) { - __extends(VirtualTimeScheduler, _super); - function VirtualTimeScheduler(schedulerActionCtor, maxFrames) { - if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; } - if (maxFrames === void 0) { maxFrames = Infinity; } - var _this = _super.call(this, schedulerActionCtor, function () { return _this.frame; }) || this; - _this.maxFrames = maxFrames; - _this.frame = 0; - _this.index = -1; - return _this; - } - VirtualTimeScheduler.prototype.flush = function () { - var _a = this, actions = _a.actions, maxFrames = _a.maxFrames; - var error; - var action; - while ((action = actions[0]) && action.delay <= maxFrames) { - actions.shift(); - this.frame = action.delay; - if ((error = action.execute(action.state, action.delay))) { - break; - } - } - if (error) { - while ((action = actions.shift())) { - action.unsubscribe(); - } - throw error; - } - }; - VirtualTimeScheduler.frameTimeFactor = 10; - return VirtualTimeScheduler; -}(AsyncScheduler)); -export { VirtualTimeScheduler }; -var VirtualAction = (function (_super) { - __extends(VirtualAction, _super); - function VirtualAction(scheduler, work, index) { - if (index === void 0) { index = (scheduler.index += 1); } - var _this = _super.call(this, scheduler, work) || this; - _this.scheduler = scheduler; - _this.work = work; - _this.index = index; - _this.active = true; - _this.index = scheduler.index = index; - return _this; - } - VirtualAction.prototype.schedule = function (state, delay) { - if (delay === void 0) { delay = 0; } - if (Number.isFinite(delay)) { - if (!this.id) { - return _super.prototype.schedule.call(this, state, delay); - } - this.active = false; - var action = new VirtualAction(this.scheduler, this.work); - this.add(action); - return action.schedule(state, delay); - } - else { - return Subscription.EMPTY; - } - }; - VirtualAction.prototype.requestAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - this.delay = scheduler.frame + delay; - var actions = scheduler.actions; - actions.push(this); - actions.sort(VirtualAction.sortActions); - return 1; - }; - VirtualAction.prototype.recycleAsyncId = function (scheduler, id, delay) { - if (delay === void 0) { delay = 0; } - return undefined; - }; - VirtualAction.prototype._execute = function (state, delay) { - if (this.active === true) { - return _super.prototype._execute.call(this, state, delay); - } - }; - VirtualAction.sortActions = function (a, b) { - if (a.delay === b.delay) { - if (a.index === b.index) { - return 0; - } - else if (a.index > b.index) { - return 1; - } - else { - return -1; - } - } - else if (a.delay > b.delay) { - return 1; - } - else { - return -1; - } - }; - return VirtualAction; -}(AsyncAction)); -export { VirtualAction }; -//# sourceMappingURL=VirtualTimeScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/VirtualTimeScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/VirtualTimeScheduler.js.map deleted file mode 100644 index 603ec36b8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/VirtualTimeScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VirtualTimeScheduler.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/VirtualTimeScheduler.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAIlD;IAA0C,wCAAc;IAyBtD,8BAAY,mBAA8D,EAAS,SAA4B;QAAnG,oCAAA,EAAA,sBAA0C,aAAoB;QAAS,0BAAA,EAAA,oBAA4B;QAA/G,YACE,kBAAM,mBAAmB,EAAE,cAAM,OAAA,KAAI,CAAC,KAAK,EAAV,CAAU,CAAC,SAC7C;QAFkF,eAAS,GAAT,SAAS,CAAmB;QAfxG,WAAK,GAAW,CAAC,CAAC;QAMlB,WAAK,GAAW,CAAC,CAAC,CAAC;;IAW1B,CAAC;IAOM,oCAAK,GAAZ;QACQ,IAAA,KAAyB,IAAI,EAA3B,OAAO,aAAA,EAAE,SAAS,eAAS,CAAC;QACpC,IAAI,KAAU,CAAC;QACf,IAAI,MAAoC,CAAC;QAEzC,OAAO,CAAC,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,KAAK,IAAI,SAAS,EAAE;YACzD,OAAO,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;YAE1B,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CA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xjs/dist/esm5/internal/scheduler/animationFrame.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrame.js deleted file mode 100755 index 470f51361..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrame.js +++ /dev/null @@ -1,5 +0,0 @@ -import { AnimationFrameAction } from './AnimationFrameAction'; -import { AnimationFrameScheduler } from './AnimationFrameScheduler'; -export var animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction); -export var animationFrame = animationFrameScheduler; -//# sourceMappingURL=animationFrame.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrame.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrame.js.map deleted file mode 100644 index f733f453b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrame.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrame.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/animationFrame.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAkCpE,MAAM,CAAC,IAAM,uBAAuB,GAAG,IAAI,uBAAuB,CAAC,oBAAoB,CAAC,CAAC;AAKzF,MAAM,CAAC,IAAM,cAAc,GAAG,uBAAuB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrameProvider.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrameProvider.js deleted file mode 100755 index 7c6ede74b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrameProvider.js +++ /dev/null @@ -1,36 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { Subscription } from '../Subscription'; -export var animationFrameProvider = { - schedule: function (callback) { - var request = requestAnimationFrame; - var cancel = cancelAnimationFrame; - var delegate = animationFrameProvider.delegate; - if (delegate) { - request = delegate.requestAnimationFrame; - cancel = delegate.cancelAnimationFrame; - } - var handle = request(function (timestamp) { - cancel = undefined; - callback(timestamp); - }); - return new Subscription(function () { return cancel === null || cancel === void 0 ? void 0 : cancel(handle); }); - }, - requestAnimationFrame: function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var delegate = animationFrameProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.requestAnimationFrame) || requestAnimationFrame).apply(void 0, __spreadArray([], __read(args))); - }, - cancelAnimationFrame: function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var delegate = animationFrameProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.cancelAnimationFrame) || cancelAnimationFrame).apply(void 0, __spreadArray([], __read(args))); - }, - delegate: undefined, -}; -//# sourceMappingURL=animationFrameProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrameProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrameProvider.js.map deleted file mode 100644 index 3d68b59e0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/animationFrameProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrameProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/animationFrameProvider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAc/C,MAAM,CAAC,IAAM,sBAAsB,GAA2B;IAG5D,QAAQ,EAAR,UAAS,QAAQ;QACf,IAAI,OAAO,GAAG,qBAAqB,CAAC;QACpC,IAAI,MAAM,GAA4C,oBAAoB,CAAC;QACnE,IAAA,QAAQ,GAAK,sBAAsB,SAA3B,CAA4B;QAC5C,IAAI,QAAQ,EAAE;YACZ,OAAO,GAAG,QAAQ,CAAC,qBAAqB,CAAC;YACzC,MAAM,GAAG,QAAQ,CAAC,oBAAoB,CAAC;SACxC;QACD,IAAM,MAAM,GAAG,OAAO,CAAC,UAAC,SAAS;YAI/B,MAAM,GAAG,SAAS,CAAC;YACnB,QAAQ,CAAC,SAAS,CAAC,CAAC;QACtB,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,YAAY,CAAC,cAAM,OAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,MAAM,CAAC,EAAhB,CAAgB,CAAC,CAAC;IAClD,CAAC;IACD,qBAAqB;QAAC,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACnB,IAAA,QAAQ,GAAK,sBAAsB,SAA3B,CAA4B;QAC5C,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,qBAAqB,KAAI,qBAAqB,CAAC,wCAAI,IAAI,IAAE;IAC7E,CAAC;IACD,oBAAoB;QAAC,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QAClB,IAAA,QAAQ,GAAK,sBAAsB,SAA3B,CAA4B;QAC5C,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,oBAAoB,KAAI,oBAAoB,CAAC,wCAAI,IAAI,IAAE;IAC3E,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/asap.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/asap.js deleted file mode 100755 index 9c69dc32e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/asap.js +++ /dev/null @@ -1,5 +0,0 @@ -import { AsapAction } from './AsapAction'; -import { AsapScheduler } from './AsapScheduler'; -export var asapScheduler = new AsapScheduler(AsapAction); -export var asap = asapScheduler; -//# sourceMappingURL=asap.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/asap.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/asap.js.map deleted file mode 100644 index c0ac616df..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/asap.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"asap.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/asap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAqChD,MAAM,CAAC,IAAM,aAAa,GAAG,IAAI,aAAa,CAAC,UAAU,CAAC,CAAC;AAK3D,MAAM,CAAC,IAAM,IAAI,GAAG,aAAa,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/async.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/async.js deleted file mode 100755 index a045d4396..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/async.js +++ /dev/null @@ -1,5 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { AsyncScheduler } from './AsyncScheduler'; -export var asyncScheduler = new AsyncScheduler(AsyncAction); -export var async = asyncScheduler; -//# sourceMappingURL=async.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/async.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/async.js.map deleted file mode 100644 index 73468592b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/async.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"async.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/async.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAiDlD,MAAM,CAAC,IAAM,cAAc,GAAG,IAAI,cAAc,CAAC,WAAW,CAAC,CAAC;AAK9D,MAAM,CAAC,IAAM,KAAK,GAAG,cAAc,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js deleted file mode 100755 index 74c668c17..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js +++ /dev/null @@ -1,7 +0,0 @@ -export var dateTimestampProvider = { - now: function () { - return (dateTimestampProvider.delegate || Date).now(); - }, - delegate: undefined, -}; -//# sourceMappingURL=dateTimestampProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js.map deleted file mode 100644 index 8d7765108..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dateTimestampProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/dateTimestampProvider.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,IAAM,qBAAqB,GAA0B;IAC1D,GAAG;QAGD,OAAO,CAAC,qBAAqB,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;IACxD,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js deleted file mode 100755 index de02e9ed5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js +++ /dev/null @@ -1,19 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { Immediate } from '../util/Immediate'; -var setImmediate = Immediate.setImmediate, clearImmediate = Immediate.clearImmediate; -export var immediateProvider = { - setImmediate: function () { - var args = []; - for (var _i = 0; _i < arguments.length; _i++) { - args[_i] = arguments[_i]; - } - var delegate = immediateProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.setImmediate) || setImmediate).apply(void 0, __spreadArray([], __read(args))); - }, - clearImmediate: function (handle) { - var delegate = immediateProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearImmediate) || clearImmediate)(handle); - }, - delegate: undefined, -}; -//# sourceMappingURL=immediateProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js.map deleted file mode 100644 index fba56810f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/immediateProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"immediateProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/immediateProvider.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEtC,IAAA,YAAY,GAAqB,SAAS,aAA9B,EAAE,cAAc,GAAK,SAAS,eAAd,CAAe;AAgBnD,MAAM,CAAC,IAAM,iBAAiB,GAAsB;IAGlD,YAAY;QAAC,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACV,IAAA,QAAQ,GAAK,iBAAiB,SAAtB,CAAuB;QACvC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,YAAY,KAAI,YAAY,CAAC,wCAAI,IAAI,IAAE;IAC3D,CAAC;IACD,cAAc,EAAd,UAAe,MAAM;QACX,IAAA,QAAQ,GAAK,iBAAiB,SAAtB,CAAuB;QACvC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,cAAc,KAAI,cAAc,CAAC,CAAC,MAAa,CAAC,CAAC;IACrE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js deleted file mode 100755 index 9c9c00d39..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js +++ /dev/null @@ -1,20 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -export var intervalProvider = { - setInterval: function (handler, timeout) { - var args = []; - for (var _i = 2; _i < arguments.length; _i++) { - args[_i - 2] = arguments[_i]; - } - var delegate = intervalProvider.delegate; - if (delegate === null || delegate === void 0 ? void 0 : delegate.setInterval) { - return delegate.setInterval.apply(delegate, __spreadArray([handler, timeout], __read(args))); - } - return setInterval.apply(void 0, __spreadArray([handler, timeout], __read(args))); - }, - clearInterval: function (handle) { - var delegate = intervalProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearInterval) || clearInterval)(handle); - }, - delegate: undefined, -}; -//# sourceMappingURL=intervalProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js.map deleted file mode 100644 index f5e73ab4f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intervalProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/intervalProvider.ts"],"names":[],"mappings":";AAeA,MAAM,CAAC,IAAM,gBAAgB,GAAqB;IAGhD,WAAW,EAAX,UAAY,OAAmB,EAAE,OAAgB;QAAE,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,6BAAO;;QAChD,IAAA,QAAQ,GAAK,gBAAgB,SAArB,CAAsB;QACtC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE;YACzB,OAAO,QAAQ,CAAC,WAAW,OAApB,QAAQ,iBAAa,OAAO,EAAE,OAAO,UAAK,IAAI,IAAE;SACxD;QACD,OAAO,WAAW,8BAAC,OAAO,EAAE,OAAO,UAAK,IAAI,IAAE;IAChD,CAAC;IACD,aAAa,EAAb,UAAc,MAAM;QACV,IAAA,QAAQ,GAAK,gBAAgB,SAArB,CAAsB;QACtC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,aAAa,KAAI,aAAa,CAAC,CAAC,MAAa,CAAC,CAAC;IACnE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/performanceTimestampProvider.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/performanceTimestampProvider.js deleted file mode 100755 index 7efdca7e4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/performanceTimestampProvider.js +++ /dev/null @@ -1,7 +0,0 @@ -export var performanceTimestampProvider = { - now: function () { - return (performanceTimestampProvider.delegate || performance).now(); - }, - delegate: undefined, -}; -//# sourceMappingURL=performanceTimestampProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/performanceTimestampProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/performanceTimestampProvider.js.map deleted file mode 100644 index 0eb8871e5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/performanceTimestampProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"performanceTimestampProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/performanceTimestampProvider.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,IAAM,4BAA4B,GAAiC;IACxE,GAAG;QAGD,OAAO,CAAC,4BAA4B,CAAC,QAAQ,IAAI,WAAW,CAAC,CAAC,GAAG,EAAE,CAAC;IACtE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/queue.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/queue.js deleted file mode 100755 index e7a4846b3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/queue.js +++ /dev/null @@ -1,5 +0,0 @@ -import { QueueAction } from './QueueAction'; -import { QueueScheduler } from './QueueScheduler'; -export var queueScheduler = new QueueScheduler(QueueAction); -export var queue = queueScheduler; -//# sourceMappingURL=queue.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/queue.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/queue.js.map deleted file mode 100644 index 42488a670..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/queue.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"queue.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/queue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAiElD,MAAM,CAAC,IAAM,cAAc,GAAG,IAAI,cAAc,CAAC,WAAW,CAAC,CAAC;AAK9D,MAAM,CAAC,IAAM,KAAK,GAAG,cAAc,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js deleted file mode 100755 index 6000218fd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +++ /dev/null @@ -1,20 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -export var timeoutProvider = { - setTimeout: function (handler, timeout) { - var args = []; - for (var _i = 2; _i < arguments.length; _i++) { - args[_i - 2] = arguments[_i]; - } - var delegate = timeoutProvider.delegate; - if (delegate === null || delegate === void 0 ? void 0 : delegate.setTimeout) { - return delegate.setTimeout.apply(delegate, __spreadArray([handler, timeout], __read(args))); - } - return setTimeout.apply(void 0, __spreadArray([handler, timeout], __read(args))); - }, - clearTimeout: function (handle) { - var delegate = timeoutProvider.delegate; - return ((delegate === null || delegate === void 0 ? void 0 : delegate.clearTimeout) || clearTimeout)(handle); - }, - delegate: undefined, -}; -//# sourceMappingURL=timeoutProvider.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map deleted file mode 100644 index cd6b79b35..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeoutProvider.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/timeoutProvider.ts"],"names":[],"mappings":";AAeA,MAAM,CAAC,IAAM,eAAe,GAAoB;IAG9C,UAAU,EAAV,UAAW,OAAmB,EAAE,OAAgB;QAAE,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,6BAAO;;QAC/C,IAAA,QAAQ,GAAK,eAAe,SAApB,CAAqB;QACrC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,UAAU,EAAE;YACxB,OAAO,QAAQ,CAAC,UAAU,OAAnB,QAAQ,iBAAY,OAAO,EAAE,OAAO,UAAK,IAAI,IAAE;SACvD;QACD,OAAO,UAAU,8BAAC,OAAO,EAAE,OAAO,UAAK,IAAI,IAAE;IAC/C,CAAC;IACD,YAAY,EAAZ,UAAa,MAAM;QACT,IAAA,QAAQ,GAAK,eAAe,SAApB,CAAqB;QACrC,OAAO,CAAC,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,YAAY,KAAI,YAAY,CAAC,CAAC,MAAa,CAAC,CAAC;IACjE,CAAC;IACD,QAAQ,EAAE,SAAS;CACpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timerHandle.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timerHandle.js deleted file mode 100755 index 40cf60657..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timerHandle.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=timerHandle.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timerHandle.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timerHandle.js.map deleted file mode 100644 index 8efd320a5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/scheduler/timerHandle.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timerHandle.js","sourceRoot":"","sources":["../../../../src/internal/scheduler/timerHandle.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/iterator.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/iterator.js deleted file mode 100755 index 982edbc86..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/iterator.js +++ /dev/null @@ -1,8 +0,0 @@ -export function getSymbolIterator() { - if (typeof Symbol !== 'function' || !Symbol.iterator) { - return '@@iterator'; - } - return Symbol.iterator; -} -export var iterator = getSymbolIterator(); -//# sourceMappingURL=iterator.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/iterator.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/iterator.js.map deleted file mode 100644 index 8476db306..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/iterator.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"iterator.js","sourceRoot":"","sources":["../../../../src/internal/symbol/iterator.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,iBAAiB;IAC/B,IAAI,OAAO,MAAM,KAAK,UAAU,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE;QACpD,OAAO,YAAmB,CAAC;KAC5B;IAED,OAAO,MAAM,CAAC,QAAQ,CAAC;AACzB,CAAC;AAED,MAAM,CAAC,IAAM,QAAQ,GAAG,iBAAiB,EAAE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/observable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/observable.js deleted file mode 100755 index a539338dc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +++ /dev/null @@ -1,2 +0,0 @@ -export var observable = (function () { return (typeof Symbol === 'function' && Symbol.observable) || '@@observable'; })(); -//# sourceMappingURL=observable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map deleted file mode 100644 index 0eec0d516..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"observable.js","sourceRoot":"","sources":["../../../../src/internal/symbol/observable.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,IAAM,UAAU,GAAoB,CAAC,cAAM,OAAA,CAAC,OAAO,MAAM,KAAK,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC,IAAI,cAAc,EAArE,CAAqE,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/ColdObservable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/ColdObservable.js deleted file mode 100755 index 22258884c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/ColdObservable.js +++ /dev/null @@ -1,39 +0,0 @@ -import { __extends } from "tslib"; -import { Observable } from '../Observable'; -import { Subscription } from '../Subscription'; -import { SubscriptionLoggable } from './SubscriptionLoggable'; -import { applyMixins } from '../util/applyMixins'; -import { observeNotification } from '../Notification'; -var ColdObservable = (function (_super) { - __extends(ColdObservable, _super); - function ColdObservable(messages, scheduler) { - var _this = _super.call(this, function (subscriber) { - var observable = this; - var index = observable.logSubscribedFrame(); - var subscription = new Subscription(); - subscription.add(new Subscription(function () { - observable.logUnsubscribedFrame(index); - })); - observable.scheduleMessages(subscriber); - return subscription; - }) || this; - _this.messages = messages; - _this.subscriptions = []; - _this.scheduler = scheduler; - return _this; - } - ColdObservable.prototype.scheduleMessages = function (subscriber) { - var messagesLength = this.messages.length; - for (var i = 0; i < messagesLength; i++) { - var message = this.messages[i]; - subscriber.add(this.scheduler.schedule(function (state) { - var _a = state, notification = _a.message.notification, destination = _a.subscriber; - observeNotification(notification, destination); - }, message.frame, { message: message, subscriber: subscriber })); - } - }; - return ColdObservable; -}(Observable)); -export { ColdObservable }; -applyMixins(ColdObservable, [SubscriptionLoggable]); -//# sourceMappingURL=ColdObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/ColdObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/ColdObservable.js.map deleted file mode 100644 index df8c8de44..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/ColdObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ColdObservable.js","sourceRoot":"","sources":["../../../../src/internal/testing/ColdObservable.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtD;IAAuC,kCAAa;IAQlD,wBAAmB,QAAuB,EAAE,SAAoB;QAAhE,YACE,k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js/dist/esm5/internal/testing/HotObservable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/HotObservable.js deleted file mode 100755 index e019898d2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/HotObservable.js +++ /dev/null @@ -1,45 +0,0 @@ -import { __extends } from "tslib"; -import { Subject } from '../Subject'; -import { Subscription } from '../Subscription'; -import { SubscriptionLoggable } from './SubscriptionLoggable'; -import { applyMixins } from '../util/applyMixins'; -import { observeNotification } from '../Notification'; -var HotObservable = (function (_super) { - __extends(HotObservable, _super); - function HotObservable(messages, scheduler) { - var _this = _super.call(this) || this; - _this.messages = messages; - _this.subscriptions = []; - _this.scheduler = scheduler; - return _this; - } - HotObservable.prototype._subscribe = function (subscriber) { - var subject = this; - var index = subject.logSubscribedFrame(); - var subscription = new Subscription(); - subscription.add(new Subscription(function () { - subject.logUnsubscribedFrame(index); - })); - subscription.add(_super.prototype._subscribe.call(this, subscriber)); - return subscription; - }; - HotObservable.prototype.setup = function () { - var subject = this; - var messagesLength = subject.messages.length; - var _loop_1 = function (i) { - (function () { - var _a = subject.messages[i], notification = _a.notification, frame = _a.frame; - subject.scheduler.schedule(function () { - observeNotification(notification, subject); - }, frame); - })(); - }; - for (var i = 0; i < messagesLength; i++) { - _loop_1(i); - } - }; - return HotObservable; -}(Subject)); -export { HotObservable }; -applyMixins(HotObservable, [SubscriptionLoggable]); -//# sourceMappingURL=HotObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/HotObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/HotObservable.js.map deleted file mode 100644 index f5364c365..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/HotObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HotObservable.js","sourceRoot":"","sources":["../../../../src/internal/testing/HotObservable.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AA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AC;;QAPP,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,EAAE,CAAC,EAAE;oBAA9B,CAAC;SAQT;IACH,CAAC;IACH,oBAAC;AAAD,CAAC,AAzCD,CAAsC,OAAO,GAyC5C;;AACD,WAAW,CAAC,aAAa,EAAE,CAAC,oBAAoB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLog.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLog.js deleted file mode 100755 index f8fa0d5e5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLog.js +++ /dev/null @@ -1,10 +0,0 @@ -var SubscriptionLog = (function () { - function SubscriptionLog(subscribedFrame, unsubscribedFrame) { - if (unsubscribedFrame === void 0) { unsubscribedFrame = Infinity; } - this.subscribedFrame = subscribedFrame; - this.unsubscribedFrame = unsubscribedFrame; - } - return SubscriptionLog; -}()); -export { SubscriptionLog }; -//# sourceMappingURL=SubscriptionLog.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLog.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLog.js.map deleted file mode 100644 index 547ec440f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SubscriptionLog.js","sourceRoot":"","sources":["../../../../src/internal/testing/SubscriptionLog.ts"],"names":[],"mappings":"AAAA;IACE,yBAAmB,eAAuB,EACvB,iBAAoC;QAApC,kCAAA,EAAA,4BAAoC;QADpC,oBAAe,GAAf,eAAe,CAAQ;QACvB,sBAAiB,GAAjB,iBAAiB,CAAmB;IACvD,CAAC;IACH,sBAAC;AAAD,CAAC,AAJD,IAIC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLoggable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLoggable.js deleted file mode 100755 index 80d1f3ff1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLoggable.js +++ /dev/null @@ -1,18 +0,0 @@ -import { SubscriptionLog } from './SubscriptionLog'; -var SubscriptionLoggable = (function () { - function SubscriptionLoggable() { - this.subscriptions = []; - } - SubscriptionLoggable.prototype.logSubscribedFrame = function () { - this.subscriptions.push(new SubscriptionLog(this.scheduler.now())); - return this.subscriptions.length - 1; - }; - SubscriptionLoggable.prototype.logUnsubscribedFrame = function (index) { - var subscriptionLogs = this.subscriptions; - var oldSubscriptionLog = subscriptionLogs[index]; - subscriptionLogs[index] = new SubscriptionLog(oldSubscriptionLog.subscribedFrame, this.scheduler.now()); - }; - return SubscriptionLoggable; -}()); -export { SubscriptionLoggable }; -//# sourceMappingURL=SubscriptionLoggable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLoggable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLoggable.js.map deleted file mode 100644 index 6fbcce302..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/SubscriptionLoggable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SubscriptionLoggable.js","sourceRoot":"","sources":["../../../../src/internal/testing/SubscriptionLoggable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD;IAAA;QACS,kBAAa,GAAsB,EAAE,CAAC;IAiB/C,CAAC;IAbC,iDAAkB,GAAlB;QACE,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;QACnE,OAAO,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,CAAC,CAAC;IACvC,CAAC;IAED,mDAAoB,GAApB,UAAqB,KAAa;QAChC,IAAM,gBAAgB,GAAG,IAAI,CAAC,aAAa,CAAC;QAC5C,IAAM,kBAAkB,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;QACnD,gBAAgB,CAAC,KAAK,CAAC,GAAG,IAAI,eAAe,CAC3C,kBAAkB,CAAC,eAAe,EAClC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CACrB,CAAC;IACJ,CAAC;IACH,2BAAC;AAAD,CAAC,AAlBD,IAkBC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestMessage.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestMessage.js deleted file mode 100755 index 47c15dbf5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestMessage.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=TestMessage.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestMessage.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestMessage.js.map deleted file mode 100644 index f91e8da13..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestMessage.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TestMessage.js","sourceRoot":"","sources":["../../../../src/internal/testing/TestMessage.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestScheduler.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestScheduler.js deleted file mode 100755 index 22855ffcc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestScheduler.js +++ /dev/null @@ -1,569 +0,0 @@ -import { __extends, __read, __spreadArray, __values } from "tslib"; -import { Observable } from '../Observable'; -import { ColdObservable } from './ColdObservable'; -import { HotObservable } from './HotObservable'; -import { SubscriptionLog } from './SubscriptionLog'; -import { VirtualTimeScheduler, VirtualAction } from '../scheduler/VirtualTimeScheduler'; -import { COMPLETE_NOTIFICATION, errorNotification, nextNotification } from '../NotificationFactories'; -import { dateTimestampProvider } from '../scheduler/dateTimestampProvider'; -import { performanceTimestampProvider } from '../scheduler/performanceTimestampProvider'; -import { animationFrameProvider } from '../scheduler/animationFrameProvider'; -import { immediateProvider } from '../scheduler/immediateProvider'; -import { intervalProvider } from '../scheduler/intervalProvider'; -import { timeoutProvider } from '../scheduler/timeoutProvider'; -var defaultMaxFrame = 750; -var TestScheduler = (function (_super) { - __extends(TestScheduler, _super); - function TestScheduler(assertDeepEqual) { - var _this = _super.call(this, VirtualAction, defaultMaxFrame) || this; - _this.assertDeepEqual = assertDeepEqual; - _this.hotObservables = []; - _this.coldObservables = []; - _this.flushTests = []; - _this.runMode = false; - return _this; - } - TestScheduler.prototype.createTime = function (marbles) { - var indexOf = this.runMode ? marbles.trim().indexOf('|') : marbles.indexOf('|'); - if (indexOf === -1) { - throw new Error('marble diagram for time should have a completion marker "|"'); - } - return indexOf * TestScheduler.frameTimeFactor; - }; - TestScheduler.prototype.createColdObservable = function (marbles, values, error) { - if (marbles.indexOf('^') !== -1) { - throw new Error('cold observable cannot have subscription offset "^"'); - } - if (marbles.indexOf('!') !== -1) { - throw new Error('cold observable cannot have unsubscription marker "!"'); - } - var messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode); - var cold = new ColdObservable(messages, this); - this.coldObservables.push(cold); - return cold; - }; - TestScheduler.prototype.createHotObservable = function (marbles, values, error) { - if (marbles.indexOf('!') !== -1) { - throw new Error('hot observable cannot have unsubscription marker "!"'); - } - var messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode); - var subject = new HotObservable(messages, this); - this.hotObservables.push(subject); - return subject; - }; - TestScheduler.prototype.materializeInnerObservable = function (observable, outerFrame) { - var _this = this; - var messages = []; - observable.subscribe({ - next: function (value) { - messages.push({ frame: _this.frame - outerFrame, notification: nextNotification(value) }); - }, - error: function (error) { - messages.push({ frame: _this.frame - outerFrame, notification: errorNotification(error) }); - }, - complete: function () { - messages.push({ frame: _this.frame - outerFrame, notification: COMPLETE_NOTIFICATION }); - }, - }); - return messages; - }; - TestScheduler.prototype.expectObservable = function (observable, subscriptionMarbles) { - var _this = this; - if (subscriptionMarbles === void 0) { subscriptionMarbles = null; } - var actual = []; - var flushTest = { actual: actual, ready: false }; - var subscriptionParsed = TestScheduler.parseMarblesAsSubscriptions(subscriptionMarbles, this.runMode); - var subscriptionFrame = subscriptionParsed.subscribedFrame === Infinity ? 0 : subscriptionParsed.subscribedFrame; - var unsubscriptionFrame = subscriptionParsed.unsubscribedFrame; - var subscription; - this.schedule(function () { - subscription = observable.subscribe({ - next: function (x) { - var value = x instanceof Observable ? _this.materializeInnerObservable(x, _this.frame) : x; - actual.push({ frame: _this.frame, notification: nextNotification(value) }); - }, - error: function (error) { - actual.push({ frame: _this.frame, notification: errorNotification(error) }); - }, - complete: function () { - actual.push({ frame: _this.frame, notification: COMPLETE_NOTIFICATION }); - }, - }); - }, subscriptionFrame); - if (unsubscriptionFrame !== Infinity) { - this.schedule(function () { return subscription.unsubscribe(); }, unsubscriptionFrame); - } - this.flushTests.push(flushTest); - var runMode = this.runMode; - return { - toBe: function (marbles, values, errorValue) { - flushTest.ready = true; - flushTest.expected = TestScheduler.parseMarbles(marbles, values, errorValue, true, runMode); - }, - toEqual: function (other) { - flushTest.ready = true; - flushTest.expected = []; - _this.schedule(function () { - subscription = other.subscribe({ - next: function (x) { - var value = x instanceof Observable ? _this.materializeInnerObservable(x, _this.frame) : x; - flushTest.expected.push({ frame: _this.frame, notification: nextNotification(value) }); - }, - error: function (error) { - flushTest.expected.push({ frame: _this.frame, notification: errorNotification(error) }); - }, - complete: function () { - flushTest.expected.push({ frame: _this.frame, notification: COMPLETE_NOTIFICATION }); - }, - }); - }, subscriptionFrame); - }, - }; - }; - TestScheduler.prototype.expectSubscriptions = function (actualSubscriptionLogs) { - var flushTest = { actual: actualSubscriptionLogs, ready: false }; - this.flushTests.push(flushTest); - var runMode = this.runMode; - return { - toBe: function (marblesOrMarblesArray) { - var marblesArray = typeof marblesOrMarblesArray === 'string' ? [marblesOrMarblesArray] : marblesOrMarblesArray; - flushTest.ready = true; - flushTest.expected = marblesArray - .map(function (marbles) { return TestScheduler.parseMarblesAsSubscriptions(marbles, runMode); }) - .filter(function (marbles) { return marbles.subscribedFrame !== Infinity; }); - }, - }; - }; - TestScheduler.prototype.flush = function () { - var _this = this; - var hotObservables = this.hotObservables; - while (hotObservables.length > 0) { - hotObservables.shift().setup(); - } - _super.prototype.flush.call(this); - this.flushTests = this.flushTests.filter(function (test) { - if (test.ready) { - _this.assertDeepEqual(test.actual, test.expected); - return false; - } - return true; - }); - }; - TestScheduler.parseMarblesAsSubscriptions = function (marbles, runMode) { - var _this = this; - if (runMode === void 0) { runMode = false; } - if (typeof marbles !== 'string') { - return new SubscriptionLog(Infinity); - } - var characters = __spreadArray([], __read(marbles)); - var len = characters.length; - var groupStart = -1; - var subscriptionFrame = Infinity; - var unsubscriptionFrame = Infinity; - var frame = 0; - var _loop_1 = function (i) { - var nextFrame = frame; - var advanceFrameBy = function (count) { - nextFrame += count * _this.frameTimeFactor; - }; - var c = characters[i]; - switch (c) { - case ' ': - if (!runMode) { - advanceFrameBy(1); - } - break; - case '-': - advanceFrameBy(1); - break; - case '(': - groupStart = frame; - advanceFrameBy(1); - break; - case ')': - groupStart = -1; - advanceFrameBy(1); - break; - case '^': - if (subscriptionFrame !== Infinity) { - throw new Error("found a second subscription point '^' in a " + 'subscription marble diagram. There can only be one.'); - } - subscriptionFrame = groupStart > -1 ? groupStart : frame; - advanceFrameBy(1); - break; - case '!': - if (unsubscriptionFrame !== Infinity) { - throw new Error("found a second unsubscription point '!' in a " + 'subscription marble diagram. There can only be one.'); - } - unsubscriptionFrame = groupStart > -1 ? groupStart : frame; - break; - default: - if (runMode && c.match(/^[0-9]$/)) { - if (i === 0 || characters[i - 1] === ' ') { - var buffer = characters.slice(i).join(''); - var match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /); - if (match) { - i += match[0].length - 1; - var duration = parseFloat(match[1]); - var unit = match[2]; - var durationInMs = void 0; - switch (unit) { - case 'ms': - durationInMs = duration; - break; - case 's': - durationInMs = duration * 1000; - break; - case 'm': - durationInMs = duration * 1000 * 60; - break; - default: - break; - } - advanceFrameBy(durationInMs / this_1.frameTimeFactor); - break; - } - } - } - throw new Error("there can only be '^' and '!' markers in a " + "subscription marble diagram. Found instead '" + c + "'."); - } - frame = nextFrame; - out_i_1 = i; - }; - var this_1 = this, out_i_1; - for (var i = 0; i < len; i++) { - _loop_1(i); - i = out_i_1; - } - if (unsubscriptionFrame < 0) { - return new SubscriptionLog(subscriptionFrame); - } - else { - return new SubscriptionLog(subscriptionFrame, unsubscriptionFrame); - } - }; - TestScheduler.parseMarbles = function (marbles, values, errorValue, materializeInnerObservables, runMode) { - var _this = this; - if (materializeInnerObservables === void 0) { materializeInnerObservables = false; } - if (runMode === void 0) { runMode = false; } - if (marbles.indexOf('!') !== -1) { - throw new Error('conventional marble diagrams cannot have the ' + 'unsubscription marker "!"'); - } - var characters = __spreadArray([], __read(marbles)); - var len = characters.length; - var testMessages = []; - var subIndex = runMode ? marbles.replace(/^[ ]+/, '').indexOf('^') : marbles.indexOf('^'); - var frame = subIndex === -1 ? 0 : subIndex * -this.frameTimeFactor; - var getValue = typeof values !== 'object' - ? function (x) { return x; } - : function (x) { - if (materializeInnerObservables && values[x] instanceof ColdObservable) { - return values[x].messages; - } - return values[x]; - }; - var groupStart = -1; - var _loop_2 = function (i) { - var nextFrame = frame; - var advanceFrameBy = function (count) { - nextFrame += count * _this.frameTimeFactor; - }; - var notification = void 0; - var c = characters[i]; - switch (c) { - case ' ': - if (!runMode) { - advanceFrameBy(1); - } - break; - case '-': - advanceFrameBy(1); - break; - case '(': - groupStart = frame; - advanceFrameBy(1); - break; - case ')': - groupStart = -1; - advanceFrameBy(1); - break; - case '|': - notification = COMPLETE_NOTIFICATION; - advanceFrameBy(1); - break; - case '^': - advanceFrameBy(1); - break; - case '#': - notification = errorNotification(errorValue || 'error'); - advanceFrameBy(1); - break; - default: - if (runMode && c.match(/^[0-9]$/)) { - if (i === 0 || characters[i - 1] === ' ') { - var buffer = characters.slice(i).join(''); - var match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /); - if (match) { - i += match[0].length - 1; - var duration = parseFloat(match[1]); - var unit = match[2]; - var durationInMs = void 0; - switch (unit) { - case 'ms': - durationInMs = duration; - break; - case 's': - durationInMs = duration * 1000; - break; - case 'm': - durationInMs = duration * 1000 * 60; - break; - default: - break; - } - advanceFrameBy(durationInMs / this_2.frameTimeFactor); - break; - } - } - } - notification = nextNotification(getValue(c)); - advanceFrameBy(1); - break; - } - if (notification) { - testMessages.push({ frame: groupStart > -1 ? groupStart : frame, notification: notification }); - } - frame = nextFrame; - out_i_2 = i; - }; - var this_2 = this, out_i_2; - for (var i = 0; i < len; i++) { - _loop_2(i); - i = out_i_2; - } - return testMessages; - }; - TestScheduler.prototype.createAnimator = function () { - var _this = this; - if (!this.runMode) { - throw new Error('animate() must only be used in run mode'); - } - var lastHandle = 0; - var map; - var delegate = { - requestAnimationFrame: function (callback) { - if (!map) { - throw new Error('animate() was not called within run()'); - } - var handle = ++lastHandle; - map.set(handle, callback); - return handle; - }, - cancelAnimationFrame: function (handle) { - if (!map) { - throw new Error('animate() was not called within run()'); - } - map.delete(handle); - }, - }; - var animate = function (marbles) { - var e_1, _a; - if (map) { - throw new Error('animate() must not be called more than once within run()'); - } - if (/[|#]/.test(marbles)) { - throw new Error('animate() must not complete or error'); - } - map = new Map(); - var messages = TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true); - try { - for (var messages_1 = __values(messages), messages_1_1 = messages_1.next(); !messages_1_1.done; messages_1_1 = messages_1.next()) { - var message = messages_1_1.value; - _this.schedule(function () { - var e_2, _a; - var now = _this.now(); - var callbacks = Array.from(map.values()); - map.clear(); - try { - for (var callbacks_1 = (e_2 = void 0, __values(callbacks)), callbacks_1_1 = callbacks_1.next(); !callbacks_1_1.done; callbacks_1_1 = callbacks_1.next()) { - var callback = callbacks_1_1.value; - callback(now); - } - } - catch (e_2_1) { e_2 = { error: e_2_1 }; } - finally { - try { - if (callbacks_1_1 && !callbacks_1_1.done && (_a = callbacks_1.return)) _a.call(callbacks_1); - } - finally { if (e_2) throw e_2.error; } - } - }, message.frame); - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (messages_1_1 && !messages_1_1.done && (_a = messages_1.return)) _a.call(messages_1); - } - finally { if (e_1) throw e_1.error; } - } - }; - return { animate: animate, delegate: delegate }; - }; - TestScheduler.prototype.createDelegates = function () { - var _this = this; - var lastHandle = 0; - var scheduleLookup = new Map(); - var run = function () { - var now = _this.now(); - var scheduledRecords = Array.from(scheduleLookup.values()); - var scheduledRecordsDue = scheduledRecords.filter(function (_a) { - var due = _a.due; - return due <= now; - }); - var dueImmediates = scheduledRecordsDue.filter(function (_a) { - var type = _a.type; - return type === 'immediate'; - }); - if (dueImmediates.length > 0) { - var _a = dueImmediates[0], handle = _a.handle, handler = _a.handler; - scheduleLookup.delete(handle); - handler(); - return; - } - var dueIntervals = scheduledRecordsDue.filter(function (_a) { - var type = _a.type; - return type === 'interval'; - }); - if (dueIntervals.length > 0) { - var firstDueInterval = dueIntervals[0]; - var duration = firstDueInterval.duration, handler = firstDueInterval.handler; - firstDueInterval.due = now + duration; - firstDueInterval.subscription = _this.schedule(run, duration); - handler(); - return; - } - var dueTimeouts = scheduledRecordsDue.filter(function (_a) { - var type = _a.type; - return type === 'timeout'; - }); - if (dueTimeouts.length > 0) { - var _b = dueTimeouts[0], handle = _b.handle, handler = _b.handler; - scheduleLookup.delete(handle); - handler(); - return; - } - throw new Error('Expected a due immediate or interval'); - }; - var immediate = { - setImmediate: function (handler) { - var handle = ++lastHandle; - scheduleLookup.set(handle, { - due: _this.now(), - duration: 0, - handle: handle, - handler: handler, - subscription: _this.schedule(run, 0), - type: 'immediate', - }); - return handle; - }, - clearImmediate: function (handle) { - var value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - var interval = { - setInterval: function (handler, duration) { - if (duration === void 0) { duration = 0; } - var handle = ++lastHandle; - scheduleLookup.set(handle, { - due: _this.now() + duration, - duration: duration, - handle: handle, - handler: handler, - subscription: _this.schedule(run, duration), - type: 'interval', - }); - return handle; - }, - clearInterval: function (handle) { - var value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - var timeout = { - setTimeout: function (handler, duration) { - if (duration === void 0) { duration = 0; } - var handle = ++lastHandle; - scheduleLookup.set(handle, { - due: _this.now() + duration, - duration: duration, - handle: handle, - handler: handler, - subscription: _this.schedule(run, duration), - type: 'timeout', - }); - return handle; - }, - clearTimeout: function (handle) { - var value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - return { immediate: immediate, interval: interval, timeout: timeout }; - }; - TestScheduler.prototype.run = function (callback) { - var prevFrameTimeFactor = TestScheduler.frameTimeFactor; - var prevMaxFrames = this.maxFrames; - TestScheduler.frameTimeFactor = 1; - this.maxFrames = Infinity; - this.runMode = true; - var animator = this.createAnimator(); - var delegates = this.createDelegates(); - animationFrameProvider.delegate = animator.delegate; - dateTimestampProvider.delegate = this; - immediateProvider.delegate = delegates.immediate; - intervalProvider.delegate = delegates.interval; - timeoutProvider.delegate = delegates.timeout; - performanceTimestampProvider.delegate = this; - var helpers = { - cold: this.createColdObservable.bind(this), - hot: this.createHotObservable.bind(this), - flush: this.flush.bind(this), - time: this.createTime.bind(this), - expectObservable: this.expectObservable.bind(this), - expectSubscriptions: this.expectSubscriptions.bind(this), - animate: animator.animate, - }; - try { - var ret = callback(helpers); - this.flush(); - return ret; - } - finally { - TestScheduler.frameTimeFactor = prevFrameTimeFactor; - this.maxFrames = prevMaxFrames; - this.runMode = false; - animationFrameProvider.delegate = undefined; - dateTimestampProvider.delegate = undefined; - immediateProvider.delegate = undefined; - intervalProvider.delegate = undefined; - timeoutProvider.delegate = undefined; - performanceTimestampProvider.delegate = undefined; - } - }; - TestScheduler.frameTimeFactor = 10; - return TestScheduler; -}(VirtualTimeScheduler)); -export { TestScheduler }; -//# sourceMappingURL=TestScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestScheduler.js.map deleted file mode 100644 index f28c4b413..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/testing/TestScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TestScheduler.js","sourceRoot":"","sources":["../../../../src/internal/testing/TestScheduler.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAExF,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,4BAA4B,EAAE,MAAM,2CAA2C,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAE7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAE/D,IAAM,eAAe,GAAW,GAAG,CAAC;AAqBpC;IAA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CAAC,OAAO;SAC1B,CAAC;QACF,IAAI;YACF,IAAM,GAAG,GAAG,QAAQ,CAAC,OAAO,CAAC,CAAC;YAC9B,IAAI,CAAC,KAAK,EAAE,CAAC;YACb,OAAO,GAAG,CAAC;SACZ;gBAAS;YACR,aAAa,CAAC,eAAe,GAAG,mBAAmB,CAAC;YACpD,IAAI,CAAC,SAAS,GAAG,aAAa,CAAC;YAC/B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,sBAAsB,CAAC,QAAQ,GAAG,SAAS,CAAC;YAC5C,qBAAqB,CAAC,QAAQ,GAAG,SAAS,CAAC;YAC3C,iBAAiB,CAAC,QAAQ,GAAG,SAAS,CAAC;YACvC,gBAAgB,CAAC,QAAQ,GAAG,SAAS,CAAC;YACtC,eAAe,CAAC,QAAQ,GAAG,SAAS,CAAC;YACrC,4BAA4B,CAAC,QAAQ,GAAG,SAAS,CAAC;SACnD;IACH,CAAC;IAtoBM,6BAAe,GAAG,EAAE,CAAC;IAuoB9B,oBAAC;CAAA,AA9oBD,CAAmC,oBAAoB,GA8oBtD;SA9oBY,aAAa"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/types.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/types.js deleted file mode 100755 index 718fd38ae..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/types.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=types.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/types.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/types.js.map deleted file mode 100644 index 493d291ce..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/internal/types.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ArgumentOutOfRangeError.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ArgumentOutOfRangeError.js deleted file mode 100755 index 49e3be7dd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ArgumentOutOfRangeError.js +++ /dev/null @@ -1,9 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export var ArgumentOutOfRangeError = createErrorClass(function (_super) { - return function ArgumentOutOfRangeErrorImpl() { - _super(this); - this.name = 'ArgumentOutOfRangeError'; - this.message = 'argument out of range'; - }; -}); -//# sourceMappingURL=ArgumentOutOfRangeError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ArgumentOutOfRangeError.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ArgumentOutOfRangeError.js.map deleted file mode 100644 index fa389102f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ArgumentOutOfRangeError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ArgumentOutOfRangeError.js","sourceRoot":"","sources":["../../../../src/internal/util/ArgumentOutOfRangeError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAsBtD,MAAM,CAAC,IAAM,uBAAuB,GAAgC,gBAAgB,CAClF,UAAC,MAAM;IACL,OAAA,SAAS,2BAA2B;QAClC,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,uBAAuB,CAAC;IACzC,CAAC;AAJD,CAIC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/EmptyError.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/EmptyError.js deleted file mode 100755 index d6eddcac1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/EmptyError.js +++ /dev/null @@ -1,7 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export var EmptyError = createErrorClass(function (_super) { return function EmptyErrorImpl() { - _super(this); - this.name = 'EmptyError'; - this.message = 'no elements in sequence'; -}; }); -//# sourceMappingURL=EmptyError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/EmptyError.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/EmptyError.js.map deleted file mode 100644 index 4320783cc..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/EmptyError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EmptyError.js","sourceRoot":"","sources":["../../../../src/internal/util/EmptyError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAwBtD,MAAM,CAAC,IAAM,UAAU,GAAmB,gBAAgB,CAAC,UAAC,MAAM,IAAK,OAAA,SAAS,cAAc;IAC5F,MAAM,CAAC,IAAI,CAAC,CAAC;IACb,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IACzB,IAAI,CAAC,OAAO,GAAG,yBAAyB,CAAC;AAC3C,CAAC,EAJsE,CAItE,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/Immediate.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/Immediate.js deleted file mode 100755 index c601bffeb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/Immediate.js +++ /dev/null @@ -1,30 +0,0 @@ -var nextHandle = 1; -var resolved; -var activeHandles = {}; -function findAndClearHandle(handle) { - if (handle in activeHandles) { - delete activeHandles[handle]; - return true; - } - return false; -} -export var Immediate = { - setImmediate: function (cb) { - var handle = nextHandle++; - activeHandles[handle] = true; - if (!resolved) { - resolved = Promise.resolve(); - } - resolved.then(function () { return findAndClearHandle(handle) && cb(); }); - return handle; - }, - clearImmediate: function (handle) { - findAndClearHandle(handle); - }, -}; -export var TestTools = { - pending: function () { - return Object.keys(activeHandles).length; - } -}; -//# sourceMappingURL=Immediate.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/Immediate.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/Immediate.js.map deleted file mode 100644 index c45eecce3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/Immediate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Immediate.js","sourceRoot":"","sources":["../../../../src/internal/util/Immediate.ts"],"names":[],"mappings":"AAAA,IAAI,UAAU,GAAG,CAAC,CAAC;AAEnB,IAAI,QAAsB,CAAC;AAC3B,IAAM,aAAa,GAA2B,EAAE,CAAC;AAOjD,SAAS,kBAAkB,CAAC,MAAc;IACxC,IAAI,MAAM,IAAI,aAAa,EAAE;QAC3B,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;QAC7B,OAAO,IAAI,CAAC;KACb;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAKD,MAAM,CAAC,IAAM,SAAS,GAAG;IACvB,YAAY,EAAZ,UAAa,EAAc;QACzB,IAAM,MAAM,GAAG,UAAU,EAAE,CAAC;QAC5B,aAAa,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;QAC7B,IAAI,CAAC,QAAQ,EAAE;YACb,QAAQ,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;SAC9B;QACD,QAAQ,CAAC,IAAI,CAAC,cAAM,OAAA,kBAAkB,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,EAAlC,CAAkC,CAAC,CAAC;QACxD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,cAAc,EAAd,UAAe,MAAc;QAC3B,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CACF,CAAC;AAKF,MAAM,CAAC,IAAM,SAAS,GAAG;IACvB,OAAO;QACL,OAAO,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC;IAC3C,CAAC;CACF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/NotFoundError.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/NotFoundError.js deleted file mode 100755 index 2accd8644..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/NotFoundError.js +++ /dev/null @@ -1,9 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export var NotFoundError = createErrorClass(function (_super) { - return function NotFoundErrorImpl(message) { - _super(this); - this.name = 'NotFoundError'; - this.message = message; - }; -}); -//# sourceMappingURL=NotFoundError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/NotFoundError.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/NotFoundError.js.map deleted file mode 100644 index b3dc90382..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/NotFoundError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NotFoundError.js","sourceRoot":"","sources":["../../../../src/internal/util/NotFoundError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAoBtD,MAAM,CAAC,IAAM,aAAa,GAAsB,gBAAgB,CAC9D,UAAC,MAAM;IACL,OAAA,SAAS,iBAAiB,CAAY,OAAe;QACnD,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;AAJD,CAIC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js deleted file mode 100755 index 3289aa02b..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js +++ /dev/null @@ -1,9 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export var ObjectUnsubscribedError = createErrorClass(function (_super) { - return function ObjectUnsubscribedErrorImpl() { - _super(this); - this.name = 'ObjectUnsubscribedError'; - this.message = 'object unsubscribed'; - }; -}); -//# sourceMappingURL=ObjectUnsubscribedError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js.map deleted file mode 100644 index d980ac14a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ObjectUnsubscribedError.js","sourceRoot":"","sources":["../../../../src/internal/util/ObjectUnsubscribedError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAqBtD,MAAM,CAAC,IAAM,uBAAuB,GAAgC,gBAAgB,CAClF,UAAC,MAAM;IACL,OAAA,SAAS,2BAA2B;QAClC,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,yBAAyB,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG,qBAAqB,CAAC;IACvC,CAAC;AAJD,CAIC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/SequenceError.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/SequenceError.js deleted file mode 100755 index d2ec9acb2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/SequenceError.js +++ /dev/null @@ -1,9 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export var SequenceError = createErrorClass(function (_super) { - return function SequenceErrorImpl(message) { - _super(this); - this.name = 'SequenceError'; - this.message = message; - }; -}); -//# sourceMappingURL=SequenceError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/SequenceError.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/SequenceError.js.map deleted file mode 100644 index 98ac1952e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/SequenceError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SequenceError.js","sourceRoot":"","sources":["../../../../src/internal/util/SequenceError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAoBtD,MAAM,CAAC,IAAM,aAAa,GAAsB,gBAAgB,CAC9D,UAAC,MAAM;IACL,OAAA,SAAS,iBAAiB,CAAY,OAAe;QACnD,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,IAAI,GAAG,eAAe,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;AAJD,CAIC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js deleted file mode 100755 index 99a3ee38e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +++ /dev/null @@ -1,12 +0,0 @@ -import { createErrorClass } from './createErrorClass'; -export var UnsubscriptionError = createErrorClass(function (_super) { - return function UnsubscriptionErrorImpl(errors) { - _super(this); - this.message = errors - ? errors.length + " errors occurred during unsubscription:\n" + errors.map(function (err, i) { return i + 1 + ") " + err.toString(); }).join('\n ') - : ''; - this.name = 'UnsubscriptionError'; - this.errors = errors; - }; -}); -//# sourceMappingURL=UnsubscriptionError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map deleted file mode 100644 index 4b1948d13..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UnsubscriptionError.js","sourceRoot":"","sources":["../../../../src/internal/util/UnsubscriptionError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAkBtD,MAAM,CAAC,IAAM,mBAAmB,GAA4B,gBAAgB,CAC1E,UAAC,MAAM;IACL,OAAA,SAAS,uBAAuB,CAAY,MAA0B;QACpE,MAAM,CAAC,IAAI,CAAC,CAAC;QACb,IAAI,CAAC,OAAO,GAAG,MAAM;YACnB,CAAC,CAAI,MAAM,CAAC,MAAM,iDACxB,MAAM,CAAC,GAAG,CAAC,UAAC,GAAG,EAAE,CAAC,IAAK,OAAG,CAAC,GAAG,CAAC,UAAK,GAAG,CAAC,QAAQ,EAAI,EAA7B,CAA6B,CAAC,CAAC,IAAI,CAAC,MAAM,CAAG;YAC9D,CAAC,CAAC,EAAE,CAAC;QACP,IAAI,CAAC,IAAI,GAAG,qBAAqB,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;AARD,CAQC,CACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/applyMixins.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/applyMixins.js deleted file mode 100755 index 96eb49a1f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/applyMixins.js +++ /dev/null @@ -1,11 +0,0 @@ -export function applyMixins(derivedCtor, baseCtors) { - for (var i = 0, len = baseCtors.length; i < len; i++) { - var baseCtor = baseCtors[i]; - var propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype); - for (var j = 0, len2 = propertyKeys.length; j < len2; j++) { - var name_1 = propertyKeys[j]; - derivedCtor.prototype[name_1] = baseCtor.prototype[name_1]; - } - } -} -//# sourceMappingURL=applyMixins.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/applyMixins.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/applyMixins.js.map deleted file mode 100644 index cab207906..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/applyMixins.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"applyMixins.js","sourceRoot":"","sources":["../../../../src/internal/util/applyMixins.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,WAAW,CAAC,WAAgB,EAAE,SAAgB;IAC5D,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;QACpD,IAAM,QAAQ,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QAC9B,IAAM,YAAY,GAAG,MAAM,CAAC,mBAAmB,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACpE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE;YACzD,IAAM,MAAI,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;YAC7B,WAAW,CAAC,SAAS,CAAC,MAAI,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,MAAI,CAAC,CAAC;SACxD;KACF;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/args.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/args.js deleted file mode 100755 index ead7fc561..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/args.js +++ /dev/null @@ -1,15 +0,0 @@ -import { isFunction } from './isFunction'; -import { isScheduler } from './isScheduler'; -function last(arr) { - return arr[arr.length - 1]; -} -export function popResultSelector(args) { - return isFunction(last(args)) ? args.pop() : undefined; -} -export function popScheduler(args) { - return isScheduler(last(args)) ? args.pop() : undefined; -} -export function popNumber(args, defaultValue) { - return typeof last(args) === 'number' ? args.pop() : defaultValue; -} -//# sourceMappingURL=args.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/args.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/args.js.map deleted file mode 100644 index 707c54c73..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/args.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"args.js","sourceRoot":"","sources":["../../../../src/internal/util/args.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,SAAS,IAAI,CAAI,GAAQ;IACvB,OAAO,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AAC7B,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,IAAW;IAC3C,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AACzD,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAW;IACtC,OAAO,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC1D,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,IAAW,EAAE,YAAoB;IACzD,OAAO,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAG,CAAC,CAAC,CAAC,YAAY,CAAC;AACrE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsArgArrayOrObject.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsArgArrayOrObject.js deleted file mode 100755 index 66ffb09b8..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsArgArrayOrObject.js +++ /dev/null @@ -1,22 +0,0 @@ -var isArray = Array.isArray; -var getPrototypeOf = Object.getPrototypeOf, objectProto = Object.prototype, getKeys = Object.keys; -export function argsArgArrayOrObject(args) { - if (args.length === 1) { - var first_1 = args[0]; - if (isArray(first_1)) { - return { args: first_1, keys: null }; - } - if (isPOJO(first_1)) { - var keys = getKeys(first_1); - return { - args: keys.map(function (key) { return first_1[key]; }), - keys: keys, - }; - } - } - return { args: args, keys: null }; -} -function isPOJO(obj) { - return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto; -} -//# sourceMappingURL=argsArgArrayOrObject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsArgArrayOrObject.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsArgArrayOrObject.js.map deleted file mode 100644 index baf2e0ffd..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsArgArrayOrObject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"argsArgArrayOrObject.js","sourceRoot":"","sources":["../../../../src/internal/util/argsArgArrayOrObject.ts"],"names":[],"mappings":"AAAQ,IAAA,OAAO,GAAK,KAAK,QAAV,CAAW;AAClB,IAAA,cAAc,GAA4C,MAAM,eAAlD,EAAa,WAAW,GAAoB,MAAM,UAA1B,EAAQ,OAAO,GAAK,MAAM,KAAX,CAAY;AAQzE,MAAM,UAAU,oBAAoB,CAAiC,IAAuB;IAC1F,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACrB,IAAM,OAAK,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,OAAO,CAAC,OAAK,CAAC,EAAE;YAClB,OAAO,EAAE,IAAI,EAAE,OAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;SACpC;QACD,IAAI,MAAM,CAAC,OAAK,CAAC,EAAE;YACjB,IAAM,IAAI,GAAG,OAAO,CAAC,OAAK,CAAC,CAAC;YAC5B,OAAO;gBACL,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,OAAK,CAAC,GAAG,CAAC,EAAV,CAAU,CAAC;gBACnC,IAAI,MAAA;aACL,CAAC;SACH;KACF;IAED,OAAO,EAAE,IAAI,EAAE,IAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;AAC3C,CAAC;AAED,SAAS,MAAM,CAAC,GAAQ;IACtB,OAAO,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,cAAc,CAAC,GAAG,CAAC,KAAK,WAAW,CAAC;AAC/E,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsOrArgArray.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsOrArgArray.js deleted file mode 100755 index 58c482c78..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsOrArgArray.js +++ /dev/null @@ -1,5 +0,0 @@ -var isArray = Array.isArray; -export function argsOrArgArray(args) { - return args.length === 1 && isArray(args[0]) ? args[0] : args; -} -//# sourceMappingURL=argsOrArgArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsOrArgArray.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsOrArgArray.js.map deleted file mode 100644 index c789b9845..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/argsOrArgArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"argsOrArgArray.js","sourceRoot":"","sources":["../../../../src/internal/util/argsOrArgArray.ts"],"names":[],"mappings":"AAAQ,IAAA,OAAO,GAAK,KAAK,QAAV,CAAW;AAM1B,MAAM,UAAU,cAAc,CAAI,IAAiB;IACjD,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,IAAY,CAAC;AACzE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js deleted file mode 100755 index dc6306d94..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +++ /dev/null @@ -1,7 +0,0 @@ -export function arrRemove(arr, item) { - if (arr) { - var index = arr.indexOf(item); - 0 <= index && arr.splice(index, 1); - } -} -//# sourceMappingURL=arrRemove.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map deleted file mode 100644 index 513cb1450..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"arrRemove.js","sourceRoot":"","sources":["../../../../src/internal/util/arrRemove.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,SAAS,CAAI,GAA2B,EAAE,IAAO;IAC/D,IAAI,GAAG,EAAE;QACP,IAAM,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QAChC,CAAC,IAAI,KAAK,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;KACpC;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js deleted file mode 100755 index 3236fb3de..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +++ /dev/null @@ -1,11 +0,0 @@ -export function createErrorClass(createImpl) { - var _super = function (instance) { - Error.call(instance); - instance.stack = new Error().stack; - }; - var ctorFunc = createImpl(_super); - ctorFunc.prototype = Object.create(Error.prototype); - ctorFunc.prototype.constructor = ctorFunc; - return ctorFunc; -} -//# sourceMappingURL=createErrorClass.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map deleted file mode 100644 index 619908dba..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createErrorClass.js","sourceRoot":"","sources":["../../../../src/internal/util/createErrorClass.ts"],"names":[],"mappings":"AASA,MAAM,UAAU,gBAAgB,CAAI,UAAgC;IAClE,IAAM,MAAM,GAAG,UAAC,QAAa;QAC3B,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACrB,QAAQ,CAAC,KAAK,GAAG,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC;IACrC,CAAC,CAAC;IAEF,IAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IACpC,QAAQ,CAAC,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACpD,QAAQ,CAAC,SAAS,CAAC,WAAW,GAAG,QAAQ,CAAC;IAC1C,OAAO,QAAQ,CAAC;AAClB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createObject.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createObject.js deleted file mode 100755 index 0908ef481..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createObject.js +++ /dev/null @@ -1,4 +0,0 @@ -export function createObject(keys, values) { - return keys.reduce(function (result, key, i) { return ((result[key] = values[i]), result); }, {}); -} -//# sourceMappingURL=createObject.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createObject.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createObject.js.map deleted file mode 100644 index 5c3f075d5..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/createObject.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createObject.js","sourceRoot":"","sources":["../../../../src/internal/util/createObject.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,YAAY,CAAC,IAAc,EAAE,MAAa;IACxD,OAAO,IAAI,CAAC,MAAM,CAAC,UAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAK,OAAA,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAnC,CAAmC,EAAE,EAAS,CAAC,CAAC;AACzF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/errorContext.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/errorContext.js deleted file mode 100755 index a61d48632..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +++ /dev/null @@ -1,28 +0,0 @@ -import { config } from '../config'; -var context = null; -export function errorContext(cb) { - if (config.useDeprecatedSynchronousErrorHandling) { - var isRoot = !context; - if (isRoot) { - context = { errorThrown: false, error: null }; - } - cb(); - if (isRoot) { - var _a = context, errorThrown = _a.errorThrown, error = _a.error; - context = null; - if (errorThrown) { - throw error; - } - } - } - else { - cb(); - } -} -export function captureError(err) { - if (config.useDeprecatedSynchronousErrorHandling && context) { - context.errorThrown = true; - context.error = err; - } -} -//# sourceMappingURL=errorContext.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map deleted file mode 100644 index 98671b71f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errorContext.js","sourceRoot":"","sources":["../../../../src/internal/util/errorContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,IAAI,OAAO,GAAgD,IAAI,CAAC;AAShE,MAAM,UAAU,YAAY,CAAC,EAAc;IACzC,IAAI,MAAM,CAAC,qCAAqC,EAAE;QAChD,IAAM,MAAM,GAAG,CAAC,OAAO,CAAC;QACxB,IAAI,MAAM,EAAE;YACV,OAAO,GAAG,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;SAC/C;QACD,EAAE,EAAE,CAAC;QACL,IAAI,MAAM,EAAE;YACJ,IAAA,KAAyB,OAAQ,EAA/B,WAAW,iBAAA,EAAE,KAAK,WAAa,CAAC;YACxC,OAAO,GAAG,IAAI,CAAC;YACf,IAAI,WAAW,EAAE;gBACf,MAAM,KAAK,CAAC;aACb;SACF;KACF;SAAM;QAGL,EAAE,EAAE,CAAC;KACN;AACH,CAAC;AAMD,MAAM,UAAU,YAAY,CAAC,GAAQ;IACnC,IAAI,MAAM,CAAC,qCAAqC,IAAI,OAAO,EAAE;QAC3D,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;QAC3B,OAAO,CAAC,KAAK,GAAG,GAAG,CAAC;KACrB;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js deleted file mode 100755 index 6ac53290c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js +++ /dev/null @@ -1,18 +0,0 @@ -export function executeSchedule(parentSubscription, scheduler, work, delay, repeat) { - if (delay === void 0) { delay = 0; } - if (repeat === void 0) { repeat = false; } - var scheduleSubscription = scheduler.schedule(function () { - work(); - if (repeat) { - parentSubscription.add(this.schedule(null, delay)); - } - else { - this.unsubscribe(); - } - }, delay); - parentSubscription.add(scheduleSubscription); - if (!repeat) { - return scheduleSubscription; - } -} -//# sourceMappingURL=executeSchedule.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js.map deleted file mode 100644 index ae5d55935..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"executeSchedule.js","sourceRoot":"","sources":["../../../../src/internal/util/executeSchedule.ts"],"names":[],"mappings":"AAkBA,MAAM,UAAU,eAAe,CAC7B,kBAAgC,EAChC,SAAwB,EACxB,IAAgB,EAChB,KAAS,EACT,MAAc;IADd,sBAAA,EAAA,SAAS;IACT,uBAAA,EAAA,cAAc;IAEd,IAAM,oBAAoB,GAAG,SAAS,CAAC,QAAQ,CAAC;QAC9C,IAAI,EAAE,CAAC;QACP,IAAI,MAAM,EAAE;YACV,kBAAkB,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;SACpD;aAAM;YACL,IAAI,CAAC,WAAW,EAAE,CAAC;SACpB;IACH,CAAC,EAAE,KAAK,CAAC,CAAC;IAEV,kBAAkB,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAE7C,IAAI,CAAC,MAAM,EAAE;QAKX,OAAO,oBAAoB,CAAC;KAC7B;AACH,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/identity.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/identity.js deleted file mode 100755 index 1084d77f2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/identity.js +++ /dev/null @@ -1,4 +0,0 @@ -export function identity(x) { - return x; -} -//# sourceMappingURL=identity.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/identity.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/identity.js.map deleted file mode 100644 index 28a2f4062..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../../../src/internal/util/identity.ts"],"names":[],"mappings":"AA0CA,MAAM,UAAU,QAAQ,CAAI,CAAI;IAC9B,OAAO,CAAC,CAAC;AACX,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js deleted file mode 100755 index 743a46f1d..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js +++ /dev/null @@ -1,2 +0,0 @@ -export var isArrayLike = (function (x) { return x && typeof x.length === 'number' && typeof x !== 'function'; }); -//# sourceMappingURL=isArrayLike.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js.map deleted file mode 100644 index 954a3f6a1..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isArrayLike.js","sourceRoot":"","sources":["../../../../src/internal/util/isArrayLike.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,WAAW,GAAG,CAAC,UAAI,CAAM,IAAwB,OAAA,CAAC,IAAI,OAAO,CAAC,CAAC,MAAM,KAAK,QAAQ,IAAI,OAAO,CAAC,KAAK,UAAU,EAA5D,CAA4D,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js deleted file mode 100755 index 99da2ebc9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js +++ /dev/null @@ -1,5 +0,0 @@ -import { isFunction } from './isFunction'; -export function isAsyncIterable(obj) { - return Symbol.asyncIterator && isFunction(obj === null || obj === void 0 ? void 0 : obj[Symbol.asyncIterator]); -} -//# sourceMappingURL=isAsyncIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js.map deleted file mode 100644 index 2e736bd4f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isAsyncIterable.js","sourceRoot":"","sources":["../../../../src/internal/util/isAsyncIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,UAAU,eAAe,CAAI,GAAQ;IACzC,OAAO,MAAM,CAAC,aAAa,IAAI,UAAU,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAG,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC;AACzE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isDate.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isDate.js deleted file mode 100755 index 74ddf327a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isDate.js +++ /dev/null @@ -1,4 +0,0 @@ -export function isValidDate(value) { - return value instanceof Date && !isNaN(value); -} -//# sourceMappingURL=isDate.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isDate.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isDate.js.map deleted file mode 100644 index 9e2ef136f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isDate.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isDate.js","sourceRoot":"","sources":["../../../../src/internal/util/isDate.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,WAAW,CAAC,KAAU;IACpC,OAAO,KAAK,YAAY,IAAI,IAAI,CAAC,KAAK,CAAC,KAAY,CAAC,CAAC;AACvD,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isFunction.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isFunction.js deleted file mode 100755 index 558eec7f6..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +++ /dev/null @@ -1,4 +0,0 @@ -export function isFunction(value) { - return typeof value === 'function'; -} -//# sourceMappingURL=isFunction.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map deleted file mode 100644 index 452906c6e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isFunction.js","sourceRoot":"","sources":["../../../../src/internal/util/isFunction.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,UAAU,CAAC,KAAU;IACnC,OAAO,OAAO,KAAK,KAAK,UAAU,CAAC;AACrC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js deleted file mode 100755 index da58ece24..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js +++ /dev/null @@ -1,6 +0,0 @@ -import { observable as Symbol_observable } from '../symbol/observable'; -import { isFunction } from './isFunction'; -export function isInteropObservable(input) { - return isFunction(input[Symbol_observable]); -} -//# sourceMappingURL=isInteropObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js.map deleted file mode 100644 index f5ddd94fe..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isInteropObservable.js","sourceRoot":"","sources":["../../../../src/internal/util/isInteropObservable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,UAAU,mBAAmB,CAAC,KAAU;IAC5C,OAAO,UAAU,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isIterable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isIterable.js deleted file mode 100755 index 20c52a68c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isIterable.js +++ /dev/null @@ -1,6 +0,0 @@ -import { iterator as Symbol_iterator } from '../symbol/iterator'; -import { isFunction } from './isFunction'; -export function isIterable(input) { - return isFunction(input === null || input === void 0 ? void 0 : input[Symbol_iterator]); -} -//# sourceMappingURL=isIterable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isIterable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isIterable.js.map deleted file mode 100644 index 353293110..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isIterable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isIterable.js","sourceRoot":"","sources":["../../../../src/internal/util/isIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,IAAI,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,UAAU,UAAU,CAAC,KAAU;IACnC,OAAO,UAAU,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAG,eAAe,CAAC,CAAC,CAAC;AAC9C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isObservable.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isObservable.js deleted file mode 100755 index cc149c608..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isObservable.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Observable } from '../Observable'; -import { isFunction } from './isFunction'; -export function isObservable(obj) { - return !!obj && (obj instanceof Observable || (isFunction(obj.lift) && isFunction(obj.subscribe))); -} -//# sourceMappingURL=isObservable.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isObservable.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isObservable.js.map deleted file mode 100644 index b82f9617f..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isObservable.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isObservable.js","sourceRoot":"","sources":["../../../../src/internal/util/isObservable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,MAAM,UAAU,YAAY,CAAC,GAAQ;IAGnC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,YAAY,UAAU,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACrG,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isPromise.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isPromise.js deleted file mode 100755 index 5114f67c3..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isPromise.js +++ /dev/null @@ -1,5 +0,0 @@ -import { isFunction } from "./isFunction"; -export function isPromise(value) { - return isFunction(value === null || value === void 0 ? void 0 : value.then); -} -//# sourceMappingURL=isPromise.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isPromise.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isPromise.js.map deleted file mode 100644 index bb81d6065..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isPromise.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isPromise.js","sourceRoot":"","sources":["../../../../src/internal/util/isPromise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM1C,MAAM,UAAU,SAAS,CAAC,KAAU;IAClC,OAAO,UAAU,CAAC,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,CAAC,CAAC;AACjC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js deleted file mode 100755 index 08e18eae4..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js +++ /dev/null @@ -1,39 +0,0 @@ -import { __asyncGenerator, __await, __generator } from "tslib"; -import { isFunction } from './isFunction'; -export function readableStreamLikeToAsyncGenerator(readableStream) { - return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() { - var reader, _a, value, done; - return __generator(this, function (_b) { - switch (_b.label) { - case 0: - reader = readableStream.getReader(); - _b.label = 1; - case 1: - _b.trys.push([1, , 9, 10]); - _b.label = 2; - case 2: - if (!true) return [3, 8]; - return [4, __await(reader.read())]; - case 3: - _a = _b.sent(), value = _a.value, done = _a.done; - if (!done) return [3, 5]; - return [4, __await(void 0)]; - case 4: return [2, _b.sent()]; - case 5: return [4, __await(value)]; - case 6: return [4, _b.sent()]; - case 7: - _b.sent(); - return [3, 2]; - case 8: return [3, 10]; - case 9: - reader.releaseLock(); - return [7]; - case 10: return [2]; - } - }); - }); -} -export function isReadableStreamLike(obj) { - return isFunction(obj === null || obj === void 0 ? void 0 : obj.getReader); -} -//# sourceMappingURL=isReadableStreamLike.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js.map deleted file mode 100644 index fff796e69..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isReadableStreamLike.js","sourceRoot":"","sources":["../../../../src/internal/util/isReadableStreamLike.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,UAAiB,kCAAkC,CAAI,cAAqC;;;;;;oBAC1F,MAAM,GAAG,cAAc,CAAC,SAAS,EAAE,CAAC;;;;;;yBAEjC,IAAI;oBACe,mBAAM,MAAM,CAAC,IAAI,EAAE,GAAA;;oBAArC,KAAkB,SAAmB,EAAnC,KAAK,WAAA,EAAE,IAAI,UAAA;yBACf,IAAI,EAAJ,cAAI;;wBACN,sBAAO;2CAEH,KAAM;wBAAZ,sBAAY;;oBAAZ,SAAY,CAAC;;;;oBAGf,MAAM,CAAC,WAAW,EAAE,CAAC;;;;;;CAExB;AAED,MAAM,UAAU,oBAAoB,CAAI,GAAQ;IAG9C,OAAO,UAAU,CAAC,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,SAAS,CAAC,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isScheduler.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isScheduler.js deleted file mode 100755 index 05b4f3feb..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isScheduler.js +++ /dev/null @@ -1,5 +0,0 @@ -import { isFunction } from './isFunction'; -export function isScheduler(value) { - return value && isFunction(value.schedule); -} -//# sourceMappingURL=isScheduler.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isScheduler.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isScheduler.js.map deleted file mode 100644 index 33c0d90d2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/isScheduler.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isScheduler.js","sourceRoot":"","sources":["../../../../src/internal/util/isScheduler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,UAAU,WAAW,CAAC,KAAU;IACpC,OAAO,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;AAC7C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/lift.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/lift.js deleted file mode 100755 index 558a88c86..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/lift.js +++ /dev/null @@ -1,20 +0,0 @@ -import { isFunction } from './isFunction'; -export function hasLift(source) { - return isFunction(source === null || source === void 0 ? void 0 : source.lift); -} -export function operate(init) { - return function (source) { - if (hasLift(source)) { - return source.lift(function (liftedSource) { - try { - return init(liftedSource, this); - } - catch (err) { - this.error(err); - } - }); - } - throw new TypeError('Unable to lift unknown Observable type'); - }; -} -//# sourceMappingURL=lift.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/lift.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/lift.js.map deleted file mode 100644 index 27e0eef2c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/lift.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lift.js","sourceRoot":"","sources":["../../../../src/internal/util/lift.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,MAAM,UAAU,OAAO,CAAC,MAAW;IACjC,OAAO,UAAU,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC,CAAC;AAClC,CAAC;AAMD,MAAM,UAAU,OAAO,CACrB,IAAqF;IAErF,OAAO,UAAC,MAAqB;QAC3B,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;YACnB,OAAO,MAAM,CAAC,IAAI,CAAC,UAA+B,YAA2B;gBAC3E,IAAI;oBACF,OAAO,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;iBACjC;gBAAC,OAAO,GAAG,EAAE;oBACZ,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACjB;YACH,CAAC,CAAC,CAAC;SACJ;QACD,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;IAChE,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js deleted file mode 100755 index 706add105..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js +++ /dev/null @@ -1,10 +0,0 @@ -import { __read, __spreadArray } from "tslib"; -import { map } from "../operators/map"; -var isArray = Array.isArray; -function callOrApply(fn, args) { - return isArray(args) ? fn.apply(void 0, __spreadArray([], __read(args))) : fn(args); -} -export function mapOneOrManyArgs(fn) { - return map(function (args) { return callOrApply(fn, args); }); -} -//# sourceMappingURL=mapOneOrManyArgs.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js.map deleted file mode 100644 index be157b96e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapOneOrManyArgs.js","sourceRoot":"","sources":["../../../../src/internal/util/mapOneOrManyArgs.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAE/B,IAAA,OAAO,GAAK,KAAK,QAAV,CAAW;AAE1B,SAAS,WAAW,CAAO,EAA2B,EAAE,IAAW;IAC/D,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,wCAAI,IAAI,IAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAMD,MAAM,UAAU,gBAAgB,CAAO,EAA2B;IAC9D,OAAO,GAAG,CAAC,UAAA,IAAI,IAAI,OAAA,WAAW,CAAC,EAAE,EAAE,IAAI,CAAC,EAArB,CAAqB,CAAC,CAAA;AAC7C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/noop.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/noop.js deleted file mode 100755 index 1a78a542e..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/noop.js +++ /dev/null @@ -1,2 +0,0 @@ -export function noop() { } -//# sourceMappingURL=noop.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/noop.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/noop.js.map deleted file mode 100644 index 05e521a45..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"noop.js","sourceRoot":"","sources":["../../../../src/internal/util/noop.ts"],"names":[],"mappings":"AACA,MAAM,UAAU,IAAI,KAAK,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/not.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/not.js deleted file mode 100755 index ac1f2350a..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/not.js +++ /dev/null @@ -1,4 +0,0 @@ -export function not(pred, thisArg) { - return function (value, index) { return !pred.call(thisArg, value, index); }; -} -//# sourceMappingURL=not.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/not.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/not.js.map deleted file mode 100644 index cd686b816..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/not.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"not.js","sourceRoot":"","sources":["../../../../src/internal/util/not.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,CAAI,IAA0C,EAAE,OAAY;IAC7E,OAAO,UAAC,KAAQ,EAAE,KAAa,IAAK,OAAA,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK,CAAC,EAAjC,CAAiC,CAAC;AACxE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/pipe.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/pipe.js deleted file mode 100755 index 4db150f79..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/pipe.js +++ /dev/null @@ -1,20 +0,0 @@ -import { identity } from './identity'; -export function pipe() { - var fns = []; - for (var _i = 0; _i < arguments.length; _i++) { - fns[_i] = arguments[_i]; - } - return pipeFromArray(fns); -} -export function pipeFromArray(fns) { - if (fns.length === 0) { - return identity; - } - if (fns.length === 1) { - return fns[0]; - } - return function piped(input) { - return fns.reduce(function (prev, fn) { return fn(prev); }, input); - }; -} -//# sourceMappingURL=pipe.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map deleted file mode 100644 index 5f2426029..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pipe.js","sourceRoot":"","sources":["../../../../src/internal/util/pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AA6EtC,MAAM,UAAU,IAAI;IAAC,aAAsC;SAAtC,UAAsC,EAAtC,qBAAsC,EAAtC,IAAsC;QAAtC,wBAAsC;;IACzD,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC;AAGD,MAAM,UAAU,aAAa,CAAO,GAA+B;IACjE,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;QACpB,OAAO,QAAmC,CAAC;KAC5C;IAED,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;QACpB,OAAO,GAAG,CAAC,CAAC,CAAC,CAAC;KACf;IAED,OAAO,SAAS,KAAK,CAAC,KAAQ;QAC5B,OAAO,GAAG,CAAC,MAAM,CAAC,UAAC,IAAS,EAAE,EAAuB,IAAK,OAAA,EAAE,CAAC,IAAI,CAAC,EAAR,CAAQ,EAAE,KAAY,CAAC,CAAC;IACpF,CAAC,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js deleted file mode 100755 index def5430b0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +++ /dev/null @@ -1,14 +0,0 @@ -import { config } from '../config'; -import { timeoutProvider } from '../scheduler/timeoutProvider'; -export function reportUnhandledError(err) { - timeoutProvider.setTimeout(function () { - var onUnhandledError = config.onUnhandledError; - if (onUnhandledError) { - onUnhandledError(err); - } - else { - throw err; - } - }); -} -//# sourceMappingURL=reportUnhandledError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map deleted file mode 100644 index fa87b4341..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reportUnhandledError.js","sourceRoot":"","sources":["../../../../src/internal/util/reportUnhandledError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAW/D,MAAM,UAAU,oBAAoB,CAAC,GAAQ;IAC3C,eAAe,CAAC,UAAU,CAAC;QACjB,IAAA,gBAAgB,GAAK,MAAM,iBAAX,CAAY;QACpC,IAAI,gBAAgB,EAAE;YAEpB,gBAAgB,CAAC,GAAG,CAAC,CAAC;SACvB;aAAM;YAEL,MAAM,GAAG,CAAC;SACX;IACH,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/subscribeToArray.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/subscribeToArray.js deleted file mode 100755 index 2cb9f1da7..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/subscribeToArray.js +++ /dev/null @@ -1,7 +0,0 @@ -export var subscribeToArray = function (array) { return function (subscriber) { - for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) { - subscriber.next(array[i]); - } - subscriber.complete(); -}; }; -//# sourceMappingURL=subscribeToArray.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/subscribeToArray.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/subscribeToArray.js.map deleted file mode 100644 index 8c1c0420c..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/subscribeToArray.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subscribeToArray.js","sourceRoot":"","sources":["../../../../src/internal/util/subscribeToArray.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAI,KAAmB,IAAK,OAAA,UAAC,UAAyB;IACpF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtE,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3B;IACD,UAAU,CAAC,QAAQ,EAAE,CAAC;AACxB,CAAC,EAL2D,CAK3D,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js deleted file mode 100755 index 99d726944..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js +++ /dev/null @@ -1,4 +0,0 @@ -export function createInvalidObservableTypeError(input) { - return new TypeError("You provided " + (input !== null && typeof input === 'object' ? 'an invalid object' : "'" + input + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."); -} -//# sourceMappingURL=throwUnobservableError.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js.map deleted file mode 100644 index 811c90ab0..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwUnobservableError.js","sourceRoot":"","sources":["../../../../src/internal/util/throwUnobservableError.ts"],"names":[],"mappings":"AAIA,MAAM,UAAU,gCAAgC,CAAC,KAAU;IAEzD,OAAO,IAAI,SAAS,CAClB,mBACE,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,MAAI,KAAK,MAAG,8HACwC,CAC3H,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/workarounds.js b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/workarounds.js deleted file mode 100755 index 380c6e799..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/workarounds.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=workarounds.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/workarounds.js.map b/WechatBot/node_modules/rxjs/dist/esm5/internal/util/workarounds.js.map deleted file mode 100644 index 75e727142..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/internal/util/workarounds.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"workarounds.js","sourceRoot":"","sources":["../../../../src/internal/util/workarounds.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/operators/index.js b/WechatBot/node_modules/rxjs/dist/esm5/operators/index.js deleted file mode 100755 index 79bbd8862..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/operators/index.js +++ /dev/null @@ -1,114 +0,0 @@ -export { audit } from '../internal/operators/audit'; -export { auditTime } from '../internal/operators/auditTime'; -export { buffer } from '../internal/operators/buffer'; -export { bufferCount } from '../internal/operators/bufferCount'; -export { bufferTime } from '../internal/operators/bufferTime'; -export { bufferToggle } from '../internal/operators/bufferToggle'; -export { bufferWhen } from '../internal/operators/bufferWhen'; -export { catchError } from '../internal/operators/catchError'; -export { combineAll } from '../internal/operators/combineAll'; -export { combineLatestAll } from '../internal/operators/combineLatestAll'; -export { combineLatest } from '../internal/operators/combineLatest'; -export { combineLatestWith } from '../internal/operators/combineLatestWith'; -export { concat } from '../internal/operators/concat'; -export { concatAll } from '../internal/operators/concatAll'; -export { concatMap } from '../internal/operators/concatMap'; -export { concatMapTo } from '../internal/operators/concatMapTo'; -export { concatWith } from '../internal/operators/concatWith'; -export { connect } from '../internal/operators/connect'; -export { count } from '../internal/operators/count'; -export { debounce } from '../internal/operators/debounce'; -export { debounceTime } from '../internal/operators/debounceTime'; -export { defaultIfEmpty } from '../internal/operators/defaultIfEmpty'; -export { delay } from '../internal/operators/delay'; -export { delayWhen } from '../internal/operators/delayWhen'; -export { dematerialize } from '../internal/operators/dematerialize'; -export { distinct } from '../internal/operators/distinct'; -export { distinctUntilChanged } from '../internal/operators/distinctUntilChanged'; -export { distinctUntilKeyChanged } from '../internal/operators/distinctUntilKeyChanged'; -export { elementAt } from '../internal/operators/elementAt'; -export { endWith } from '../internal/operators/endWith'; -export { every } from '../internal/operators/every'; -export { exhaust } from '../internal/operators/exhaust'; -export { exhaustAll } from '../internal/operators/exhaustAll'; -export { exhaustMap } from '../internal/operators/exhaustMap'; -export { expand } from '../internal/operators/expand'; -export { filter } from '../internal/operators/filter'; -export { finalize } from '../internal/operators/finalize'; -export { find } from '../internal/operators/find'; -export { findIndex } from '../internal/operators/findIndex'; -export { first } from '../internal/operators/first'; -export { groupBy } from '../internal/operators/groupBy'; -export { ignoreElements } from '../internal/operators/ignoreElements'; -export { isEmpty } from '../internal/operators/isEmpty'; -export { last } from '../internal/operators/last'; -export { map } from '../internal/operators/map'; -export { mapTo } from '../internal/operators/mapTo'; -export { materialize } from '../internal/operators/materialize'; -export { max } from '../internal/operators/max'; -export { merge } from '../internal/operators/merge'; -export { mergeAll } from '../internal/operators/mergeAll'; -export { flatMap } from '../internal/operators/flatMap'; -export { mergeMap } from '../internal/operators/mergeMap'; -export { mergeMapTo } from '../internal/operators/mergeMapTo'; -export { mergeScan } from '../internal/operators/mergeScan'; -export { mergeWith } from '../internal/operators/mergeWith'; -export { min } from '../internal/operators/min'; -export { multicast } from '../internal/operators/multicast'; -export { observeOn } from '../internal/operators/observeOn'; -export { onErrorResumeNext } from '../internal/operators/onErrorResumeNextWith'; -export { pairwise } from '../internal/operators/pairwise'; -export { partition } from '../internal/operators/partition'; -export { pluck } from '../internal/operators/pluck'; -export { publish } from '../internal/operators/publish'; -export { publishBehavior } from '../internal/operators/publishBehavior'; -export { publishLast } from '../internal/operators/publishLast'; -export { publishReplay } from '../internal/operators/publishReplay'; -export { race } from '../internal/operators/race'; -export { raceWith } from '../internal/operators/raceWith'; -export { reduce } from '../internal/operators/reduce'; -export { repeat } from '../internal/operators/repeat'; -export { repeatWhen } from '../internal/operators/repeatWhen'; -export { retry } from '../internal/operators/retry'; -export { retryWhen } from '../internal/operators/retryWhen'; -export { refCount } from '../internal/operators/refCount'; -export { sample } from '../internal/operators/sample'; -export { sampleTime } from '../internal/operators/sampleTime'; -export { scan } from '../internal/operators/scan'; -export { sequenceEqual } from '../internal/operators/sequenceEqual'; -export { share } from '../internal/operators/share'; -export { shareReplay } from '../internal/operators/shareReplay'; -export { single } from '../internal/operators/single'; -export { skip } from '../internal/operators/skip'; -export { skipLast } from '../internal/operators/skipLast'; -export { skipUntil } from '../internal/operators/skipUntil'; -export { skipWhile } from '../internal/operators/skipWhile'; -export { startWith } from '../internal/operators/startWith'; -export { subscribeOn } from '../internal/operators/subscribeOn'; -export { switchAll } from '../internal/operators/switchAll'; -export { switchMap } from '../internal/operators/switchMap'; -export { switchMapTo } from '../internal/operators/switchMapTo'; -export { switchScan } from '../internal/operators/switchScan'; -export { take } from '../internal/operators/take'; -export { takeLast } from '../internal/operators/takeLast'; -export { takeUntil } from '../internal/operators/takeUntil'; -export { takeWhile } from '../internal/operators/takeWhile'; -export { tap } from '../internal/operators/tap'; -export { throttle } from '../internal/operators/throttle'; -export { throttleTime } from '../internal/operators/throttleTime'; -export { throwIfEmpty } from '../internal/operators/throwIfEmpty'; -export { timeInterval } from '../internal/operators/timeInterval'; -export { timeout } from '../internal/operators/timeout'; -export { timeoutWith } from '../internal/operators/timeoutWith'; -export { timestamp } from '../internal/operators/timestamp'; -export { toArray } from '../internal/operators/toArray'; -export { window } from '../internal/operators/window'; -export { windowCount } from '../internal/operators/windowCount'; -export { windowTime } from '../internal/operators/windowTime'; -export { windowToggle } from '../internal/operators/windowToggle'; -export { windowWhen } from '../internal/operators/windowWhen'; -export { withLatestFrom } from '../internal/operators/withLatestFrom'; -export { zip } from '../internal/operators/zip'; -export { zipAll } from '../internal/operators/zipAll'; -export { zipWith } from '../internal/operators/zipWith'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/operators/index.js.map b/WechatBot/node_modules/rxjs/dist/esm5/operators/index.js.map deleted file mode 100644 index 9028717be..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/operators/index.js.map +++ /dev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SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,GAAG,EAAe,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAkB,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,OAAO,EAA8B,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/testing/index.js b/WechatBot/node_modules/rxjs/dist/esm5/testing/index.js deleted file mode 100755 index f0f7b53c2..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/testing/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export { TestScheduler } from '../internal/testing/TestScheduler'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/testing/index.js.map b/WechatBot/node_modules/rxjs/dist/esm5/testing/index.js.map deleted file mode 100644 index bc7fd0d18..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/testing/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAc,MAAM,mCAAmC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/webSocket/index.js b/WechatBot/node_modules/rxjs/dist/esm5/webSocket/index.js deleted file mode 100755 index a4bb4ea07..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/webSocket/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export { webSocket as webSocket } from '../internal/observable/dom/webSocket'; -export { WebSocketSubject } from '../internal/observable/dom/WebSocketSubject'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/esm5/webSocket/index.js.map b/WechatBot/node_modules/rxjs/dist/esm5/webSocket/index.js.map deleted file mode 100644 index 0912982e9..000000000 --- a/WechatBot/node_modules/rxjs/dist/esm5/webSocket/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/webSocket/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAA0B,MAAM,6CAA6C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/ajax/index.d.ts b/WechatBot/node_modules/rxjs/dist/types/ajax/index.d.ts deleted file mode 100644 index 862c9e021..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/ajax/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { ajax } from '../internal/ajax/ajax'; -export { AjaxError, AjaxTimeoutError } from '../internal/ajax/errors'; -export { AjaxResponse } from '../internal/ajax/AjaxResponse'; -export { AjaxRequest, AjaxConfig, AjaxDirection } from '../internal/ajax/types'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/ajax/index.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/ajax/index.d.ts.map deleted file mode 100644 index f65dd62c4..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/ajax/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ajax/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/fetch/index.d.ts b/WechatBot/node_modules/rxjs/dist/types/fetch/index.d.ts deleted file mode 100644 index 44a6e90a4..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/fetch/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { fromFetch } from '../internal/observable/dom/fetch'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/fetch/index.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/fetch/index.d.ts.map deleted file mode 100644 index 134594464..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/fetch/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/fetch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/index.d.ts b/WechatBot/node_modules/rxjs/dist/types/index.d.ts deleted file mode 100644 index fd6403909..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/index.d.ts +++ /dev/null @@ -1,173 +0,0 @@ -/// -/// -export { Observable } from './internal/Observable'; -export { ConnectableObservable } from './internal/observable/ConnectableObservable'; -export { GroupedObservable } from './internal/operators/groupBy'; -export { Operator } from './internal/Operator'; -export { observable } from './internal/symbol/observable'; -export { animationFrames } from './internal/observable/dom/animationFrames'; -export { Subject } from './internal/Subject'; -export { BehaviorSubject } from './internal/BehaviorSubject'; -export { ReplaySubject } from './internal/ReplaySubject'; -export { AsyncSubject } from './internal/AsyncSubject'; -export { asap, asapScheduler } from './internal/scheduler/asap'; -export { async, asyncScheduler } from './internal/scheduler/async'; -export { queue, queueScheduler } from './internal/scheduler/queue'; -export { animationFrame, animationFrameScheduler } from './internal/scheduler/animationFrame'; -export { VirtualTimeScheduler, VirtualAction } from './internal/scheduler/VirtualTimeScheduler'; -export { Scheduler } from './internal/Scheduler'; -export { Subscription } from './internal/Subscription'; -export { Subscriber } from './internal/Subscriber'; -export { Notification, NotificationKind } from './internal/Notification'; -export { pipe } from './internal/util/pipe'; -export { noop } from './internal/util/noop'; -export { identity } from './internal/util/identity'; -export { isObservable } from './internal/util/isObservable'; -export { lastValueFrom } from './internal/lastValueFrom'; -export { firstValueFrom } from './internal/firstValueFrom'; -export { ArgumentOutOfRangeError } from './internal/util/ArgumentOutOfRangeError'; -export { EmptyError } from './internal/util/EmptyError'; -export { NotFoundError } from './internal/util/NotFoundError'; -export { ObjectUnsubscribedError } from './internal/util/ObjectUnsubscribedError'; -export { SequenceError } from './internal/util/SequenceError'; -export { TimeoutError } from './internal/operators/timeout'; -export { UnsubscriptionError } from './internal/util/UnsubscriptionError'; -export { bindCallback } from './internal/observable/bindCallback'; -export { bindNodeCallback } from './internal/observable/bindNodeCallback'; -export { combineLatest } from './internal/observable/combineLatest'; -export { concat } from './internal/observable/concat'; -export { connectable } from './internal/observable/connectable'; -export { defer } from './internal/observable/defer'; -export { empty } from './internal/observable/empty'; -export { forkJoin } from './internal/observable/forkJoin'; -export { from } from './internal/observable/from'; -export { fromEvent } from './internal/observable/fromEvent'; -export { fromEventPattern } from './internal/observable/fromEventPattern'; -export { generate } from './internal/observable/generate'; -export { iif } from './internal/observable/iif'; -export { interval } from './internal/observable/interval'; -export { merge } from './internal/observable/merge'; -export { never } from './internal/observable/never'; -export { of } from './internal/observable/of'; -export { onErrorResumeNext } from './internal/observable/onErrorResumeNext'; -export { pairs } from './internal/observable/pairs'; -export { partition } from './internal/observable/partition'; -export { race } from './internal/observable/race'; -export { range } from './internal/observable/range'; -export { throwError } from './internal/observable/throwError'; -export { timer } from './internal/observable/timer'; -export { using } from './internal/observable/using'; -export { zip } from './internal/observable/zip'; -export { scheduled } from './internal/scheduled/scheduled'; -export { EMPTY } from './internal/observable/empty'; -export { NEVER } from './internal/observable/never'; -export * from './internal/types'; -export { config, GlobalConfig } from './internal/config'; -export { audit } from './internal/operators/audit'; -export { auditTime } from './internal/operators/auditTime'; -export { buffer } from './internal/operators/buffer'; -export { bufferCount } from './internal/operators/bufferCount'; -export { bufferTime } from './internal/operators/bufferTime'; -export { bufferToggle } from './internal/operators/bufferToggle'; -export { bufferWhen } from './internal/operators/bufferWhen'; -export { catchError } from './internal/operators/catchError'; -export { combineAll } from './internal/operators/combineAll'; -export { combineLatestAll } from './internal/operators/combineLatestAll'; -export { combineLatestWith } from './internal/operators/combineLatestWith'; -export { concatAll } from './internal/operators/concatAll'; -export { concatMap } from './internal/operators/concatMap'; -export { concatMapTo } from './internal/operators/concatMapTo'; -export { concatWith } from './internal/operators/concatWith'; -export { connect, ConnectConfig } from './internal/operators/connect'; -export { count } from './internal/operators/count'; -export { debounce } from './internal/operators/debounce'; -export { debounceTime } from './internal/operators/debounceTime'; -export { defaultIfEmpty } from './internal/operators/defaultIfEmpty'; -export { delay } from './internal/operators/delay'; -export { delayWhen } from './internal/operators/delayWhen'; -export { dematerialize } from './internal/operators/dematerialize'; -export { distinct } from './internal/operators/distinct'; -export { distinctUntilChanged } from './internal/operators/distinctUntilChanged'; -export { distinctUntilKeyChanged } from './internal/operators/distinctUntilKeyChanged'; -export { elementAt } from './internal/operators/elementAt'; -export { endWith } from './internal/operators/endWith'; -export { every } from './internal/operators/every'; -export { exhaust } from './internal/operators/exhaust'; -export { exhaustAll } from './internal/operators/exhaustAll'; -export { exhaustMap } from './internal/operators/exhaustMap'; -export { expand } from './internal/operators/expand'; -export { filter } from './internal/operators/filter'; -export { finalize } from './internal/operators/finalize'; -export { find } from './internal/operators/find'; -export { findIndex } from './internal/operators/findIndex'; -export { first } from './internal/operators/first'; -export { groupBy, BasicGroupByOptions, GroupByOptionsWithElement } from './internal/operators/groupBy'; -export { ignoreElements } from './internal/operators/ignoreElements'; -export { isEmpty } from './internal/operators/isEmpty'; -export { last } from './internal/operators/last'; -export { map } from './internal/operators/map'; -export { mapTo } from './internal/operators/mapTo'; -export { materialize } from './internal/operators/materialize'; -export { max } from './internal/operators/max'; -export { mergeAll } from './internal/operators/mergeAll'; -export { flatMap } from './internal/operators/flatMap'; -export { mergeMap } from './internal/operators/mergeMap'; -export { mergeMapTo } from './internal/operators/mergeMapTo'; -export { mergeScan } from './internal/operators/mergeScan'; -export { mergeWith } from './internal/operators/mergeWith'; -export { min } from './internal/operators/min'; -export { multicast } from './internal/operators/multicast'; -export { observeOn } from './internal/operators/observeOn'; -export { onErrorResumeNextWith } from './internal/operators/onErrorResumeNextWith'; -export { pairwise } from './internal/operators/pairwise'; -export { pluck } from './internal/operators/pluck'; -export { publish } from './internal/operators/publish'; -export { publishBehavior } from './internal/operators/publishBehavior'; -export { publishLast } from './internal/operators/publishLast'; -export { publishReplay } from './internal/operators/publishReplay'; -export { raceWith } from './internal/operators/raceWith'; -export { reduce } from './internal/operators/reduce'; -export { repeat, RepeatConfig } from './internal/operators/repeat'; -export { repeatWhen } from './internal/operators/repeatWhen'; -export { retry, RetryConfig } from './internal/operators/retry'; -export { retryWhen } from './internal/operators/retryWhen'; -export { refCount } from './internal/operators/refCount'; -export { sample } from './internal/operators/sample'; -export { sampleTime } from './internal/operators/sampleTime'; -export { scan } from './internal/operators/scan'; -export { sequenceEqual } from './internal/operators/sequenceEqual'; -export { share, ShareConfig } from './internal/operators/share'; -export { shareReplay, ShareReplayConfig } from './internal/operators/shareReplay'; -export { single } from './internal/operators/single'; -export { skip } from './internal/operators/skip'; -export { skipLast } from './internal/operators/skipLast'; -export { skipUntil } from './internal/operators/skipUntil'; -export { skipWhile } from './internal/operators/skipWhile'; -export { startWith } from './internal/operators/startWith'; -export { subscribeOn } from './internal/operators/subscribeOn'; -export { switchAll } from './internal/operators/switchAll'; -export { switchMap } from './internal/operators/switchMap'; -export { switchMapTo } from './internal/operators/switchMapTo'; -export { switchScan } from './internal/operators/switchScan'; -export { take } from './internal/operators/take'; -export { takeLast } from './internal/operators/takeLast'; -export { takeUntil } from './internal/operators/takeUntil'; -export { takeWhile } from './internal/operators/takeWhile'; -export { tap, TapObserver } from './internal/operators/tap'; -export { throttle, ThrottleConfig } from './internal/operators/throttle'; -export { throttleTime } from './internal/operators/throttleTime'; -export { throwIfEmpty } from './internal/operators/throwIfEmpty'; -export { timeInterval } from './internal/operators/timeInterval'; -export { timeout, TimeoutConfig, TimeoutInfo } from './internal/operators/timeout'; -export { timeoutWith } from './internal/operators/timeoutWith'; -export { timestamp } from './internal/operators/timestamp'; -export { toArray } from './internal/operators/toArray'; -export { window } from './internal/operators/window'; -export { windowCount } from './internal/operators/windowCount'; -export { windowTime } from './internal/operators/windowTime'; -export { windowToggle } from './internal/operators/windowToggle'; -export { windowWhen } from './internal/operators/windowWhen'; -export { withLatestFrom } from './internal/operators/withLatestFrom'; -export { zipAll } from './internal/operators/zipAll'; -export { zipWith } from './internal/operators/zipWith'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/index.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/index.d.ts.map deleted file mode 100644 index 5587a1f8a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;AAeA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,2CAA2C,CAAC;AAG5E,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGvD,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAGnD,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGzE,OAAO,EAAE,IAAI,EAAE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C;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/AnyCatcher.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/AnyCatcher.d.ts deleted file mode 100644 index 2e39a597a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/AnyCatcher.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -declare const anyCatcherSymbol: unique symbol; -/** - * This is just a type that we're using to identify `any` being passed to - * function overloads. This is used because of situations like {@link forkJoin}, - * where it could return an `Observable` or an `Observable<{ [key: K]: T }>`, - * so `forkJoin(any)` would mean we need to return `Observable`. - */ -export declare type AnyCatcher = typeof anyCatcherSymbol; -export {}; -//# sourceMappingURL=AnyCatcher.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/AnyCatcher.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/AnyCatcher.d.ts.map deleted file mode 100644 index 4feb5cc67..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/AnyCatcher.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AnyCatcher.d.ts","sourceRoot":"","sources":["../../../src/internal/AnyCatcher.ts"],"names":[],"mappings":"AAKA,OAAO,CAAC,MAAM,gBAAgB,EAAE,OAAO,MAAM,CAAC;AAE9C;;;;;GAKG;AACH,oBAAY,UAAU,GAAG,OAAO,gBAAgB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/AsyncSubject.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/AsyncSubject.d.ts deleted file mode 100644 index dcdc589fa..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/AsyncSubject.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Subject } from './Subject'; -/** - * A variant of Subject that only emits a value when it completes. It will emit - * its latest value to all its observers on completion. - * - * @class AsyncSubject - */ -export declare class AsyncSubject extends Subject { - private _value; - private _hasValue; - private _isComplete; - next(value: T): void; - complete(): void; -} -//# sourceMappingURL=AsyncSubject.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/AsyncSubject.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/AsyncSubject.d.ts.map deleted file mode 100644 index 650e9ffd2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/AsyncSubject.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsyncSubject.d.ts","sourceRoot":"","sources":["../../../src/internal/AsyncSubject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC;;;;;GAKG;AACH,qBAAa,YAAY,CAAC,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,CAAC;IAC7C,OAAO,CAAC,MAAM,CAAkB;IAChC,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,WAAW,CAAS;IAa5B,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAOpB,QAAQ,IAAI,IAAI;CAQjB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/BehaviorSubject.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/BehaviorSubject.d.ts deleted file mode 100644 index fa9db7ec3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/BehaviorSubject.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Subject } from './Subject'; -/** - * A variant of Subject that requires an initial value and emits its current - * value whenever it is subscribed to. - * - * @class BehaviorSubject - */ -export declare class BehaviorSubject extends Subject { - private _value; - constructor(_value: T); - get value(): T; - getValue(): T; - next(value: T): void; -} -//# sourceMappingURL=BehaviorSubject.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/BehaviorSubject.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/BehaviorSubject.d.ts.map deleted file mode 100644 index 8bd063ba0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/BehaviorSubject.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"BehaviorSubject.d.ts","sourceRoot":"","sources":["../../../src/internal/BehaviorSubject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC;;;;;GAKG;AACH,qBAAa,eAAe,CAAC,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,CAAC;IACpC,OAAO,CAAC,MAAM;gBAAN,MAAM,EAAE,CAAC;IAI7B,IAAI,KAAK,IAAI,CAAC,CAEb;IASD,QAAQ,IAAI,CAAC;IASb,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;CAGrB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Notification.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/Notification.d.ts deleted file mode 100644 index 20976280d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Notification.d.ts +++ /dev/null @@ -1,180 +0,0 @@ -import { PartialObserver, ObservableNotification, CompleteNotification, NextNotification, ErrorNotification } from './types'; -import { Observable } from './Observable'; -/** - * @deprecated Use a string literal instead. `NotificationKind` will be replaced with a type alias in v8. - * It will not be replaced with a const enum as those are not compatible with isolated modules. - */ -export declare enum NotificationKind { - NEXT = "N", - ERROR = "E", - COMPLETE = "C" -} -/** - * Represents a push-based event or value that an {@link Observable} can emit. - * This class is particularly useful for operators that manage notifications, - * like {@link materialize}, {@link dematerialize}, {@link observeOn}, and - * others. Besides wrapping the actual delivered value, it also annotates it - * with metadata of, for instance, what type of push message it is (`next`, - * `error`, or `complete`). - * - * @see {@link materialize} - * @see {@link dematerialize} - * @see {@link observeOn} - * @deprecated It is NOT recommended to create instances of `Notification` directly. - * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}. - * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`. - * Will be removed in v8. - */ -export declare class Notification { - readonly kind: 'N' | 'E' | 'C'; - readonly value?: T | undefined; - readonly error?: any; - /** - * A value signifying that the notification will "next" if observed. In truth, - * This is really synonymous with just checking `kind === "N"`. - * @deprecated Will be removed in v8. Instead, just check to see if the value of `kind` is `"N"`. - */ - readonly hasValue: boolean; - /** - * Creates a "Next" notification object. - * @param kind Always `'N'` - * @param value The value to notify with if observed. - * @deprecated Internal implementation detail. Use {@link Notification#createNext createNext} instead. - */ - constructor(kind: 'N', value?: T); - /** - * Creates an "Error" notification object. - * @param kind Always `'E'` - * @param value Always `undefined` - * @param error The error to notify with if observed. - * @deprecated Internal implementation detail. Use {@link Notification#createError createError} instead. - */ - constructor(kind: 'E', value: undefined, error: any); - /** - * Creates a "completion" notification object. - * @param kind Always `'C'` - * @deprecated Internal implementation detail. Use {@link Notification#createComplete createComplete} instead. - */ - constructor(kind: 'C'); - /** - * Executes the appropriate handler on a passed `observer` given the `kind` of notification. - * If the handler is missing it will do nothing. Even if the notification is an error, if - * there is no error handler on the observer, an error will not be thrown, it will noop. - * @param observer The observer to notify. - */ - observe(observer: PartialObserver): void; - /** - * Executes a notification on the appropriate handler from a list provided. - * If a handler is missing for the kind of notification, nothing is called - * and no error is thrown, it will be a noop. - * @param next A next handler - * @param error An error handler - * @param complete A complete handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - do(next: (value: T) => void, error: (err: any) => void, complete: () => void): void; - /** - * Executes a notification on the appropriate handler from a list provided. - * If a handler is missing for the kind of notification, nothing is called - * and no error is thrown, it will be a noop. - * @param next A next handler - * @param error An error handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - do(next: (value: T) => void, error: (err: any) => void): void; - /** - * Executes the next handler if the Notification is of `kind` `"N"`. Otherwise - * this will not error, and it will be a noop. - * @param next The next handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - do(next: (value: T) => void): void; - /** - * Executes a notification on the appropriate handler from a list provided. - * If a handler is missing for the kind of notification, nothing is called - * and no error is thrown, it will be a noop. - * @param next A next handler - * @param error An error handler - * @param complete A complete handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - accept(next: (value: T) => void, error: (err: any) => void, complete: () => void): void; - /** - * Executes a notification on the appropriate handler from a list provided. - * If a handler is missing for the kind of notification, nothing is called - * and no error is thrown, it will be a noop. - * @param next A next handler - * @param error An error handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - accept(next: (value: T) => void, error: (err: any) => void): void; - /** - * Executes the next handler if the Notification is of `kind` `"N"`. Otherwise - * this will not error, and it will be a noop. - * @param next The next handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - accept(next: (value: T) => void): void; - /** - * Executes the appropriate handler on a passed `observer` given the `kind` of notification. - * If the handler is missing it will do nothing. Even if the notification is an error, if - * there is no error handler on the observer, an error will not be thrown, it will noop. - * @param observer The observer to notify. - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - accept(observer: PartialObserver): void; - /** - * Returns a simple Observable that just delivers the notification represented - * by this Notification instance. - * - * @deprecated Will be removed in v8. To convert a `Notification` to an {@link Observable}, - * use {@link of} and {@link dematerialize}: `of(notification).pipe(dematerialize())`. - */ - toObservable(): Observable; - private static completeNotification; - /** - * A shortcut to create a Notification instance of the type `next` from a - * given value. - * @param {T} value The `next` value. - * @return {Notification} The "next" Notification representing the - * argument. - * @nocollapse - * @deprecated It is NOT recommended to create instances of `Notification` directly. - * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}. - * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`. - * Will be removed in v8. - */ - static createNext(value: T): Notification & NextNotification; - /** - * A shortcut to create a Notification instance of the type `error` from a - * given error. - * @param {any} [err] The `error` error. - * @return {Notification} The "error" Notification representing the - * argument. - * @nocollapse - * @deprecated It is NOT recommended to create instances of `Notification` directly. - * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}. - * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`. - * Will be removed in v8. - */ - static createError(err?: any): Notification & ErrorNotification; - /** - * A shortcut to create a Notification instance of the type `complete`. - * @return {Notification} The valueless "complete" Notification. - * @nocollapse - * @deprecated It is NOT recommended to create instances of `Notification` directly. - * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}. - * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`. - * Will be removed in v8. - */ - static createComplete(): Notification & CompleteNotification; -} -/** - * Executes the appropriate handler on a passed `observer` given the `kind` of notification. - * If the handler is missing it will do nothing. Even if the notification is an error, if - * there is no error handler on the observer, an error will not be thrown, it will noop. - * @param notification The notification object to observe. - * @param observer The observer to notify. - */ -export declare function observeNotification(notification: ObservableNotification, observer: PartialObserver): void; -//# sourceMappingURL=Notification.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Notification.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/Notification.d.ts.map deleted file mode 100644 index 25b71850b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Notification.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":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,IAAI;IAMlC;;;;;;;;OAQG;IACH,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IACvF;;;;;;;OAOG;IACH,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAAE,KAAK,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,GAAG,IAAI;IACjE;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GAAG,IAAI;IAEtC;;;;;;OAMG;IACH,MAAM,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI;IAO1C;;;;;;OAMG;IACH,YAAY,IAAI,UAAU,CAAC,CAAC,CAAC;IA0B7B,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAuE;IAC1G;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;IAI7B;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,EAAE,GAAG;IAI5B;;;;;;;;OAQG;IACH,MAAM,CAAC,cAAc,IAAI,YAAY,CAAC,KAAK,CAAC,GAAG,oBAAoB;CAGpE;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,YAAY,EAAE,sBAAsB,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC,QAM3G"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/NotificationFactories.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/NotificationFactories.d.ts deleted file mode 100644 index 298d4cde5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/NotificationFactories.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=NotificationFactories.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/NotificationFactories.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/NotificationFactories.d.ts.map deleted file mode 100644 index e3f44d0bf..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/NotificationFactories.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NotificationFactories.d.ts","sourceRoot":"","sources":["../../../src/internal/NotificationFactories.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Observable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/Observable.d.ts deleted file mode 100644 index 717e3edb3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Observable.d.ts +++ /dev/null @@ -1,128 +0,0 @@ -import { Operator } from './Operator'; -import { Subscriber } from './Subscriber'; -import { Subscription } from './Subscription'; -import { TeardownLogic, OperatorFunction, Subscribable, Observer } from './types'; -/** - * A representation of any set of values over any amount of time. This is the most basic building block - * of RxJS. - * - * @class Observable - */ -export declare class Observable implements Subscribable { - /** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ - source: Observable | undefined; - /** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ - operator: Operator | undefined; - /** - * @constructor - * @param {Function} subscribe the function that is called when the Observable is - * initially subscribed to. This function is given a Subscriber, to which new values - * can be `next`ed, or an `error` method can be called to raise an error, or - * `complete` can be called to notify of a successful completion. - */ - constructor(subscribe?: (this: Observable, subscriber: Subscriber) => TeardownLogic); - /** - * Creates a new Observable by calling the Observable constructor - * @owner Observable - * @method create - * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor - * @return {Observable} a new observable - * @nocollapse - * @deprecated Use `new Observable()` instead. Will be removed in v8. - */ - static create: (...args: any[]) => any; - /** - * Creates a new Observable, with this Observable instance as the source, and the passed - * operator defined as the new observable's operator. - * @method lift - * @param operator the operator defining the operation to take on the observable - * @return a new observable with the Operator applied - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - * If you have implemented an operator using `lift`, it is recommended that you create an - * operator by simply returning `new Observable()` directly. See "Creating new operators from - * scratch" section here: https://rxjs.dev/guide/operators - */ - lift(operator?: Operator): Observable; - subscribe(observerOrNext?: Partial> | ((value: T) => void)): Subscription; - /** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */ - subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription; - /** - * Used as a NON-CANCELLABLE means of subscribing to an observable, for use with - * APIs that expect promises, like `async/await`. You cannot unsubscribe from this. - * - * **WARNING**: Only use this with observables you *know* will complete. If the source - * observable does not complete, you will end up with a promise that is hung up, and - * potentially all of the state of an async function hanging out in memory. To avoid - * this situation, look into adding something like {@link timeout}, {@link take}, - * {@link takeWhile}, or {@link takeUntil} amongst others. - * - * #### Example - * - * ```ts - * import { interval, take } from 'rxjs'; - * - * const source$ = interval(1000).pipe(take(4)); - * - * async function getTotal() { - * let total = 0; - * - * await source$.forEach(value => { - * total += value; - * console.log('observable -> ' + value); - * }); - * - * return total; - * } - * - * getTotal().then( - * total => console.log('Total: ' + total) - * ); - * - * // Expected: - * // 'observable -> 0' - * // 'observable -> 1' - * // 'observable -> 2' - * // 'observable -> 3' - * // 'Total: 6' - * ``` - * - * @param next a handler for each value emitted by the observable - * @return a promise that either resolves on observable completion or - * rejects with the handled error - */ - forEach(next: (value: T) => void): Promise; - /** - * @param next a handler for each value emitted by the observable - * @param promiseCtor a constructor function used to instantiate the Promise - * @return a promise that either resolves on observable completion or - * rejects with the handled error - * @deprecated Passing a Promise constructor will no longer be available - * in upcoming versions of RxJS. This is because it adds weight to the library, for very - * little benefit. If you need this functionality, it is recommended that you either - * polyfill Promise, or you create an adapter to convert the returned native promise - * to whatever promise implementation you wanted. Will be removed in v8. - */ - forEach(next: (value: T) => void, promiseCtor: PromiseConstructorLike): Promise; - pipe(): Observable; - pipe(op1: OperatorFunction): Observable; - pipe(op1: OperatorFunction, op2: OperatorFunction): Observable; - pipe(op1: OperatorFunction, op2: OperatorFunction, op3: OperatorFunction): Observable; - pipe(op1: OperatorFunction, op2: OperatorFunction, op3: OperatorFunction, op4: OperatorFunction): Observable; - pipe(op1: OperatorFunction, op2: OperatorFunction, op3: OperatorFunction, op4: OperatorFunction, op5: OperatorFunction): Observable; - pipe(op1: OperatorFunction, op2: OperatorFunction, op3: OperatorFunction, op4: OperatorFunction, op5: OperatorFunction, op6: OperatorFunction): Observable; - pipe(op1: OperatorFunction, op2: OperatorFunction, op3: OperatorFunction, op4: OperatorFunction, op5: OperatorFunction, op6: OperatorFunction, op7: OperatorFunction): Observable; - pipe(op1: OperatorFunction, op2: OperatorFunction, op3: OperatorFunction, op4: OperatorFunction, op5: OperatorFunction, op6: OperatorFunction, op7: OperatorFunction, op8: OperatorFunction): Observable; - pipe(op1: OperatorFunction, op2: OperatorFunction, op3: OperatorFunction, op4: OperatorFunction, op5: OperatorFunction, op6: OperatorFunction, op7: OperatorFunction, op8: OperatorFunction, op9: OperatorFunction): Observable; - pipe(op1: OperatorFunction, op2: OperatorFunction, op3: OperatorFunction, op4: OperatorFunction, op5: OperatorFunction, op6: OperatorFunction, op7: OperatorFunction, op8: OperatorFunction, op9: OperatorFunction, ...operations: OperatorFunction[]): Observable; - /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */ - toPromise(): Promise; - /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */ - toPromise(PromiseCtor: typeof Promise): Promise; - /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */ - toPromise(PromiseCtor: PromiseConstructorLike): Promise; -} -//# sourceMappingURL=Observable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Observable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/Observable.d.ts.map deleted file mode 100644 index a54927baf..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Observable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Observable.d.ts","sourceRoot":"","sources":["../../../src/internal/Observable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAkB,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAkB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOlF;;;;;GAKG;AACH,qBAAa,UAAU,CAAC,CAAC,CAAE,YAAW,YAAY,CAAC,CAAC,CAAC;IACnD;;OAEG;IACH,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;IAEpC;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC;IAEvC;;;;;;OAMG;gBACS,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,aAAa;IAQzF;;;;;;;;OAQG;IACH,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAEpC;IAEF;;;;;;;;;;OAUG;IACH,IAAI,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IAOjD,SAAS,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,QAA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C,EAAE,GAC1C,UAAU,CAAC,OAAO,CAAC;IA4BtB,2JAA2J;IAC3J,SAAS,IAAI,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IACnC,2JAA2J;IAC3J,SAAS,CAAC,WAAW,EAAE,OAAO,OAAO,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;IAC9D,2JAA2J;IAC3J,SAAS,CAAC,WAAW,EAAE,sBAAsB,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC;CAiCvE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Operator.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/Operator.d.ts deleted file mode 100644 index d7377ee11..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Operator.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Subscriber } from './Subscriber'; -import { TeardownLogic } from './types'; -/*** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ -export interface Operator { - call(subscriber: Subscriber, source: any): TeardownLogic; -} -//# sourceMappingURL=Operator.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Operator.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/Operator.d.ts.map deleted file mode 100644 index 13e2530e0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Operator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Operator.d.ts","sourceRoot":"","sources":["../../../src/internal/Operator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC;;GAEG;AACH,MAAM,WAAW,QAAQ,CAAC,CAAC,EAAE,CAAC;IAC5B,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,GAAG,GAAG,aAAa,CAAC;CAC7D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ReplaySubject.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/ReplaySubject.d.ts deleted file mode 100644 index 793963f2f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ReplaySubject.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Subject } from './Subject'; -import { TimestampProvider } from './types'; -/** - * A variant of {@link Subject} that "replays" old values to new subscribers by emitting them when they first subscribe. - * - * `ReplaySubject` has an internal buffer that will store a specified number of values that it has observed. Like `Subject`, - * `ReplaySubject` "observes" values by having them passed to its `next` method. When it observes a value, it will store that - * value for a time determined by the configuration of the `ReplaySubject`, as passed to its constructor. - * - * When a new subscriber subscribes to the `ReplaySubject` instance, it will synchronously emit all values in its buffer in - * a First-In-First-Out (FIFO) manner. The `ReplaySubject` will also complete, if it has observed completion; and it will - * error if it has observed an error. - * - * There are two main configuration items to be concerned with: - * - * 1. `bufferSize` - This will determine how many items are stored in the buffer, defaults to infinite. - * 2. `windowTime` - The amount of time to hold a value in the buffer before removing it from the buffer. - * - * Both configurations may exist simultaneously. So if you would like to buffer a maximum of 3 values, as long as the values - * are less than 2 seconds old, you could do so with a `new ReplaySubject(3, 2000)`. - * - * ### Differences with BehaviorSubject - * - * `BehaviorSubject` is similar to `new ReplaySubject(1)`, with a couple of exceptions: - * - * 1. `BehaviorSubject` comes "primed" with a single value upon construction. - * 2. `ReplaySubject` will replay values, even after observing an error, where `BehaviorSubject` will not. - * - * @see {@link Subject} - * @see {@link BehaviorSubject} - * @see {@link shareReplay} - */ -export declare class ReplaySubject extends Subject { - private _bufferSize; - private _windowTime; - private _timestampProvider; - private _buffer; - private _infiniteTimeWindow; - /** - * @param bufferSize The size of the buffer to replay on subscription - * @param windowTime The amount of time the buffered items will stay buffered - * @param timestampProvider An object with a `now()` method that provides the current timestamp. This is used to - * calculate the amount of time something has been buffered. - */ - constructor(_bufferSize?: number, _windowTime?: number, _timestampProvider?: TimestampProvider); - next(value: T): void; - private _trimBuffer; -} -//# sourceMappingURL=ReplaySubject.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ReplaySubject.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/ReplaySubject.d.ts.map deleted file mode 100644 index a66a0f9ed..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ReplaySubject.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ReplaySubject.d.ts","sourceRoot":"","sources":["../../../src/internal/ReplaySubject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAK5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,qBAAa,aAAa,CAAC,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,CAAC;IAW5C,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,kBAAkB;IAZ5B,OAAO,CAAC,OAAO,CAAsB;IACrC,OAAO,CAAC,mBAAmB,CAAQ;IAEnC;;;;;OAKG;gBAEO,WAAW,SAAW,EACtB,WAAW,SAAW,EACtB,kBAAkB,GAAE,iBAAyC;IAQvE,IAAI,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IA8BpB,OAAO,CAAC,WAAW;CAsBpB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Scheduler.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/Scheduler.d.ts deleted file mode 100644 index 5df5e133e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Scheduler.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { Action } from './scheduler/Action'; -import { Subscription } from './Subscription'; -import { SchedulerLike, SchedulerAction } from './types'; -/** - * An execution context and a data structure to order tasks and schedule their - * execution. Provides a notion of (potentially virtual) time, through the - * `now()` getter method. - * - * Each unit of work in a Scheduler is called an `Action`. - * - * ```ts - * class Scheduler { - * now(): number; - * schedule(work, delay?, state?): Subscription; - * } - * ``` - * - * @class Scheduler - * @deprecated Scheduler is an internal implementation detail of RxJS, and - * should not be used directly. Rather, create your own class and implement - * {@link SchedulerLike}. Will be made internal in v8. - */ -export declare class Scheduler implements SchedulerLike { - private schedulerActionCtor; - static now: () => number; - constructor(schedulerActionCtor: typeof Action, now?: () => number); - /** - * A getter method that returns a number representing the current time - * (at the time this function was called) according to the scheduler's own - * internal clock. - * @return {number} A number that represents the current time. May or may not - * have a relation to wall-clock time. May or may not refer to a time unit - * (e.g. milliseconds). - */ - now: () => number; - /** - * Schedules a function, `work`, for execution. May happen at some point in - * the future, according to the `delay` parameter, if specified. May be passed - * some context object, `state`, which will be passed to the `work` function. - * - * The given arguments will be processed an stored as an Action object in a - * queue of actions. - * - * @param {function(state: ?T): ?Subscription} work A function representing a - * task, or some unit of work to be executed by the Scheduler. - * @param {number} [delay] Time to wait before executing the work, where the - * time unit is implicit and defined by the Scheduler itself. - * @param {T} [state] Some contextual data that the `work` function uses when - * called by the Scheduler. - * @return {Subscription} A subscription in order to be able to unsubscribe - * the scheduled work. - */ - schedule(work: (this: SchedulerAction, state?: T) => void, delay?: number, state?: T): Subscription; -} -//# sourceMappingURL=Scheduler.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Scheduler.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/Scheduler.d.ts.map deleted file mode 100644 index 5df0ea6b4..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Scheduler.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Scheduler.d.ts","sourceRoot":"","sources":["../../../src/internal/Scheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAGzD;;;;;;;;;;;;;;;;;;GAkBG;AACH,qBAAa,SAAU,YAAW,aAAa;IAGjC,OAAO,CAAC,mBAAmB;IAFvC,OAAc,GAAG,EAAE,MAAM,MAAM,CAA6B;gBAExC,mBAAmB,EAAE,OAAO,MAAM,EAAE,GAAG,GAAE,MAAM,MAAsB;IAIzF;;;;;;;OAOG;IACI,GAAG,EAAE,MAAM,MAAM,CAAC;IAEzB;;;;;;;;;;;;;;;;OAgBG;IACI,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,KAAK,GAAE,MAAU,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,YAAY;CAGpH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Subject.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/Subject.d.ts deleted file mode 100644 index b5ba5f5a5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Subject.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { Operator } from './Operator'; -import { Observable } from './Observable'; -import { Observer, SubscriptionLike } from './types'; -/** - * A Subject is a special type of Observable that allows values to be - * multicasted to many Observers. Subjects are like EventEmitters. - * - * Every Subject is an Observable and an Observer. You can subscribe to a - * Subject, and you can call next to feed values as well as error and complete. - */ -export declare class Subject extends Observable implements SubscriptionLike { - closed: boolean; - private currentObservers; - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - observers: Observer[]; - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - isStopped: boolean; - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - hasError: boolean; - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - thrownError: any; - /** - * Creates a "subject" by basically gluing an observer to an observable. - * - * @nocollapse - * @deprecated Recommended you do not use. Will be removed at some point in the future. Plans for replacement still under discussion. - */ - static create: (...args: any[]) => any; - constructor(); - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - lift(operator: Operator): Observable; - next(value: T): void; - error(err: any): void; - complete(): void; - unsubscribe(): void; - get observed(): boolean; - /** - * Creates a new Observable with this Subject as the source. You can do this - * to create custom Observer-side logic of the Subject and conceal it from - * code that uses the Observable. - * @return {Observable} Observable that the Subject casts to - */ - asObservable(): Observable; -} -/** - * @class AnonymousSubject - */ -export declare class AnonymousSubject extends Subject { - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - destination?: Observer | undefined; - constructor( - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - destination?: Observer | undefined, source?: Observable); - next(value: T): void; - error(err: any): void; - complete(): void; -} -//# sourceMappingURL=Subject.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Subject.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/Subject.d.ts.map deleted file mode 100644 index a6bffc6ee..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Subject.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subject.d.ts","sourceRoot":"","sources":["../../../src/internal/Subject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAiB,MAAM,SAAS,CAAC;AAKpE;;;;;;GAMG;AACH,qBAAa,OAAO,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAE,YAAW,gBAAgB;IACvE,MAAM,UAAS;IAEf,OAAO,CAAC,gBAAgB,CAA8B;IAEtD,oGAAoG;IACpG,SAAS,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAM;IAC9B,oGAAoG;IACpG,SAAS,UAAS;IAClB,oGAAoG;IACpG,QAAQ,UAAS;IACjB,oGAAoG;IACpG,WAAW,EAAE,GAAG,CAAQ;IAExB;;;;;OAKG;IACH,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAEpC;;IAOF,oGAAoG;IACpG,IAAI,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC;IAahD,IAAI,CAAC,KAAK,EAAE,CAAC;IAcb,KAAK,CAAC,GAAG,EAAE,GAAG;IAcd,QAAQ;IAaR,WAAW;IAKX,IAAI,QAAQ,YAEX;IAuCD;;;;;OAKG;IACH,YAAY,IAAI,UAAU,CAAC,CAAC,CAAC;CAK9B;AAED;;GAEG;AACH,qBAAa,gBAAgB,CAAC,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,CAAC;IAE/C,oGAAoG;IAC7F,WAAW,CAAC;;IADnB,oGAAoG;IAC7F,WAAW,CAAC,yBAAa,EAChC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;IAMxB,IAAI,CAAC,KAAK,EAAE,CAAC;IAIb,KAAK,CAAC,GAAG,EAAE,GAAG;IAId,QAAQ;CAQT"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Subscriber.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/Subscriber.d.ts deleted file mode 100644 index bbbfec399..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Subscriber.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { Observer } from './types'; -import { Subscription } from './Subscription'; -/** - * Implements the {@link Observer} interface and extends the - * {@link Subscription} class. While the {@link Observer} is the public API for - * consuming the values of an {@link Observable}, all Observers get converted to - * a Subscriber, in order to provide Subscription-like capabilities such as - * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for - * implementing operators, but it is rarely used as a public API. - * - * @class Subscriber - */ -export declare class Subscriber extends Subscription implements Observer { - /** - * A static factory for a Subscriber, given a (potentially partial) definition - * of an Observer. - * @param next The `next` callback of an Observer. - * @param error The `error` callback of an - * Observer. - * @param complete The `complete` callback of an - * Observer. - * @return A Subscriber wrapping the (partially defined) - * Observer represented by the given arguments. - * @nocollapse - * @deprecated Do not use. Will be removed in v8. There is no replacement for this - * method, and there is no reason to be creating instances of `Subscriber` directly. - * If you have a specific use case, please file an issue. - */ - static create(next?: (x?: T) => void, error?: (e?: any) => void, complete?: () => void): Subscriber; - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - protected isStopped: boolean; - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - protected destination: Subscriber | Observer; - /** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - * There is no reason to directly create an instance of Subscriber. This type is exported for typings reasons. - */ - constructor(destination?: Subscriber | Observer); - /** - * The {@link Observer} callback to receive notifications of type `next` from - * the Observable, with a value. The Observable may call this method 0 or more - * times. - * @param {T} [value] The `next` value. - * @return {void} - */ - next(value?: T): void; - /** - * The {@link Observer} callback to receive notifications of type `error` from - * the Observable, with an attached `Error`. Notifies the Observer that - * the Observable has experienced an error condition. - * @param {any} [err] The `error` exception. - * @return {void} - */ - error(err?: any): void; - /** - * The {@link Observer} callback to receive a valueless notification of type - * `complete` from the Observable. Notifies the Observer that the Observable - * has finished sending push-based notifications. - * @return {void} - */ - complete(): void; - unsubscribe(): void; - protected _next(value: T): void; - protected _error(err: any): void; - protected _complete(): void; -} -export declare class SafeSubscriber extends Subscriber { - constructor(observerOrNext?: Partial> | ((value: T) => void) | null, error?: ((e?: any) => void) | null, complete?: (() => void) | null); -} -/** - * The observer used as a stub for subscriptions where the user did not - * pass any arguments to `subscribe`. Comes with the default error handling - * behavior. - */ -export declare const EMPTY_OBSERVER: Readonly> & { - closed: true; -}; -//# sourceMappingURL=Subscriber.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Subscriber.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/Subscriber.d.ts.map deleted file mode 100644 index 8f8fd13a5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Subscriber.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subscriber.d.ts","sourceRoot":"","sources":["../../../src/internal/Subscriber.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAA0B,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAkB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQ9D;;;;;;;;;GASG;AACH,qBAAa,UAAU,CAAC,CAAC,CAAE,SAAQ,YAAa,YAAW,QAAQ,CAAC,CAAC,CAAC;IACpE;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC;IAIzG,oGAAoG;IACpG,SAAS,CAAC,SAAS,EAAE,OAAO,CAAS;IACrC,oGAAoG;IACpG,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IAEvD;;;OAGG;gBACS,WAAW,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC;IAczD;;;;;;OAMG;IACH,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI;IAQrB;;;;;;OAMG;IACH,KAAK,CAAC,GAAG,CAAC,EAAE,GAAG,GAAG,IAAI;IAStB;;;;;OAKG;IACH,QAAQ,IAAI,IAAI;IAShB,WAAW,IAAI,IAAI;IAQnB,SAAS,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAI/B,SAAS,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IAQhC,SAAS,CAAC,SAAS,IAAI,IAAI;CAO5B;AAwDD,qBAAa,cAAc,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;gBAEhD,cAAc,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG,IAAI,EACnE,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,EAClC,QAAQ,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI;CAqCjC;AAgCD;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG;IAAE,MAAM,EAAE,IAAI,CAAA;CAKpE,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Subscription.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/Subscription.d.ts deleted file mode 100644 index 3f22a00ec..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Subscription.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { SubscriptionLike, TeardownLogic } from './types'; -/** - * Represents a disposable resource, such as the execution of an Observable. A - * Subscription has one important method, `unsubscribe`, that takes no argument - * and just disposes the resource held by the subscription. - * - * Additionally, subscriptions may be grouped together through the `add()` - * method, which will attach a child Subscription to the current Subscription. - * When a Subscription is unsubscribed, all its children (and its grandchildren) - * will be unsubscribed as well. - * - * @class Subscription - */ -export declare class Subscription implements SubscriptionLike { - private initialTeardown?; - /** @nocollapse */ - static EMPTY: Subscription; - /** - * A flag to indicate whether this Subscription has already been unsubscribed. - */ - closed: boolean; - private _parentage; - /** - * The list of registered finalizers to execute upon unsubscription. Adding and removing from this - * list occurs in the {@link #add} and {@link #remove} methods. - */ - private _finalizers; - /** - * @param initialTeardown A function executed first as part of the finalization - * process that is kicked off when {@link #unsubscribe} is called. - */ - constructor(initialTeardown?: (() => void) | undefined); - /** - * Disposes the resources held by the subscription. May, for instance, cancel - * an ongoing Observable execution or cancel any other type of work that - * started when the Subscription was created. - * @return {void} - */ - unsubscribe(): void; - /** - * Adds a finalizer to this subscription, so that finalization will be unsubscribed/called - * when this subscription is unsubscribed. If this subscription is already {@link #closed}, - * because it has already been unsubscribed, then whatever finalizer is passed to it - * will automatically be executed (unless the finalizer itself is also a closed subscription). - * - * Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed - * subscription to a any subscription will result in no operation. (A noop). - * - * Adding a subscription to itself, or adding `null` or `undefined` will not perform any - * operation at all. (A noop). - * - * `Subscription` instances that are added to this instance will automatically remove themselves - * if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove - * will need to be removed manually with {@link #remove} - * - * @param teardown The finalization logic to add to this subscription. - */ - add(teardown: TeardownLogic): void; - /** - * Checks to see if a this subscription already has a particular parent. - * This will signal that this subscription has already been added to the parent in question. - * @param parent the parent to check for - */ - private _hasParent; - /** - * Adds a parent to this subscription so it can be removed from the parent if it - * unsubscribes on it's own. - * - * NOTE: THIS ASSUMES THAT {@link _hasParent} HAS ALREADY BEEN CHECKED. - * @param parent The parent subscription to add - */ - private _addParent; - /** - * Called on a child when it is removed via {@link #remove}. - * @param parent The parent to remove - */ - private _removeParent; - /** - * Removes a finalizer from this subscription that was previously added with the {@link #add} method. - * - * Note that `Subscription` instances, when unsubscribed, will automatically remove themselves - * from every other `Subscription` they have been added to. This means that using the `remove` method - * is not a common thing and should be used thoughtfully. - * - * If you add the same finalizer instance of a function or an unsubscribable object to a `Subscription` instance - * more than once, you will need to call `remove` the same number of times to remove all instances. - * - * All finalizer instances are removed to free up memory upon unsubscription. - * - * @param teardown The finalizer to remove from this subscription - */ - remove(teardown: Exclude): void; -} -export declare const EMPTY_SUBSCRIPTION: Subscription; -export declare function isSubscription(value: any): value is Subscription; -//# sourceMappingURL=Subscription.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/Subscription.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/Subscription.d.ts.map deleted file mode 100644 index ca8ef59cd..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/Subscription.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Subscription.d.ts","sourceRoot":"","sources":["../../../src/internal/Subscription.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAkB,MAAM,SAAS,CAAC;AAG1E;;;;;;;;;;;GAWG;AACH,qBAAa,YAAa,YAAW,gBAAgB;IAyBvC,OAAO,CAAC,eAAe,CAAC;IAxBpC,kBAAkB;IAClB,OAAc,KAAK,eAId;IAEL;;OAEG;IACI,MAAM,UAAS;IAEtB,OAAO,CAAC,UAAU,CAA8C;IAEhE;;;OAGG;IACH,OAAO,CAAC,WAAW,CAA+C;IAElE;;;OAGG;gBACiB,eAAe,CAAC,SAAQ,IAAI,aAAA;IAEhD;;;;;OAKG;IACH,WAAW,IAAI,IAAI;IAmDnB;;;;;;;;;;;;;;;;;OAiBG;IACH,GAAG,CAAC,QAAQ,EAAE,aAAa,GAAG,IAAI;IAsBlC;;;;OAIG;IACH,OAAO,CAAC,UAAU;IAKlB;;;;;;OAMG;IACH,OAAO,CAAC,UAAU;IAKlB;;;OAGG;IACH,OAAO,CAAC,aAAa;IASrB;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,GAAG,IAAI;CAQrD;AAED,eAAO,MAAM,kBAAkB,cAAqB,CAAC;AAErD,wBAAgB,cAAc,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,YAAY,CAKhE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/AjaxResponse.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/ajax/AjaxResponse.d.ts deleted file mode 100644 index 79e8270f4..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/AjaxResponse.d.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { AjaxRequest, AjaxResponseType } from './types'; -/** - * A normalized response from an AJAX request. To get the data from the response, - * you will want to read the `response` property. - * - * - DO NOT create instances of this class directly. - * - DO NOT subclass this class. - * - * It is advised not to hold this object in memory, as it has a reference to - * the original XHR used to make the request, as well as properties containing - * request and response data. - * - * @see {@link ajax} - * @see {@link AjaxConfig} - */ -export declare class AjaxResponse { - /** - * The original event object from the raw XHR event. - */ - readonly originalEvent: ProgressEvent; - /** - * The XMLHttpRequest object used to make the request. - * NOTE: It is advised not to hold this in memory, as it will retain references to all of it's event handlers - * and many other things related to the request. - */ - readonly xhr: XMLHttpRequest; - /** - * The request parameters used to make the HTTP request. - */ - readonly request: AjaxRequest; - /** - * The event type. This can be used to discern between different events - * if you're using progress events with {@link includeDownloadProgress} or - * {@link includeUploadProgress} settings in {@link AjaxConfig}. - * - * The event type consists of two parts: the {@link AjaxDirection} and the - * the event type. Merged with `_`, they form the `type` string. The - * direction can be an `upload` or a `download` direction, while an event can - * be `loadstart`, `progress` or `load`. - * - * `download_load` is the type of event when download has finished and the - * response is available. - */ - readonly type: AjaxResponseType; - /** The HTTP status code */ - readonly status: number; - /** - * The response data, if any. Note that this will automatically be converted to the proper type - */ - readonly response: T; - /** - * The responseType set on the request. (For example: `""`, `"arraybuffer"`, `"blob"`, `"document"`, `"json"`, or `"text"`) - * @deprecated There isn't much reason to examine this. It's the same responseType set (or defaulted) on the ajax config. - * If you really need to examine this value, you can check it on the `request` or the `xhr`. Will be removed in v8. - */ - readonly responseType: XMLHttpRequestResponseType; - /** - * The total number of bytes loaded so far. To be used with {@link total} while - * calculating progress. (You will want to set {@link includeDownloadProgress} or - * {@link includeDownloadProgress}) - */ - readonly loaded: number; - /** - * The total number of bytes to be loaded. To be used with {@link loaded} while - * calculating progress. (You will want to set {@link includeDownloadProgress} or - * {@link includeDownloadProgress}) - */ - readonly total: number; - /** - * A dictionary of the response headers. - */ - readonly responseHeaders: Record; - /** - * A normalized response from an AJAX request. To get the data from the response, - * you will want to read the `response` property. - * - * - DO NOT create instances of this class directly. - * - DO NOT subclass this class. - * - * @param originalEvent The original event object from the XHR `onload` event. - * @param xhr The `XMLHttpRequest` object used to make the request. This is useful for examining status code, etc. - * @param request The request settings used to make the HTTP request. - * @param type The type of the event emitted by the {@link ajax} Observable - */ - constructor( - /** - * The original event object from the raw XHR event. - */ - originalEvent: ProgressEvent, - /** - * The XMLHttpRequest object used to make the request. - * NOTE: It is advised not to hold this in memory, as it will retain references to all of it's event handlers - * and many other things related to the request. - */ - xhr: XMLHttpRequest, - /** - * The request parameters used to make the HTTP request. - */ - request: AjaxRequest, - /** - * The event type. This can be used to discern between different events - * if you're using progress events with {@link includeDownloadProgress} or - * {@link includeUploadProgress} settings in {@link AjaxConfig}. - * - * The event type consists of two parts: the {@link AjaxDirection} and the - * the event type. Merged with `_`, they form the `type` string. The - * direction can be an `upload` or a `download` direction, while an event can - * be `loadstart`, `progress` or `load`. - * - * `download_load` is the type of event when download has finished and the - * response is available. - */ - type?: AjaxResponseType); -} -//# sourceMappingURL=AjaxResponse.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/AjaxResponse.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/ajax/AjaxResponse.d.ts.map deleted file mode 100644 index 6381aa8b6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/AjaxResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AjaxResponse.d.ts","sourceRoot":"","sources":["../../../../src/internal/ajax/AjaxResponse.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAGxD;;;;;;;;;;;;;GAaG;AACH,qBAAa,YAAY,CAAC,CAAC;IAgDvB;;OAEG;aACa,aAAa,EAAE,aAAa;IAC5C;;;;OAIG;aACa,GAAG,EAAE,cAAc;IACnC;;OAEG;aACa,OAAO,EAAE,WAAW;IACpC;;;;;;;;;;;;OAYG;aACa,IAAI,EAAE,gBAAgB;IA1ExC,2BAA2B;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC;IAErB;;;;OAIG;IACH,QAAQ,CAAC,YAAY,EAAE,0BAA0B,CAAC;IAElD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEjD;;;;;;;;;;;OAWG;;IAED;;OAEG;IACa,aAAa,EAAE,aAAa;IAC5C;;;;OAIG;IACa,GAAG,EAAE,cAAc;IACnC;;OAEG;IACa,OAAO,EAAE,WAAW;IACpC;;;;;;;;;;;;OAYG;IACa,IAAI,GAAE,gBAAkC;CA+B3D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/ajax.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/ajax/ajax.d.ts deleted file mode 100644 index 4b5d485c5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/ajax.d.ts +++ /dev/null @@ -1,227 +0,0 @@ -import { Observable } from '../Observable'; -import { AjaxConfig } from './types'; -import { AjaxResponse } from './AjaxResponse'; -export interface AjaxCreationMethod { - /** - * Creates an observable that will perform an AJAX request using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default. - * - * This is the most configurable option, and the basis for all other AJAX calls in the library. - * - * ## Example - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const obs$ = ajax({ - * method: 'GET', - * url: 'https://api.github.com/users?per_page=5', - * responseType: 'json' - * }).pipe( - * map(userResponse => console.log('users: ', userResponse)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * ``` - */ - (config: AjaxConfig): Observable>; - /** - * Perform an HTTP GET using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope. Defaults to a `responseType` of `"json"`. - * - * ## Example - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const obs$ = ajax('https://api.github.com/users?per_page=5').pipe( - * map(userResponse => console.log('users: ', userResponse)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * ``` - */ - (url: string): Observable>; - /** - * Performs an HTTP GET using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and a `responseType` of `"json"`. - * - * @param url The URL to get the resource from - * @param headers Optional headers. Case-Insensitive. - */ - get(url: string, headers?: Record): Observable>; - /** - * Performs an HTTP POST using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and a `responseType` of `"json"`. - * - * Before sending the value passed to the `body` argument, it is automatically serialized - * based on the specified `responseType`. By default, a JavaScript object will be serialized - * to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided - * dictionary object to a url-encoded string. - * - * @param url The URL to get the resource from - * @param body The content to send. The body is automatically serialized. - * @param headers Optional headers. Case-Insensitive. - */ - post(url: string, body?: any, headers?: Record): Observable>; - /** - * Performs an HTTP PUT using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and a `responseType` of `"json"`. - * - * Before sending the value passed to the `body` argument, it is automatically serialized - * based on the specified `responseType`. By default, a JavaScript object will be serialized - * to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided - * dictionary object to a url-encoded string. - * - * @param url The URL to get the resource from - * @param body The content to send. The body is automatically serialized. - * @param headers Optional headers. Case-Insensitive. - */ - put(url: string, body?: any, headers?: Record): Observable>; - /** - * Performs an HTTP PATCH using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and a `responseType` of `"json"`. - * - * Before sending the value passed to the `body` argument, it is automatically serialized - * based on the specified `responseType`. By default, a JavaScript object will be serialized - * to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided - * dictionary object to a url-encoded string. - * - * @param url The URL to get the resource from - * @param body The content to send. The body is automatically serialized. - * @param headers Optional headers. Case-Insensitive. - */ - patch(url: string, body?: any, headers?: Record): Observable>; - /** - * Performs an HTTP DELETE using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and a `responseType` of `"json"`. - * - * @param url The URL to get the resource from - * @param headers Optional headers. Case-Insensitive. - */ - delete(url: string, headers?: Record): Observable>; - /** - * Performs an HTTP GET using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and returns the hydrated JavaScript object from the - * response. - * - * @param url The URL to get the resource from - * @param headers Optional headers. Case-Insensitive. - */ - getJSON(url: string, headers?: Record): Observable; -} -/** - * There is an ajax operator on the Rx object. - * - * It creates an observable for an Ajax request with either a request object with - * url, headers, etc or a string for a URL. - * - * ## Examples - * - * Using `ajax()` to fetch the response object that is being returned from API - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const obs$ = ajax('https://api.github.com/users?per_page=5').pipe( - * map(userResponse => console.log('users: ', userResponse)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * - * obs$.subscribe({ - * next: value => console.log(value), - * error: err => console.log(err) - * }); - * ``` - * - * Using `ajax.getJSON()` to fetch data from API - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const obs$ = ajax.getJSON('https://api.github.com/users?per_page=5').pipe( - * map(userResponse => console.log('users: ', userResponse)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * - * obs$.subscribe({ - * next: value => console.log(value), - * error: err => console.log(err) - * }); - * ``` - * - * Using `ajax()` with object as argument and method POST with a two seconds delay - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const users = ajax({ - * url: 'https://httpbin.org/delay/2', - * method: 'POST', - * headers: { - * 'Content-Type': 'application/json', - * 'rxjs-custom-header': 'Rxjs' - * }, - * body: { - * rxjs: 'Hello World!' - * } - * }).pipe( - * map(response => console.log('response: ', response)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * - * users.subscribe({ - * next: value => console.log(value), - * error: err => console.log(err) - * }); - * ``` - * - * Using `ajax()` to fetch. An error object that is being returned from the request - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const obs$ = ajax('https://api.github.com/404').pipe( - * map(userResponse => console.log('users: ', userResponse)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * - * obs$.subscribe({ - * next: value => console.log(value), - * error: err => console.log(err) - * }); - * ``` - */ -export declare const ajax: AjaxCreationMethod; -export declare function fromAjax(init: AjaxConfig): Observable>; -//# sourceMappingURL=ajax.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/ajax.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/ajax/ajax.d.ts.map deleted file mode 100644 index 6ccd632b5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/ajax.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ajax.d.ts","sourceRoot":"","sources":["../../../../src/internal/ajax/ajax.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,e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,CAAC,CAAC;IAEjG;;;;;;;OAOG;IACH,MAAM,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEtF;;;;;;;;OAQG;IACH,OAAO,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;CAC1E;AAkCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiGG;AACH,eAAO,MAAM,IAAI,EAAE,kBAmBf,CAAC;AAQL,wBAAgB,QAAQ,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAuPzE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/errors.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/ajax/errors.d.ts deleted file mode 100644 index 6363e8f37..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/errors.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { AjaxRequest } from './types'; -/** - * A normalized AJAX error. - * - * @see {@link ajax} - * - * @class AjaxError - */ -export interface AjaxError extends Error { - /** - * The XHR instance associated with the error. - */ - xhr: XMLHttpRequest; - /** - * The AjaxRequest associated with the error. - */ - request: AjaxRequest; - /** - * The HTTP status code, if the request has completed. If not, - * it is set to `0`. - */ - status: number; - /** - * The responseType (e.g. 'json', 'arraybuffer', or 'xml'). - */ - responseType: XMLHttpRequestResponseType; - /** - * The response data. - */ - response: any; -} -export interface AjaxErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (message: string, xhr: XMLHttpRequest, request: AjaxRequest): AjaxError; -} -/** - * Thrown when an error occurs during an AJAX request. - * This is only exported because it is useful for checking to see if an error - * is an `instanceof AjaxError`. DO NOT create new instances of `AjaxError` with - * the constructor. - * - * @class AjaxError - * @see {@link ajax} - */ -export declare const AjaxError: AjaxErrorCtor; -export interface AjaxTimeoutError extends AjaxError { -} -export interface AjaxTimeoutErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (xhr: XMLHttpRequest, request: AjaxRequest): AjaxTimeoutError; -} -/** - * Thrown when an AJAX request times out. Not to be confused with {@link TimeoutError}. - * - * This is exported only because it is useful for checking to see if errors are an - * `instanceof AjaxTimeoutError`. DO NOT use the constructor to create an instance of - * this type. - * - * @class AjaxTimeoutError - * @see {@link ajax} - */ -export declare const AjaxTimeoutError: AjaxTimeoutErrorCtor; -//# sourceMappingURL=errors.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/errors.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/ajax/errors.d.ts.map deleted file mode 100644 index 7aadf26dd..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/errors.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../src/internal/ajax/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAItC;;;;;;GAMG;AACH,MAAM,WAAW,SAAU,SAAQ,KAAK;IACtC;;OAEG;IACH,GAAG,EAAE,cAAc,CAAC;IAEpB;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC;IAErB;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,YAAY,EAAE,0BAA0B,CAAC;IAEzC;;OAEG;IACH,QAAQ,EAAE,GAAG,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B;;;OAGG;IACH,KAAK,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,GAAG,SAAS,CAAC;CAC7E;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,EAAE,aAmBvB,CAAC;AAEF,MAAM,WAAW,gBAAiB,SAAQ,SAAS;CAAG;AAEtD,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,KAAK,GAAG,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,GAAG,gBAAgB,CAAC;CACnE;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,gBAAgB,EAAE,oBAQpB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/getXHRResponse.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/ajax/getXHRResponse.d.ts deleted file mode 100644 index c33ce5929..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/getXHRResponse.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Gets what should be in the `response` property of the XHR. However, - * since we still support the final versions of IE, we need to do a little - * checking here to make sure that we get the right thing back. Consequently, - * we need to do a JSON.parse() in here, which *could* throw if the response - * isn't valid JSON. - * - * This is used both in creating an AjaxResponse, and in creating certain errors - * that we throw, so we can give the user whatever was in the response property. - * - * @param xhr The XHR to examine the response of - */ -export declare function getXHRResponse(xhr: XMLHttpRequest): any; -//# sourceMappingURL=getXHRResponse.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/getXHRResponse.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/ajax/getXHRResponse.d.ts.map deleted file mode 100644 index 59ddb07e3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/getXHRResponse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getXHRResponse.d.ts","sourceRoot":"","sources":["../../../../src/internal/ajax/getXHRResponse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,cAAc,OAwBjD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/types.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/ajax/types.d.ts deleted file mode 100644 index 2ee2b80d4..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/types.d.ts +++ /dev/null @@ -1,200 +0,0 @@ -import { PartialObserver } from '../types'; -/** - * Valid Ajax direction types. Prefixes the event `type` in the - * {@link AjaxResponse} object with "upload_" for events related - * to uploading and "download_" for events related to downloading. - */ -export declare type AjaxDirection = 'upload' | 'download'; -export declare type ProgressEventType = 'loadstart' | 'progress' | 'load'; -export declare type AjaxResponseType = `${AjaxDirection}_${ProgressEventType}`; -/** - * The object containing values RxJS used to make the HTTP request. - * - * This is provided in {@link AjaxError} instances as the `request` - * object. - */ -export interface AjaxRequest { - /** - * The URL requested. - */ - url: string; - /** - * The body to send over the HTTP request. - */ - body?: any; - /** - * The HTTP method used to make the HTTP request. - */ - method: string; - /** - * Whether or not the request was made asynchronously. - */ - async: boolean; - /** - * The headers sent over the HTTP request. - */ - headers: Readonly>; - /** - * The timeout value used for the HTTP request. - * Note: this is only honored if the request is asynchronous (`async` is `true`). - */ - timeout: number; - /** - * The user credentials user name sent with the HTTP request. - */ - user?: string; - /** - * The user credentials password sent with the HTTP request. - */ - password?: string; - /** - * Whether or not the request was a CORS request. - */ - crossDomain: boolean; - /** - * Whether or not a CORS request was sent with credentials. - * If `false`, will also ignore cookies in the CORS response. - */ - withCredentials: boolean; - /** - * The [`responseType`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType) set before sending the request. - */ - responseType: XMLHttpRequestResponseType; -} -/** - * Configuration for the {@link ajax} creation function. - */ -export interface AjaxConfig { - /** The address of the resource to request via HTTP. */ - url: string; - /** - * The body of the HTTP request to send. - * - * This is serialized, by default, based off of the value of the `"content-type"` header. - * For example, if the `"content-type"` is `"application/json"`, the body will be serialized - * as JSON. If the `"content-type"` is `"application/x-www-form-urlencoded"`, whatever object passed - * to the body will be serialized as URL, using key-value pairs based off of the keys and values of the object. - * In all other cases, the body will be passed directly. - */ - body?: any; - /** - * Whether or not to send the request asynchronously. Defaults to `true`. - * If set to `false`, this will block the thread until the AJAX request responds. - */ - async?: boolean; - /** - * The HTTP Method to use for the request. Defaults to "GET". - */ - method?: string; - /** - * The HTTP headers to apply. - * - * Note that, by default, RxJS will add the following headers under certain conditions: - * - * 1. If the `"content-type"` header is **NOT** set, and the `body` is [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData), - * a `"content-type"` of `"application/x-www-form-urlencoded; charset=UTF-8"` will be set automatically. - * 2. If the `"x-requested-with"` header is **NOT** set, and the `crossDomain` configuration property is **NOT** explicitly set to `true`, - * (meaning it is not a CORS request), a `"x-requested-with"` header with a value of `"XMLHttpRequest"` will be set automatically. - * This header is generally meaningless, and is set by libraries and frameworks using `XMLHttpRequest` to make HTTP requests. - */ - headers?: Readonly>; - /** - * The time to wait before causing the underlying XMLHttpRequest to timeout. This is only honored if the - * `async` configuration setting is unset or set to `true`. Defaults to `0`, which is idiomatic for "never timeout". - */ - timeout?: number; - /** The user credentials user name to send with the HTTP request */ - user?: string; - /** The user credentials password to send with the HTTP request*/ - password?: string; - /** - * Whether or not to send the HTTP request as a CORS request. - * Defaults to `false`. - * - * @deprecated Will be removed in version 8. Cross domain requests and what creates a cross - * domain request, are dictated by the browser, and a boolean that forces it to be cross domain - * does not make sense. If you need to force cross domain, make sure you're making a secure request, - * then add a custom header to the request or use `withCredentials`. For more information on what - * triggers a cross domain request, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials). - * In particular, the section on [Simple Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Simple_requests) is useful - * for understanding when CORS will not be used. - */ - crossDomain?: boolean; - /** - * To send user credentials in a CORS request, set to `true`. To exclude user credentials from - * a CORS request, _OR_ when cookies are to be ignored by the CORS response, set to `false`. - * - * Defaults to `false`. - */ - withCredentials?: boolean; - /** - * The name of your site's XSRF cookie. - */ - xsrfCookieName?: string; - /** - * The name of a custom header that you can use to send your XSRF cookie. - */ - xsrfHeaderName?: string; - /** - * Can be set to change the response type. - * Valid values are `"arraybuffer"`, `"blob"`, `"document"`, `"json"`, and `"text"`. - * Note that the type of `"document"` (such as an XML document) is ignored if the global context is - * not `Window`. - * - * Defaults to `"json"`. - */ - responseType?: XMLHttpRequestResponseType; - /** - * An optional factory used to create the XMLHttpRequest object used to make the AJAX request. - * This is useful in environments that lack `XMLHttpRequest`, or in situations where you - * wish to override the default `XMLHttpRequest` for some reason. - * - * If not provided, the `XMLHttpRequest` in global scope will be used. - * - * NOTE: This AJAX implementation relies on the built-in serialization and setting - * of Content-Type headers that is provided by standards-compliant XMLHttpRequest implementations, - * be sure any implementation you use meets that standard. - */ - createXHR?: () => XMLHttpRequest; - /** - * An observer for watching the upload progress of an HTTP request. Will - * emit progress events, and completes on the final upload load event, will error for - * any XHR error or timeout. - * - * This will **not** error for errored status codes. Rather, it will always _complete_ when - * the HTTP response comes back. - * - * @deprecated If you're looking for progress events, use {@link includeDownloadProgress} and - * {@link includeUploadProgress} instead. Will be removed in v8. - */ - progressSubscriber?: PartialObserver; - /** - * If `true`, will emit all download progress and load complete events as {@link AjaxResponse} - * from the observable. The final download event will also be emitted as a {@link AjaxResponse}. - * - * If both this and {@link includeUploadProgress} are `false`, then only the {@link AjaxResponse} will - * be emitted from the resulting observable. - */ - includeDownloadProgress?: boolean; - /** - * If `true`, will emit all upload progress and load complete events as {@link AjaxResponse} - * from the observable. The final download event will also be emitted as a {@link AjaxResponse}. - * - * If both this and {@link includeDownloadProgress} are `false`, then only the {@link AjaxResponse} will - * be emitted from the resulting observable. - */ - includeUploadProgress?: boolean; - /** - * Query string parameters to add to the URL in the request. - * This will require a polyfill for `URL` and `URLSearchParams` in Internet Explorer! - * - * Accepts either a query string, a `URLSearchParams` object, a dictionary of key/value pairs, or an - * array of key/value entry tuples. (Essentially, it takes anything that `new URLSearchParams` would normally take). - * - * If, for some reason you have a query string in the `url` argument, this will append to the query string in the url, - * but it will also overwrite the value of any keys that are an exact match. In other words, a url of `/test?a=1&b=2`, - * with queryParams of `{ b: 5, c: 6 }` will result in a url of roughly `/test?a=1&b=5&c=6`. - */ - queryParams?: string | URLSearchParams | Record | [string, string | number | boolean | string[] | number[] | boolean[]][]; -} -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/types.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/ajax/types.d.ts.map deleted file mode 100644 index f80f877cc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/ajax/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/internal/ajax/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;GAIG;AACH,oBAAY,aAAa,GAAG,QAAQ,GAAG,UAAU,CAAC;AAElD,oBAAY,iBAAiB,GAAG,WAAW,GAAG,UAAU,GAAG,MAAM,CAAC;AAElE,oBAAY,gBAAgB,GAAG,GAAG,aAAa,IAAI,iBAAiB,EAAE,CAAC;AAEvE;;;;;GAKG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,GAAG,CAAC;IAEX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IA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AO,CAAC;IAElC;;;;;;OAMG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,WAAW,CAAC,EACR,MAAM,GACN,eAAe,GACf,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,GAC3E,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,EAAE,CAAC,EAAE,CAAC;CAC7E"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/config.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/config.d.ts deleted file mode 100644 index 30fd30b94..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/config.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { Subscriber } from './Subscriber'; -import { ObservableNotification } from './types'; -/** - * The {@link GlobalConfig} object for RxJS. It is used to configure things - * like how to react on unhandled errors. - */ -export declare const config: GlobalConfig; -/** - * The global configuration object for RxJS, used to configure things - * like how to react on unhandled errors. Accessible via {@link config} - * object. - */ -export interface GlobalConfig { - /** - * A registration point for unhandled errors from RxJS. These are errors that - * cannot were not handled by consuming code in the usual subscription path. For - * example, if you have this configured, and you subscribe to an observable without - * providing an error handler, errors from that subscription will end up here. This - * will _always_ be called asynchronously on another job in the runtime. This is because - * we do not want errors thrown in this user-configured handler to interfere with the - * behavior of the library. - */ - onUnhandledError: ((err: any) => void) | null; - /** - * A registration point for notifications that cannot be sent to subscribers because they - * have completed, errored or have been explicitly unsubscribed. By default, next, complete - * and error notifications sent to stopped subscribers are noops. However, sometimes callers - * might want a different behavior. For example, with sources that attempt to report errors - * to stopped subscribers, a caller can configure RxJS to throw an unhandled error instead. - * This will _always_ be called asynchronously on another job in the runtime. This is because - * we do not want errors thrown in this user-configured handler to interfere with the - * behavior of the library. - */ - onStoppedNotification: ((notification: ObservableNotification, subscriber: Subscriber) => void) | null; - /** - * The promise constructor used by default for {@link Observable#toPromise toPromise} and {@link Observable#forEach forEach} - * methods. - * - * @deprecated As of version 8, RxJS will no longer support this sort of injection of a - * Promise constructor. If you need a Promise implementation other than native promises, - * please polyfill/patch Promise as you see appropriate. Will be removed in v8. - */ - Promise?: PromiseConstructorLike; - /** - * If true, turns on synchronous error rethrowing, which is a deprecated behavior - * in v6 and higher. This behavior enables bad patterns like wrapping a subscribe - * call in a try/catch block. It also enables producer interference, a nasty bug - * where a multicast can be broken for all observers by a downstream consumer with - * an unhandled error. DO NOT USE THIS FLAG UNLESS IT'S NEEDED TO BUY TIME - * FOR MIGRATION REASONS. - * - * @deprecated As of version 8, RxJS will no longer support synchronous throwing - * of unhandled errors. All errors will be thrown on a separate call stack to prevent bad - * behaviors described above. Will be removed in v8. - */ - useDeprecatedSynchronousErrorHandling: boolean; - /** - * If true, enables an as-of-yet undocumented feature from v5: The ability to access - * `unsubscribe()` via `this` context in `next` functions created in observers passed - * to `subscribe`. - * - * This is being removed because the performance was severely problematic, and it could also cause - * issues when types other than POJOs are passed to subscribe as subscribers, as they will likely have - * their `this` context overwritten. - * - * @deprecated As of version 8, RxJS will no longer support altering the - * context of next functions provided as part of an observer to Subscribe. Instead, - * you will have access to a subscription or a signal or token that will allow you to do things like - * unsubscribe and test closed status. Will be removed in v8. - */ - useDeprecatedNextContext: boolean; -} -//# sourceMappingURL=config.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/config.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/config.d.ts.map deleted file mode 100644 index d18c18f4b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/config.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/internal/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD;;;GAGG;AACH,eAAO,MAAM,MAAM,EAAE,YAMpB,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;;;OAQG;IACH,gBAAgB,EAAE,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IAE9C;;;;;;;;;OASG;IACH,qBAAqB,EAAE,CAAC,CAAC,YAAY,EAAE,sBAAsB,CAAC,GAAG,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IAEjH;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,sBAAsB,CAAC;IAEjC;;;;;;;;;;;OAWG;IACH,qCAAqC,EAAE,OAAO,CAAC;IAE/C;;;;;;;;;;;;;OAaG;IACH,wBAAwB,EAAE,OAAO,CAAC;CACnC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/firstValueFrom.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/firstValueFrom.d.ts deleted file mode 100644 index fb726789d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/firstValueFrom.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Observable } from './Observable'; -export interface FirstValueFromConfig { - defaultValue: T; -} -export declare function firstValueFrom(source: Observable, config: FirstValueFromConfig): Promise; -export declare function firstValueFrom(source: Observable): Promise; -//# sourceMappingURL=firstValueFrom.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/firstValueFrom.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/firstValueFrom.d.ts.map deleted file mode 100644 index 35a6fbc40..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/firstValueFrom.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"firstValueFrom.d.ts","sourceRoot":"","sources":["../../../src/internal/firstValueFrom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAI1C,MAAM,WAAW,oBAAoB,CAAC,CAAC;IACrC,YAAY,EAAE,CAAC,CAAC;CACjB;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,oBAAoB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAC7G,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/lastValueFrom.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/lastValueFrom.d.ts deleted file mode 100644 index 415d60197..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/lastValueFrom.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Observable } from './Observable'; -export interface LastValueFromConfig { - defaultValue: T; -} -export declare function lastValueFrom(source: Observable, config: LastValueFromConfig): Promise; -export declare function lastValueFrom(source: Observable): Promise; -//# sourceMappingURL=lastValueFrom.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/lastValueFrom.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/lastValueFrom.d.ts.map deleted file mode 100644 index 70c2cf9f6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/lastValueFrom.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lastValueFrom.d.ts","sourceRoot":"","sources":["../../../src/internal/lastValueFrom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG1C,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,YAAY,EAAE,CAAC,CAAC;CACjB;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAC3G,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/ConnectableObservable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/ConnectableObservable.d.ts deleted file mode 100644 index 321d1d5b9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/ConnectableObservable.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { Subject } from '../Subject'; -import { Observable } from '../Observable'; -import { Subscription } from '../Subscription'; -/** - * @class ConnectableObservable - * @deprecated Will be removed in v8. Use {@link connectable} to create a connectable observable. - * If you are using the `refCount` method of `ConnectableObservable`, use the {@link share} operator - * instead. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare class ConnectableObservable extends Observable { - source: Observable; - protected subjectFactory: () => Subject; - protected _subject: Subject | null; - protected _refCount: number; - protected _connection: Subscription | null; - /** - * @param source The source observable - * @param subjectFactory The factory that creates the subject used internally. - * @deprecated Will be removed in v8. Use {@link connectable} to create a connectable observable. - * `new ConnectableObservable(source, factory)` is equivalent to - * `connectable(source, { connector: factory })`. - * When the `refCount()` method is needed, the {@link share} operator should be used instead: - * `new ConnectableObservable(source, factory).refCount()` is equivalent to - * `source.pipe(share({ connector: factory }))`. - * Details: https://rxjs.dev/deprecations/multicasting - */ - constructor(source: Observable, subjectFactory: () => Subject); - protected getSubject(): Subject; - protected _teardown(): void; - /** - * @deprecated {@link ConnectableObservable} will be removed in v8. Use {@link connectable} instead. - * Details: https://rxjs.dev/deprecations/multicasting - */ - connect(): Subscription; - /** - * @deprecated {@link ConnectableObservable} will be removed in v8. Use the {@link share} operator instead. - * Details: https://rxjs.dev/deprecations/multicasting - */ - refCount(): Observable; -} -//# sourceMappingURL=ConnectableObservable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/ConnectableObservable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/ConnectableObservable.d.ts.map deleted file mode 100644 index b2d33a619..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/ConnectableObservable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ConnectableObservable.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/ConnectableObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAK/C;;;;;;GAMG;AACH,qBAAa,qBAAqB,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IAgBtC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;IAAE,SAAS,CAAC,cAAc,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC;IAfpF,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI,CAAQ;IAC7C,SAAS,CAAC,SAAS,EAAE,MAAM,CAAK;IAChC,SAAS,CAAC,WAAW,EAAE,YAAY,GAAG,IAAI,CAAQ;IAElD;;;;;;;;;;OAUG;gBACgB,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EAAY,cAAc,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC;IAepF,SAAS,CAAC,UAAU,IAAI,OAAO,CAAC,CAAC,CAAC;IAQlC,SAAS,CAAC,SAAS;IAOnB;;;OAGG;IACH,OAAO,IAAI,YAAY;IA+BvB;;;OAGG;IACH,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC;CAG1B"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallback.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallback.d.ts deleted file mode 100644 index a2b8235da..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallback.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { SchedulerLike } from '../types'; -import { Observable } from '../Observable'; -export declare function bindCallback(callbackFunc: (...args: any[]) => void, resultSelector: (...args: any[]) => any, scheduler?: SchedulerLike): (...args: any[]) => Observable; -export declare function bindCallback(callbackFunc: (...args: [...A, (...res: R) => void]) => void, schedulerLike?: SchedulerLike): (...arg: A) => Observable; -//# sourceMappingURL=bindCallback.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallback.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallback.d.ts.map deleted file mode 100644 index d4f685479..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallback.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindCallback.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/bindCallback.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,wBAAgB,YAAY,CAC1B,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EACtC,cAAc,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACvC,SAAS,CAAC,EAAE,aAAa,GACxB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,GAAG,CAAC,CAAC;AAGvC,wBAAgB,YAAY,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EACrF,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC,KAAK,IAAI,EAC5D,aAAa,CAAC,EAAE,aAAa,GAC5B,CAAC,GAAG,GAAG,EAAE,CAAC,KAAK,UAAU,CAAC,CAAC,SAAS,EAAE,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallbackInternals.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallbackInternals.d.ts deleted file mode 100644 index 52aed49ec..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallbackInternals.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { SchedulerLike } from '../types'; -import { Observable } from '../Observable'; -export declare function bindCallbackInternals(isNodeStyle: boolean, callbackFunc: any, resultSelector?: any, scheduler?: SchedulerLike): (...args: any[]) => Observable; -//# sourceMappingURL=bindCallbackInternals.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallbackInternals.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallbackInternals.d.ts.map deleted file mode 100644 index 2803f25d8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindCallbackInternals.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindCallbackInternals.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/bindCallbackInternals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C,wBAAgB,qBAAqB,CACnC,WAAW,EAAE,OAAO,EACpB,YAAY,EAAE,GAAG,EACjB,cAAc,CAAC,EAAE,GAAG,EACpB,SAAS,CAAC,EAAE,aAAa,GACxB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,OAAO,CAAC,CAyGzC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindNodeCallback.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindNodeCallback.d.ts deleted file mode 100644 index 1ecb72c24..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindNodeCallback.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -export declare function bindNodeCallback(callbackFunc: (...args: any[]) => void, resultSelector: (...args: any[]) => any, scheduler?: SchedulerLike): (...args: any[]) => Observable; -export declare function bindNodeCallback(callbackFunc: (...args: [...A, (err: any, ...res: R) => void]) => void, schedulerLike?: SchedulerLike): (...arg: A) => Observable; -//# sourceMappingURL=bindNodeCallback.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindNodeCallback.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindNodeCallback.d.ts.map deleted file mode 100644 index 05a49d9f6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/bindNodeCallback.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bindNodeCallback.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/bindNodeCallback.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,EACtC,cAAc,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EACvC,SAAS,CAAC,EAAE,aAAa,GACxB,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,UAAU,CAAC,GAAG,CAAC,CAAC;AAGvC,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EACzF,YAAY,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC,KAAK,IAAI,EACtE,aAAa,CAAC,EAAE,aAAa,GAC5B,CAAC,GAAG,GAAG,EAAE,CAAC,KAAK,UAAU,CAAC,CAAC,SAAS,EAAE,GAAG,IAAI,GAAG,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/combineLatest.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/combineLatest.d.ts deleted file mode 100644 index d3623b551..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/combineLatest.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput, SchedulerLike, ObservedValueOf, ObservableInputTuple } from '../types'; -import { Subscriber } from '../Subscriber'; -import { AnyCatcher } from '../AnyCatcher'; -/** - * You have passed `any` here, we can't figure out if it is - * an array or an object, so you're getting `unknown`. Use better types. - * @param arg Something typed as `any` - */ -export declare function combineLatest(arg: T): Observable; -export declare function combineLatest(sources: []): Observable; -export declare function combineLatest(sources: readonly [...ObservableInputTuple]): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function combineLatest(sources: readonly [...ObservableInputTuple], resultSelector: (...values: A) => R, scheduler: SchedulerLike): Observable; -export declare function combineLatest(sources: readonly [...ObservableInputTuple], resultSelector: (...values: A) => R): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function combineLatest(sources: readonly [...ObservableInputTuple], scheduler: SchedulerLike): Observable; -/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */ -export declare function combineLatest(...sources: [...ObservableInputTuple]): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function combineLatest(...sourcesAndResultSelectorAndScheduler: [...ObservableInputTuple, (...values: A) => R, SchedulerLike]): Observable; -/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */ -export declare function combineLatest(...sourcesAndResultSelector: [...ObservableInputTuple, (...values: A) => R]): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function combineLatest(...sourcesAndScheduler: [...ObservableInputTuple, SchedulerLike]): Observable; -export declare function combineLatest(sourcesObject: { - [K in any]: never; -}): Observable; -export declare function combineLatest>>(sourcesObject: T): Observable<{ - [K in keyof T]: ObservedValueOf; -}>; -export declare function combineLatestInit(observables: ObservableInput[], scheduler?: SchedulerLike, valueTransform?: (values: any[]) => any): (subscriber: Subscriber) => void; -//# sourceMappingURL=combineLatest.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/combineLatest.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/combineLatest.d.ts.map deleted file mode 100644 index f144af43f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/combineLatest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatest.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/combineLatest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM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CAAC;CAAE,CAAC,CAAC;AAkKzD,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,eAAe,CAAC,GAAG,CAAC,EAAE,EACnC,SAAS,CAAC,EAAE,aAAa,EACzB,cAAc,GAAE,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,GAAc,gBAE7B,WAAW,GAAG,CAAC,UA0DpC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/concat.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/concat.d.ts deleted file mode 100644 index 9fce40bc6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/concat.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInputTuple, SchedulerLike } from '../types'; -export declare function concat(...inputs: [...ObservableInputTuple]): Observable; -export declare function concat(...inputsAndScheduler: [...ObservableInputTuple, SchedulerLike]): Observable; -//# sourceMappingURL=concat.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/concat.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/concat.d.ts.map deleted file mode 100644 index 5b193c46c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/concat.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/concat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK/D,wBAAgB,MAAM,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACrH,wBAAgB,MAAM,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EACjD,GAAG,kBAAkB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,GACjE,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/connectable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/connectable.d.ts deleted file mode 100644 index fca54b421..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/connectable.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Connectable, ObservableInput, SubjectLike } from '../types'; -export interface ConnectableConfig { - /** - * A factory function used to create the Subject through which the source - * is multicast. By default this creates a {@link Subject}. - */ - connector: () => SubjectLike; - /** - * If true, the resulting observable will reset internal state upon disconnection - * and return to a "cold" state. This allows the resulting observable to be - * reconnected. - * If false, upon disconnection, the connecting subject will remain the - * connecting subject, meaning the resulting observable will not go "cold" again, - * and subsequent repeats or resubscriptions will resubscribe to that same subject. - */ - resetOnDisconnect?: boolean; -} -/** - * Creates an observable that multicasts once `connect()` is called on it. - * - * @param source The observable source to make connectable. - * @param config The configuration object for `connectable`. - * @returns A "connectable" observable, that has a `connect()` method, that you must call to - * connect the source to all consumers through the subject provided as the connector. - */ -export declare function connectable(source: ObservableInput, config?: ConnectableConfig): Connectable; -//# sourceMappingURL=connectable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/connectable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/connectable.d.ts.map deleted file mode 100644 index 110fd5ef9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/connectable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"connectable.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/connectable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAMrE,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC;;;OAGG;IACH,SAAS,EAAE,MAAM,WAAW,CAAC,CAAC,CAAC,CAAC;IAChC;;;;;;;OAOG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAUD;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,MAAM,GAAE,iBAAiB,CAAC,CAAC,CAAkB,GAAG,WAAW,CAAC,CAAC,CAAC,CAwBxH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/defer.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/defer.d.ts deleted file mode 100644 index db8e8be0b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/defer.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservedValueOf, ObservableInput } from '../types'; -/** - * Creates an Observable that, on subscribe, calls an Observable factory to - * make an Observable for each new Observer. - * - * Creates the Observable lazily, that is, only when it - * is subscribed. - * - * - * ![](defer.png) - * - * `defer` allows you to create an Observable only when the Observer - * subscribes. It waits until an Observer subscribes to it, calls the given - * factory function to get an Observable -- where a factory function typically - * generates a new Observable -- and subscribes the Observer to this Observable. - * In case the factory function returns a falsy value, then EMPTY is used as - * Observable instead. Last but not least, an exception during the factory - * function call is transferred to the Observer by calling `error`. - * - * ## Example - * - * Subscribe to either an Observable of clicks or an Observable of interval, at random - * - * ```ts - * import { defer, fromEvent, interval } from 'rxjs'; - * - * const clicksOrInterval = defer(() => { - * return Math.random() > 0.5 - * ? fromEvent(document, 'click') - * : interval(1000); - * }); - * clicksOrInterval.subscribe(x => console.log(x)); - * - * // Results in the following behavior: - * // If the result of Math.random() is greater than 0.5 it will listen - * // for clicks anywhere on the "document"; when document is clicked it - * // will log a MouseEvent object to the console. If the result is less - * // than 0.5 it will emit ascending numbers, one every second(1000ms). - * ``` - * - * @see {@link Observable} - * - * @param {function(): ObservableInput} observableFactory The Observable - * factory function to invoke for each Observer that subscribes to the output - * Observable. May also return a Promise, which will be converted on the fly - * to an Observable. - * @return {Observable} An Observable whose Observers' subscriptions trigger - * an invocation of the given Observable factory function. - */ -export declare function defer>(observableFactory: () => R): Observable>; -//# sourceMappingURL=defer.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/defer.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/defer.d.ts.map deleted file mode 100644 index 38eff357c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/defer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"defer.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/defer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAAE,iBAAiB,EAAE,MAAM,CAAC,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAIhH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/WebSocketSubject.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/WebSocketSubject.d.ts deleted file mode 100644 index d0f48c2c6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/WebSocketSubject.d.ts +++ /dev/null @@ -1,173 +0,0 @@ -import { AnonymousSubject } from '../../Subject'; -import { Observable } from '../../Observable'; -import { Operator } from '../../Operator'; -import { Observer, NextObserver } from '../../types'; -/** - * WebSocketSubjectConfig is a plain Object that allows us to make our - * webSocket configurable. - * - * Provides flexibility to {@link webSocket} - * - * It defines a set of properties to provide custom behavior in specific - * moments of the socket's lifecycle. When the connection opens we can - * use `openObserver`, when the connection is closed `closeObserver`, if we - * are interested in listening for data coming from server: `deserializer`, - * which allows us to customize the deserialization strategy of data before passing it - * to the socket client. By default, `deserializer` is going to apply `JSON.parse` to each message coming - * from the Server. - * - * ## Examples - * - * **deserializer**, the default for this property is `JSON.parse` but since there are just two options - * for incoming data, either be text or binary data. We can apply a custom deserialization strategy - * or just simply skip the default behaviour. - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const wsSubject = webSocket({ - * url: 'ws://localhost:8081', - * //Apply any transformation of your choice. - * deserializer: ({ data }) => data - * }); - * - * wsSubject.subscribe(console.log); - * - * // Let's suppose we have this on the Server: ws.send('This is a msg from the server') - * //output - * // - * // This is a msg from the server - * ``` - * - * **serializer** allows us to apply custom serialization strategy but for the outgoing messages. - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const wsSubject = webSocket({ - * url: 'ws://localhost:8081', - * // Apply any transformation of your choice. - * serializer: msg => JSON.stringify({ channel: 'webDevelopment', msg: msg }) - * }); - * - * wsSubject.subscribe(() => subject.next('msg to the server')); - * - * // Let's suppose we have this on the Server: - * // ws.on('message', msg => console.log); - * // ws.send('This is a msg from the server'); - * // output at server side: - * // - * // {"channel":"webDevelopment","msg":"msg to the server"} - * ``` - * - * **closeObserver** allows us to set a custom error when an error raises up. - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const wsSubject = webSocket({ - * url: 'ws://localhost:8081', - * closeObserver: { - * next() { - * const customError = { code: 6666, reason: 'Custom evil reason' } - * console.log(`code: ${ customError.code }, reason: ${ customError.reason }`); - * } - * } - * }); - * - * // output - * // code: 6666, reason: Custom evil reason - * ``` - * - * **openObserver**, Let's say we need to make some kind of init task before sending/receiving msgs to the - * webSocket or sending notification that the connection was successful, this is when - * openObserver is useful for. - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const wsSubject = webSocket({ - * url: 'ws://localhost:8081', - * openObserver: { - * next: () => { - * console.log('Connection ok'); - * } - * } - * }); - * - * // output - * // Connection ok - * ``` - */ -export interface WebSocketSubjectConfig { - /** The url of the socket server to connect to */ - url: string; - /** The protocol to use to connect */ - protocol?: string | Array; - /** @deprecated Will be removed in v8. Use {@link deserializer} instead. */ - resultSelector?: (e: MessageEvent) => T; - /** - * A serializer used to create messages from passed values before the - * messages are sent to the server. Defaults to JSON.stringify. - */ - serializer?: (value: T) => WebSocketMessage; - /** - * A deserializer used for messages arriving on the socket from the - * server. Defaults to JSON.parse. - */ - deserializer?: (e: MessageEvent) => T; - /** - * An Observer that watches when open events occur on the underlying web socket. - */ - openObserver?: NextObserver; - /** - * An Observer that watches when close events occur on the underlying web socket - */ - closeObserver?: NextObserver; - /** - * An Observer that watches when a close is about to occur due to - * unsubscription. - */ - closingObserver?: NextObserver; - /** - * A WebSocket constructor to use. This is useful for situations like using a - * WebSocket impl in Node (WebSocket is a DOM API), or for mocking a WebSocket - * for testing purposes - */ - WebSocketCtor?: { - new (url: string, protocols?: string | string[]): WebSocket; - }; - /** Sets the `binaryType` property of the underlying WebSocket. */ - binaryType?: 'blob' | 'arraybuffer'; -} -export declare type WebSocketMessage = string | ArrayBuffer | Blob | ArrayBufferView; -export declare class WebSocketSubject extends AnonymousSubject { - private _config; - private _socket; - constructor(urlConfigOrSource: string | WebSocketSubjectConfig | Observable, destination?: Observer); - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - lift(operator: Operator): WebSocketSubject; - private _resetState; - /** - * Creates an {@link Observable}, that when subscribed to, sends a message, - * defined by the `subMsg` function, to the server over the socket to begin a - * subscription to data over that socket. Once data arrives, the - * `messageFilter` argument will be used to select the appropriate data for - * the resulting Observable. When finalization occurs, either due to - * unsubscription, completion, or error, a message defined by the `unsubMsg` - * argument will be sent to the server over the WebSocketSubject. - * - * @param subMsg A function to generate the subscription message to be sent to - * the server. This will still be processed by the serializer in the - * WebSocketSubject's config. (Which defaults to JSON serialization) - * @param unsubMsg A function to generate the unsubscription message to be - * sent to the server at finalization. This will still be processed by the - * serializer in the WebSocketSubject's config. - * @param messageFilter A predicate for selecting the appropriate messages - * from the server for the output stream. - */ - multiplex(subMsg: () => any, unsubMsg: () => any, messageFilter: (value: T) => boolean): Observable; - private _connectSocket; - unsubscribe(): void; -} -//# sourceMappingURL=WebSocketSubject.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/WebSocketSubject.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/WebSocketSubject.d.ts.map deleted file mode 100644 index 173c4d49f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/WebSocketSubject.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WebSocketSubject.d.ts","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/WebSocketSubject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AACH,MAAM,WAAW,sBAAsB,CAAC,CAAC;IACvC,iDAAiD;IACjD,GAAG,EAAE,MAAM,CAAC;IACZ,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC,2EAA2E;IAC3E,cAAc,CAAC,EAAE,CAAC,CAAC,EAAE,YAAY,KAAK,CAAC,CAAC;IACxC;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,gBAAgB,CAAC;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a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/animationFrames.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/animationFrames.d.ts deleted file mode 100644 index 2f7659f68..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/animationFrames.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { Observable } from '../../Observable'; -import { TimestampProvider } from '../../types'; -/** - * An observable of animation frames - * - * Emits the amount of time elapsed since subscription and the timestamp on each animation frame. - * Defaults to milliseconds provided to the requestAnimationFrame's callback. Does not end on its own. - * - * Every subscription will start a separate animation loop. Since animation frames are always scheduled - * by the browser to occur directly before a repaint, scheduling more than one animation frame synchronously - * should not be much different or have more overhead than looping over an array of events during - * a single animation frame. However, if for some reason the developer would like to ensure the - * execution of animation-related handlers are all executed during the same task by the engine, - * the `share` operator can be used. - * - * This is useful for setting up animations with RxJS. - * - * ## Examples - * - * Tweening a div to move it on the screen - * - * ```ts - * import { animationFrames, map, takeWhile, endWith } from 'rxjs'; - * - * function tween(start: number, end: number, duration: number) { - * const diff = end - start; - * return animationFrames().pipe( - * // Figure out what percentage of time has passed - * map(({ elapsed }) => elapsed / duration), - * // Take the vector while less than 100% - * takeWhile(v => v < 1), - * // Finish with 100% - * endWith(1), - * // Calculate the distance traveled between start and end - * map(v => v * diff + start) - * ); - * } - * - * // Setup a div for us to move around - * const div = document.createElement('div'); - * document.body.appendChild(div); - * div.style.position = 'absolute'; - * div.style.width = '40px'; - * div.style.height = '40px'; - * div.style.backgroundColor = 'lime'; - * div.style.transform = 'translate3d(10px, 0, 0)'; - * - * tween(10, 200, 4000).subscribe(x => { - * div.style.transform = `translate3d(${ x }px, 0, 0)`; - * }); - * ``` - * - * Providing a custom timestamp provider - * - * ```ts - * import { animationFrames, TimestampProvider } from 'rxjs'; - * - * // A custom timestamp provider - * let now = 0; - * const customTSProvider: TimestampProvider = { - * now() { return now++; } - * }; - * - * const source$ = animationFrames(customTSProvider); - * - * // Log increasing numbers 0...1...2... on every animation frame. - * source$.subscribe(({ elapsed }) => console.log(elapsed)); - * ``` - * - * @param timestampProvider An object with a `now` method that provides a numeric timestamp - */ -export declare function animationFrames(timestampProvider?: TimestampProvider): Observable<{ - timestamp: number; - elapsed: number; -}>; -//# sourceMappingURL=animationFrames.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/animationFrames.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/animationFrames.d.ts.map deleted file mode 100644 index cf0f7a245..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/animationFrames.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrames.d.ts","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/animationFrames.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoEG;AACH,wBAAgB,eAAe,CAAC,iBAAiB,CAAC,EAAE,iBAAiB;;;GAEpE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/fetch.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/fetch.d.ts deleted file mode 100644 index f2ded40a2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/fetch.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Observable } from '../../Observable'; -import { ObservableInput } from '../../types'; -export declare function fromFetch(input: string | Request, init: RequestInit & { - selector: (response: Response) => ObservableInput; -}): Observable; -export declare function fromFetch(input: string | Request, init?: RequestInit): Observable; -//# sourceMappingURL=fetch.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/fetch.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/fetch.d.ts.map deleted file mode 100644 index 19a860bef..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/fetch.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/fetch.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,wBAAgB,SAAS,CAAC,CAAC,EACzB,KAAK,EAAE,MAAM,GAAG,OAAO,EACvB,IAAI,EAAE,WAAW,GAAG;IAClB,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,eAAe,CAAC,CAAC,CAAC,CAAC;CACtD,GACA,UAAU,CAAC,CAAC,CAAC,CAAC;AAEjB,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/webSocket.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/webSocket.d.ts deleted file mode 100644 index ed35315f3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/webSocket.d.ts +++ /dev/null @@ -1,160 +0,0 @@ -import { WebSocketSubject, WebSocketSubjectConfig } from './WebSocketSubject'; -/** - * Wrapper around the w3c-compatible WebSocket object provided by the browser. - * - * {@link Subject} that communicates with a server via WebSocket - * - * `webSocket` is a factory function that produces a `WebSocketSubject`, - * which can be used to make WebSocket connection with an arbitrary endpoint. - * `webSocket` accepts as an argument either a string with url of WebSocket endpoint, or an - * {@link WebSocketSubjectConfig} object for providing additional configuration, as - * well as Observers for tracking lifecycle of WebSocket connection. - * - * When `WebSocketSubject` is subscribed, it attempts to make a socket connection, - * unless there is one made already. This means that many subscribers will always listen - * on the same socket, thus saving resources. If however, two instances are made of `WebSocketSubject`, - * even if these two were provided with the same url, they will attempt to make separate - * connections. When consumer of a `WebSocketSubject` unsubscribes, socket connection is closed, - * only if there are no more subscribers still listening. If after some time a consumer starts - * subscribing again, connection is reestablished. - * - * Once connection is made, whenever a new message comes from the server, `WebSocketSubject` will emit that - * message as a value in the stream. By default, a message from the socket is parsed via `JSON.parse`. If you - * want to customize how deserialization is handled (if at all), you can provide custom `resultSelector` - * function in {@link WebSocketSubject}. When connection closes, stream will complete, provided it happened without - * any errors. If at any point (starting, maintaining or closing a connection) there is an error, - * stream will also error with whatever WebSocket API has thrown. - * - * By virtue of being a {@link Subject}, `WebSocketSubject` allows for receiving and sending messages from the server. In order - * to communicate with a connected endpoint, use `next`, `error` and `complete` methods. `next` sends a value to the server, so bear in mind - * that this value will not be serialized beforehand. Because of This, `JSON.stringify` will have to be called on a value by hand, - * before calling `next` with a result. Note also that if at the moment of nexting value - * there is no socket connection (for example no one is subscribing), those values will be buffered, and sent when connection - * is finally established. `complete` method closes socket connection. `error` does the same, - * as well as notifying the server that something went wrong via status code and string with details of what happened. - * Since status code is required in WebSocket API, `WebSocketSubject` does not allow, like regular `Subject`, - * arbitrary values being passed to the `error` method. It needs to be called with an object that has `code` - * property with status code number and optional `reason` property with string describing details - * of an error. - * - * Calling `next` does not affect subscribers of `WebSocketSubject` - they have no - * information that something was sent to the server (unless of course the server - * responds somehow to a message). On the other hand, since calling `complete` triggers - * an attempt to close socket connection. If that connection is closed without any errors, stream will - * complete, thus notifying all subscribers. And since calling `error` closes - * socket connection as well, just with a different status code for the server, if closing itself proceeds - * without errors, subscribed Observable will not error, as one might expect, but complete as usual. In both cases - * (calling `complete` or `error`), if process of closing socket connection results in some errors, *then* stream - * will error. - * - * **Multiplexing** - * - * `WebSocketSubject` has an additional operator, not found in other Subjects. It is called `multiplex` and it is - * used to simulate opening several socket connections, while in reality maintaining only one. - * For example, an application has both chat panel and real-time notifications about sport news. Since these are two distinct functions, - * it would make sense to have two separate connections for each. Perhaps there could even be two separate services with WebSocket - * endpoints, running on separate machines with only GUI combining them together. Having a socket connection - * for each functionality could become too resource expensive. It is a common pattern to have single - * WebSocket endpoint that acts as a gateway for the other services (in this case chat and sport news services). - * Even though there is a single connection in a client app, having the ability to manipulate streams as if it - * were two separate sockets is desirable. This eliminates manually registering and unregistering in a gateway for - * given service and filter out messages of interest. This is exactly what `multiplex` method is for. - * - * Method accepts three parameters. First two are functions returning subscription and unsubscription messages - * respectively. These are messages that will be sent to the server, whenever consumer of resulting Observable - * subscribes and unsubscribes. Server can use them to verify that some kind of messages should start or stop - * being forwarded to the client. In case of the above example application, after getting subscription message with proper identifier, - * gateway server can decide that it should connect to real sport news service and start forwarding messages from it. - * Note that both messages will be sent as returned by the functions, they are by default serialized using JSON.stringify, just - * as messages pushed via `next`. Also bear in mind that these messages will be sent on *every* subscription and - * unsubscription. This is potentially dangerous, because one consumer of an Observable may unsubscribe and the server - * might stop sending messages, since it got unsubscription message. This needs to be handled - * on the server or using {@link publish} on a Observable returned from 'multiplex'. - * - * Last argument to `multiplex` is a `messageFilter` function which should return a boolean. It is used to filter out messages - * sent by the server to only those that belong to simulated WebSocket stream. For example, server might mark these - * messages with some kind of string identifier on a message object and `messageFilter` would return `true` - * if there is such identifier on an object emitted by the socket. Messages which returns `false` in `messageFilter` are simply skipped, - * and are not passed down the stream. - * - * Return value of `multiplex` is an Observable with messages incoming from emulated socket connection. Note that this - * is not a `WebSocketSubject`, so calling `next` or `multiplex` again will fail. For pushing values to the - * server, use root `WebSocketSubject`. - * - * ## Examples - * - * Listening for messages from the server - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const subject = webSocket('ws://localhost:8081'); - * - * subject.subscribe({ - * next: msg => console.log('message received: ' + msg), // Called whenever there is a message from the server. - * error: err => console.log(err), // Called if at any point WebSocket API signals some kind of error. - * complete: () => console.log('complete') // Called when connection is closed (for whatever reason). - * }); - * ``` - * - * Pushing messages to the server - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const subject = webSocket('ws://localhost:8081'); - * - * subject.subscribe(); - * // Note that at least one consumer has to subscribe to the created subject - otherwise "nexted" values will be just buffered and not sent, - * // since no connection was established! - * - * subject.next({ message: 'some message' }); - * // This will send a message to the server once a connection is made. Remember value is serialized with JSON.stringify by default! - * - * subject.complete(); // Closes the connection. - * - * subject.error({ code: 4000, reason: 'I think our app just broke!' }); - * // Also closes the connection, but let's the server know that this closing is caused by some error. - * ``` - * - * Multiplexing WebSocket - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const subject = webSocket('ws://localhost:8081'); - * - * const observableA = subject.multiplex( - * () => ({ subscribe: 'A' }), // When server gets this message, it will start sending messages for 'A'... - * () => ({ unsubscribe: 'A' }), // ...and when gets this one, it will stop. - * message => message.type === 'A' // If the function returns `true` message is passed down the stream. Skipped if the function returns false. - * ); - * - * const observableB = subject.multiplex( // And the same goes for 'B'. - * () => ({ subscribe: 'B' }), - * () => ({ unsubscribe: 'B' }), - * message => message.type === 'B' - * ); - * - * const subA = observableA.subscribe(messageForA => console.log(messageForA)); - * // At this moment WebSocket connection is established. Server gets '{"subscribe": "A"}' message and starts sending messages for 'A', - * // which we log here. - * - * const subB = observableB.subscribe(messageForB => console.log(messageForB)); - * // Since we already have a connection, we just send '{"subscribe": "B"}' message to the server. It starts sending messages for 'B', - * // which we log here. - * - * subB.unsubscribe(); - * // Message '{"unsubscribe": "B"}' is sent to the server, which stops sending 'B' messages. - * - * subA.unsubscribe(); - * // Message '{"unsubscribe": "A"}' makes the server stop sending messages for 'A'. Since there is no more subscribers to root Subject, - * // socket connection closes. - * ``` - * - * @param {string|WebSocketSubjectConfig} urlConfigOrSource The WebSocket endpoint as an url or an object with - * configuration and additional Observers. - * @return {WebSocketSubject} Subject which allows to both send and receive messages via WebSocket connection. - */ -export declare function webSocket(urlConfigOrSource: string | WebSocketSubjectConfig): WebSocketSubject; -//# sourceMappingURL=webSocket.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/webSocket.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/webSocket.d.ts.map deleted file mode 100644 index e7c38d2c1..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/dom/webSocket.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webSocket.d.ts","sourceRoot":"","sources":["../../../../../src/internal/observable/dom/webSocket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4JG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,iBAAiB,EAAE,MAAM,GAAG,sBAAsB,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAEvG"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/empty.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/empty.d.ts deleted file mode 100644 index accaa5bb7..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/empty.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -/** - * A simple Observable that emits no items to the Observer and immediately - * emits a complete notification. - * - * Just emits 'complete', and nothing else. - * - * ![](empty.png) - * - * A simple Observable that only emits the complete notification. It can be used - * for composing with other Observables, such as in a {@link mergeMap}. - * - * ## Examples - * - * Log complete notification - * - * ```ts - * import { EMPTY } from 'rxjs'; - * - * EMPTY.subscribe({ - * next: () => console.log('Next'), - * complete: () => console.log('Complete!') - * }); - * - * // Outputs - * // Complete! - * ``` - * - * Emit the number 7, then complete - * - * ```ts - * import { EMPTY, startWith } from 'rxjs'; - * - * const result = EMPTY.pipe(startWith(7)); - * result.subscribe(x => console.log(x)); - * - * // Outputs - * // 7 - * ``` - * - * Map and flatten only odd numbers to the sequence `'a'`, `'b'`, `'c'` - * - * ```ts - * import { interval, mergeMap, of, EMPTY } from 'rxjs'; - * - * const interval$ = interval(1000); - * const result = interval$.pipe( - * mergeMap(x => x % 2 === 1 ? of('a', 'b', 'c') : EMPTY), - * ); - * result.subscribe(x => console.log(x)); - * - * // Results in the following to the console: - * // x is equal to the count on the interval, e.g. (0, 1, 2, 3, ...) - * // x will occur every 1000ms - * // if x % 2 is equal to 1, print a, b, c (each on its own) - * // if x % 2 is not equal to 1, nothing will be output - * ``` - * - * @see {@link Observable} - * @see {@link NEVER} - * @see {@link of} - * @see {@link throwError} - */ -export declare const EMPTY: Observable; -/** - * @param scheduler A {@link SchedulerLike} to use for scheduling - * the emission of the complete notification. - * @deprecated Replaced with the {@link EMPTY} constant or {@link scheduled} (e.g. `scheduled([], scheduler)`). Will be removed in v8. - */ -export declare function empty(scheduler?: SchedulerLike): Observable; -//# sourceMappingURL=empty.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/empty.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/empty.d.ts.map deleted file mode 100644 index 0192112cc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/empty.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/empty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,eAAO,MAAM,KAAK,mBAA+D,CAAC;AAElF;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,SAAS,CAAC,EAAE,aAAa,qBAE9C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/forkJoin.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/forkJoin.d.ts deleted file mode 100644 index e36c9a464..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/forkJoin.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservedValueOf, ObservableInputTuple, ObservableInput } from '../types'; -import { AnyCatcher } from '../AnyCatcher'; -/** - * You have passed `any` here, we can't figure out if it is - * an array or an object, so you're getting `unknown`. Use better types. - * @param arg Something typed as `any` - */ -export declare function forkJoin(arg: T): Observable; -export declare function forkJoin(scheduler: null | undefined): Observable; -export declare function forkJoin(sources: readonly []): Observable; -export declare function forkJoin(sources: readonly [...ObservableInputTuple]): Observable; -export declare function forkJoin(sources: readonly [...ObservableInputTuple], resultSelector: (...values: A) => R): Observable; -/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */ -export declare function forkJoin(...sources: [...ObservableInputTuple]): Observable; -/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */ -export declare function forkJoin(...sourcesAndResultSelector: [...ObservableInputTuple, (...values: A) => R]): Observable; -export declare function forkJoin(sourcesObject: { - [K in any]: never; -}): Observable; -export declare function forkJoin>>(sourcesObject: T): Observable<{ - [K in keyof T]: ObservedValueOf; -}>; -//# sourceMappingURL=forkJoin.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/forkJoin.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/forkJoin.d.ts.map deleted file mode 100644 index 540b3494e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/forkJoin.d.ts.map +++ /dev/null @@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,CAAC,EACtD,GAAG,wBAAwB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,GAC7E,UAAU,CAAC,CAAC,CAAC,CAAC;AAGjB,wBAAgB,QAAQ,CAAC,aAAa,EAAE;KAAG,CAAC,IAAI,GAAG,GAAG,KAAK;CAAE,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AAClF,wBAAgB,QAAQ,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,CAAC,CAAC,EACrE,aAAa,EAAE,CAAC,GACf,UAAU,CAAC;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/from.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/from.d.ts deleted file mode 100644 index f9fd3ffaa..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/from.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput, SchedulerLike, ObservedValueOf } from '../types'; -export declare function from>(input: O): Observable>; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function from>(input: O, scheduler: SchedulerLike | undefined): Observable>; -//# sourceMappingURL=from.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/from.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/from.d.ts.map deleted file mode 100644 index c891cc0d6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/from.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"from.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/from.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI3E,wBAAgB,IAAI,CAAC,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/F,8IAA8I;AAC9I,wBAAgB,IAAI,CAAC,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEvent.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEvent.d.ts deleted file mode 100644 index bbc397d65..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEvent.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { Observable } from '../Observable'; -export interface NodeStyleEventEmitter { - addListener(eventName: string | symbol, handler: NodeEventHandler): this; - removeListener(eventName: string | symbol, handler: NodeEventHandler): this; -} -export declare type NodeEventHandler = (...args: any[]) => void; -export interface NodeCompatibleEventEmitter { - addListener(eventName: string, handler: NodeEventHandler): void | {}; - removeListener(eventName: string, handler: NodeEventHandler): void | {}; -} -export interface JQueryStyleEventEmitter { - on(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void; - off(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void; -} -export interface EventListenerObject { - handleEvent(evt: E): void; -} -export interface HasEventTargetAddRemove { - addEventListener(type: string, listener: ((evt: E) => void) | EventListenerObject | null, options?: boolean | AddEventListenerOptions): void; - removeEventListener(type: string, listener: ((evt: E) => void) | EventListenerObject | null, options?: EventListenerOptions | boolean): void; -} -export interface EventListenerOptions { - capture?: boolean; - passive?: boolean; - once?: boolean; -} -export interface AddEventListenerOptions extends EventListenerOptions { - once?: boolean; - passive?: boolean; -} -export declare function fromEvent(target: HasEventTargetAddRemove | ArrayLike>, eventName: string): Observable; -export declare function fromEvent(target: HasEventTargetAddRemove | ArrayLike>, eventName: string, resultSelector: (event: T) => R): Observable; -export declare function fromEvent(target: HasEventTargetAddRemove | ArrayLike>, eventName: string, options: EventListenerOptions): Observable; -export declare function fromEvent(target: HasEventTargetAddRemove | ArrayLike>, eventName: string, options: EventListenerOptions, resultSelector: (event: T) => R): Observable; -export declare function fromEvent(target: NodeStyleEventEmitter | ArrayLike, eventName: string): Observable; -/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */ -export declare function fromEvent(target: NodeStyleEventEmitter | ArrayLike, eventName: string): Observable; -export declare function fromEvent(target: NodeStyleEventEmitter | ArrayLike, eventName: string, resultSelector: (...args: any[]) => R): Observable; -export declare function fromEvent(target: NodeCompatibleEventEmitter | ArrayLike, eventName: string): Observable; -/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */ -export declare function fromEvent(target: NodeCompatibleEventEmitter | ArrayLike, eventName: string): Observable; -export declare function fromEvent(target: NodeCompatibleEventEmitter | ArrayLike, eventName: string, resultSelector: (...args: any[]) => R): Observable; -export declare function fromEvent(target: JQueryStyleEventEmitter | ArrayLike>, eventName: string): Observable; -export declare function fromEvent(target: JQueryStyleEventEmitter | ArrayLike>, eventName: string, resultSelector: (value: T, ...args: any[]) => R): Observable; -//# sourceMappingURL=fromEvent.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEvent.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEvent.d.ts.map deleted file mode 100644 index 4e07aa154..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEvent.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fromEvent.d.ts","sourceRoot":"","sources":["../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AAC,EAC1E,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GACpC,UAAU,CAAC,CAAC,CAAC,CAAC;AAEjB,wBAAgB,SAAS,CAAC,CAAC,EACzB,MAAM,EAAE,uBAAuB,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,uBAAuB,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EACpF,SAAS,EAAE,MAAM,GAChB,UAAU,CAAC,CAAC,CAAC,CAAC;AACjB,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAC5B,MAAM,EAAE,uBAAuB,CAAC,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,CAAC,uBAAuB,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,EACpF,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GAC9C,UAAU,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEventPattern.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEventPattern.d.ts deleted file mode 100644 index 027d12f3f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEventPattern.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Observable } from '../Observable'; -import { NodeEventHandler } from './fromEvent'; -export declare function fromEventPattern(addHandler: (handler: NodeEventHandler) => any, removeHandler?: (handler: NodeEventHandler, signal?: any) => void): Observable; -export declare function fromEventPattern(addHandler: (handler: NodeEventHandler) => any, removeHandler?: (handler: NodeEventHandler, signal?: any) => void, resultSelector?: (...args: any[]) => T): Observable; -//# sourceMappingURL=fromEventPattern.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEventPattern.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEventPattern.d.ts.map deleted file mode 100644 index 4f20f4662..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromEventPattern.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fromEventPattern.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/fromEventPattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAI/C,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,UAAU,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,GAAG,EAC9C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,GAChE,UAAU,CAAC,CAAC,CAAC,CAAC;AACjB,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,UAAU,EAAE,CAAC,OAAO,EAAE,gBAAgB,KAAK,GAAG,EAC9C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,CAAC,EAAE,GAAG,KAAK,IAAI,EACjE,cAAc,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GACrC,UAAU,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromSubscribable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromSubscribable.d.ts deleted file mode 100644 index 71ec6f538..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromSubscribable.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscribable } from '../types'; -/** - * Used to convert a subscribable to an observable. - * - * Currently, this is only used within internals. - * - * TODO: Discuss ObservableInput supporting "Subscribable". - * https://github.com/ReactiveX/rxjs/issues/5909 - * - * @param subscribable A subscribable - */ -export declare function fromSubscribable(subscribable: Subscribable): Observable; -//# sourceMappingURL=fromSubscribable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromSubscribable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromSubscribable.d.ts.map deleted file mode 100644 index e9ab68c62..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/fromSubscribable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fromSubscribable.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/fromSubscribable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,iBAEhE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/generate.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/generate.d.ts deleted file mode 100644 index 903b8ea67..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/generate.d.ts +++ /dev/null @@ -1,311 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -declare type ConditionFunc = (state: S) => boolean; -declare type IterateFunc = (state: S) => S; -declare type ResultFunc = (state: S) => T; -export interface GenerateBaseOptions { - /** - * Initial state. - */ - initialState: S; - /** - * Condition function that accepts state and returns boolean. - * When it returns false, the generator stops. - * If not specified, a generator never stops. - */ - condition?: ConditionFunc; - /** - * Iterate function that accepts state and returns new state. - */ - iterate: IterateFunc; - /** - * SchedulerLike to use for generation process. - * By default, a generator starts immediately. - */ - scheduler?: SchedulerLike; -} -export interface GenerateOptions extends GenerateBaseOptions { - /** - * Result selection function that accepts state and returns a value to emit. - */ - resultSelector: ResultFunc; -} -/** - * Generates an observable sequence by running a state-driven loop - * producing the sequence's elements, using the specified scheduler - * to send out observer messages. - * - * ![](generate.png) - * - * ## Examples - * - * Produces sequence of numbers - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate(0, x => x < 3, x => x + 1, x => x); - * - * result.subscribe(x => console.log(x)); - * - * // Logs: - * // 0 - * // 1 - * // 2 - * ``` - * - * Use `asapScheduler` - * - * ```ts - * import { generate, asapScheduler } from 'rxjs'; - * - * const result = generate(1, x => x < 5, x => x * 2, x => x + 1, asapScheduler); - * - * result.subscribe(x => console.log(x)); - * - * // Logs: - * // 2 - * // 3 - * // 5 - * ``` - * - * @see {@link from} - * @see {@link Observable} - * - * @param {S} initialState Initial state. - * @param {function (state: S): boolean} condition Condition to terminate generation (upon returning false). - * @param {function (state: S): S} iterate Iteration step function. - * @param {function (state: S): T} resultSelector Selector function for results produced in the sequence. (deprecated) - * @param {SchedulerLike} [scheduler] A {@link SchedulerLike} on which to run the generator loop. If not provided, defaults to emit immediately. - * @returns {Observable} The generated sequence. - * @deprecated Instead of passing separate arguments, use the options argument. Signatures taking separate arguments will be removed in v8. - */ -export declare function generate(initialState: S, condition: ConditionFunc, iterate: IterateFunc, resultSelector: ResultFunc, scheduler?: SchedulerLike): Observable; -/** - * Generates an Observable by running a state-driven loop - * that emits an element on each iteration. - * - * Use it instead of nexting values in a for loop. - * - * ![](generate.png) - * - * `generate` allows you to create a stream of values generated with a loop very similar to - * a traditional for loop. The first argument of `generate` is a beginning value. The second argument - * is a function that accepts this value and tests if some condition still holds. If it does, - * then the loop continues, if not, it stops. The third value is a function which takes the - * previously defined value and modifies it in some way on each iteration. Note how these three parameters - * are direct equivalents of three expressions in a traditional for loop: the first expression - * initializes some state (for example, a numeric index), the second tests if the loop can perform the next - * iteration (for example, if the index is lower than 10) and the third states how the defined value - * will be modified on every step (for example, the index will be incremented by one). - * - * Return value of a `generate` operator is an Observable that on each loop iteration - * emits a value. First of all, the condition function is ran. If it returns true, then the Observable - * emits the currently stored value (initial value at the first iteration) and finally updates - * that value with iterate function. If at some point the condition returns false, then the Observable - * completes at that moment. - * - * Optionally you can pass a fourth parameter to `generate` - a result selector function which allows you - * to immediately map the value that would normally be emitted by an Observable. - * - * If you find three anonymous functions in `generate` call hard to read, you can provide - * a single object to the operator instead where the object has the properties: `initialState`, - * `condition`, `iterate` and `resultSelector`, which should have respective values that you - * would normally pass to `generate`. `resultSelector` is still optional, but that form - * of calling `generate` allows you to omit `condition` as well. If you omit it, that means - * condition always holds, or in other words the resulting Observable will never complete. - * - * Both forms of `generate` can optionally accept a scheduler. In case of a multi-parameter call, - * scheduler simply comes as a last argument (no matter if there is a `resultSelector` - * function or not). In case of a single-parameter call, you can provide it as a - * `scheduler` property on the object passed to the operator. In both cases, a scheduler decides when - * the next iteration of the loop will happen and therefore when the next value will be emitted - * by the Observable. For example, to ensure that each value is pushed to the Observer - * on a separate task in the event loop, you could use the `async` scheduler. Note that - * by default (when no scheduler is passed) values are simply emitted synchronously. - * - * - * ## Examples - * - * Use with condition and iterate functions - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate(0, x => x < 3, x => x + 1); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // 0 - * // 1 - * // 2 - * // 'Complete!' - * ``` - * - * Use with condition, iterate and resultSelector functions - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate(0, x => x < 3, x => x + 1, x => x * 1000); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // 0 - * // 1000 - * // 2000 - * // 'Complete!' - * ``` - * - * Use with options object - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate({ - * initialState: 0, - * condition(value) { return value < 3; }, - * iterate(value) { return value + 1; }, - * resultSelector(value) { return value * 1000; } - * }); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // 0 - * // 1000 - * // 2000 - * // 'Complete!' - * ``` - * - * Use options object without condition function - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate({ - * initialState: 0, - * iterate(value) { return value + 1; }, - * resultSelector(value) { return value * 1000; } - * }); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') // This will never run - * }); - * - * // Logs: - * // 0 - * // 1000 - * // 2000 - * // 3000 - * // ...and never stops. - * ``` - * - * @see {@link from} - * - * @param {S} initialState Initial state. - * @param {function (state: S): boolean} condition Condition to terminate generation (upon returning false). - * @param {function (state: S): S} iterate Iteration step function. - * @param {function (state: S): T} [resultSelector] Selector function for results produced in the sequence. - * @param {Scheduler} [scheduler] A {@link Scheduler} on which to run the generator loop. If not provided, defaults to emitting immediately. - * @return {Observable} The generated sequence. - * @deprecated Instead of passing separate arguments, use the options argument. Signatures taking separate arguments will be removed in v8. - */ -export declare function generate(initialState: S, condition: ConditionFunc, iterate: IterateFunc, scheduler?: SchedulerLike): Observable; -/** - * Generates an observable sequence by running a state-driven loop - * producing the sequence's elements, using the specified scheduler - * to send out observer messages. - * The overload accepts options object that might contain initial state, iterate, - * condition and scheduler. - * - * ![](generate.png) - * - * ## Examples - * - * Use options object with condition function - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate({ - * initialState: 0, - * condition: x => x < 3, - * iterate: x => x + 1 - * }); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // 0 - * // 1 - * // 2 - * // 'Complete!' - * ``` - * - * @see {@link from} - * @see {@link Observable} - * - * @param {GenerateBaseOptions} options Object that must contain initialState, iterate and might contain condition and scheduler. - * @returns {Observable} The generated sequence. - */ -export declare function generate(options: GenerateBaseOptions): Observable; -/** - * Generates an observable sequence by running a state-driven loop - * producing the sequence's elements, using the specified scheduler - * to send out observer messages. - * The overload accepts options object that might contain initial state, iterate, - * condition, result selector and scheduler. - * - * ![](generate.png) - * - * ## Examples - * - * Use options object with condition and iterate function - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate({ - * initialState: 0, - * condition: x => x < 3, - * iterate: x => x + 1, - * resultSelector: x => x - * }); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // 0 - * // 1 - * // 2 - * // 'Complete!' - * ``` - * - * @see {@link from} - * @see {@link Observable} - * - * @param {GenerateOptions} options Object that must contain initialState, iterate, resultSelector and might contain condition and scheduler. - * @returns {Observable} The generated sequence. - */ -export declare function generate(options: GenerateOptions): Observable; -export {}; -//# sourceMappingURL=generate.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/generate.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/generate.d.ts.map deleted file mode 100644 index 74351c119..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/generate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAmB,aAAa,EAAE,MAAM,UAAU,CAAC;AAK1D,aAAK,aAAa,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC;AAC9C,aAAK,WAAW,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AACtC,aAAK,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAExC,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC;;OAEG;IACH,YAAY,EAAE,CAAC,CAAC;IAChB;;;;OAIG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAC7B;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC;IACxB;;;OAGG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED,MA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AAU,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/iif.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/iif.d.ts deleted file mode 100644 index cc0491414..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/iif.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput } from '../types'; -/** - * Checks a boolean at subscription time, and chooses between one of two observable sources - * - * `iif` expects a function that returns a boolean (the `condition` function), and two sources, - * the `trueResult` and the `falseResult`, and returns an Observable. - * - * At the moment of subscription, the `condition` function is called. If the result is `true`, the - * subscription will be to the source passed as the `trueResult`, otherwise, the subscription will be - * to the source passed as the `falseResult`. - * - * If you need to check more than two options to choose between more than one observable, have a look at the {@link defer} creation method. - * - * ## Examples - * - * Change at runtime which Observable will be subscribed - * - * ```ts - * import { iif, of } from 'rxjs'; - * - * let subscribeToFirst; - * const firstOrSecond = iif( - * () => subscribeToFirst, - * of('first'), - * of('second') - * ); - * - * subscribeToFirst = true; - * firstOrSecond.subscribe(value => console.log(value)); - * - * // Logs: - * // 'first' - * - * subscribeToFirst = false; - * firstOrSecond.subscribe(value => console.log(value)); - * - * // Logs: - * // 'second' - * ``` - * - * Control access to an Observable - * - * ```ts - * import { iif, of, EMPTY } from 'rxjs'; - * - * let accessGranted; - * const observableIfYouHaveAccess = iif( - * () => accessGranted, - * of('It seems you have an access...'), - * EMPTY - * ); - * - * accessGranted = true; - * observableIfYouHaveAccess.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('The end') - * }); - * - * // Logs: - * // 'It seems you have an access...' - * // 'The end' - * - * accessGranted = false; - * observableIfYouHaveAccess.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('The end') - * }); - * - * // Logs: - * // 'The end' - * ``` - * - * @see {@link defer} - * - * @param condition Condition which Observable should be chosen. - * @param trueResult An Observable that will be subscribed if condition is true. - * @param falseResult An Observable that will be subscribed if condition is false. - * @return An observable that proxies to `trueResult` or `falseResult`, depending on the result of the `condition` function. - */ -export declare function iif(condition: () => boolean, trueResult: ObservableInput, falseResult: ObservableInput): Observable; -//# sourceMappingURL=iif.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/iif.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/iif.d.ts.map deleted file mode 100644 index bc076de6c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/iif.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"iif.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/iif.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6EG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,OAAO,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,eAAe,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAEtI"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/innerFrom.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/innerFrom.d.ts deleted file mode 100644 index 1cd023922..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/innerFrom.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput, ObservedValueOf, ReadableStreamLike } from '../types'; -export declare function innerFrom>(input: O): Observable>; -/** - * Creates an RxJS Observable from an object that implements `Symbol.observable`. - * @param obj An object that properly implements `Symbol.observable`. - */ -export declare function fromInteropObservable(obj: any): Observable; -/** - * Synchronously emits the values of an array like and completes. - * This is exported because there are creation functions and operators that need to - * make direct use of the same logic, and there's no reason to make them run through - * `from` conditionals because we *know* they're dealing with an array. - * @param array The array to emit values from - */ -export declare function fromArrayLike(array: ArrayLike): Observable; -export declare function fromPromise(promise: PromiseLike): Observable; -export declare function fromIterable(iterable: Iterable): Observable; -export declare function fromAsyncIterable(asyncIterable: AsyncIterable): Observable; -export declare function fromReadableStreamLike(readableStream: ReadableStreamLike): Observable; -//# sourceMappingURL=innerFrom.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/innerFrom.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/innerFrom.d.ts.map deleted file mode 100644 index e6c03b77f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/innerFrom.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"innerFrom.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/innerFrom.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAWhF,wBAAgB,SAAS,CAAC,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AA6BpG;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,iBAShD;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,iBAgBnD;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,iBAcrD;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,iBAUpD;AAED,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,iBAInE;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC,CAAC,iBAE9E"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/interval.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/interval.d.ts deleted file mode 100644 index 1f499b59b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/interval.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -/** - * Creates an Observable that emits sequential numbers every specified - * interval of time, on a specified {@link SchedulerLike}. - * - * Emits incremental numbers periodically in time. - * - * ![](interval.png) - * - * `interval` returns an Observable that emits an infinite sequence of - * ascending integers, with a constant interval of time of your choosing - * between those emissions. The first emission is not sent immediately, but - * only after the first period has passed. By default, this operator uses the - * `async` {@link SchedulerLike} to provide a notion of time, but you may pass any - * {@link SchedulerLike} to it. - * - * ## Example - * - * Emits ascending numbers, one every second (1000ms) up to the number 3 - * - * ```ts - * import { interval, take } from 'rxjs'; - * - * const numbers = interval(1000); - * - * const takeFourNumbers = numbers.pipe(take(4)); - * - * takeFourNumbers.subscribe(x => console.log('Next: ', x)); - * - * // Logs: - * // Next: 0 - * // Next: 1 - * // Next: 2 - * // Next: 3 - * ``` - * - * @see {@link timer} - * @see {@link delay} - * - * @param {number} [period=0] The interval size in milliseconds (by default) - * or the time unit determined by the scheduler's clock. - * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for scheduling - * the emission of values, and providing a notion of "time". - * @return {Observable} An Observable that emits a sequential number each time - * interval. - */ -export declare function interval(period?: number, scheduler?: SchedulerLike): Observable; -//# sourceMappingURL=interval.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/interval.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/interval.d.ts.map deleted file mode 100644 index 9bf645046..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/interval.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"interval.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/interval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,QAAQ,CAAC,MAAM,SAAI,EAAE,SAAS,GAAE,aAA8B,GAAG,UAAU,CAAC,MAAM,CAAC,CAOlG"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/merge.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/merge.d.ts deleted file mode 100644 index a1ca04863..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/merge.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInputTuple, SchedulerLike } from '../types'; -export declare function merge(...sources: [...ObservableInputTuple]): Observable; -export declare function merge(...sourcesAndConcurrency: [...ObservableInputTuple, number?]): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function merge(...sourcesAndScheduler: [...ObservableInputTuple, SchedulerLike?]): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function merge(...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple, number?, SchedulerLike?]): Observable; -//# sourceMappingURL=merge.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/merge.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/merge.d.ts.map deleted file mode 100644 index e6d79d28a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/merge.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAmB,oBAAoB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAOhF,wBAAgB,KAAK,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACrH,wBAAgB,KAAK,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,qBAAqB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC5I,6JAA6J;AAC7J,wBAAgB,KAAK,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAChD,GAAG,mBAAmB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,GACnE,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACzB,6JAA6J;AAC7J,wBAAgB,KAAK,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAChD,GAAG,iCAAiC,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,aAAa,CAAC,CAAC,GAC1F,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/never.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/never.d.ts deleted file mode 100644 index ba889e105..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/never.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { Observable } from '../Observable'; -/** - * An Observable that emits no items to the Observer and never completes. - * - * ![](never.png) - * - * A simple Observable that emits neither values nor errors nor the completion - * notification. It can be used for testing purposes or for composing with other - * Observables. Please note that by never emitting a complete notification, this - * Observable keeps the subscription from being disposed automatically. - * Subscriptions need to be manually disposed. - * - * ## Example - * - * Emit the number 7, then never emit anything else (not even complete) - * - * ```ts - * import { NEVER, startWith } from 'rxjs'; - * - * const info = () => console.log('Will not be called'); - * - * const result = NEVER.pipe(startWith(7)); - * result.subscribe({ - * next: x => console.log(x), - * error: info, - * complete: info - * }); - * ``` - * - * @see {@link Observable} - * @see {@link EMPTY} - * @see {@link of} - * @see {@link throwError} - */ -export declare const NEVER: Observable; -/** - * @deprecated Replaced with the {@link NEVER} constant. Will be removed in v8. - */ -export declare function never(): Observable; -//# sourceMappingURL=never.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/never.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/never.d.ts.map deleted file mode 100644 index 1adf3d4df..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/never.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"never.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/never.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,KAAK,mBAA8B,CAAC;AAEjD;;GAEG;AACH,wBAAgB,KAAK,sBAEpB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/of.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/of.d.ts deleted file mode 100644 index 29faae935..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/of.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { SchedulerLike, ValueFromArray } from '../types'; -import { Observable } from '../Observable'; -export declare function of(value: null): Observable; -export declare function of(value: undefined): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function of(scheduler: SchedulerLike): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function of(...valuesAndScheduler: [...A, SchedulerLike]): Observable>; -export declare function of(): Observable; -/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */ -export declare function of(): Observable; -export declare function of(value: T): Observable; -export declare function of(...values: A): Observable>; -//# sourceMappingURL=of.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/of.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/of.d.ts.map deleted file mode 100644 index f949aece4..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/of.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"of.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/of.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAS3C,wBAAgB,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC;AAClD,wBAAgB,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;AAE5D,8IAA8I;AAC9I,wBAAgB,EAAE,CAAC,SAAS,EAAE,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AAChE,8IAA8I;AAC9I,wBAAgB,EAAE,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,kBAAkB,EAAE,CAAC,GAAG,CAAC,EAAE,aAAa,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAE9H,wBAAgB,EAAE,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC;AACxC,0IAA0I;AAC1I,wBAAgB,EAAE,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC;AACvC,wBAAgB,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AAC/C,wBAAgB,EAAE,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/onErrorResumeNext.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/onErrorResumeNext.d.ts deleted file mode 100644 index 503ba42b4..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/onErrorResumeNext.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInputTuple } from '../types'; -export declare function onErrorResumeNext(sources: [...ObservableInputTuple]): Observable; -export declare function onErrorResumeNext(...sources: [...ObservableInputTuple]): Observable; -//# sourceMappingURL=onErrorResumeNext.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/onErrorResumeNext.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/onErrorResumeNext.d.ts.map deleted file mode 100644 index 2886c57ed..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/onErrorResumeNext.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"onErrorResumeNext.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/onErrorResumeNext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAOhD,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAC9H,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/pairs.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/pairs.d.ts deleted file mode 100644 index 35ba244a8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/pairs.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -/** - * @deprecated Use `from(Object.entries(obj))` instead. Will be removed in v8. - */ -export declare function pairs(arr: readonly T[], scheduler?: SchedulerLike): Observable<[string, T]>; -/** - * @deprecated Use `from(Object.entries(obj))` instead. Will be removed in v8. - */ -export declare function pairs>(obj: O, scheduler?: SchedulerLike): Observable<[keyof O, O[keyof O]]>; -/** - * @deprecated Use `from(Object.entries(obj))` instead. Will be removed in v8. - */ -export declare function pairs(iterable: Iterable, scheduler?: SchedulerLike): Observable<[string, T]>; -/** - * @deprecated Use `from(Object.entries(obj))` instead. Will be removed in v8. - */ -export declare function pairs(n: number | bigint | boolean | ((...args: any[]) => any) | symbol, scheduler?: SchedulerLike): Observable<[never, never]>; -//# sourceMappingURL=pairs.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/pairs.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/pairs.d.ts.map deleted file mode 100644 index b80838644..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/pairs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pairs.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/pairs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC;;GAEG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AAChG;;GAEG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAC/H;;GAEG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AACpG;;GAEG;AACH,wBAAgB,KAAK,CACnB,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC,GAAG,MAAM,EACjE,SAAS,CAAC,EAAE,aAAa,GACxB,UAAU,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/partition.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/partition.d.ts deleted file mode 100644 index d19c26dbc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/partition.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ObservableInput } from '../types'; -import { Observable } from '../Observable'; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export declare function partition(source: ObservableInput, predicate: (this: A, value: T, index: number) => value is U, thisArg: A): [Observable, Observable>]; -export declare function partition(source: ObservableInput, predicate: (value: T, index: number) => value is U): [Observable, Observable>]; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export declare function partition(source: ObservableInput, predicate: (this: A, value: T, index: number) => boolean, thisArg: A): [Observable, Observable]; -export declare function partition(source: ObservableInput, predicate: (value: T, index: number) => boolean): [Observable, Observable]; -//# sourceMappingURL=partition.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/partition.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/partition.d.ts.map deleted file mode 100644 index 3fd8d6836..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/partition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"partition.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/partition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,gHAAgH;AAChH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,EACzC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAC1B,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,IAAI,CAAC,EAC3D,OAAO,EAAE,CAAC,GACT,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9C,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EACtC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAC1B,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,IAAI,CAAC,GACjD,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAE9C,gHAAgH;AAChH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAC5B,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAC1B,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,EACxD,OAAO,EAAE,CAAC,GACT,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AAClC,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/race.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/race.d.ts deleted file mode 100644 index a1ed4aa7d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/race.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput, ObservableInputTuple } from '../types'; -import { Subscriber } from '../Subscriber'; -export declare function race(inputs: [...ObservableInputTuple]): Observable; -export declare function race(...inputs: [...ObservableInputTuple]): Observable; -/** - * An observable initializer function for both the static version and the - * operator version of race. - * @param sources The sources to race - */ -export declare function raceInit(sources: ObservableInput[]): (subscriber: Subscriber) => void; -//# sourceMappingURL=race.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/race.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/race.d.ts.map deleted file mode 100644 index 344f52d96..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/race.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"race.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/race.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAGjE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,wBAAgB,IAAI,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAChH,wBAAgB,IAAI,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AA+CnH;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,gBACnC,WAAW,CAAC,CAAC,UAyBlC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/range.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/range.d.ts deleted file mode 100644 index 87fcbb1b7..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/range.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { SchedulerLike } from '../types'; -import { Observable } from '../Observable'; -export declare function range(start: number, count?: number): Observable; -/** - * @deprecated The `scheduler` parameter will be removed in v8. Use `range(start, count).pipe(observeOn(scheduler))` instead. Details: Details: https://rxjs.dev/deprecations/scheduler-argument - */ -export declare function range(start: number, count: number | undefined, scheduler: SchedulerLike): Observable; -//# sourceMappingURL=range.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/range.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/range.d.ts.map deleted file mode 100644 index 489b6dd9c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/range.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/range.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAEzE;;GAEG;AACH,wBAAgB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS,EAAE,SAAS,EAAE,aAAa,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/throwError.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/throwError.d.ts deleted file mode 100644 index cd26716c9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/throwError.d.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -/** - * Creates an observable that will create an error instance and push it to the consumer as an error - * immediately upon subscription. - * - * Just errors and does nothing else - * - * ![](throw.png) - * - * This creation function is useful for creating an observable that will create an error and error every - * time it is subscribed to. Generally, inside of most operators when you might want to return an errored - * observable, this is unnecessary. In most cases, such as in the inner return of {@link concatMap}, - * {@link mergeMap}, {@link defer}, and many others, you can simply throw the error, and RxJS will pick - * that up and notify the consumer of the error. - * - * ## Example - * - * Create a simple observable that will create a new error with a timestamp and log it - * and the message every time you subscribe to it - * - * ```ts - * import { throwError } from 'rxjs'; - * - * let errorCount = 0; - * - * const errorWithTimestamp$ = throwError(() => { - * const error: any = new Error(`This is error number ${ ++errorCount }`); - * error.timestamp = Date.now(); - * return error; - * }); - * - * errorWithTimestamp$.subscribe({ - * error: err => console.log(err.timestamp, err.message) - * }); - * - * errorWithTimestamp$.subscribe({ - * error: err => console.log(err.timestamp, err.message) - * }); - * - * // Logs the timestamp and a new error message for each subscription - * ``` - * - * ### Unnecessary usage - * - * Using `throwError` inside of an operator or creation function - * with a callback, is usually not necessary - * - * ```ts - * import { of, concatMap, timer, throwError } from 'rxjs'; - * - * const delays$ = of(1000, 2000, Infinity, 3000); - * - * delays$.pipe( - * concatMap(ms => { - * if (ms < 10000) { - * return timer(ms); - * } else { - * // This is probably overkill. - * return throwError(() => new Error(`Invalid time ${ ms }`)); - * } - * }) - * ) - * .subscribe({ - * next: console.log, - * error: console.error - * }); - * ``` - * - * You can just throw the error instead - * - * ```ts - * import { of, concatMap, timer } from 'rxjs'; - * - * const delays$ = of(1000, 2000, Infinity, 3000); - * - * delays$.pipe( - * concatMap(ms => { - * if (ms < 10000) { - * return timer(ms); - * } else { - * // Cleaner and easier to read for most folks. - * throw new Error(`Invalid time ${ ms }`); - * } - * }) - * ) - * .subscribe({ - * next: console.log, - * error: console.error - * }); - * ``` - * - * @param errorFactory A factory function that will create the error instance that is pushed. - */ -export declare function throwError(errorFactory: () => any): Observable; -/** - * Returns an observable that will error with the specified error immediately upon subscription. - * - * @param error The error instance to emit - * @deprecated Support for passing an error value will be removed in v8. Instead, pass a factory function to `throwError(() => new Error('test'))`. This is - * because it will create the error at the moment it should be created and capture a more appropriate stack trace. If - * for some reason you need to create the error ahead of time, you can still do that: `const err = new Error('test'); throwError(() => err);`. - */ -export declare function throwError(error: any): Observable; -/** - * Notifies the consumer of an error using a given scheduler by scheduling it at delay `0` upon subscription. - * - * @param errorOrErrorFactory An error instance or error factory - * @param scheduler A scheduler to use to schedule the error notification - * @deprecated The `scheduler` parameter will be removed in v8. - * Use `throwError` in combination with {@link observeOn}: `throwError(() => new Error('test')).pipe(observeOn(scheduler));`. - * Details: https://rxjs.dev/deprecations/scheduler-argument - */ -export declare function throwError(errorOrErrorFactory: any, scheduler: SchedulerLike): Observable; -//# sourceMappingURL=throwError.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/throwError.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/throwError.d.ts.map deleted file mode 100644 index 1902a9cdd..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/throwError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwError.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/throwError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;AACH,wBAAgB,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AAEvE;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;AAE1D;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,mBAAmB,EAAE,GAAG,EAAE,SAAS,EAAE,aAAa,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/timer.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/timer.d.ts deleted file mode 100644 index d3f396eeb..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/timer.d.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -/** - * Creates an observable that will wait for a specified time period, or exact date, before - * emitting the number 0. - * - * Used to emit a notification after a delay. - * - * This observable is useful for creating delays in code, or racing against other values - * for ad-hoc timeouts. - * - * The `delay` is specified by default in milliseconds, however providing a custom scheduler could - * create a different behavior. - * - * ## Examples - * - * Wait 3 seconds and start another observable - * - * You might want to use `timer` to delay subscription to an - * observable by a set amount of time. Here we use a timer with - * {@link concatMapTo} or {@link concatMap} in order to wait - * a few seconds and start a subscription to a source. - * - * ```ts - * import { of, timer, concatMap } from 'rxjs'; - * - * // This could be any observable - * const source = of(1, 2, 3); - * - * timer(3000) - * .pipe(concatMap(() => source)) - * .subscribe(console.log); - * ``` - * - * Take all values until the start of the next minute - * - * Using a `Date` as the trigger for the first emission, you can - * do things like wait until midnight to fire an event, or in this case, - * wait until a new minute starts (chosen so the example wouldn't take - * too long to run) in order to stop watching a stream. Leveraging - * {@link takeUntil}. - * - * ```ts - * import { interval, takeUntil, timer } from 'rxjs'; - * - * // Build a Date object that marks the - * // next minute. - * const currentDate = new Date(); - * const startOfNextMinute = new Date( - * currentDate.getFullYear(), - * currentDate.getMonth(), - * currentDate.getDate(), - * currentDate.getHours(), - * currentDate.getMinutes() + 1 - * ); - * - * // This could be any observable stream - * const source = interval(1000); - * - * const result = source.pipe( - * takeUntil(timer(startOfNextMinute)) - * ); - * - * result.subscribe(console.log); - * ``` - * - * ### Known Limitations - * - * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled. - * - * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and - * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission - * should occur will be incorrect. In this case, it would be best to do your own calculations - * ahead of time, and pass a `number` in as the `dueTime`. - * - * @param due If a `number`, the amount of time in milliseconds to wait before emitting. - * If a `Date`, the exact time at which to emit. - * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}. - */ -export declare function timer(due: number | Date, scheduler?: SchedulerLike): Observable<0>; -/** - * Creates an observable that starts an interval after a specified delay, emitting incrementing numbers -- starting at `0` -- - * on each interval after words. - * - * The `delay` and `intervalDuration` are specified by default in milliseconds, however providing a custom scheduler could - * create a different behavior. - * - * ## Example - * - * ### Start an interval that starts right away - * - * Since {@link interval} waits for the passed delay before starting, - * sometimes that's not ideal. You may want to start an interval immediately. - * `timer` works well for this. Here we have both side-by-side so you can - * see them in comparison. - * - * Note that this observable will never complete. - * - * ```ts - * import { timer, interval } from 'rxjs'; - * - * timer(0, 1000).subscribe(n => console.log('timer', n)); - * interval(1000).subscribe(n => console.log('interval', n)); - * ``` - * - * ### Known Limitations - * - * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled. - * - * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and - * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission - * should occur will be incorrect. In this case, it would be best to do your own calculations - * ahead of time, and pass a `number` in as the `startDue`. - * @param startDue If a `number`, is the time to wait before starting the interval. - * If a `Date`, is the exact time at which to start the interval. - * @param intervalDuration The delay between each value emitted in the interval. Passing a - * negative number here will result in immediate completion after the first value is emitted, as though - * no `intervalDuration` was passed at all. - * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}. - */ -export declare function timer(startDue: number | Date, intervalDuration: number, scheduler?: SchedulerLike): Observable; -/** - * @deprecated The signature allowing `undefined` to be passed for `intervalDuration` will be removed in v8. Use the `timer(dueTime, scheduler?)` signature instead. - */ -export declare function timer(dueTime: number | Date, unused: undefined, scheduler?: SchedulerLike): Observable<0>; -//# sourceMappingURL=timer.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/timer.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/timer.d.ts.map deleted file mode 100644 index a1e715163..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/timer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timer.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/timer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AAEpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAExH;;GAEG;AACH,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/using.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/using.d.ts deleted file mode 100644 index a6ccd07c0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/using.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Observable } from '../Observable'; -import { Unsubscribable, ObservableInput, ObservedValueOf } from '../types'; -/** - * Creates an Observable that uses a resource which will be disposed at the same time as the Observable. - * - * Use it when you catch yourself cleaning up after an Observable. - * - * `using` is a factory operator, which accepts two functions. First function returns a disposable resource. - * It can be an arbitrary object that implements `unsubscribe` method. Second function will be injected with - * that object and should return an Observable. That Observable can use resource object during its execution. - * Both functions passed to `using` will be called every time someone subscribes - neither an Observable nor - * resource object will be shared in any way between subscriptions. - * - * When Observable returned by `using` is subscribed, Observable returned from the second function will be subscribed - * as well. All its notifications (nexted values, completion and error events) will be emitted unchanged by the output - * Observable. If however someone unsubscribes from the Observable or source Observable completes or errors by itself, - * the `unsubscribe` method on resource object will be called. This can be used to do any necessary clean up, which - * otherwise would have to be handled by hand. Note that complete or error notifications are not emitted when someone - * cancels subscription to an Observable via `unsubscribe`, so `using` can be used as a hook, allowing you to make - * sure that all resources which need to exist during an Observable execution will be disposed at appropriate time. - * - * @see {@link defer} - * - * @param {function(): ISubscription} resourceFactory A function which creates any resource object - * that implements `unsubscribe` method. - * @param {function(resource: ISubscription): Observable} observableFactory A function which - * creates an Observable, that can use injected resource object. - * @return {Observable} An Observable that behaves the same as Observable returned by `observableFactory`, but - * which - when completed, errored or unsubscribed - will also call `unsubscribe` on created resource object. - */ -export declare function using>(resourceFactory: () => Unsubscribable | void, observableFactory: (resource: Unsubscribable | void) => T | void): Observable>; -//# sourceMappingURL=using.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/using.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/using.d.ts.map deleted file mode 100644 index 58fe72960..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/using.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"using.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/using.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI5E;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,KAAK,CAAC,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAClD,eAAe,EAAE,MAAM,cAAc,GAAG,IAAI,EAC5C,iBAAiB,EAAE,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI,KAAK,CAAC,GAAG,IAAI,GAC/D,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAchC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/zip.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/observable/zip.d.ts deleted file mode 100644 index 67a41d1b0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/zip.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInputTuple } from '../types'; -export declare function zip(sources: [...ObservableInputTuple]): Observable; -export declare function zip(sources: [...ObservableInputTuple], resultSelector: (...values: A) => R): Observable; -export declare function zip(...sources: [...ObservableInputTuple]): Observable; -export declare function zip(...sourcesAndResultSelector: [...ObservableInputTuple, (...values: A) => R]): Observable; -//# sourceMappingURL=zip.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/observable/zip.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/observable/zip.d.ts.map deleted file mode 100644 index 714dfdad5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/observable/zip.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../../../src/internal/observable/zip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAOhD,wBAAgB,GAAG,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AACxG,wBAAgB,GAAG,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,EACjD,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,EACrC,cAAc,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,GAClC,UAAU,CAAC,CAAC,CAAC,CAAC;AACjB,wBAAgB,GAAG,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AAC3G,wBAAgB,GAAG,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,EACjD,GAAG,wBAAwB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,KAAK,CAAC,CAAC,GAC7E,UAAU,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/OperatorSubscriber.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/OperatorSubscriber.d.ts deleted file mode 100644 index 91a0dc70a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/OperatorSubscriber.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Subscriber } from '../Subscriber'; -/** - * Creates an instance of an `OperatorSubscriber`. - * @param destination The downstream subscriber. - * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any - * error that occurs in this function is caught and sent to the `error` method of this subscriber. - * @param onError Handles errors from the subscription, any errors that occur in this handler are caught - * and send to the `destination` error handler. - * @param onComplete Handles completion notification from the subscription. Any errors that occur in - * this handler are sent to the `destination` error handler. - * @param onFinalize Additional teardown logic here. This will only be called on teardown if the - * subscriber itself is not already closed. This is called after all other teardown logic is executed. - */ -export declare function createOperatorSubscriber(destination: Subscriber, onNext?: (value: T) => void, onComplete?: () => void, onError?: (err: any) => void, onFinalize?: () => void): Subscriber; -/** - * A generic helper for allowing operators to be created with a Subscriber and - * use closures to capture necessary state from the operator function itself. - */ -export declare class OperatorSubscriber extends Subscriber { - private onFinalize?; - private shouldUnsubscribe?; - /** - * Creates an instance of an `OperatorSubscriber`. - * @param destination The downstream subscriber. - * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any - * error that occurs in this function is caught and sent to the `error` method of this subscriber. - * @param onError Handles errors from the subscription, any errors that occur in this handler are caught - * and send to the `destination` error handler. - * @param onComplete Handles completion notification from the subscription. Any errors that occur in - * this handler are sent to the `destination` error handler. - * @param onFinalize Additional finalization logic here. This will only be called on finalization if the - * subscriber itself is not already closed. This is called after all other finalization logic is executed. - * @param shouldUnsubscribe An optional check to see if an unsubscribe call should truly unsubscribe. - * NOTE: This currently **ONLY** exists to support the strange behavior of {@link groupBy}, where unsubscription - * to the resulting observable does not actually disconnect from the source if there are active subscriptions - * to any grouped observable. (DO NOT EXPOSE OR USE EXTERNALLY!!!) - */ - constructor(destination: Subscriber, onNext?: (value: T) => void, onComplete?: () => void, onError?: (err: any) => void, onFinalize?: (() => void) | undefined, shouldUnsubscribe?: (() => boolean) | undefined); - unsubscribe(): void; -} -//# sourceMappingURL=OperatorSubscriber.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/OperatorSubscriber.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/OperatorSubscriber.d.ts.map deleted file mode 100644 index 3e925bd5d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/OperatorSubscriber.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"OperatorSubscriber.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/OperatorSubscriber.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;;;;;;;;;GAWG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EACxC,WAAW,EAAE,UAAU,CAAC,GAAG,CAAC,EAC5B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAC3B,UAAU,CAAC,EAAE,MAAM,IAAI,EACvB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,EAC5B,UAAU,CAAC,EAAE,MAAM,IAAI,GACtB,UAAU,CAAC,CAAC,CAAC,CAEf;AAED;;;GAGG;AACH,qBAAa,kBAAkB,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IAsBpD,OAAO,CAAC,UAAU,CAAC;IACnB,OAAO,CAAC,iBAAiB,CAAC;IAtB5B;;;;;;;;;;;;;;;OAeG;gBAED,WAAW,EAAE,UAAU,CAAC,GAAG,CAAC,EAC5B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAC3B,UAAU,CAAC,EAAE,MAAM,IAAI,EACvB,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,EACpB,UAAU,CAAC,SAAQ,IAAI,aAAA,EACvB,iBAAiB,CAAC,SAAQ,OAAO,aAAA;IAoD3C,WAAW;CAQZ"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/audit.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/audit.d.ts deleted file mode 100644 index 9020ef017..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/audit.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -/** - * Ignores source values for a duration determined by another Observable, then - * emits the most recent value from the source Observable, then repeats this - * process. - * - * It's like {@link auditTime}, but the silencing - * duration is determined by a second Observable. - * - * ![](audit.svg) - * - * `audit` is similar to `throttle`, but emits the last value from the silenced - * time window, instead of the first value. `audit` emits the most recent value - * from the source Observable on the output Observable as soon as its internal - * timer becomes disabled, and ignores source values while the timer is enabled. - * Initially, the timer is disabled. As soon as the first source value arrives, - * the timer is enabled by calling the `durationSelector` function with the - * source value, which returns the "duration" Observable. When the duration - * Observable emits a value, the timer is disabled, then the most - * recent source value is emitted on the output Observable, and this process - * repeats for the next source value. - * - * ## Example - * - * Emit clicks at a rate of at most one click per second - * - * ```ts - * import { fromEvent, audit, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(audit(ev => interval(1000))); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link auditTime} - * @see {@link debounce} - * @see {@link delayWhen} - * @see {@link sample} - * @see {@link throttle} - * - * @param durationSelector A function - * that receives a value from the source Observable, for computing the silencing - * duration, returned as an Observable or a Promise. - * @return A function that returns an Observable that performs rate-limiting of - * emissions from the source Observable. - */ -export declare function audit(durationSelector: (value: T) => ObservableInput): MonoTypeOperatorFunction; -//# sourceMappingURL=audit.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/audit.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/audit.d.ts.map deleted file mode 100644 index 7a8377ea0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/audit.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/audit.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAMrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,eAAe,CAAC,GAAG,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CA2C1G"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/auditTime.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/auditTime.d.ts deleted file mode 100644 index 0cf79ab45..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/auditTime.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -/** - * Ignores source values for `duration` milliseconds, then emits the most recent - * value from the source Observable, then repeats this process. - * - * When it sees a source value, it ignores that plus - * the next ones for `duration` milliseconds, and then it emits the most recent - * value from the source. - * - * ![](auditTime.png) - * - * `auditTime` is similar to `throttleTime`, but emits the last value from the - * silenced time window, instead of the first value. `auditTime` emits the most - * recent value from the source Observable on the output Observable as soon as - * its internal timer becomes disabled, and ignores source values while the - * timer is enabled. Initially, the timer is disabled. As soon as the first - * source value arrives, the timer is enabled. After `duration` milliseconds (or - * the time unit determined internally by the optional `scheduler`) has passed, - * the timer is disabled, then the most recent source value is emitted on the - * output Observable, and this process repeats for the next source value. - * Optionally takes a {@link SchedulerLike} for managing timers. - * - * ## Example - * - * Emit clicks at a rate of at most one click per second - * - * ```ts - * import { fromEvent, auditTime } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(auditTime(1000)); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link audit} - * @see {@link debounceTime} - * @see {@link delay} - * @see {@link sampleTime} - * @see {@link throttleTime} - * - * @param {number} duration Time to wait before emitting the most recent source - * value, measured in milliseconds or the time unit determined internally - * by the optional `scheduler`. - * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for - * managing the timers that handle the rate-limiting behavior. - * @return A function that returns an Observable that performs rate-limiting of - * emissions from the source Observable. - */ -export declare function auditTime(duration: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction; -//# sourceMappingURL=auditTime.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/auditTime.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/auditTime.d.ts.map deleted file mode 100644 index 309fc455f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/auditTime.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"auditTime.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/auditTime.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,GAAE,aAA8B,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAErH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/buffer.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/buffer.d.ts deleted file mode 100644 index 50ce9b498..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/buffer.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { OperatorFunction, ObservableInput } from '../types'; -/** - * Buffers the source Observable values until `closingNotifier` emits. - * - * Collects values from the past as an array, and emits - * that array only when another Observable emits. - * - * ![](buffer.png) - * - * Buffers the incoming Observable values until the given `closingNotifier` - * `ObservableInput` (that internally gets converted to an Observable) - * emits a value, at which point it emits the buffer on the output - * Observable and starts a new buffer internally, awaiting the next time - * `closingNotifier` emits. - * - * ## Example - * - * On every click, emit array of most recent interval events - * - * ```ts - * import { fromEvent, interval, buffer } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const intervalEvents = interval(1000); - * const buffered = intervalEvents.pipe(buffer(clicks)); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * @see {@link bufferCount} - * @see {@link bufferTime} - * @see {@link bufferToggle} - * @see {@link bufferWhen} - * @see {@link window} - * - * @param closingNotifier An `ObservableInput` that signals the - * buffer to be emitted on the output Observable. - * @return A function that returns an Observable of buffers, which are arrays - * of values. - */ -export declare function buffer(closingNotifier: ObservableInput): OperatorFunction; -//# sourceMappingURL=buffer.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/buffer.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/buffer.d.ts.map deleted file mode 100644 index 261cbe77d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/buffer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"buffer.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/buffer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAM7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,eAAe,EAAE,eAAe,CAAC,GAAG,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAoCzF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferCount.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferCount.d.ts deleted file mode 100644 index 5c208ad89..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferCount.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { OperatorFunction } from '../types'; -/** - * Buffers the source Observable values until the size hits the maximum - * `bufferSize` given. - * - * Collects values from the past as an array, and emits - * that array only when its size reaches `bufferSize`. - * - * ![](bufferCount.png) - * - * Buffers a number of values from the source Observable by `bufferSize` then - * emits the buffer and clears it, and starts a new buffer each - * `startBufferEvery` values. If `startBufferEvery` is not provided or is - * `null`, then new buffers are started immediately at the start of the source - * and when each buffer closes and is emitted. - * - * ## Examples - * - * Emit the last two click events as an array - * - * ```ts - * import { fromEvent, bufferCount } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const buffered = clicks.pipe(bufferCount(2)); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * On every click, emit the last two click events as an array - * - * ```ts - * import { fromEvent, bufferCount } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const buffered = clicks.pipe(bufferCount(2, 1)); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * @see {@link buffer} - * @see {@link bufferTime} - * @see {@link bufferToggle} - * @see {@link bufferWhen} - * @see {@link pairwise} - * @see {@link windowCount} - * - * @param {number} bufferSize The maximum size of the buffer emitted. - * @param {number} [startBufferEvery] Interval at which to start a new buffer. - * For example if `startBufferEvery` is `2`, then a new buffer will be started - * on every other value from the source. A new buffer is started at the - * beginning of the source by default. - * @return A function that returns an Observable of arrays of buffered values. - */ -export declare function bufferCount(bufferSize: number, startBufferEvery?: number | null): OperatorFunction; -//# sourceMappingURL=bufferCount.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferCount.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferCount.d.ts.map deleted file mode 100644 index b7fccb36c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferCount.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferCount.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/bufferCount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,GAAE,MAAM,GAAG,IAAW,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CA+DnH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferTime.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferTime.d.ts deleted file mode 100644 index bdad980d0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferTime.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { OperatorFunction, SchedulerLike } from '../types'; -export declare function bufferTime(bufferTimeSpan: number, scheduler?: SchedulerLike): OperatorFunction; -export declare function bufferTime(bufferTimeSpan: number, bufferCreationInterval: number | null | undefined, scheduler?: SchedulerLike): OperatorFunction; -export declare function bufferTime(bufferTimeSpan: number, bufferCreationInterval: number | null | undefined, maxBufferSize: number, scheduler?: SchedulerLike): OperatorFunction; -//# sourceMappingURL=bufferTime.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferTime.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferTime.d.ts.map deleted file mode 100644 index bfcc7369e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferTime.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferTime.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/bufferTime.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAS3D,wBAAgB,UAAU,CAAC,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC3G,wBAAgB,UAAU,CAAC,CAAC,EAC1B,cAAc,EAAE,MAAM,EACtB,sBAAsB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjD,SAAS,CAAC,EAAE,aAAa,GACxB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC5B,wBAAgB,UAAU,CAAC,CAAC,EAC1B,cAAc,EAAE,MAAM,EACtB,sBAAsB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACjD,aAAa,EAAE,MAAM,EACrB,SAAS,CAAC,EAAE,aAAa,GACxB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferToggle.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferToggle.d.ts deleted file mode 100644 index 5e9cdbe25..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferToggle.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { OperatorFunction, ObservableInput } from '../types'; -/** - * Buffers the source Observable values starting from an emission from - * `openings` and ending when the output of `closingSelector` emits. - * - * Collects values from the past as an array. Starts - * collecting only when `opening` emits, and calls the `closingSelector` - * function to get an Observable that tells when to close the buffer. - * - * ![](bufferToggle.png) - * - * Buffers values from the source by opening the buffer via signals from an - * Observable provided to `openings`, and closing and sending the buffers when - * a Subscribable or Promise returned by the `closingSelector` function emits. - * - * ## Example - * - * Every other second, emit the click events from the next 500ms - * - * ```ts - * import { fromEvent, interval, bufferToggle, EMPTY } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const openings = interval(1000); - * const buffered = clicks.pipe(bufferToggle(openings, i => - * i % 2 ? interval(500) : EMPTY - * )); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * @see {@link buffer} - * @see {@link bufferCount} - * @see {@link bufferTime} - * @see {@link bufferWhen} - * @see {@link windowToggle} - * - * @param openings A Subscribable or Promise of notifications to start new - * buffers. - * @param closingSelector A function that takes - * the value emitted by the `openings` observable and returns a Subscribable or Promise, - * which, when it emits, signals that the associated buffer should be emitted - * and cleared. - * @return A function that returns an Observable of arrays of buffered values. - */ -export declare function bufferToggle(openings: ObservableInput, closingSelector: (value: O) => ObservableInput): OperatorFunction; -//# sourceMappingURL=bufferToggle.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferToggle.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferToggle.d.ts.map deleted file mode 100644 index 05ee38923..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferToggle.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferToggle.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/bufferToggle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAO7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAC/B,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC,EAC5B,eAAe,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,eAAe,CAAC,GAAG,CAAC,GAClD,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CA+C1B"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferWhen.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferWhen.d.ts deleted file mode 100644 index 5427797ae..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferWhen.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { ObservableInput, OperatorFunction } from '../types'; -/** - * Buffers the source Observable values, using a factory function of closing - * Observables to determine when to close, emit, and reset the buffer. - * - * Collects values from the past as an array. When it - * starts collecting values, it calls a function that returns an Observable that - * tells when to close the buffer and restart collecting. - * - * ![](bufferWhen.svg) - * - * Opens a buffer immediately, then closes the buffer when the observable - * returned by calling `closingSelector` function emits a value. When it closes - * the buffer, it immediately opens a new buffer and repeats the process. - * - * ## Example - * - * Emit an array of the last clicks every [1-5] random seconds - * - * ```ts - * import { fromEvent, bufferWhen, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const buffered = clicks.pipe( - * bufferWhen(() => interval(1000 + Math.random() * 4000)) - * ); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * @see {@link buffer} - * @see {@link bufferCount} - * @see {@link bufferTime} - * @see {@link bufferToggle} - * @see {@link windowWhen} - * - * @param {function(): Observable} closingSelector A function that takes no - * arguments and returns an Observable that signals buffer closure. - * @return A function that returns an Observable of arrays of buffered values. - */ -export declare function bufferWhen(closingSelector: () => ObservableInput): OperatorFunction; -//# sourceMappingURL=bufferWhen.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferWhen.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferWhen.d.ts.map deleted file mode 100644 index cdddb4a73..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/bufferWhen.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bufferWhen.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/bufferWhen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAM7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC,GAAG,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAgDnG"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/catchError.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/catchError.d.ts deleted file mode 100644 index ef7000ec9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/catchError.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -export declare function catchError>(selector: (err: any, caught: Observable) => O): OperatorFunction>; -//# sourceMappingURL=catchError.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/catchError.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/catchError.d.ts.map deleted file mode 100644 index 26f902c0f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/catchError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"catchError.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/catchError.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAO9E,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAC1D,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,GAC/C,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineAll.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineAll.d.ts deleted file mode 100644 index e1431c179..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineAll.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { combineLatestAll } from './combineLatestAll'; -/** - * @deprecated Renamed to {@link combineLatestAll}. Will be removed in v8. - */ -export declare const combineAll: typeof combineLatestAll; -//# sourceMappingURL=combineAll.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineAll.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineAll.d.ts.map deleted file mode 100644 index a3bccf420..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineAll.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineAll.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/combineAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;GAEG;AACH,eAAO,MAAM,UAAU,yBAAmB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatest.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatest.d.ts deleted file mode 100644 index 20944fa5a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatest.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ObservableInputTuple, OperatorFunction } from '../types'; -/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */ -export declare function combineLatest(sources: [...ObservableInputTuple], project: (...values: [T, ...A]) => R): OperatorFunction; -/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */ -export declare function combineLatest(sources: [...ObservableInputTuple]): OperatorFunction; -/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */ -export declare function combineLatest(...sourcesAndProject: [...ObservableInputTuple, (...values: [T, ...A]) => R]): OperatorFunction; -/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */ -export declare function combineLatest(...sources: [...ObservableInputTuple]): OperatorFunction; -//# sourceMappingURL=combineLatest.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatest.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatest.d.ts.map deleted file mode 100644 index f2d2b7980..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatest.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatest.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAOnF,kFAAkF;AAClF,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,EAC9D,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,EACrC,OAAO,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,GACnC,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1B,kFAAkF;AAClF,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAEzI,kFAAkF;AAClF,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,EAC9D,GAAG,iBAAiB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,GAC9E,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1B,kFAAkF;AAClF,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,EAAE,GAAG,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestAll.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestAll.d.ts deleted file mode 100644 index ef412ab7b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestAll.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { OperatorFunction, ObservableInput } from '../types'; -export declare function combineLatestAll(): OperatorFunction, T[]>; -export declare function combineLatestAll(): OperatorFunction; -export declare function combineLatestAll(project: (...values: T[]) => R): OperatorFunction, R>; -export declare function combineLatestAll(project: (...values: Array) => R): OperatorFunction; -//# sourceMappingURL=combineLatestAll.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestAll.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestAll.d.ts.map deleted file mode 100644 index f24ab4f5c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestAll.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatestAll.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatestAll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG7D,wBAAgB,gBAAgB,CAAC,CAAC,KAAK,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACjF,wBAAgB,gBAAgB,CAAC,CAAC,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AAClE,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAChH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestWith.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestWith.d.ts deleted file mode 100644 index 71d3bdfeb..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestWith.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { ObservableInputTuple, OperatorFunction, Cons } from '../types'; -/** - * Create an observable that combines the latest values from all passed observables and the source - * into arrays and emits them. - * - * Returns an observable, that when subscribed to, will subscribe to the source observable and all - * sources provided as arguments. Once all sources emit at least one value, all of the latest values - * will be emitted as an array. After that, every time any source emits a value, all of the latest values - * will be emitted as an array. - * - * This is a useful operator for eagerly calculating values based off of changed inputs. - * - * ## Example - * - * Simple concatenation of values from two inputs - * - * ```ts - * import { fromEvent, combineLatestWith, map } from 'rxjs'; - * - * // Setup: Add two inputs to the page - * const input1 = document.createElement('input'); - * document.body.appendChild(input1); - * const input2 = document.createElement('input'); - * document.body.appendChild(input2); - * - * // Get streams of changes - * const input1Changes$ = fromEvent(input1, 'change'); - * const input2Changes$ = fromEvent(input2, 'change'); - * - * // Combine the changes by adding them together - * input1Changes$.pipe( - * combineLatestWith(input2Changes$), - * map(([e1, e2]) => (e1.target).value + ' - ' + (e2.target).value) - * ) - * .subscribe(x => console.log(x)); - * ``` - * - * @param otherSources the other sources to subscribe to. - * @return A function that returns an Observable that emits the latest - * emissions from both source and provided Observables. - */ -export declare function combineLatestWith(...otherSources: [...ObservableInputTuple]): OperatorFunction>; -//# sourceMappingURL=combineLatestWith.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestWith.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestWith.d.ts.map deleted file mode 100644 index bc1c10e5b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/combineLatestWith.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"combineLatestWith.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/combineLatestWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAC/D,GAAG,YAAY,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAC5C,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAEjC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concat.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/concat.d.ts deleted file mode 100644 index fe93031d6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concat.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ObservableInputTuple, OperatorFunction, SchedulerLike } from '../types'; -/** @deprecated Replaced with {@link concatWith}. Will be removed in v8. */ -export declare function concat(...sources: [...ObservableInputTuple]): OperatorFunction; -/** @deprecated Replaced with {@link concatWith}. Will be removed in v8. */ -export declare function concat(...sourcesAndScheduler: [...ObservableInputTuple, SchedulerLike]): OperatorFunction; -//# sourceMappingURL=concat.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concat.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/concat.d.ts.map deleted file mode 100644 index ff602b32d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concat.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concat.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/concat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMjF,2EAA2E;AAC3E,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACtI,2EAA2E;AAC3E,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EACpD,GAAG,mBAAmB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,GAClE,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatAll.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatAll.d.ts deleted file mode 100644 index 6eb2909ce..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatAll.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { OperatorFunction, ObservableInput, ObservedValueOf } from '../types'; -/** - * Converts a higher-order Observable into a first-order Observable by - * concatenating the inner Observables in order. - * - * Flattens an Observable-of-Observables by putting one - * inner Observable after the other. - * - * ![](concatAll.svg) - * - * Joins every Observable emitted by the source (a higher-order Observable), in - * a serial fashion. It subscribes to each inner Observable only after the - * previous inner Observable has completed, and merges all of their values into - * the returned observable. - * - * __Warning:__ If the source Observable emits Observables quickly and - * endlessly, and the inner Observables it emits generally complete slower than - * the source emits, you can run into memory issues as the incoming Observables - * collect in an unbounded buffer. - * - * Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set - * to `1`. - * - * ## Example - * - * For each click event, tick every second from 0 to 3, with no concurrency - * - * ```ts - * import { fromEvent, map, interval, take, concatAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const higherOrder = clicks.pipe( - * map(() => interval(1000).pipe(take(4))) - * ); - * const firstOrder = higherOrder.pipe(concatAll()); - * firstOrder.subscribe(x => console.log(x)); - * - * // Results in the following: - * // (results are not concurrent) - * // For every click on the "document" it will emit values 0 to 3 spaced - * // on a 1000ms interval - * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 - * ``` - * - * @see {@link combineLatestAll} - * @see {@link concat} - * @see {@link concatMap} - * @see {@link concatMapTo} - * @see {@link exhaustAll} - * @see {@link mergeAll} - * @see {@link switchAll} - * @see {@link switchMap} - * @see {@link zipAll} - * - * @return A function that returns an Observable emitting values from all the - * inner Observables concatenated. - */ -export declare function concatAll>(): OperatorFunction>; -//# sourceMappingURL=concatAll.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatAll.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatAll.d.ts.map deleted file mode 100644 index 14058ca8f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatAll.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatAll.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/concatAll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,KAAK,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAEnG"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMap.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMap.d.ts deleted file mode 100644 index 935e19a89..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMap.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -export declare function concatMap>(project: (value: T, index: number) => O): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function concatMap>(project: (value: T, index: number) => O, resultSelector: undefined): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function concatMap>(project: (value: T, index: number) => O, resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R): OperatorFunction; -//# sourceMappingURL=concatMap.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMap.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMap.d.ts.map deleted file mode 100644 index 770b1d92c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMap.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatMap.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/concatMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI9E,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EACzD,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GACtC,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3C,0JAA0J;AAC1J,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EACzD,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EACvC,cAAc,EAAE,SAAS,GACxB,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3C,0JAA0J;AAC1J,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAC5D,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EACvC,cAAc,EAAE,CAAC,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC,GAC3G,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMapTo.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMapTo.d.ts deleted file mode 100644 index 1c8aa69c3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMapTo.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -/** @deprecated Will be removed in v9. Use {@link concatMap} instead: `concatMap(() => result)` */ -export declare function concatMapTo>(observable: O): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function concatMapTo>(observable: O, resultSelector: undefined): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function concatMapTo>(observable: O, resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R): OperatorFunction; -//# sourceMappingURL=concatMapTo.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMapTo.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMapTo.d.ts.map deleted file mode 100644 index 8e20530cc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatMapTo.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatMapTo.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/concatMapTo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG9E,kGAAkG;AAClG,wBAAgB,WAAW,CAAC,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9H,0JAA0J;AAC1J,wBAAgB,WAAW,CAAC,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EAC5D,UAAU,EAAE,CAAC,EACb,cAAc,EAAE,SAAS,GACxB,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AACjD,0JAA0J;AAC1J,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EAClE,UAAU,EAAE,CAAC,EACb,cAAc,EAAE,CAAC,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC,GAC3G,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatWith.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatWith.d.ts deleted file mode 100644 index 4beb57a9f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatWith.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { ObservableInputTuple, OperatorFunction } from '../types'; -/** - * Emits all of the values from the source observable, then, once it completes, subscribes - * to each observable source provided, one at a time, emitting all of their values, and not subscribing - * to the next one until it completes. - * - * `concat(a$, b$, c$)` is the same as `a$.pipe(concatWith(b$, c$))`. - * - * ## Example - * - * Listen for one mouse click, then listen for all mouse moves. - * - * ```ts - * import { fromEvent, map, take, concatWith } from 'rxjs'; - * - * const clicks$ = fromEvent(document, 'click'); - * const moves$ = fromEvent(document, 'mousemove'); - * - * clicks$.pipe( - * map(() => 'click'), - * take(1), - * concatWith( - * moves$.pipe( - * map(() => 'move') - * ) - * ) - * ) - * .subscribe(x => console.log(x)); - * - * // 'click' - * // 'move' - * // 'move' - * // 'move' - * // ... - * ``` - * - * @param otherSources Other observable sources to subscribe to, in sequence, after the original source is complete. - * @return A function that returns an Observable that concatenates - * subscriptions to the source and provided Observables subscribing to the next - * only once the current subscription completes. - */ -export declare function concatWith(...otherSources: [...ObservableInputTuple]): OperatorFunction; -//# sourceMappingURL=concatWith.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatWith.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatWith.d.ts.map deleted file mode 100644 index 852404583..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/concatWith.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"concatWith.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/concatWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EACxD,GAAG,YAAY,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAC5C,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAEpC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/connect.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/connect.d.ts deleted file mode 100644 index 7e1f86ddb..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/connect.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { OperatorFunction, ObservableInput, ObservedValueOf, SubjectLike } from '../types'; -import { Observable } from '../Observable'; -/** - * An object used to configure {@link connect} operator. - */ -export interface ConnectConfig { - /** - * A factory function used to create the Subject through which the source - * is multicast. By default, this creates a {@link Subject}. - */ - connector: () => SubjectLike; -} -/** - * Creates an observable by multicasting the source within a function that - * allows the developer to define the usage of the multicast prior to connection. - * - * This is particularly useful if the observable source you wish to multicast could - * be synchronous or asynchronous. This sets it apart from {@link share}, which, in the - * case of totally synchronous sources will fail to share a single subscription with - * multiple consumers, as by the time the subscription to the result of {@link share} - * has returned, if the source is synchronous its internal reference count will jump from - * 0 to 1 back to 0 and reset. - * - * To use `connect`, you provide a `selector` function that will give you - * a multicast observable that is not yet connected. You then use that multicast observable - * to create a resulting observable that, when subscribed, will set up your multicast. This is - * generally, but not always, accomplished with {@link merge}. - * - * Note that using a {@link takeUntil} inside of `connect`'s `selector` _might_ mean you were looking - * to use the {@link takeWhile} operator instead. - * - * When you subscribe to the result of `connect`, the `selector` function will be called. After - * the `selector` function returns, the observable it returns will be subscribed to, _then_ the - * multicast will be connected to the source. - * - * ## Example - * - * Sharing a totally synchronous observable - * - * ```ts - * import { of, tap, connect, merge, map, filter } from 'rxjs'; - * - * const source$ = of(1, 2, 3, 4, 5).pipe( - * tap({ - * subscribe: () => console.log('subscription started'), - * next: n => console.log(`source emitted ${ n }`) - * }) - * ); - * - * source$.pipe( - * // Notice in here we're merging 3 subscriptions to `shared$`. - * connect(shared$ => merge( - * shared$.pipe(map(n => `all ${ n }`)), - * shared$.pipe(filter(n => n % 2 === 0), map(n => `even ${ n }`)), - * shared$.pipe(filter(n => n % 2 === 1), map(n => `odd ${ n }`)) - * )) - * ) - * .subscribe(console.log); - * - * // Expected output: (notice only one subscription) - * 'subscription started' - * 'source emitted 1' - * 'all 1' - * 'odd 1' - * 'source emitted 2' - * 'all 2' - * 'even 2' - * 'source emitted 3' - * 'all 3' - * 'odd 3' - * 'source emitted 4' - * 'all 4' - * 'even 4' - * 'source emitted 5' - * 'all 5' - * 'odd 5' - * ``` - * - * @param selector A function used to set up the multicast. Gives you a multicast observable - * that is not yet connected. With that, you're expected to create and return - * and Observable, that when subscribed to, will utilize the multicast observable. - * After this function is executed -- and its return value subscribed to -- the - * operator will subscribe to the source, and the connection will be made. - * @param config The configuration object for `connect`. - */ -export declare function connect>(selector: (shared: Observable) => O, config?: ConnectConfig): OperatorFunction>; -//# sourceMappingURL=connect.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/connect.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/connect.d.ts.map deleted file mode 100644 index 30b97e6d2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/connect.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B;;;OAGG;IACH,SAAS,EAAE,MAAM,WAAW,CAAC,CAAC,CAAC,CAAC;CACjC;AASD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EAC3D,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,EACtC,MAAM,GAAE,aAAa,CAAC,CAAC,CAAkB,GACxC,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAOzC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/count.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/count.d.ts deleted file mode 100644 index 67b8e8c22..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/count.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { OperatorFunction } from '../types'; -/** - * Counts the number of emissions on the source and emits that number when the - * source completes. - * - * Tells how many values were emitted, when the source - * completes. - * - * ![](count.png) - * - * `count` transforms an Observable that emits values into an Observable that - * emits a single value that represents the number of values emitted by the - * source Observable. If the source Observable terminates with an error, `count` - * will pass this error notification along without emitting a value first. If - * the source Observable does not terminate at all, `count` will neither emit - * a value nor terminate. This operator takes an optional `predicate` function - * as argument, in which case the output emission will represent the number of - * source values that matched `true` with the `predicate`. - * - * ## Examples - * - * Counts how many seconds have passed before the first click happened - * - * ```ts - * import { interval, fromEvent, takeUntil, count } from 'rxjs'; - * - * const seconds = interval(1000); - * const clicks = fromEvent(document, 'click'); - * const secondsBeforeClick = seconds.pipe(takeUntil(clicks)); - * const result = secondsBeforeClick.pipe(count()); - * result.subscribe(x => console.log(x)); - * ``` - * - * Counts how many odd numbers are there between 1 and 7 - * - * ```ts - * import { range, count } from 'rxjs'; - * - * const numbers = range(1, 7); - * const result = numbers.pipe(count(i => i % 2 === 1)); - * result.subscribe(x => console.log(x)); - * // Results in: - * // 4 - * ``` - * - * @see {@link max} - * @see {@link min} - * @see {@link reduce} - * - * @param predicate A function that is used to analyze the value and the index and - * determine whether or not to increment the count. Return `true` to increment the count, - * and return `false` to keep the count the same. - * If the predicate is not provided, every value will be counted. - * @return A function that returns an Observable that emits one number that - * represents the count of emissions. - */ -export declare function count(predicate?: (value: T, index: number) => boolean): OperatorFunction; -//# sourceMappingURL=count.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/count.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/count.d.ts.map deleted file mode 100644 index 4ecfac569..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/count.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"count.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/count.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,gBAAgB,CAAC,CAAC,EAAE,MAAM,CAAC,CAEtG"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounce.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounce.d.ts deleted file mode 100644 index e067a8c58..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounce.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -/** - * Emits a notification from the source Observable only after a particular time span - * determined by another Observable has passed without another source emission. - * - * It's like {@link debounceTime}, but the time span of - * emission silence is determined by a second Observable. - * - * ![](debounce.svg) - * - * `debounce` delays notifications emitted by the source Observable, but drops previous - * pending delayed emissions if a new notification arrives on the source Observable. - * This operator keeps track of the most recent notification from the source - * Observable, and spawns a duration Observable by calling the - * `durationSelector` function. The notification is emitted only when the duration - * Observable emits a next notification, and if no other notification was emitted on - * the source Observable since the duration Observable was spawned. If a new - * notification appears before the duration Observable emits, the previous notification will - * not be emitted and a new duration is scheduled from `durationSelector` is scheduled. - * If the completing event happens during the scheduled duration the last cached notification - * is emitted before the completion event is forwarded to the output observable. - * If the error event happens during the scheduled duration or after it only the error event is - * forwarded to the output observable. The cache notification is not emitted in this case. - * - * Like {@link debounceTime}, this is a rate-limiting operator, and also a - * delay-like operator since output emissions do not necessarily occur at the - * same time as they did on the source Observable. - * - * ## Example - * - * Emit the most recent click after a burst of clicks - * - * ```ts - * import { fromEvent, scan, debounce, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * scan(i => ++i, 1), - * debounce(i => interval(200 * i)) - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link audit} - * @see {@link auditTime} - * @see {@link debounceTime} - * @see {@link delay} - * @see {@link sample} - * @see {@link sampleTime} - * @see {@link throttle} - * @see {@link throttleTime} - * - * @param durationSelector A function - * that receives a value from the source Observable, for computing the timeout - * duration for each source value, returned as an Observable or a Promise. - * @return A function that returns an Observable that delays the emissions of - * the source Observable by the specified duration Observable returned by - * `durationSelector`, and may drop some values if they occur too frequently. - */ -export declare function debounce(durationSelector: (value: T) => ObservableInput): MonoTypeOperatorFunction; -//# sourceMappingURL=debounce.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounce.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounce.d.ts.map deleted file mode 100644 index d8bf354d2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounce.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/debounce.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAMrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,eAAe,CAAC,GAAG,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAqD7G"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounceTime.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounceTime.d.ts deleted file mode 100644 index c7e01468a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounceTime.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -/** - * Emits a notification from the source Observable only after a particular time span - * has passed without another source emission. - * - * It's like {@link delay}, but passes only the most - * recent notification from each burst of emissions. - * - * ![](debounceTime.png) - * - * `debounceTime` delays notifications emitted by the source Observable, but drops - * previous pending delayed emissions if a new notification arrives on the source - * Observable. This operator keeps track of the most recent notification from the - * source Observable, and emits that only when `dueTime` has passed - * without any other notification appearing on the source Observable. If a new value - * appears before `dueTime` silence occurs, the previous notification will be dropped - * and will not be emitted and a new `dueTime` is scheduled. - * If the completing event happens during `dueTime` the last cached notification - * is emitted before the completion event is forwarded to the output observable. - * If the error event happens during `dueTime` or after it only the error event is - * forwarded to the output observable. The cache notification is not emitted in this case. - * - * This is a rate-limiting operator, because it is impossible for more than one - * notification to be emitted in any time window of duration `dueTime`, but it is also - * a delay-like operator since output emissions do not occur at the same time as - * they did on the source Observable. Optionally takes a {@link SchedulerLike} for - * managing timers. - * - * ## Example - * - * Emit the most recent click after a burst of clicks - * - * ```ts - * import { fromEvent, debounceTime } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(debounceTime(1000)); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link audit} - * @see {@link auditTime} - * @see {@link debounce} - * @see {@link sample} - * @see {@link sampleTime} - * @see {@link throttle} - * @see {@link throttleTime} - * - * @param {number} dueTime The timeout duration in milliseconds (or the time - * unit determined internally by the optional `scheduler`) for the window of - * time required to wait for emission silence before emitting the most recent - * source value. - * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for - * managing the timers that handle the timeout for each value. - * @return A function that returns an Observable that delays the emissions of - * the source Observable by the specified `dueTime`, and may drop some values - * if they occur too frequently. - */ -export declare function debounceTime(dueTime: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction; -//# sourceMappingURL=debounceTime.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounceTime.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounceTime.d.ts.map deleted file mode 100644 index cbde28b5a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/debounceTime.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"debounceTime.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/debounceTime.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAmB,aAAa,EAAE,MAAM,UAAU,CAAC;AAIpF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,GAAE,aAA8B,GAAG,wBAAwB,CAAC,CAAC,CAAC,CA4DvH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/defaultIfEmpty.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/defaultIfEmpty.d.ts deleted file mode 100644 index afbd6299b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/defaultIfEmpty.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { OperatorFunction } from '../types'; -/** - * Emits a given value if the source Observable completes without emitting any - * `next` value, otherwise mirrors the source Observable. - * - * If the source Observable turns out to be empty, then - * this operator will emit a default value. - * - * ![](defaultIfEmpty.png) - * - * `defaultIfEmpty` emits the values emitted by the source Observable or a - * specified default value if the source Observable is empty (completes without - * having emitted any `next` value). - * - * ## Example - * - * If no clicks happen in 5 seconds, then emit 'no clicks' - * - * ```ts - * import { fromEvent, takeUntil, interval, defaultIfEmpty } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const clicksBeforeFive = clicks.pipe(takeUntil(interval(5000))); - * const result = clicksBeforeFive.pipe(defaultIfEmpty('no clicks')); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link empty} - * @see {@link last} - * - * @param defaultValue The default value used if the source - * Observable is empty. - * @return A function that returns an Observable that emits either the - * specified `defaultValue` if the source Observable emits no items, or the - * values emitted by the source Observable. - */ -export declare function defaultIfEmpty(defaultValue: R): OperatorFunction; -//# sourceMappingURL=defaultIfEmpty.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/defaultIfEmpty.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/defaultIfEmpty.d.ts.map deleted file mode 100644 index 3c4aeacb3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/defaultIfEmpty.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"defaultIfEmpty.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/defaultIfEmpty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAmBhF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/delay.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/delay.d.ts deleted file mode 100644 index c859222ae..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/delay.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -/** - * Delays the emission of items from the source Observable by a given timeout or - * until a given Date. - * - * Time shifts each item by some specified amount of - * milliseconds. - * - * ![](delay.svg) - * - * If the delay argument is a Number, this operator time shifts the source - * Observable by that amount of time expressed in milliseconds. The relative - * time intervals between the values are preserved. - * - * If the delay argument is a Date, this operator time shifts the start of the - * Observable execution until the given date occurs. - * - * ## Examples - * - * Delay each click by one second - * - * ```ts - * import { fromEvent, delay } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const delayedClicks = clicks.pipe(delay(1000)); // each click emitted after 1 second - * delayedClicks.subscribe(x => console.log(x)); - * ``` - * - * Delay all clicks until a future date happens - * - * ```ts - * import { fromEvent, delay } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const date = new Date('March 15, 2050 12:00:00'); // in the future - * const delayedClicks = clicks.pipe(delay(date)); // click emitted only after that date - * delayedClicks.subscribe(x => console.log(x)); - * ``` - * - * @see {@link delayWhen} - * @see {@link throttle} - * @see {@link throttleTime} - * @see {@link debounce} - * @see {@link debounceTime} - * @see {@link sample} - * @see {@link sampleTime} - * @see {@link audit} - * @see {@link auditTime} - * - * @param {number|Date} due The delay duration in milliseconds (a `number`) or - * a `Date` until which the emission of the source items is delayed. - * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for - * managing the timers that handle the time-shift for each item. - * @return A function that returns an Observable that delays the emissions of - * the source Observable by the specified timeout or Date. - */ -export declare function delay(due: number | Date, scheduler?: SchedulerLike): MonoTypeOperatorFunction; -//# sourceMappingURL=delay.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/delay.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/delay.d.ts.map deleted file mode 100644 index 46efccb50..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/delay.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/delay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAInE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,GAAE,aAA8B,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAGnH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/delayWhen.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/delayWhen.d.ts deleted file mode 100644 index c9d6289bc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/delayWhen.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Observable } from '../Observable'; -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -/** @deprecated The `subscriptionDelay` parameter will be removed in v8. */ -export declare function delayWhen(delayDurationSelector: (value: T, index: number) => ObservableInput, subscriptionDelay: Observable): MonoTypeOperatorFunction; -export declare function delayWhen(delayDurationSelector: (value: T, index: number) => ObservableInput): MonoTypeOperatorFunction; -//# sourceMappingURL=delayWhen.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/delayWhen.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/delayWhen.d.ts.map deleted file mode 100644 index f61e8073a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/delayWhen.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"delayWhen.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/delayWhen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQrE,2EAA2E;AAC3E,wBAAgB,SAAS,CAAC,CAAC,EACzB,qBAAqB,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,eAAe,CAAC,GAAG,CAAC,EACxE,iBAAiB,EAAE,UAAU,CAAC,GAAG,CAAC,GACjC,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAC/B,wBAAgB,SAAS,CAAC,CAAC,EAAE,qBAAqB,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,eAAe,CAAC,GAAG,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/dematerialize.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/dematerialize.d.ts deleted file mode 100644 index b5a39494c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/dematerialize.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { OperatorFunction, ObservableNotification, ValueFromNotification } from '../types'; -/** - * Converts an Observable of {@link ObservableNotification} objects into the emissions - * that they represent. - * - * Unwraps {@link ObservableNotification} objects as actual `next`, - * `error` and `complete` emissions. The opposite of {@link materialize}. - * - * ![](dematerialize.png) - * - * `dematerialize` is assumed to operate an Observable that only emits - * {@link ObservableNotification} objects as `next` emissions, and does not emit any - * `error`. Such Observable is the output of a `materialize` operation. Those - * notifications are then unwrapped using the metadata they contain, and emitted - * as `next`, `error`, and `complete` on the output Observable. - * - * Use this operator in conjunction with {@link materialize}. - * - * ## Example - * - * Convert an Observable of Notifications to an actual Observable - * - * ```ts - * import { NextNotification, ErrorNotification, of, dematerialize } from 'rxjs'; - * - * const notifA: NextNotification = { kind: 'N', value: 'A' }; - * const notifB: NextNotification = { kind: 'N', value: 'B' }; - * const notifE: ErrorNotification = { kind: 'E', error: new TypeError('x.toUpperCase is not a function') }; - * - * const materialized = of(notifA, notifB, notifE); - * - * const upperCase = materialized.pipe(dematerialize()); - * upperCase.subscribe({ - * next: x => console.log(x), - * error: e => console.error(e) - * }); - * - * // Results in: - * // A - * // B - * // TypeError: x.toUpperCase is not a function - * ``` - * - * @see {@link materialize} - * - * @return A function that returns an Observable that emits items and - * notifications embedded in Notification objects emitted by the source - * Observable. - */ -export declare function dematerialize>(): OperatorFunction>; -//# sourceMappingURL=dematerialize.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/dematerialize.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/dematerialize.d.ts.map deleted file mode 100644 index 396d0d92c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/dematerialize.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dematerialize.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/dematerialize.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAI3F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,sBAAsB,CAAC,GAAG,CAAC,KAAK,gBAAgB,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAIpH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinct.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinct.d.ts deleted file mode 100644 index d9346e7de..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinct.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -/** - * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items. - * - * If a `keySelector` function is provided, then it will project each value from the source observable into a new value that it will - * check for equality with previously projected values. If the `keySelector` function is not provided, it will use each value from the - * source observable directly with an equality check against previous values. - * - * In JavaScript runtimes that support `Set`, this operator will use a `Set` to improve performance of the distinct value checking. - * - * In other runtimes, this operator will use a minimal implementation of `Set` that relies on an `Array` and `indexOf` under the - * hood, so performance will degrade as more values are checked for distinction. Even in newer browsers, a long-running `distinct` - * use might result in memory leaks. To help alleviate this in some scenarios, an optional `flushes` parameter is also provided so - * that the internal `Set` can be "flushed", basically clearing it of values. - * - * ## Examples - * - * A simple example with numbers - * - * ```ts - * import { of, distinct } from 'rxjs'; - * - * of(1, 1, 2, 2, 2, 1, 2, 3, 4, 3, 2, 1) - * .pipe(distinct()) - * .subscribe(x => console.log(x)); - * - * // Outputs - * // 1 - * // 2 - * // 3 - * // 4 - * ``` - * - * An example using the `keySelector` function - * - * ```ts - * import { of, distinct } from 'rxjs'; - * - * of( - * { age: 4, name: 'Foo'}, - * { age: 7, name: 'Bar'}, - * { age: 5, name: 'Foo'} - * ) - * .pipe(distinct(({ name }) => name)) - * .subscribe(x => console.log(x)); - * - * // Outputs - * // { age: 4, name: 'Foo' } - * // { age: 7, name: 'Bar' } - * ``` - * @see {@link distinctUntilChanged} - * @see {@link distinctUntilKeyChanged} - * - * @param keySelector Optional `function` to select which value you want to check as distinct. - * @param flushes Optional `ObservableInput` for flushing the internal HashSet of the operator. - * @return A function that returns an Observable that emits items from the - * source Observable with distinct values. - */ -export declare function distinct(keySelector?: (value: T) => K, flushes?: ObservableInput): MonoTypeOperatorFunction; -//# sourceMappingURL=distinct.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinct.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinct.d.ts.map deleted file mode 100644 index 9049e6ac7..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinct.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinct.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/distinct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAMrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EAAE,eAAe,CAAC,GAAG,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAezH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilChanged.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilChanged.d.ts deleted file mode 100644 index 8394fa641..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilChanged.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -export declare function distinctUntilChanged(comparator?: (previous: T, current: T) => boolean): MonoTypeOperatorFunction; -export declare function distinctUntilChanged(comparator: (previous: K, current: K) => boolean, keySelector: (value: T) => K): MonoTypeOperatorFunction; -//# sourceMappingURL=distinctUntilChanged.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilChanged.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilChanged.d.ts.map deleted file mode 100644 index 0a0f53064..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilChanged.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinctUntilChanged.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/distinctUntilChanged.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAKpD,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,OAAO,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AACxH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EACvC,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,OAAO,EAChD,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,GAC3B,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilKeyChanged.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilKeyChanged.d.ts deleted file mode 100644 index 4c054c884..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilKeyChanged.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -export declare function distinctUntilKeyChanged(key: keyof T): MonoTypeOperatorFunction; -export declare function distinctUntilKeyChanged(key: K, compare: (x: T[K], y: T[K]) => boolean): MonoTypeOperatorFunction; -//# sourceMappingURL=distinctUntilKeyChanged.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilKeyChanged.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilKeyChanged.d.ts.map deleted file mode 100644 index 7e1119a44..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/distinctUntilKeyChanged.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"distinctUntilKeyChanged.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/distinctUntilKeyChanged.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGpD,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AACtF,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,OAAO,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/elementAt.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/elementAt.d.ts deleted file mode 100644 index b23d55d1c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/elementAt.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { OperatorFunction } from '../types'; -/** - * Emits the single value at the specified `index` in a sequence of emissions - * from the source Observable. - * - * Emits only the i-th value, then completes. - * - * ![](elementAt.png) - * - * `elementAt` returns an Observable that emits the item at the specified - * `index` in the source Observable, or a default value if that `index` is out - * of range and the `default` argument is provided. If the `default` argument is - * not given and the `index` is out of range, the output Observable will emit an - * `ArgumentOutOfRangeError` error. - * - * ## Example - * - * Emit only the third click event - * - * ```ts - * import { fromEvent, elementAt } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(elementAt(2)); - * result.subscribe(x => console.log(x)); - * - * // Results in: - * // click 1 = nothing - * // click 2 = nothing - * // click 3 = MouseEvent object logged to console - * ``` - * - * @see {@link first} - * @see {@link last} - * @see {@link skip} - * @see {@link single} - * @see {@link take} - * - * @throws {ArgumentOutOfRangeError} When using `elementAt(i)`, it delivers an - * ArgumentOutOfRangeError to the Observer's `error` callback if `i < 0` or the - * Observable has completed before emitting the i-th `next` notification. - * - * @param {number} index Is the number `i` for the i-th source emission that has - * happened since the subscription, starting from the number `0`. - * @param {T} [defaultValue] The default value returned for missing indices. - * @return A function that returns an Observable that emits a single item, if - * it is found. Otherwise, it will emit the default value if given. If not, it - * emits an error. - */ -export declare function elementAt(index: number, defaultValue?: D): OperatorFunction; -//# sourceMappingURL=elementAt.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/elementAt.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/elementAt.d.ts.map deleted file mode 100644 index dafa75c01..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/elementAt.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"elementAt.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/elementAt.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAM5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAW/F"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/endWith.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/endWith.d.ts deleted file mode 100644 index 25236a540..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/endWith.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { MonoTypeOperatorFunction, SchedulerLike, OperatorFunction, ValueFromArray } from '../types'; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function endWith(scheduler: SchedulerLike): MonoTypeOperatorFunction; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function endWith(...valuesAndScheduler: [...A, SchedulerLike]): OperatorFunction>; -export declare function endWith(...values: A): OperatorFunction>; -//# sourceMappingURL=endWith.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/endWith.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/endWith.d.ts.map deleted file mode 100644 index 9ee0e7ec8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/endWith.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"endWith.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/endWith.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAErG,8JAA8J;AAC9J,wBAAgB,OAAO,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAClF,8JAA8J;AAC9J,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE,GAAG,CAAC,EAAE,EAClD,GAAG,kBAAkB,EAAE,CAAC,GAAG,CAAC,EAAE,aAAa,CAAC,GAC3C,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAE9C,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/every.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/every.d.ts deleted file mode 100644 index 29e265452..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/every.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Observable } from '../Observable'; -import { Falsy, OperatorFunction } from '../types'; -export declare function every(predicate: BooleanConstructor): OperatorFunction extends never ? false : boolean>; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export declare function every(predicate: BooleanConstructor, thisArg: any): OperatorFunction extends never ? false : boolean>; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export declare function every(predicate: (this: A, value: T, index: number, source: Observable) => boolean, thisArg: A): OperatorFunction; -export declare function every(predicate: (value: T, index: number, source: Observable) => boolean): OperatorFunction; -//# sourceMappingURL=every.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/every.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/every.d.ts.map deleted file mode 100644 index 313a35c3f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/every.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"every.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/every.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAInD,wBAAgB,KAAK,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC,CAAC;AAChI,gHAAgH;AAChH,wBAAgB,KAAK,CAAC,CAAC,EACrB,SAAS,EAAE,kBAAkB,EAC7B,OAAO,EAAE,GAAG,GACX,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC,CAAC;AAC1E,gHAAgH;AAChH,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EACxB,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,EAC/E,OAAO,EAAE,CAAC,GACT,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AAChC,wBAAgB,KAAK,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,GAAG,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaust.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaust.d.ts deleted file mode 100644 index 6379212b3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaust.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { exhaustAll } from './exhaustAll'; -/** - * @deprecated Renamed to {@link exhaustAll}. Will be removed in v8. - */ -export declare const exhaust: typeof exhaustAll; -//# sourceMappingURL=exhaust.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaust.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaust.d.ts.map deleted file mode 100644 index 6bf583290..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaust.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaust.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/exhaust.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,OAAO,mBAAa,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustAll.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustAll.d.ts deleted file mode 100644 index fa22a016a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustAll.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { OperatorFunction, ObservableInput, ObservedValueOf } from '../types'; -/** - * Converts a higher-order Observable into a first-order Observable by dropping - * inner Observables while the previous inner Observable has not yet completed. - * - * Flattens an Observable-of-Observables by dropping the - * next inner Observables while the current inner is still executing. - * - * ![](exhaustAll.svg) - * - * `exhaustAll` subscribes to an Observable that emits Observables, also known as a - * higher-order Observable. Each time it observes one of these emitted inner - * Observables, the output Observable begins emitting the items emitted by that - * inner Observable. So far, it behaves like {@link mergeAll}. However, - * `exhaustAll` ignores every new inner Observable if the previous Observable has - * not yet completed. Once that one completes, it will accept and flatten the - * next inner Observable and repeat this process. - * - * ## Example - * - * Run a finite timer for each click, only if there is no currently active timer - * - * ```ts - * import { fromEvent, map, interval, take, exhaustAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const higherOrder = clicks.pipe( - * map(() => interval(1000).pipe(take(5))) - * ); - * const result = higherOrder.pipe(exhaustAll()); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link combineLatestAll} - * @see {@link concatAll} - * @see {@link switchAll} - * @see {@link switchMap} - * @see {@link mergeAll} - * @see {@link exhaustMap} - * @see {@link zipAll} - * - * @return A function that returns an Observable that takes a source of - * Observables and propagates the first Observable exclusively until it - * completes before subscribing to the next. - */ -export declare function exhaustAll>(): OperatorFunction>; -//# sourceMappingURL=exhaustAll.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustAll.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustAll.d.ts.map deleted file mode 100644 index ec237216a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustAll.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaustAll.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/exhaustAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,UAAU,CAAC,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,KAAK,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAEpG"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustMap.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustMap.d.ts deleted file mode 100644 index 89ef188ad..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustMap.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -export declare function exhaustMap>(project: (value: T, index: number) => O): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function exhaustMap>(project: (value: T, index: number) => O, resultSelector: undefined): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function exhaustMap(project: (value: T, index: number) => ObservableInput, resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R): OperatorFunction; -//# sourceMappingURL=exhaustMap.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustMap.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustMap.d.ts.map deleted file mode 100644 index afd740f9a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/exhaustMap.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exhaustMap.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/exhaustMap.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAO9E,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAC1D,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GACtC,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3C,0JAA0J;AAC1J,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAC1D,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EACvC,cAAc,EAAE,SAAS,GACxB,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3C,0JAA0J;AAC1J,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAChC,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,eAAe,CAAC,CAAC,CAAC,EACxD,cAAc,EAAE,CAAC,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC,GAC1F,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/expand.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/expand.d.ts deleted file mode 100644 index 39720170a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/expand.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { OperatorFunction, ObservableInput, ObservedValueOf, SchedulerLike } from '../types'; -export declare function expand>(project: (value: T, index: number) => O, concurrent?: number, scheduler?: SchedulerLike): OperatorFunction>; -/** - * @deprecated The `scheduler` parameter will be removed in v8. If you need to schedule the inner subscription, - * use `subscribeOn` within the projection function: `expand((value) => fn(value).pipe(subscribeOn(scheduler)))`. - * Details: Details: https://rxjs.dev/deprecations/scheduler-argument - */ -export declare function expand>(project: (value: T, index: number) => O, concurrent: number | undefined, scheduler: SchedulerLike): OperatorFunction>; -//# sourceMappingURL=expand.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/expand.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/expand.d.ts.map deleted file mode 100644 index 76a7b9073..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/expand.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"expand.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/expand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAK7F,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EAC1D,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EACvC,UAAU,CAAC,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,aAAa,GACxB,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3C;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EAC1D,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EACvC,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,SAAS,EAAE,aAAa,GACvB,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/filter.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/filter.d.ts deleted file mode 100644 index ca45a234f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/filter.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types'; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export declare function filter(predicate: (this: A, value: T, index: number) => value is S, thisArg: A): OperatorFunction; -export declare function filter(predicate: (value: T, index: number) => value is S): OperatorFunction; -export declare function filter(predicate: BooleanConstructor): OperatorFunction>; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export declare function filter(predicate: (this: A, value: T, index: number) => boolean, thisArg: A): MonoTypeOperatorFunction; -export declare function filter(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction; -//# sourceMappingURL=filter.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/filter.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/filter.d.ts.map deleted file mode 100644 index 8df64a4e6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/filter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIrF,gHAAgH;AAChH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3I,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACnH,wBAAgB,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAChG,gHAAgH;AAChH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,EAAE,OAAO,EAAE,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAChI,wBAAgB,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/finalize.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/finalize.d.ts deleted file mode 100644 index 1255926a8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/finalize.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -/** - * Returns an Observable that mirrors the source Observable, but will call a specified function when - * the source terminates on complete or error. - * The specified function will also be called when the subscriber explicitly unsubscribes. - * - * ## Examples - * - * Execute callback function when the observable completes - * - * ```ts - * import { interval, take, finalize } from 'rxjs'; - * - * // emit value in sequence every 1 second - * const source = interval(1000); - * const example = source.pipe( - * take(5), //take only the first 5 values - * finalize(() => console.log('Sequence complete')) // Execute when the observable completes - * ); - * const subscribe = example.subscribe(val => console.log(val)); - * - * // results: - * // 0 - * // 1 - * // 2 - * // 3 - * // 4 - * // 'Sequence complete' - * ``` - * - * Execute callback function when the subscriber explicitly unsubscribes - * - * ```ts - * import { interval, finalize, tap, noop, timer } from 'rxjs'; - * - * const source = interval(100).pipe( - * finalize(() => console.log('[finalize] Called')), - * tap({ - * next: () => console.log('[next] Called'), - * error: () => console.log('[error] Not called'), - * complete: () => console.log('[tap complete] Not called') - * }) - * ); - * - * const sub = source.subscribe({ - * next: x => console.log(x), - * error: noop, - * complete: () => console.log('[complete] Not called') - * }); - * - * timer(150).subscribe(() => sub.unsubscribe()); - * - * // results: - * // '[next] Called' - * // 0 - * // '[finalize] Called' - * ``` - * - * @param {function} callback Function to be called when source terminates. - * @return A function that returns an Observable that mirrors the source, but - * will call the specified function on termination. - */ -export declare function finalize(callback: () => void): MonoTypeOperatorFunction; -//# sourceMappingURL=finalize.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/finalize.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/finalize.d.ts.map deleted file mode 100644 index f427a737f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/finalize.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"finalize.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/finalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAU7E"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/find.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/find.d.ts deleted file mode 100644 index 0f89d5b8a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/find.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscriber } from '../Subscriber'; -import { OperatorFunction, TruthyTypesOf } from '../types'; -export declare function find(predicate: BooleanConstructor): OperatorFunction>; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export declare function find(predicate: (this: A, value: T, index: number, source: Observable) => value is S, thisArg: A): OperatorFunction; -export declare function find(predicate: (value: T, index: number, source: Observable) => value is S): OperatorFunction; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export declare function find(predicate: (this: A, value: T, index: number, source: Observable) => boolean, thisArg: A): OperatorFunction; -export declare function find(predicate: (value: T, index: number, source: Observable) => boolean): OperatorFunction; -export declare function createFind(predicate: (value: T, index: number, source: Observable) => boolean, thisArg: any, emit: 'value' | 'index'): (source: Observable, subscriber: Subscriber) => void; -//# sourceMappingURL=find.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/find.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/find.d.ts.map deleted file mode 100644 index 32489660e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/find.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI3D,wBAAgB,IAAI,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9F,gHAAgH;AAChH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,EACpC,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,EAClF,OAAO,EAAE,CAAC,GACT,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC;AACtC,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EACjC,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,GACxE,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC;AACtC,gHAAgH;AAChH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EACvB,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,EAC/E,OAAO,EAAE,CAAC,GACT,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC;AACtC,wBAAgB,IAAI,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC;AAmDpI,wBAAgB,UAAU,CAAC,CAAC,EAC1B,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,EACtE,OAAO,EAAE,GAAG,EACZ,IAAI,EAAE,OAAO,GAAG,OAAO,YAGP,WAAW,CAAC,CAAC,cAAc,WAAW,GAAG,CAAC,UAmB3D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/findIndex.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/findIndex.d.ts deleted file mode 100644 index b0dc65033..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/findIndex.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Observable } from '../Observable'; -import { Falsy, OperatorFunction } from '../types'; -export declare function findIndex(predicate: BooleanConstructor): OperatorFunction; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export declare function findIndex(predicate: BooleanConstructor, thisArg: any): OperatorFunction; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export declare function findIndex(predicate: (this: A, value: T, index: number, source: Observable) => boolean, thisArg: A): OperatorFunction; -export declare function findIndex(predicate: (value: T, index: number, source: Observable) => boolean): OperatorFunction; -//# sourceMappingURL=findIndex.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/findIndex.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/findIndex.d.ts.map deleted file mode 100644 index 7383ecdd5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/findIndex.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"findIndex.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/findIndex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAInD,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;AAChH,gHAAgH;AAChH,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,OAAO,EAAE,GAAG,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,SAAS,KAAK,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;AAC9H,gHAAgH;AAChH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAC5B,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,EAC/E,OAAO,EAAE,CAAC,GACT,gBAAgB,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAC/B,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,GAAG,gBAAgB,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/first.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/first.d.ts deleted file mode 100644 index 1b7df1c40..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/first.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Observable } from '../Observable'; -import { OperatorFunction, TruthyTypesOf } from '../types'; -export declare function first(predicate?: null, defaultValue?: D): OperatorFunction; -export declare function first(predicate: BooleanConstructor): OperatorFunction>; -export declare function first(predicate: BooleanConstructor, defaultValue: D): OperatorFunction | D>; -export declare function first(predicate: (value: T, index: number, source: Observable) => value is S, defaultValue?: S): OperatorFunction; -export declare function first(predicate: (value: T, index: number, source: Observable) => value is S, defaultValue: D): OperatorFunction; -export declare function first(predicate: (value: T, index: number, source: Observable) => boolean, defaultValue?: D): OperatorFunction; -//# sourceMappingURL=first.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/first.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/first.d.ts.map deleted file mode 100644 index 337c089d6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/first.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"first.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/first.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAO3D,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,EAAE,CAAC,G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ist/types/internal/operators/flatMap.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/flatMap.d.ts deleted file mode 100644 index 719fe58f8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/flatMap.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { mergeMap } from './mergeMap'; -/** - * @deprecated Renamed to {@link mergeMap}. Will be removed in v8. - */ -export declare const flatMap: typeof mergeMap; -//# sourceMappingURL=flatMap.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/flatMap.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/flatMap.d.ts.map deleted file mode 100644 index 2177d97bf..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/flatMap.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"flatMap.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/flatMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,OAAO,iBAAW,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/groupBy.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/groupBy.d.ts deleted file mode 100644 index 56aec0e95..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/groupBy.d.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { Observable } from '../Observable'; -import { Subject } from '../Subject'; -import { ObservableInput, OperatorFunction, SubjectLike } from '../types'; -export interface BasicGroupByOptions { - element?: undefined; - duration?: (grouped: GroupedObservable) => ObservableInput; - connector?: () => SubjectLike; -} -export interface GroupByOptionsWithElement { - element: (value: T) => E; - duration?: (grouped: GroupedObservable) => ObservableInput; - connector?: () => SubjectLike; -} -export declare function groupBy(key: (value: T) => K, options: BasicGroupByOptions): OperatorFunction>; -export declare function groupBy(key: (value: T) => K, options: GroupByOptionsWithElement): OperatorFunction>; -export declare function groupBy(key: (value: T) => value is K): OperatorFunction | GroupedObservable>>; -export declare function groupBy(key: (value: T) => K): OperatorFunction>; -/** - * @deprecated use the options parameter instead. - */ -export declare function groupBy(key: (value: T) => K, element: void, duration: (grouped: GroupedObservable) => Observable): OperatorFunction>; -/** - * @deprecated use the options parameter instead. - */ -export declare function groupBy(key: (value: T) => K, element?: (value: T) => R, duration?: (grouped: GroupedObservable) => Observable): OperatorFunction>; -/** - * Groups the items emitted by an Observable according to a specified criterion, - * and emits these grouped items as `GroupedObservables`, one - * {@link GroupedObservable} per group. - * - * ![](groupBy.png) - * - * When the Observable emits an item, a key is computed for this item with the key function. - * - * If a {@link GroupedObservable} for this key exists, this {@link GroupedObservable} emits. Otherwise, a new - * {@link GroupedObservable} for this key is created and emits. - * - * A {@link GroupedObservable} represents values belonging to the same group represented by a common key. The common - * key is available as the `key` field of a {@link GroupedObservable} instance. - * - * The elements emitted by {@link GroupedObservable}s are by default the items emitted by the Observable, or elements - * returned by the element function. - * - * ## Examples - * - * Group objects by `id` and return as array - * - * ```ts - * import { of, groupBy, mergeMap, reduce } from 'rxjs'; - * - * of( - * { id: 1, name: 'JavaScript' }, - * { id: 2, name: 'Parcel' }, - * { id: 2, name: 'webpack' }, - * { id: 1, name: 'TypeScript' }, - * { id: 3, name: 'TSLint' } - * ).pipe( - * groupBy(p => p.id), - * mergeMap(group$ => group$.pipe(reduce((acc, cur) => [...acc, cur], []))) - * ) - * .subscribe(p => console.log(p)); - * - * // displays: - * // [{ id: 1, name: 'JavaScript' }, { id: 1, name: 'TypeScript'}] - * // [{ id: 2, name: 'Parcel' }, { id: 2, name: 'webpack'}] - * // [{ id: 3, name: 'TSLint' }] - * ``` - * - * Pivot data on the `id` field - * - * ```ts - * import { of, groupBy, mergeMap, reduce, map } from 'rxjs'; - * - * of( - * { id: 1, name: 'JavaScript' }, - * { id: 2, name: 'Parcel' }, - * { id: 2, name: 'webpack' }, - * { id: 1, name: 'TypeScript' }, - * { id: 3, name: 'TSLint' } - * ).pipe( - * groupBy(p => p.id, { element: p => p.name }), - * mergeMap(group$ => group$.pipe(reduce((acc, cur) => [...acc, cur], [`${ group$.key }`]))), - * map(arr => ({ id: parseInt(arr[0], 10), values: arr.slice(1) })) - * ) - * .subscribe(p => console.log(p)); - * - * // displays: - * // { id: 1, values: [ 'JavaScript', 'TypeScript' ] } - * // { id: 2, values: [ 'Parcel', 'webpack' ] } - * // { id: 3, values: [ 'TSLint' ] } - * ``` - * - * @param key A function that extracts the key - * for each item. - * @param element A function that extracts the - * return element for each item. - * @param duration - * A function that returns an Observable to determine how long each group should - * exist. - * @param connector Factory function to create an - * intermediate Subject through which grouped elements are emitted. - * @return A function that returns an Observable that emits GroupedObservables, - * each of which corresponds to a unique key value and each of which emits - * those items from the source Observable that share that key value. - * - * @deprecated Use the options parameter instead. - */ -export declare function groupBy(key: (value: T) => K, element?: (value: T) => R, duration?: (grouped: GroupedObservable) => Observable, connector?: () => Subject): OperatorFunction>; -/** - * An observable of values that is the emitted by the result of a {@link groupBy} operator, - * contains a `key` property for the grouping. - */ -export interface GroupedObservable extends Observable { - /** - * The key value for the grouped notifications. - */ - readonly key: K; -} -//# sourceMappingURL=groupBy.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/groupBy.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/groupBy.d.ts.map deleted file mode 100644 index 889877dea..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/groupBy.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"groupBy.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/groupBy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,eAAe,EAAY,gBAAgB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAIpF,MA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EACpB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,EACzB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,UAAU,CAAC,GAAG,CAAC,EAChE,SAAS,CAAC,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAC3B,gBAAgB,CAAC,CAAC,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AA6IhD;;;GAGG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IAC5D;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;CACjB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/ignoreElements.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/ignoreElements.d.ts deleted file mode 100644 index f852a5295..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/ignoreElements.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { OperatorFunction } from '../types'; -/** - * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`. - * - * ![](ignoreElements.png) - * - * The `ignoreElements` operator suppresses all items emitted by the source Observable, - * but allows its termination notification (either `error` or `complete`) to pass through unchanged. - * - * If you do not care about the items being emitted by an Observable, but you do want to be notified - * when it completes or when it terminates with an error, you can apply the `ignoreElements` operator - * to the Observable, which will ensure that it will never call its observers’ `next` handlers. - * - * ## Example - * - * Ignore all `next` emissions from the source - * - * ```ts - * import { of, ignoreElements } from 'rxjs'; - * - * of('you', 'talking', 'to', 'me') - * .pipe(ignoreElements()) - * .subscribe({ - * next: word => console.log(word), - * error: err => console.log('error:', err), - * complete: () => console.log('the end'), - * }); - * - * // result: - * // 'the end' - * ``` - * - * @return A function that returns an empty Observable that only calls - * `complete` or `error`, based on which one is called by the source - * Observable. - */ -export declare function ignoreElements(): OperatorFunction; -//# sourceMappingURL=ignoreElements.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/ignoreElements.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/ignoreElements.d.ts.map deleted file mode 100644 index adeb20cd0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/ignoreElements.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ignoreElements.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/ignoreElements.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,cAAc,IAAI,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,CAIjE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/isEmpty.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/isEmpty.d.ts deleted file mode 100644 index 6c35fdb59..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/isEmpty.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { OperatorFunction } from '../types'; -/** - * Emits `false` if the input Observable emits any values, or emits `true` if the - * input Observable completes without emitting any values. - * - * Tells whether any values are emitted by an Observable. - * - * ![](isEmpty.png) - * - * `isEmpty` transforms an Observable that emits values into an Observable that - * emits a single boolean value representing whether or not any values were - * emitted by the source Observable. As soon as the source Observable emits a - * value, `isEmpty` will emit a `false` and complete. If the source Observable - * completes having not emitted anything, `isEmpty` will emit a `true` and - * complete. - * - * A similar effect could be achieved with {@link count}, but `isEmpty` can emit - * a `false` value sooner. - * - * ## Examples - * - * Emit `false` for a non-empty Observable - * - * ```ts - * import { Subject, isEmpty } from 'rxjs'; - * - * const source = new Subject(); - * const result = source.pipe(isEmpty()); - * - * source.subscribe(x => console.log(x)); - * result.subscribe(x => console.log(x)); - * - * source.next('a'); - * source.next('b'); - * source.next('c'); - * source.complete(); - * - * // Outputs - * // 'a' - * // false - * // 'b' - * // 'c' - * ``` - * - * Emit `true` for an empty Observable - * - * ```ts - * import { EMPTY, isEmpty } from 'rxjs'; - * - * const result = EMPTY.pipe(isEmpty()); - * result.subscribe(x => console.log(x)); - * - * // Outputs - * // true - * ``` - * - * @see {@link count} - * @see {@link EMPTY} - * - * @return A function that returns an Observable that emits boolean value - * indicating whether the source Observable was empty or not. - */ -export declare function isEmpty(): OperatorFunction; -//# sourceMappingURL=isEmpty.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/isEmpty.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/isEmpty.d.ts.map deleted file mode 100644 index d99bb3aa0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/isEmpty.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isEmpty.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/isEmpty.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,wBAAgB,OAAO,CAAC,CAAC,KAAK,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAgBzD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/joinAllInternals.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/joinAllInternals.d.ts deleted file mode 100644 index 3e784f3d7..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/joinAllInternals.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput } from '../types'; -/** - * Collects all of the inner sources from source observable. Then, once the - * source completes, joins the values using the given static. - * - * This is used for {@link combineLatestAll} and {@link zipAll} which both have the - * same behavior of collecting all inner observables, then operating on them. - * - * @param joinFn The type of static join to apply to the sources collected - * @param project The projection function to apply to the values, if any - */ -export declare function joinAllInternals(joinFn: (sources: ObservableInput[]) => Observable, project?: (...args: any[]) => R): import("../types").UnaryFunction>, unknown>; -//# sourceMappingURL=joinAllInternals.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/joinAllInternals.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/joinAllInternals.d.ts.map deleted file mode 100644 index 54dda17ff..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/joinAllInternals.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"joinAllInternals.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/joinAllInternals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAoB,MAAM,UAAU,CAAC;AAO7D;;;;;;;;;GASG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,6EAU/H"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/last.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/last.d.ts deleted file mode 100644 index ecbed4326..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/last.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Observable } from '../Observable'; -import { OperatorFunction, TruthyTypesOf } from '../types'; -export declare function last(predicate: BooleanConstructor): OperatorFunction>; -export declare function last(predicate: BooleanConstructor, defaultValue: D): OperatorFunction | D>; -export declare function last(predicate?: null, defaultValue?: D): OperatorFunction; -export declare function last(predicate: (value: T, index: number, source: Observable) => value is S, defaultValue?: S): OperatorFunction; -export declare function last(predicate: (value: T, index: number, source: Observable) => boolean, defaultValue?: D): OperatorFunction; -//# sourceMappingURL=last.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/last.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/last.d.ts.map deleted file mode 100644 index c20a35b86..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/last.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"last.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/last.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAO3D,wBAAgB,IAAI,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9F,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,YAAY,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACtH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AAC/F,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EACjC,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,EACzE,YAAY,CAAC,EAAE,CAAC,GACf,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1B,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAC3B,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,EACtE,YAAY,CAAC,EAAE,CAAC,GACf,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/map.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/map.d.ts deleted file mode 100644 index e302b61ff..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/map.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { OperatorFunction } from '../types'; -export declare function map(project: (value: T, index: number) => R): OperatorFunction; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export declare function map(project: (this: A, value: T, index: number) => R, thisArg: A): OperatorFunction; -//# sourceMappingURL=map.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/map.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/map.d.ts.map deleted file mode 100644 index ab43e4072..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/map.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3F,gHAAgH;AAChH,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mapTo.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mapTo.d.ts deleted file mode 100644 index f3b80650c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mapTo.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { OperatorFunction } from '../types'; -/** @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`. */ -export declare function mapTo(value: R): OperatorFunction; -/** - * @deprecated Do not specify explicit type parameters. Signatures with type parameters - * that cannot be inferred will be removed in v8. `mapTo` itself will be removed in v9, - * use {@link map} instead: `map(() => value)`. - * */ -export declare function mapTo(value: R): OperatorFunction; -//# sourceMappingURL=mapTo.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mapTo.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mapTo.d.ts.map deleted file mode 100644 index df9402ae5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mapTo.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapTo.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/mapTo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,oFAAoF;AACpF,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AACjE;;;;KAIK;AACL,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/materialize.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/materialize.d.ts deleted file mode 100644 index 63f50325b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/materialize.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Notification } from '../Notification'; -import { OperatorFunction, ObservableNotification } from '../types'; -/** - * Represents all of the notifications from the source Observable as `next` - * emissions marked with their original types within {@link Notification} - * objects. - * - * Wraps `next`, `error` and `complete` emissions in - * {@link Notification} objects, emitted as `next` on the output Observable. - * - * - * ![](materialize.png) - * - * `materialize` returns an Observable that emits a `next` notification for each - * `next`, `error`, or `complete` emission of the source Observable. When the - * source Observable emits `complete`, the output Observable will emit `next` as - * a Notification of type "complete", and then it will emit `complete` as well. - * When the source Observable emits `error`, the output will emit `next` as a - * Notification of type "error", and then `complete`. - * - * This operator is useful for producing metadata of the source Observable, to - * be consumed as `next` emissions. Use it in conjunction with - * {@link dematerialize}. - * - * ## Example - * - * Convert a faulty Observable to an Observable of Notifications - * - * ```ts - * import { of, materialize, map } from 'rxjs'; - * - * const letters = of('a', 'b', 13, 'd'); - * const upperCase = letters.pipe(map((x: any) => x.toUpperCase())); - * const materialized = upperCase.pipe(materialize()); - * - * materialized.subscribe(x => console.log(x)); - * - * // Results in the following: - * // - Notification { kind: 'N', value: 'A', error: undefined, hasValue: true } - * // - Notification { kind: 'N', value: 'B', error: undefined, hasValue: true } - * // - Notification { kind: 'E', value: undefined, error: TypeError { message: x.toUpperCase is not a function }, hasValue: false } - * ``` - * - * @see {@link Notification} - * @see {@link dematerialize} - * - * @return A function that returns an Observable that emits - * {@link Notification} objects that wrap the original emissions from the - * source Observable with metadata. - */ -export declare function materialize(): OperatorFunction & ObservableNotification>; -//# sourceMappingURL=materialize.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/materialize.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/materialize.d.ts.map deleted file mode 100644 index 8c882318f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/materialize.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"materialize.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/materialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAIpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,WAAW,CAAC,CAAC,KAAK,gBAAgB,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAmBjG"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/max.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/max.d.ts deleted file mode 100644 index 4dadd2b52..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/max.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -/** - * The Max operator operates on an Observable that emits numbers (or items that can be compared with a provided function), - * and when source Observable completes it emits a single item: the item with the largest value. - * - * ![](max.png) - * - * ## Examples - * - * Get the maximal value of a series of numbers - * - * ```ts - * import { of, max } from 'rxjs'; - * - * of(5, 4, 7, 2, 8) - * .pipe(max()) - * .subscribe(x => console.log(x)); - * - * // Outputs - * // 8 - * ``` - * - * Use a comparer function to get the maximal item - * - * ```ts - * import { of, max } from 'rxjs'; - * - * of( - * { age: 7, name: 'Foo' }, - * { age: 5, name: 'Bar' }, - * { age: 9, name: 'Beer' } - * ).pipe( - * max((a, b) => a.age < b.age ? -1 : 1) - * ) - * .subscribe(x => console.log(x.name)); - * - * // Outputs - * // 'Beer' - * ``` - * - * @see {@link min} - * - * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the - * value of two items. - * @return A function that returns an Observable that emits item with the - * largest value. - */ -export declare function max(comparer?: (x: T, y: T) => number): MonoTypeOperatorFunction; -//# sourceMappingURL=max.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/max.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/max.d.ts.map deleted file mode 100644 index d4d0134ea..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/max.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"max.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/max.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAErF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/merge.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/merge.d.ts deleted file mode 100644 index a0b04bd38..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/merge.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ObservableInputTuple, OperatorFunction, SchedulerLike } from '../types'; -/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */ -export declare function merge(...sources: [...ObservableInputTuple]): OperatorFunction; -/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */ -export declare function merge(...sourcesAndConcurrency: [...ObservableInputTuple, number]): OperatorFunction; -/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */ -export declare function merge(...sourcesAndScheduler: [...ObservableInputTuple, SchedulerLike]): OperatorFunction; -/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */ -export declare function merge(...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple, number, SchedulerLike]): OperatorFunction; -//# sourceMappingURL=merge.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/merge.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/merge.d.ts.map deleted file mode 100644 index 17678ec33..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/merge.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/merge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,oBAAoB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAOlG,0EAA0E;AAC1E,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACrI,0EAA0E;AAC1E,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EACnD,GAAG,qBAAqB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,GAC7D,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACtC,0EAA0E;AAC1E,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EACnD,GAAG,mBAAmB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,GAClE,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACtC,0EAA0E;AAC1E,wBAAgB,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EACnD,GAAG,iCAAiC,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,GACxF,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeAll.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeAll.d.ts deleted file mode 100644 index 6ea5793ae..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeAll.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { OperatorFunction, ObservableInput, ObservedValueOf } from '../types'; -/** - * Converts a higher-order Observable into a first-order Observable which - * concurrently delivers all values that are emitted on the inner Observables. - * - * Flattens an Observable-of-Observables. - * - * ![](mergeAll.png) - * - * `mergeAll` subscribes to an Observable that emits Observables, also known as - * a higher-order Observable. Each time it observes one of these emitted inner - * Observables, it subscribes to that and delivers all the values from the - * inner Observable on the output Observable. The output Observable only - * completes once all inner Observables have completed. Any error delivered by - * a inner Observable will be immediately emitted on the output Observable. - * - * ## Examples - * - * Spawn a new interval Observable for each click event, and blend their outputs as one Observable - * - * ```ts - * import { fromEvent, map, interval, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const higherOrder = clicks.pipe(map(() => interval(1000))); - * const firstOrder = higherOrder.pipe(mergeAll()); - * - * firstOrder.subscribe(x => console.log(x)); - * ``` - * - * Count from 0 to 9 every second for each click, but only allow 2 concurrent timers - * - * ```ts - * import { fromEvent, map, interval, take, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const higherOrder = clicks.pipe( - * map(() => interval(1000).pipe(take(10))) - * ); - * const firstOrder = higherOrder.pipe(mergeAll(2)); - * - * firstOrder.subscribe(x => console.log(x)); - * ``` - * - * @see {@link combineLatestAll} - * @see {@link concatAll} - * @see {@link exhaustAll} - * @see {@link merge} - * @see {@link mergeMap} - * @see {@link mergeMapTo} - * @see {@link mergeScan} - * @see {@link switchAll} - * @see {@link switchMap} - * @see {@link zipAll} - * - * @param {number} [concurrent=Infinity] Maximum number of inner - * Observables being subscribed to concurrently. - * @return A function that returns an Observable that emits values coming from - * all the inner Observables emitted by the source Observable. - */ -export declare function mergeAll>(concurrent?: number): OperatorFunction>; -//# sourceMappingURL=mergeAll.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeAll.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeAll.d.ts.map deleted file mode 100644 index def11cf7b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeAll.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeAll.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/mergeAll.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,wBAAgB,QAAQ,CAAC,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAAE,UAAU,GAAE,MAAiB,GAAG,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAE/H"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeInternals.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeInternals.d.ts deleted file mode 100644 index 14eed286b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeInternals.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscriber } from '../Subscriber'; -import { ObservableInput, SchedulerLike } from '../types'; -/** - * A process embodying the general "merge" strategy. This is used in - * `mergeMap` and `mergeScan` because the logic is otherwise nearly identical. - * @param source The original source observable - * @param subscriber The consumer subscriber - * @param project The projection function to get our inner sources - * @param concurrent The number of concurrent inner subscriptions - * @param onBeforeNext Additional logic to apply before nexting to our consumer - * @param expand If `true` this will perform an "expand" strategy, which differs only - * in that it recurses, and the inner subscription must be schedule-able. - * @param innerSubScheduler A scheduler to use to schedule inner subscriptions, - * this is to support the expand strategy, mostly, and should be deprecated - */ -export declare function mergeInternals(source: Observable, subscriber: Subscriber, project: (value: T, index: number) => ObservableInput, concurrent: number, onBeforeNext?: (innerValue: R) => void, expand?: boolean, innerSubScheduler?: SchedulerLike, additionalFinalizer?: () => void): () => void; -//# sourceMappingURL=mergeInternals.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeInternals.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeInternals.d.ts.map deleted file mode 100644 index aa06e61b1..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeInternals.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeInternals.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/mergeInternals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAI1D;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,EACjC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,EACrB,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,EACzB,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,eAAe,CAAC,CAAC,CAAC,EACxD,UAAU,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC,KAAK,IAAI,EACtC,MAAM,CAAC,EAAE,OAAO,EAChB,iBAAiB,CAAC,EAAE,aAAa,EACjC,mBAAmB,CAAC,EAAE,MAAM,IAAI,cAwHjC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMap.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMap.d.ts deleted file mode 100644 index 046ee28b6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMap.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -export declare function mergeMap>(project: (value: T, index: number) => O, concurrent?: number): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function mergeMap>(project: (value: T, index: number) => O, resultSelector: undefined, concurrent?: number): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function mergeMap>(project: (value: T, index: number) => O, resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R, concurrent?: number): OperatorFunction; -//# sourceMappingURL=mergeMap.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMap.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMap.d.ts.map deleted file mode 100644 index 0b97057e6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMap.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeMap.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/mergeMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQ9E,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EACxD,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EACvC,UAAU,CAAC,EAAE,MAAM,GAClB,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3C,0JAA0J;AAC1J,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EACxD,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EACvC,cAAc,EAAE,SAAS,EACzB,UAAU,CAAC,EAAE,MAAM,GAClB,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3C,0JAA0J;AAC1J,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAC3D,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EACvC,cAAc,EAAE,CAAC,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC,EAC5G,UAAU,CAAC,EAAE,MAAM,GAClB,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMapTo.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMapTo.d.ts deleted file mode 100644 index 81658e83c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMapTo.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { OperatorFunction, ObservedValueOf, ObservableInput } from '../types'; -/** @deprecated Will be removed in v9. Use {@link mergeMap} instead: `mergeMap(() => result)` */ -export declare function mergeMapTo>(innerObservable: O, concurrent?: number): OperatorFunction>; -/** - * @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. - * Details: https://rxjs.dev/deprecations/resultSelector - */ -export declare function mergeMapTo>(innerObservable: O, resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R, concurrent?: number): OperatorFunction; -//# sourceMappingURL=mergeMapTo.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMapTo.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMapTo.d.ts.map deleted file mode 100644 index 408482fee..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeMapTo.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeMapTo.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/mergeMapTo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI9E,gGAAgG;AAChG,wBAAgB,UAAU,CAAC,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EAC3D,eAAe,EAAE,CAAC,EAClB,UAAU,CAAC,EAAE,MAAM,GAClB,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AACjD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EACjE,eAAe,EAAE,CAAC,EAClB,cAAc,EAAE,CAAC,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC,EAC5G,UAAU,CAAC,EAAE,MAAM,GAClB,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeScan.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeScan.d.ts deleted file mode 100644 index d92e804b3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeScan.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { ObservableInput, OperatorFunction } from '../types'; -/** - * Applies an accumulator function over the source Observable where the - * accumulator function itself returns an Observable, then each intermediate - * Observable returned is merged into the output Observable. - * - * It's like {@link scan}, but the Observables returned - * by the accumulator are merged into the outer Observable. - * - * The first parameter of the `mergeScan` is an `accumulator` function which is - * being called every time the source Observable emits a value. `mergeScan` will - * subscribe to the value returned by the `accumulator` function and will emit - * values to the subscriber emitted by inner Observable. - * - * The `accumulator` function is being called with three parameters passed to it: - * `acc`, `value` and `index`. The `acc` parameter is used as the state parameter - * whose value is initially set to the `seed` parameter (the second parameter - * passed to the `mergeScan` operator). - * - * `mergeScan` internally keeps the value of the `acc` parameter: as long as the - * source Observable emits without inner Observable emitting, the `acc` will be - * set to `seed`. The next time the inner Observable emits a value, `mergeScan` - * will internally remember it and it will be passed to the `accumulator` - * function as `acc` parameter the next time source emits. - * - * The `value` parameter of the `accumulator` function is the value emitted by the - * source Observable, while the `index` is a number which represent the order of the - * current emission by the source Observable. It starts with 0. - * - * The last parameter to the `mergeScan` is the `concurrent` value which defaults - * to Infinity. It represents the maximum number of inner Observable subscriptions - * at a time. - * - * ## Example - * - * Count the number of click events - * - * ```ts - * import { fromEvent, map, mergeScan, of } from 'rxjs'; - * - * const click$ = fromEvent(document, 'click'); - * const one$ = click$.pipe(map(() => 1)); - * const seed = 0; - * const count$ = one$.pipe( - * mergeScan((acc, one) => of(acc + one), seed) - * ); - * - * count$.subscribe(x => console.log(x)); - * - * // Results: - * // 1 - * // 2 - * // 3 - * // 4 - * // ...and so on for each click - * ``` - * - * @see {@link scan} - * @see {@link switchScan} - * - * @param {function(acc: R, value: T): Observable} accumulator - * The accumulator function called on each source value. - * @param seed The initial accumulation value. - * @param {number} [concurrent=Infinity] Maximum number of - * input Observables being subscribed to concurrently. - * @return A function that returns an Observable of the accumulated values. - */ -export declare function mergeScan(accumulator: (acc: R, value: T, index: number) => ObservableInput, seed: R, concurrent?: number): OperatorFunction; -//# sourceMappingURL=mergeScan.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeScan.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeScan.d.ts.map deleted file mode 100644 index e8858ae20..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeScan.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeScan.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/mergeScan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAC5B,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,eAAe,CAAC,CAAC,CAAC,EACpE,IAAI,EAAE,CAAC,EACP,UAAU,SAAW,GACpB,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAkBxB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeWith.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeWith.d.ts deleted file mode 100644 index 9b2164dc7..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeWith.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { ObservableInputTuple, OperatorFunction } from '../types'; -/** - * Merge the values from all observables to a single observable result. - * - * Creates an observable, that when subscribed to, subscribes to the source - * observable, and all other sources provided as arguments. All values from - * every source are emitted from the resulting subscription. - * - * When all sources complete, the resulting observable will complete. - * - * When any source errors, the resulting observable will error. - * - * ## Example - * - * Joining all outputs from multiple user input event streams - * - * ```ts - * import { fromEvent, map, mergeWith } from 'rxjs'; - * - * const clicks$ = fromEvent(document, 'click').pipe(map(() => 'click')); - * const mousemoves$ = fromEvent(document, 'mousemove').pipe(map(() => 'mousemove')); - * const dblclicks$ = fromEvent(document, 'dblclick').pipe(map(() => 'dblclick')); - * - * mousemoves$ - * .pipe(mergeWith(clicks$, dblclicks$)) - * .subscribe(x => console.log(x)); - * - * // result (assuming user interactions) - * // 'mousemove' - * // 'mousemove' - * // 'mousemove' - * // 'click' - * // 'click' - * // 'dblclick' - * ``` - * - * @see {@link merge} - * - * @param otherSources the sources to combine the current source with. - * @return A function that returns an Observable that merges the values from - * all given Observables. - */ -export declare function mergeWith(...otherSources: [...ObservableInputTuple]): OperatorFunction; -//# sourceMappingURL=mergeWith.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeWith.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeWith.d.ts.map deleted file mode 100644 index 551d0f222..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/mergeWith.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mergeWith.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/mergeWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAGlE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EACvD,GAAG,YAAY,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAC5C,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAEpC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/min.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/min.d.ts deleted file mode 100644 index 777402064..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/min.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -/** - * The Min operator operates on an Observable that emits numbers (or items that can be compared with a provided function), - * and when source Observable completes it emits a single item: the item with the smallest value. - * - * ![](min.png) - * - * ## Examples - * - * Get the minimal value of a series of numbers - * - * ```ts - * import { of, min } from 'rxjs'; - * - * of(5, 4, 7, 2, 8) - * .pipe(min()) - * .subscribe(x => console.log(x)); - * - * // Outputs - * // 2 - * ``` - * - * Use a comparer function to get the minimal item - * - * ```ts - * import { of, min } from 'rxjs'; - * - * of( - * { age: 7, name: 'Foo' }, - * { age: 5, name: 'Bar' }, - * { age: 9, name: 'Beer' } - * ).pipe( - * min((a, b) => a.age < b.age ? -1 : 1) - * ) - * .subscribe(x => console.log(x.name)); - * - * // Outputs - * // 'Bar' - * ``` - * - * @see {@link max} - * - * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the - * value of two items. - * @return A function that returns an Observable that emits item with the - * smallest value. - */ -export declare function min(comparer?: (x: T, y: T) => number): MonoTypeOperatorFunction; -//# sourceMappingURL=min.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/min.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/min.d.ts.map deleted file mode 100644 index 1f00e1581..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/min.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"min.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/min.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,GAAG,CAAC,CAAC,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAErF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/multicast.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/multicast.d.ts deleted file mode 100644 index 7b7e2228f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/multicast.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { Subject } from '../Subject'; -import { Observable } from '../Observable'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -import { OperatorFunction, UnaryFunction, ObservedValueOf, ObservableInput } from '../types'; -/** - * An operator that creates a {@link ConnectableObservable}, that when connected, - * with the `connect` method, will use the provided subject to multicast the values - * from the source to all consumers. - * - * @param subject The subject to multicast through. - * @return A function that returns a {@link ConnectableObservable} - * @deprecated Will be removed in v8. To create a connectable observable, use {@link connectable}. - * If you're using {@link refCount} after `multicast`, use the {@link share} operator instead. - * `multicast(subject), refCount()` is equivalent to - * `share({ connector: () => subject, resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function multicast(subject: Subject): UnaryFunction, ConnectableObservable>; -/** - * Because this is deprecated in favor of the {@link connect} operator, and was otherwise poorly documented, - * rather than duplicate the effort of documenting the same behavior, please see documentation for the - * {@link connect} operator. - * - * @param subject The subject used to multicast. - * @param selector A setup function to setup the multicast - * @return A function that returns an observable that mirrors the observable returned by the selector. - * @deprecated Will be removed in v8. Use the {@link connect} operator instead. - * `multicast(subject, selector)` is equivalent to - * `connect(selector, { connector: () => subject })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function multicast>(subject: Subject, selector: (shared: Observable) => O): OperatorFunction>; -/** - * An operator that creates a {@link ConnectableObservable}, that when connected, - * with the `connect` method, will use the provided subject to multicast the values - * from the source to all consumers. - * - * @param subjectFactory A factory that will be called to create the subject. Passing a function here - * will cause the underlying subject to be "reset" on error, completion, or refCounted unsubscription of - * the source. - * @return A function that returns a {@link ConnectableObservable} - * @deprecated Will be removed in v8. To create a connectable observable, use {@link connectable}. - * If you're using {@link refCount} after `multicast`, use the {@link share} operator instead. - * `multicast(() => new BehaviorSubject('test')), refCount()` is equivalent to - * `share({ connector: () => new BehaviorSubject('test') })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function multicast(subjectFactory: () => Subject): UnaryFunction, ConnectableObservable>; -/** - * Because this is deprecated in favor of the {@link connect} operator, and was otherwise poorly documented, - * rather than duplicate the effort of documenting the same behavior, please see documentation for the - * {@link connect} operator. - * - * @param subjectFactory A factory that creates the subject used to multicast. - * @param selector A function to setup the multicast and select the output. - * @return A function that returns an observable that mirrors the observable returned by the selector. - * @deprecated Will be removed in v8. Use the {@link connect} operator instead. - * `multicast(subjectFactory, selector)` is equivalent to - * `connect(selector, { connector: subjectFactory })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function multicast>(subjectFactory: () => Subject, selector: (shared: Observable) => O): OperatorFunction>; -//# sourceMappingURL=multicast.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/multicast.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/multicast.d.ts.map deleted file mode 100644 index dfdec4b66..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/multicast.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"multicast.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/multicast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI7F;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE1G;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EACzD,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,EACnB,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,GACrC,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3C;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEvH;;;;;;;;;;;;GAYG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EACzD,cAAc,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAChC,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,GACrC,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/observeOn.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/observeOn.d.ts deleted file mode 100644 index 8ff78785b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/observeOn.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -/** @prettier */ -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -/** - * Re-emits all notifications from source Observable with specified scheduler. - * - * Ensure a specific scheduler is used, from outside of an Observable. - * - * `observeOn` is an operator that accepts a scheduler as a first parameter, which will be used to reschedule - * notifications emitted by the source Observable. It might be useful, if you do not have control over - * internal scheduler of a given Observable, but want to control when its values are emitted nevertheless. - * - * Returned Observable emits the same notifications (nexted values, complete and error events) as the source Observable, - * but rescheduled with provided scheduler. Note that this doesn't mean that source Observables internal - * scheduler will be replaced in any way. Original scheduler still will be used, but when the source Observable emits - * notification, it will be immediately scheduled again - this time with scheduler passed to `observeOn`. - * An anti-pattern would be calling `observeOn` on Observable that emits lots of values synchronously, to split - * that emissions into asynchronous chunks. For this to happen, scheduler would have to be passed into the source - * Observable directly (usually into the operator that creates it). `observeOn` simply delays notifications a - * little bit more, to ensure that they are emitted at expected moments. - * - * As a matter of fact, `observeOn` accepts second parameter, which specifies in milliseconds with what delay notifications - * will be emitted. The main difference between {@link delay} operator and `observeOn` is that `observeOn` - * will delay all notifications - including error notifications - while `delay` will pass through error - * from source Observable immediately when it is emitted. In general it is highly recommended to use `delay` operator - * for any kind of delaying of values in the stream, while using `observeOn` to specify which scheduler should be used - * for notification emissions in general. - * - * ## Example - * - * Ensure values in subscribe are called just before browser repaint - * - * ```ts - * import { interval, observeOn, animationFrameScheduler } from 'rxjs'; - * - * const someDiv = document.createElement('div'); - * someDiv.style.cssText = 'width: 200px;background: #09c'; - * document.body.appendChild(someDiv); - * const intervals = interval(10); // Intervals are scheduled - * // with async scheduler by default... - * intervals.pipe( - * observeOn(animationFrameScheduler) // ...but we will observe on animationFrame - * ) // scheduler to ensure smooth animation. - * .subscribe(val => { - * someDiv.style.height = val + 'px'; - * }); - * ``` - * - * @see {@link delay} - * - * @param scheduler Scheduler that will be used to reschedule notifications from source Observable. - * @param delay Number of milliseconds that states with what delay every notification should be rescheduled. - * @return A function that returns an Observable that emits the same - * notifications as the source Observable, but with provided scheduler. - */ -export declare function observeOn(scheduler: SchedulerLike, delay?: number): MonoTypeOperatorFunction; -//# sourceMappingURL=observeOn.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/observeOn.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/observeOn.d.ts.map deleted file mode 100644 index 5997ac557..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/observeOn.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"observeOn.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/observeOn.ts"],"names":[],"mappings":"AAAA,gBAAgB;AAChB,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,SAAI,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAW7F"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/onErrorResumeNextWith.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/onErrorResumeNextWith.d.ts deleted file mode 100644 index 8323747e1..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/onErrorResumeNextWith.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ObservableInputTuple, OperatorFunction } from '../types'; -export declare function onErrorResumeNextWith(sources: [...ObservableInputTuple]): OperatorFunction; -export declare function onErrorResumeNextWith(...sources: [...ObservableInputTuple]): OperatorFunction; -/** - * @deprecated Renamed. Use {@link onErrorResumeNextWith} instead. Will be removed in v8. - */ -export declare const onErrorResumeNext: typeof onErrorResumeNextWith; -//# sourceMappingURL=onErrorResumeNextWith.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/onErrorResumeNextWith.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/onErrorResumeNextWith.d.ts.map deleted file mode 100644 index 45bf50f3b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/onErrorResumeNextWith.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"onErrorResumeNextWith.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/onErrorResumeNextWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAIlE,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EACnE,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GACpC,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACtC,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EACnE,GAAG,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GACvC,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAsFtC;;GAEG;AACH,eAAO,MAAM,iBAAiB,8BAAwB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/pairwise.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/pairwise.d.ts deleted file mode 100644 index 08ea7b7c4..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/pairwise.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { OperatorFunction } from '../types'; -/** - * Groups pairs of consecutive emissions together and emits them as an array of - * two values. - * - * Puts the current value and previous value together as - * an array, and emits that. - * - * ![](pairwise.png) - * - * The Nth emission from the source Observable will cause the output Observable - * to emit an array [(N-1)th, Nth] of the previous and the current value, as a - * pair. For this reason, `pairwise` emits on the second and subsequent - * emissions from the source Observable, but not on the first emission, because - * there is no previous value in that case. - * - * ## Example - * - * On every click (starting from the second), emit the relative distance to the previous click - * - * ```ts - * import { fromEvent, pairwise, map } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const pairs = clicks.pipe(pairwise()); - * const distance = pairs.pipe( - * map(([first, second]) => { - * const x0 = first.clientX; - * const y0 = first.clientY; - * const x1 = second.clientX; - * const y1 = second.clientY; - * return Math.sqrt(Math.pow(x0 - x1, 2) + Math.pow(y0 - y1, 2)); - * }) - * ); - * - * distance.subscribe(x => console.log(x)); - * ``` - * - * @see {@link buffer} - * @see {@link bufferCount} - * - * @return A function that returns an Observable of pairs (as arrays) of - * consecutive values from the source Observable. - */ -export declare function pairwise(): OperatorFunction; -//# sourceMappingURL=pairwise.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/pairwise.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/pairwise.d.ts.map deleted file mode 100644 index 1c3a799ef..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/pairwise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pairwise.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/pairwise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,QAAQ,CAAC,CAAC,KAAK,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAazD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/partition.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/partition.d.ts deleted file mode 100644 index 34fc1a28f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/partition.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { Observable } from '../Observable'; -import { UnaryFunction } from '../types'; -/** - * Splits the source Observable into two, one with values that satisfy a - * predicate, and another with values that don't satisfy the predicate. - * - * It's like {@link filter}, but returns two Observables: - * one like the output of {@link filter}, and the other with values that did not - * pass the condition. - * - * ![](partition.png) - * - * `partition` outputs an array with two Observables that partition the values - * from the source Observable through the given `predicate` function. The first - * Observable in that array emits source values for which the predicate argument - * returns true. The second Observable emits source values for which the - * predicate returns false. The first behaves like {@link filter} and the second - * behaves like {@link filter} with the predicate negated. - * - * ## Example - * - * Partition click events into those on DIV elements and those elsewhere - * - * ```ts - * import { fromEvent } from 'rxjs'; - * import { partition } from 'rxjs/operators'; - * - * const div = document.createElement('div'); - * div.style.cssText = 'width: 200px; height: 200px; background: #09c;'; - * document.body.appendChild(div); - * - * const clicks = fromEvent(document, 'click'); - * const [clicksOnDivs, clicksElsewhere] = clicks.pipe(partition(ev => (ev.target).tagName === 'DIV')); - * - * clicksOnDivs.subscribe(x => console.log('DIV clicked: ', x)); - * clicksElsewhere.subscribe(x => console.log('Other clicked: ', x)); - * ``` - * - * @see {@link filter} - * - * @param {function(value: T, index: number): boolean} predicate A function that - * evaluates each value emitted by the source Observable. If it returns `true`, - * the value is emitted on the first Observable in the returned array, if - * `false` the value is emitted on the second Observable in the array. The - * `index` parameter is the number `i` for the i-th source emission that has - * happened since the subscription, starting from the number `0`. - * @param {any} [thisArg] An optional argument to determine the value of `this` - * in the `predicate` function. - * @return A function that returns an array with two Observables: one with - * values that passed the predicate, and another with values that did not pass - * the predicate. - * @deprecated Replaced with the `partition` static creation function. Will be removed in v8. - */ -export declare function partition(predicate: (value: T, index: number) => boolean, thisArg?: any): UnaryFunction, [Observable, Observable]>; -//# sourceMappingURL=partition.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/partition.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/partition.d.ts.map deleted file mode 100644 index 6d9e26c23..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/partition.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"partition.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/partition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACzB,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,EAC/C,OAAO,CAAC,EAAE,GAAG,GACZ,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAG9D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/pluck.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/pluck.d.ts deleted file mode 100644 index cfc757da7..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/pluck.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { OperatorFunction } from '../types'; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export declare function pluck(k1: K1): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export declare function pluck(k1: K1, k2: K2): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export declare function pluck(k1: K1, k2: K2, k3: K3): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export declare function pluck(k1: K1, k2: K2, k3: K3, k4: K4): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export declare function pluck(k1: K1, k2: K2, k3: K3, k4: K4, k5: K5): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export declare function pluck(k1: K1, k2: K2, k3: K3, k4: K4, k5: K5, k6: K6): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export declare function pluck(k1: K1, k2: K2, k3: K3, k4: K4, k5: K5, k6: K6, ...rest: string[]): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export declare function pluck(...properties: string[]): OperatorFunction; -//# sourceMappingURL=pluck.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/pluck.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/pluck.d.ts.map deleted file mode 100644 index 7f7aebd27..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/pluck.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pluck.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/pluck.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,kIAAkI;AAClI,wBAAgB,KAAK,CAAC,CAAC,EAAE,EAAE,SAAS,MAAM,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACjF,kIAAkI;AAClI,wBAAgB,KAAK,CAAC,CAAC,EAAE,EAAE,SAAS,MAAM,CAAC,EAAE,EAAE,SAAS,MAAM,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,kIAAkI;AAClI,wBAAgB,KAAK,CACnB,CAAC,EACD,EAAE,SAAS,MAAM,CAAC,EAClB,EAAE,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,EACtB,EAAE,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAC1B,EAAE,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAC9B,EAAE,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAClC,EAAE,SAAS,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EACtC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AACnG,kIAAkI;AAClI,wBAAgB,KAAK,CAAC,CAAC,EAAE,GAAG,UAAU,EAAE,MAAM,EAAE,GAAG,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publish.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/publish.d.ts deleted file mode 100644 index 89f8324d2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publish.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { Observable } from '../Observable'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -import { OperatorFunction, UnaryFunction, ObservableInput, ObservedValueOf } from '../types'; -/** - * Returns a connectable observable that, when connected, will multicast - * all values through a single underlying {@link Subject} instance. - * - * @deprecated Will be removed in v8. To create a connectable observable, use {@link connectable}. - * `source.pipe(publish())` is equivalent to - * `connectable(source, { connector: () => new Subject(), resetOnDisconnect: false })`. - * If you're using {@link refCount} after `publish`, use {@link share} operator instead. - * `source.pipe(publish(), refCount())` is equivalent to - * `source.pipe(share({ resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }))`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function publish(): UnaryFunction, ConnectableObservable>; -/** - * Returns an observable, that when subscribed to, creates an underlying {@link Subject}, - * provides an observable view of it to a `selector` function, takes the observable result of - * that selector function and subscribes to it, sending its values to the consumer, _then_ connects - * the subject to the original source. - * - * @param selector A function used to setup multicasting prior to automatic connection. - * - * @deprecated Will be removed in v8. Use the {@link connect} operator instead. - * `publish(selector)` is equivalent to `connect(selector)`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function publish>(selector: (shared: Observable) => O): OperatorFunction>; -//# sourceMappingURL=publish.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publish.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/publish.d.ts.map deleted file mode 100644 index 5003ff590..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publish.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/publish.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAA4B,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGvH;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,CAAC,KAAK,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;AAErF;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishBehavior.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishBehavior.d.ts deleted file mode 100644 index 8f3db6c8e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishBehavior.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Observable } from '../Observable'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -import { UnaryFunction } from '../types'; -/** - * Creates a {@link ConnectableObservable} that utilizes a {@link BehaviorSubject}. - * - * @param initialValue The initial value passed to the {@link BehaviorSubject}. - * @return A function that returns a {@link ConnectableObservable} - * @deprecated Will be removed in v8. To create a connectable observable that uses a - * {@link BehaviorSubject} under the hood, use {@link connectable}. - * `source.pipe(publishBehavior(initValue))` is equivalent to - * `connectable(source, { connector: () => new BehaviorSubject(initValue), resetOnDisconnect: false })`. - * If you're using {@link refCount} after `publishBehavior`, use the {@link share} operator instead. - * `source.pipe(publishBehavior(initValue), refCount())` is equivalent to - * `source.pipe(share({ connector: () => new BehaviorSubject(initValue), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }))`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function publishBehavior(initialValue: T): UnaryFunction, ConnectableObservable>; -//# sourceMappingURL=publishBehavior.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishBehavior.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishBehavior.d.ts.map deleted file mode 100644 index 67ecc75bb..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishBehavior.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishBehavior.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/publishBehavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAM1G"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishLast.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishLast.d.ts deleted file mode 100644 index 9c3bc5fce..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishLast.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { Observable } from '../Observable'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -import { UnaryFunction } from '../types'; -/** - * Returns a connectable observable sequence that shares a single subscription to the - * underlying sequence containing only the last notification. - * - * ![](publishLast.png) - * - * Similar to {@link publish}, but it waits until the source observable completes and stores - * the last emitted value. - * Similarly to {@link publishReplay} and {@link publishBehavior}, this keeps storing the last - * value even if it has no more subscribers. If subsequent subscriptions happen, they will - * immediately get that last stored value and complete. - * - * ## Example - * - * ```ts - * import { ConnectableObservable, interval, publishLast, tap, take } from 'rxjs'; - * - * const connectable = >interval(1000) - * .pipe( - * tap(x => console.log('side effect', x)), - * take(3), - * publishLast() - * ); - * - * connectable.subscribe({ - * next: x => console.log('Sub. A', x), - * error: err => console.log('Sub. A Error', err), - * complete: () => console.log('Sub. A Complete') - * }); - * - * connectable.subscribe({ - * next: x => console.log('Sub. B', x), - * error: err => console.log('Sub. B Error', err), - * complete: () => console.log('Sub. B Complete') - * }); - * - * connectable.connect(); - * - * // Results: - * // 'side effect 0' - after one second - * // 'side effect 1' - after two seconds - * // 'side effect 2' - after three seconds - * // 'Sub. A 2' - immediately after 'side effect 2' - * // 'Sub. B 2' - * // 'Sub. A Complete' - * // 'Sub. B Complete' - * ``` - * - * @see {@link ConnectableObservable} - * @see {@link publish} - * @see {@link publishReplay} - * @see {@link publishBehavior} - * - * @return A function that returns an Observable that emits elements of a - * sequence produced by multicasting the source sequence. - * @deprecated Will be removed in v8. To create a connectable observable with an - * {@link AsyncSubject} under the hood, use {@link connectable}. - * `source.pipe(publishLast())` is equivalent to - * `connectable(source, { connector: () => new AsyncSubject(), resetOnDisconnect: false })`. - * If you're using {@link refCount} after `publishLast`, use the {@link share} operator instead. - * `source.pipe(publishLast(), refCount())` is equivalent to - * `source.pipe(share({ connector: () => new AsyncSubject(), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }))`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function publishLast(): UnaryFunction, ConnectableObservable>; -//# sourceMappingURL=publishLast.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishLast.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishLast.d.ts.map deleted file mode 100644 index 387fb9051..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishLast.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishLast.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/publishLast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DG;AACH,wBAAgB,WAAW,CAAC,CAAC,KAAK,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAMvF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishReplay.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishReplay.d.ts deleted file mode 100644 index c44a7376f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishReplay.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { Observable } from '../Observable'; -import { MonoTypeOperatorFunction, OperatorFunction, TimestampProvider, ObservableInput, ObservedValueOf } from '../types'; -/** - * Creates a {@link ConnectableObservable} that uses a {@link ReplaySubject} - * internally. - * - * @param bufferSize The buffer size for the underlying {@link ReplaySubject}. - * @param windowTime The window time for the underlying {@link ReplaySubject}. - * @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}. - * @deprecated Will be removed in v8. To create a connectable observable that uses a - * {@link ReplaySubject} under the hood, use {@link connectable}. - * `source.pipe(publishReplay(size, time, scheduler))` is equivalent to - * `connectable(source, { connector: () => new ReplaySubject(size, time, scheduler), resetOnDisconnect: false })`. - * If you're using {@link refCount} after `publishReplay`, use the {@link share} operator instead. - * `publishReplay(size, time, scheduler), refCount()` is equivalent to - * `share({ connector: () => new ReplaySubject(size, time, scheduler), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function publishReplay(bufferSize?: number, windowTime?: number, timestampProvider?: TimestampProvider): MonoTypeOperatorFunction; -/** - * Creates an observable, that when subscribed to, will create a {@link ReplaySubject}, - * and pass an observable from it (using [asObservable](api/index/class/Subject#asObservable)) to - * the `selector` function, which then returns an observable that is subscribed to before - * "connecting" the source to the internal `ReplaySubject`. - * - * Since this is deprecated, for additional details see the documentation for {@link connect}. - * - * @param bufferSize The buffer size for the underlying {@link ReplaySubject}. - * @param windowTime The window time for the underlying {@link ReplaySubject}. - * @param selector A function used to setup the multicast. - * @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}. - * @deprecated Will be removed in v8. Use the {@link connect} operator instead. - * `source.pipe(publishReplay(size, window, selector, scheduler))` is equivalent to - * `source.pipe(connect(selector, { connector: () => new ReplaySubject(size, window, scheduler) }))`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function publishReplay>(bufferSize: number | undefined, windowTime: number | undefined, selector: (shared: Observable) => O, timestampProvider?: TimestampProvider): OperatorFunction>; -/** - * Creates a {@link ConnectableObservable} that uses a {@link ReplaySubject} - * internally. - * - * @param bufferSize The buffer size for the underlying {@link ReplaySubject}. - * @param windowTime The window time for the underlying {@link ReplaySubject}. - * @param selector Passing `undefined` here determines that this operator will return a {@link ConnectableObservable}. - * @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}. - * @deprecated Will be removed in v8. To create a connectable observable that uses a - * {@link ReplaySubject} under the hood, use {@link connectable}. - * `source.pipe(publishReplay(size, time, scheduler))` is equivalent to - * `connectable(source, { connector: () => new ReplaySubject(size, time, scheduler), resetOnDisconnect: false })`. - * If you're using {@link refCount} after `publishReplay`, use the {@link share} operator instead. - * `publishReplay(size, time, scheduler), refCount()` is equivalent to - * `share({ connector: () => new ReplaySubject(size, time, scheduler), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function publishReplay>(bufferSize: number | undefined, windowTime: number | undefined, selector: undefined, timestampProvider: TimestampProvider): OperatorFunction>; -//# sourceMappingURL=publishReplay.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishReplay.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishReplay.d.ts.map deleted file mode 100644 index 7a48ebc4b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/publishReplay.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"publishReplay.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/publishReplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG3H;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC7B,UAAU,CAAC,EAAE,MAAM,EACnB,UAAU,CAAC,EAAE,MAAM,EACnB,iBAAiB,CAAC,EAAE,iBAAiB,GACpC,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAE/B;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAC7D,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,EACtC,iBAAiB,CAAC,EAAE,iBAAiB,GACpC,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAE3C;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAC7D,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,QAAQ,EAAE,SAAS,EACnB,iBAAiB,EAAE,iBAAiB,GACnC,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/race.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/race.d.ts deleted file mode 100644 index 0aee184b0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/race.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ObservableInputTuple, OperatorFunction } from '../types'; -/** @deprecated Replaced with {@link raceWith}. Will be removed in v8. */ -export declare function race(otherSources: [...ObservableInputTuple]): OperatorFunction; -/** @deprecated Replaced with {@link raceWith}. Will be removed in v8. */ -export declare function race(...otherSources: [...ObservableInputTuple]): OperatorFunction; -//# sourceMappingURL=race.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/race.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/race.d.ts.map deleted file mode 100644 index ca68cb834..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/race.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"race.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/race.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAIlE,yEAAyE;AACzE,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,YAAY,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AACtI,yEAAyE;AACzE,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,YAAY,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/raceWith.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/raceWith.d.ts deleted file mode 100644 index 762f5b3ac..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/raceWith.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { OperatorFunction, ObservableInputTuple } from '../types'; -/** - * Creates an Observable that mirrors the first source Observable to emit a next, - * error or complete notification from the combination of the Observable to which - * the operator is applied and supplied Observables. - * - * ## Example - * - * ```ts - * import { interval, map, raceWith } from 'rxjs'; - * - * const obs1 = interval(7000).pipe(map(() => 'slow one')); - * const obs2 = interval(3000).pipe(map(() => 'fast one')); - * const obs3 = interval(5000).pipe(map(() => 'medium one')); - * - * obs1 - * .pipe(raceWith(obs2, obs3)) - * .subscribe(winner => console.log(winner)); - * - * // Outputs - * // a series of 'fast one' - * ``` - * - * @param otherSources Sources used to race for which Observable emits first. - * @return A function that returns an Observable that mirrors the output of the - * first Observable to emit an item. - */ -export declare function raceWith(...otherSources: [...ObservableInputTuple]): OperatorFunction; -//# sourceMappingURL=raceWith.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/raceWith.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/raceWith.d.ts.map deleted file mode 100644 index 4a64c3b52..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/raceWith.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"raceWith.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/raceWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAKlE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EACtD,GAAG,YAAY,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAC5C,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAMpC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/reduce.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/reduce.d.ts deleted file mode 100644 index 531f333e9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/reduce.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { OperatorFunction } from '../types'; -export declare function reduce(accumulator: (acc: A | V, value: V, index: number) => A): OperatorFunction; -export declare function reduce(accumulator: (acc: A, value: V, index: number) => A, seed: A): OperatorFunction; -export declare function reduce(accumulator: (acc: A | S, value: V, index: number) => A, seed: S): OperatorFunction; -//# sourceMappingURL=reduce.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/reduce.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/reduce.d.ts.map deleted file mode 100644 index 821fe4c2e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/reduce.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reduce.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/reduce.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AACtH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACnH,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/refCount.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/refCount.d.ts deleted file mode 100644 index 300bfbe2e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/refCount.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -/** - * Make a {@link ConnectableObservable} behave like a ordinary observable and automates the way - * you can connect to it. - * - * Internally it counts the subscriptions to the observable and subscribes (only once) to the source if - * the number of subscriptions is larger than 0. If the number of subscriptions is smaller than 1, it - * unsubscribes from the source. This way you can make sure that everything before the *published* - * refCount has only a single subscription independently of the number of subscribers to the target - * observable. - * - * Note that using the {@link share} operator is exactly the same as using the `multicast(() => new Subject())` operator - * (making the observable hot) and the *refCount* operator in a sequence. - * - * ![](refCount.png) - * - * ## Example - * - * In the following example there are two intervals turned into connectable observables - * by using the *publish* operator. The first one uses the *refCount* operator, the - * second one does not use it. You will notice that a connectable observable does nothing - * until you call its connect function. - * - * ```ts - * import { interval, tap, publish, refCount } from 'rxjs'; - * - * // Turn the interval observable into a ConnectableObservable (hot) - * const refCountInterval = interval(400).pipe( - * tap(num => console.log(`refCount ${ num }`)), - * publish(), - * refCount() - * ); - * - * const publishedInterval = interval(400).pipe( - * tap(num => console.log(`publish ${ num }`)), - * publish() - * ); - * - * refCountInterval.subscribe(); - * refCountInterval.subscribe(); - * // 'refCount 0' -----> 'refCount 1' -----> etc - * // All subscriptions will receive the same value and the tap (and - * // every other operator) before the `publish` operator will be executed - * // only once per event independently of the number of subscriptions. - * - * publishedInterval.subscribe(); - * // Nothing happens until you call .connect() on the observable. - * ``` - * - * @return A function that returns an Observable that automates the connection - * to ConnectableObservable. - * @see {@link ConnectableObservable} - * @see {@link share} - * @see {@link publish} - * @deprecated Replaced with the {@link share} operator. How `share` is used - * will depend on the connectable observable you created just prior to the - * `refCount` operator. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export declare function refCount(): MonoTypeOperatorFunction; -//# sourceMappingURL=refCount.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/refCount.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/refCount.d.ts.map deleted file mode 100644 index 51b969385..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/refCount.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"refCount.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/refCount.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAIpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,wBAAgB,QAAQ,CAAC,CAAC,KAAK,wBAAwB,CAAC,CAAC,CAAC,CAsDzD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeat.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeat.d.ts deleted file mode 100644 index 527d532ca..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeat.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -export interface RepeatConfig { - /** - * The number of times to repeat the source. Defaults to `Infinity`. - */ - count?: number; - /** - * If a `number`, will delay the repeat of the source by that number of milliseconds. - * If a function, it will provide the number of times the source has been subscribed to, - * and the return value should be a valid observable input that will notify when the source - * should be repeated. If the notifier observable is empty, the result will complete. - */ - delay?: number | ((count: number) => ObservableInput); -} -/** - * Returns an Observable that will resubscribe to the source stream when the source stream completes. - * - * Repeats all values emitted on the source. It's like {@link retry}, but for non error cases. - * - * ![](repeat.png) - * - * Repeat will output values from a source until the source completes, then it will resubscribe to the - * source a specified number of times, with a specified delay. Repeat can be particularly useful in - * combination with closing operators like {@link take}, {@link takeUntil}, {@link first}, or {@link takeWhile}, - * as it can be used to restart a source again from scratch. - * - * Repeat is very similar to {@link retry}, where {@link retry} will resubscribe to the source in the error case, but - * `repeat` will resubscribe if the source completes. - * - * Note that `repeat` will _not_ catch errors. Use {@link retry} for that. - * - * - `repeat(0)` returns an empty observable - * - `repeat()` will repeat forever - * - `repeat({ delay: 200 })` will repeat forever, with a delay of 200ms between repetitions. - * - `repeat({ count: 2, delay: 400 })` will repeat twice, with a delay of 400ms between repetitions. - * - `repeat({ delay: (count) => timer(count * 1000) })` will repeat forever, but will have a delay that grows by one second for each repetition. - * - * ## Example - * - * Repeat a message stream - * - * ```ts - * import { of, repeat } from 'rxjs'; - * - * const source = of('Repeat message'); - * const result = source.pipe(repeat(3)); - * - * result.subscribe(x => console.log(x)); - * - * // Results - * // 'Repeat message' - * // 'Repeat message' - * // 'Repeat message' - * ``` - * - * Repeat 3 values, 2 times - * - * ```ts - * import { interval, take, repeat } from 'rxjs'; - * - * const source = interval(1000); - * const result = source.pipe(take(3), repeat(2)); - * - * result.subscribe(x => console.log(x)); - * - * // Results every second - * // 0 - * // 1 - * // 2 - * // 0 - * // 1 - * // 2 - * ``` - * - * Defining two complex repeats with delays on the same source. - * Note that the second repeat cannot be called until the first - * repeat as exhausted it's count. - * - * ```ts - * import { defer, of, repeat } from 'rxjs'; - * - * const source = defer(() => { - * return of(`Hello, it is ${new Date()}`) - * }); - * - * source.pipe( - * // Repeat 3 times with a delay of 1 second between repetitions - * repeat({ - * count: 3, - * delay: 1000, - * }), - * - * // *Then* repeat forever, but with an exponential step-back - * // maxing out at 1 minute. - * repeat({ - * delay: (count) => timer(Math.min(60000, 2 ^ count * 1000)) - * }) - * ) - * ``` - * - * @see {@link repeatWhen} - * @see {@link retry} - * - * @param count The number of times the source Observable items are repeated, a count of 0 will yield - * an empty Observable. - */ -export declare function repeat(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction; -//# sourceMappingURL=repeat.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeat.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeat.d.ts.map deleted file mode 100644 index 30aa197e0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeat.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"repeat.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/repeat.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKrE,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,MAAM,KAAK,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;CAC5D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,YAAY,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAwD5F"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeatWhen.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeatWhen.d.ts deleted file mode 100644 index 27bc5d940..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeatWhen.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { Observable } from '../Observable'; -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -/** - * Returns an Observable that mirrors the source Observable with the exception of a `complete`. If the source - * Observable calls `complete`, this method will emit to the Observable returned from `notifier`. If that Observable - * calls `complete` or `error`, then this method will call `complete` or `error` on the child subscription. Otherwise - * this method will resubscribe to the source Observable. - * - * ![](repeatWhen.png) - * - * ## Example - * - * Repeat a message stream on click - * - * ```ts - * import { of, fromEvent, repeatWhen } from 'rxjs'; - * - * const source = of('Repeat message'); - * const documentClick$ = fromEvent(document, 'click'); - * - * const result = source.pipe(repeatWhen(() => documentClick$)); - * - * result.subscribe(data => console.log(data)) - * ``` - * - * @see {@link repeat} - * @see {@link retry} - * @see {@link retryWhen} - * - * @param notifier Function that receives an Observable of notifications with - * which a user can `complete` or `error`, aborting the repetition. - * @return A function that returns an `ObservableInput` that mirrors the source - * Observable with the exception of a `complete`. - * @deprecated Will be removed in v9 or v10. Use {@link repeat}'s {@link RepeatConfig#delay delay} option instead. - * Instead of `repeatWhen(() => notify$)`, use: `repeat({ delay: () => notify$ })`. - */ -export declare function repeatWhen(notifier: (notifications: Observable) => ObservableInput): MonoTypeOperatorFunction; -//# sourceMappingURL=repeatWhen.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeatWhen.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeatWhen.d.ts.map deleted file mode 100644 index ca913088a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/repeatWhen.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"repeatWhen.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/repeatWhen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,aAAa,EAAE,UAAU,CAAC,IAAI,CAAC,KAAK,eAAe,CAAC,GAAG,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAiF9H"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/retry.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/retry.d.ts deleted file mode 100644 index d5afb0c79..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/retry.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -/** - * The {@link retry} operator configuration object. `retry` either accepts a `number` - * or an object described by this interface. - */ -export interface RetryConfig { - /** - * The maximum number of times to retry. If `count` is omitted, `retry` will try to - * resubscribe on errors infinite number of times. - */ - count?: number; - /** - * The number of milliseconds to delay before retrying, OR a function to - * return a notifier for delaying. If a function is given, that function should - * return a notifier that, when it emits will retry the source. If the notifier - * completes _without_ emitting, the resulting observable will complete without error, - * if the notifier errors, the error will be pushed to the result. - */ - delay?: number | ((error: any, retryCount: number) => ObservableInput); - /** - * Whether or not to reset the retry counter when the retried subscription - * emits its first value. - */ - resetOnSuccess?: boolean; -} -export declare function retry(count?: number): MonoTypeOperatorFunction; -export declare function retry(config: RetryConfig): MonoTypeOperatorFunction; -//# sourceMappingURL=retry.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/retry.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/retry.d.ts.map deleted file mode 100644 index 08890eeb8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/retry.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"retry.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/retry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQrE;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,KAAK,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5E;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AACtE,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/retryWhen.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/retryWhen.d.ts deleted file mode 100644 index 614bc8636..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/retryWhen.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { Observable } from '../Observable'; -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -/** - * Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable - * calls `error`, this method will emit the Throwable that caused the error to the `ObservableInput` returned from `notifier`. - * If that Observable calls `complete` or `error` then this method will call `complete` or `error` on the child - * subscription. Otherwise this method will resubscribe to the source Observable. - * - * ![](retryWhen.png) - * - * Retry an observable sequence on error based on custom criteria. - * - * ## Example - * - * ```ts - * import { interval, map, retryWhen, tap, delayWhen, timer } from 'rxjs'; - * - * const source = interval(1000); - * const result = source.pipe( - * map(value => { - * if (value > 5) { - * // error will be picked up by retryWhen - * throw value; - * } - * return value; - * }), - * retryWhen(errors => - * errors.pipe( - * // log error message - * tap(value => console.log(`Value ${ value } was too high!`)), - * // restart in 5 seconds - * delayWhen(value => timer(value * 1000)) - * ) - * ) - * ); - * - * result.subscribe(value => console.log(value)); - * - * // results: - * // 0 - * // 1 - * // 2 - * // 3 - * // 4 - * // 5 - * // 'Value 6 was too high!' - * // - Wait 5 seconds then repeat - * ``` - * - * @see {@link retry} - * - * @param notifier Function that receives an Observable of notifications with which a - * user can `complete` or `error`, aborting the retry. - * @return A function that returns an `ObservableInput` that mirrors the source - * Observable with the exception of an `error`. - * @deprecated Will be removed in v9 or v10, use {@link retry}'s `delay` option instead. - * Will be removed in v9 or v10. Use {@link retry}'s {@link RetryConfig#delay delay} option instead. - * Instead of `retryWhen(() => notify$)`, use: `retry({ delay: () => notify$ })`. - */ -export declare function retryWhen(notifier: (errors: Observable) => ObservableInput): MonoTypeOperatorFunction; -//# sourceMappingURL=retryWhen.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/retryWhen.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/retryWhen.d.ts.map deleted file mode 100644 index a4b5b3217..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/retryWhen.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"retryWhen.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/retryWhen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAK3C,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAIrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,KAAK,eAAe,CAAC,GAAG,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CA8CrH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sample.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/sample.d.ts deleted file mode 100644 index 384026697..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sample.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -/** - * Emits the most recently emitted value from the source Observable whenever - * another Observable, the `notifier`, emits. - * - * It's like {@link sampleTime}, but samples whenever - * the `notifier` `ObservableInput` emits something. - * - * ![](sample.png) - * - * Whenever the `notifier` `ObservableInput` emits a value, `sample` - * looks at the source Observable and emits whichever value it has most recently - * emitted since the previous sampling, unless the source has not emitted - * anything since the previous sampling. The `notifier` is subscribed to as soon - * as the output Observable is subscribed. - * - * ## Example - * - * On every click, sample the most recent `seconds` timer - * - * ```ts - * import { fromEvent, interval, sample } from 'rxjs'; - * - * const seconds = interval(1000); - * const clicks = fromEvent(document, 'click'); - * const result = seconds.pipe(sample(clicks)); - * - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link audit} - * @see {@link debounce} - * @see {@link sampleTime} - * @see {@link throttle} - * - * @param notifier The `ObservableInput` to use for sampling the - * source Observable. - * @return A function that returns an Observable that emits the results of - * sampling the values emitted by the source Observable whenever the notifier - * Observable emits value or completes. - */ -export declare function sample(notifier: ObservableInput): MonoTypeOperatorFunction; -//# sourceMappingURL=sample.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sample.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/sample.d.ts.map deleted file mode 100644 index 51a926b58..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sample.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sample.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/sample.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe,CAAC,GAAG,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAyBrF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sampleTime.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/sampleTime.d.ts deleted file mode 100644 index 790a3da8e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sampleTime.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -/** - * Emits the most recently emitted value from the source Observable within - * periodic time intervals. - * - * Samples the source Observable at periodic time - * intervals, emitting what it samples. - * - * ![](sampleTime.png) - * - * `sampleTime` periodically looks at the source Observable and emits whichever - * value it has most recently emitted since the previous sampling, unless the - * source has not emitted anything since the previous sampling. The sampling - * happens periodically in time every `period` milliseconds (or the time unit - * defined by the optional `scheduler` argument). The sampling starts as soon as - * the output Observable is subscribed. - * - * ## Example - * - * Every second, emit the most recent click at most once - * - * ```ts - * import { fromEvent, sampleTime } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(sampleTime(1000)); - * - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link auditTime} - * @see {@link debounceTime} - * @see {@link delay} - * @see {@link sample} - * @see {@link throttleTime} - * - * @param {number} period The sampling period expressed in milliseconds or the - * time unit determined internally by the optional `scheduler`. - * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for - * managing the timers that handle the sampling. - * @return A function that returns an Observable that emits the results of - * sampling the values emitted by the source Observable at the specified time - * interval. - */ -export declare function sampleTime(period: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction; -//# sourceMappingURL=sampleTime.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sampleTime.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/sampleTime.d.ts.map deleted file mode 100644 index 6840b29b5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sampleTime.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sampleTime.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/sampleTime.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAInE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,GAAE,aAA8B,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAEpH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/scan.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/scan.d.ts deleted file mode 100644 index 97a915204..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/scan.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { OperatorFunction } from '../types'; -export declare function scan(accumulator: (acc: A | V, value: V, index: number) => A): OperatorFunction; -export declare function scan(accumulator: (acc: A, value: V, index: number) => A, seed: A): OperatorFunction; -export declare function scan(accumulator: (acc: A | S, value: V, index: number) => A, seed: S): OperatorFunction; -//# sourceMappingURL=scan.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/scan.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/scan.d.ts.map deleted file mode 100644 index 52ba32d1c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/scan.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/scan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AACpH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACjH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/scanInternals.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/scanInternals.d.ts deleted file mode 100644 index 2adae3bf2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/scanInternals.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscriber } from '../Subscriber'; -/** - * A basic scan operation. This is used for `scan` and `reduce`. - * @param accumulator The accumulator to use - * @param seed The seed value for the state to accumulate - * @param hasSeed Whether or not a seed was provided - * @param emitOnNext Whether or not to emit the state on next - * @param emitBeforeComplete Whether or not to emit the before completion - */ -export declare function scanInternals(accumulator: (acc: V | A | S, value: V, index: number) => A, seed: S, hasSeed: boolean, emitOnNext: boolean, emitBeforeComplete?: undefined | true): (source: Observable, subscriber: Subscriber) => void; -//# sourceMappingURL=scanInternals.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/scanInternals.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/scanInternals.d.ts.map deleted file mode 100644 index c810abedc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/scanInternals.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scanInternals.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/scanInternals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C;;;;;;;GAOG;AAEH,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EACnC,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EAC3D,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,OAAO,EACnB,kBAAkB,CAAC,EAAE,SAAS,GAAG,IAAI,YAErB,WAAW,CAAC,CAAC,cAAc,WAAW,GAAG,CAAC,UAyC3D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sequenceEqual.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/sequenceEqual.d.ts deleted file mode 100644 index f479615fc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sequenceEqual.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { OperatorFunction, ObservableInput } from '../types'; -/** - * Compares all values of two observables in sequence using an optional comparator function - * and returns an observable of a single boolean value representing whether or not the two sequences - * are equal. - * - * Checks to see of all values emitted by both observables are equal, in order. - * - * ![](sequenceEqual.png) - * - * `sequenceEqual` subscribes to source observable and `compareTo` `ObservableInput` (that internally - * gets converted to an observable) and buffers incoming values from each observable. Whenever either - * observable emits a value, the value is buffered and the buffers are shifted and compared from the bottom - * up; If any value pair doesn't match, the returned observable will emit `false` and complete. If one of the - * observables completes, the operator will wait for the other observable to complete; If the other - * observable emits before completing, the returned observable will emit `false` and complete. If one observable never - * completes or emits after the other completes, the returned observable will never complete. - * - * ## Example - * - * Figure out if the Konami code matches - * - * ```ts - * import { from, fromEvent, map, bufferCount, mergeMap, sequenceEqual } from 'rxjs'; - * - * const codes = from([ - * 'ArrowUp', - * 'ArrowUp', - * 'ArrowDown', - * 'ArrowDown', - * 'ArrowLeft', - * 'ArrowRight', - * 'ArrowLeft', - * 'ArrowRight', - * 'KeyB', - * 'KeyA', - * 'Enter', // no start key, clearly. - * ]); - * - * const keys = fromEvent(document, 'keyup').pipe(map(e => e.code)); - * const matches = keys.pipe( - * bufferCount(11, 1), - * mergeMap(last11 => from(last11).pipe(sequenceEqual(codes))) - * ); - * matches.subscribe(matched => console.log('Successful cheat at Contra? ', matched)); - * ``` - * - * @see {@link combineLatest} - * @see {@link zip} - * @see {@link withLatestFrom} - * - * @param compareTo The `ObservableInput` sequence to compare the source sequence to. - * @param comparator An optional function to compare each value pair. - * - * @return A function that returns an Observable that emits a single boolean - * value representing whether or not the values emitted by the source - * Observable and provided `ObservableInput` were equal in sequence. - */ -export declare function sequenceEqual(compareTo: ObservableInput, comparator?: (a: T, b: T) => boolean): OperatorFunction; -//# sourceMappingURL=sequenceEqual.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sequenceEqual.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/sequenceEqual.d.ts.map deleted file mode 100644 index 061182c49..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/sequenceEqual.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sequenceEqual.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/sequenceEqual.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAK7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC7B,SAAS,EAAE,eAAe,CAAC,CAAC,CAAC,EAC7B,UAAU,GAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,OAA2B,GACtD,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CA2D9B"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/share.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/share.d.ts deleted file mode 100644 index 43b9edd2f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/share.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { MonoTypeOperatorFunction, SubjectLike, ObservableInput } from '../types'; -export interface ShareConfig { - /** - * The factory used to create the subject that will connect the source observable to - * multicast consumers. - */ - connector?: () => SubjectLike; - /** - * If `true`, the resulting observable will reset internal state on error from source and return to a "cold" state. This - * allows the resulting observable to be "retried" in the event of an error. - * If `false`, when an error comes from the source it will push the error into the connecting subject, and the subject - * will remain the connecting subject, meaning the resulting observable will not go "cold" again, and subsequent retries - * or resubscriptions will resubscribe to that same subject. In all cases, RxJS subjects will emit the same error again, however - * {@link ReplaySubject} will also push its buffered values before pushing the error. - * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained - * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets. - */ - resetOnError?: boolean | ((error: any) => ObservableInput); - /** - * If `true`, the resulting observable will reset internal state on completion from source and return to a "cold" state. This - * allows the resulting observable to be "repeated" after it is done. - * If `false`, when the source completes, it will push the completion through the connecting subject, and the subject - * will remain the connecting subject, meaning the resulting observable will not go "cold" again, and subsequent repeats - * or resubscriptions will resubscribe to that same subject. - * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained - * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets. - */ - resetOnComplete?: boolean | (() => ObservableInput); - /** - * If `true`, when the number of subscribers to the resulting observable reaches zero due to those subscribers unsubscribing, the - * internal state will be reset and the resulting observable will return to a "cold" state. This means that the next - * time the resulting observable is subscribed to, a new subject will be created and the source will be subscribed to - * again. - * If `false`, when the number of subscribers to the resulting observable reaches zero due to unsubscription, the subject - * will remain connected to the source, and new subscriptions to the result will be connected through that same subject. - * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained - * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets. - */ - resetOnRefCountZero?: boolean | (() => ObservableInput); -} -export declare function share(): MonoTypeOperatorFunction; -export declare function share(options: ShareConfig): MonoTypeOperatorFunction; -//# sourceMappingURL=share.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/share.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/share.d.ts.map deleted file mode 100644 index ad8ff9eb8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/share.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"share.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/share.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGlF,MAAM,WAAW,WAAW,CAAC,CAAC;IAC5B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,WAAW,CAAC,CAAC,CAAC,CAAC;IACjC;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IAChE;;;;;;;;OAQG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IACzD;;;;;;;;;OASG;IACH,mBAAmB,CAAC,EAAE,OAAO,GAAG,CAAC,MAAM,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;CAC9D;AAED,wBAAgB,KAAK,CAAC,CAAC,KAAK,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAExD,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/shareReplay.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/shareReplay.d.ts deleted file mode 100644 index 334390866..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/shareReplay.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -export interface ShareReplayConfig { - bufferSize?: number; - windowTime?: number; - refCount: boolean; - scheduler?: SchedulerLike; -} -export declare function shareReplay(config: ShareReplayConfig): MonoTypeOperatorFunction; -export declare function shareReplay(bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction; -//# sourceMappingURL=shareReplay.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/shareReplay.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/shareReplay.d.ts.map deleted file mode 100644 index 55b8fcb20..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/shareReplay.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shareReplay.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/shareReplay.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGnE,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,aAAa,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,EAAE,iBAAiB,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AACvF,wBAAgB,WAAW,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/single.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/single.d.ts deleted file mode 100644 index bcdf63b31..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/single.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Observable } from '../Observable'; -import { MonoTypeOperatorFunction, OperatorFunction, TruthyTypesOf } from '../types'; -export declare function single(predicate: BooleanConstructor): OperatorFunction>; -export declare function single(predicate?: (value: T, index: number, source: Observable) => boolean): MonoTypeOperatorFunction; -//# sourceMappingURL=single.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/single.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/single.d.ts.map deleted file mode 100644 index da32ebd13..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/single.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"single.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/single.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMrF,wBAAgB,MAAM,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAChG,wBAAgB,MAAM,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,OAAO,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skip.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/skip.d.ts deleted file mode 100644 index 9960d039b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skip.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -/** - * Returns an Observable that skips the first `count` items emitted by the source Observable. - * - * ![](skip.png) - * - * Skips the values until the sent notifications are equal or less than provided skip count. It raises - * an error if skip count is equal or more than the actual number of emits and source raises an error. - * - * ## Example - * - * Skip the values before the emission - * - * ```ts - * import { interval, skip } from 'rxjs'; - * - * // emit every half second - * const source = interval(500); - * // skip the first 10 emitted values - * const result = source.pipe(skip(10)); - * - * result.subscribe(value => console.log(value)); - * // output: 10...11...12...13... - * ``` - * - * @see {@link last} - * @see {@link skipWhile} - * @see {@link skipUntil} - * @see {@link skipLast} - * - * @param {Number} count - The number of times, items emitted by source Observable should be skipped. - * @return A function that returns an Observable that skips the first `count` - * values emitted by the source Observable. - */ -export declare function skip(count: number): MonoTypeOperatorFunction; -//# sourceMappingURL=skip.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skip.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/skip.d.ts.map deleted file mode 100644 index 5855c40e3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skip.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skip.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/skip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAGpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAElE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipLast.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipLast.d.ts deleted file mode 100644 index 0e84709c3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipLast.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -/** - * Skip a specified number of values before the completion of an observable. - * - * ![](skipLast.png) - * - * Returns an observable that will emit values as soon as it can, given a number of - * skipped values. For example, if you `skipLast(3)` on a source, when the source - * emits its fourth value, the first value the source emitted will finally be emitted - * from the returned observable, as it is no longer part of what needs to be skipped. - * - * All values emitted by the result of `skipLast(N)` will be delayed by `N` emissions, - * as each value is held in a buffer until enough values have been emitted that that - * the buffered value may finally be sent to the consumer. - * - * After subscribing, unsubscribing will not result in the emission of the buffered - * skipped values. - * - * ## Example - * - * Skip the last 2 values of an observable with many values - * - * ```ts - * import { of, skipLast } from 'rxjs'; - * - * const numbers = of(1, 2, 3, 4, 5); - * const skipLastTwo = numbers.pipe(skipLast(2)); - * skipLastTwo.subscribe(x => console.log(x)); - * - * // Results in: - * // 1 2 3 - * // (4 and 5 are skipped) - * ``` - * - * @see {@link skip} - * @see {@link skipUntil} - * @see {@link skipWhile} - * @see {@link take} - * - * @param skipCount Number of elements to skip from the end of the source Observable. - * @return A function that returns an Observable that skips the last `count` - * values emitted by the source Observable. - */ -export declare function skipLast(skipCount: number): MonoTypeOperatorFunction; -//# sourceMappingURL=skipLast.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipLast.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipLast.d.ts.map deleted file mode 100644 index 1195f43fd..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipLast.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipLast.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/skipLast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAKpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,MAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CA+C1E"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipUntil.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipUntil.d.ts deleted file mode 100644 index caf1f5a18..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipUntil.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -/** - * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item. - * - * The `skipUntil` operator causes the observable stream to skip the emission of values until the passed in observable - * emits the first value. This can be particularly useful in combination with user interactions, responses of HTTP - * requests or waiting for specific times to pass by. - * - * ![](skipUntil.png) - * - * Internally, the `skipUntil` operator subscribes to the passed in `notifier` `ObservableInput` (which gets converted - * to an Observable) in order to recognize the emission of its first value. When `notifier` emits next, the operator - * unsubscribes from it and starts emitting the values of the *source* observable until it completes or errors. It - * will never let the *source* observable emit any values if the `notifier` completes or throws an error without - * emitting a value before. - * - * ## Example - * - * In the following example, all emitted values of the interval observable are skipped until the user clicks anywhere - * within the page - * - * ```ts - * import { interval, fromEvent, skipUntil } from 'rxjs'; - * - * const intervalObservable = interval(1000); - * const click = fromEvent(document, 'click'); - * - * const emitAfterClick = intervalObservable.pipe( - * skipUntil(click) - * ); - * // clicked at 4.6s. output: 5...6...7...8........ or - * // clicked at 7.3s. output: 8...9...10..11....... - * emitAfterClick.subscribe(value => console.log(value)); - * ``` - * - * @see {@link last} - * @see {@link skip} - * @see {@link skipWhile} - * @see {@link skipLast} - * - * @param notifier An `ObservableInput` that has to emit an item before the source Observable elements begin to - * be mirrored by the resulting Observable. - * @return A function that returns an Observable that skips items from the - * source Observable until the `notifier` Observable emits an item, then emits the - * remaining items. - */ -export declare function skipUntil(notifier: ObservableInput): MonoTypeOperatorFunction; -//# sourceMappingURL=skipUntil.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipUntil.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipUntil.d.ts.map deleted file mode 100644 index 169f0f4a2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipUntil.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipUntil.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/skipUntil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAMrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe,CAAC,GAAG,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAiBxF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipWhile.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipWhile.d.ts deleted file mode 100644 index dc78d67a6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipWhile.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Falsy, MonoTypeOperatorFunction, OperatorFunction } from '../types'; -export declare function skipWhile(predicate: BooleanConstructor): OperatorFunction extends never ? never : T>; -export declare function skipWhile(predicate: (value: T, index: number) => true): OperatorFunction; -export declare function skipWhile(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction; -//# sourceMappingURL=skipWhile.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipWhile.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipWhile.d.ts.map deleted file mode 100644 index eac8c09d8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/skipWhile.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"skipWhile.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/skipWhile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI7E,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,EAAE,KAAK,CAAC,SAAS,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC;AAC9H,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,gBAAgB,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AACvG,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/startWith.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/startWith.d.ts deleted file mode 100644 index 8956a4cd9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/startWith.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { OperatorFunction, SchedulerLike, ValueFromArray } from '../types'; -export declare function startWith(value: null): OperatorFunction; -export declare function startWith(value: undefined): OperatorFunction; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export declare function startWith(...valuesAndScheduler: [...A, SchedulerLike]): OperatorFunction>; -export declare function startWith(...values: A): OperatorFunction>; -//# sourceMappingURL=startWith.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/startWith.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/startWith.d.ts.map deleted file mode 100644 index f86a11795..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/startWith.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"startWith.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/startWith.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAS3E,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;AACzE,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,CAAC;AAEnF,8JAA8J;AAC9J,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,GAAG,CAAC,EAAE,EAC7D,GAAG,kBAAkB,EAAE,CAAC,GAAG,CAAC,EAAE,aAAa,CAAC,GAC3C,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9C,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,GAAG,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/subscribeOn.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/subscribeOn.d.ts deleted file mode 100644 index b17f2d9c6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/subscribeOn.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -/** - * Asynchronously subscribes Observers to this Observable on the specified {@link SchedulerLike}. - * - * With `subscribeOn` you can decide what type of scheduler a specific Observable will be using when it is subscribed to. - * - * Schedulers control the speed and order of emissions to observers from an Observable stream. - * - * ![](subscribeOn.png) - * - * ## Example - * - * Given the following code: - * - * ```ts - * import { of, merge } from 'rxjs'; - * - * const a = of(1, 2, 3); - * const b = of(4, 5, 6); - * - * merge(a, b).subscribe(console.log); - * - * // Outputs - * // 1 - * // 2 - * // 3 - * // 4 - * // 5 - * // 6 - * ``` - * - * Both Observable `a` and `b` will emit their values directly and synchronously once they are subscribed to. - * - * If we instead use the `subscribeOn` operator declaring that we want to use the {@link asyncScheduler} for values emitted by Observable `a`: - * - * ```ts - * import { of, subscribeOn, asyncScheduler, merge } from 'rxjs'; - * - * const a = of(1, 2, 3).pipe(subscribeOn(asyncScheduler)); - * const b = of(4, 5, 6); - * - * merge(a, b).subscribe(console.log); - * - * // Outputs - * // 4 - * // 5 - * // 6 - * // 1 - * // 2 - * // 3 - * ``` - * - * The reason for this is that Observable `b` emits its values directly and synchronously like before - * but the emissions from `a` are scheduled on the event loop because we are now using the {@link asyncScheduler} for that specific Observable. - * - * @param scheduler The {@link SchedulerLike} to perform subscription actions on. - * @param delay A delay to pass to the scheduler to delay subscriptions - * @return A function that returns an Observable modified so that its - * subscriptions happen on the specified {@link SchedulerLike}. - */ -export declare function subscribeOn(scheduler: SchedulerLike, delay?: number): MonoTypeOperatorFunction; -//# sourceMappingURL=subscribeOn.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/subscribeOn.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/subscribeOn.d.ts.map deleted file mode 100644 index 904061ccc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/subscribeOn.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subscribeOn.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/subscribeOn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0DG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,KAAK,GAAE,MAAU,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAIvG"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchAll.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchAll.d.ts deleted file mode 100644 index 816da0dee..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchAll.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { OperatorFunction, ObservableInput, ObservedValueOf } from '../types'; -/** - * Converts a higher-order Observable into a first-order Observable - * producing values only from the most recent observable sequence - * - * Flattens an Observable-of-Observables. - * - * ![](switchAll.png) - * - * `switchAll` subscribes to a source that is an observable of observables, also known as a - * "higher-order observable" (or `Observable>`). It subscribes to the most recently - * provided "inner observable" emitted by the source, unsubscribing from any previously subscribed - * to inner observable, such that only the most recent inner observable may be subscribed to at - * any point in time. The resulting observable returned by `switchAll` will only complete if the - * source observable completes, *and* any currently subscribed to inner observable also has completed, - * if there are any. - * - * ## Examples - * - * Spawn a new interval observable for each click event, but for every new - * click, cancel the previous interval and subscribe to the new one - * - * ```ts - * import { fromEvent, tap, map, interval, switchAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click').pipe(tap(() => console.log('click'))); - * const source = clicks.pipe(map(() => interval(1000))); - * - * source - * .pipe(switchAll()) - * .subscribe(x => console.log(x)); - * - * // Output - * // click - * // 0 - * // 1 - * // 2 - * // 3 - * // ... - * // click - * // 0 - * // 1 - * // 2 - * // ... - * // click - * // ... - * ``` - * - * @see {@link combineLatestAll} - * @see {@link concatAll} - * @see {@link exhaustAll} - * @see {@link switchMap} - * @see {@link switchMapTo} - * @see {@link mergeAll} - * - * @return A function that returns an Observable that converts a higher-order - * Observable into a first-order Observable producing values only from the most - * recent Observable sequence. - */ -export declare function switchAll>(): OperatorFunction>; -//# sourceMappingURL=switchAll.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchAll.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchAll.d.ts.map deleted file mode 100644 index 918167987..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchAll.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchAll.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/switchAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI9E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,KAAK,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAEnG"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMap.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMap.d.ts deleted file mode 100644 index 86de39d04..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMap.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -export declare function switchMap>(project: (value: T, index: number) => O): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function switchMap>(project: (value: T, index: number) => O, resultSelector: undefined): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function switchMap>(project: (value: T, index: number) => O, resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R): OperatorFunction; -//# sourceMappingURL=switchMap.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMap.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMap.d.ts.map deleted file mode 100644 index 81016e7f6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMap.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchMap.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/switchMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAM9E,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EACzD,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,GACtC,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3C,0JAA0J;AAC1J,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EACzD,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EACvC,cAAc,EAAE,SAAS,GACxB,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC3C,0JAA0J;AAC1J,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAC5D,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EACvC,cAAc,EAAE,CAAC,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC,GAC3G,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMapTo.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMapTo.d.ts deleted file mode 100644 index 3f16734d6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMapTo.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -/** @deprecated Will be removed in v9. Use {@link switchMap} instead: `switchMap(() => result)` */ -export declare function switchMapTo>(observable: O): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function switchMapTo>(observable: O, resultSelector: undefined): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export declare function switchMapTo>(observable: O, resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R): OperatorFunction; -//# sourceMappingURL=switchMapTo.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMapTo.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMapTo.d.ts.map deleted file mode 100644 index 1073190c1..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchMapTo.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchMapTo.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/switchMapTo.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAG9E,kGAAkG;AAClG,wBAAgB,WAAW,CAAC,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,GAAG,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9H,0JAA0J;AAC1J,wBAAgB,WAAW,CAAC,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EAC5D,UAAU,EAAE,CAAC,EACb,cAAc,EAAE,SAAS,GACxB,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;AACjD,0JAA0J;AAC1J,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,EAClE,UAAU,EAAE,CAAC,EACb,cAAc,EAAE,CAAC,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC,GAC3G,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchScan.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchScan.d.ts deleted file mode 100644 index a36e19695..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchScan.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { ObservableInput, ObservedValueOf, OperatorFunction } from '../types'; -/** - * Applies an accumulator function over the source Observable where the - * accumulator function itself returns an Observable, emitting values - * only from the most recently returned Observable. - * - * It's like {@link mergeScan}, but only the most recent - * Observable returned by the accumulator is merged into the outer Observable. - * - * @see {@link scan} - * @see {@link mergeScan} - * @see {@link switchMap} - * - * @param accumulator - * The accumulator function called on each source value. - * @param seed The initial accumulation value. - * @return A function that returns an observable of the accumulated values. - */ -export declare function switchScan>(accumulator: (acc: R, value: T, index: number) => O, seed: R): OperatorFunction>; -//# sourceMappingURL=switchScan.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchScan.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchScan.d.ts.map deleted file mode 100644 index 7dd464b61..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/switchScan.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"switchScan.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/switchScan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAM9E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,GAAG,CAAC,EAC7D,WAAW,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EACnD,IAAI,EAAE,CAAC,GACN,gBAAgB,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,CAuBzC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/take.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/take.d.ts deleted file mode 100644 index f9a8ef9ed..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/take.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -/** - * Emits only the first `count` values emitted by the source Observable. - * - * Takes the first `count` values from the source, then - * completes. - * - * ![](take.png) - * - * `take` returns an Observable that emits only the first `count` values emitted - * by the source Observable. If the source emits fewer than `count` values then - * all of its values are emitted. After that, it completes, regardless if the - * source completes. - * - * ## Example - * - * Take the first 5 seconds of an infinite 1-second interval Observable - * - * ```ts - * import { interval, take } from 'rxjs'; - * - * const intervalCount = interval(1000); - * const takeFive = intervalCount.pipe(take(5)); - * takeFive.subscribe(x => console.log(x)); - * - * // Logs: - * // 0 - * // 1 - * // 2 - * // 3 - * // 4 - * ``` - * - * @see {@link takeLast} - * @see {@link takeUntil} - * @see {@link takeWhile} - * @see {@link skip} - * - * @param count The maximum number of `next` values to emit. - * @return A function that returns an Observable that emits only the first - * `count` values emitted by the source Observable, or all of the values from - * the source if the source emits fewer than `count` values. - */ -export declare function take(count: number): MonoTypeOperatorFunction; -//# sourceMappingURL=take.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/take.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/take.d.ts.map deleted file mode 100644 index bebe575a9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/take.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"take.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/take.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAKpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAuBlE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeLast.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeLast.d.ts deleted file mode 100644 index e5c99ad6f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeLast.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -/** - * Waits for the source to complete, then emits the last N values from the source, - * as specified by the `count` argument. - * - * ![](takeLast.png) - * - * `takeLast` results in an observable that will hold values up to `count` values in memory, - * until the source completes. It then pushes all values in memory to the consumer, in the - * order they were received from the source, then notifies the consumer that it is - * complete. - * - * If for some reason the source completes before the `count` supplied to `takeLast` is reached, - * all values received until that point are emitted, and then completion is notified. - * - * **Warning**: Using `takeLast` with an observable that never completes will result - * in an observable that never emits a value. - * - * ## Example - * - * Take the last 3 values of an Observable with many values - * - * ```ts - * import { range, takeLast } from 'rxjs'; - * - * const many = range(1, 100); - * const lastThree = many.pipe(takeLast(3)); - * lastThree.subscribe(x => console.log(x)); - * ``` - * - * @see {@link take} - * @see {@link takeUntil} - * @see {@link takeWhile} - * @see {@link skip} - * - * @param count The maximum number of values to emit from the end of - * the sequence of values emitted by the source Observable. - * @return A function that returns an Observable that emits at most the last - * `count` values emitted by the source Observable. - */ -export declare function takeLast(count: number): MonoTypeOperatorFunction; -//# sourceMappingURL=takeLast.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeLast.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeLast.d.ts.map deleted file mode 100644 index e1140f9e9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeLast.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeLast.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/takeLast.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAIpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAoCtE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeUntil.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeUntil.d.ts deleted file mode 100644 index ab6df8acc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeUntil.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -/** - * Emits the values emitted by the source Observable until a `notifier` - * Observable emits a value. - * - * Lets values pass until a second Observable, - * `notifier`, emits a value. Then, it completes. - * - * ![](takeUntil.png) - * - * `takeUntil` subscribes and begins mirroring the source Observable. It also - * monitors a second Observable, `notifier` that you provide. If the `notifier` - * emits a value, the output Observable stops mirroring the source Observable - * and completes. If the `notifier` doesn't emit any value and completes - * then `takeUntil` will pass all values. - * - * ## Example - * - * Tick every second until the first click happens - * - * ```ts - * import { interval, fromEvent, takeUntil } from 'rxjs'; - * - * const source = interval(1000); - * const clicks = fromEvent(document, 'click'); - * const result = source.pipe(takeUntil(clicks)); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link take} - * @see {@link takeLast} - * @see {@link takeWhile} - * @see {@link skip} - * - * @param {Observable} notifier The Observable whose first emitted value will - * cause the output Observable of `takeUntil` to stop emitting values from the - * source Observable. - * @return A function that returns an Observable that emits the values from the - * source Observable until `notifier` emits its first value. - */ -export declare function takeUntil(notifier: ObservableInput): MonoTypeOperatorFunction; -//# sourceMappingURL=takeUntil.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeUntil.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeUntil.d.ts.map deleted file mode 100644 index 350d6aae1..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeUntil.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeUntil.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/takeUntil.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAMrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe,CAAC,GAAG,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAKxF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeWhile.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeWhile.d.ts deleted file mode 100644 index 543137281..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeWhile.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types'; -export declare function takeWhile(predicate: BooleanConstructor, inclusive: true): MonoTypeOperatorFunction; -export declare function takeWhile(predicate: BooleanConstructor, inclusive: false): OperatorFunction>; -export declare function takeWhile(predicate: BooleanConstructor): OperatorFunction>; -export declare function takeWhile(predicate: (value: T, index: number) => value is S): OperatorFunction; -export declare function takeWhile(predicate: (value: T, index: number) => value is S, inclusive: false): OperatorFunction; -export declare function takeWhile(predicate: (value: T, index: number) => boolean, inclusive?: boolean): MonoTypeOperatorFunction; -//# sourceMappingURL=takeWhile.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeWhile.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeWhile.d.ts.map deleted file mode 100644 index fd4e11da0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/takeWhile.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"takeWhile.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/takeWhile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAIrF,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,SAAS,EAAE,IAAI,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAC1G,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,SAAS,EAAE,KAAK,GAAG,gBAAgB,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AACrH,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,kBAAkB,GAAG,gBAAgB,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AACnG,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,IAAI,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACtH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,KAAK,IAAI,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACxI,wBAAgB,SAAS,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,EAAE,SAAS,CAAC,EAAE,OAAO,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/tap.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/tap.d.ts deleted file mode 100644 index 349032a01..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/tap.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { MonoTypeOperatorFunction, Observer } from '../types'; -/** - * An extension to the {@link Observer} interface used only by the {@link tap} operator. - * - * It provides a useful set of callbacks a user can register to do side-effects in - * cases other than what the usual {@link Observer} callbacks are - * ({@link guide/glossary-and-semantics#next next}, - * {@link guide/glossary-and-semantics#error error} and/or - * {@link guide/glossary-and-semantics#complete complete}). - * - * ## Example - * - * ```ts - * import { fromEvent, switchMap, tap, interval, take } from 'rxjs'; - * - * const source$ = fromEvent(document, 'click'); - * const result$ = source$.pipe( - * switchMap((_, i) => i % 2 === 0 - * ? fromEvent(document, 'mousemove').pipe( - * tap({ - * subscribe: () => console.log('Subscribed to the mouse move events after click #' + i), - * unsubscribe: () => console.log('Mouse move events #' + i + ' unsubscribed'), - * finalize: () => console.log('Mouse move events #' + i + ' finalized') - * }) - * ) - * : interval(1_000).pipe( - * take(5), - * tap({ - * subscribe: () => console.log('Subscribed to the 1-second interval events after click #' + i), - * unsubscribe: () => console.log('1-second interval events #' + i + ' unsubscribed'), - * finalize: () => console.log('1-second interval events #' + i + ' finalized') - * }) - * ) - * ) - * ); - * - * const subscription = result$.subscribe({ - * next: console.log - * }); - * - * setTimeout(() => { - * console.log('Unsubscribe after 60 seconds'); - * subscription.unsubscribe(); - * }, 60_000); - * ``` - */ -export interface TapObserver extends Observer { - /** - * The callback that `tap` operator invokes at the moment when the source Observable - * gets subscribed to. - */ - subscribe: () => void; - /** - * The callback that `tap` operator invokes when an explicit - * {@link guide/glossary-and-semantics#unsubscription unsubscribe} happens. It won't get invoked on - * `error` or `complete` events. - */ - unsubscribe: () => void; - /** - * The callback that `tap` operator invokes when any kind of - * {@link guide/glossary-and-semantics#finalization finalization} happens - either when - * the source Observable `error`s or `complete`s or when it gets explicitly unsubscribed - * by the user. There is no difference in using this callback or the {@link finalize} - * operator, but if you're already using `tap` operator, you can use this callback - * instead. You'd get the same result in either case. - */ - finalize: () => void; -} -export declare function tap(observerOrNext?: Partial> | ((value: T) => void)): MonoTypeOperatorFunction; -/** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */ -export declare function tap(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): MonoTypeOperatorFunction; -//# sourceMappingURL=tap.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/tap.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/tap.d.ts.map deleted file mode 100644 index ccffe8e83..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/tap.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tap.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/tap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAM9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,CAAE,SAAQ,QAAQ,CAAC,CAAC,CAAC;IACjD;;;OAGG;IACH,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB;;;;;;;OAOG;IACH,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AACD,wBAAgB,GAAG,CAAC,CAAC,EAAE,cAAc,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC;AACrH,4NAA4N;AAC5N,wBAAgB,GAAG,CAAC,CAAC,EACnB,IAAI,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC,GAAG,IAAI,EAClC,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,EACrC,QAAQ,CAAC,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GAC7B,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttle.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttle.d.ts deleted file mode 100644 index ed082b2ba..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttle.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -/** - * An object interface used by {@link throttle} or {@link throttleTime} that ensure - * configuration options of these operators. - * - * @see {@link throttle} - * @see {@link throttleTime} - */ -export interface ThrottleConfig { - /** - * If `true`, the resulting Observable will emit the first value from the source - * Observable at the **start** of the "throttling" process (when starting an - * internal timer that prevents other emissions from the source to pass through). - * If `false`, it will not emit the first value from the source Observable at the - * start of the "throttling" process. - * - * If not provided, defaults to: `true`. - */ - leading?: boolean; - /** - * If `true`, the resulting Observable will emit the last value from the source - * Observable at the **end** of the "throttling" process (when ending an internal - * timer that prevents other emissions from the source to pass through). - * If `false`, it will not emit the last value from the source Observable at the - * end of the "throttling" process. - * - * If not provided, defaults to: `false`. - */ - trailing?: boolean; -} -/** - * Emits a value from the source Observable, then ignores subsequent source - * values for a duration determined by another Observable, then repeats this - * process. - * - * It's like {@link throttleTime}, but the silencing - * duration is determined by a second Observable. - * - * ![](throttle.svg) - * - * `throttle` emits the source Observable values on the output Observable - * when its internal timer is disabled, and ignores source values when the timer - * is enabled. Initially, the timer is disabled. As soon as the first source - * value arrives, it is forwarded to the output Observable, and then the timer - * is enabled by calling the `durationSelector` function with the source value, - * which returns the "duration" Observable. When the duration Observable emits a - * value, the timer is disabled, and this process repeats for the - * next source value. - * - * ## Example - * - * Emit clicks at a rate of at most one click per second - * - * ```ts - * import { fromEvent, throttle, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(throttle(() => interval(1000))); - * - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link audit} - * @see {@link debounce} - * @see {@link delayWhen} - * @see {@link sample} - * @see {@link throttleTime} - * - * @param durationSelector A function that receives a value from the source - * Observable, for computing the silencing duration for each source value, - * returned as an `ObservableInput`. - * @param config A configuration object to define `leading` and `trailing` - * behavior. Defaults to `{ leading: true, trailing: false }`. - * @return A function that returns an Observable that performs the throttle - * operation to limit the rate of emissions from the source. - */ -export declare function throttle(durationSelector: (value: T) => ObservableInput, config?: ThrottleConfig): MonoTypeOperatorFunction; -//# sourceMappingURL=throttle.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttle.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttle.d.ts.map deleted file mode 100644 index c955d4092..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttle.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throttle.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/throttle.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKrE;;;;;;GAMG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;;OAQG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;OAQG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,eAAe,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,EAAE,cAAc,GAAG,wBAAwB,CAAC,CAAC,CAAC,CA2DtI"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttleTime.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttleTime.d.ts deleted file mode 100644 index b727f56a0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttleTime.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { ThrottleConfig } from './throttle'; -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -/** - * Emits a value from the source Observable, then ignores subsequent source - * values for `duration` milliseconds, then repeats this process. - * - * Lets a value pass, then ignores source values for the - * next `duration` milliseconds. - * - * ![](throttleTime.png) - * - * `throttleTime` emits the source Observable values on the output Observable - * when its internal timer is disabled, and ignores source values when the timer - * is enabled. Initially, the timer is disabled. As soon as the first source - * value arrives, it is forwarded to the output Observable, and then the timer - * is enabled. After `duration` milliseconds (or the time unit determined - * internally by the optional `scheduler`) has passed, the timer is disabled, - * and this process repeats for the next source value. Optionally takes a - * {@link SchedulerLike} for managing timers. - * - * ## Examples - * - * ### Limit click rate - * - * Emit clicks at a rate of at most one click per second - * - * ```ts - * import { fromEvent, throttleTime } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(throttleTime(1000)); - * - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link auditTime} - * @see {@link debounceTime} - * @see {@link delay} - * @see {@link sampleTime} - * @see {@link throttle} - * - * @param duration Time to wait before emitting another value after - * emitting the last value, measured in milliseconds or the time unit determined - * internally by the optional `scheduler`. - * @param scheduler The {@link SchedulerLike} to use for - * managing the timers that handle the throttling. Defaults to {@link asyncScheduler}. - * @param config A configuration object to define `leading` and - * `trailing` behavior. Defaults to `{ leading: true, trailing: false }`. - * @return A function that returns an Observable that performs the throttle - * operation to limit the rate of emissions from the source. - */ -export declare function throttleTime(duration: number, scheduler?: SchedulerLike, config?: ThrottleConfig): MonoTypeOperatorFunction; -//# sourceMappingURL=throttleTime.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttleTime.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttleTime.d.ts.map deleted file mode 100644 index 3568dd5d3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throttleTime.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throttleTime.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/throttleTime.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,cAAc,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,QAAQ,EAAE,MAAM,EAChB,SAAS,GAAE,aAA8B,EACzC,MAAM,CAAC,EAAE,cAAc,GACtB,wBAAwB,CAAC,CAAC,CAAC,CAG7B"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throwIfEmpty.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/throwIfEmpty.d.ts deleted file mode 100644 index b66dc46dd..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throwIfEmpty.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -/** - * If the source observable completes without emitting a value, it will emit - * an error. The error will be created at that time by the optional - * `errorFactory` argument, otherwise, the error will be {@link EmptyError}. - * - * ![](throwIfEmpty.png) - * - * ## Example - * - * Throw an error if the document wasn't clicked within 1 second - * - * ```ts - * import { fromEvent, takeUntil, timer, throwIfEmpty } from 'rxjs'; - * - * const click$ = fromEvent(document, 'click'); - * - * click$.pipe( - * takeUntil(timer(1000)), - * throwIfEmpty(() => new Error('The document was not clicked within 1 second')) - * ) - * .subscribe({ - * next() { - * console.log('The document was clicked'); - * }, - * error(err) { - * console.error(err.message); - * } - * }); - * ``` - * - * @param errorFactory A factory function called to produce the - * error to be thrown when the source observable completes without emitting a - * value. - * @return A function that returns an Observable that throws an error if the - * source Observable completed without emitting. - */ -export declare function throwIfEmpty(errorFactory?: () => any): MonoTypeOperatorFunction; -//# sourceMappingURL=throwIfEmpty.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throwIfEmpty.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/throwIfEmpty.d.ts.map deleted file mode 100644 index 00a5e9094..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/throwIfEmpty.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwIfEmpty.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/throwIfEmpty.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAIpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,YAAY,GAAE,MAAM,GAAyB,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAc1G"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeInterval.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeInterval.d.ts deleted file mode 100644 index a8a047fcc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeInterval.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { SchedulerLike, OperatorFunction } from '../types'; -/** - * Emits an object containing the current value, and the time that has - * passed between emitting the current value and the previous value, which is - * calculated by using the provided `scheduler`'s `now()` method to retrieve - * the current time at each emission, then calculating the difference. The `scheduler` - * defaults to {@link asyncScheduler}, so by default, the `interval` will be in - * milliseconds. - * - * Convert an Observable that emits items into one that - * emits indications of the amount of time elapsed between those emissions. - * - * ![](timeInterval.png) - * - * ## Example - * - * Emit interval between current value with the last value - * - * ```ts - * import { interval, timeInterval } from 'rxjs'; - * - * const seconds = interval(1000); - * - * seconds - * .pipe(timeInterval()) - * .subscribe(value => console.log(value)); - * - * // NOTE: The values will never be this precise, - * // intervals created with `interval` or `setInterval` - * // are non-deterministic. - * - * // { value: 0, interval: 1000 } - * // { value: 1, interval: 1000 } - * // { value: 2, interval: 1000 } - * ``` - * - * @param {SchedulerLike} [scheduler] Scheduler used to get the current time. - * @return A function that returns an Observable that emits information about - * value and interval. - */ -export declare function timeInterval(scheduler?: SchedulerLike): OperatorFunction>; -export declare class TimeInterval { - value: T; - interval: number; - /** - * @deprecated Internal implementation detail, do not construct directly. Will be made an interface in v8. - */ - constructor(value: T, interval: number); -} -//# sourceMappingURL=timeInterval.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeInterval.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeInterval.d.ts.map deleted file mode 100644 index 867ae5e62..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeInterval.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeInterval.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/timeInterval.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,SAAS,GAAE,aAA8B,GAAG,gBAAgB,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC,CAY/G;AAKD,qBAAa,YAAY,CAAC,CAAC;IAIN,KAAK,EAAE,CAAC;IAAS,QAAQ,EAAE,MAAM;IAHpD;;OAEG;gBACgB,KAAK,EAAE,CAAC,EAAS,QAAQ,EAAE,MAAM;CACrD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeout.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeout.d.ts deleted file mode 100644 index 6b22e8351..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeout.d.ts +++ /dev/null @@ -1,257 +0,0 @@ -import { MonoTypeOperatorFunction, SchedulerLike, OperatorFunction, ObservableInput, ObservedValueOf } from '../types'; -export interface TimeoutConfig = ObservableInput, M = unknown> { - /** - * The time allowed between values from the source before timeout is triggered. - */ - each?: number; - /** - * The relative time as a `number` in milliseconds, or a specific time as a `Date` object, - * by which the first value must arrive from the source before timeout is triggered. - */ - first?: number | Date; - /** - * The scheduler to use with time-related operations within this operator. Defaults to {@link asyncScheduler} - */ - scheduler?: SchedulerLike; - /** - * A factory used to create observable to switch to when timeout occurs. Provides - * a {@link TimeoutInfo} about the source observable's emissions and what delay or - * exact time triggered the timeout. - */ - with?: (info: TimeoutInfo) => O; - /** - * Optional additional metadata you can provide to code that handles - * the timeout, will be provided through the {@link TimeoutError}. - * This can be used to help identify the source of a timeout or pass along - * other information related to the timeout. - */ - meta?: M; -} -export interface TimeoutInfo { - /** Optional metadata that was provided to the timeout configuration. */ - readonly meta: M; - /** The number of messages seen before the timeout */ - readonly seen: number; - /** The last message seen */ - readonly lastValue: T | null; -} -/** - * An error emitted when a timeout occurs. - */ -export interface TimeoutError extends Error { - /** - * The information provided to the error by the timeout - * operation that created the error. Will be `null` if - * used directly in non-RxJS code with an empty constructor. - * (Note that using this constructor directly is not recommended, - * you should create your own errors) - */ - info: TimeoutInfo | null; -} -export interface TimeoutErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (info?: TimeoutInfo): TimeoutError; -} -/** - * An error thrown by the {@link timeout} operator. - * - * Provided so users can use as a type and do quality comparisons. - * We recommend you do not subclass this or create instances of this class directly. - * If you have need of a error representing a timeout, you should - * create your own error class and use that. - * - * @see {@link timeout} - * - * @class TimeoutError - */ -export declare const TimeoutError: TimeoutErrorCtor; -/** - * If `with` is provided, this will return an observable that will switch to a different observable if the source - * does not push values within the specified time parameters. - * - * The most flexible option for creating a timeout behavior. - * - * The first thing to know about the configuration is if you do not provide a `with` property to the configuration, - * when timeout conditions are met, this operator will emit a {@link TimeoutError}. Otherwise, it will use the factory - * function provided by `with`, and switch your subscription to the result of that. Timeout conditions are provided by - * the settings in `first` and `each`. - * - * The `first` property can be either a `Date` for a specific time, a `number` for a time period relative to the - * point of subscription, or it can be skipped. This property is to check timeout conditions for the arrival of - * the first value from the source _only_. The timings of all subsequent values from the source will be checked - * against the time period provided by `each`, if it was provided. - * - * The `each` property can be either a `number` or skipped. If a value for `each` is provided, it represents the amount of - * time the resulting observable will wait between the arrival of values from the source before timing out. Note that if - * `first` is _not_ provided, the value from `each` will be used to check timeout conditions for the arrival of the first - * value and all subsequent values. If `first` _is_ provided, `each` will only be use to check all values after the first. - * - * ## Examples - * - * Emit a custom error if there is too much time between values - * - * ```ts - * import { interval, timeout, throwError } from 'rxjs'; - * - * class CustomTimeoutError extends Error { - * constructor() { - * super('It was too slow'); - * this.name = 'CustomTimeoutError'; - * } - * } - * - * const slow$ = interval(900); - * - * slow$.pipe( - * timeout({ - * each: 1000, - * with: () => throwError(() => new CustomTimeoutError()) - * }) - * ) - * .subscribe({ - * error: console.error - * }); - * ``` - * - * Switch to a faster observable if your source is slow. - * - * ```ts - * import { interval, timeout } from 'rxjs'; - * - * const slow$ = interval(900); - * const fast$ = interval(500); - * - * slow$.pipe( - * timeout({ - * each: 1000, - * with: () => fast$, - * }) - * ) - * .subscribe(console.log); - * ``` - * @param config The configuration for the timeout. - */ -export declare function timeout, M = unknown>(config: TimeoutConfig & { - with: (info: TimeoutInfo) => O; -}): OperatorFunction>; -/** - * Returns an observable that will error or switch to a different observable if the source does not push values - * within the specified time parameters. - * - * The most flexible option for creating a timeout behavior. - * - * The first thing to know about the configuration is if you do not provide a `with` property to the configuration, - * when timeout conditions are met, this operator will emit a {@link TimeoutError}. Otherwise, it will use the factory - * function provided by `with`, and switch your subscription to the result of that. Timeout conditions are provided by - * the settings in `first` and `each`. - * - * The `first` property can be either a `Date` for a specific time, a `number` for a time period relative to the - * point of subscription, or it can be skipped. This property is to check timeout conditions for the arrival of - * the first value from the source _only_. The timings of all subsequent values from the source will be checked - * against the time period provided by `each`, if it was provided. - * - * The `each` property can be either a `number` or skipped. If a value for `each` is provided, it represents the amount of - * time the resulting observable will wait between the arrival of values from the source before timing out. Note that if - * `first` is _not_ provided, the value from `each` will be used to check timeout conditions for the arrival of the first - * value and all subsequent values. If `first` _is_ provided, `each` will only be use to check all values after the first. - * - * ### Handling TimeoutErrors - * - * If no `with` property was provided, subscriptions to the resulting observable may emit an error of {@link TimeoutError}. - * The timeout error provides useful information you can examine when you're handling the error. The most common way to handle - * the error would be with {@link catchError}, although you could use {@link tap} or just the error handler in your `subscribe` call - * directly, if your error handling is only a side effect (such as notifying the user, or logging). - * - * In this case, you would check the error for `instanceof TimeoutError` to validate that the error was indeed from `timeout`, and - * not from some other source. If it's not from `timeout`, you should probably rethrow it if you're in a `catchError`. - * - * ## Examples - * - * Emit a {@link TimeoutError} if the first value, and _only_ the first value, does not arrive within 5 seconds - * - * ```ts - * import { interval, timeout } from 'rxjs'; - * - * // A random interval that lasts between 0 and 10 seconds per tick - * const source$ = interval(Math.round(Math.random() * 10_000)); - * - * source$.pipe( - * timeout({ first: 5_000 }) - * ) - * .subscribe({ - * next: console.log, - * error: console.error - * }); - * ``` - * - * Emit a {@link TimeoutError} if the source waits longer than 5 seconds between any two values or the first value - * and subscription. - * - * ```ts - * import { timer, timeout, expand } from 'rxjs'; - * - * const getRandomTime = () => Math.round(Math.random() * 10_000); - * - * // An observable that waits a random amount of time between each delivered value - * const source$ = timer(getRandomTime()) - * .pipe(expand(() => timer(getRandomTime()))); - * - * source$ - * .pipe(timeout({ each: 5_000 })) - * .subscribe({ - * next: console.log, - * error: console.error - * }); - * ``` - * - * Emit a {@link TimeoutError} if the source does not emit before 7 seconds, _or_ if the source waits longer than - * 5 seconds between any two values after the first. - * - * ```ts - * import { timer, timeout, expand } from 'rxjs'; - * - * const getRandomTime = () => Math.round(Math.random() * 10_000); - * - * // An observable that waits a random amount of time between each delivered value - * const source$ = timer(getRandomTime()) - * .pipe(expand(() => timer(getRandomTime()))); - * - * source$ - * .pipe(timeout({ first: 7_000, each: 5_000 })) - * .subscribe({ - * next: console.log, - * error: console.error - * }); - * ``` - */ -export declare function timeout(config: Omit, 'with'>): OperatorFunction; -/** - * Returns an observable that will error if the source does not push its first value before the specified time passed as a `Date`. - * This is functionally the same as `timeout({ first: someDate })`. - * - * Errors if the first value doesn't show up before the given date and time - * - * ![](timeout.png) - * - * @param first The date to at which the resulting observable will timeout if the source observable - * does not emit at least one value. - * @param scheduler The scheduler to use. Defaults to {@link asyncScheduler}. - */ -export declare function timeout(first: Date, scheduler?: SchedulerLike): MonoTypeOperatorFunction; -/** - * Returns an observable that will error if the source does not push a value within the specified time in milliseconds. - * This is functionally the same as `timeout({ each: milliseconds })`. - * - * Errors if it waits too long between any value - * - * ![](timeout.png) - * - * @param each The time allowed between each pushed value from the source before the resulting observable - * will timeout. - * @param scheduler The scheduler to use. Defaults to {@link asyncScheduler}. - */ -export declare function timeout(each: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction; -//# sourceMappingURL=timeout.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeout.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeout.d.ts.map deleted file mode 100644 index e71905736..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeout.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeout.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/timeout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,wBAAwB,EAAE,aAAa,EAAE,gBAAgB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAUvH,MAAM,WAAW,aAAa,CAAC,CAAC,EAAE,CAAC,SAAS,eAAe,CAAC,OAAO,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO;IACpG;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;IAEtC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,CAAC;CACV;AAED,MAAM,WAAW,WAAW,CAAC,CAAC,EAAE,CAAC,GAAG,OAAO;IACzC,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAC;IACjB,qDAAqD;IACrD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4BAA4B;IAC5B,QAAQ,CAAC,SAAS,EAAE,CAAC,GAAG,IAAI,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,CAAE,SAAQ,KAAK;IACnE;;;;;;OAMG;IACH,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;O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AE,SAAS,CAAC,EAAE,aAAa,GAAG,wBAAwB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeoutWith.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeoutWith.d.ts deleted file mode 100644 index 9846627d9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeoutWith.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ObservableInput, OperatorFunction, SchedulerLike } from '../types'; -/** @deprecated Replaced with {@link timeout}. Instead of `timeoutWith(someDate, a$, scheduler)`, use the configuration object - * `timeout({ first: someDate, with: () => a$, scheduler })`. Will be removed in v8. */ -export declare function timeoutWith(dueBy: Date, switchTo: ObservableInput, scheduler?: SchedulerLike): OperatorFunction; -/** @deprecated Replaced with {@link timeout}. Instead of `timeoutWith(100, a$, scheduler)`, use the configuration object - * `timeout({ each: 100, with: () => a$, scheduler })`. Will be removed in v8. */ -export declare function timeoutWith(waitFor: number, switchTo: ObservableInput, scheduler?: SchedulerLike): OperatorFunction; -//# sourceMappingURL=timeoutWith.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeoutWith.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeoutWith.d.ts.map deleted file mode 100644 index c9370ed2a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timeoutWith.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeoutWith.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/timeoutWith.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG5E;uFACuF;AACvF,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;AACpI;kFACkF;AAClF,wBAAgB,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timestamp.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/timestamp.d.ts deleted file mode 100644 index 9258c7669..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timestamp.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { OperatorFunction, TimestampProvider, Timestamp } from '../types'; -/** - * Attaches a timestamp to each item emitted by an observable indicating when it was emitted - * - * The `timestamp` operator maps the *source* observable stream to an object of type - * `{value: T, timestamp: R}`. The properties are generically typed. The `value` property contains the value - * and type of the *source* observable. The `timestamp` is generated by the schedulers `now` function. By - * default, it uses the `asyncScheduler` which simply returns `Date.now()` (milliseconds since 1970/01/01 - * 00:00:00:000) and therefore is of type `number`. - * - * ![](timestamp.png) - * - * ## Example - * - * In this example there is a timestamp attached to the document's click events - * - * ```ts - * import { fromEvent, timestamp } from 'rxjs'; - * - * const clickWithTimestamp = fromEvent(document, 'click').pipe( - * timestamp() - * ); - * - * // Emits data of type { value: PointerEvent, timestamp: number } - * clickWithTimestamp.subscribe(data => { - * console.log(data); - * }); - * ``` - * - * @param timestampProvider An object with a `now()` method used to get the current timestamp. - * @return A function that returns an Observable that attaches a timestamp to - * each item emitted by the source Observable indicating when it was emitted. - */ -export declare function timestamp(timestampProvider?: TimestampProvider): OperatorFunction>; -//# sourceMappingURL=timestamp.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timestamp.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/timestamp.d.ts.map deleted file mode 100644 index 16a51f1d5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/timestamp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/timestamp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,iBAAiB,GAAE,iBAAyC,GAAG,gBAAgB,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAE5H"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/toArray.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/toArray.d.ts deleted file mode 100644 index f22f7f174..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/toArray.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { OperatorFunction } from '../types'; -/** - * Collects all source emissions and emits them as an array when the source completes. - * - * Get all values inside an array when the source completes - * - * ![](toArray.png) - * - * `toArray` will wait until the source Observable completes before emitting - * the array containing all emissions. When the source Observable errors no - * array will be emitted. - * - * ## Example - * - * ```ts - * import { interval, take, toArray } from 'rxjs'; - * - * const source = interval(1000); - * const example = source.pipe( - * take(10), - * toArray() - * ); - * - * example.subscribe(value => console.log(value)); - * - * // output: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - * ``` - * - * @return A function that returns an Observable that emits an array of items - * emitted by the source Observable when source completes. - */ -export declare function toArray(): OperatorFunction; -//# sourceMappingURL=toArray.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/toArray.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/toArray.d.ts.map deleted file mode 100644 index 61ada18bd..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/toArray.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"toArray.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/toArray.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,OAAO,CAAC,CAAC,KAAK,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAOrD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/window.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/window.d.ts deleted file mode 100644 index 88a78fb1c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/window.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { Observable } from '../Observable'; -import { OperatorFunction, ObservableInput } from '../types'; -/** - * Branch out the source Observable values as a nested Observable whenever - * `windowBoundaries` emits. - * - * It's like {@link buffer}, but emits a nested Observable - * instead of an array. - * - * ![](window.png) - * - * Returns an Observable that emits windows of items it collects from the source - * Observable. The output Observable emits connected, non-overlapping - * windows. It emits the current window and opens a new one whenever the - * `windowBoundaries` emits an item. `windowBoundaries` can be any type that - * `ObservableInput` accepts. It internally gets converted to an Observable. - * Because each window is an Observable, the output is a higher-order Observable. - * - * ## Example - * - * In every window of 1 second each, emit at most 2 click events - * - * ```ts - * import { fromEvent, interval, window, map, take, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const sec = interval(1000); - * const result = clicks.pipe( - * window(sec), - * map(win => win.pipe(take(2))), // take at most 2 emissions from each window - * mergeAll() // flatten the Observable-of-Observables - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link windowCount} - * @see {@link windowTime} - * @see {@link windowToggle} - * @see {@link windowWhen} - * @see {@link buffer} - * - * @param windowBoundaries An `ObservableInput` that completes the - * previous window and starts a new window. - * @return A function that returns an Observable of windows, which are - * Observables emitting values of the source Observable. - */ -export declare function window(windowBoundaries: ObservableInput): OperatorFunction>; -//# sourceMappingURL=window.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/window.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/window.d.ts.map deleted file mode 100644 index 41ca0d610..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/window.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/window.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAO7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,gBAAgB,EAAE,eAAe,CAAC,GAAG,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CA6CpG"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowCount.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowCount.d.ts deleted file mode 100644 index bc3fdb6e3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowCount.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { Observable } from '../Observable'; -import { OperatorFunction } from '../types'; -/** - * Branch out the source Observable values as a nested Observable with each - * nested Observable emitting at most `windowSize` values. - * - * It's like {@link bufferCount}, but emits a nested - * Observable instead of an array. - * - * ![](windowCount.png) - * - * Returns an Observable that emits windows of items it collects from the source - * Observable. The output Observable emits windows every `startWindowEvery` - * items, each containing no more than `windowSize` items. When the source - * Observable completes or encounters an error, the output Observable emits - * the current window and propagates the notification from the source - * Observable. If `startWindowEvery` is not provided, then new windows are - * started immediately at the start of the source and when each window completes - * with size `windowSize`. - * - * ## Examples - * - * Ignore every 3rd click event, starting from the first one - * - * ```ts - * import { fromEvent, windowCount, map, skip, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * windowCount(3), - * map(win => win.pipe(skip(1))), // skip first of every 3 clicks - * mergeAll() // flatten the Observable-of-Observables - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * Ignore every 3rd click event, starting from the third one - * - * ```ts - * import { fromEvent, windowCount, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * windowCount(2, 3), - * mergeAll() // flatten the Observable-of-Observables - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link window} - * @see {@link windowTime} - * @see {@link windowToggle} - * @see {@link windowWhen} - * @see {@link bufferCount} - * - * @param {number} windowSize The maximum number of values emitted by each - * window. - * @param {number} [startWindowEvery] Interval at which to start a new window. - * For example if `startWindowEvery` is `2`, then a new window will be started - * on every other value from the source. A new window is started at the - * beginning of the source by default. - * @return A function that returns an Observable of windows, which in turn are - * Observable of values. - */ -export declare function windowCount(windowSize: number, startWindowEvery?: number): OperatorFunction>; -//# sourceMappingURL=windowCount.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowCount.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowCount.d.ts.map deleted file mode 100644 index 1e1d5af46..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowCount.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowCount.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/windowCount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAI5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,EAAE,gBAAgB,GAAE,MAAU,GAAG,gBAAgB,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CA6DnH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowTime.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowTime.d.ts deleted file mode 100644 index 4d7ee6b1f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowTime.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Observable } from '../Observable'; -import { OperatorFunction, SchedulerLike } from '../types'; -export declare function windowTime(windowTimeSpan: number, scheduler?: SchedulerLike): OperatorFunction>; -export declare function windowTime(windowTimeSpan: number, windowCreationInterval: number, scheduler?: SchedulerLike): OperatorFunction>; -export declare function windowTime(windowTimeSpan: number, windowCreationInterval: number | null | void, maxWindowSize: number, scheduler?: SchedulerLike): OperatorFunction>; -//# sourceMappingURL=windowTime.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowTime.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowTime.d.ts.map deleted file mode 100644 index 8f85cc4aa..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowTime.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowTime.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/windowTime.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAY,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAOrE,wBAAgB,UAAU,CAAC,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,aAAa,GAAG,gBAAgB,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AACrH,wBAAgB,UAAU,CAAC,CAAC,EAC1B,cAAc,EAAE,MAAM,EACtB,sBAAsB,EAAE,MAAM,EAC9B,SAAS,CAAC,EAAE,aAAa,GACxB,gBAAgB,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;AACtC,wBAAgB,UAAU,CAAC,CAAC,EAC1B,cAAc,EAAE,MAAM,EACtB,sBAAsB,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,EAC5C,aAAa,EAAE,MAAM,EACrB,SAAS,CAAC,EAAE,aAAa,GACxB,gBAAgB,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowToggle.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowToggle.d.ts deleted file mode 100644 index 70efc361a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowToggle.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput, OperatorFunction } from '../types'; -/** - * Branch out the source Observable values as a nested Observable starting from - * an emission from `openings` and ending when the output of `closingSelector` - * emits. - * - * It's like {@link bufferToggle}, but emits a nested - * Observable instead of an array. - * - * ![](windowToggle.png) - * - * Returns an Observable that emits windows of items it collects from the source - * Observable. The output Observable emits windows that contain those items - * emitted by the source Observable between the time when the `openings` - * Observable emits an item and when the Observable returned by - * `closingSelector` emits an item. - * - * ## Example - * - * Every other second, emit the click events from the next 500ms - * - * ```ts - * import { fromEvent, interval, windowToggle, EMPTY, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const openings = interval(1000); - * const result = clicks.pipe( - * windowToggle(openings, i => i % 2 ? interval(500) : EMPTY), - * mergeAll() - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link window} - * @see {@link windowCount} - * @see {@link windowTime} - * @see {@link windowWhen} - * @see {@link bufferToggle} - * - * @param {Observable} openings An observable of notifications to start new - * windows. - * @param {function(value: O): Observable} closingSelector A function that takes - * the value emitted by the `openings` observable and returns an Observable, - * which, when it emits a next notification, signals that the - * associated window should complete. - * @return A function that returns an Observable of windows, which in turn are - * Observables. - */ -export declare function windowToggle(openings: ObservableInput, closingSelector: (openValue: O) => ObservableInput): OperatorFunction>; -//# sourceMappingURL=windowToggle.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowToggle.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowToggle.d.ts.map deleted file mode 100644 index 25b74c19b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowToggle.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowToggle.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/windowToggle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAO7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAC/B,QAAQ,EAAE,eAAe,CAAC,CAAC,CAAC,EAC5B,eAAe,EAAE,CAAC,SAAS,EAAE,CAAC,KAAK,eAAe,CAAC,GAAG,CAAC,GACtD,gBAAgB,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAyEpC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowWhen.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowWhen.d.ts deleted file mode 100644 index 17aa327eb..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowWhen.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput, OperatorFunction } from '../types'; -/** - * Branch out the source Observable values as a nested Observable using a - * factory function of closing Observables to determine when to start a new - * window. - * - * It's like {@link bufferWhen}, but emits a nested - * Observable instead of an array. - * - * ![](windowWhen.png) - * - * Returns an Observable that emits windows of items it collects from the source - * Observable. The output Observable emits connected, non-overlapping windows. - * It emits the current window and opens a new one whenever the Observable - * produced by the specified `closingSelector` function emits an item. The first - * window is opened immediately when subscribing to the output Observable. - * - * ## Example - * - * Emit only the first two clicks events in every window of [1-5] random seconds - * - * ```ts - * import { fromEvent, windowWhen, interval, map, take, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * windowWhen(() => interval(1000 + Math.random() * 4000)), - * map(win => win.pipe(take(2))), // take at most 2 emissions from each window - * mergeAll() // flatten the Observable-of-Observables - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link window} - * @see {@link windowCount} - * @see {@link windowTime} - * @see {@link windowToggle} - * @see {@link bufferWhen} - * - * @param {function(): Observable} closingSelector A function that takes no - * arguments and returns an Observable that signals (on either `next` or - * `complete`) when to close the previous window and start a new one. - * @return A function that returns an Observable of windows, which in turn are - * Observables. - */ -export declare function windowWhen(closingSelector: () => ObservableInput): OperatorFunction>; -//# sourceMappingURL=windowWhen.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowWhen.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowWhen.d.ts.map deleted file mode 100644 index 0275fd534..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/windowWhen.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"windowWhen.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/windowWhen.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAK7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC,GAAG,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAuE7G"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/withLatestFrom.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/withLatestFrom.d.ts deleted file mode 100644 index 7cc3c1806..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/withLatestFrom.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { OperatorFunction, ObservableInputTuple } from '../types'; -export declare function withLatestFrom(...inputs: [...ObservableInputTuple]): OperatorFunction; -export declare function withLatestFrom(...inputs: [...ObservableInputTuple, (...value: [T, ...O]) => R]): OperatorFunction; -//# sourceMappingURL=withLatestFrom.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/withLatestFrom.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/withLatestFrom.d.ts.map deleted file mode 100644 index 901d65241..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/withLatestFrom.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"withLatestFrom.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/withLatestFrom.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAQlE,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAEhI,wBAAgB,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,EACtD,GAAG,MAAM,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,GAClE,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zip.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/zip.d.ts deleted file mode 100644 index ecdb72797..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zip.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ObservableInputTuple, OperatorFunction, Cons } from '../types'; -/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ -export declare function zip(otherInputs: [...ObservableInputTuple]): OperatorFunction>; -/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ -export declare function zip(otherInputsAndProject: [...ObservableInputTuple], project: (...values: Cons) => R): OperatorFunction; -/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ -export declare function zip(...otherInputs: [...ObservableInputTuple]): OperatorFunction>; -/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ -export declare function zip(...otherInputsAndProject: [...ObservableInputTuple, (...values: Cons) => R]): OperatorFunction; -//# sourceMappingURL=zip.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zip.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/zip.d.ts.map deleted file mode 100644 index 5b64813a9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zip.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zip.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/zip.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,oBAAoB,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGzF,wEAAwE;AACxE,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,WAAW,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACjI,wEAAwE;AACxE,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,EACpD,qBAAqB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,EACnD,OAAO,EAAE,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GACpC,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1B,wEAAwE;AACxE,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,WAAW,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AACpI,wEAAwE;AACxE,wBAAgB,GAAG,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,CAAC,EACpD,GAAG,qBAAqB,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,GACnF,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipAll.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipAll.d.ts deleted file mode 100644 index 3c3276b1d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipAll.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { OperatorFunction, ObservableInput } from '../types'; -/** - * Collects all observable inner sources from the source, once the source completes, - * it will subscribe to all inner sources, combining their values by index and emitting - * them. - * - * @see {@link zipWith} - * @see {@link zip} - */ -export declare function zipAll(): OperatorFunction, T[]>; -export declare function zipAll(): OperatorFunction; -export declare function zipAll(project: (...values: T[]) => R): OperatorFunction, R>; -export declare function zipAll(project: (...values: Array) => R): OperatorFunction; -//# sourceMappingURL=zipAll.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipAll.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipAll.d.ts.map deleted file mode 100644 index 52fe3f2c5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipAll.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zipAll.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/zipAll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAI7D;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,CAAC,KAAK,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AACvE,wBAAgB,MAAM,CAAC,CAAC,KAAK,gBAAgB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;AACxD,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACtG,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipWith.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipWith.d.ts deleted file mode 100644 index 42c9c0beb..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipWith.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { ObservableInputTuple, OperatorFunction, Cons } from '../types'; -/** - * Subscribes to the source, and the observable inputs provided as arguments, and combines their values, by index, into arrays. - * - * What is meant by "combine by index": The first value from each will be made into a single array, then emitted, - * then the second value from each will be combined into a single array and emitted, then the third value - * from each will be combined into a single array and emitted, and so on. - * - * This will continue until it is no longer able to combine values of the same index into an array. - * - * After the last value from any one completed source is emitted in an array, the resulting observable will complete, - * as there is no way to continue "zipping" values together by index. - * - * Use-cases for this operator are limited. There are memory concerns if one of the streams is emitting - * values at a much faster rate than the others. Usage should likely be limited to streams that emit - * at a similar pace, or finite streams of known length. - * - * In many cases, authors want `combineLatestWith` and not `zipWith`. - * - * @param otherInputs other observable inputs to collate values from. - * @return A function that returns an Observable that emits items by index - * combined from the source Observable and provided Observables, in form of an - * array. - */ -export declare function zipWith(...otherInputs: [...ObservableInputTuple]): OperatorFunction>; -//# sourceMappingURL=zipWith.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipWith.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipWith.d.ts.map deleted file mode 100644 index b1a3a8fd7..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/operators/zipWith.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zipWith.d.ts","sourceRoot":"","sources":["../../../../src/internal/operators/zipWith.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAGxE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,OAAO,EAAE,EAAE,GAAG,WAAW,EAAE,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAEtI"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleArray.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleArray.d.ts deleted file mode 100644 index 7bab48222..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleArray.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -export declare function scheduleArray(input: ArrayLike, scheduler: SchedulerLike): Observable; -//# sourceMappingURL=scheduleArray.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleArray.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleArray.d.ts.map deleted file mode 100644 index b1f58de48..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleArray.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleArray.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,wBAAgB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,iBAuB7E"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleAsyncIterable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleAsyncIterable.d.ts deleted file mode 100644 index 2856f17ae..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleAsyncIterable.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { SchedulerLike } from '../types'; -import { Observable } from '../Observable'; -export declare function scheduleAsyncIterable(input: AsyncIterable, scheduler: SchedulerLike): Observable; -//# sourceMappingURL=scheduleAsyncIterable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleAsyncIterable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleAsyncIterable.d.ts.map deleted file mode 100644 index 3052359d6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleAsyncIterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleAsyncIterable.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleAsyncIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,iBA0BzF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleIterable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleIterable.d.ts deleted file mode 100644 index 71dc6231f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleIterable.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -/** - * Used in {@link scheduled} to create an observable from an Iterable. - * @param input The iterable to create an observable from - * @param scheduler The scheduler to use - */ -export declare function scheduleIterable(input: Iterable, scheduler: SchedulerLike): Observable; -//# sourceMappingURL=scheduleIterable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleIterable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleIterable.d.ts.map deleted file mode 100644 index 34939b730..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleIterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleIterable.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleIterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAKzC;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,iBAgD/E"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleObservable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleObservable.d.ts deleted file mode 100644 index 4b22bf86d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleObservable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { InteropObservable, SchedulerLike } from '../types'; -export declare function scheduleObservable(input: InteropObservable, scheduler: SchedulerLike): import("../Observable").Observable; -//# sourceMappingURL=scheduleObservable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleObservable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleObservable.d.ts.map deleted file mode 100644 index de60a0cee..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleObservable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleObservable.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleObservable.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE5D,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,yCAE1F"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/schedulePromise.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/schedulePromise.d.ts deleted file mode 100644 index 36c20bdc5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/schedulePromise.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { SchedulerLike } from '../types'; -export declare function schedulePromise(input: PromiseLike, scheduler: SchedulerLike): import("../Observable").Observable; -//# sourceMappingURL=schedulePromise.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/schedulePromise.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/schedulePromise.d.ts.map deleted file mode 100644 index 3ab24dae5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/schedulePromise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"schedulePromise.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduled/schedulePromise.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,wBAAgB,eAAe,CAAC,CAAC,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,yCAEjF"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleReadableStreamLike.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleReadableStreamLike.d.ts deleted file mode 100644 index 8377ea8ba..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleReadableStreamLike.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { SchedulerLike, ReadableStreamLike } from '../types'; -import { Observable } from '../Observable'; -export declare function scheduleReadableStreamLike(input: ReadableStreamLike, scheduler: SchedulerLike): Observable; -//# sourceMappingURL=scheduleReadableStreamLike.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleReadableStreamLike.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleReadableStreamLike.d.ts.map deleted file mode 100644 index d36035002..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduleReadableStreamLike.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduleReadableStreamLike.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduleReadableStreamLike.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC,CAEnH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduled.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduled.d.ts deleted file mode 100644 index 430996473..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduled.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ObservableInput, SchedulerLike } from '../types'; -import { Observable } from '../Observable'; -/** - * Converts from a common {@link ObservableInput} type to an observable where subscription and emissions - * are scheduled on the provided scheduler. - * - * @see {@link from} - * @see {@link of} - * - * @param input The observable, array, promise, iterable, etc you would like to schedule - * @param scheduler The scheduler to use to schedule the subscription and emissions from - * the returned observable. - */ -export declare function scheduled(input: ObservableInput, scheduler: SchedulerLike): Observable; -//# sourceMappingURL=scheduled.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduled.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduled.d.ts.map deleted file mode 100644 index dcfb24512..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduled/scheduled.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scheduled.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduled/scheduled.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAM3C;;;;;;;;;;GAUG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,aAAa,GAAG,UAAU,CAAC,CAAC,CAAC,CAsB/F"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/Action.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/Action.d.ts deleted file mode 100644 index 66e615f47..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/Action.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Scheduler } from '../Scheduler'; -import { Subscription } from '../Subscription'; -import { SchedulerAction } from '../types'; -/** - * A unit of work to be executed in a `scheduler`. An action is typically - * created from within a {@link SchedulerLike} and an RxJS user does not need to concern - * themselves about creating and manipulating an Action. - * - * ```ts - * class Action extends Subscription { - * new (scheduler: Scheduler, work: (state?: T) => void); - * schedule(state?: T, delay: number = 0): Subscription; - * } - * ``` - * - * @class Action - */ -export declare class Action extends Subscription { - constructor(scheduler: Scheduler, work: (this: SchedulerAction, state?: T) => void); - /** - * Schedules this action on its parent {@link SchedulerLike} for execution. May be passed - * some context object, `state`. May happen at some point in the future, - * according to the `delay` parameter, if specified. - * @param {T} [state] Some contextual data that the `work` function uses when - * called by the Scheduler. - * @param {number} [delay] Time to wait before executing the work, where the - * time unit is implicit and defined by the Scheduler. - * @return {void} - */ - schedule(state?: T, delay?: number): Subscription; -} -//# sourceMappingURL=Action.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/Action.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/Action.d.ts.map deleted file mode 100644 index 8579896fe..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/Action.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/Action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;;;;;;;;;;;;GAaG;AACH,qBAAa,MAAM,CAAC,CAAC,CAAE,SAAQ,YAAY;gBAC7B,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI;IAGrF;;;;;;;;;OASG;IACI,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;CAG5D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameAction.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameAction.d.ts deleted file mode 100644 index 5b1757dee..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameAction.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { AnimationFrameScheduler } from './AnimationFrameScheduler'; -import { SchedulerAction } from '../types'; -import { TimerHandle } from './timerHandle'; -export declare class AnimationFrameAction extends AsyncAction { - protected scheduler: AnimationFrameScheduler; - protected work: (this: SchedulerAction, state?: T) => void; - constructor(scheduler: AnimationFrameScheduler, work: (this: SchedulerAction, state?: T) => void); - protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay?: number): TimerHandle; - protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay?: number): TimerHandle | undefined; -} -//# sourceMappingURL=AnimationFrameAction.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameAction.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameAction.d.ts.map deleted file mode 100644 index 494eb2ba8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameAction.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AnimationFrameAction.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/AnimationFrameAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,oBAAoB,CAAC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC,CAAC;IAC7C,SAAS,CAAC,SAAS,EAAE,uBAAuB;IAAE,SAAS,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI;gBAAjG,SAAS,EAAE,uBAAuB,EAAY,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI;IAIvH,SAAS,CAAC,cAAc,CAAC,SAAS,EAAE,uBAAuB,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,GAAE,MAAU,GAAG,WAAW;IAa9G,SAAS,CAAC,cAAc,CAAC,SAAS,EAAE,uBAAuB,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,GAAE,MAAU,GAAG,WAAW,GAAG,SAAS;CAkB3H"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameScheduler.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameScheduler.d.ts deleted file mode 100644 index 333e22921..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameScheduler.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { AsyncScheduler } from './AsyncScheduler'; -export declare class AnimationFrameScheduler extends AsyncScheduler { - flush(action?: AsyncAction): void; -} -//# sourceMappingURL=AnimationFrameScheduler.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameScheduler.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameScheduler.d.ts.map deleted file mode 100644 index a9e08976f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AnimationFrameScheduler.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AnimationFrameScheduler.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/AnimationFrameScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,uBAAwB,SAAQ,cAAc;IAClD,KAAK,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI;CAiC9C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapAction.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapAction.d.ts deleted file mode 100644 index f0549c630..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapAction.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { AsapScheduler } from './AsapScheduler'; -import { SchedulerAction } from '../types'; -import { TimerHandle } from './timerHandle'; -export declare class AsapAction extends AsyncAction { - protected scheduler: AsapScheduler; - protected work: (this: SchedulerAction, state?: T) => void; - constructor(scheduler: AsapScheduler, work: (this: SchedulerAction, state?: T) => void); - protected requestAsyncId(scheduler: AsapScheduler, id?: TimerHandle, delay?: number): TimerHandle; - protected recycleAsyncId(scheduler: AsapScheduler, id?: TimerHandle, delay?: number): TimerHandle | undefined; -} -//# sourceMappingURL=AsapAction.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapAction.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapAction.d.ts.map deleted file mode 100644 index 0ea713a66..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapAction.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsapAction.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsapAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,UAAU,CAAC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC,CAAC;IACnC,SAAS,CAAC,SAAS,EAAE,aAAa;IAAE,SAAS,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI;gBAAvF,SAAS,EAAE,aAAa,EAAY,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI;IAI7G,SAAS,CAAC,cAAc,CAAC,SAAS,EAAE,aAAa,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,GAAE,MAAU,GAAG,WAAW;IAapG,SAAS,CAAC,cAAc,CAAC,SAAS,EAAE,aAAa,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,GAAE,MAAU,GAAG,WAAW,GAAG,SAAS;CAoBjH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapScheduler.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapScheduler.d.ts deleted file mode 100644 index cd83028e2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapScheduler.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { AsyncScheduler } from './AsyncScheduler'; -export declare class AsapScheduler extends AsyncScheduler { - flush(action?: AsyncAction): void; -} -//# sourceMappingURL=AsapScheduler.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapScheduler.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapScheduler.d.ts.map deleted file mode 100644 index 26ec193d9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsapScheduler.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsapScheduler.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsapScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,aAAc,SAAQ,cAAc;IACxC,KAAK,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI;CAiC9C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsyncAction.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsyncAction.d.ts deleted file mode 100644 index 943187bfb..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsyncAction.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Action } from './Action'; -import { SchedulerAction } from '../types'; -import { Subscription } from '../Subscription'; -import { AsyncScheduler } from './AsyncScheduler'; -import { TimerHandle } from './timerHandle'; -export declare class AsyncAction extends Action { - protected scheduler: AsyncScheduler; - protected work: (this: SchedulerAction, state?: T) => void; - id: TimerHandle | undefined; - state?: T; - delay: number; - protected pending: boolean; - constructor(scheduler: AsyncScheduler, work: (this: SchedulerAction, state?: T) => void); - schedule(state?: T, delay?: number): Subscription; - protected requestAsyncId(scheduler: AsyncScheduler, _id?: TimerHandle, delay?: number): TimerHandle; - protected recycleAsyncId(_scheduler: AsyncScheduler, id?: TimerHandle, delay?: number | null): TimerHandle | undefined; - /** - * Immediately executes this action and the `work` it contains. - * @return {any} - */ - execute(state: T, delay: number): any; - protected _execute(state: T, _delay: number): any; - unsubscribe(): void; -} -//# sourceMappingURL=AsyncAction.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsyncAction.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsyncAction.d.ts.map deleted file mode 100644 index ba6c562ba..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsyncAction.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsyncAction.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsyncAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE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ler.d.ts deleted file mode 100644 index fe9e006e4..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsyncScheduler.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Scheduler } from '../Scheduler'; -import { Action } from './Action'; -import { AsyncAction } from './AsyncAction'; -export declare class AsyncScheduler extends Scheduler { - actions: Array>; - constructor(SchedulerAction: typeof Action, now?: () => number); - flush(action: AsyncAction): void; -} -//# sourceMappingURL=AsyncScheduler.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsyncScheduler.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsyncScheduler.d.ts.map deleted file mode 100644 index 2f7b63881..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/AsyncScheduler.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AsyncScheduler.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/AsyncScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,qBAAa,cAAe,SAAQ,SAAS;IACpC,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAM;gBAiBjC,eAAe,EAAE,OAAO,MAAM,EAAE,GAAG,GAAE,MAAM,MAAsB;IAItE,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI;CA0B7C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueAction.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueAction.d.ts deleted file mode 100644 index 7d476dc6c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueAction.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { Subscription } from '../Subscription'; -import { QueueScheduler } from './QueueScheduler'; -import { SchedulerAction } from '../types'; -import { TimerHandle } from './timerHandle'; -export declare class QueueAction extends AsyncAction { - protected scheduler: QueueScheduler; - protected work: (this: SchedulerAction, state?: T) => void; - constructor(scheduler: QueueScheduler, work: (this: SchedulerAction, state?: T) => void); - schedule(state?: T, delay?: number): Subscription; - execute(state: T, delay: number): any; - protected requestAsyncId(scheduler: QueueScheduler, id?: TimerHandle, delay?: number): TimerHandle; -} -//# sourceMappingURL=QueueAction.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueAction.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueAction.d.ts.map deleted file mode 100644 index 9731371d9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueAction.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QueueAction.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/QueueAction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,WAAW,CAAC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC,CAAC;IACpC,SAAS,CAAC,SAAS,EAAE,cAAc;IAAE,SAAS,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI;gBAAxF,SAAS,EAAE,cAAc,EAAY,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI;IAIvG,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;IAUpD,OAAO,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG;IAI5C,SAAS,CAAC,cAAc,CAAC,SAAS,EAAE,cAAc,EAAE,EAAE,CAAC,EAAE,WAAW,EAAE,KAAK,GAAE,MAAU,GAAG,WAAW;CAkBtG"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueScheduler.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueScheduler.d.ts deleted file mode 100644 index 46e29d543..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueScheduler.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { AsyncScheduler } from './AsyncScheduler'; -export declare class QueueScheduler extends AsyncScheduler { -} -//# sourceMappingURL=QueueScheduler.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueScheduler.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueScheduler.d.ts.map deleted file mode 100644 index 32ddc648e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/QueueScheduler.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"QueueScheduler.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/QueueScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,qBAAa,cAAe,SAAQ,cAAc;CACjD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/VirtualTimeScheduler.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/VirtualTimeScheduler.d.ts deleted file mode 100644 index 766ab5739..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/VirtualTimeScheduler.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { Subscription } from '../Subscription'; -import { AsyncScheduler } from './AsyncScheduler'; -import { SchedulerAction } from '../types'; -import { TimerHandle } from './timerHandle'; -export declare class VirtualTimeScheduler extends AsyncScheduler { - maxFrames: number; - /** @deprecated Not used in VirtualTimeScheduler directly. Will be removed in v8. */ - static frameTimeFactor: number; - /** - * The current frame for the state of the virtual scheduler instance. The difference - * between two "frames" is synonymous with the passage of "virtual time units". So if - * you record `scheduler.frame` to be `1`, then later, observe `scheduler.frame` to be at `11`, - * that means `10` virtual time units have passed. - */ - frame: number; - /** - * Used internally to examine the current virtual action index being processed. - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ - index: number; - /** - * This creates an instance of a `VirtualTimeScheduler`. Experts only. The signature of - * this constructor is likely to change in the long run. - * - * @param schedulerActionCtor The type of Action to initialize when initializing actions during scheduling. - * @param maxFrames The maximum number of frames to process before stopping. Used to prevent endless flush cycles. - */ - constructor(schedulerActionCtor?: typeof AsyncAction, maxFrames?: number); - /** - * Prompt the Scheduler to execute all of its queued actions, therefore - * clearing its queue. - * @return {void} - */ - flush(): void; -} -export declare class VirtualAction extends AsyncAction { - protected scheduler: VirtualTimeScheduler; - protected work: (this: SchedulerAction, state?: T) => void; - protected index: number; - protected active: boolean; - constructor(scheduler: VirtualTimeScheduler, work: (this: SchedulerAction, state?: T) => void, index?: number); - schedule(state?: T, delay?: number): Subscription; - protected requestAsyncId(scheduler: VirtualTimeScheduler, id?: any, delay?: number): TimerHandle; - protected recycleAsyncId(scheduler: VirtualTimeScheduler, id?: any, delay?: number): TimerHandle | undefined; - protected _execute(state: T, delay: number): any; - private static sortActions; -} -//# sourceMappingURL=VirtualTimeScheduler.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/VirtualTimeScheduler.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/VirtualTimeScheduler.d.ts.map deleted file mode 100644 index e4aa09026..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/VirtualTimeScheduler.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"VirtualTimeScheduler.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/VirtualTimeScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,oBAAqB,SAAQ,cAAc;IAyB6B,SAAS,EAAE,MAAM;IAxBpG,oFAAoF;IACpF,MAAM,CAAC,eAAe,SAAM;IAE5B;;;;;OAKG;IACI,KAAK,EAAE,MAAM,CAAK;IAEzB;;;OAGG;IACI,KAAK,EAAE,MAAM,CAAM;IAE1B;;;;;;OAMG;gBACS,mBAAmB,GAAE,OAAO,WAAkC,EAAS,SAAS,GAAE,MAAiB;IAI/G;;;;OAIG;IACI,KAAK,IAAI,IAAI;CAqBrB;AAED,qBAAa,aAAa,CAAC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC,CAAC;IAIhD,SAAS,CAAC,SAAS,EAAE,oBAAoB;IACzC,SAAS,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI;IAC7D,SAAS,CAAC,KAAK,EAAE,MAAM;IALzB,SAAS,CAAC,MAAM,EAAE,OAAO,CAAQ;gBAGrB,SAAS,EAAE,oBAAoB,EAC/B,IAAI,EAAE,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,IAAI,EACnD,KAAK,GAAE,MAA+B;IAM3C,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,KAAK,GAAE,MAAU,GAAG,YAAY;IAoB3D,SAAS,CAAC,cAAc,CAAC,SAAS,EAAE,oBAAoB,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,GAAE,MAAU,GAAG,WAAW;IAQnG,SAAS,CAAC,cAAc,CAAC,SAAS,EAAE,oBAAoB,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,GAAE,MAAU,GAAG,WAAW,GAAG,SAAS;IAI/G,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,GAAG;IAMhD,OAAO,CAAC,MAAM,CAAC,WAAW;CAe3B"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrame.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrame.d.ts deleted file mode 100644 index 0355d4ac8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrame.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { AnimationFrameScheduler } from './AnimationFrameScheduler'; -/** - * - * Animation Frame Scheduler - * - * Perform task when `window.requestAnimationFrame` would fire - * - * When `animationFrame` scheduler is used with delay, it will fall back to {@link asyncScheduler} scheduler - * behaviour. - * - * Without delay, `animationFrame` scheduler can be used to create smooth browser animations. - * It makes sure scheduled task will happen just before next browser content repaint, - * thus performing animations as efficiently as possible. - * - * ## Example - * Schedule div height animation - * ```ts - * // html:
    - * import { animationFrameScheduler } from 'rxjs'; - * - * const div = document.querySelector('div'); - * - * animationFrameScheduler.schedule(function(height) { - * div.style.height = height + "px"; - * - * this.schedule(height + 1); // `this` references currently executing Action, - * // which we reschedule with new state - * }, 0, 0); - * - * // You will see a div element growing in height - * ``` - */ -export declare const animationFrameScheduler: AnimationFrameScheduler; -/** - * @deprecated Renamed to {@link animationFrameScheduler}. Will be removed in v8. - */ -export declare const animationFrame: AnimationFrameScheduler; -//# sourceMappingURL=animationFrame.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrame.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrame.d.ts.map deleted file mode 100644 index 10e71f587..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrame.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrame.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/animationFrame.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,eAAO,MAAM,uBAAuB,yBAAoD,CAAC;AAEzF;;GAEG;AACH,eAAO,MAAM,cAAc,yBAA0B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrameProvider.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrameProvider.d.ts deleted file mode 100644 index 71a733b6d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrameProvider.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Subscription } from '../Subscription'; -interface AnimationFrameProvider { - schedule(callback: FrameRequestCallback): Subscription; - requestAnimationFrame: typeof requestAnimationFrame; - cancelAnimationFrame: typeof cancelAnimationFrame; - delegate: { - requestAnimationFrame: typeof requestAnimationFrame; - cancelAnimationFrame: typeof cancelAnimationFrame; - } | undefined; -} -export declare const animationFrameProvider: AnimationFrameProvider; -export {}; -//# sourceMappingURL=animationFrameProvider.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrameProvider.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrameProvider.d.ts.map deleted file mode 100644 index 150a9545d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/animationFrameProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"animationFrameProvider.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/animationFrameProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,UAAU,sBAAsB;IAC9B,QAAQ,CAAC,QAAQ,EAAE,oBAAoB,GAAG,YAAY,CAAC;IACvD,qBAAqB,EAAE,OAAO,qBAAqB,CAAC;IACpD,oBAAoB,EAAE,OAAO,oBAAoB,CAAC;IAClD,QAAQ,EACJ;QACE,qBAAqB,EAAE,OAAO,qBAAqB,CAAC;QACpD,oBAAoB,EAAE,OAAO,oBAAoB,CAAC;KACnD,GACD,SAAS,CAAC;CACf;AAED,eAAO,MAAM,sBAAsB,EAAE,sBA6BpC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/asap.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/asap.d.ts deleted file mode 100644 index 48dfb984d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/asap.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { AsapScheduler } from './AsapScheduler'; -/** - * - * Asap Scheduler - * - * Perform task as fast as it can be performed asynchronously - * - * `asap` scheduler behaves the same as {@link asyncScheduler} scheduler when you use it to delay task - * in time. If however you set delay to `0`, `asap` will wait for current synchronously executing - * code to end and then it will try to execute given task as fast as possible. - * - * `asap` scheduler will do its best to minimize time between end of currently executing code - * and start of scheduled task. This makes it best candidate for performing so called "deferring". - * Traditionally this was achieved by calling `setTimeout(deferredTask, 0)`, but that technique involves - * some (although minimal) unwanted delay. - * - * Note that using `asap` scheduler does not necessarily mean that your task will be first to process - * after currently executing code. In particular, if some task was also scheduled with `asap` before, - * that task will execute first. That being said, if you need to schedule task asynchronously, but - * as soon as possible, `asap` scheduler is your best bet. - * - * ## Example - * Compare async and asap scheduler< - * ```ts - * import { asapScheduler, asyncScheduler } from 'rxjs'; - * - * asyncScheduler.schedule(() => console.log('async')); // scheduling 'async' first... - * asapScheduler.schedule(() => console.log('asap')); - * - * // Logs: - * // "asap" - * // "async" - * // ... but 'asap' goes first! - * ``` - */ -export declare const asapScheduler: AsapScheduler; -/** - * @deprecated Renamed to {@link asapScheduler}. Will be removed in v8. - */ -export declare const asap: AsapScheduler; -//# sourceMappingURL=asap.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/asap.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/asap.d.ts.map deleted file mode 100644 index 979373f1c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/asap.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"asap.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/asap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,eAAO,MAAM,aAAa,eAAgC,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,IAAI,eAAgB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/async.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/async.d.ts deleted file mode 100644 index c08a5b4a6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/async.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { AsyncScheduler } from './AsyncScheduler'; -/** - * - * Async Scheduler - * - * Schedule task as if you used setTimeout(task, duration) - * - * `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript - * event loop queue. It is best used to delay tasks in time or to schedule tasks repeating - * in intervals. - * - * If you just want to "defer" task, that is to perform it right after currently - * executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`), - * better choice will be the {@link asapScheduler} scheduler. - * - * ## Examples - * Use async scheduler to delay task - * ```ts - * import { asyncScheduler } from 'rxjs'; - * - * const task = () => console.log('it works!'); - * - * asyncScheduler.schedule(task, 2000); - * - * // After 2 seconds logs: - * // "it works!" - * ``` - * - * Use async scheduler to repeat task in intervals - * ```ts - * import { asyncScheduler } from 'rxjs'; - * - * function task(state) { - * console.log(state); - * this.schedule(state + 1, 1000); // `this` references currently executing Action, - * // which we reschedule with new state and delay - * } - * - * asyncScheduler.schedule(task, 3000, 0); - * - * // Logs: - * // 0 after 3s - * // 1 after 4s - * // 2 after 5s - * // 3 after 6s - * ``` - */ -export declare const asyncScheduler: AsyncScheduler; -/** - * @deprecated Renamed to {@link asyncScheduler}. Will be removed in v8. - */ -export declare const async: AsyncScheduler; -//# sourceMappingURL=async.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/async.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/async.d.ts.map deleted file mode 100644 index 678fa137e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/async.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/async.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,eAAO,MAAM,cAAc,gBAAkC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,KAAK,gBAAiB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/dateTimestampProvider.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/dateTimestampProvider.d.ts deleted file mode 100644 index f88403ffa..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/dateTimestampProvider.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { TimestampProvider } from '../types'; -interface DateTimestampProvider extends TimestampProvider { - delegate: TimestampProvider | undefined; -} -export declare const dateTimestampProvider: DateTimestampProvider; -export {}; -//# sourceMappingURL=dateTimestampProvider.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/dateTimestampProvider.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/dateTimestampProvider.d.ts.map deleted file mode 100644 index 26ca11a09..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/dateTimestampProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dateTimestampProvider.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/dateTimestampProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,UAAU,qBAAsB,SAAQ,iBAAiB;IACvD,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACzC;AAED,eAAO,MAAM,qBAAqB,EAAE,qBAOnC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/immediateProvider.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/immediateProvider.d.ts deleted file mode 100644 index 8226a7133..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/immediateProvider.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { TimerHandle } from './timerHandle'; -declare type SetImmediateFunction = (handler: () => void, ...args: any[]) => TimerHandle; -declare type ClearImmediateFunction = (handle: TimerHandle) => void; -interface ImmediateProvider { - setImmediate: SetImmediateFunction; - clearImmediate: ClearImmediateFunction; - delegate: { - setImmediate: SetImmediateFunction; - clearImmediate: ClearImmediateFunction; - } | undefined; -} -export declare const immediateProvider: ImmediateProvider; -export {}; -//# sourceMappingURL=immediateProvider.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/immediateProvider.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/immediateProvider.d.ts.map deleted file mode 100644 index 17cfb1065..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/immediateProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"immediateProvider.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/immediateProvider.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGjD,aAAK,oBAAoB,GAAG,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,WAAW,CAAC;AACjF,aAAK,sBAAsB,GAAG,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;AAE5D,UAAU,iBAAiB;IACzB,YAAY,EAAE,oBAAoB,CAAC;IACnC,cAAc,EAAE,sBAAsB,CAAC;IACvC,QAAQ,EACJ;QACE,YAAY,EAAE,oBAAoB,CAAC;QACnC,cAAc,EAAE,sBAAsB,CAAC;KACxC,GACD,SAAS,CAAC;CACf;AAED,eAAO,MAAM,iBAAiB,EAAE,iBAY/B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/intervalProvider.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/intervalProvider.d.ts deleted file mode 100644 index cda8e4f56..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/intervalProvider.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { TimerHandle } from './timerHandle'; -declare type SetIntervalFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle; -declare type ClearIntervalFunction = (handle: TimerHandle) => void; -interface IntervalProvider { - setInterval: SetIntervalFunction; - clearInterval: ClearIntervalFunction; - delegate: { - setInterval: SetIntervalFunction; - clearInterval: ClearIntervalFunction; - } | undefined; -} -export declare const intervalProvider: IntervalProvider; -export {}; -//# sourceMappingURL=intervalProvider.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/intervalProvider.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/intervalProvider.d.ts.map deleted file mode 100644 index 68dbec4e9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/intervalProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"intervalProvider.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/intervalProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,aAAK,mBAAmB,GAAG,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,WAAW,CAAC;AAClG,aAAK,qBAAqB,GAAG,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;AAE3D,UAAU,gBAAgB;IACxB,WAAW,EAAE,mBAAmB,CAAC;IACjC,aAAa,EAAE,qBAAqB,CAAC;IACrC,QAAQ,EACJ;QACE,WAAW,EAAE,mBAAmB,CAAC;QACjC,aAAa,EAAE,qBAAqB,CAAC;KACtC,GACD,SAAS,CAAC;CACf;AAED,eAAO,MAAM,gBAAgB,EAAE,gBAe9B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/performanceTimestampProvider.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/performanceTimestampProvider.d.ts deleted file mode 100644 index 6a15ad316..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/performanceTimestampProvider.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { TimestampProvider } from '../types'; -interface PerformanceTimestampProvider extends TimestampProvider { - delegate: TimestampProvider | undefined; -} -export declare const performanceTimestampProvider: PerformanceTimestampProvider; -export {}; -//# sourceMappingURL=performanceTimestampProvider.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/performanceTimestampProvider.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/performanceTimestampProvider.d.ts.map deleted file mode 100644 index 425053919..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/performanceTimestampProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"performanceTimestampProvider.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/performanceTimestampProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,UAAU,4BAA6B,SAAQ,iBAAiB;IAC9D,QAAQ,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACzC;AAED,eAAO,MAAM,4BAA4B,EAAE,4BAO1C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/queue.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/queue.d.ts deleted file mode 100644 index e038f3c44..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/queue.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { QueueScheduler } from './QueueScheduler'; -/** - * - * Queue Scheduler - * - * Put every next task on a queue, instead of executing it immediately - * - * `queue` scheduler, when used with delay, behaves the same as {@link asyncScheduler} scheduler. - * - * When used without delay, it schedules given task synchronously - executes it right when - * it is scheduled. However when called recursively, that is when inside the scheduled task, - * another task is scheduled with queue scheduler, instead of executing immediately as well, - * that task will be put on a queue and wait for current one to finish. - * - * This means that when you execute task with `queue` scheduler, you are sure it will end - * before any other task scheduled with that scheduler will start. - * - * ## Examples - * Schedule recursively first, then do something - * ```ts - * import { queueScheduler } from 'rxjs'; - * - * queueScheduler.schedule(() => { - * queueScheduler.schedule(() => console.log('second')); // will not happen now, but will be put on a queue - * - * console.log('first'); - * }); - * - * // Logs: - * // "first" - * // "second" - * ``` - * - * Reschedule itself recursively - * ```ts - * import { queueScheduler } from 'rxjs'; - * - * queueScheduler.schedule(function(state) { - * if (state !== 0) { - * console.log('before', state); - * this.schedule(state - 1); // `this` references currently executing Action, - * // which we reschedule with new state - * console.log('after', state); - * } - * }, 0, 3); - * - * // In scheduler that runs recursively, you would expect: - * // "before", 3 - * // "before", 2 - * // "before", 1 - * // "after", 1 - * // "after", 2 - * // "after", 3 - * - * // But with queue it logs: - * // "before", 3 - * // "after", 3 - * // "before", 2 - * // "after", 2 - * // "before", 1 - * // "after", 1 - * ``` - */ -export declare const queueScheduler: QueueScheduler; -/** - * @deprecated Renamed to {@link queueScheduler}. Will be removed in v8. - */ -export declare const queue: QueueScheduler; -//# sourceMappingURL=queue.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/queue.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/queue.d.ts.map deleted file mode 100644 index fdd91e6c9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/queue.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"queue.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/queue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,eAAO,MAAM,cAAc,gBAAkC,CAAC;AAE9D;;GAEG;AACH,eAAO,MAAM,KAAK,gBAAiB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timeoutProvider.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timeoutProvider.d.ts deleted file mode 100644 index 0da3da8d7..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timeoutProvider.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { TimerHandle } from './timerHandle'; -declare type SetTimeoutFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle; -declare type ClearTimeoutFunction = (handle: TimerHandle) => void; -interface TimeoutProvider { - setTimeout: SetTimeoutFunction; - clearTimeout: ClearTimeoutFunction; - delegate: { - setTimeout: SetTimeoutFunction; - clearTimeout: ClearTimeoutFunction; - } | undefined; -} -export declare const timeoutProvider: TimeoutProvider; -export {}; -//# sourceMappingURL=timeoutProvider.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timeoutProvider.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timeoutProvider.d.ts.map deleted file mode 100644 index 379161e17..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timeoutProvider.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timeoutProvider.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/timeoutProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,aAAK,kBAAkB,GAAG,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,WAAW,CAAC;AACjG,aAAK,oBAAoB,GAAG,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,CAAC;AAE1D,UAAU,eAAe;IACvB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,YAAY,EAAE,oBAAoB,CAAC;IACnC,QAAQ,EACJ;QACE,UAAU,EAAE,kBAAkB,CAAC;QAC/B,YAAY,EAAE,oBAAoB,CAAC;KACpC,GACD,SAAS,CAAC;CACf;AAED,eAAO,MAAM,eAAe,EAAE,eAe7B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timerHandle.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timerHandle.d.ts deleted file mode 100644 index c023a3748..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timerHandle.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare type TimerHandle = number | ReturnType; -//# sourceMappingURL=timerHandle.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timerHandle.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timerHandle.d.ts.map deleted file mode 100644 index 9a49462ef..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/scheduler/timerHandle.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"timerHandle.d.ts","sourceRoot":"","sources":["../../../../src/internal/scheduler/timerHandle.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG,MAAM,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/symbol/iterator.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/symbol/iterator.d.ts deleted file mode 100644 index 19a41cda2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/symbol/iterator.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function getSymbolIterator(): symbol; -export declare const iterator: symbol; -//# sourceMappingURL=iterator.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/symbol/iterator.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/symbol/iterator.d.ts.map deleted file mode 100644 index a3c59d43f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/symbol/iterator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"iterator.d.ts","sourceRoot":"","sources":["../../../../src/internal/symbol/iterator.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,IAAI,MAAM,CAM1C;AAED,eAAO,MAAM,QAAQ,QAAsB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/symbol/observable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/symbol/observable.d.ts deleted file mode 100644 index 0c49b30ca..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/symbol/observable.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Symbol.observable or a string "@@observable". Used for interop - * - * @deprecated We will no longer be exporting this symbol in upcoming versions of RxJS. - * Instead polyfill and use Symbol.observable directly *or* use https://www.npmjs.com/package/symbol-observable - */ -export declare const observable: string | symbol; -//# sourceMappingURL=observable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/symbol/observable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/symbol/observable.d.ts.map deleted file mode 100644 index 08daa1e23..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/symbol/observable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../../../src/internal/symbol/observable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,GAAG,MAAwF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/ColdObservable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/testing/ColdObservable.d.ts deleted file mode 100644 index 76b175aab..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/ColdObservable.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Observable } from '../Observable'; -import { Scheduler } from '../Scheduler'; -import { TestMessage } from './TestMessage'; -import { SubscriptionLog } from './SubscriptionLog'; -import { SubscriptionLoggable } from './SubscriptionLoggable'; -import { Subscriber } from '../Subscriber'; -export declare class ColdObservable extends Observable implements SubscriptionLoggable { - messages: TestMessage[]; - subscriptions: SubscriptionLog[]; - scheduler: Scheduler; - logSubscribedFrame: () => number; - logUnsubscribedFrame: (index: number) => void; - constructor(messages: TestMessage[], scheduler: Scheduler); - scheduleMessages(subscriber: Subscriber): void; -} -//# sourceMappingURL=ColdObservable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/ColdObservable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/testing/ColdObservable.d.ts.map deleted file mode 100644 index bf1cfff64..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/ColdObservable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ColdObservable.d.ts","sourceRoot":"","sources":["../../../../src/internal/testing/ColdObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,qBAAa,cAAc,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAE,YAAW,oBAAoB;IAQ/D,QAAQ,EAAE,WAAW,EAAE;IAPnC,aAAa,EAAE,eAAe,EAAE,CAAM;IAC7C,SAAS,EAAE,SAAS,CAAC;IAErB,kBAAkB,EAAE,MAAM,MAAM,CAAC;IAEjC,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;gBAE3B,QAAQ,EAAE,WAAW,EAAE,EAAE,SAAS,EAAE,SAAS;IAgBhE,gBAAgB,CAAC,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC;CAgB7C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/HotObservable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/testing/HotObservable.d.ts deleted file mode 100644 index f2966943a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/HotObservable.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Subject } from '../Subject'; -import { Scheduler } from '../Scheduler'; -import { TestMessage } from './TestMessage'; -import { SubscriptionLog } from './SubscriptionLog'; -import { SubscriptionLoggable } from './SubscriptionLoggable'; -export declare class HotObservable extends Subject implements SubscriptionLoggable { - messages: TestMessage[]; - subscriptions: SubscriptionLog[]; - scheduler: Scheduler; - logSubscribedFrame: () => number; - logUnsubscribedFrame: (index: number) => void; - constructor(messages: TestMessage[], scheduler: Scheduler); - setup(): void; -} -//# sourceMappingURL=HotObservable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/HotObservable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/testing/HotObservable.d.ts.map deleted file mode 100644 index 9cada0a6d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/HotObservable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"HotObservable.d.ts","sourceRoot":"","sources":["../../../../src/internal/testing/HotObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAGrC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,qBAAa,aAAa,CAAC,CAAC,CAAE,SAAQ,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB;IAQ3D,QAAQ,EAAE,WAAW,EAAE;IAPnC,aAAa,EAAE,eAAe,EAAE,CAAM;IAC7C,SAAS,EAAE,SAAS,CAAC;IAErB,kBAAkB,EAAE,MAAM,MAAM,CAAC;IAEjC,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;gBAE3B,QAAQ,EAAE,WAAW,EAAE,EAAE,SAAS,EAAE,SAAS;IAmBhE,KAAK;CAcN"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLog.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLog.d.ts deleted file mode 100644 index f029e80d2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLog.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export declare class SubscriptionLog { - subscribedFrame: number; - unsubscribedFrame: number; - constructor(subscribedFrame: number, unsubscribedFrame?: number); -} -//# sourceMappingURL=SubscriptionLog.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLog.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLog.d.ts.map deleted file mode 100644 index 4b57b08d9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLog.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SubscriptionLog.d.ts","sourceRoot":"","sources":["../../../../src/internal/testing/SubscriptionLog.ts"],"names":[],"mappings":"AAAA,qBAAa,eAAe;IACP,eAAe,EAAE,MAAM;IACvB,iBAAiB,EAAE,MAAM;gBADzB,eAAe,EAAE,MAAM,EACvB,iBAAiB,GAAE,MAAiB;CAExD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLoggable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLoggable.d.ts deleted file mode 100644 index 2b21758e3..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLoggable.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Scheduler } from '../Scheduler'; -import { SubscriptionLog } from './SubscriptionLog'; -export declare class SubscriptionLoggable { - subscriptions: SubscriptionLog[]; - scheduler: Scheduler; - logSubscribedFrame(): number; - logUnsubscribedFrame(index: number): void; -} -//# sourceMappingURL=SubscriptionLoggable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLoggable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLoggable.d.ts.map deleted file mode 100644 index 113e268a8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/SubscriptionLoggable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SubscriptionLoggable.d.ts","sourceRoot":"","sources":["../../../../src/internal/testing/SubscriptionLoggable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,qBAAa,oBAAoB;IACxB,aAAa,EAAE,eAAe,EAAE,CAAM;IAE7C,SAAS,EAAE,SAAS,CAAC;IAErB,kBAAkB,IAAI,MAAM;IAK5B,oBAAoB,CAAC,KAAK,EAAE,MAAM;CAQnC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestMessage.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestMessage.d.ts deleted file mode 100644 index de5889371..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestMessage.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ObservableNotification } from '../types'; -export interface TestMessage { - frame: number; - notification: ObservableNotification; - isGhost?: boolean; -} -//# sourceMappingURL=TestMessage.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestMessage.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestMessage.d.ts.map deleted file mode 100644 index 250c8e05e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestMessage.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TestMessage.d.ts","sourceRoot":"","sources":["../../../../src/internal/testing/TestMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,sBAAsB,CAAC,GAAG,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestScheduler.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestScheduler.d.ts deleted file mode 100644 index d0345ff00..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestScheduler.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { Observable } from '../Observable'; -import { ColdObservable } from './ColdObservable'; -import { HotObservable } from './HotObservable'; -import { TestMessage } from './TestMessage'; -import { SubscriptionLog } from './SubscriptionLog'; -import { VirtualTimeScheduler } from '../scheduler/VirtualTimeScheduler'; -export interface RunHelpers { - cold: typeof TestScheduler.prototype.createColdObservable; - hot: typeof TestScheduler.prototype.createHotObservable; - flush: typeof TestScheduler.prototype.flush; - time: typeof TestScheduler.prototype.createTime; - expectObservable: typeof TestScheduler.prototype.expectObservable; - expectSubscriptions: typeof TestScheduler.prototype.expectSubscriptions; - animate: (marbles: string) => void; -} -export declare type observableToBeFn = (marbles: string, values?: any, errorValue?: any) => void; -export declare type subscriptionLogsToBeFn = (marbles: string | string[]) => void; -export declare class TestScheduler extends VirtualTimeScheduler { - assertDeepEqual: (actual: any, expected: any) => boolean | void; - /** - * The number of virtual time units each character in a marble diagram represents. If - * the test scheduler is being used in "run mode", via the `run` method, this is temporarily - * set to `1` for the duration of the `run` block, then set back to whatever value it was. - * @nocollapse - */ - static frameTimeFactor: number; - /** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ - readonly hotObservables: HotObservable[]; - /** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ - readonly coldObservables: ColdObservable[]; - /** - * Test meta data to be processed during `flush()` - */ - private flushTests; - /** - * Indicates whether the TestScheduler instance is operating in "run mode", - * meaning it's processing a call to `run()` - */ - private runMode; - /** - * - * @param assertDeepEqual A function to set up your assertion for your test harness - */ - constructor(assertDeepEqual: (actual: any, expected: any) => boolean | void); - createTime(marbles: string): number; - /** - * @param marbles A diagram in the marble DSL. Letters map to keys in `values` if provided. - * @param values Values to use for the letters in `marbles`. If omitted, the letters themselves are used. - * @param error The error to use for the `#` marble (if present). - */ - createColdObservable(marbles: string, values?: { - [marble: string]: T; - }, error?: any): ColdObservable; - /** - * @param marbles A diagram in the marble DSL. Letters map to keys in `values` if provided. - * @param values Values to use for the letters in `marbles`. If omitted, the letters themselves are used. - * @param error The error to use for the `#` marble (if present). - */ - createHotObservable(marbles: string, values?: { - [marble: string]: T; - }, error?: any): HotObservable; - private materializeInnerObservable; - expectObservable(observable: Observable, subscriptionMarbles?: string | null): { - toBe(marbles: string, values?: any, errorValue?: any): void; - toEqual: (other: Observable) => void; - }; - expectSubscriptions(actualSubscriptionLogs: SubscriptionLog[]): { - toBe: subscriptionLogsToBeFn; - }; - flush(): void; - /** @nocollapse */ - static parseMarblesAsSubscriptions(marbles: string | null, runMode?: boolean): SubscriptionLog; - /** @nocollapse */ - static parseMarbles(marbles: string, values?: any, errorValue?: any, materializeInnerObservables?: boolean, runMode?: boolean): TestMessage[]; - private createAnimator; - private createDelegates; - /** - * The `run` method performs the test in 'run mode' - in which schedulers - * used within the test automatically delegate to the `TestScheduler`. That - * is, in 'run mode' there is no need to explicitly pass a `TestScheduler` - * instance to observable creators or operators. - * - * @see {@link /guide/testing/marble-testing} - */ - run(callback: (helpers: RunHelpers) => T): T; -} -//# sourceMappingURL=TestScheduler.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestScheduler.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestScheduler.d.ts.map deleted file mode 100644 index e6d3f27e8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/testing/TestScheduler.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"TestScheduler.d.ts","sourceRoot":"","sources":["../../../../src/internal/testing/TestScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,oBAAoB,EAAiB,MAAM,mCAAmC,CAAC;AAaxF,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,OAAO,aAAa,CAAC,SAAS,CAAC,oBAAoB,CAAC;IAC1D,GAAG,EAAE,OAAO,aAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC;IACxD,KAAK,EAAE,OAAO,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC;IAC5C,IAAI,EAAE,OAAO,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC;IAChD,gBAAgB,EAAE,OAAO,aAAa,CAAC,SAAS,CAAC,gBAAgB,CAAC;IAClE,mBAAmB,EAAE,OAAO,aAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC;IACxE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAQD,oBAAY,gBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,EAAE,UAAU,CAAC,EAAE,GAAG,KAAK,IAAI,CAAC;AACzF,oBAAY,sBAAsB,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;AAE1E,qBAAa,aAAc,SAAQ,oBAAoB;IAkClC,eAAe,E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AsB,CAAA;KAAE;IAehG,KAAK;IAiBL,kBAAkB;IAClB,MAAM,CAAC,2BAA2B,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,UAAQ,GAAG,eAAe;IAiG5F,kBAAkB;IAClB,MAAM,CAAC,YAAY,CACjB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,GAAG,EACZ,UAAU,CAAC,EAAE,GAAG,EAChB,2BAA2B,GAAE,OAAe,EAC5C,OAAO,UAAQ,GACd,WAAW,EAAE;IA4GhB,OAAO,CAAC,cAAc;IA+DtB,OAAO,CAAC,eAAe;IA8IvB;;;;;;;OAOG;IACH,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,CAAC,GAAG,CAAC;CA2ChD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/types.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/types.d.ts deleted file mode 100644 index d156869ec..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/types.d.ts +++ /dev/null @@ -1,301 +0,0 @@ -/// -import { Observable } from './Observable'; -import { Subscription } from './Subscription'; -/** - * Note: This will add Symbol.observable globally for all TypeScript users, - * however, we are no longer polyfilling Symbol.observable - */ -declare global { - interface SymbolConstructor { - readonly observable: symbol; - } -} -/** - * A function type interface that describes a function that accepts one parameter `T` - * and returns another parameter `R`. - * - * Usually used to describe {@link OperatorFunction} - it always takes a single - * parameter (the source Observable) and returns another Observable. - */ -export interface UnaryFunction { - (source: T): R; -} -export interface OperatorFunction extends UnaryFunction, Observable> { -} -export declare type FactoryOrValue = T | (() => T); -export interface MonoTypeOperatorFunction extends OperatorFunction { -} -/** - * A value and the time at which it was emitted. - * - * Emitted by the `timestamp` operator - * - * @see {@link timestamp} - */ -export interface Timestamp { - value: T; - /** - * The timestamp. By default, this is in epoch milliseconds. - * Could vary based on the timestamp provider passed to the operator. - */ - timestamp: number; -} -/** - * A value emitted and the amount of time since the last value was emitted. - * - * Emitted by the `timeInterval` operator. - * - * @see {@link timeInterval} - */ -export interface TimeInterval { - value: T; - /** - * The amount of time between this value's emission and the previous value's emission. - * If this is the first emitted value, then it will be the amount of time since subscription - * started. - */ - interval: number; -} -export interface Unsubscribable { - unsubscribe(): void; -} -export declare type TeardownLogic = Subscription | Unsubscribable | (() => void) | void; -export interface SubscriptionLike extends Unsubscribable { - unsubscribe(): void; - readonly closed: boolean; -} -/** - * @deprecated Do not use. Most likely you want to use `ObservableInput`. Will be removed in v8. - */ -export declare type SubscribableOrPromise = Subscribable | Subscribable | PromiseLike | InteropObservable; -/** OBSERVABLE INTERFACES */ -export interface Subscribable { - subscribe(observer: Partial>): Unsubscribable; -} -/** - * Valid types that can be converted to observables. - */ -export declare type ObservableInput = Observable | InteropObservable | AsyncIterable | PromiseLike | ArrayLike | Iterable | ReadableStreamLike; -/** - * @deprecated Renamed to {@link InteropObservable }. Will be removed in v8. - */ -export declare type ObservableLike = InteropObservable; -/** - * An object that implements the `Symbol.observable` interface. - */ -export interface InteropObservable { - [Symbol.observable]: () => Subscribable; -} -/** - * A notification representing a "next" from an observable. - * Can be used with {@link dematerialize}. - */ -export interface NextNotification { - /** The kind of notification. Always "N" */ - kind: 'N'; - /** The value of the notification. */ - value: T; -} -/** - * A notification representing an "error" from an observable. - * Can be used with {@link dematerialize}. - */ -export interface ErrorNotification { - /** The kind of notification. Always "E" */ - kind: 'E'; - error: any; -} -/** - * A notification representing a "completion" from an observable. - * Can be used with {@link dematerialize}. - */ -export interface CompleteNotification { - kind: 'C'; -} -/** - * Valid observable notification types. - */ -export declare type ObservableNotification = NextNotification | ErrorNotification | CompleteNotification; -export interface NextObserver { - closed?: boolean; - next: (value: T) => void; - error?: (err: any) => void; - complete?: () => void; -} -export interface ErrorObserver { - closed?: boolean; - next?: (value: T) => void; - error: (err: any) => void; - complete?: () => void; -} -export interface CompletionObserver { - closed?: boolean; - next?: (value: T) => void; - error?: (err: any) => void; - complete: () => void; -} -export declare type PartialObserver = NextObserver | ErrorObserver | CompletionObserver; -/** - * An object interface that defines a set of callback functions a user can use to get - * notified of any set of {@link Observable} - * {@link guide/glossary-and-semantics#notification notification} events. - * - * For more info, please refer to {@link guide/observer this guide}. - */ -export interface Observer { - /** - * A callback function that gets called by the producer during the subscription when - * the producer "has" the `value`. It won't be called if `error` or `complete` callback - * functions have been called, nor after the consumer has unsubscribed. - * - * For more info, please refer to {@link guide/glossary-and-semantics#next this guide}. - */ - next: (value: T) => void; - /** - * A callback function that gets called by the producer if and when it encountered a - * problem of any kind. The errored value will be provided through the `err` parameter. - * This callback can't be called more than one time, it can't be called if the - * `complete` callback function have been called previously, nor it can't be called if - * the consumer has unsubscribed. - * - * For more info, please refer to {@link guide/glossary-and-semantics#error this guide}. - */ - error: (err: any) => void; - /** - * A callback function that gets called by the producer if and when it has no more - * values to provide (by calling `next` callback function). This means that no error - * has happened. This callback can't be called more than one time, it can't be called - * if the `error` callback function have been called previously, nor it can't be called - * if the consumer has unsubscribed. - * - * For more info, please refer to {@link guide/glossary-and-semantics#complete this guide}. - */ - complete: () => void; -} -export interface SubjectLike extends Observer, Subscribable { -} -export interface SchedulerLike extends TimestampProvider { - schedule(work: (this: SchedulerAction, state: T) => void, delay: number, state: T): Subscription; - schedule(work: (this: SchedulerAction, state?: T) => void, delay: number, state?: T): Subscription; - schedule(work: (this: SchedulerAction, state?: T) => void, delay?: number, state?: T): Subscription; -} -export interface SchedulerAction extends Subscription { - schedule(state?: T, delay?: number): Subscription; -} -/** - * This is a type that provides a method to allow RxJS to create a numeric timestamp - */ -export interface TimestampProvider { - /** - * Returns a timestamp as a number. - * - * This is used by types like `ReplaySubject` or operators like `timestamp` to calculate - * the amount of time passed between events. - */ - now(): number; -} -/** - * Extracts the type from an `ObservableInput`. If you have - * `O extends ObservableInput` and you pass in `Observable`, or - * `Promise`, etc, it will type as `number`. - */ -export declare type ObservedValueOf = O extends ObservableInput ? T : never; -/** - * Extracts a union of element types from an `ObservableInput[]`. - * If you have `O extends ObservableInput[]` and you pass in - * `Observable[]` or `Promise[]` you would get - * back a type of `string`. - * If you pass in `[Observable, Observable]` you would - * get back a type of `string | number`. - */ -export declare type ObservedValueUnionFromArray = X extends Array> ? T : never; -/** - * @deprecated Renamed to {@link ObservedValueUnionFromArray}. Will be removed in v8. - */ -export declare type ObservedValuesFromArray = ObservedValueUnionFromArray; -/** - * Extracts a tuple of element types from an `ObservableInput[]`. - * If you have `O extends ObservableInput[]` and you pass in - * `[Observable, Observable]` you would get back a type - * of `[string, number]`. - */ -export declare type ObservedValueTupleFromArray = { - [K in keyof X]: ObservedValueOf; -}; -/** - * Used to infer types from arguments to functions like {@link forkJoin}. - * So that you can have `forkJoin([Observable
    , PromiseLike]): Observable<[A, B]>` - * et al. - */ -export declare type ObservableInputTuple = { - [K in keyof T]: ObservableInput; -}; -/** - * Constructs a new tuple with the specified type at the head. - * If you declare `Cons` you will get back `[A, B, C]`. - */ -export declare type Cons = ((arg: X, ...rest: Y) => any) extends (...args: infer U) => any ? U : never; -/** - * Extracts the head of a tuple. - * If you declare `Head<[A, B, C]>` you will get back `A`. - */ -export declare type Head = ((...args: X) => any) extends (arg: infer U, ...rest: any[]) => any ? U : never; -/** - * Extracts the tail of a tuple. - * If you declare `Tail<[A, B, C]>` you will get back `[B, C]`. - */ -export declare type Tail = ((...args: X) => any) extends (arg: any, ...rest: infer U) => any ? U : never; -/** - * Extracts the generic value from an Array type. - * If you have `T extends Array`, and pass a `string[]` to it, - * `ValueFromArray` will return the actual type of `string`. - */ -export declare type ValueFromArray = A extends Array ? T : never; -/** - * Gets the value type from an {@link ObservableNotification}, if possible. - */ -export declare type ValueFromNotification = T extends { - kind: 'N' | 'E' | 'C'; -} ? T extends NextNotification ? T extends { - value: infer V; -} ? V : undefined : never : never; -/** - * A simple type to represent a gamut of "falsy" values... with a notable exception: - * `NaN` is "falsy" however, it is not and cannot be typed via TypeScript. See - * comments here: https://github.com/microsoft/TypeScript/issues/28682#issuecomment-707142417 - */ -export declare type Falsy = null | undefined | false | 0 | -0 | 0n | ''; -export declare type TruthyTypesOf = T extends Falsy ? never : T; -interface ReadableStreamDefaultReaderLike { - read(): PromiseLike<{ - done: false; - value: T; - } | { - done: true; - value?: undefined; - }>; - releaseLock(): void; -} -/** - * The base signature RxJS will look for to identify and use - * a [ReadableStream](https://streams.spec.whatwg.org/#rs-class) - * as an {@link ObservableInput} source. - */ -export interface ReadableStreamLike { - getReader(): ReadableStreamDefaultReaderLike; -} -/** - * An observable with a `connect` method that is used to create a subscription - * to an underlying source, connecting it with all consumers via a multicast. - */ -export interface Connectable extends Observable { - /** - * (Idempotent) Calling this method will connect the underlying source observable to all subscribed consumers - * through an underlying {@link Subject}. - * @returns A subscription, that when unsubscribed, will "disconnect" the source from the connector subject, - * severing notifications to all consumers. - */ - connect(): Subscription; -} -export {}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/types.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/types.d.ts.map deleted file mode 100644 index b66c43551..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/internal/types.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C;;;GAGG;AACH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,iBAAiB;QACzB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B;CACF;AAID;;;;;;GAMG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,EAAE,CAAC;IACjC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,aAAa,CAAC,UAAU,C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AAC,SAAS,KAAK,GAAG,KAAK,GAAG,CAAC,CAAC;AAI3D,UAAU,+BAA+B,CAAC,CAAC;IAIzC,IAAI,IAAI,WAAW,CACf;QACE,IAAI,EAAE,KAAK,CAAC;QACZ,KAAK,EAAE,CAAC,CAAC;KACV,GACD;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,KAAK,CAAC,EAAE,SAAS,CAAA;KAAE,CACpC,CAAC;IACF,WAAW,IAAI,IAAI,CAAC;CACrB;AAED;;;;GAIG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IACnC,SAAS,IAAI,+BAA+B,CAAC,CAAC,CAAC,CAAC;CACjD;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IACnD;;;;;OAKG;IACH,OAAO,IAAI,YAAY,CAAC;CACzB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/ArgumentOutOfRangeError.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/ArgumentOutOfRangeError.d.ts deleted file mode 100644 index 0bc595aa5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/ArgumentOutOfRangeError.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export interface ArgumentOutOfRangeError extends Error { -} -export interface ArgumentOutOfRangeErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (): ArgumentOutOfRangeError; -} -/** - * An error thrown when an element was queried at a certain index of an - * Observable, but no such index or position exists in that sequence. - * - * @see {@link elementAt} - * @see {@link take} - * @see {@link takeLast} - * - * @class ArgumentOutOfRangeError - */ -export declare const ArgumentOutOfRangeError: ArgumentOutOfRangeErrorCtor; -//# sourceMappingURL=ArgumentOutOfRangeError.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/ArgumentOutOfRangeError.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/ArgumentOutOfRangeError.d.ts.map deleted file mode 100644 index db1b380f9..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/ArgumentOutOfRangeError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ArgumentOutOfRangeError.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/ArgumentOutOfRangeError.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAwB,SAAQ,KAAK;CAAG;AAEzD,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,QAAQ,uBAAuB,CAAC;CACjC;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,uBAAuB,EAAE,2BAOrC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/EmptyError.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/EmptyError.d.ts deleted file mode 100644 index c9db09085..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/EmptyError.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export interface EmptyError extends Error { -} -export interface EmptyErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (): EmptyError; -} -/** - * An error thrown when an Observable or a sequence was queried but has no - * elements. - * - * @see {@link first} - * @see {@link last} - * @see {@link single} - * @see {@link firstValueFrom} - * @see {@link lastValueFrom} - * - * @class EmptyError - */ -export declare const EmptyError: EmptyErrorCtor; -//# sourceMappingURL=EmptyError.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/EmptyError.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/EmptyError.d.ts.map deleted file mode 100644 index e25c99e99..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/EmptyError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EmptyError.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/EmptyError.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAW,SAAQ,KAAK;CAAG;AAE5C,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,QAAQ,UAAU,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,EAAE,cAIvB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/Immediate.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/Immediate.d.ts deleted file mode 100644 index 72ae5b63b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/Immediate.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Helper functions to schedule and unschedule microtasks. - */ -export declare const Immediate: { - setImmediate(cb: () => void): number; - clearImmediate(handle: number): void; -}; -/** - * Used for internal testing purposes only. Do not export from library. - */ -export declare const TestTools: { - pending(): number; -}; -//# sourceMappingURL=Immediate.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/Immediate.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/Immediate.d.ts.map deleted file mode 100644 index 673883103..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/Immediate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Immediate.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/Immediate.ts"],"names":[],"mappings":"AAkBA;;GAEG;AACH,eAAO,MAAM,SAAS;qBACH,MAAM,IAAI,GAAG,MAAM;2BAUb,MAAM,GAAG,IAAI;CAGrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,SAAS;;CAIrB,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/NotFoundError.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/NotFoundError.d.ts deleted file mode 100644 index e4debbe59..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/NotFoundError.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -export interface NotFoundError extends Error { -} -export interface NotFoundErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (message: string): NotFoundError; -} -/** - * An error thrown when a value or values are missing from an - * observable sequence. - * - * @see {@link operators/single} - * - * @class NotFoundError - */ -export declare const NotFoundError: NotFoundErrorCtor; -//# sourceMappingURL=NotFoundError.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/NotFoundError.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/NotFoundError.d.ts.map deleted file mode 100644 index 3ed4b4989..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/NotFoundError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"NotFoundError.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/NotFoundError.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAc,SAAQ,KAAK;CAAG;AAE/C,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,KAAK,OAAO,EAAE,MAAM,GAAG,aAAa,CAAC;CACtC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,EAAE,iBAO3B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/ObjectUnsubscribedError.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/ObjectUnsubscribedError.d.ts deleted file mode 100644 index 372abfa69..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/ObjectUnsubscribedError.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export interface ObjectUnsubscribedError extends Error { -} -export interface ObjectUnsubscribedErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (): ObjectUnsubscribedError; -} -/** - * An error thrown when an action is invalid because the object has been - * unsubscribed. - * - * @see {@link Subject} - * @see {@link BehaviorSubject} - * - * @class ObjectUnsubscribedError - */ -export declare const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor; -//# sourceMappingURL=ObjectUnsubscribedError.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/ObjectUnsubscribedError.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/ObjectUnsubscribedError.d.ts.map deleted file mode 100644 index 7d8bf1bdd..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/ObjectUnsubscribedError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ObjectUnsubscribedError.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/ObjectUnsubscribedError.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,uBAAwB,SAAQ,KAAK;CAAG;AAEzD,MAAM,WAAW,2BAA2B;IAC1C;;;OAGG;IACH,QAAQ,uBAAuB,CAAC;CACjC;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB,EAAE,2BAOrC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/SequenceError.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/SequenceError.d.ts deleted file mode 100644 index e485536ff..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/SequenceError.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -export interface SequenceError extends Error { -} -export interface SequenceErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (message: string): SequenceError; -} -/** - * An error thrown when something is wrong with the sequence of - * values arriving on the observable. - * - * @see {@link operators/single} - * - * @class SequenceError - */ -export declare const SequenceError: SequenceErrorCtor; -//# sourceMappingURL=SequenceError.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/SequenceError.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/SequenceError.d.ts.map deleted file mode 100644 index b4a8227bb..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/SequenceError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"SequenceError.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/SequenceError.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAc,SAAQ,KAAK;CAAG;AAE/C,MAAM,WAAW,iBAAiB;IAChC;;;OAGG;IACH,KAAK,OAAO,EAAE,MAAM,GAAG,aAAa,CAAC;CACtC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,EAAE,iBAO3B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/UnsubscriptionError.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/UnsubscriptionError.d.ts deleted file mode 100644 index 9c584ce59..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/UnsubscriptionError.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export interface UnsubscriptionError extends Error { - readonly errors: any[]; -} -export interface UnsubscriptionErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (errors: any[]): UnsubscriptionError; -} -/** - * An error thrown when one or more errors have occurred during the - * `unsubscribe` of a {@link Subscription}. - */ -export declare const UnsubscriptionError: UnsubscriptionErrorCtor; -//# sourceMappingURL=UnsubscriptionError.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/UnsubscriptionError.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/UnsubscriptionError.d.ts.map deleted file mode 100644 index e6f280925..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/UnsubscriptionError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"UnsubscriptionError.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/UnsubscriptionError.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,mBAAoB,SAAQ,KAAK;IAChD,QAAQ,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,KAAK,MAAM,EAAE,GAAG,EAAE,GAAG,mBAAmB,CAAC;CAC1C;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,uBAWjC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/applyMixins.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/applyMixins.d.ts deleted file mode 100644 index 91c9ed225..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/applyMixins.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function applyMixins(derivedCtor: any, baseCtors: any[]): void; -//# sourceMappingURL=applyMixins.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/applyMixins.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/applyMixins.d.ts.map deleted file mode 100644 index d41642cb2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/applyMixins.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"applyMixins.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/applyMixins.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,WAAW,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,QAS7D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/args.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/args.d.ts deleted file mode 100644 index 0dfb0a0d1..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/args.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { SchedulerLike } from '../types'; -export declare function popResultSelector(args: any[]): ((...args: unknown[]) => unknown) | undefined; -export declare function popScheduler(args: any[]): SchedulerLike | undefined; -export declare function popNumber(args: any[], defaultValue: number): number; -//# sourceMappingURL=args.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/args.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/args.d.ts.map deleted file mode 100644 index 45de1ed95..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/args.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/args.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAQzC,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,GAAG,SAAS,CAE5F;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,aAAa,GAAG,SAAS,CAEnE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAEnE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/argsArgArrayOrObject.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/argsArgArrayOrObject.d.ts deleted file mode 100644 index de18e295a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/argsArgArrayOrObject.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Used in functions where either a list of arguments, a single array of arguments, or a - * dictionary of arguments can be returned. Returns an object with an `args` property with - * the arguments in an array, if it is a dictionary, it will also return the `keys` in another - * property. - */ -export declare function argsArgArrayOrObject>(args: T[] | [O] | [T[]]): { - args: T[]; - keys: string[] | null; -}; -//# sourceMappingURL=argsArgArrayOrObject.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/argsArgArrayOrObject.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/argsArgArrayOrObject.d.ts.map deleted file mode 100644 index fad6ddfb7..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/argsArgArrayOrObject.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"argsArgArrayOrObject.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/argsArgArrayOrObject.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,GAAG;IAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CAAE,CAgBlI"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/argsOrArgArray.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/argsOrArgArray.d.ts deleted file mode 100644 index 768d67443..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/argsOrArgArray.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Used in operators and functions that accept either a list of arguments, or an array of arguments - * as a single argument. - */ -export declare function argsOrArgArray(args: (T | T[])[]): T[]; -//# sourceMappingURL=argsOrArgArray.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/argsOrArgArray.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/argsOrArgArray.d.ts.map deleted file mode 100644 index 73f4d107f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/argsOrArgArray.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"argsOrArgArray.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/argsOrArgArray.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,CAExD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/arrRemove.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/arrRemove.d.ts deleted file mode 100644 index c7cb9fa60..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/arrRemove.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Removes an item from an array, mutating it. - * @param arr The array to remove the item from - * @param item The item to remove - */ -export declare function arrRemove(arr: T[] | undefined | null, item: T): void; -//# sourceMappingURL=arrRemove.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/arrRemove.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/arrRemove.d.ts.map deleted file mode 100644 index f31c2b3d1..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/arrRemove.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"arrRemove.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/arrRemove.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,SAAS,GAAG,IAAI,EAAE,IAAI,EAAE,CAAC,QAKhE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/createErrorClass.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/createErrorClass.d.ts deleted file mode 100644 index 0821eab0c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/createErrorClass.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Used to create Error subclasses until the community moves away from ES5. - * - * This is because compiling from TypeScript down to ES5 has issues with subclassing Errors - * as well as other built-in types: https://github.com/Microsoft/TypeScript/issues/12123 - * - * @param createImpl A factory function to create the actual constructor implementation. The returned - * function should be a named function that calls `_super` internally. - */ -export declare function createErrorClass(createImpl: (_super: any) => any): T; -//# sourceMappingURL=createErrorClass.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/createErrorClass.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/createErrorClass.d.ts.map deleted file mode 100644 index 2243a566d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/createErrorClass.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createErrorClass.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/createErrorClass.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,GAAG,CAAC,CAUvE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/createObject.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/createObject.d.ts deleted file mode 100644 index e9ae39e9e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/createObject.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function createObject(keys: string[], values: any[]): any; -//# sourceMappingURL=createObject.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/createObject.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/createObject.d.ts.map deleted file mode 100644 index e08ba0aa1..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/createObject.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"createObject.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/createObject.ts"],"names":[],"mappings":"AAAA,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAEzD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/errorContext.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/errorContext.d.ts deleted file mode 100644 index 5345a28a7..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/errorContext.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Handles dealing with errors for super-gross mode. Creates a context, in which - * any synchronously thrown errors will be passed to {@link captureError}. Which - * will record the error such that it will be rethrown after the call back is complete. - * TODO: Remove in v8 - * @param cb An immediately executed function. - */ -export declare function errorContext(cb: () => void): void; -/** - * Captures errors only in super-gross mode. - * @param err the error to capture - */ -export declare function captureError(err: any): void; -//# sourceMappingURL=errorContext.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/errorContext.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/errorContext.d.ts.map deleted file mode 100644 index d08a68733..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/errorContext.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"errorContext.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/errorContext.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,MAAM,IAAI,QAmB1C;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,GAAG,QAKpC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/executeSchedule.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/executeSchedule.d.ts deleted file mode 100644 index a46a606bc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/executeSchedule.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Subscription } from '../Subscription'; -import { SchedulerLike } from '../types'; -export declare function executeSchedule(parentSubscription: Subscription, scheduler: SchedulerLike, work: () => void, delay: number, repeat: true): void; -export declare function executeSchedule(parentSubscription: Subscription, scheduler: SchedulerLike, work: () => void, delay?: number, repeat?: false): Subscription; -//# sourceMappingURL=executeSchedule.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/executeSchedule.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/executeSchedule.d.ts.map deleted file mode 100644 index 3577be1f5..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/executeSchedule.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"executeSchedule.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/executeSchedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAmB,aAAa,EAAE,MAAM,UAAU,CAAC;AAE1D,wBAAgB,eAAe,CAC7B,kBAAkB,EAAE,YAAY,EAChC,SAAS,EAAE,aAAa,EACxB,IAAI,EAAE,MAAM,IAAI,EAChB,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,IAAI,GACX,IAAI,CAAC;AACR,wBAAgB,eAAe,CAC7B,kBAAkB,EAAE,YAAY,EAChC,SAAS,EAAE,aAAa,EACxB,IAAI,EAAE,MAAM,IAAI,EAChB,KAAK,CAAC,EAAE,MAAM,EACd,MAAM,CAAC,EAAE,KAAK,GACb,YAAY,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/identity.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/identity.d.ts deleted file mode 100644 index 328d6ed64..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/identity.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * This function takes one parameter and just returns it. Simply put, - * this is like `(x: T): T => x`. - * - * ## Examples - * - * This is useful in some cases when using things like `mergeMap` - * - * ```ts - * import { interval, take, map, range, mergeMap, identity } from 'rxjs'; - * - * const source$ = interval(1000).pipe(take(5)); - * - * const result$ = source$.pipe( - * map(i => range(i)), - * mergeMap(identity) // same as mergeMap(x => x) - * ); - * - * result$.subscribe({ - * next: console.log - * }); - * ``` - * - * Or when you want to selectively apply an operator - * - * ```ts - * import { interval, take, identity } from 'rxjs'; - * - * const shouldLimit = () => Math.random() < 0.5; - * - * const source$ = interval(1000); - * - * const result$ = source$.pipe(shouldLimit() ? take(5) : identity); - * - * result$.subscribe({ - * next: console.log - * }); - * ``` - * - * @param x Any value that is returned by this function - * @returns The value passed as the first parameter to this function - */ -export declare function identity(x: T): T; -//# sourceMappingURL=identity.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/identity.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/identity.d.ts.map deleted file mode 100644 index f52067b60..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/identity.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CAEnC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isArrayLike.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/isArrayLike.d.ts deleted file mode 100644 index f2878e558..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isArrayLike.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const isArrayLike: (x: any) => x is ArrayLike; -//# sourceMappingURL=isArrayLike.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isArrayLike.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/isArrayLike.d.ts.map deleted file mode 100644 index 3ef13030b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isArrayLike.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isArrayLike.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isArrayLike.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,SAAW,GAAG,sBAAqF,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isAsyncIterable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/isAsyncIterable.d.ts deleted file mode 100644 index dfb02067b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isAsyncIterable.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function isAsyncIterable(obj: any): obj is AsyncIterable; -//# sourceMappingURL=isAsyncIterable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isAsyncIterable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/isAsyncIterable.d.ts.map deleted file mode 100644 index 14807c3f1..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isAsyncIterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isAsyncIterable.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isAsyncIterable.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,aAAa,CAAC,CAAC,CAAC,CAEpE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isDate.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/isDate.d.ts deleted file mode 100644 index cb9a6ae80..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isDate.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Checks to see if a value is not only a `Date` object, - * but a *valid* `Date` object that can be converted to a - * number. For example, `new Date('blah')` is indeed an - * `instanceof Date`, however it cannot be converted to a - * number. - */ -export declare function isValidDate(value: any): value is Date; -//# sourceMappingURL=isDate.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isDate.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/isDate.d.ts.map deleted file mode 100644 index 59ef4f2dc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isDate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isDate.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isDate.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,IAAI,CAErD"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isFunction.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/isFunction.d.ts deleted file mode 100644 index b9ea60f1c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isFunction.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Returns true if the object is a function. - * @param value The value to check - */ -export declare function isFunction(value: any): value is (...args: any[]) => any; -//# sourceMappingURL=isFunction.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isFunction.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/isFunction.d.ts.map deleted file mode 100644 index b66e7088f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isFunction.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isFunction.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isFunction.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAEvE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isInteropObservable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/isInteropObservable.d.ts deleted file mode 100644 index 4a27f38a2..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isInteropObservable.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { InteropObservable } from '../types'; -/** Identifies an input as being Observable (but not necessary an Rx Observable) */ -export declare function isInteropObservable(input: any): input is InteropObservable; -//# sourceMappingURL=isInteropObservable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isInteropObservable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/isInteropObservable.d.ts.map deleted file mode 100644 index b76d5c54b..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isInteropObservable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isInteropObservable.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isInteropObservable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAI7C,mFAAmF;AACnF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,iBAAiB,CAAC,GAAG,CAAC,CAE/E"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isIterable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/isIterable.d.ts deleted file mode 100644 index f15282506..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isIterable.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/** Identifies an input as being an Iterable */ -export declare function isIterable(input: any): input is Iterable; -//# sourceMappingURL=isIterable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isIterable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/isIterable.d.ts.map deleted file mode 100644 index e605afa9e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isIterable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isIterable.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isIterable.ts"],"names":[],"mappings":"AAGA,+CAA+C;AAC/C,wBAAgB,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,QAAQ,CAAC,GAAG,CAAC,CAE7D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isObservable.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/isObservable.d.ts deleted file mode 100644 index d6b6211d6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isObservable.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** prettier */ -import { Observable } from '../Observable'; -/** - * Tests to see if the object is an RxJS {@link Observable} - * @param obj the object to test - */ -export declare function isObservable(obj: any): obj is Observable; -//# sourceMappingURL=isObservable.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isObservable.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/isObservable.d.ts.map deleted file mode 100644 index 569d59d4c..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isObservable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isObservable.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isObservable.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,CAIjE"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isPromise.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/isPromise.d.ts deleted file mode 100644 index 9090e3481..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isPromise.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Tests to see if the object is "thennable". - * @param value the object to test - */ -export declare function isPromise(value: any): value is PromiseLike; -//# sourceMappingURL=isPromise.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isPromise.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/isPromise.d.ts.map deleted file mode 100644 index df356b2d0..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isPromise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isPromise.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isPromise.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,WAAW,CAAC,GAAG,CAAC,CAE/D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isReadableStreamLike.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/isReadableStreamLike.d.ts deleted file mode 100644 index 3cb278228..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isReadableStreamLike.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { ReadableStreamLike } from '../types'; -export declare function readableStreamLikeToAsyncGenerator(readableStream: ReadableStreamLike): AsyncGenerator; -export declare function isReadableStreamLike(obj: any): obj is ReadableStreamLike; -//# sourceMappingURL=isReadableStreamLike.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isReadableStreamLike.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/isReadableStreamLike.d.ts.map deleted file mode 100644 index 1dadd18fc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isReadableStreamLike.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isReadableStreamLike.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isReadableStreamLike.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAG9C,wBAAuB,kCAAkC,CAAC,CAAC,EAAE,cAAc,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAarH;AAED,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAI9E"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isScheduler.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/isScheduler.d.ts deleted file mode 100644 index d637034a8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isScheduler.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { SchedulerLike } from '../types'; -export declare function isScheduler(value: any): value is SchedulerLike; -//# sourceMappingURL=isScheduler.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/isScheduler.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/isScheduler.d.ts.map deleted file mode 100644 index 4c42e4f3f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/isScheduler.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isScheduler.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/isScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAGzC,wBAAgB,WAAW,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,aAAa,CAE9D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/lift.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/lift.d.ts deleted file mode 100644 index 2fb543d42..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/lift.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscriber } from '../Subscriber'; -import { OperatorFunction } from '../types'; -/** - * Used to determine if an object is an Observable with a lift function. - */ -export declare function hasLift(source: any): source is { - lift: InstanceType['lift']; -}; -/** - * Creates an `OperatorFunction`. Used to define operators throughout the library in a concise way. - * @param init The logic to connect the liftedSource to the subscriber at the moment of subscription. - */ -export declare function operate(init: (liftedSource: Observable, subscriber: Subscriber) => (() => void) | void): OperatorFunction; -//# sourceMappingURL=lift.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/lift.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/lift.d.ts.map deleted file mode 100644 index 9008a324a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/lift.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lift.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/lift.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAG5C;;GAEG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI;IAAE,IAAI,EAAE,YAAY,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAA;CAAE,CAEhG;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAC1B,IAAI,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,IAAI,CAAC,GAAG,IAAI,GACpF,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAaxB"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/mapOneOrManyArgs.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/mapOneOrManyArgs.d.ts deleted file mode 100644 index ec7d8edf6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/mapOneOrManyArgs.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { OperatorFunction } from "../types"; -/** - * Used in several -- mostly deprecated -- situations where we need to - * apply a list of arguments or a single argument to a result selector. - */ -export declare function mapOneOrManyArgs(fn: ((...values: T[]) => R)): OperatorFunction; -//# sourceMappingURL=mapOneOrManyArgs.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/mapOneOrManyArgs.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/mapOneOrManyArgs.d.ts.map deleted file mode 100644 index f49853985..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/mapOneOrManyArgs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mapOneOrManyArgs.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/mapOneOrManyArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAS5C;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,GAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAE9F"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/noop.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/noop.d.ts deleted file mode 100644 index 57938f41f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/noop.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function noop(): void; -//# sourceMappingURL=noop.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/noop.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/noop.d.ts.map deleted file mode 100644 index c4effe907..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/noop.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"noop.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/noop.ts"],"names":[],"mappings":"AACA,wBAAgB,IAAI,SAAM"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/not.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/not.d.ts deleted file mode 100644 index 85e3f8e62..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/not.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function not(pred: (value: T, index: number) => boolean, thisArg: any): (value: T, index: number) => boolean; -//# sourceMappingURL=not.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/not.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/not.d.ts.map deleted file mode 100644 index 07dbbe40d..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/not.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"not.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/not.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,CAErH"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/pipe.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/pipe.d.ts deleted file mode 100644 index 4df727f04..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/pipe.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { identity } from './identity'; -import { UnaryFunction } from '../types'; -export declare function pipe(): typeof identity; -export declare function pipe(fn1: UnaryFunction): UnaryFunction; -export declare function pipe(fn1: UnaryFunction, fn2: UnaryFunction): UnaryFunction; -export declare function pipe(fn1: UnaryFunction, fn2: UnaryFunction, fn3: UnaryFunction): UnaryFunction; -export declare function pipe(fn1: UnaryFunction, fn2: UnaryFunction, fn3: UnaryFunction, fn4: UnaryFunction): UnaryFunction; -export declare function pipe(fn1: UnaryFunction, fn2: UnaryFunction, fn3: UnaryFunction, fn4: UnaryFunction, fn5: UnaryFunction): UnaryFunction; -export declare function pipe(fn1: UnaryFunction, fn2: UnaryFunction, fn3: UnaryFunction, fn4: UnaryFunction, fn5: UnaryFunction, fn6: UnaryFunction): UnaryFunction; -export declare function pipe(fn1: UnaryFunction, fn2: UnaryFunction, fn3: UnaryFunction, fn4: UnaryFunction, fn5: UnaryFunction, fn6: UnaryFunction, fn7: UnaryFunction): UnaryFunction; -export declare function pipe(fn1: UnaryFunction, fn2: UnaryFunction, fn3: UnaryFunction, fn4: UnaryFunction, fn5: UnaryFunction, fn6: UnaryFunction, fn7: UnaryFunction, fn8: UnaryFunction): UnaryFunction; -export declare function pipe(fn1: UnaryFunction, fn2: UnaryFunction, fn3: UnaryFunction, fn4: UnaryFunction, fn5: UnaryFunction, fn6: UnaryFunction, fn7: UnaryFunction, fn8: UnaryFunction, fn9: UnaryFunction): UnaryFunction; -export declare function pipe(fn1: UnaryFunction, fn2: UnaryFunction, fn3: UnaryFunction, fn4: UnaryFunction, fn5: UnaryFunction, fn6: UnaryFunction, fn7: UnaryFunction, fn8: UnaryFunction, fn9: UnaryFunction, ...fns: UnaryFunction[]): UnaryFunction; -//# sourceMappingURL=pipe.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/pipe.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/pipe.d.ts.map deleted file mode 100644 index 9e06cc867..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/pipe.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pipe.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,wBAAgB,IAAI,IAAI,OAAO,QAAQ,CAAC;AACxC,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC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EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAC/C,GAAG,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EACxB,GAAG,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EACxB,GAAG,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EACxB,GAAG,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EACxB,GAAG,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EACxB,GAAG,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EACxB,GAAG,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EACxB,GAAG,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EACxB,GAAG,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EACxB,GAAG,GAAG,EAAE,aAAa,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAChC,aAAa,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/reportUnhandledError.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/reportUnhandledError.d.ts deleted file mode 100644 index c0b8d4170..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/reportUnhandledError.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Handles an error on another job either with the user-configured {@link onUnhandledError}, - * or by throwing it on that new job so it can be picked up by `window.onerror`, `process.on('error')`, etc. - * - * This should be called whenever there is an error that is out-of-band with the subscription - * or when an error hits a terminal boundary of the subscription and no error handler was provided. - * - * @param err the error to report - */ -export declare function reportUnhandledError(err: any): void; -//# sourceMappingURL=reportUnhandledError.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/reportUnhandledError.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/reportUnhandledError.d.ts.map deleted file mode 100644 index 92adc5e3f..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/reportUnhandledError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reportUnhandledError.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/reportUnhandledError.ts"],"names":[],"mappings":"AAGA;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,GAAG,QAW5C"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/subscribeToArray.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/subscribeToArray.d.ts deleted file mode 100644 index 543b96127..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/subscribeToArray.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Subscriber } from '../Subscriber'; -/** - * Subscribes to an ArrayLike with a subscriber - * @param array The array or array-like to subscribe to - */ -export declare const subscribeToArray: (array: ArrayLike) => (subscriber: Subscriber) => void; -//# sourceMappingURL=subscribeToArray.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/subscribeToArray.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/subscribeToArray.d.ts.map deleted file mode 100644 index 279c67162..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/subscribeToArray.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"subscribeToArray.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/subscribeToArray.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,gBAAgB,iEAK5B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/throwUnobservableError.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/throwUnobservableError.d.ts deleted file mode 100644 index b07130b6a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/throwUnobservableError.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Creates the TypeError to throw if an invalid object is passed to `from` or `scheduled`. - * @param input The object that was passed. - */ -export declare function createInvalidObservableTypeError(input: any): TypeError; -//# sourceMappingURL=throwUnobservableError.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/throwUnobservableError.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/throwUnobservableError.d.ts.map deleted file mode 100644 index e1a43abd6..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/throwUnobservableError.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throwUnobservableError.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/throwUnobservableError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,GAAG,aAO1D"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/workarounds.d.ts b/WechatBot/node_modules/rxjs/dist/types/internal/util/workarounds.d.ts deleted file mode 100644 index 53c76a45a..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/workarounds.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=workarounds.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/internal/util/workarounds.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/internal/util/workarounds.d.ts.map deleted file mode 100644 index 6419f2e97..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/internal/util/workarounds.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"workarounds.d.ts","sourceRoot":"","sources":["../../../../src/internal/util/workarounds.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAA"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/operators/index.d.ts b/WechatBot/node_modules/rxjs/dist/types/operators/index.d.ts deleted file mode 100644 index 5b9232cdd..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/operators/index.d.ts +++ /dev/null @@ -1,114 +0,0 @@ -export { audit } from '../internal/operators/audit'; -export { auditTime } from '../internal/operators/auditTime'; -export { buffer } from '../internal/operators/buffer'; -export { bufferCount } from '../internal/operators/bufferCount'; -export { bufferTime } from '../internal/operators/bufferTime'; -export { bufferToggle } from '../internal/operators/bufferToggle'; -export { bufferWhen } from '../internal/operators/bufferWhen'; -export { catchError } from '../internal/operators/catchError'; -export { combineAll } from '../internal/operators/combineAll'; -export { combineLatestAll } from '../internal/operators/combineLatestAll'; -export { combineLatest } from '../internal/operators/combineLatest'; -export { combineLatestWith } from '../internal/operators/combineLatestWith'; -export { concat } from '../internal/operators/concat'; -export { concatAll } from '../internal/operators/concatAll'; -export { concatMap } from '../internal/operators/concatMap'; -export { concatMapTo } from '../internal/operators/concatMapTo'; -export { concatWith } from '../internal/operators/concatWith'; -export { connect, ConnectConfig } from '../internal/operators/connect'; -export { count } from '../internal/operators/count'; -export { debounce } from '../internal/operators/debounce'; -export { debounceTime } from '../internal/operators/debounceTime'; -export { defaultIfEmpty } from '../internal/operators/defaultIfEmpty'; -export { delay } from '../internal/operators/delay'; -export { delayWhen } from '../internal/operators/delayWhen'; -export { dematerialize } from '../internal/operators/dematerialize'; -export { distinct } from '../internal/operators/distinct'; -export { distinctUntilChanged } from '../internal/operators/distinctUntilChanged'; -export { distinctUntilKeyChanged } from '../internal/operators/distinctUntilKeyChanged'; -export { elementAt } from '../internal/operators/elementAt'; -export { endWith } from '../internal/operators/endWith'; -export { every } from '../internal/operators/every'; -export { exhaust } from '../internal/operators/exhaust'; -export { exhaustAll } from '../internal/operators/exhaustAll'; -export { exhaustMap } from '../internal/operators/exhaustMap'; -export { expand } from '../internal/operators/expand'; -export { filter } from '../internal/operators/filter'; -export { finalize } from '../internal/operators/finalize'; -export { find } from '../internal/operators/find'; -export { findIndex } from '../internal/operators/findIndex'; -export { first } from '../internal/operators/first'; -export { groupBy, BasicGroupByOptions, GroupByOptionsWithElement } from '../internal/operators/groupBy'; -export { ignoreElements } from '../internal/operators/ignoreElements'; -export { isEmpty } from '../internal/operators/isEmpty'; -export { last } from '../internal/operators/last'; -export { map } from '../internal/operators/map'; -export { mapTo } from '../internal/operators/mapTo'; -export { materialize } from '../internal/operators/materialize'; -export { max } from '../internal/operators/max'; -export { merge } from '../internal/operators/merge'; -export { mergeAll } from '../internal/operators/mergeAll'; -export { flatMap } from '../internal/operators/flatMap'; -export { mergeMap } from '../internal/operators/mergeMap'; -export { mergeMapTo } from '../internal/operators/mergeMapTo'; -export { mergeScan } from '../internal/operators/mergeScan'; -export { mergeWith } from '../internal/operators/mergeWith'; -export { min } from '../internal/operators/min'; -export { multicast } from '../internal/operators/multicast'; -export { observeOn } from '../internal/operators/observeOn'; -export { onErrorResumeNext } from '../internal/operators/onErrorResumeNextWith'; -export { pairwise } from '../internal/operators/pairwise'; -export { partition } from '../internal/operators/partition'; -export { pluck } from '../internal/operators/pluck'; -export { publish } from '../internal/operators/publish'; -export { publishBehavior } from '../internal/operators/publishBehavior'; -export { publishLast } from '../internal/operators/publishLast'; -export { publishReplay } from '../internal/operators/publishReplay'; -export { race } from '../internal/operators/race'; -export { raceWith } from '../internal/operators/raceWith'; -export { reduce } from '../internal/operators/reduce'; -export { repeat, RepeatConfig } from '../internal/operators/repeat'; -export { repeatWhen } from '../internal/operators/repeatWhen'; -export { retry, RetryConfig } from '../internal/operators/retry'; -export { retryWhen } from '../internal/operators/retryWhen'; -export { refCount } from '../internal/operators/refCount'; -export { sample } from '../internal/operators/sample'; -export { sampleTime } from '../internal/operators/sampleTime'; -export { scan } from '../internal/operators/scan'; -export { sequenceEqual } from '../internal/operators/sequenceEqual'; -export { share, ShareConfig } from '../internal/operators/share'; -export { shareReplay, ShareReplayConfig } from '../internal/operators/shareReplay'; -export { single } from '../internal/operators/single'; -export { skip } from '../internal/operators/skip'; -export { skipLast } from '../internal/operators/skipLast'; -export { skipUntil } from '../internal/operators/skipUntil'; -export { skipWhile } from '../internal/operators/skipWhile'; -export { startWith } from '../internal/operators/startWith'; -export { subscribeOn } from '../internal/operators/subscribeOn'; -export { switchAll } from '../internal/operators/switchAll'; -export { switchMap } from '../internal/operators/switchMap'; -export { switchMapTo } from '../internal/operators/switchMapTo'; -export { switchScan } from '../internal/operators/switchScan'; -export { take } from '../internal/operators/take'; -export { takeLast } from '../internal/operators/takeLast'; -export { takeUntil } from '../internal/operators/takeUntil'; -export { takeWhile } from '../internal/operators/takeWhile'; -export { tap, TapObserver } from '../internal/operators/tap'; -export { throttle, ThrottleConfig } from '../internal/operators/throttle'; -export { throttleTime } from '../internal/operators/throttleTime'; -export { throwIfEmpty } from '../internal/operators/throwIfEmpty'; -export { timeInterval } from '../internal/operators/timeInterval'; -export { timeout, TimeoutConfig, TimeoutInfo } from '../internal/operators/timeout'; -export { timeoutWith } from '../internal/operators/timeoutWith'; -export { timestamp } from '../internal/operators/timestamp'; -export { toArray } from '../internal/operators/toArray'; -export { window } from '../internal/operators/window'; -export { windowCount } from '../internal/operators/windowCount'; -export { windowTime } from '../internal/operators/windowTime'; -export { windowToggle } from '../internal/operators/windowToggle'; -export { windowWhen } from '../internal/operators/windowWhen'; -export { withLatestFrom } from '../internal/operators/withLatestFrom'; -export { zip } from '../internal/operators/zip'; -export { zipAll } from '../internal/operators/zipAll'; -export { zipWith } from '../internal/operators/zipWith'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/operators/index.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/operators/index.d.ts.map deleted file mode 100644 index 39202120e..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/operators/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operators/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA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5D,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAE,GAAG,EAAE,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/testing/index.d.ts b/WechatBot/node_modules/rxjs/dist/types/testing/index.d.ts deleted file mode 100644 index 989b5d9a8..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/testing/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { TestScheduler, RunHelpers } from '../internal/testing/TestScheduler'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/testing/index.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/testing/index.d.ts.map deleted file mode 100644 index f5da557b7..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/testing/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/webSocket/index.d.ts b/WechatBot/node_modules/rxjs/dist/types/webSocket/index.d.ts deleted file mode 100644 index 2e1940d29..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/webSocket/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { webSocket as webSocket } from '../internal/observable/dom/webSocket'; -export { WebSocketSubject, WebSocketSubjectConfig } from '../internal/observable/dom/WebSocketSubject'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/dist/types/webSocket/index.d.ts.map b/WechatBot/node_modules/rxjs/dist/types/webSocket/index.d.ts.map deleted file mode 100644 index a38d6bccc..000000000 --- a/WechatBot/node_modules/rxjs/dist/types/webSocket/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/webSocket/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC"} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/fetch/package.json b/WechatBot/node_modules/rxjs/fetch/package.json deleted file mode 100644 index 892f35800..000000000 --- a/WechatBot/node_modules/rxjs/fetch/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "rxjs/fetch", - "types": "../dist/types/fetch/index.d.ts", - "main": "../dist/cjs/fetch/index.js", - "module": "../dist/esm5/fetch/index.js", - "es2015": "../dist/esm/fetch/index.js", - "sideEffects": false -} diff --git a/WechatBot/node_modules/rxjs/operators/package.json b/WechatBot/node_modules/rxjs/operators/package.json deleted file mode 100644 index 302736ddf..000000000 --- a/WechatBot/node_modules/rxjs/operators/package.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "name": "rxjs/operators", - "types": "../dist/types/operators/index.d.ts", - "main": "../dist/cjs/operators/index.js", - "module": "../dist/esm5/operators/index.js", - "es2015": "../dist/esm/operators/index.js", - "sideEffects": false -} diff --git a/WechatBot/node_modules/rxjs/package.json b/WechatBot/node_modules/rxjs/package.json deleted file mode 100644 index 97084fa31..000000000 --- a/WechatBot/node_modules/rxjs/package.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "name": "rxjs", - "version": "7.8.1", - "description": "Reactive Extensions for modern JavaScript", - "main": "./dist/cjs/index.js", - "module": "./dist/esm5/index.js", - "es2015": "./dist/esm/index.js", - "types": "index.d.ts", - "typesVersions": { - ">=4.2": { - "*": [ - "dist/types/*" - ] - } - }, - "sideEffects": false, - "exports": { - ".": { - "types": "./dist/types/index.d.ts", - "node": "./dist/cjs/index.js", - "require": "./dist/cjs/index.js", - "es2015": "./dist/esm/index.js", - "default": "./dist/esm5/index.js" - }, - "./ajax": { - "types": "./dist/types/ajax/index.d.ts", - "node": "./dist/cjs/ajax/index.js", - "require": "./dist/cjs/ajax/index.js", - "es2015": "./dist/esm/ajax/index.js", - "default": "./dist/esm5/ajax/index.js" - }, - "./fetch": { - "types": "./dist/types/fetch/index.d.ts", - "node": "./dist/cjs/fetch/index.js", - "require": "./dist/cjs/fetch/index.js", - "es2015": "./dist/esm/fetch/index.js", - "default": "./dist/esm5/fetch/index.js" - }, - "./operators": { - "types": "./dist/types/operators/index.d.ts", - "node": "./dist/cjs/operators/index.js", - "require": "./dist/cjs/operators/index.js", - "es2015": "./dist/esm/operators/index.js", - "default": "./dist/esm5/operators/index.js" - }, - "./testing": { - "types": "./dist/types/testing/index.d.ts", - "node": "./dist/cjs/testing/index.js", - "require": "./dist/cjs/testing/index.js", - "es2015": "./dist/esm/testing/index.js", - "default": "./dist/esm5/testing/index.js" - }, - "./webSocket": { - "types": "./dist/types/webSocket/index.d.ts", - "node": "./dist/cjs/webSocket/index.js", - "require": "./dist/cjs/webSocket/index.js", - "es2015": "./dist/esm/webSocket/index.js", - "default": "./dist/esm5/webSocket/index.js" - }, - "./internal/*": { - "types": "./dist/types/internal/*.d.ts", - "node": "./dist/cjs/internal/*.js", - "require": "./dist/cjs/internal/*.js", - "es2015": "./dist/esm/internal/*.js", - "default": "./dist/esm5/internal/*.js" - }, - "./package.json": "./package.json" - }, - "config": { - "commitizen": { - "path": "cz-conventional-changelog" - } - }, - "lint-staged": { - "*.js": "eslint --cache --fix", - "(src|spec)/**/*.ts": [ - "tslint --fix", - "prettier --write" - ], - "*.{js,css,md}": "prettier --write" - }, - "scripts": { - "changelog": "npx conventional-changelog-cli -p angular -i CHANGELOG.md -s", - "build:spec:browser": "echo \"Browser test is not working currently\" && exit -1 && webpack --config spec/support/webpack.mocha.config.js", - "lint_spec": "tslint -c spec/tslint.json -p spec/tsconfig.json \"spec/**/*.ts\"", - "lint_src": "tslint -c tslint.json -p src/tsconfig.base.json \"src/**/*.ts\"", - "lint": "npm-run-all --parallel lint_*", - "dtslint": "tsc -b ./src/tsconfig.types.json && tslint -c spec-dtslint/tslint.json -p spec-dtslint/tsconfig.json \"spec-dtslint/**/*.ts\"", - "prepublishOnly": "npm run build:package && npm run lint && npm run test && npm run test:circular && npm run dtslint && npm run test:side-effects", - "publish_docs": "./publish_docs.sh", - "test": "cross-env TS_NODE_PROJECT=tsconfig.mocha.json mocha --config spec/support/.mocharc.js \"spec/**/*-spec.ts\"", - "test:esm": "node spec/module-test-spec.mjs", - "test:browser": "echo \"Browser test is not working currently\" && exit -1 && npm-run-all build:spec:browser && opn spec/support/mocha-browser-runner.html", - "test:circular": "dependency-cruiser --validate .dependency-cruiser.json -x \"^node_modules\" dist/esm5", - "test:systemjs": "node integration/systemjs/systemjs-compatibility-spec.js", - "test:side-effects": "check-side-effects --test integration/side-effects/side-effects.json", - "test:side-effects:update": "npm run test:side-effects -- --update", - "test:import": "ts-node ./integration/import/runner.ts", - "compile": "tsc -b ./src/tsconfig.cjs.json ./src/tsconfig.cjs.spec.json ./src/tsconfig.esm.json ./src/tsconfig.esm5.json ./src/tsconfig.esm5.rollup.json ./src/tsconfig.types.json ./src/tsconfig.types.spec.json ./spec/tsconfig.json", - "build:clean": "shx rm -rf ./dist", - "build:global": "node ./tools/make-umd-bundle.js && node ./tools/make-closure-core.js", - "build:package": "npm-run-all build:clean compile build:global && node ./tools/prepare-package.js && node ./tools/generate-alias.js", - "watch": "nodemon -w \"src/\" -w \"spec/\" -e ts -x npm test", - "watch:dtslint": "nodemon -w \"src/\" -w \"spec-dtslint/\" -e ts -x npm run dtslint" - }, - "repository": { - "type": "git", - "url": "https://github.com/reactivex/rxjs.git" - }, - "keywords": [ - "Rx", - "RxJS", - "ReactiveX", - "ReactiveExtensions", - "Streams", - "Observables", - "Observable", - "Stream", - "ES6", - "ES2015" - ], - "author": "Ben Lesh ", - "contributors": [ - { - "name": "Ben Lesh", - "email": "ben@benlesh.com" - }, - { - "name": "Paul Taylor", - "email": "paul.e.taylor@me.com" - }, - { - "name": "Jeff Cross", - "email": "crossj@google.com" - }, - { - "name": "Matthew Podwysocki", - "email": "matthewp@microsoft.com" - }, - { - "name": "OJ Kwon", - "email": "kwon.ohjoong@gmail.com" - }, - { - "name": "Andre Staltz", - "email": "andre@staltz.com" - } - ], - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/ReactiveX/RxJS/issues" - }, - "homepage": "https://rxjs.dev", - "dependencies": { - "tslib": "^2.1.0" - }, - "devDependencies": { - "@angular-devkit/build-optimizer": "0.4.6", - "@angular-devkit/schematics": "^11.0.7", - "@swc/core": "^1.2.128", - "@swc/helpers": "^0.3.2", - "@types/chai": "^4.2.11", - "@types/lodash": "4.14.102", - "@types/mocha": "^7.0.2", - "@types/node": "^14.14.6", - "@types/shelljs": "^0.8.8", - "@types/sinon": "4.1.3", - "@types/sinon-chai": "2.7.29", - "@types/source-map": "^0.5.2", - "@typescript-eslint/eslint-plugin": "^4.29.1", - "@typescript-eslint/parser": "^4.29.1", - "babel-polyfill": "6.26.0", - "chai": "^4.2.0", - "check-side-effects": "0.0.23", - "color": "3.0.0", - "colors": "1.1.2", - "cross-env": "5.1.3", - "cz-conventional-changelog": "1.2.0", - "dependency-cruiser": "^9.12.0", - "escape-string-regexp": "1.0.5", - "eslint": "^7.8.1", - "eslint-plugin-jasmine": "^2.10.1", - "form-data": "^3.0.0", - "fs-extra": "^8.1.0", - "glob": "7.1.2", - "google-closure-compiler-js": "20170218.0.0", - "husky": "^4.2.5", - "klaw-sync": "3.0.2", - "lint-staged": "^10.2.11", - "lodash": "^4.17.15", - "minimist": "^1.2.5", - "mocha": "^8.1.3", - "nodemon": "^1.9.2", - "npm-run-all": "4.1.2", - "opn-cli": "3.1.0", - "platform": "1.3.5", - "prettier": "^2.5.1", - "promise": "8.0.1", - "rollup": "0.66.6", - "rollup-plugin-alias": "1.4.0", - "rollup-plugin-inject": "2.0.0", - "rollup-plugin-node-resolve": "2.0.0", - "shelljs": "^0.8.4", - "shx": "^0.3.2", - "sinon": "4.3.0", - "sinon-chai": "2.14.0", - "source-map-support": "0.5.3", - "systemjs": "^0.21.0", - "ts-node": "^9.1.1", - "tslint": "^5.20.1", - "tslint-config-prettier": "^1.18.0", - "tslint-etc": "1.13.10", - "tslint-no-toplevel-property-access": "0.0.2", - "tslint-no-unused-expression-chai": "0.0.3", - "typescript": "~4.2.0", - "validate-commit-msg": "2.14.0", - "web-streams-polyfill": "^3.0.2", - "webpack": "^4.31.0" - }, - "files": [ - "dist/bundles", - "dist/cjs/**/!(*.tsbuildinfo)", - "dist/esm/**/!(*.tsbuildinfo)", - "dist/esm5/**/!(*.tsbuildinfo)", - "dist/types/**/!(*.tsbuildinfo)", - "ajax", - "fetch", - "operators", - "testing", - "webSocket", - "src", - "CHANGELOG.md", - "CODE_OF_CONDUCT.md", - "LICENSE.txt", - "package.json", - "README.md", - "tsconfig.json" - ], - "husky": { - "hooks": { - "pre-commit": "lint-staged", - "commit-msg": "validate-commit-msg" - } - } -} diff --git a/WechatBot/node_modules/rxjs/src/Rx.global.js b/WechatBot/node_modules/rxjs/src/Rx.global.js deleted file mode 100755 index d75682b21..000000000 --- a/WechatBot/node_modules/rxjs/src/Rx.global.js +++ /dev/null @@ -1,5 +0,0 @@ -(function (root, factory) { - root.Rx = factory(); -})(window || global || this, function () { - return require('../dist/package/Rx'); -}); \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/src/ajax/index.ts b/WechatBot/node_modules/rxjs/src/ajax/index.ts deleted file mode 100644 index f30f026bc..000000000 --- a/WechatBot/node_modules/rxjs/src/ajax/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { ajax } from '../internal/ajax/ajax'; -export { AjaxError, AjaxTimeoutError } from '../internal/ajax/errors'; -export { AjaxResponse } from '../internal/ajax/AjaxResponse'; -export { AjaxRequest, AjaxConfig, AjaxDirection } from '../internal/ajax/types'; diff --git a/WechatBot/node_modules/rxjs/src/fetch/index.ts b/WechatBot/node_modules/rxjs/src/fetch/index.ts deleted file mode 100644 index e6ff01da2..000000000 --- a/WechatBot/node_modules/rxjs/src/fetch/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { fromFetch } from '../internal/observable/dom/fetch'; diff --git a/WechatBot/node_modules/rxjs/src/index.ts b/WechatBot/node_modules/rxjs/src/index.ts deleted file mode 100644 index 1805341df..000000000 --- a/WechatBot/node_modules/rxjs/src/index.ts +++ /dev/null @@ -1,209 +0,0 @@ -////////////////////////////////////////////////////////// -// Here we need to reference our other deep imports -// so VS code will figure out where they are -// see conversation here: -// https://github.com/microsoft/TypeScript/issues/43034 -////////////////////////////////////////////////////////// - -// tslint:disable: no-reference -// It's tempting to add references to all of the deep-import locations, but -// adding references to those that require DOM types breaks Node projects. -/// -/// -// tslint:enable: no-reference - -/* Observable */ -export { Observable } from './internal/Observable'; -export { ConnectableObservable } from './internal/observable/ConnectableObservable'; -export { GroupedObservable } from './internal/operators/groupBy'; -export { Operator } from './internal/Operator'; -export { observable } from './internal/symbol/observable'; -export { animationFrames } from './internal/observable/dom/animationFrames'; - -/* Subjects */ -export { Subject } from './internal/Subject'; -export { BehaviorSubject } from './internal/BehaviorSubject'; -export { ReplaySubject } from './internal/ReplaySubject'; -export { AsyncSubject } from './internal/AsyncSubject'; - -/* Schedulers */ -export { asap, asapScheduler } from './internal/scheduler/asap'; -export { async, asyncScheduler } from './internal/scheduler/async'; -export { queue, queueScheduler } from './internal/scheduler/queue'; -export { animationFrame, animationFrameScheduler } from './internal/scheduler/animationFrame'; -export { VirtualTimeScheduler, VirtualAction } from './internal/scheduler/VirtualTimeScheduler'; -export { Scheduler } from './internal/Scheduler'; - -/* Subscription */ -export { Subscription } from './internal/Subscription'; -export { Subscriber } from './internal/Subscriber'; - -/* Notification */ -export { Notification, NotificationKind } from './internal/Notification'; - -/* Utils */ -export { pipe } from './internal/util/pipe'; -export { noop } from './internal/util/noop'; -export { identity } from './internal/util/identity'; -export { isObservable } from './internal/util/isObservable'; - -/* Promise Conversion */ -export { lastValueFrom } from './internal/lastValueFrom'; -export { firstValueFrom } from './internal/firstValueFrom'; - -/* Error types */ -export { ArgumentOutOfRangeError } from './internal/util/ArgumentOutOfRangeError'; -export { EmptyError } from './internal/util/EmptyError'; -export { NotFoundError } from './internal/util/NotFoundError'; -export { ObjectUnsubscribedError } from './internal/util/ObjectUnsubscribedError'; -export { SequenceError } from './internal/util/SequenceError'; -export { TimeoutError } from './internal/operators/timeout'; -export { UnsubscriptionError } from './internal/util/UnsubscriptionError'; - -/* Static observable creation exports */ -export { bindCallback } from './internal/observable/bindCallback'; -export { bindNodeCallback } from './internal/observable/bindNodeCallback'; -export { combineLatest } from './internal/observable/combineLatest'; -export { concat } from './internal/observable/concat'; -export { connectable } from './internal/observable/connectable'; -export { defer } from './internal/observable/defer'; -export { empty } from './internal/observable/empty'; -export { forkJoin } from './internal/observable/forkJoin'; -export { from } from './internal/observable/from'; -export { fromEvent } from './internal/observable/fromEvent'; -export { fromEventPattern } from './internal/observable/fromEventPattern'; -export { generate } from './internal/observable/generate'; -export { iif } from './internal/observable/iif'; -export { interval } from './internal/observable/interval'; -export { merge } from './internal/observable/merge'; -export { never } from './internal/observable/never'; -export { of } from './internal/observable/of'; -export { onErrorResumeNext } from './internal/observable/onErrorResumeNext'; -export { pairs } from './internal/observable/pairs'; -export { partition } from './internal/observable/partition'; -export { race } from './internal/observable/race'; -export { range } from './internal/observable/range'; -export { throwError } from './internal/observable/throwError'; -export { timer } from './internal/observable/timer'; -export { using } from './internal/observable/using'; -export { zip } from './internal/observable/zip'; -export { scheduled } from './internal/scheduled/scheduled'; - -/* Constants */ -export { EMPTY } from './internal/observable/empty'; -export { NEVER } from './internal/observable/never'; - -/* Types */ -export * from './internal/types'; - -/* Config */ -export { config, GlobalConfig } from './internal/config'; - -/* Operators */ -export { audit } from './internal/operators/audit'; -export { auditTime } from './internal/operators/auditTime'; -export { buffer } from './internal/operators/buffer'; -export { bufferCount } from './internal/operators/bufferCount'; -export { bufferTime } from './internal/operators/bufferTime'; -export { bufferToggle } from './internal/operators/bufferToggle'; -export { bufferWhen } from './internal/operators/bufferWhen'; -export { catchError } from './internal/operators/catchError'; -export { combineAll } from './internal/operators/combineAll'; -export { combineLatestAll } from './internal/operators/combineLatestAll'; -export { combineLatestWith } from './internal/operators/combineLatestWith'; -export { concatAll } from './internal/operators/concatAll'; -export { concatMap } from './internal/operators/concatMap'; -export { concatMapTo } from './internal/operators/concatMapTo'; -export { concatWith } from './internal/operators/concatWith'; -export { connect, ConnectConfig } from './internal/operators/connect'; -export { count } from './internal/operators/count'; -export { debounce } from './internal/operators/debounce'; -export { debounceTime } from './internal/operators/debounceTime'; -export { defaultIfEmpty } from './internal/operators/defaultIfEmpty'; -export { delay } from './internal/operators/delay'; -export { delayWhen } from './internal/operators/delayWhen'; -export { dematerialize } from './internal/operators/dematerialize'; -export { distinct } from './internal/operators/distinct'; -export { distinctUntilChanged } from './internal/operators/distinctUntilChanged'; -export { distinctUntilKeyChanged } from './internal/operators/distinctUntilKeyChanged'; -export { elementAt } from './internal/operators/elementAt'; -export { endWith } from './internal/operators/endWith'; -export { every } from './internal/operators/every'; -export { exhaust } from './internal/operators/exhaust'; -export { exhaustAll } from './internal/operators/exhaustAll'; -export { exhaustMap } from './internal/operators/exhaustMap'; -export { expand } from './internal/operators/expand'; -export { filter } from './internal/operators/filter'; -export { finalize } from './internal/operators/finalize'; -export { find } from './internal/operators/find'; -export { findIndex } from './internal/operators/findIndex'; -export { first } from './internal/operators/first'; -export { groupBy, BasicGroupByOptions, GroupByOptionsWithElement } from './internal/operators/groupBy'; -export { ignoreElements } from './internal/operators/ignoreElements'; -export { isEmpty } from './internal/operators/isEmpty'; -export { last } from './internal/operators/last'; -export { map } from './internal/operators/map'; -export { mapTo } from './internal/operators/mapTo'; -export { materialize } from './internal/operators/materialize'; -export { max } from './internal/operators/max'; -export { mergeAll } from './internal/operators/mergeAll'; -export { flatMap } from './internal/operators/flatMap'; -export { mergeMap } from './internal/operators/mergeMap'; -export { mergeMapTo } from './internal/operators/mergeMapTo'; -export { mergeScan } from './internal/operators/mergeScan'; -export { mergeWith } from './internal/operators/mergeWith'; -export { min } from './internal/operators/min'; -export { multicast } from './internal/operators/multicast'; -export { observeOn } from './internal/operators/observeOn'; -export { onErrorResumeNextWith } from './internal/operators/onErrorResumeNextWith'; -export { pairwise } from './internal/operators/pairwise'; -export { pluck } from './internal/operators/pluck'; -export { publish } from './internal/operators/publish'; -export { publishBehavior } from './internal/operators/publishBehavior'; -export { publishLast } from './internal/operators/publishLast'; -export { publishReplay } from './internal/operators/publishReplay'; -export { raceWith } from './internal/operators/raceWith'; -export { reduce } from './internal/operators/reduce'; -export { repeat, RepeatConfig } from './internal/operators/repeat'; -export { repeatWhen } from './internal/operators/repeatWhen'; -export { retry, RetryConfig } from './internal/operators/retry'; -export { retryWhen } from './internal/operators/retryWhen'; -export { refCount } from './internal/operators/refCount'; -export { sample } from './internal/operators/sample'; -export { sampleTime } from './internal/operators/sampleTime'; -export { scan } from './internal/operators/scan'; -export { sequenceEqual } from './internal/operators/sequenceEqual'; -export { share, ShareConfig } from './internal/operators/share'; -export { shareReplay, ShareReplayConfig } from './internal/operators/shareReplay'; -export { single } from './internal/operators/single'; -export { skip } from './internal/operators/skip'; -export { skipLast } from './internal/operators/skipLast'; -export { skipUntil } from './internal/operators/skipUntil'; -export { skipWhile } from './internal/operators/skipWhile'; -export { startWith } from './internal/operators/startWith'; -export { subscribeOn } from './internal/operators/subscribeOn'; -export { switchAll } from './internal/operators/switchAll'; -export { switchMap } from './internal/operators/switchMap'; -export { switchMapTo } from './internal/operators/switchMapTo'; -export { switchScan } from './internal/operators/switchScan'; -export { take } from './internal/operators/take'; -export { takeLast } from './internal/operators/takeLast'; -export { takeUntil } from './internal/operators/takeUntil'; -export { takeWhile } from './internal/operators/takeWhile'; -export { tap, TapObserver } from './internal/operators/tap'; -export { throttle, ThrottleConfig } from './internal/operators/throttle'; -export { throttleTime } from './internal/operators/throttleTime'; -export { throwIfEmpty } from './internal/operators/throwIfEmpty'; -export { timeInterval } from './internal/operators/timeInterval'; -export { timeout, TimeoutConfig, TimeoutInfo } from './internal/operators/timeout'; -export { timeoutWith } from './internal/operators/timeoutWith'; -export { timestamp } from './internal/operators/timestamp'; -export { toArray } from './internal/operators/toArray'; -export { window } from './internal/operators/window'; -export { windowCount } from './internal/operators/windowCount'; -export { windowTime } from './internal/operators/windowTime'; -export { windowToggle } from './internal/operators/windowToggle'; -export { windowWhen } from './internal/operators/windowWhen'; -export { withLatestFrom } from './internal/operators/withLatestFrom'; -export { zipAll } from './internal/operators/zipAll'; -export { zipWith } from './internal/operators/zipWith'; diff --git a/WechatBot/node_modules/rxjs/src/internal/AnyCatcher.ts b/WechatBot/node_modules/rxjs/src/internal/AnyCatcher.ts deleted file mode 100644 index e69ebe1fc..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/AnyCatcher.ts +++ /dev/null @@ -1,14 +0,0 @@ -/* - * Note that we cannot apply the `internal` tag here because the declaration - * needs to survive the `stripInternal` option. Otherwise, `AnyCatcher` will - * be `any` in the `.d.ts` files. - */ -declare const anyCatcherSymbol: unique symbol; - -/** - * This is just a type that we're using to identify `any` being passed to - * function overloads. This is used because of situations like {@link forkJoin}, - * where it could return an `Observable` or an `Observable<{ [key: K]: T }>`, - * so `forkJoin(any)` would mean we need to return `Observable`. - */ -export type AnyCatcher = typeof anyCatcherSymbol; diff --git a/WechatBot/node_modules/rxjs/src/internal/AsyncSubject.ts b/WechatBot/node_modules/rxjs/src/internal/AsyncSubject.ts deleted file mode 100644 index 954cd92aa..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/AsyncSubject.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { Subject } from './Subject'; -import { Subscriber } from './Subscriber'; - -/** - * A variant of Subject that only emits a value when it completes. It will emit - * its latest value to all its observers on completion. - * - * @class AsyncSubject - */ -export class AsyncSubject extends Subject { - private _value: T | null = null; - private _hasValue = false; - private _isComplete = false; - - /** @internal */ - protected _checkFinalizedStatuses(subscriber: Subscriber) { - const { hasError, _hasValue, _value, thrownError, isStopped, _isComplete } = this; - if (hasError) { - subscriber.error(thrownError); - } else if (isStopped || _isComplete) { - _hasValue && subscriber.next(_value!); - subscriber.complete(); - } - } - - next(value: T): void { - if (!this.isStopped) { - this._value = value; - this._hasValue = true; - } - } - - complete(): void { - const { _hasValue, _value, _isComplete } = this; - if (!_isComplete) { - this._isComplete = true; - _hasValue && super.next(_value!); - super.complete(); - } - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/BehaviorSubject.ts b/WechatBot/node_modules/rxjs/src/internal/BehaviorSubject.ts deleted file mode 100644 index 8e561797a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/BehaviorSubject.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { Subject } from './Subject'; -import { Subscriber } from './Subscriber'; -import { Subscription } from './Subscription'; - -/** - * A variant of Subject that requires an initial value and emits its current - * value whenever it is subscribed to. - * - * @class BehaviorSubject - */ -export class BehaviorSubject extends Subject { - constructor(private _value: T) { - super(); - } - - get value(): T { - return this.getValue(); - } - - /** @internal */ - protected _subscribe(subscriber: Subscriber): Subscription { - const subscription = super._subscribe(subscriber); - !subscription.closed && subscriber.next(this._value); - return subscription; - } - - getValue(): T { - const { hasError, thrownError, _value } = this; - if (hasError) { - throw thrownError; - } - this._throwIfClosed(); - return _value; - } - - next(value: T): void { - super.next((this._value = value)); - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/Notification.ts b/WechatBot/node_modules/rxjs/src/internal/Notification.ts deleted file mode 100644 index 4195d049f..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/Notification.ts +++ /dev/null @@ -1,243 +0,0 @@ -import { PartialObserver, ObservableNotification, CompleteNotification, NextNotification, ErrorNotification } from './types'; -import { Observable } from './Observable'; -import { EMPTY } from './observable/empty'; -import { of } from './observable/of'; -import { throwError } from './observable/throwError'; -import { isFunction } from './util/isFunction'; - -// TODO: When this enum is removed, replace it with a type alias. See #4556. -/** - * @deprecated Use a string literal instead. `NotificationKind` will be replaced with a type alias in v8. - * It will not be replaced with a const enum as those are not compatible with isolated modules. - */ -export enum NotificationKind { - NEXT = 'N', - ERROR = 'E', - COMPLETE = 'C', -} - -/** - * Represents a push-based event or value that an {@link Observable} can emit. - * This class is particularly useful for operators that manage notifications, - * like {@link materialize}, {@link dematerialize}, {@link observeOn}, and - * others. Besides wrapping the actual delivered value, it also annotates it - * with metadata of, for instance, what type of push message it is (`next`, - * `error`, or `complete`). - * - * @see {@link materialize} - * @see {@link dematerialize} - * @see {@link observeOn} - * @deprecated It is NOT recommended to create instances of `Notification` directly. - * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}. - * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`. - * Will be removed in v8. - */ -export class Notification { - /** - * A value signifying that the notification will "next" if observed. In truth, - * This is really synonymous with just checking `kind === "N"`. - * @deprecated Will be removed in v8. Instead, just check to see if the value of `kind` is `"N"`. - */ - readonly hasValue: boolean; - - /** - * Creates a "Next" notification object. - * @param kind Always `'N'` - * @param value The value to notify with if observed. - * @deprecated Internal implementation detail. Use {@link Notification#createNext createNext} instead. - */ - constructor(kind: 'N', value?: T); - /** - * Creates an "Error" notification object. - * @param kind Always `'E'` - * @param value Always `undefined` - * @param error The error to notify with if observed. - * @deprecated Internal implementation detail. Use {@link Notification#createError createError} instead. - */ - constructor(kind: 'E', value: undefined, error: any); - /** - * Creates a "completion" notification object. - * @param kind Always `'C'` - * @deprecated Internal implementation detail. Use {@link Notification#createComplete createComplete} instead. - */ - constructor(kind: 'C'); - constructor(public readonly kind: 'N' | 'E' | 'C', public readonly value?: T, public readonly error?: any) { - this.hasValue = kind === 'N'; - } - - /** - * Executes the appropriate handler on a passed `observer` given the `kind` of notification. - * If the handler is missing it will do nothing. Even if the notification is an error, if - * there is no error handler on the observer, an error will not be thrown, it will noop. - * @param observer The observer to notify. - */ - observe(observer: PartialObserver): void { - return observeNotification(this as ObservableNotification, observer); - } - - /** - * Executes a notification on the appropriate handler from a list provided. - * If a handler is missing for the kind of notification, nothing is called - * and no error is thrown, it will be a noop. - * @param next A next handler - * @param error An error handler - * @param complete A complete handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - do(next: (value: T) => void, error: (err: any) => void, complete: () => void): void; - /** - * Executes a notification on the appropriate handler from a list provided. - * If a handler is missing for the kind of notification, nothing is called - * and no error is thrown, it will be a noop. - * @param next A next handler - * @param error An error handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - do(next: (value: T) => void, error: (err: any) => void): void; - /** - * Executes the next handler if the Notification is of `kind` `"N"`. Otherwise - * this will not error, and it will be a noop. - * @param next The next handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - do(next: (value: T) => void): void; - do(nextHandler: (value: T) => void, errorHandler?: (err: any) => void, completeHandler?: () => void): void { - const { kind, value, error } = this; - return kind === 'N' ? nextHandler?.(value!) : kind === 'E' ? errorHandler?.(error) : completeHandler?.(); - } - - /** - * Executes a notification on the appropriate handler from a list provided. - * If a handler is missing for the kind of notification, nothing is called - * and no error is thrown, it will be a noop. - * @param next A next handler - * @param error An error handler - * @param complete A complete handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - accept(next: (value: T) => void, error: (err: any) => void, complete: () => void): void; - /** - * Executes a notification on the appropriate handler from a list provided. - * If a handler is missing for the kind of notification, nothing is called - * and no error is thrown, it will be a noop. - * @param next A next handler - * @param error An error handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - accept(next: (value: T) => void, error: (err: any) => void): void; - /** - * Executes the next handler if the Notification is of `kind` `"N"`. Otherwise - * this will not error, and it will be a noop. - * @param next The next handler - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - accept(next: (value: T) => void): void; - - /** - * Executes the appropriate handler on a passed `observer` given the `kind` of notification. - * If the handler is missing it will do nothing. Even if the notification is an error, if - * there is no error handler on the observer, an error will not be thrown, it will noop. - * @param observer The observer to notify. - * @deprecated Replaced with {@link Notification#observe observe}. Will be removed in v8. - */ - accept(observer: PartialObserver): void; - accept(nextOrObserver: PartialObserver | ((value: T) => void), error?: (err: any) => void, complete?: () => void) { - return isFunction((nextOrObserver as any)?.next) - ? this.observe(nextOrObserver as PartialObserver) - : this.do(nextOrObserver as (value: T) => void, error as any, complete as any); - } - - /** - * Returns a simple Observable that just delivers the notification represented - * by this Notification instance. - * - * @deprecated Will be removed in v8. To convert a `Notification` to an {@link Observable}, - * use {@link of} and {@link dematerialize}: `of(notification).pipe(dematerialize())`. - */ - toObservable(): Observable { - const { kind, value, error } = this; - // Select the observable to return by `kind` - const result = - kind === 'N' - ? // Next kind. Return an observable of that value. - of(value!) - : // - kind === 'E' - ? // Error kind. Return an observable that emits the error. - throwError(() => error) - : // - kind === 'C' - ? // Completion kind. Kind is "C", return an observable that just completes. - EMPTY - : // Unknown kind, return falsy, so we error below. - 0; - if (!result) { - // TODO: consider removing this check. The only way to cause this would be to - // use the Notification constructor directly in a way that is not type-safe. - // and direct use of the Notification constructor is deprecated. - throw new TypeError(`Unexpected notification kind ${kind}`); - } - return result; - } - - private static completeNotification = new Notification('C') as Notification & CompleteNotification; - /** - * A shortcut to create a Notification instance of the type `next` from a - * given value. - * @param {T} value The `next` value. - * @return {Notification} The "next" Notification representing the - * argument. - * @nocollapse - * @deprecated It is NOT recommended to create instances of `Notification` directly. - * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}. - * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`. - * Will be removed in v8. - */ - static createNext(value: T) { - return new Notification('N', value) as Notification & NextNotification; - } - - /** - * A shortcut to create a Notification instance of the type `error` from a - * given error. - * @param {any} [err] The `error` error. - * @return {Notification} The "error" Notification representing the - * argument. - * @nocollapse - * @deprecated It is NOT recommended to create instances of `Notification` directly. - * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}. - * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`. - * Will be removed in v8. - */ - static createError(err?: any) { - return new Notification('E', undefined, err) as Notification & ErrorNotification; - } - - /** - * A shortcut to create a Notification instance of the type `complete`. - * @return {Notification} The valueless "complete" Notification. - * @nocollapse - * @deprecated It is NOT recommended to create instances of `Notification` directly. - * Rather, try to create POJOs matching the signature outlined in {@link ObservableNotification}. - * For example: `{ kind: 'N', value: 1 }`, `{ kind: 'E', error: new Error('bad') }`, or `{ kind: 'C' }`. - * Will be removed in v8. - */ - static createComplete(): Notification & CompleteNotification { - return Notification.completeNotification; - } -} - -/** - * Executes the appropriate handler on a passed `observer` given the `kind` of notification. - * If the handler is missing it will do nothing. Even if the notification is an error, if - * there is no error handler on the observer, an error will not be thrown, it will noop. - * @param notification The notification object to observe. - * @param observer The observer to notify. - */ -export function observeNotification(notification: ObservableNotification, observer: PartialObserver) { - const { kind, value, error } = notification as any; - if (typeof kind !== 'string') { - throw new TypeError('Invalid notification, missing "kind"'); - } - kind === 'N' ? observer.next?.(value!) : kind === 'E' ? observer.error?.(error) : observer.complete?.(); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/NotificationFactories.ts b/WechatBot/node_modules/rxjs/src/internal/NotificationFactories.ts deleted file mode 100644 index 5d2080a15..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/NotificationFactories.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { CompleteNotification, NextNotification, ErrorNotification } from './types'; - -/** - * A completion object optimized for memory use and created to be the - * same "shape" as other notifications in v8. - * @internal - */ -export const COMPLETE_NOTIFICATION = (() => createNotification('C', undefined, undefined) as CompleteNotification)(); - -/** - * Internal use only. Creates an optimized error notification that is the same "shape" - * as other notifications. - * @internal - */ -export function errorNotification(error: any): ErrorNotification { - return createNotification('E', undefined, error) as any; -} - -/** - * Internal use only. Creates an optimized next notification that is the same "shape" - * as other notifications. - * @internal - */ -export function nextNotification(value: T) { - return createNotification('N', value, undefined) as NextNotification; -} - -/** - * Ensures that all notifications created internally have the same "shape" in v8. - * - * TODO: This is only exported to support a crazy legacy test in `groupBy`. - * @internal - */ -export function createNotification(kind: 'N' | 'E' | 'C', value: any, error: any) { - return { - kind, - value, - error, - }; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/Observable.ts b/WechatBot/node_modules/rxjs/src/internal/Observable.ts deleted file mode 100644 index c40a6ded4..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/Observable.ts +++ /dev/null @@ -1,498 +0,0 @@ -import { Operator } from './Operator'; -import { SafeSubscriber, Subscriber } from './Subscriber'; -import { isSubscription, Subscription } from './Subscription'; -import { TeardownLogic, OperatorFunction, Subscribable, Observer } from './types'; -import { observable as Symbol_observable } from './symbol/observable'; -import { pipeFromArray } from './util/pipe'; -import { config } from './config'; -import { isFunction } from './util/isFunction'; -import { errorContext } from './util/errorContext'; - -/** - * A representation of any set of values over any amount of time. This is the most basic building block - * of RxJS. - * - * @class Observable - */ -export class Observable implements Subscribable { - /** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ - source: Observable | undefined; - - /** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ - operator: Operator | undefined; - - /** - * @constructor - * @param {Function} subscribe the function that is called when the Observable is - * initially subscribed to. This function is given a Subscriber, to which new values - * can be `next`ed, or an `error` method can be called to raise an error, or - * `complete` can be called to notify of a successful completion. - */ - constructor(subscribe?: (this: Observable, subscriber: Subscriber) => TeardownLogic) { - if (subscribe) { - this._subscribe = subscribe; - } - } - - // HACK: Since TypeScript inherits static properties too, we have to - // fight against TypeScript here so Subject can have a different static create signature - /** - * Creates a new Observable by calling the Observable constructor - * @owner Observable - * @method create - * @param {Function} subscribe? the subscriber function to be passed to the Observable constructor - * @return {Observable} a new observable - * @nocollapse - * @deprecated Use `new Observable()` instead. Will be removed in v8. - */ - static create: (...args: any[]) => any = (subscribe?: (subscriber: Subscriber) => TeardownLogic) => { - return new Observable(subscribe); - }; - - /** - * Creates a new Observable, with this Observable instance as the source, and the passed - * operator defined as the new observable's operator. - * @method lift - * @param operator the operator defining the operation to take on the observable - * @return a new observable with the Operator applied - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - * If you have implemented an operator using `lift`, it is recommended that you create an - * operator by simply returning `new Observable()` directly. See "Creating new operators from - * scratch" section here: https://rxjs.dev/guide/operators - */ - lift(operator?: Operator): Observable { - const observable = new Observable(); - observable.source = this; - observable.operator = operator; - return observable; - } - - subscribe(observerOrNext?: Partial> | ((value: T) => void)): Subscription; - /** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */ - subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription; - /** - * Invokes an execution of an Observable and registers Observer handlers for notifications it will emit. - * - * Use it when you have all these Observables, but still nothing is happening. - * - * `subscribe` is not a regular operator, but a method that calls Observable's internal `subscribe` function. It - * might be for example a function that you passed to Observable's constructor, but most of the time it is - * a library implementation, which defines what will be emitted by an Observable, and when it be will emitted. This means - * that calling `subscribe` is actually the moment when Observable starts its work, not when it is created, as it is often - * the thought. - * - * Apart from starting the execution of an Observable, this method allows you to listen for values - * that an Observable emits, as well as for when it completes or errors. You can achieve this in two - * of the following ways. - * - * The first way is creating an object that implements {@link Observer} interface. It should have methods - * defined by that interface, but note that it should be just a regular JavaScript object, which you can create - * yourself in any way you want (ES6 class, classic function constructor, object literal etc.). In particular, do - * not attempt to use any RxJS implementation details to create Observers - you don't need them. Remember also - * that your object does not have to implement all methods. If you find yourself creating a method that doesn't - * do anything, you can simply omit it. Note however, if the `error` method is not provided and an error happens, - * it will be thrown asynchronously. Errors thrown asynchronously cannot be caught using `try`/`catch`. Instead, - * use the {@link onUnhandledError} configuration option or use a runtime handler (like `window.onerror` or - * `process.on('error)`) to be notified of unhandled errors. Because of this, it's recommended that you provide - * an `error` method to avoid missing thrown errors. - * - * The second way is to give up on Observer object altogether and simply provide callback functions in place of its methods. - * This means you can provide three functions as arguments to `subscribe`, where the first function is equivalent - * of a `next` method, the second of an `error` method and the third of a `complete` method. Just as in case of an Observer, - * if you do not need to listen for something, you can omit a function by passing `undefined` or `null`, - * since `subscribe` recognizes these functions by where they were placed in function call. When it comes - * to the `error` function, as with an Observer, if not provided, errors emitted by an Observable will be thrown asynchronously. - * - * You can, however, subscribe with no parameters at all. This may be the case where you're not interested in terminal events - * and you also handled emissions internally by using operators (e.g. using `tap`). - * - * Whichever style of calling `subscribe` you use, in both cases it returns a Subscription object. - * This object allows you to call `unsubscribe` on it, which in turn will stop the work that an Observable does and will clean - * up all resources that an Observable used. Note that cancelling a subscription will not call `complete` callback - * provided to `subscribe` function, which is reserved for a regular completion signal that comes from an Observable. - * - * Remember that callbacks provided to `subscribe` are not guaranteed to be called asynchronously. - * It is an Observable itself that decides when these functions will be called. For example {@link of} - * by default emits all its values synchronously. Always check documentation for how given Observable - * will behave when subscribed and if its default behavior can be modified with a `scheduler`. - * - * #### Examples - * - * Subscribe with an {@link guide/observer Observer} - * - * ```ts - * import { of } from 'rxjs'; - * - * const sumObserver = { - * sum: 0, - * next(value) { - * console.log('Adding: ' + value); - * this.sum = this.sum + value; - * }, - * error() { - * // We actually could just remove this method, - * // since we do not really care about errors right now. - * }, - * complete() { - * console.log('Sum equals: ' + this.sum); - * } - * }; - * - * of(1, 2, 3) // Synchronously emits 1, 2, 3 and then completes. - * .subscribe(sumObserver); - * - * // Logs: - * // 'Adding: 1' - * // 'Adding: 2' - * // 'Adding: 3' - * // 'Sum equals: 6' - * ``` - * - * Subscribe with functions ({@link deprecations/subscribe-arguments deprecated}) - * - * ```ts - * import { of } from 'rxjs' - * - * let sum = 0; - * - * of(1, 2, 3).subscribe( - * value => { - * console.log('Adding: ' + value); - * sum = sum + value; - * }, - * undefined, - * () => console.log('Sum equals: ' + sum) - * ); - * - * // Logs: - * // 'Adding: 1' - * // 'Adding: 2' - * // 'Adding: 3' - * // 'Sum equals: 6' - * ``` - * - * Cancel a subscription - * - * ```ts - * import { interval } from 'rxjs'; - * - * const subscription = interval(1000).subscribe({ - * next(num) { - * console.log(num) - * }, - * complete() { - * // Will not be called, even when cancelling subscription. - * console.log('completed!'); - * } - * }); - * - * setTimeout(() => { - * subscription.unsubscribe(); - * console.log('unsubscribed!'); - * }, 2500); - * - * // Logs: - * // 0 after 1s - * // 1 after 2s - * // 'unsubscribed!' after 2.5s - * ``` - * - * @param {Observer|Function} observerOrNext (optional) Either an observer with methods to be called, - * or the first of three possible handlers, which is the handler for each value emitted from the subscribed - * Observable. - * @param {Function} error (optional) A handler for a terminal event resulting from an error. If no error handler is provided, - * the error will be thrown asynchronously as unhandled. - * @param {Function} complete (optional) A handler for a terminal event resulting from successful completion. - * @return {Subscription} a subscription reference to the registered handlers - * @method subscribe - */ - subscribe( - observerOrNext?: Partial> | ((value: T) => void) | null, - error?: ((error: any) => void) | null, - complete?: (() => void) | null - ): Subscription { - const subscriber = isSubscriber(observerOrNext) ? observerOrNext : new SafeSubscriber(observerOrNext, error, complete); - - errorContext(() => { - const { operator, source } = this; - subscriber.add( - operator - ? // We're dealing with a subscription in the - // operator chain to one of our lifted operators. - operator.call(subscriber, source) - : source - ? // If `source` has a value, but `operator` does not, something that - // had intimate knowledge of our API, like our `Subject`, must have - // set it. We're going to just call `_subscribe` directly. - this._subscribe(subscriber) - : // In all other cases, we're likely wrapping a user-provided initializer - // function, so we need to catch errors and handle them appropriately. - this._trySubscribe(subscriber) - ); - }); - - return subscriber; - } - - /** @internal */ - protected _trySubscribe(sink: Subscriber): TeardownLogic { - try { - return this._subscribe(sink); - } catch (err) { - // We don't need to return anything in this case, - // because it's just going to try to `add()` to a subscription - // above. - sink.error(err); - } - } - - /** - * Used as a NON-CANCELLABLE means of subscribing to an observable, for use with - * APIs that expect promises, like `async/await`. You cannot unsubscribe from this. - * - * **WARNING**: Only use this with observables you *know* will complete. If the source - * observable does not complete, you will end up with a promise that is hung up, and - * potentially all of the state of an async function hanging out in memory. To avoid - * this situation, look into adding something like {@link timeout}, {@link take}, - * {@link takeWhile}, or {@link takeUntil} amongst others. - * - * #### Example - * - * ```ts - * import { interval, take } from 'rxjs'; - * - * const source$ = interval(1000).pipe(take(4)); - * - * async function getTotal() { - * let total = 0; - * - * await source$.forEach(value => { - * total += value; - * console.log('observable -> ' + value); - * }); - * - * return total; - * } - * - * getTotal().then( - * total => console.log('Total: ' + total) - * ); - * - * // Expected: - * // 'observable -> 0' - * // 'observable -> 1' - * // 'observable -> 2' - * // 'observable -> 3' - * // 'Total: 6' - * ``` - * - * @param next a handler for each value emitted by the observable - * @return a promise that either resolves on observable completion or - * rejects with the handled error - */ - forEach(next: (value: T) => void): Promise; - - /** - * @param next a handler for each value emitted by the observable - * @param promiseCtor a constructor function used to instantiate the Promise - * @return a promise that either resolves on observable completion or - * rejects with the handled error - * @deprecated Passing a Promise constructor will no longer be available - * in upcoming versions of RxJS. This is because it adds weight to the library, for very - * little benefit. If you need this functionality, it is recommended that you either - * polyfill Promise, or you create an adapter to convert the returned native promise - * to whatever promise implementation you wanted. Will be removed in v8. - */ - forEach(next: (value: T) => void, promiseCtor: PromiseConstructorLike): Promise; - - forEach(next: (value: T) => void, promiseCtor?: PromiseConstructorLike): Promise { - promiseCtor = getPromiseCtor(promiseCtor); - - return new promiseCtor((resolve, reject) => { - const subscriber = new SafeSubscriber({ - next: (value) => { - try { - next(value); - } catch (err) { - reject(err); - subscriber.unsubscribe(); - } - }, - error: reject, - complete: resolve, - }); - this.subscribe(subscriber); - }) as Promise; - } - - /** @internal */ - protected _subscribe(subscriber: Subscriber): TeardownLogic { - return this.source?.subscribe(subscriber); - } - - /** - * An interop point defined by the es7-observable spec https://github.com/zenparsing/es-observable - * @method Symbol.observable - * @return {Observable} this instance of the observable - */ - [Symbol_observable]() { - return this; - } - - /* tslint:disable:max-line-length */ - pipe(): Observable; - pipe(op1: OperatorFunction): Observable; - pipe(op1: OperatorFunction, op2: OperatorFunction): Observable; - pipe(op1: OperatorFunction, op2: OperatorFunction, op3: OperatorFunction): Observable; - pipe( - op1: OperatorFunction, - op2: OperatorFunction, - op3: OperatorFunction, - op4: OperatorFunction - ): Observable; - pipe( - op1: OperatorFunction, - op2: OperatorFunction, - op3: OperatorFunction, - op4: OperatorFunction, - op5: OperatorFunction - ): Observable; - pipe( - op1: OperatorFunction, - op2: OperatorFunction, - op3: OperatorFunction, - op4: OperatorFunction, - op5: OperatorFunction, - op6: OperatorFunction - ): Observable; - pipe( - op1: OperatorFunction, - op2: OperatorFunction, - op3: OperatorFunction, - op4: OperatorFunction, - op5: OperatorFunction, - op6: OperatorFunction, - op7: OperatorFunction - ): Observable; - pipe( - op1: OperatorFunction, - op2: OperatorFunction, - op3: OperatorFunction, - op4: OperatorFunction, - op5: OperatorFunction, - op6: OperatorFunction, - op7: OperatorFunction, - op8: OperatorFunction - ): Observable; - pipe( - op1: OperatorFunction, - op2: OperatorFunction, - op3: OperatorFunction, - op4: OperatorFunction, - op5: OperatorFunction, - op6: OperatorFunction, - op7: OperatorFunction, - op8: OperatorFunction, - op9: OperatorFunction - ): Observable; - pipe( - op1: OperatorFunction, - op2: OperatorFunction, - op3: OperatorFunction, - op4: OperatorFunction, - op5: OperatorFunction, - op6: OperatorFunction, - op7: OperatorFunction, - op8: OperatorFunction, - op9: OperatorFunction, - ...operations: OperatorFunction[] - ): Observable; - /* tslint:enable:max-line-length */ - - /** - * Used to stitch together functional operators into a chain. - * @method pipe - * @return {Observable} the Observable result of all of the operators having - * been called in the order they were passed in. - * - * ## Example - * - * ```ts - * import { interval, filter, map, scan } from 'rxjs'; - * - * interval(1000) - * .pipe( - * filter(x => x % 2 === 0), - * map(x => x + x), - * scan((acc, x) => acc + x) - * ) - * .subscribe(x => console.log(x)); - * ``` - */ - pipe(...operations: OperatorFunction[]): Observable { - return pipeFromArray(operations)(this); - } - - /* tslint:disable:max-line-length */ - /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */ - toPromise(): Promise; - /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */ - toPromise(PromiseCtor: typeof Promise): Promise; - /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */ - toPromise(PromiseCtor: PromiseConstructorLike): Promise; - /* tslint:enable:max-line-length */ - - /** - * Subscribe to this Observable and get a Promise resolving on - * `complete` with the last emission (if any). - * - * **WARNING**: Only use this with observables you *know* will complete. If the source - * observable does not complete, you will end up with a promise that is hung up, and - * potentially all of the state of an async function hanging out in memory. To avoid - * this situation, look into adding something like {@link timeout}, {@link take}, - * {@link takeWhile}, or {@link takeUntil} amongst others. - * - * @method toPromise - * @param [promiseCtor] a constructor function used to instantiate - * the Promise - * @return A Promise that resolves with the last value emit, or - * rejects on an error. If there were no emissions, Promise - * resolves with undefined. - * @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise - */ - toPromise(promiseCtor?: PromiseConstructorLike): Promise { - promiseCtor = getPromiseCtor(promiseCtor); - - return new promiseCtor((resolve, reject) => { - let value: T | undefined; - this.subscribe( - (x: T) => (value = x), - (err: any) => reject(err), - () => resolve(value) - ); - }) as Promise; - } -} - -/** - * Decides between a passed promise constructor from consuming code, - * A default configured promise constructor, and the native promise - * constructor and returns it. If nothing can be found, it will throw - * an error. - * @param promiseCtor The optional promise constructor to passed by consuming code - */ -function getPromiseCtor(promiseCtor: PromiseConstructorLike | undefined) { - return promiseCtor ?? config.Promise ?? Promise; -} - -function isObserver(value: any): value is Observer { - return value && isFunction(value.next) && isFunction(value.error) && isFunction(value.complete); -} - -function isSubscriber(value: any): value is Subscriber { - return (value && value instanceof Subscriber) || (isObserver(value) && isSubscription(value)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/Operator.ts b/WechatBot/node_modules/rxjs/src/internal/Operator.ts deleted file mode 100644 index ab7bc50a1..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/Operator.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Subscriber } from './Subscriber'; -import { TeardownLogic } from './types'; - -/*** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ -export interface Operator { - call(subscriber: Subscriber, source: any): TeardownLogic; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/ReplaySubject.ts b/WechatBot/node_modules/rxjs/src/internal/ReplaySubject.ts deleted file mode 100644 index a81d7353a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/ReplaySubject.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { Subject } from './Subject'; -import { TimestampProvider } from './types'; -import { Subscriber } from './Subscriber'; -import { Subscription } from './Subscription'; -import { dateTimestampProvider } from './scheduler/dateTimestampProvider'; - -/** - * A variant of {@link Subject} that "replays" old values to new subscribers by emitting them when they first subscribe. - * - * `ReplaySubject` has an internal buffer that will store a specified number of values that it has observed. Like `Subject`, - * `ReplaySubject` "observes" values by having them passed to its `next` method. When it observes a value, it will store that - * value for a time determined by the configuration of the `ReplaySubject`, as passed to its constructor. - * - * When a new subscriber subscribes to the `ReplaySubject` instance, it will synchronously emit all values in its buffer in - * a First-In-First-Out (FIFO) manner. The `ReplaySubject` will also complete, if it has observed completion; and it will - * error if it has observed an error. - * - * There are two main configuration items to be concerned with: - * - * 1. `bufferSize` - This will determine how many items are stored in the buffer, defaults to infinite. - * 2. `windowTime` - The amount of time to hold a value in the buffer before removing it from the buffer. - * - * Both configurations may exist simultaneously. So if you would like to buffer a maximum of 3 values, as long as the values - * are less than 2 seconds old, you could do so with a `new ReplaySubject(3, 2000)`. - * - * ### Differences with BehaviorSubject - * - * `BehaviorSubject` is similar to `new ReplaySubject(1)`, with a couple of exceptions: - * - * 1. `BehaviorSubject` comes "primed" with a single value upon construction. - * 2. `ReplaySubject` will replay values, even after observing an error, where `BehaviorSubject` will not. - * - * @see {@link Subject} - * @see {@link BehaviorSubject} - * @see {@link shareReplay} - */ -export class ReplaySubject extends Subject { - private _buffer: (T | number)[] = []; - private _infiniteTimeWindow = true; - - /** - * @param bufferSize The size of the buffer to replay on subscription - * @param windowTime The amount of time the buffered items will stay buffered - * @param timestampProvider An object with a `now()` method that provides the current timestamp. This is used to - * calculate the amount of time something has been buffered. - */ - constructor( - private _bufferSize = Infinity, - private _windowTime = Infinity, - private _timestampProvider: TimestampProvider = dateTimestampProvider - ) { - super(); - this._infiniteTimeWindow = _windowTime === Infinity; - this._bufferSize = Math.max(1, _bufferSize); - this._windowTime = Math.max(1, _windowTime); - } - - next(value: T): void { - const { isStopped, _buffer, _infiniteTimeWindow, _timestampProvider, _windowTime } = this; - if (!isStopped) { - _buffer.push(value); - !_infiniteTimeWindow && _buffer.push(_timestampProvider.now() + _windowTime); - } - this._trimBuffer(); - super.next(value); - } - - /** @internal */ - protected _subscribe(subscriber: Subscriber): Subscription { - this._throwIfClosed(); - this._trimBuffer(); - - const subscription = this._innerSubscribe(subscriber); - - const { _infiniteTimeWindow, _buffer } = this; - // We use a copy here, so reentrant code does not mutate our array while we're - // emitting it to a new subscriber. - const copy = _buffer.slice(); - for (let i = 0; i < copy.length && !subscriber.closed; i += _infiniteTimeWindow ? 1 : 2) { - subscriber.next(copy[i] as T); - } - - this._checkFinalizedStatuses(subscriber); - - return subscription; - } - - private _trimBuffer() { - const { _bufferSize, _timestampProvider, _buffer, _infiniteTimeWindow } = this; - // If we don't have an infinite buffer size, and we're over the length, - // use splice to truncate the old buffer values off. Note that we have to - // double the size for instances where we're not using an infinite time window - // because we're storing the values and the timestamps in the same array. - const adjustedBufferSize = (_infiniteTimeWindow ? 1 : 2) * _bufferSize; - _bufferSize < Infinity && adjustedBufferSize < _buffer.length && _buffer.splice(0, _buffer.length - adjustedBufferSize); - - // Now, if we're not in an infinite time window, remove all values where the time is - // older than what is allowed. - if (!_infiniteTimeWindow) { - const now = _timestampProvider.now(); - let last = 0; - // Search the array for the first timestamp that isn't expired and - // truncate the buffer up to that point. - for (let i = 1; i < _buffer.length && (_buffer[i] as number) <= now; i += 2) { - last = i; - } - last && _buffer.splice(0, last + 1); - } - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/Scheduler.ts b/WechatBot/node_modules/rxjs/src/internal/Scheduler.ts deleted file mode 100644 index 7906d2225..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/Scheduler.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { Action } from './scheduler/Action'; -import { Subscription } from './Subscription'; -import { SchedulerLike, SchedulerAction } from './types'; -import { dateTimestampProvider } from './scheduler/dateTimestampProvider'; - -/** - * An execution context and a data structure to order tasks and schedule their - * execution. Provides a notion of (potentially virtual) time, through the - * `now()` getter method. - * - * Each unit of work in a Scheduler is called an `Action`. - * - * ```ts - * class Scheduler { - * now(): number; - * schedule(work, delay?, state?): Subscription; - * } - * ``` - * - * @class Scheduler - * @deprecated Scheduler is an internal implementation detail of RxJS, and - * should not be used directly. Rather, create your own class and implement - * {@link SchedulerLike}. Will be made internal in v8. - */ -export class Scheduler implements SchedulerLike { - public static now: () => number = dateTimestampProvider.now; - - constructor(private schedulerActionCtor: typeof Action, now: () => number = Scheduler.now) { - this.now = now; - } - - /** - * A getter method that returns a number representing the current time - * (at the time this function was called) according to the scheduler's own - * internal clock. - * @return {number} A number that represents the current time. May or may not - * have a relation to wall-clock time. May or may not refer to a time unit - * (e.g. milliseconds). - */ - public now: () => number; - - /** - * Schedules a function, `work`, for execution. May happen at some point in - * the future, according to the `delay` parameter, if specified. May be passed - * some context object, `state`, which will be passed to the `work` function. - * - * The given arguments will be processed an stored as an Action object in a - * queue of actions. - * - * @param {function(state: ?T): ?Subscription} work A function representing a - * task, or some unit of work to be executed by the Scheduler. - * @param {number} [delay] Time to wait before executing the work, where the - * time unit is implicit and defined by the Scheduler itself. - * @param {T} [state] Some contextual data that the `work` function uses when - * called by the Scheduler. - * @return {Subscription} A subscription in order to be able to unsubscribe - * the scheduled work. - */ - public schedule(work: (this: SchedulerAction, state?: T) => void, delay: number = 0, state?: T): Subscription { - return new this.schedulerActionCtor(this, work).schedule(state, delay); - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/Subject.ts b/WechatBot/node_modules/rxjs/src/internal/Subject.ts deleted file mode 100644 index d51455291..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/Subject.ts +++ /dev/null @@ -1,189 +0,0 @@ -import { Operator } from './Operator'; -import { Observable } from './Observable'; -import { Subscriber } from './Subscriber'; -import { Subscription, EMPTY_SUBSCRIPTION } from './Subscription'; -import { Observer, SubscriptionLike, TeardownLogic } from './types'; -import { ObjectUnsubscribedError } from './util/ObjectUnsubscribedError'; -import { arrRemove } from './util/arrRemove'; -import { errorContext } from './util/errorContext'; - -/** - * A Subject is a special type of Observable that allows values to be - * multicasted to many Observers. Subjects are like EventEmitters. - * - * Every Subject is an Observable and an Observer. You can subscribe to a - * Subject, and you can call next to feed values as well as error and complete. - */ -export class Subject extends Observable implements SubscriptionLike { - closed = false; - - private currentObservers: Observer[] | null = null; - - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - observers: Observer[] = []; - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - isStopped = false; - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - hasError = false; - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - thrownError: any = null; - - /** - * Creates a "subject" by basically gluing an observer to an observable. - * - * @nocollapse - * @deprecated Recommended you do not use. Will be removed at some point in the future. Plans for replacement still under discussion. - */ - static create: (...args: any[]) => any = (destination: Observer, source: Observable): AnonymousSubject => { - return new AnonymousSubject(destination, source); - }; - - constructor() { - // NOTE: This must be here to obscure Observable's constructor. - super(); - } - - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - lift(operator: Operator): Observable { - const subject = new AnonymousSubject(this, this); - subject.operator = operator as any; - return subject as any; - } - - /** @internal */ - protected _throwIfClosed() { - if (this.closed) { - throw new ObjectUnsubscribedError(); - } - } - - next(value: T) { - errorContext(() => { - this._throwIfClosed(); - if (!this.isStopped) { - if (!this.currentObservers) { - this.currentObservers = Array.from(this.observers); - } - for (const observer of this.currentObservers) { - observer.next(value); - } - } - }); - } - - error(err: any) { - errorContext(() => { - this._throwIfClosed(); - if (!this.isStopped) { - this.hasError = this.isStopped = true; - this.thrownError = err; - const { observers } = this; - while (observers.length) { - observers.shift()!.error(err); - } - } - }); - } - - complete() { - errorContext(() => { - this._throwIfClosed(); - if (!this.isStopped) { - this.isStopped = true; - const { observers } = this; - while (observers.length) { - observers.shift()!.complete(); - } - } - }); - } - - unsubscribe() { - this.isStopped = this.closed = true; - this.observers = this.currentObservers = null!; - } - - get observed() { - return this.observers?.length > 0; - } - - /** @internal */ - protected _trySubscribe(subscriber: Subscriber): TeardownLogic { - this._throwIfClosed(); - return super._trySubscribe(subscriber); - } - - /** @internal */ - protected _subscribe(subscriber: Subscriber): Subscription { - this._throwIfClosed(); - this._checkFinalizedStatuses(subscriber); - return this._innerSubscribe(subscriber); - } - - /** @internal */ - protected _innerSubscribe(subscriber: Subscriber) { - const { hasError, isStopped, observers } = this; - if (hasError || isStopped) { - return EMPTY_SUBSCRIPTION; - } - this.currentObservers = null; - observers.push(subscriber); - return new Subscription(() => { - this.currentObservers = null; - arrRemove(observers, subscriber); - }); - } - - /** @internal */ - protected _checkFinalizedStatuses(subscriber: Subscriber) { - const { hasError, thrownError, isStopped } = this; - if (hasError) { - subscriber.error(thrownError); - } else if (isStopped) { - subscriber.complete(); - } - } - - /** - * Creates a new Observable with this Subject as the source. You can do this - * to create custom Observer-side logic of the Subject and conceal it from - * code that uses the Observable. - * @return {Observable} Observable that the Subject casts to - */ - asObservable(): Observable { - const observable: any = new Observable(); - observable.source = this; - return observable; - } -} - -/** - * @class AnonymousSubject - */ -export class AnonymousSubject extends Subject { - constructor( - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - public destination?: Observer, - source?: Observable - ) { - super(); - this.source = source; - } - - next(value: T) { - this.destination?.next?.(value); - } - - error(err: any) { - this.destination?.error?.(err); - } - - complete() { - this.destination?.complete?.(); - } - - /** @internal */ - protected _subscribe(subscriber: Subscriber): Subscription { - return this.source?.subscribe(subscriber) ?? EMPTY_SUBSCRIPTION; - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/Subscriber.ts b/WechatBot/node_modules/rxjs/src/internal/Subscriber.ts deleted file mode 100644 index e682fe402..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/Subscriber.ts +++ /dev/null @@ -1,276 +0,0 @@ -import { isFunction } from './util/isFunction'; -import { Observer, ObservableNotification } from './types'; -import { isSubscription, Subscription } from './Subscription'; -import { config } from './config'; -import { reportUnhandledError } from './util/reportUnhandledError'; -import { noop } from './util/noop'; -import { nextNotification, errorNotification, COMPLETE_NOTIFICATION } from './NotificationFactories'; -import { timeoutProvider } from './scheduler/timeoutProvider'; -import { captureError } from './util/errorContext'; - -/** - * Implements the {@link Observer} interface and extends the - * {@link Subscription} class. While the {@link Observer} is the public API for - * consuming the values of an {@link Observable}, all Observers get converted to - * a Subscriber, in order to provide Subscription-like capabilities such as - * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for - * implementing operators, but it is rarely used as a public API. - * - * @class Subscriber - */ -export class Subscriber extends Subscription implements Observer { - /** - * A static factory for a Subscriber, given a (potentially partial) definition - * of an Observer. - * @param next The `next` callback of an Observer. - * @param error The `error` callback of an - * Observer. - * @param complete The `complete` callback of an - * Observer. - * @return A Subscriber wrapping the (partially defined) - * Observer represented by the given arguments. - * @nocollapse - * @deprecated Do not use. Will be removed in v8. There is no replacement for this - * method, and there is no reason to be creating instances of `Subscriber` directly. - * If you have a specific use case, please file an issue. - */ - static create(next?: (x?: T) => void, error?: (e?: any) => void, complete?: () => void): Subscriber { - return new SafeSubscriber(next, error, complete); - } - - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - protected isStopped: boolean = false; - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - protected destination: Subscriber | Observer; // this `any` is the escape hatch to erase extra type param (e.g. R) - - /** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - * There is no reason to directly create an instance of Subscriber. This type is exported for typings reasons. - */ - constructor(destination?: Subscriber | Observer) { - super(); - if (destination) { - this.destination = destination; - // Automatically chain subscriptions together here. - // if destination is a Subscription, then it is a Subscriber. - if (isSubscription(destination)) { - destination.add(this); - } - } else { - this.destination = EMPTY_OBSERVER; - } - } - - /** - * The {@link Observer} callback to receive notifications of type `next` from - * the Observable, with a value. The Observable may call this method 0 or more - * times. - * @param {T} [value] The `next` value. - * @return {void} - */ - next(value?: T): void { - if (this.isStopped) { - handleStoppedNotification(nextNotification(value), this); - } else { - this._next(value!); - } - } - - /** - * The {@link Observer} callback to receive notifications of type `error` from - * the Observable, with an attached `Error`. Notifies the Observer that - * the Observable has experienced an error condition. - * @param {any} [err] The `error` exception. - * @return {void} - */ - error(err?: any): void { - if (this.isStopped) { - handleStoppedNotification(errorNotification(err), this); - } else { - this.isStopped = true; - this._error(err); - } - } - - /** - * The {@link Observer} callback to receive a valueless notification of type - * `complete` from the Observable. Notifies the Observer that the Observable - * has finished sending push-based notifications. - * @return {void} - */ - complete(): void { - if (this.isStopped) { - handleStoppedNotification(COMPLETE_NOTIFICATION, this); - } else { - this.isStopped = true; - this._complete(); - } - } - - unsubscribe(): void { - if (!this.closed) { - this.isStopped = true; - super.unsubscribe(); - this.destination = null!; - } - } - - protected _next(value: T): void { - this.destination.next(value); - } - - protected _error(err: any): void { - try { - this.destination.error(err); - } finally { - this.unsubscribe(); - } - } - - protected _complete(): void { - try { - this.destination.complete(); - } finally { - this.unsubscribe(); - } - } -} - -/** - * This bind is captured here because we want to be able to have - * compatibility with monoid libraries that tend to use a method named - * `bind`. In particular, a library called Monio requires this. - */ -const _bind = Function.prototype.bind; - -function bind any>(fn: Fn, thisArg: any): Fn { - return _bind.call(fn, thisArg); -} - -/** - * Internal optimization only, DO NOT EXPOSE. - * @internal - */ -class ConsumerObserver implements Observer { - constructor(private partialObserver: Partial>) {} - - next(value: T): void { - const { partialObserver } = this; - if (partialObserver.next) { - try { - partialObserver.next(value); - } catch (error) { - handleUnhandledError(error); - } - } - } - - error(err: any): void { - const { partialObserver } = this; - if (partialObserver.error) { - try { - partialObserver.error(err); - } catch (error) { - handleUnhandledError(error); - } - } else { - handleUnhandledError(err); - } - } - - complete(): void { - const { partialObserver } = this; - if (partialObserver.complete) { - try { - partialObserver.complete(); - } catch (error) { - handleUnhandledError(error); - } - } - } -} - -export class SafeSubscriber extends Subscriber { - constructor( - observerOrNext?: Partial> | ((value: T) => void) | null, - error?: ((e?: any) => void) | null, - complete?: (() => void) | null - ) { - super(); - - let partialObserver: Partial>; - if (isFunction(observerOrNext) || !observerOrNext) { - // The first argument is a function, not an observer. The next - // two arguments *could* be observers, or they could be empty. - partialObserver = { - next: (observerOrNext ?? undefined) as (((value: T) => void) | undefined), - error: error ?? undefined, - complete: complete ?? undefined, - }; - } else { - // The first argument is a partial observer. - let context: any; - if (this && config.useDeprecatedNextContext) { - // This is a deprecated path that made `this.unsubscribe()` available in - // next handler functions passed to subscribe. This only exists behind a flag - // now, as it is *very* slow. - context = Object.create(observerOrNext); - context.unsubscribe = () => this.unsubscribe(); - partialObserver = { - next: observerOrNext.next && bind(observerOrNext.next, context), - error: observerOrNext.error && bind(observerOrNext.error, context), - complete: observerOrNext.complete && bind(observerOrNext.complete, context), - }; - } else { - // The "normal" path. Just use the partial observer directly. - partialObserver = observerOrNext; - } - } - - // Wrap the partial observer to ensure it's a full observer, and - // make sure proper error handling is accounted for. - this.destination = new ConsumerObserver(partialObserver); - } -} - -function handleUnhandledError(error: any) { - if (config.useDeprecatedSynchronousErrorHandling) { - captureError(error); - } else { - // Ideal path, we report this as an unhandled error, - // which is thrown on a new call stack. - reportUnhandledError(error); - } -} - -/** - * An error handler used when no error handler was supplied - * to the SafeSubscriber -- meaning no error handler was supplied - * do the `subscribe` call on our observable. - * @param err The error to handle - */ -function defaultErrorHandler(err: any) { - throw err; -} - -/** - * A handler for notifications that cannot be sent to a stopped subscriber. - * @param notification The notification being sent - * @param subscriber The stopped subscriber - */ -function handleStoppedNotification(notification: ObservableNotification, subscriber: Subscriber) { - const { onStoppedNotification } = config; - onStoppedNotification && timeoutProvider.setTimeout(() => onStoppedNotification(notification, subscriber)); -} - -/** - * The observer used as a stub for subscriptions where the user did not - * pass any arguments to `subscribe`. Comes with the default error handling - * behavior. - */ -export const EMPTY_OBSERVER: Readonly> & { closed: true } = { - closed: true, - next: noop, - error: defaultErrorHandler, - complete: noop, -}; diff --git a/WechatBot/node_modules/rxjs/src/internal/Subscription.ts b/WechatBot/node_modules/rxjs/src/internal/Subscription.ts deleted file mode 100644 index ab601315d..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/Subscription.ts +++ /dev/null @@ -1,216 +0,0 @@ -import { isFunction } from './util/isFunction'; -import { UnsubscriptionError } from './util/UnsubscriptionError'; -import { SubscriptionLike, TeardownLogic, Unsubscribable } from './types'; -import { arrRemove } from './util/arrRemove'; - -/** - * Represents a disposable resource, such as the execution of an Observable. A - * Subscription has one important method, `unsubscribe`, that takes no argument - * and just disposes the resource held by the subscription. - * - * Additionally, subscriptions may be grouped together through the `add()` - * method, which will attach a child Subscription to the current Subscription. - * When a Subscription is unsubscribed, all its children (and its grandchildren) - * will be unsubscribed as well. - * - * @class Subscription - */ -export class Subscription implements SubscriptionLike { - /** @nocollapse */ - public static EMPTY = (() => { - const empty = new Subscription(); - empty.closed = true; - return empty; - })(); - - /** - * A flag to indicate whether this Subscription has already been unsubscribed. - */ - public closed = false; - - private _parentage: Subscription[] | Subscription | null = null; - - /** - * The list of registered finalizers to execute upon unsubscription. Adding and removing from this - * list occurs in the {@link #add} and {@link #remove} methods. - */ - private _finalizers: Exclude[] | null = null; - - /** - * @param initialTeardown A function executed first as part of the finalization - * process that is kicked off when {@link #unsubscribe} is called. - */ - constructor(private initialTeardown?: () => void) {} - - /** - * Disposes the resources held by the subscription. May, for instance, cancel - * an ongoing Observable execution or cancel any other type of work that - * started when the Subscription was created. - * @return {void} - */ - unsubscribe(): void { - let errors: any[] | undefined; - - if (!this.closed) { - this.closed = true; - - // Remove this from it's parents. - const { _parentage } = this; - if (_parentage) { - this._parentage = null; - if (Array.isArray(_parentage)) { - for (const parent of _parentage) { - parent.remove(this); - } - } else { - _parentage.remove(this); - } - } - - const { initialTeardown: initialFinalizer } = this; - if (isFunction(initialFinalizer)) { - try { - initialFinalizer(); - } catch (e) { - errors = e instanceof UnsubscriptionError ? e.errors : [e]; - } - } - - const { _finalizers } = this; - if (_finalizers) { - this._finalizers = null; - for (const finalizer of _finalizers) { - try { - execFinalizer(finalizer); - } catch (err) { - errors = errors ?? []; - if (err instanceof UnsubscriptionError) { - errors = [...errors, ...err.errors]; - } else { - errors.push(err); - } - } - } - } - - if (errors) { - throw new UnsubscriptionError(errors); - } - } - } - - /** - * Adds a finalizer to this subscription, so that finalization will be unsubscribed/called - * when this subscription is unsubscribed. If this subscription is already {@link #closed}, - * because it has already been unsubscribed, then whatever finalizer is passed to it - * will automatically be executed (unless the finalizer itself is also a closed subscription). - * - * Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed - * subscription to a any subscription will result in no operation. (A noop). - * - * Adding a subscription to itself, or adding `null` or `undefined` will not perform any - * operation at all. (A noop). - * - * `Subscription` instances that are added to this instance will automatically remove themselves - * if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove - * will need to be removed manually with {@link #remove} - * - * @param teardown The finalization logic to add to this subscription. - */ - add(teardown: TeardownLogic): void { - // Only add the finalizer if it's not undefined - // and don't add a subscription to itself. - if (teardown && teardown !== this) { - if (this.closed) { - // If this subscription is already closed, - // execute whatever finalizer is handed to it automatically. - execFinalizer(teardown); - } else { - if (teardown instanceof Subscription) { - // We don't add closed subscriptions, and we don't add the same subscription - // twice. Subscription unsubscribe is idempotent. - if (teardown.closed || teardown._hasParent(this)) { - return; - } - teardown._addParent(this); - } - (this._finalizers = this._finalizers ?? []).push(teardown); - } - } - } - - /** - * Checks to see if a this subscription already has a particular parent. - * This will signal that this subscription has already been added to the parent in question. - * @param parent the parent to check for - */ - private _hasParent(parent: Subscription) { - const { _parentage } = this; - return _parentage === parent || (Array.isArray(_parentage) && _parentage.includes(parent)); - } - - /** - * Adds a parent to this subscription so it can be removed from the parent if it - * unsubscribes on it's own. - * - * NOTE: THIS ASSUMES THAT {@link _hasParent} HAS ALREADY BEEN CHECKED. - * @param parent The parent subscription to add - */ - private _addParent(parent: Subscription) { - const { _parentage } = this; - this._parentage = Array.isArray(_parentage) ? (_parentage.push(parent), _parentage) : _parentage ? [_parentage, parent] : parent; - } - - /** - * Called on a child when it is removed via {@link #remove}. - * @param parent The parent to remove - */ - private _removeParent(parent: Subscription) { - const { _parentage } = this; - if (_parentage === parent) { - this._parentage = null; - } else if (Array.isArray(_parentage)) { - arrRemove(_parentage, parent); - } - } - - /** - * Removes a finalizer from this subscription that was previously added with the {@link #add} method. - * - * Note that `Subscription` instances, when unsubscribed, will automatically remove themselves - * from every other `Subscription` they have been added to. This means that using the `remove` method - * is not a common thing and should be used thoughtfully. - * - * If you add the same finalizer instance of a function or an unsubscribable object to a `Subscription` instance - * more than once, you will need to call `remove` the same number of times to remove all instances. - * - * All finalizer instances are removed to free up memory upon unsubscription. - * - * @param teardown The finalizer to remove from this subscription - */ - remove(teardown: Exclude): void { - const { _finalizers } = this; - _finalizers && arrRemove(_finalizers, teardown); - - if (teardown instanceof Subscription) { - teardown._removeParent(this); - } - } -} - -export const EMPTY_SUBSCRIPTION = Subscription.EMPTY; - -export function isSubscription(value: any): value is Subscription { - return ( - value instanceof Subscription || - (value && 'closed' in value && isFunction(value.remove) && isFunction(value.add) && isFunction(value.unsubscribe)) - ); -} - -function execFinalizer(finalizer: Unsubscribable | (() => void)) { - if (isFunction(finalizer)) { - finalizer(); - } else { - finalizer.unsubscribe(); - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/ajax/AjaxResponse.ts b/WechatBot/node_modules/rxjs/src/internal/ajax/AjaxResponse.ts deleted file mode 100644 index c9ca915be..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/ajax/AjaxResponse.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { AjaxRequest, AjaxResponseType } from './types'; -import { getXHRResponse } from './getXHRResponse'; - -/** - * A normalized response from an AJAX request. To get the data from the response, - * you will want to read the `response` property. - * - * - DO NOT create instances of this class directly. - * - DO NOT subclass this class. - * - * It is advised not to hold this object in memory, as it has a reference to - * the original XHR used to make the request, as well as properties containing - * request and response data. - * - * @see {@link ajax} - * @see {@link AjaxConfig} - */ -export class AjaxResponse { - /** The HTTP status code */ - readonly status: number; - - /** - * The response data, if any. Note that this will automatically be converted to the proper type - */ - readonly response: T; - - /** - * The responseType set on the request. (For example: `""`, `"arraybuffer"`, `"blob"`, `"document"`, `"json"`, or `"text"`) - * @deprecated There isn't much reason to examine this. It's the same responseType set (or defaulted) on the ajax config. - * If you really need to examine this value, you can check it on the `request` or the `xhr`. Will be removed in v8. - */ - readonly responseType: XMLHttpRequestResponseType; - - /** - * The total number of bytes loaded so far. To be used with {@link total} while - * calculating progress. (You will want to set {@link includeDownloadProgress} or - * {@link includeDownloadProgress}) - */ - readonly loaded: number; - - /** - * The total number of bytes to be loaded. To be used with {@link loaded} while - * calculating progress. (You will want to set {@link includeDownloadProgress} or - * {@link includeDownloadProgress}) - */ - readonly total: number; - - /** - * A dictionary of the response headers. - */ - readonly responseHeaders: Record; - - /** - * A normalized response from an AJAX request. To get the data from the response, - * you will want to read the `response` property. - * - * - DO NOT create instances of this class directly. - * - DO NOT subclass this class. - * - * @param originalEvent The original event object from the XHR `onload` event. - * @param xhr The `XMLHttpRequest` object used to make the request. This is useful for examining status code, etc. - * @param request The request settings used to make the HTTP request. - * @param type The type of the event emitted by the {@link ajax} Observable - */ - constructor( - /** - * The original event object from the raw XHR event. - */ - public readonly originalEvent: ProgressEvent, - /** - * The XMLHttpRequest object used to make the request. - * NOTE: It is advised not to hold this in memory, as it will retain references to all of it's event handlers - * and many other things related to the request. - */ - public readonly xhr: XMLHttpRequest, - /** - * The request parameters used to make the HTTP request. - */ - public readonly request: AjaxRequest, - /** - * The event type. This can be used to discern between different events - * if you're using progress events with {@link includeDownloadProgress} or - * {@link includeUploadProgress} settings in {@link AjaxConfig}. - * - * The event type consists of two parts: the {@link AjaxDirection} and the - * the event type. Merged with `_`, they form the `type` string. The - * direction can be an `upload` or a `download` direction, while an event can - * be `loadstart`, `progress` or `load`. - * - * `download_load` is the type of event when download has finished and the - * response is available. - */ - public readonly type: AjaxResponseType = 'download_load' - ) { - const { status, responseType } = xhr; - this.status = status ?? 0; - this.responseType = responseType ?? ''; - - // Parse the response headers in advance for the user. There's really - // not a great way to get all of them. So we need to parse the header string - // we get back. It comes in a simple enough format: - // - // header-name: value here - // content-type: application/json - // other-header-here: some, other, values, or, whatever - const allHeaders = xhr.getAllResponseHeaders(); - this.responseHeaders = allHeaders - ? // Split the header text into lines - allHeaders.split('\n').reduce((headers: Record, line) => { - // Split the lines on the first ": " as - // "key: value". Note that the value could - // technically have a ": " in it. - const index = line.indexOf(': '); - headers[line.slice(0, index)] = line.slice(index + 2); - return headers; - }, {}) - : {}; - - this.response = getXHRResponse(xhr); - const { loaded, total } = originalEvent; - this.loaded = loaded; - this.total = total; - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/ajax/ajax.ts b/WechatBot/node_modules/rxjs/src/internal/ajax/ajax.ts deleted file mode 100644 index b1628dad8..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/ajax/ajax.ts +++ /dev/null @@ -1,622 +0,0 @@ -import { map } from '../operators/map'; -import { Observable } from '../Observable'; -import { AjaxConfig, AjaxRequest, AjaxDirection, ProgressEventType } from './types'; -import { AjaxResponse } from './AjaxResponse'; -import { AjaxTimeoutError, AjaxError } from './errors'; - -export interface AjaxCreationMethod { - /** - * Creates an observable that will perform an AJAX request using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default. - * - * This is the most configurable option, and the basis for all other AJAX calls in the library. - * - * ## Example - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const obs$ = ajax({ - * method: 'GET', - * url: 'https://api.github.com/users?per_page=5', - * responseType: 'json' - * }).pipe( - * map(userResponse => console.log('users: ', userResponse)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * ``` - */ - (config: AjaxConfig): Observable>; - - /** - * Perform an HTTP GET using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope. Defaults to a `responseType` of `"json"`. - * - * ## Example - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const obs$ = ajax('https://api.github.com/users?per_page=5').pipe( - * map(userResponse => console.log('users: ', userResponse)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * ``` - */ - (url: string): Observable>; - - /** - * Performs an HTTP GET using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and a `responseType` of `"json"`. - * - * @param url The URL to get the resource from - * @param headers Optional headers. Case-Insensitive. - */ - get(url: string, headers?: Record): Observable>; - - /** - * Performs an HTTP POST using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and a `responseType` of `"json"`. - * - * Before sending the value passed to the `body` argument, it is automatically serialized - * based on the specified `responseType`. By default, a JavaScript object will be serialized - * to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided - * dictionary object to a url-encoded string. - * - * @param url The URL to get the resource from - * @param body The content to send. The body is automatically serialized. - * @param headers Optional headers. Case-Insensitive. - */ - post(url: string, body?: any, headers?: Record): Observable>; - - /** - * Performs an HTTP PUT using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and a `responseType` of `"json"`. - * - * Before sending the value passed to the `body` argument, it is automatically serialized - * based on the specified `responseType`. By default, a JavaScript object will be serialized - * to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided - * dictionary object to a url-encoded string. - * - * @param url The URL to get the resource from - * @param body The content to send. The body is automatically serialized. - * @param headers Optional headers. Case-Insensitive. - */ - put(url: string, body?: any, headers?: Record): Observable>; - - /** - * Performs an HTTP PATCH using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and a `responseType` of `"json"`. - * - * Before sending the value passed to the `body` argument, it is automatically serialized - * based on the specified `responseType`. By default, a JavaScript object will be serialized - * to JSON. A `responseType` of `application/x-www-form-urlencoded` will flatten any provided - * dictionary object to a url-encoded string. - * - * @param url The URL to get the resource from - * @param body The content to send. The body is automatically serialized. - * @param headers Optional headers. Case-Insensitive. - */ - patch(url: string, body?: any, headers?: Record): Observable>; - - /** - * Performs an HTTP DELETE using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and a `responseType` of `"json"`. - * - * @param url The URL to get the resource from - * @param headers Optional headers. Case-Insensitive. - */ - delete(url: string, headers?: Record): Observable>; - - /** - * Performs an HTTP GET using the - * [XMLHttpRequest](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest) in - * global scope by default, and returns the hydrated JavaScript object from the - * response. - * - * @param url The URL to get the resource from - * @param headers Optional headers. Case-Insensitive. - */ - getJSON(url: string, headers?: Record): Observable; -} - -function ajaxGet(url: string, headers?: Record): Observable> { - return ajax({ method: 'GET', url, headers }); -} - -function ajaxPost(url: string, body?: any, headers?: Record): Observable> { - return ajax({ method: 'POST', url, body, headers }); -} - -function ajaxDelete(url: string, headers?: Record): Observable> { - return ajax({ method: 'DELETE', url, headers }); -} - -function ajaxPut(url: string, body?: any, headers?: Record): Observable> { - return ajax({ method: 'PUT', url, body, headers }); -} - -function ajaxPatch(url: string, body?: any, headers?: Record): Observable> { - return ajax({ method: 'PATCH', url, body, headers }); -} - -const mapResponse = map((x: AjaxResponse) => x.response); - -function ajaxGetJSON(url: string, headers?: Record): Observable { - return mapResponse( - ajax({ - method: 'GET', - url, - headers, - }) - ); -} - -/** - * There is an ajax operator on the Rx object. - * - * It creates an observable for an Ajax request with either a request object with - * url, headers, etc or a string for a URL. - * - * ## Examples - * - * Using `ajax()` to fetch the response object that is being returned from API - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const obs$ = ajax('https://api.github.com/users?per_page=5').pipe( - * map(userResponse => console.log('users: ', userResponse)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * - * obs$.subscribe({ - * next: value => console.log(value), - * error: err => console.log(err) - * }); - * ``` - * - * Using `ajax.getJSON()` to fetch data from API - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const obs$ = ajax.getJSON('https://api.github.com/users?per_page=5').pipe( - * map(userResponse => console.log('users: ', userResponse)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * - * obs$.subscribe({ - * next: value => console.log(value), - * error: err => console.log(err) - * }); - * ``` - * - * Using `ajax()` with object as argument and method POST with a two seconds delay - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const users = ajax({ - * url: 'https://httpbin.org/delay/2', - * method: 'POST', - * headers: { - * 'Content-Type': 'application/json', - * 'rxjs-custom-header': 'Rxjs' - * }, - * body: { - * rxjs: 'Hello World!' - * } - * }).pipe( - * map(response => console.log('response: ', response)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * - * users.subscribe({ - * next: value => console.log(value), - * error: err => console.log(err) - * }); - * ``` - * - * Using `ajax()` to fetch. An error object that is being returned from the request - * - * ```ts - * import { ajax } from 'rxjs/ajax'; - * import { map, catchError, of } from 'rxjs'; - * - * const obs$ = ajax('https://api.github.com/404').pipe( - * map(userResponse => console.log('users: ', userResponse)), - * catchError(error => { - * console.log('error: ', error); - * return of(error); - * }) - * ); - * - * obs$.subscribe({ - * next: value => console.log(value), - * error: err => console.log(err) - * }); - * ``` - */ -export const ajax: AjaxCreationMethod = (() => { - const create = (urlOrConfig: string | AjaxConfig) => { - const config: AjaxConfig = - typeof urlOrConfig === 'string' - ? { - url: urlOrConfig, - } - : urlOrConfig; - return fromAjax(config); - }; - - create.get = ajaxGet; - create.post = ajaxPost; - create.delete = ajaxDelete; - create.put = ajaxPut; - create.patch = ajaxPatch; - create.getJSON = ajaxGetJSON; - - return create; -})(); - -const UPLOAD = 'upload'; -const DOWNLOAD = 'download'; -const LOADSTART = 'loadstart'; -const PROGRESS = 'progress'; -const LOAD = 'load'; - -export function fromAjax(init: AjaxConfig): Observable> { - return new Observable((destination) => { - const config = { - // Defaults - async: true, - crossDomain: false, - withCredentials: false, - method: 'GET', - timeout: 0, - responseType: 'json' as XMLHttpRequestResponseType, - - ...init, - }; - - const { queryParams, body: configuredBody, headers: configuredHeaders } = config; - - let url = config.url; - if (!url) { - throw new TypeError('url is required'); - } - - if (queryParams) { - let searchParams: URLSearchParams; - if (url.includes('?')) { - // If the user has passed a URL with a querystring already in it, - // we need to combine them. So we're going to split it. There - // should only be one `?` in a valid URL. - const parts = url.split('?'); - if (2 < parts.length) { - throw new TypeError('invalid url'); - } - // Add the passed queryParams to the params already in the url provided. - searchParams = new URLSearchParams(parts[1]); - // queryParams is converted to any because the runtime is *much* more permissive than - // the types are. - new URLSearchParams(queryParams as any).forEach((value, key) => searchParams.set(key, value)); - // We have to do string concatenation here, because `new URL(url)` does - // not like relative URLs like `/this` without a base url, which we can't - // specify, nor can we assume `location` will exist, because of node. - url = parts[0] + '?' + searchParams; - } else { - // There is no preexisting querystring, so we can just use URLSearchParams - // to convert the passed queryParams into the proper format and encodings. - // queryParams is converted to any because the runtime is *much* more permissive than - // the types are. - searchParams = new URLSearchParams(queryParams as any); - url = url + '?' + searchParams; - } - } - - // Normalize the headers. We're going to make them all lowercase, since - // Headers are case insensitive by design. This makes it easier to verify - // that we aren't setting or sending duplicates. - const headers: Record = {}; - if (configuredHeaders) { - for (const key in configuredHeaders) { - if (configuredHeaders.hasOwnProperty(key)) { - headers[key.toLowerCase()] = configuredHeaders[key]; - } - } - } - - const crossDomain = config.crossDomain; - - // Set the x-requested-with header. This is a non-standard header that has - // come to be a de facto standard for HTTP requests sent by libraries and frameworks - // using XHR. However, we DO NOT want to set this if it is a CORS request. This is - // because sometimes this header can cause issues with CORS. To be clear, - // None of this is necessary, it's only being set because it's "the thing libraries do" - // Starting back as far as JQuery, and continuing with other libraries such as Angular 1, - // Axios, et al. - if (!crossDomain && !('x-requested-with' in headers)) { - headers['x-requested-with'] = 'XMLHttpRequest'; - } - - // Allow users to provide their XSRF cookie name and the name of a custom header to use to - // send the cookie. - const { withCredentials, xsrfCookieName, xsrfHeaderName } = config; - if ((withCredentials || !crossDomain) && xsrfCookieName && xsrfHeaderName) { - const xsrfCookie = document?.cookie.match(new RegExp(`(^|;\\s*)(${xsrfCookieName})=([^;]*)`))?.pop() ?? ''; - if (xsrfCookie) { - headers[xsrfHeaderName] = xsrfCookie; - } - } - - // Examine the body and determine whether or not to serialize it - // and set the content-type in `headers`, if we're able. - const body = extractContentTypeAndMaybeSerializeBody(configuredBody, headers); - - // The final request settings. - const _request: Readonly = { - ...config, - - // Set values we ensured above - url, - headers, - body, - }; - - let xhr: XMLHttpRequest; - - // Create our XHR so we can get started. - xhr = init.createXHR ? init.createXHR() : new XMLHttpRequest(); - - { - /////////////////////////////////////////////////// - // set up the events before open XHR - // https://developer.mozilla.org/en/docs/Web/API/XMLHttpRequest/Using_XMLHttpRequest - // You need to add the event listeners before calling open() on the request. - // Otherwise the progress events will not fire. - /////////////////////////////////////////////////// - - const { progressSubscriber, includeDownloadProgress = false, includeUploadProgress = false } = init; - - /** - * Wires up an event handler that will emit an error when fired. Used - * for timeout and abort events. - * @param type The type of event we're treating as an error - * @param errorFactory A function that creates the type of error to emit. - */ - const addErrorEvent = (type: string, errorFactory: () => any) => { - xhr.addEventListener(type, () => { - const error = errorFactory(); - progressSubscriber?.error?.(error); - destination.error(error); - }); - }; - - // If the request times out, handle errors appropriately. - addErrorEvent('timeout', () => new AjaxTimeoutError(xhr, _request)); - - // If the request aborts (due to a network disconnection or the like), handle - // it as an error. - addErrorEvent('abort', () => new AjaxError('aborted', xhr, _request)); - - /** - * Creates a response object to emit to the consumer. - * @param direction the direction related to the event. Prefixes the event `type` in the - * `AjaxResponse` object with "upload_" for events related to uploading and "download_" - * for events related to downloading. - * @param event the actual event object. - */ - const createResponse = (direction: AjaxDirection, event: ProgressEvent) => - new AjaxResponse(event, xhr, _request, `${direction}_${event.type as ProgressEventType}` as const); - - /** - * Wires up an event handler that emits a Response object to the consumer, used for - * all events that emit responses, loadstart, progress, and load. - * Note that download load handling is a bit different below, because it has - * more logic it needs to run. - * @param target The target, either the XHR itself or the Upload object. - * @param type The type of event to wire up - * @param direction The "direction", used to prefix the response object that is - * emitted to the consumer. (e.g. "upload_" or "download_") - */ - const addProgressEvent = (target: any, type: string, direction: AjaxDirection) => { - target.addEventListener(type, (event: ProgressEvent) => { - destination.next(createResponse(direction, event)); - }); - }; - - if (includeUploadProgress) { - [LOADSTART, PROGRESS, LOAD].forEach((type) => addProgressEvent(xhr.upload, type, UPLOAD)); - } - - if (progressSubscriber) { - [LOADSTART, PROGRESS].forEach((type) => xhr.upload.addEventListener(type, (e: any) => progressSubscriber?.next?.(e))); - } - - if (includeDownloadProgress) { - [LOADSTART, PROGRESS].forEach((type) => addProgressEvent(xhr, type, DOWNLOAD)); - } - - const emitError = (status?: number) => { - const msg = 'ajax error' + (status ? ' ' + status : ''); - destination.error(new AjaxError(msg, xhr, _request)); - }; - - xhr.addEventListener('error', (e) => { - progressSubscriber?.error?.(e); - emitError(); - }); - - xhr.addEventListener(LOAD, (event) => { - const { status } = xhr; - // 4xx and 5xx should error (https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html) - if (status < 400) { - progressSubscriber?.complete?.(); - - let response: AjaxResponse; - try { - // This can throw in IE, because we end up needing to do a JSON.parse - // of the response in some cases to produce object we'd expect from - // modern browsers. - response = createResponse(DOWNLOAD, event); - } catch (err) { - destination.error(err); - return; - } - - destination.next(response); - destination.complete(); - } else { - progressSubscriber?.error?.(event); - emitError(status); - } - }); - } - - const { user, method, async } = _request; - // open XHR - if (user) { - xhr.open(method, url, async, user, _request.password); - } else { - xhr.open(method, url, async); - } - - // timeout, responseType and withCredentials can be set once the XHR is open - if (async) { - xhr.timeout = _request.timeout; - xhr.responseType = _request.responseType; - } - - if ('withCredentials' in xhr) { - xhr.withCredentials = _request.withCredentials; - } - - // set headers - for (const key in headers) { - if (headers.hasOwnProperty(key)) { - xhr.setRequestHeader(key, headers[key]); - } - } - - // finally send the request - if (body) { - xhr.send(body); - } else { - xhr.send(); - } - - return () => { - if (xhr && xhr.readyState !== 4 /*XHR done*/) { - xhr.abort(); - } - }; - }); -} - -/** - * Examines the body to determine if we need to serialize it for them or not. - * If the body is a type that XHR handles natively, we just allow it through, - * otherwise, if the body is something that *we* can serialize for the user, - * we will serialize it, and attempt to set the `content-type` header, if it's - * not already set. - * @param body The body passed in by the user - * @param headers The normalized headers - */ -function extractContentTypeAndMaybeSerializeBody(body: any, headers: Record) { - if ( - !body || - typeof body === 'string' || - isFormData(body) || - isURLSearchParams(body) || - isArrayBuffer(body) || - isFile(body) || - isBlob(body) || - isReadableStream(body) - ) { - // The XHR instance itself can handle serializing these, and set the content-type for us - // so we don't need to do that. https://xhr.spec.whatwg.org/#the-send()-method - return body; - } - - if (isArrayBufferView(body)) { - // This is a typed array (e.g. Float32Array or Uint8Array), or a DataView. - // XHR can handle this one too: https://fetch.spec.whatwg.org/#concept-bodyinit-extract - return body.buffer; - } - - if (typeof body === 'object') { - // If we have made it here, this is an object, probably a POJO, and we'll try - // to serialize it for them. If this doesn't work, it will throw, obviously, which - // is okay. The workaround for users would be to manually set the body to their own - // serialized string (accounting for circular references or whatever), then set - // the content-type manually as well. - headers['content-type'] = headers['content-type'] ?? 'application/json;charset=utf-8'; - return JSON.stringify(body); - } - - // If we've gotten past everything above, this is something we don't quite know how to - // handle. Throw an error. This will be caught and emitted from the observable. - throw new TypeError('Unknown body type'); -} - -const _toString = Object.prototype.toString; - -function toStringCheck(obj: any, name: string): boolean { - return _toString.call(obj) === `[object ${name}]`; -} - -function isArrayBuffer(body: any): body is ArrayBuffer { - return toStringCheck(body, 'ArrayBuffer'); -} - -function isFile(body: any): body is File { - return toStringCheck(body, 'File'); -} - -function isBlob(body: any): body is Blob { - return toStringCheck(body, 'Blob'); -} - -function isArrayBufferView(body: any): body is ArrayBufferView { - return typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView(body); -} - -function isFormData(body: any): body is FormData { - return typeof FormData !== 'undefined' && body instanceof FormData; -} - -function isURLSearchParams(body: any): body is URLSearchParams { - return typeof URLSearchParams !== 'undefined' && body instanceof URLSearchParams; -} - -function isReadableStream(body: any): body is ReadableStream { - return typeof ReadableStream !== 'undefined' && body instanceof ReadableStream; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/ajax/errors.ts b/WechatBot/node_modules/rxjs/src/internal/ajax/errors.ts deleted file mode 100644 index bb220a248..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/ajax/errors.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { AjaxRequest } from './types'; -import { getXHRResponse } from './getXHRResponse'; -import { createErrorClass } from '../util/createErrorClass'; - -/** - * A normalized AJAX error. - * - * @see {@link ajax} - * - * @class AjaxError - */ -export interface AjaxError extends Error { - /** - * The XHR instance associated with the error. - */ - xhr: XMLHttpRequest; - - /** - * The AjaxRequest associated with the error. - */ - request: AjaxRequest; - - /** - * The HTTP status code, if the request has completed. If not, - * it is set to `0`. - */ - status: number; - - /** - * The responseType (e.g. 'json', 'arraybuffer', or 'xml'). - */ - responseType: XMLHttpRequestResponseType; - - /** - * The response data. - */ - response: any; -} - -export interface AjaxErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (message: string, xhr: XMLHttpRequest, request: AjaxRequest): AjaxError; -} - -/** - * Thrown when an error occurs during an AJAX request. - * This is only exported because it is useful for checking to see if an error - * is an `instanceof AjaxError`. DO NOT create new instances of `AjaxError` with - * the constructor. - * - * @class AjaxError - * @see {@link ajax} - */ -export const AjaxError: AjaxErrorCtor = createErrorClass( - (_super) => - function AjaxErrorImpl(this: any, message: string, xhr: XMLHttpRequest, request: AjaxRequest) { - this.message = message; - this.name = 'AjaxError'; - this.xhr = xhr; - this.request = request; - this.status = xhr.status; - this.responseType = xhr.responseType; - let response: any; - try { - // This can throw in IE, because we have to do a JSON.parse of - // the response in some cases to get the expected response property. - response = getXHRResponse(xhr); - } catch (err) { - response = xhr.responseText; - } - this.response = response; - } -); - -export interface AjaxTimeoutError extends AjaxError {} - -export interface AjaxTimeoutErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (xhr: XMLHttpRequest, request: AjaxRequest): AjaxTimeoutError; -} - -/** - * Thrown when an AJAX request times out. Not to be confused with {@link TimeoutError}. - * - * This is exported only because it is useful for checking to see if errors are an - * `instanceof AjaxTimeoutError`. DO NOT use the constructor to create an instance of - * this type. - * - * @class AjaxTimeoutError - * @see {@link ajax} - */ -export const AjaxTimeoutError: AjaxTimeoutErrorCtor = (() => { - function AjaxTimeoutErrorImpl(this: any, xhr: XMLHttpRequest, request: AjaxRequest) { - AjaxError.call(this, 'ajax timeout', xhr, request); - this.name = 'AjaxTimeoutError'; - return this; - } - AjaxTimeoutErrorImpl.prototype = Object.create(AjaxError.prototype); - return AjaxTimeoutErrorImpl; -})() as any; diff --git a/WechatBot/node_modules/rxjs/src/internal/ajax/getXHRResponse.ts b/WechatBot/node_modules/rxjs/src/internal/ajax/getXHRResponse.ts deleted file mode 100644 index 34d7031a4..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/ajax/getXHRResponse.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * Gets what should be in the `response` property of the XHR. However, - * since we still support the final versions of IE, we need to do a little - * checking here to make sure that we get the right thing back. Consequently, - * we need to do a JSON.parse() in here, which *could* throw if the response - * isn't valid JSON. - * - * This is used both in creating an AjaxResponse, and in creating certain errors - * that we throw, so we can give the user whatever was in the response property. - * - * @param xhr The XHR to examine the response of - */ -export function getXHRResponse(xhr: XMLHttpRequest) { - switch (xhr.responseType) { - case 'json': { - if ('response' in xhr) { - return xhr.response; - } else { - // IE - const ieXHR: any = xhr; - return JSON.parse(ieXHR.responseText); - } - } - case 'document': - return xhr.responseXML; - case 'text': - default: { - if ('response' in xhr) { - return xhr.response; - } else { - // IE - const ieXHR: any = xhr; - return ieXHR.responseText; - } - } - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/ajax/types.ts b/WechatBot/node_modules/rxjs/src/internal/ajax/types.ts deleted file mode 100644 index 96e8a9110..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/ajax/types.ts +++ /dev/null @@ -1,235 +0,0 @@ -import { PartialObserver } from '../types'; - -/** - * Valid Ajax direction types. Prefixes the event `type` in the - * {@link AjaxResponse} object with "upload_" for events related - * to uploading and "download_" for events related to downloading. - */ -export type AjaxDirection = 'upload' | 'download'; - -export type ProgressEventType = 'loadstart' | 'progress' | 'load'; - -export type AjaxResponseType = `${AjaxDirection}_${ProgressEventType}`; - -/** - * The object containing values RxJS used to make the HTTP request. - * - * This is provided in {@link AjaxError} instances as the `request` - * object. - */ -export interface AjaxRequest { - /** - * The URL requested. - */ - url: string; - - /** - * The body to send over the HTTP request. - */ - body?: any; - - /** - * The HTTP method used to make the HTTP request. - */ - method: string; - - /** - * Whether or not the request was made asynchronously. - */ - async: boolean; - - /** - * The headers sent over the HTTP request. - */ - headers: Readonly>; - - /** - * The timeout value used for the HTTP request. - * Note: this is only honored if the request is asynchronous (`async` is `true`). - */ - timeout: number; - - /** - * The user credentials user name sent with the HTTP request. - */ - user?: string; - - /** - * The user credentials password sent with the HTTP request. - */ - password?: string; - - /** - * Whether or not the request was a CORS request. - */ - crossDomain: boolean; - - /** - * Whether or not a CORS request was sent with credentials. - * If `false`, will also ignore cookies in the CORS response. - */ - withCredentials: boolean; - - /** - * The [`responseType`](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/responseType) set before sending the request. - */ - responseType: XMLHttpRequestResponseType; -} - -/** - * Configuration for the {@link ajax} creation function. - */ -export interface AjaxConfig { - /** The address of the resource to request via HTTP. */ - url: string; - - /** - * The body of the HTTP request to send. - * - * This is serialized, by default, based off of the value of the `"content-type"` header. - * For example, if the `"content-type"` is `"application/json"`, the body will be serialized - * as JSON. If the `"content-type"` is `"application/x-www-form-urlencoded"`, whatever object passed - * to the body will be serialized as URL, using key-value pairs based off of the keys and values of the object. - * In all other cases, the body will be passed directly. - */ - body?: any; - - /** - * Whether or not to send the request asynchronously. Defaults to `true`. - * If set to `false`, this will block the thread until the AJAX request responds. - */ - async?: boolean; - - /** - * The HTTP Method to use for the request. Defaults to "GET". - */ - method?: string; - - /** - * The HTTP headers to apply. - * - * Note that, by default, RxJS will add the following headers under certain conditions: - * - * 1. If the `"content-type"` header is **NOT** set, and the `body` is [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData), - * a `"content-type"` of `"application/x-www-form-urlencoded; charset=UTF-8"` will be set automatically. - * 2. If the `"x-requested-with"` header is **NOT** set, and the `crossDomain` configuration property is **NOT** explicitly set to `true`, - * (meaning it is not a CORS request), a `"x-requested-with"` header with a value of `"XMLHttpRequest"` will be set automatically. - * This header is generally meaningless, and is set by libraries and frameworks using `XMLHttpRequest` to make HTTP requests. - */ - headers?: Readonly>; - - /** - * The time to wait before causing the underlying XMLHttpRequest to timeout. This is only honored if the - * `async` configuration setting is unset or set to `true`. Defaults to `0`, which is idiomatic for "never timeout". - */ - timeout?: number; - - /** The user credentials user name to send with the HTTP request */ - user?: string; - - /** The user credentials password to send with the HTTP request*/ - password?: string; - - /** - * Whether or not to send the HTTP request as a CORS request. - * Defaults to `false`. - * - * @deprecated Will be removed in version 8. Cross domain requests and what creates a cross - * domain request, are dictated by the browser, and a boolean that forces it to be cross domain - * does not make sense. If you need to force cross domain, make sure you're making a secure request, - * then add a custom header to the request or use `withCredentials`. For more information on what - * triggers a cross domain request, see the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials). - * In particular, the section on [Simple Requests](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#Simple_requests) is useful - * for understanding when CORS will not be used. - */ - crossDomain?: boolean; - - /** - * To send user credentials in a CORS request, set to `true`. To exclude user credentials from - * a CORS request, _OR_ when cookies are to be ignored by the CORS response, set to `false`. - * - * Defaults to `false`. - */ - withCredentials?: boolean; - - /** - * The name of your site's XSRF cookie. - */ - xsrfCookieName?: string; - - /** - * The name of a custom header that you can use to send your XSRF cookie. - */ - xsrfHeaderName?: string; - - /** - * Can be set to change the response type. - * Valid values are `"arraybuffer"`, `"blob"`, `"document"`, `"json"`, and `"text"`. - * Note that the type of `"document"` (such as an XML document) is ignored if the global context is - * not `Window`. - * - * Defaults to `"json"`. - */ - responseType?: XMLHttpRequestResponseType; - - /** - * An optional factory used to create the XMLHttpRequest object used to make the AJAX request. - * This is useful in environments that lack `XMLHttpRequest`, or in situations where you - * wish to override the default `XMLHttpRequest` for some reason. - * - * If not provided, the `XMLHttpRequest` in global scope will be used. - * - * NOTE: This AJAX implementation relies on the built-in serialization and setting - * of Content-Type headers that is provided by standards-compliant XMLHttpRequest implementations, - * be sure any implementation you use meets that standard. - */ - createXHR?: () => XMLHttpRequest; - - /** - * An observer for watching the upload progress of an HTTP request. Will - * emit progress events, and completes on the final upload load event, will error for - * any XHR error or timeout. - * - * This will **not** error for errored status codes. Rather, it will always _complete_ when - * the HTTP response comes back. - * - * @deprecated If you're looking for progress events, use {@link includeDownloadProgress} and - * {@link includeUploadProgress} instead. Will be removed in v8. - */ - progressSubscriber?: PartialObserver; - - /** - * If `true`, will emit all download progress and load complete events as {@link AjaxResponse} - * from the observable. The final download event will also be emitted as a {@link AjaxResponse}. - * - * If both this and {@link includeUploadProgress} are `false`, then only the {@link AjaxResponse} will - * be emitted from the resulting observable. - */ - includeDownloadProgress?: boolean; - - /** - * If `true`, will emit all upload progress and load complete events as {@link AjaxResponse} - * from the observable. The final download event will also be emitted as a {@link AjaxResponse}. - * - * If both this and {@link includeDownloadProgress} are `false`, then only the {@link AjaxResponse} will - * be emitted from the resulting observable. - */ - includeUploadProgress?: boolean; - - /** - * Query string parameters to add to the URL in the request. - * This will require a polyfill for `URL` and `URLSearchParams` in Internet Explorer! - * - * Accepts either a query string, a `URLSearchParams` object, a dictionary of key/value pairs, or an - * array of key/value entry tuples. (Essentially, it takes anything that `new URLSearchParams` would normally take). - * - * If, for some reason you have a query string in the `url` argument, this will append to the query string in the url, - * but it will also overwrite the value of any keys that are an exact match. In other words, a url of `/test?a=1&b=2`, - * with queryParams of `{ b: 5, c: 6 }` will result in a url of roughly `/test?a=1&b=5&c=6`. - */ - queryParams?: - | string - | URLSearchParams - | Record - | [string, string | number | boolean | string[] | number[] | boolean[]][]; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/config.ts b/WechatBot/node_modules/rxjs/src/internal/config.ts deleted file mode 100644 index 99461dba4..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/config.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { Subscriber } from './Subscriber'; -import { ObservableNotification } from './types'; - -/** - * The {@link GlobalConfig} object for RxJS. It is used to configure things - * like how to react on unhandled errors. - */ -export const config: GlobalConfig = { - onUnhandledError: null, - onStoppedNotification: null, - Promise: undefined, - useDeprecatedSynchronousErrorHandling: false, - useDeprecatedNextContext: false, -}; - -/** - * The global configuration object for RxJS, used to configure things - * like how to react on unhandled errors. Accessible via {@link config} - * object. - */ -export interface GlobalConfig { - /** - * A registration point for unhandled errors from RxJS. These are errors that - * cannot were not handled by consuming code in the usual subscription path. For - * example, if you have this configured, and you subscribe to an observable without - * providing an error handler, errors from that subscription will end up here. This - * will _always_ be called asynchronously on another job in the runtime. This is because - * we do not want errors thrown in this user-configured handler to interfere with the - * behavior of the library. - */ - onUnhandledError: ((err: any) => void) | null; - - /** - * A registration point for notifications that cannot be sent to subscribers because they - * have completed, errored or have been explicitly unsubscribed. By default, next, complete - * and error notifications sent to stopped subscribers are noops. However, sometimes callers - * might want a different behavior. For example, with sources that attempt to report errors - * to stopped subscribers, a caller can configure RxJS to throw an unhandled error instead. - * This will _always_ be called asynchronously on another job in the runtime. This is because - * we do not want errors thrown in this user-configured handler to interfere with the - * behavior of the library. - */ - onStoppedNotification: ((notification: ObservableNotification, subscriber: Subscriber) => void) | null; - - /** - * The promise constructor used by default for {@link Observable#toPromise toPromise} and {@link Observable#forEach forEach} - * methods. - * - * @deprecated As of version 8, RxJS will no longer support this sort of injection of a - * Promise constructor. If you need a Promise implementation other than native promises, - * please polyfill/patch Promise as you see appropriate. Will be removed in v8. - */ - Promise?: PromiseConstructorLike; - - /** - * If true, turns on synchronous error rethrowing, which is a deprecated behavior - * in v6 and higher. This behavior enables bad patterns like wrapping a subscribe - * call in a try/catch block. It also enables producer interference, a nasty bug - * where a multicast can be broken for all observers by a downstream consumer with - * an unhandled error. DO NOT USE THIS FLAG UNLESS IT'S NEEDED TO BUY TIME - * FOR MIGRATION REASONS. - * - * @deprecated As of version 8, RxJS will no longer support synchronous throwing - * of unhandled errors. All errors will be thrown on a separate call stack to prevent bad - * behaviors described above. Will be removed in v8. - */ - useDeprecatedSynchronousErrorHandling: boolean; - - /** - * If true, enables an as-of-yet undocumented feature from v5: The ability to access - * `unsubscribe()` via `this` context in `next` functions created in observers passed - * to `subscribe`. - * - * This is being removed because the performance was severely problematic, and it could also cause - * issues when types other than POJOs are passed to subscribe as subscribers, as they will likely have - * their `this` context overwritten. - * - * @deprecated As of version 8, RxJS will no longer support altering the - * context of next functions provided as part of an observer to Subscribe. Instead, - * you will have access to a subscription or a signal or token that will allow you to do things like - * unsubscribe and test closed status. Will be removed in v8. - */ - useDeprecatedNextContext: boolean; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/firstValueFrom.ts b/WechatBot/node_modules/rxjs/src/internal/firstValueFrom.ts deleted file mode 100644 index 2fc4bcfe4..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/firstValueFrom.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { Observable } from './Observable'; -import { EmptyError } from './util/EmptyError'; -import { SafeSubscriber } from './Subscriber'; - -export interface FirstValueFromConfig { - defaultValue: T; -} - -export function firstValueFrom(source: Observable, config: FirstValueFromConfig): Promise; -export function firstValueFrom(source: Observable): Promise; - -/** - * Converts an observable to a promise by subscribing to the observable, - * and returning a promise that will resolve as soon as the first value - * arrives from the observable. The subscription will then be closed. - * - * If the observable stream completes before any values were emitted, the - * returned promise will reject with {@link EmptyError} or will resolve - * with the default value if a default was specified. - * - * If the observable stream emits an error, the returned promise will reject - * with that error. - * - * **WARNING**: Only use this with observables you *know* will emit at least one value, - * *OR* complete. If the source observable does not emit one value or complete, you will - * end up with a promise that is hung up, and potentially all of the state of an - * async function hanging out in memory. To avoid this situation, look into adding - * something like {@link timeout}, {@link take}, {@link takeWhile}, or {@link takeUntil} - * amongst others. - * - * ## Example - * - * Wait for the first value from a stream and emit it from a promise in - * an async function - * - * ```ts - * import { interval, firstValueFrom } from 'rxjs'; - * - * async function execute() { - * const source$ = interval(2000); - * const firstNumber = await firstValueFrom(source$); - * console.log(`The first number is ${ firstNumber }`); - * } - * - * execute(); - * - * // Expected output: - * // 'The first number is 0' - * ``` - * - * @see {@link lastValueFrom} - * - * @param source the observable to convert to a promise - * @param config a configuration object to define the `defaultValue` to use if the source completes without emitting a value - */ -export function firstValueFrom(source: Observable, config?: FirstValueFromConfig): Promise { - const hasConfig = typeof config === 'object'; - return new Promise((resolve, reject) => { - const subscriber = new SafeSubscriber({ - next: (value) => { - resolve(value); - subscriber.unsubscribe(); - }, - error: reject, - complete: () => { - if (hasConfig) { - resolve(config!.defaultValue); - } else { - reject(new EmptyError()); - } - }, - }); - source.subscribe(subscriber); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/lastValueFrom.ts b/WechatBot/node_modules/rxjs/src/internal/lastValueFrom.ts deleted file mode 100644 index 90fcebfb3..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/lastValueFrom.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { Observable } from './Observable'; -import { EmptyError } from './util/EmptyError'; - -export interface LastValueFromConfig { - defaultValue: T; -} - -export function lastValueFrom(source: Observable, config: LastValueFromConfig): Promise; -export function lastValueFrom(source: Observable): Promise; - -/** - * Converts an observable to a promise by subscribing to the observable, - * waiting for it to complete, and resolving the returned promise with the - * last value from the observed stream. - * - * If the observable stream completes before any values were emitted, the - * returned promise will reject with {@link EmptyError} or will resolve - * with the default value if a default was specified. - * - * If the observable stream emits an error, the returned promise will reject - * with that error. - * - * **WARNING**: Only use this with observables you *know* will complete. If the source - * observable does not complete, you will end up with a promise that is hung up, and - * potentially all of the state of an async function hanging out in memory. To avoid - * this situation, look into adding something like {@link timeout}, {@link take}, - * {@link takeWhile}, or {@link takeUntil} amongst others. - * - * ## Example - * - * Wait for the last value from a stream and emit it from a promise in - * an async function - * - * ```ts - * import { interval, take, lastValueFrom } from 'rxjs'; - * - * async function execute() { - * const source$ = interval(2000).pipe(take(10)); - * const finalNumber = await lastValueFrom(source$); - * console.log(`The final number is ${ finalNumber }`); - * } - * - * execute(); - * - * // Expected output: - * // 'The final number is 9' - * ``` - * - * @see {@link firstValueFrom} - * - * @param source the observable to convert to a promise - * @param config a configuration object to define the `defaultValue` to use if the source completes without emitting a value - */ -export function lastValueFrom(source: Observable, config?: LastValueFromConfig): Promise { - const hasConfig = typeof config === 'object'; - return new Promise((resolve, reject) => { - let _hasValue = false; - let _value: T; - source.subscribe({ - next: (value) => { - _value = value; - _hasValue = true; - }, - error: reject, - complete: () => { - if (_hasValue) { - resolve(_value); - } else if (hasConfig) { - resolve(config!.defaultValue); - } else { - reject(new EmptyError()); - } - }, - }); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/ConnectableObservable.ts b/WechatBot/node_modules/rxjs/src/internal/observable/ConnectableObservable.ts deleted file mode 100644 index bd1c76fbe..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/ConnectableObservable.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { Subject } from '../Subject'; -import { Observable } from '../Observable'; -import { Subscriber } from '../Subscriber'; -import { Subscription } from '../Subscription'; -import { refCount as higherOrderRefCount } from '../operators/refCount'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { hasLift } from '../util/lift'; - -/** - * @class ConnectableObservable - * @deprecated Will be removed in v8. Use {@link connectable} to create a connectable observable. - * If you are using the `refCount` method of `ConnectableObservable`, use the {@link share} operator - * instead. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export class ConnectableObservable extends Observable { - protected _subject: Subject | null = null; - protected _refCount: number = 0; - protected _connection: Subscription | null = null; - - /** - * @param source The source observable - * @param subjectFactory The factory that creates the subject used internally. - * @deprecated Will be removed in v8. Use {@link connectable} to create a connectable observable. - * `new ConnectableObservable(source, factory)` is equivalent to - * `connectable(source, { connector: factory })`. - * When the `refCount()` method is needed, the {@link share} operator should be used instead: - * `new ConnectableObservable(source, factory).refCount()` is equivalent to - * `source.pipe(share({ connector: factory }))`. - * Details: https://rxjs.dev/deprecations/multicasting - */ - constructor(public source: Observable, protected subjectFactory: () => Subject) { - super(); - // If we have lift, monkey patch that here. This is done so custom observable - // types will compose through multicast. Otherwise the resulting observable would - // simply be an instance of `ConnectableObservable`. - if (hasLift(source)) { - this.lift = source.lift; - } - } - - /** @internal */ - protected _subscribe(subscriber: Subscriber) { - return this.getSubject().subscribe(subscriber); - } - - protected getSubject(): Subject { - const subject = this._subject; - if (!subject || subject.isStopped) { - this._subject = this.subjectFactory(); - } - return this._subject!; - } - - protected _teardown() { - this._refCount = 0; - const { _connection } = this; - this._subject = this._connection = null; - _connection?.unsubscribe(); - } - - /** - * @deprecated {@link ConnectableObservable} will be removed in v8. Use {@link connectable} instead. - * Details: https://rxjs.dev/deprecations/multicasting - */ - connect(): Subscription { - let connection = this._connection; - if (!connection) { - connection = this._connection = new Subscription(); - const subject = this.getSubject(); - connection.add( - this.source.subscribe( - createOperatorSubscriber( - subject as any, - undefined, - () => { - this._teardown(); - subject.complete(); - }, - (err) => { - this._teardown(); - subject.error(err); - }, - () => this._teardown() - ) - ) - ); - - if (connection.closed) { - this._connection = null; - connection = Subscription.EMPTY; - } - } - return connection; - } - - /** - * @deprecated {@link ConnectableObservable} will be removed in v8. Use the {@link share} operator instead. - * Details: https://rxjs.dev/deprecations/multicasting - */ - refCount(): Observable { - return higherOrderRefCount()(this) as Observable; - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/bindCallback.ts b/WechatBot/node_modules/rxjs/src/internal/observable/bindCallback.ts deleted file mode 100644 index f402517e9..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/bindCallback.ts +++ /dev/null @@ -1,145 +0,0 @@ -/* @prettier */ -import { SchedulerLike } from '../types'; -import { Observable } from '../Observable'; -import { bindCallbackInternals } from './bindCallbackInternals'; - -export function bindCallback( - callbackFunc: (...args: any[]) => void, - resultSelector: (...args: any[]) => any, - scheduler?: SchedulerLike -): (...args: any[]) => Observable; - -// args is the arguments array and we push the callback on the rest tuple since the rest parameter must be last (only item) in a parameter list -export function bindCallback( - callbackFunc: (...args: [...A, (...res: R) => void]) => void, - schedulerLike?: SchedulerLike -): (...arg: A) => Observable; - -/** - * Converts a callback API to a function that returns an Observable. - * - * Give it a function `f` of type `f(x, callback)` and - * it will return a function `g` that when called as `g(x)` will output an - * Observable. - * - * `bindCallback` is not an operator because its input and output are not - * Observables. The input is a function `func` with some parameters. The - * last parameter must be a callback function that `func` calls when it is - * done. - * - * The output of `bindCallback` is a function that takes the same parameters - * as `func`, except the last one (the callback). When the output function - * is called with arguments it will return an Observable. If function `func` - * calls its callback with one argument, the Observable will emit that value. - * If on the other hand the callback is called with multiple values the resulting - * Observable will emit an array with said values as arguments. - * - * It is **very important** to remember that input function `func` is not called - * when the output function is, but rather when the Observable returned by the output - * function is subscribed. This means if `func` makes an AJAX request, that request - * will be made every time someone subscribes to the resulting Observable, but not before. - * - * The last optional parameter - `scheduler` - can be used to control when the call - * to `func` happens after someone subscribes to Observable, as well as when results - * passed to callback will be emitted. By default, the subscription to an Observable calls `func` - * synchronously, but using {@link asyncScheduler} as the last parameter will defer the call to `func`, - * just like wrapping the call in `setTimeout` with a timeout of `0` would. If you were to use the async Scheduler - * and call `subscribe` on the output Observable, all function calls that are currently executing - * will end before `func` is invoked. - * - * By default, results passed to the callback are emitted immediately after `func` invokes the callback. - * In particular, if the callback is called synchronously, then the subscription of the resulting Observable - * will call the `next` function synchronously as well. If you want to defer that call, - * you may use {@link asyncScheduler} just as before. This means that by using `Scheduler.async` you can - * ensure that `func` always calls its callback asynchronously, thus avoiding terrifying Zalgo. - * - * Note that the Observable created by the output function will always emit a single value - * and then complete immediately. If `func` calls the callback multiple times, values from subsequent - * calls will not appear in the stream. If you need to listen for multiple calls, - * you probably want to use {@link fromEvent} or {@link fromEventPattern} instead. - * - * If `func` depends on some context (`this` property) and is not already bound, the context of `func` - * will be the context that the output function has at call time. In particular, if `func` - * is called as a method of some object and if `func` is not already bound, in order to preserve the context - * it is recommended that the context of the output function is set to that object as well. - * - * If the input function calls its callback in the "node style" (i.e. first argument to callback is - * optional error parameter signaling whether the call failed or not), {@link bindNodeCallback} - * provides convenient error handling and probably is a better choice. - * `bindCallback` will treat such functions the same as any other and error parameters - * (whether passed or not) will always be interpreted as regular callback argument. - * - * ## Examples - * - * ### Convert jQuery's getJSON to an Observable API - * ```ts - * import { bindCallback } from 'rxjs'; - * import * as jQuery from 'jquery'; - * - * // Suppose we have jQuery.getJSON('/my/url', callback) - * const getJSONAsObservable = bindCallback(jQuery.getJSON); - * const result = getJSONAsObservable('/my/url'); - * result.subscribe(x => console.log(x), e => console.error(e)); - * ``` - * - * ### Receive an array of arguments passed to a callback - * ```ts - * import { bindCallback } from 'rxjs'; - * - * const someFunction = (n, s, cb) => { - * cb(n, s, { someProperty: 'someValue' }); - * }; - * - * const boundSomeFunction = bindCallback(someFunction); - * boundSomeFunction(5, 'some string').subscribe((values) => { - * console.log(values); // [5, 'some string', {someProperty: 'someValue'}] - * }); - * ``` - * - * ### Compare behaviour with and without async Scheduler - * ```ts - * import { bindCallback, asyncScheduler } from 'rxjs'; - * - * function iCallMyCallbackSynchronously(cb) { - * cb(); - * } - * - * const boundSyncFn = bindCallback(iCallMyCallbackSynchronously); - * const boundAsyncFn = bindCallback(iCallMyCallbackSynchronously, null, asyncScheduler); - * - * boundSyncFn().subscribe(() => console.log('I was sync!')); - * boundAsyncFn().subscribe(() => console.log('I was async!')); - * console.log('This happened...'); - * - * // Logs: - * // I was sync! - * // This happened... - * // I was async! - * ``` - * - * ### Use bindCallback on an object method - * ```ts - * import { bindCallback } from 'rxjs'; - * - * const boundMethod = bindCallback(someObject.methodWithCallback); - * boundMethod - * .call(someObject) // make sure methodWithCallback has access to someObject - * .subscribe(subscriber); - * ``` - * - * @see {@link bindNodeCallback} - * @see {@link from} - * - * @param {function} func A function with a callback as the last parameter. - * @param {SchedulerLike} [scheduler] The scheduler on which to schedule the - * callbacks. - * @return {function(...params: *): Observable} A function which returns the - * Observable that delivers the same values the callback would deliver. - */ -export function bindCallback( - callbackFunc: (...args: [...any[], (...res: any) => void]) => void, - resultSelector?: ((...args: any[]) => any) | SchedulerLike, - scheduler?: SchedulerLike -): (...args: any[]) => Observable { - return bindCallbackInternals(false, callbackFunc, resultSelector, scheduler); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/bindCallbackInternals.ts b/WechatBot/node_modules/rxjs/src/internal/observable/bindCallbackInternals.ts deleted file mode 100644 index e614044a4..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/bindCallbackInternals.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { SchedulerLike } from '../types'; -import { isScheduler } from '../util/isScheduler'; -import { Observable } from '../Observable'; -import { subscribeOn } from '../operators/subscribeOn'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { observeOn } from '../operators/observeOn'; -import { AsyncSubject } from '../AsyncSubject'; - -export function bindCallbackInternals( - isNodeStyle: boolean, - callbackFunc: any, - resultSelector?: any, - scheduler?: SchedulerLike -): (...args: any[]) => Observable { - if (resultSelector) { - if (isScheduler(resultSelector)) { - scheduler = resultSelector; - } else { - // The user provided a result selector. - return function (this: any, ...args: any[]) { - return (bindCallbackInternals(isNodeStyle, callbackFunc, scheduler) as any) - .apply(this, args) - .pipe(mapOneOrManyArgs(resultSelector as any)); - }; - } - } - - // If a scheduler was passed, use our `subscribeOn` and `observeOn` operators - // to compose that behavior for the user. - if (scheduler) { - return function (this: any, ...args: any[]) { - return (bindCallbackInternals(isNodeStyle, callbackFunc) as any) - .apply(this, args) - .pipe(subscribeOn(scheduler!), observeOn(scheduler!)); - }; - } - - return function (this: any, ...args: any[]): Observable { - // We're using AsyncSubject, because it emits when it completes, - // and it will play the value to all late-arriving subscribers. - const subject = new AsyncSubject(); - - // If this is true, then we haven't called our function yet. - let uninitialized = true; - return new Observable((subscriber) => { - // Add our subscriber to the subject. - const subs = subject.subscribe(subscriber); - - if (uninitialized) { - uninitialized = false; - // We're going to execute the bound function - // This bit is to signal that we are hitting the callback asynchronously. - // Because we don't have any anti-"Zalgo" guarantees with whatever - // function we are handed, we use this bit to figure out whether or not - // we are getting hit in a callback synchronously during our call. - let isAsync = false; - - // This is used to signal that the callback completed synchronously. - let isComplete = false; - - // Call our function that has a callback. If at any time during this - // call, an error is thrown, it will be caught by the Observable - // subscription process and sent to the consumer. - callbackFunc.apply( - // Pass the appropriate `this` context. - this, - [ - // Pass the arguments. - ...args, - // And our callback handler. - (...results: any[]) => { - if (isNodeStyle) { - // If this is a node callback, shift the first value off of the - // results and check it, as it is the error argument. By shifting, - // we leave only the argument(s) we want to pass to the consumer. - const err = results.shift(); - if (err != null) { - subject.error(err); - // If we've errored, we can stop processing this function - // as there's nothing else to do. Just return to escape. - return; - } - } - // If we have one argument, notify the consumer - // of it as a single value, otherwise, if there's more than one, pass - // them as an array. Note that if there are no arguments, `undefined` - // will be emitted. - subject.next(1 < results.length ? results : results[0]); - // Flip this flag, so we know we can complete it in the synchronous - // case below. - isComplete = true; - // If we're not asynchronous, we need to defer the `complete` call - // until after the call to the function is over. This is because an - // error could be thrown in the function after it calls our callback, - // and if that is the case, if we complete here, we are unable to notify - // the consumer than an error occurred. - if (isAsync) { - subject.complete(); - } - }, - ] - ); - // If we flipped `isComplete` during the call, we resolved synchronously, - // notify complete, because we skipped it in the callback to wait - // to make sure there were no errors during the call. - if (isComplete) { - subject.complete(); - } - - // We're no longer synchronous. If the callback is called at this point - // we can notify complete on the spot. - isAsync = true; - } - - // Return the subscription from adding our subscriber to the subject. - return subs; - }); - }; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/bindNodeCallback.ts b/WechatBot/node_modules/rxjs/src/internal/observable/bindNodeCallback.ts deleted file mode 100644 index 7c5f06049..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/bindNodeCallback.ts +++ /dev/null @@ -1,128 +0,0 @@ -/* @prettier */ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -import { bindCallbackInternals } from './bindCallbackInternals'; - -export function bindNodeCallback( - callbackFunc: (...args: any[]) => void, - resultSelector: (...args: any[]) => any, - scheduler?: SchedulerLike -): (...args: any[]) => Observable; - -// args is the arguments array and we push the callback on the rest tuple since the rest parameter must be last (only item) in a parameter list -export function bindNodeCallback( - callbackFunc: (...args: [...A, (err: any, ...res: R) => void]) => void, - schedulerLike?: SchedulerLike -): (...arg: A) => Observable; - -/** - * Converts a Node.js-style callback API to a function that returns an - * Observable. - * - * It's just like {@link bindCallback}, but the - * callback is expected to be of type `callback(error, result)`. - * - * `bindNodeCallback` is not an operator because its input and output are not - * Observables. The input is a function `func` with some parameters, but the - * last parameter must be a callback function that `func` calls when it is - * done. The callback function is expected to follow Node.js conventions, - * where the first argument to the callback is an error object, signaling - * whether call was successful. If that object is passed to callback, it means - * something went wrong. - * - * The output of `bindNodeCallback` is a function that takes the same - * parameters as `func`, except the last one (the callback). When the output - * function is called with arguments, it will return an Observable. - * If `func` calls its callback with error parameter present, Observable will - * error with that value as well. If error parameter is not passed, Observable will emit - * second parameter. If there are more parameters (third and so on), - * Observable will emit an array with all arguments, except first error argument. - * - * Note that `func` will not be called at the same time output function is, - * but rather whenever resulting Observable is subscribed. By default call to - * `func` will happen synchronously after subscription, but that can be changed - * with proper `scheduler` provided as optional third parameter. {@link SchedulerLike} - * can also control when values from callback will be emitted by Observable. - * To find out more, check out documentation for {@link bindCallback}, where - * {@link SchedulerLike} works exactly the same. - * - * As in {@link bindCallback}, context (`this` property) of input function will be set to context - * of returned function, when it is called. - * - * After Observable emits value, it will complete immediately. This means - * even if `func` calls callback again, values from second and consecutive - * calls will never appear on the stream. If you need to handle functions - * that call callbacks multiple times, check out {@link fromEvent} or - * {@link fromEventPattern} instead. - * - * Note that `bindNodeCallback` can be used in non-Node.js environments as well. - * "Node.js-style" callbacks are just a convention, so if you write for - * browsers or any other environment and API you use implements that callback style, - * `bindNodeCallback` can be safely used on that API functions as well. - * - * Remember that Error object passed to callback does not have to be an instance - * of JavaScript built-in `Error` object. In fact, it does not even have to an object. - * Error parameter of callback function is interpreted as "present", when value - * of that parameter is truthy. It could be, for example, non-zero number, non-empty - * string or boolean `true`. In all of these cases resulting Observable would error - * with that value. This means usually regular style callbacks will fail very often when - * `bindNodeCallback` is used. If your Observable errors much more often then you - * would expect, check if callback really is called in Node.js-style and, if not, - * switch to {@link bindCallback} instead. - * - * Note that even if error parameter is technically present in callback, but its value - * is falsy, it still won't appear in array emitted by Observable. - * - * ## Examples - * ### Read a file from the filesystem and get the data as an Observable - * ```ts - * import * as fs from 'fs'; - * const readFileAsObservable = bindNodeCallback(fs.readFile); - * const result = readFileAsObservable('./roadNames.txt', 'utf8'); - * result.subscribe(x => console.log(x), e => console.error(e)); - * ``` - * - * ### Use on function calling callback with multiple arguments - * ```ts - * someFunction((err, a, b) => { - * console.log(err); // null - * console.log(a); // 5 - * console.log(b); // "some string" - * }); - * const boundSomeFunction = bindNodeCallback(someFunction); - * boundSomeFunction() - * .subscribe(value => { - * console.log(value); // [5, "some string"] - * }); - * ``` - * - * ### Use on function calling callback in regular style - * ```ts - * someFunction(a => { - * console.log(a); // 5 - * }); - * const boundSomeFunction = bindNodeCallback(someFunction); - * boundSomeFunction() - * .subscribe( - * value => {} // never gets called - * err => console.log(err) // 5 - * ); - * ``` - * - * @see {@link bindCallback} - * @see {@link from} - * - * @param {function} func Function with a Node.js-style callback as the last parameter. - * @param {SchedulerLike} [scheduler] The scheduler on which to schedule the - * callbacks. - * @return {function(...params: *): Observable} A function which returns the - * Observable that delivers the same values the Node.js callback would - * deliver. - */ -export function bindNodeCallback( - callbackFunc: (...args: [...any[], (err: any, ...res: any) => void]) => void, - resultSelector?: ((...args: any[]) => any) | SchedulerLike, - scheduler?: SchedulerLike -): (...args: any[]) => Observable { - return bindCallbackInternals(true, callbackFunc, resultSelector, scheduler); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/combineLatest.ts b/WechatBot/node_modules/rxjs/src/internal/observable/combineLatest.ts deleted file mode 100644 index 5c807b6f6..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/combineLatest.ts +++ /dev/null @@ -1,304 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput, SchedulerLike, ObservedValueOf, ObservableInputTuple } from '../types'; -import { argsArgArrayOrObject } from '../util/argsArgArrayOrObject'; -import { Subscriber } from '../Subscriber'; -import { from } from './from'; -import { identity } from '../util/identity'; -import { Subscription } from '../Subscription'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { popResultSelector, popScheduler } from '../util/args'; -import { createObject } from '../util/createObject'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { AnyCatcher } from '../AnyCatcher'; -import { executeSchedule } from '../util/executeSchedule'; - -// combineLatest(any) -// We put this first because we need to catch cases where the user has supplied -// _exactly `any`_ as the argument. Since `any` literally matches _anything_, -// we don't want it to randomly hit one of the other type signatures below, -// as we have no idea at build-time what type we should be returning when given an any. - -/** - * You have passed `any` here, we can't figure out if it is - * an array or an object, so you're getting `unknown`. Use better types. - * @param arg Something typed as `any` - */ -export function combineLatest(arg: T): Observable; - -// combineLatest([a, b, c]) -export function combineLatest(sources: []): Observable; -export function combineLatest(sources: readonly [...ObservableInputTuple]): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function combineLatest( - sources: readonly [...ObservableInputTuple], - resultSelector: (...values: A) => R, - scheduler: SchedulerLike -): Observable; -export function combineLatest( - sources: readonly [...ObservableInputTuple], - resultSelector: (...values: A) => R -): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function combineLatest( - sources: readonly [...ObservableInputTuple], - scheduler: SchedulerLike -): Observable; - -// combineLatest(a, b, c) -/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */ -export function combineLatest(...sources: [...ObservableInputTuple]): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function combineLatest( - ...sourcesAndResultSelectorAndScheduler: [...ObservableInputTuple, (...values: A) => R, SchedulerLike] -): Observable; -/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */ -export function combineLatest( - ...sourcesAndResultSelector: [...ObservableInputTuple, (...values: A) => R] -): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `combineLatestAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function combineLatest( - ...sourcesAndScheduler: [...ObservableInputTuple, SchedulerLike] -): Observable; - -// combineLatest({a, b, c}) -export function combineLatest(sourcesObject: { [K in any]: never }): Observable; -export function combineLatest>>( - sourcesObject: T -): Observable<{ [K in keyof T]: ObservedValueOf }>; - -/** - * Combines multiple Observables to create an Observable whose values are - * calculated from the latest values of each of its input Observables. - * - * Whenever any input Observable emits a value, it - * computes a formula using the latest values from all the inputs, then emits - * the output of that formula. - * - * ![](combineLatest.png) - * - * `combineLatest` combines the values from all the Observables passed in the - * observables array. This is done by subscribing to each Observable in order and, - * whenever any Observable emits, collecting an array of the most recent - * values from each Observable. So if you pass `n` Observables to this operator, - * the returned Observable will always emit an array of `n` values, in an order - * corresponding to the order of the passed Observables (the value from the first Observable - * will be at index 0 of the array and so on). - * - * Static version of `combineLatest` accepts an array of Observables. Note that an array of - * Observables is a good choice, if you don't know beforehand how many Observables - * you will combine. Passing an empty array will result in an Observable that - * completes immediately. - * - * To ensure the output array always has the same length, `combineLatest` will - * actually wait for all input Observables to emit at least once, - * before it starts emitting results. This means if some Observable emits - * values before other Observables started emitting, all these values but the last - * will be lost. On the other hand, if some Observable does not emit a value but - * completes, resulting Observable will complete at the same moment without - * emitting anything, since it will now be impossible to include a value from the - * completed Observable in the resulting array. Also, if some input Observable does - * not emit any value and never completes, `combineLatest` will also never emit - * and never complete, since, again, it will wait for all streams to emit some - * value. - * - * If at least one Observable was passed to `combineLatest` and all passed Observables - * emitted something, the resulting Observable will complete when all combined - * streams complete. So even if some Observable completes, the result of - * `combineLatest` will still emit values when other Observables do. In case - * of a completed Observable, its value from now on will always be the last - * emitted value. On the other hand, if any Observable errors, `combineLatest` - * will error immediately as well, and all other Observables will be unsubscribed. - * - * ## Examples - * - * Combine two timer Observables - * - * ```ts - * import { timer, combineLatest } from 'rxjs'; - * - * const firstTimer = timer(0, 1000); // emit 0, 1, 2... after every second, starting from now - * const secondTimer = timer(500, 1000); // emit 0, 1, 2... after every second, starting 0,5s from now - * const combinedTimers = combineLatest([firstTimer, secondTimer]); - * combinedTimers.subscribe(value => console.log(value)); - * // Logs - * // [0, 0] after 0.5s - * // [1, 0] after 1s - * // [1, 1] after 1.5s - * // [2, 1] after 2s - * ``` - * - * Combine a dictionary of Observables - * - * ```ts - * import { of, delay, startWith, combineLatest } from 'rxjs'; - * - * const observables = { - * a: of(1).pipe(delay(1000), startWith(0)), - * b: of(5).pipe(delay(5000), startWith(0)), - * c: of(10).pipe(delay(10000), startWith(0)) - * }; - * const combined = combineLatest(observables); - * combined.subscribe(value => console.log(value)); - * // Logs - * // { a: 0, b: 0, c: 0 } immediately - * // { a: 1, b: 0, c: 0 } after 1s - * // { a: 1, b: 5, c: 0 } after 5s - * // { a: 1, b: 5, c: 10 } after 10s - * ``` - * - * Combine an array of Observables - * - * ```ts - * import { of, delay, startWith, combineLatest } from 'rxjs'; - * - * const observables = [1, 5, 10].map( - * n => of(n).pipe( - * delay(n * 1000), // emit 0 and then emit n after n seconds - * startWith(0) - * ) - * ); - * const combined = combineLatest(observables); - * combined.subscribe(value => console.log(value)); - * // Logs - * // [0, 0, 0] immediately - * // [1, 0, 0] after 1s - * // [1, 5, 0] after 5s - * // [1, 5, 10] after 10s - * ``` - * - * Use map operator to dynamically calculate the Body-Mass Index - * - * ```ts - * import { of, combineLatest, map } from 'rxjs'; - * - * const weight = of(70, 72, 76, 79, 75); - * const height = of(1.76, 1.77, 1.78); - * const bmi = combineLatest([weight, height]).pipe( - * map(([w, h]) => w / (h * h)), - * ); - * bmi.subscribe(x => console.log('BMI is ' + x)); - * - * // With output to console: - * // BMI is 24.212293388429753 - * // BMI is 23.93948099205209 - * // BMI is 23.671253629592222 - * ``` - * - * @see {@link combineLatestAll} - * @see {@link merge} - * @see {@link withLatestFrom} - * - * @param {ObservableInput} [observables] An array of input Observables to combine with each other. - * An array of Observables must be given as the first argument. - * @param {function} [project] An optional function to project the values from - * the combined latest values into a new value on the output Observable. - * @param {SchedulerLike} [scheduler=null] The {@link SchedulerLike} to use for subscribing to - * each input Observable. - * @return {Observable} An Observable of projected values from the most recent - * values from each input Observable, or an array of the most recent values from - * each input Observable. - */ -export function combineLatest, R>(...args: any[]): Observable | Observable[]> { - const scheduler = popScheduler(args); - const resultSelector = popResultSelector(args); - - const { args: observables, keys } = argsArgArrayOrObject(args); - - if (observables.length === 0) { - // If no observables are passed, or someone has passed an empty array - // of observables, or even an empty object POJO, we need to just - // complete (EMPTY), but we have to honor the scheduler provided if any. - return from([], scheduler as any); - } - - const result = new Observable[]>( - combineLatestInit( - observables as ObservableInput>[], - scheduler, - keys - ? // A handler for scrubbing the array of args into a dictionary. - (values) => createObject(keys, values) - : // A passthrough to just return the array - identity - ) - ); - - return resultSelector ? (result.pipe(mapOneOrManyArgs(resultSelector)) as Observable) : result; -} - -export function combineLatestInit( - observables: ObservableInput[], - scheduler?: SchedulerLike, - valueTransform: (values: any[]) => any = identity -) { - return (subscriber: Subscriber) => { - // The outer subscription. We're capturing this in a function - // because we may have to schedule it. - maybeSchedule( - scheduler, - () => { - const { length } = observables; - // A store for the values each observable has emitted so far. We match observable to value on index. - const values = new Array(length); - // The number of currently active subscriptions, as they complete, we decrement this number to see if - // we are all done combining values, so we can complete the result. - let active = length; - // The number of inner sources that still haven't emitted the first value - // We need to track this because all sources need to emit one value in order - // to start emitting values. - let remainingFirstValues = length; - // The loop to kick off subscription. We're keying everything on index `i` to relate the observables passed - // in to the slot in the output array or the key in the array of keys in the output dictionary. - for (let i = 0; i < length; i++) { - maybeSchedule( - scheduler, - () => { - const source = from(observables[i], scheduler as any); - let hasFirstValue = false; - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - // When we get a value, record it in our set of values. - values[i] = value; - if (!hasFirstValue) { - // If this is our first value, record that. - hasFirstValue = true; - remainingFirstValues--; - } - if (!remainingFirstValues) { - // We're not waiting for any more - // first values, so we can emit! - subscriber.next(valueTransform(values.slice())); - } - }, - () => { - if (!--active) { - // We only complete the result if we have no more active - // inner observables. - subscriber.complete(); - } - } - ) - ); - }, - subscriber - ); - } - }, - subscriber - ); - }; -} - -/** - * A small utility to handle the couple of locations where we want to schedule if a scheduler was provided, - * but we don't if there was no scheduler. - */ -function maybeSchedule(scheduler: SchedulerLike | undefined, execute: () => void, subscription: Subscription) { - if (scheduler) { - executeSchedule(subscription, scheduler, execute); - } else { - execute(); - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/concat.ts b/WechatBot/node_modules/rxjs/src/internal/observable/concat.ts deleted file mode 100644 index 75f9722f0..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/concat.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInputTuple, SchedulerLike } from '../types'; -import { concatAll } from '../operators/concatAll'; -import { popScheduler } from '../util/args'; -import { from } from './from'; - -export function concat(...inputs: [...ObservableInputTuple]): Observable; -export function concat( - ...inputsAndScheduler: [...ObservableInputTuple, SchedulerLike] -): Observable; - -/** - * Creates an output Observable which sequentially emits all values from the first given - * Observable and then moves on to the next. - * - * Concatenates multiple Observables together by - * sequentially emitting their values, one Observable after the other. - * - * ![](concat.png) - * - * `concat` joins multiple Observables together, by subscribing to them one at a time and - * merging their results into the output Observable. You can pass either an array of - * Observables, or put them directly as arguments. Passing an empty array will result - * in Observable that completes immediately. - * - * `concat` will subscribe to first input Observable and emit all its values, without - * changing or affecting them in any way. When that Observable completes, it will - * subscribe to then next Observable passed and, again, emit its values. This will be - * repeated, until the operator runs out of Observables. When last input Observable completes, - * `concat` will complete as well. At any given moment only one Observable passed to operator - * emits values. If you would like to emit values from passed Observables concurrently, check out - * {@link merge} instead, especially with optional `concurrent` parameter. As a matter of fact, - * `concat` is an equivalent of `merge` operator with `concurrent` parameter set to `1`. - * - * Note that if some input Observable never completes, `concat` will also never complete - * and Observables following the one that did not complete will never be subscribed. On the other - * hand, if some Observable simply completes immediately after it is subscribed, it will be - * invisible for `concat`, which will just move on to the next Observable. - * - * If any Observable in chain errors, instead of passing control to the next Observable, - * `concat` will error immediately as well. Observables that would be subscribed after - * the one that emitted error, never will. - * - * If you pass to `concat` the same Observable many times, its stream of values - * will be "replayed" on every subscription, which means you can repeat given Observable - * as many times as you like. If passing the same Observable to `concat` 1000 times becomes tedious, - * you can always use {@link repeat}. - * - * ## Examples - * - * Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10 - * - * ```ts - * import { interval, take, range, concat } from 'rxjs'; - * - * const timer = interval(1000).pipe(take(4)); - * const sequence = range(1, 10); - * const result = concat(timer, sequence); - * result.subscribe(x => console.log(x)); - * - * // results in: - * // 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10 - * ``` - * - * Concatenate 3 Observables - * - * ```ts - * import { interval, take, concat } from 'rxjs'; - * - * const timer1 = interval(1000).pipe(take(10)); - * const timer2 = interval(2000).pipe(take(6)); - * const timer3 = interval(500).pipe(take(10)); - * - * const result = concat(timer1, timer2, timer3); - * result.subscribe(x => console.log(x)); - * - * // results in the following: - * // (Prints to console sequentially) - * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9 - * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5 - * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9 - * ``` - * - * Concatenate the same Observable to repeat it - * - * ```ts - * import { interval, take, concat } from 'rxjs'; - * - * const timer = interval(1000).pipe(take(2)); - * - * concat(timer, timer) // concatenating the same Observable! - * .subscribe({ - * next: value => console.log(value), - * complete: () => console.log('...and it is done!') - * }); - * - * // Logs: - * // 0 after 1s - * // 1 after 2s - * // 0 after 3s - * // 1 after 4s - * // '...and it is done!' also after 4s - * ``` - * - * @see {@link concatAll} - * @see {@link concatMap} - * @see {@link concatMapTo} - * @see {@link startWith} - * @see {@link endWith} - * - * @param args Input Observables to concatenate. - */ -export function concat(...args: any[]): Observable { - return concatAll()(from(args, popScheduler(args))); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/connectable.ts b/WechatBot/node_modules/rxjs/src/internal/observable/connectable.ts deleted file mode 100644 index 4609118ec..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/connectable.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { Connectable, ObservableInput, SubjectLike } from '../types'; -import { Subject } from '../Subject'; -import { Subscription } from '../Subscription'; -import { Observable } from '../Observable'; -import { defer } from './defer'; - -export interface ConnectableConfig { - /** - * A factory function used to create the Subject through which the source - * is multicast. By default this creates a {@link Subject}. - */ - connector: () => SubjectLike; - /** - * If true, the resulting observable will reset internal state upon disconnection - * and return to a "cold" state. This allows the resulting observable to be - * reconnected. - * If false, upon disconnection, the connecting subject will remain the - * connecting subject, meaning the resulting observable will not go "cold" again, - * and subsequent repeats or resubscriptions will resubscribe to that same subject. - */ - resetOnDisconnect?: boolean; -} - -/** - * The default configuration for `connectable`. - */ -const DEFAULT_CONFIG: ConnectableConfig = { - connector: () => new Subject(), - resetOnDisconnect: true, -}; - -/** - * Creates an observable that multicasts once `connect()` is called on it. - * - * @param source The observable source to make connectable. - * @param config The configuration object for `connectable`. - * @returns A "connectable" observable, that has a `connect()` method, that you must call to - * connect the source to all consumers through the subject provided as the connector. - */ -export function connectable(source: ObservableInput, config: ConnectableConfig = DEFAULT_CONFIG): Connectable { - // The subscription representing the connection. - let connection: Subscription | null = null; - const { connector, resetOnDisconnect = true } = config; - let subject = connector(); - - const result: any = new Observable((subscriber) => { - return subject.subscribe(subscriber); - }); - - // Define the `connect` function. This is what users must call - // in order to "connect" the source to the subject that is - // multicasting it. - result.connect = () => { - if (!connection || connection.closed) { - connection = defer(() => source).subscribe(subject); - if (resetOnDisconnect) { - connection.add(() => (subject = connector())); - } - } - return connection; - }; - - return result; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/defer.ts b/WechatBot/node_modules/rxjs/src/internal/observable/defer.ts deleted file mode 100644 index 2e54b3724..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/defer.ts +++ /dev/null @@ -1,57 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservedValueOf, ObservableInput } from '../types'; -import { innerFrom } from './innerFrom'; - -/** - * Creates an Observable that, on subscribe, calls an Observable factory to - * make an Observable for each new Observer. - * - * Creates the Observable lazily, that is, only when it - * is subscribed. - * - * - * ![](defer.png) - * - * `defer` allows you to create an Observable only when the Observer - * subscribes. It waits until an Observer subscribes to it, calls the given - * factory function to get an Observable -- where a factory function typically - * generates a new Observable -- and subscribes the Observer to this Observable. - * In case the factory function returns a falsy value, then EMPTY is used as - * Observable instead. Last but not least, an exception during the factory - * function call is transferred to the Observer by calling `error`. - * - * ## Example - * - * Subscribe to either an Observable of clicks or an Observable of interval, at random - * - * ```ts - * import { defer, fromEvent, interval } from 'rxjs'; - * - * const clicksOrInterval = defer(() => { - * return Math.random() > 0.5 - * ? fromEvent(document, 'click') - * : interval(1000); - * }); - * clicksOrInterval.subscribe(x => console.log(x)); - * - * // Results in the following behavior: - * // If the result of Math.random() is greater than 0.5 it will listen - * // for clicks anywhere on the "document"; when document is clicked it - * // will log a MouseEvent object to the console. If the result is less - * // than 0.5 it will emit ascending numbers, one every second(1000ms). - * ``` - * - * @see {@link Observable} - * - * @param {function(): ObservableInput} observableFactory The Observable - * factory function to invoke for each Observer that subscribes to the output - * Observable. May also return a Promise, which will be converted on the fly - * to an Observable. - * @return {Observable} An Observable whose Observers' subscriptions trigger - * an invocation of the given Observable factory function. - */ -export function defer>(observableFactory: () => R): Observable> { - return new Observable>((subscriber) => { - innerFrom(observableFactory()).subscribe(subscriber); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/dom/WebSocketSubject.ts b/WechatBot/node_modules/rxjs/src/internal/observable/dom/WebSocketSubject.ts deleted file mode 100644 index 9eecbf5ec..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/dom/WebSocketSubject.ts +++ /dev/null @@ -1,397 +0,0 @@ -import { Subject, AnonymousSubject } from '../../Subject'; -import { Subscriber } from '../../Subscriber'; -import { Observable } from '../../Observable'; -import { Subscription } from '../../Subscription'; -import { Operator } from '../../Operator'; -import { ReplaySubject } from '../../ReplaySubject'; -import { Observer, NextObserver } from '../../types'; - -/** - * WebSocketSubjectConfig is a plain Object that allows us to make our - * webSocket configurable. - * - * Provides flexibility to {@link webSocket} - * - * It defines a set of properties to provide custom behavior in specific - * moments of the socket's lifecycle. When the connection opens we can - * use `openObserver`, when the connection is closed `closeObserver`, if we - * are interested in listening for data coming from server: `deserializer`, - * which allows us to customize the deserialization strategy of data before passing it - * to the socket client. By default, `deserializer` is going to apply `JSON.parse` to each message coming - * from the Server. - * - * ## Examples - * - * **deserializer**, the default for this property is `JSON.parse` but since there are just two options - * for incoming data, either be text or binary data. We can apply a custom deserialization strategy - * or just simply skip the default behaviour. - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const wsSubject = webSocket({ - * url: 'ws://localhost:8081', - * //Apply any transformation of your choice. - * deserializer: ({ data }) => data - * }); - * - * wsSubject.subscribe(console.log); - * - * // Let's suppose we have this on the Server: ws.send('This is a msg from the server') - * //output - * // - * // This is a msg from the server - * ``` - * - * **serializer** allows us to apply custom serialization strategy but for the outgoing messages. - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const wsSubject = webSocket({ - * url: 'ws://localhost:8081', - * // Apply any transformation of your choice. - * serializer: msg => JSON.stringify({ channel: 'webDevelopment', msg: msg }) - * }); - * - * wsSubject.subscribe(() => subject.next('msg to the server')); - * - * // Let's suppose we have this on the Server: - * // ws.on('message', msg => console.log); - * // ws.send('This is a msg from the server'); - * // output at server side: - * // - * // {"channel":"webDevelopment","msg":"msg to the server"} - * ``` - * - * **closeObserver** allows us to set a custom error when an error raises up. - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const wsSubject = webSocket({ - * url: 'ws://localhost:8081', - * closeObserver: { - * next() { - * const customError = { code: 6666, reason: 'Custom evil reason' } - * console.log(`code: ${ customError.code }, reason: ${ customError.reason }`); - * } - * } - * }); - * - * // output - * // code: 6666, reason: Custom evil reason - * ``` - * - * **openObserver**, Let's say we need to make some kind of init task before sending/receiving msgs to the - * webSocket or sending notification that the connection was successful, this is when - * openObserver is useful for. - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const wsSubject = webSocket({ - * url: 'ws://localhost:8081', - * openObserver: { - * next: () => { - * console.log('Connection ok'); - * } - * } - * }); - * - * // output - * // Connection ok - * ``` - */ -export interface WebSocketSubjectConfig { - /** The url of the socket server to connect to */ - url: string; - /** The protocol to use to connect */ - protocol?: string | Array; - /** @deprecated Will be removed in v8. Use {@link deserializer} instead. */ - resultSelector?: (e: MessageEvent) => T; - /** - * A serializer used to create messages from passed values before the - * messages are sent to the server. Defaults to JSON.stringify. - */ - serializer?: (value: T) => WebSocketMessage; - /** - * A deserializer used for messages arriving on the socket from the - * server. Defaults to JSON.parse. - */ - deserializer?: (e: MessageEvent) => T; - /** - * An Observer that watches when open events occur on the underlying web socket. - */ - openObserver?: NextObserver; - /** - * An Observer that watches when close events occur on the underlying web socket - */ - closeObserver?: NextObserver; - /** - * An Observer that watches when a close is about to occur due to - * unsubscription. - */ - closingObserver?: NextObserver; - /** - * A WebSocket constructor to use. This is useful for situations like using a - * WebSocket impl in Node (WebSocket is a DOM API), or for mocking a WebSocket - * for testing purposes - */ - WebSocketCtor?: { new (url: string, protocols?: string | string[]): WebSocket }; - /** Sets the `binaryType` property of the underlying WebSocket. */ - binaryType?: 'blob' | 'arraybuffer'; -} - -const DEFAULT_WEBSOCKET_CONFIG: WebSocketSubjectConfig = { - url: '', - deserializer: (e: MessageEvent) => JSON.parse(e.data), - serializer: (value: any) => JSON.stringify(value), -}; - -const WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT = - 'WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }'; - -export type WebSocketMessage = string | ArrayBuffer | Blob | ArrayBufferView; - -export class WebSocketSubject extends AnonymousSubject { - // @ts-ignore: Property has no initializer and is not definitely assigned - private _config: WebSocketSubjectConfig; - - /** @internal */ - // @ts-ignore: Property has no initializer and is not definitely assigned - _output: Subject; - - private _socket: WebSocket | null = null; - - constructor(urlConfigOrSource: string | WebSocketSubjectConfig | Observable, destination?: Observer) { - super(); - if (urlConfigOrSource instanceof Observable) { - this.destination = destination; - this.source = urlConfigOrSource as Observable; - } else { - const config = (this._config = { ...DEFAULT_WEBSOCKET_CONFIG }); - this._output = new Subject(); - if (typeof urlConfigOrSource === 'string') { - config.url = urlConfigOrSource; - } else { - for (const key in urlConfigOrSource) { - if (urlConfigOrSource.hasOwnProperty(key)) { - (config as any)[key] = (urlConfigOrSource as any)[key]; - } - } - } - - if (!config.WebSocketCtor && WebSocket) { - config.WebSocketCtor = WebSocket; - } else if (!config.WebSocketCtor) { - throw new Error('no WebSocket constructor can be found'); - } - this.destination = new ReplaySubject(); - } - } - - /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */ - lift(operator: Operator): WebSocketSubject { - const sock = new WebSocketSubject(this._config as WebSocketSubjectConfig, this.destination as any); - sock.operator = operator; - sock.source = this; - return sock; - } - - private _resetState() { - this._socket = null; - if (!this.source) { - this.destination = new ReplaySubject(); - } - this._output = new Subject(); - } - - /** - * Creates an {@link Observable}, that when subscribed to, sends a message, - * defined by the `subMsg` function, to the server over the socket to begin a - * subscription to data over that socket. Once data arrives, the - * `messageFilter` argument will be used to select the appropriate data for - * the resulting Observable. When finalization occurs, either due to - * unsubscription, completion, or error, a message defined by the `unsubMsg` - * argument will be sent to the server over the WebSocketSubject. - * - * @param subMsg A function to generate the subscription message to be sent to - * the server. This will still be processed by the serializer in the - * WebSocketSubject's config. (Which defaults to JSON serialization) - * @param unsubMsg A function to generate the unsubscription message to be - * sent to the server at finalization. This will still be processed by the - * serializer in the WebSocketSubject's config. - * @param messageFilter A predicate for selecting the appropriate messages - * from the server for the output stream. - */ - multiplex(subMsg: () => any, unsubMsg: () => any, messageFilter: (value: T) => boolean) { - const self = this; - return new Observable((observer: Observer) => { - try { - self.next(subMsg()); - } catch (err) { - observer.error(err); - } - - const subscription = self.subscribe({ - next: (x) => { - try { - if (messageFilter(x)) { - observer.next(x); - } - } catch (err) { - observer.error(err); - } - }, - error: (err) => observer.error(err), - complete: () => observer.complete(), - }); - - return () => { - try { - self.next(unsubMsg()); - } catch (err) { - observer.error(err); - } - subscription.unsubscribe(); - }; - }); - } - - private _connectSocket() { - const { WebSocketCtor, protocol, url, binaryType } = this._config; - const observer = this._output; - - let socket: WebSocket | null = null; - try { - socket = protocol ? new WebSocketCtor!(url, protocol) : new WebSocketCtor!(url); - this._socket = socket; - if (binaryType) { - this._socket.binaryType = binaryType; - } - } catch (e) { - observer.error(e); - return; - } - - const subscription = new Subscription(() => { - this._socket = null; - if (socket && socket.readyState === 1) { - socket.close(); - } - }); - - socket.onopen = (evt: Event) => { - const { _socket } = this; - if (!_socket) { - socket!.close(); - this._resetState(); - return; - } - const { openObserver } = this._config; - if (openObserver) { - openObserver.next(evt); - } - - const queue = this.destination; - - this.destination = Subscriber.create( - (x) => { - if (socket!.readyState === 1) { - try { - const { serializer } = this._config; - socket!.send(serializer!(x!)); - } catch (e) { - this.destination!.error(e); - } - } - }, - (err) => { - const { closingObserver } = this._config; - if (closingObserver) { - closingObserver.next(undefined); - } - if (err && err.code) { - socket!.close(err.code, err.reason); - } else { - observer.error(new TypeError(WEBSOCKETSUBJECT_INVALID_ERROR_OBJECT)); - } - this._resetState(); - }, - () => { - const { closingObserver } = this._config; - if (closingObserver) { - closingObserver.next(undefined); - } - socket!.close(); - this._resetState(); - } - ) as Subscriber; - - if (queue && queue instanceof ReplaySubject) { - subscription.add((queue as ReplaySubject).subscribe(this.destination)); - } - }; - - socket.onerror = (e: Event) => { - this._resetState(); - observer.error(e); - }; - - socket.onclose = (e: CloseEvent) => { - if (socket === this._socket) { - this._resetState(); - } - const { closeObserver } = this._config; - if (closeObserver) { - closeObserver.next(e); - } - if (e.wasClean) { - observer.complete(); - } else { - observer.error(e); - } - }; - - socket.onmessage = (e: MessageEvent) => { - try { - const { deserializer } = this._config; - observer.next(deserializer!(e)); - } catch (err) { - observer.error(err); - } - }; - } - - /** @internal */ - protected _subscribe(subscriber: Subscriber): Subscription { - const { source } = this; - if (source) { - return source.subscribe(subscriber); - } - if (!this._socket) { - this._connectSocket(); - } - this._output.subscribe(subscriber); - subscriber.add(() => { - const { _socket } = this; - if (this._output.observers.length === 0) { - if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) { - _socket.close(); - } - this._resetState(); - } - }); - return subscriber; - } - - unsubscribe() { - const { _socket } = this; - if (_socket && (_socket.readyState === 1 || _socket.readyState === 0)) { - _socket.close(); - } - this._resetState(); - super.unsubscribe(); - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/dom/animationFrames.ts b/WechatBot/node_modules/rxjs/src/internal/observable/dom/animationFrames.ts deleted file mode 100644 index 38b338bfc..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/dom/animationFrames.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { Observable } from '../../Observable'; -import { TimestampProvider } from '../../types'; -import { performanceTimestampProvider } from '../../scheduler/performanceTimestampProvider'; -import { animationFrameProvider } from '../../scheduler/animationFrameProvider'; - -/** - * An observable of animation frames - * - * Emits the amount of time elapsed since subscription and the timestamp on each animation frame. - * Defaults to milliseconds provided to the requestAnimationFrame's callback. Does not end on its own. - * - * Every subscription will start a separate animation loop. Since animation frames are always scheduled - * by the browser to occur directly before a repaint, scheduling more than one animation frame synchronously - * should not be much different or have more overhead than looping over an array of events during - * a single animation frame. However, if for some reason the developer would like to ensure the - * execution of animation-related handlers are all executed during the same task by the engine, - * the `share` operator can be used. - * - * This is useful for setting up animations with RxJS. - * - * ## Examples - * - * Tweening a div to move it on the screen - * - * ```ts - * import { animationFrames, map, takeWhile, endWith } from 'rxjs'; - * - * function tween(start: number, end: number, duration: number) { - * const diff = end - start; - * return animationFrames().pipe( - * // Figure out what percentage of time has passed - * map(({ elapsed }) => elapsed / duration), - * // Take the vector while less than 100% - * takeWhile(v => v < 1), - * // Finish with 100% - * endWith(1), - * // Calculate the distance traveled between start and end - * map(v => v * diff + start) - * ); - * } - * - * // Setup a div for us to move around - * const div = document.createElement('div'); - * document.body.appendChild(div); - * div.style.position = 'absolute'; - * div.style.width = '40px'; - * div.style.height = '40px'; - * div.style.backgroundColor = 'lime'; - * div.style.transform = 'translate3d(10px, 0, 0)'; - * - * tween(10, 200, 4000).subscribe(x => { - * div.style.transform = `translate3d(${ x }px, 0, 0)`; - * }); - * ``` - * - * Providing a custom timestamp provider - * - * ```ts - * import { animationFrames, TimestampProvider } from 'rxjs'; - * - * // A custom timestamp provider - * let now = 0; - * const customTSProvider: TimestampProvider = { - * now() { return now++; } - * }; - * - * const source$ = animationFrames(customTSProvider); - * - * // Log increasing numbers 0...1...2... on every animation frame. - * source$.subscribe(({ elapsed }) => console.log(elapsed)); - * ``` - * - * @param timestampProvider An object with a `now` method that provides a numeric timestamp - */ -export function animationFrames(timestampProvider?: TimestampProvider) { - return timestampProvider ? animationFramesFactory(timestampProvider) : DEFAULT_ANIMATION_FRAMES; -} - -/** - * Does the work of creating the observable for `animationFrames`. - * @param timestampProvider The timestamp provider to use to create the observable - */ -function animationFramesFactory(timestampProvider?: TimestampProvider) { - return new Observable<{ timestamp: number; elapsed: number }>((subscriber) => { - // If no timestamp provider is specified, use performance.now() - as it - // will return timestamps 'compatible' with those passed to the run - // callback and won't be affected by NTP adjustments, etc. - const provider = timestampProvider || performanceTimestampProvider; - - // Capture the start time upon subscription, as the run callback can remain - // queued for a considerable period of time and the elapsed time should - // represent the time elapsed since subscription - not the time since the - // first rendered animation frame. - const start = provider.now(); - - let id = 0; - const run = () => { - if (!subscriber.closed) { - id = animationFrameProvider.requestAnimationFrame((timestamp: DOMHighResTimeStamp | number) => { - id = 0; - // Use the provider's timestamp to calculate the elapsed time. Note that - // this means - if the caller hasn't passed a provider - that - // performance.now() will be used instead of the timestamp that was - // passed to the run callback. The reason for this is that the timestamp - // passed to the callback can be earlier than the start time, as it - // represents the time at which the browser decided it would render any - // queued frames - and that time can be earlier the captured start time. - const now = provider.now(); - subscriber.next({ - timestamp: timestampProvider ? now : timestamp, - elapsed: now - start, - }); - run(); - }); - } - }; - - run(); - - return () => { - if (id) { - animationFrameProvider.cancelAnimationFrame(id); - } - }; - }); -} - -/** - * In the common case, where the timestamp provided by the rAF API is used, - * we use this shared observable to reduce overhead. - */ -const DEFAULT_ANIMATION_FRAMES = animationFramesFactory(); diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/dom/fetch.ts b/WechatBot/node_modules/rxjs/src/internal/observable/dom/fetch.ts deleted file mode 100644 index 1894d2470..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/dom/fetch.ts +++ /dev/null @@ -1,180 +0,0 @@ -import { createOperatorSubscriber } from '../../operators/OperatorSubscriber'; -import { Observable } from '../../Observable'; -import { innerFrom } from '../../observable/innerFrom'; -import { ObservableInput } from '../../types'; - -export function fromFetch( - input: string | Request, - init: RequestInit & { - selector: (response: Response) => ObservableInput; - } -): Observable; - -export function fromFetch(input: string | Request, init?: RequestInit): Observable; - -/** - * Uses [the Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to - * make an HTTP request. - * - * **WARNING** Parts of the fetch API are still experimental. `AbortController` is - * required for this implementation to work and use cancellation appropriately. - * - * Will automatically set up an internal [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) - * in order to finalize the internal `fetch` when the subscription tears down. - * - * If a `signal` is provided via the `init` argument, it will behave like it usually does with - * `fetch`. If the provided `signal` aborts, the error that `fetch` normally rejects with - * in that scenario will be emitted as an error from the observable. - * - * ## Examples - * - * Basic use - * - * ```ts - * import { fromFetch } from 'rxjs/fetch'; - * import { switchMap, of, catchError } from 'rxjs'; - * - * const data$ = fromFetch('https://api.github.com/users?per_page=5').pipe( - * switchMap(response => { - * if (response.ok) { - * // OK return data - * return response.json(); - * } else { - * // Server is returning a status requiring the client to try something else. - * return of({ error: true, message: `Error ${ response.status }` }); - * } - * }), - * catchError(err => { - * // Network or other error, handle appropriately - * console.error(err); - * return of({ error: true, message: err.message }) - * }) - * ); - * - * data$.subscribe({ - * next: result => console.log(result), - * complete: () => console.log('done') - * }); - * ``` - * - * ### Use with Chunked Transfer Encoding - * - * With HTTP responses that use [chunked transfer encoding](https://tools.ietf.org/html/rfc7230#section-3.3.1), - * the promise returned by `fetch` will resolve as soon as the response's headers are - * received. - * - * That means the `fromFetch` observable will emit a `Response` - and will - * then complete - before the body is received. When one of the methods on the - * `Response` - like `text()` or `json()` - is called, the returned promise will not - * resolve until the entire body has been received. Unsubscribing from any observable - * that uses the promise as an observable input will not abort the request. - * - * To facilitate aborting the retrieval of responses that use chunked transfer encoding, - * a `selector` can be specified via the `init` parameter: - * - * ```ts - * import { of } from 'rxjs'; - * import { fromFetch } from 'rxjs/fetch'; - * - * const data$ = fromFetch('https://api.github.com/users?per_page=5', { - * selector: response => response.json() - * }); - * - * data$.subscribe({ - * next: result => console.log(result), - * complete: () => console.log('done') - * }); - * ``` - * - * @param input The resource you would like to fetch. Can be a url or a request object. - * @param initWithSelector A configuration object for the fetch. - * [See MDN for more details](https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#Parameters) - * @returns An Observable, that when subscribed to, performs an HTTP request using the native `fetch` - * function. The {@link Subscription} is tied to an `AbortController` for the fetch. - */ -export function fromFetch( - input: string | Request, - initWithSelector: RequestInit & { - selector?: (response: Response) => ObservableInput; - } = {} -): Observable { - const { selector, ...init } = initWithSelector; - return new Observable((subscriber) => { - // Our controller for aborting this fetch. - // Any externally provided AbortSignal will have to call - // abort on this controller when signaled, because the - // signal from this controller is what is being passed to `fetch`. - const controller = new AbortController(); - const { signal } = controller; - // This flag exists to make sure we don't `abort()` the fetch upon tearing down - // this observable after emitting a Response. Aborting in such circumstances - // would also abort subsequent methods - like `json()` - that could be called - // on the Response. Consider: `fromFetch().pipe(take(1), mergeMap(res => res.json()))` - let abortable = true; - - // If the user provided an init configuration object, - // let's process it and chain our abort signals, if necessary. - // If a signal is provided, just have it finalized. It's a cancellation token, basically. - const { signal: outerSignal } = init; - if (outerSignal) { - if (outerSignal.aborted) { - controller.abort(); - } else { - // We got an AbortSignal from the arguments passed into `fromFetch`. - // We need to wire up our AbortController to abort when this signal aborts. - const outerSignalHandler = () => { - if (!signal.aborted) { - controller.abort(); - } - }; - outerSignal.addEventListener('abort', outerSignalHandler); - subscriber.add(() => outerSignal.removeEventListener('abort', outerSignalHandler)); - } - } - - // The initialization object passed to `fetch` as the second - // argument. This ferries in important information, including our - // AbortSignal. Create a new init, so we don't accidentally mutate the - // passed init, or reassign it. This is because the init passed in - // is shared between each subscription to the result. - const perSubscriberInit: RequestInit = { ...init, signal }; - - const handleError = (err: any) => { - abortable = false; - subscriber.error(err); - }; - - fetch(input, perSubscriberInit) - .then((response) => { - if (selector) { - // If we have a selector function, use it to project our response. - // Note that any error that comes from our selector will be - // sent to the promise `catch` below and handled. - innerFrom(selector(response)).subscribe( - createOperatorSubscriber( - subscriber, - // Values are passed through to the subscriber - undefined, - // The projected response is complete. - () => { - abortable = false; - subscriber.complete(); - }, - handleError - ) - ); - } else { - abortable = false; - subscriber.next(response); - subscriber.complete(); - } - }) - .catch(handleError); - - return () => { - if (abortable) { - controller.abort(); - } - }; - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/dom/webSocket.ts b/WechatBot/node_modules/rxjs/src/internal/observable/dom/webSocket.ts deleted file mode 100644 index d642f0b4b..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/dom/webSocket.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { WebSocketSubject, WebSocketSubjectConfig } from './WebSocketSubject'; - -/** - * Wrapper around the w3c-compatible WebSocket object provided by the browser. - * - * {@link Subject} that communicates with a server via WebSocket - * - * `webSocket` is a factory function that produces a `WebSocketSubject`, - * which can be used to make WebSocket connection with an arbitrary endpoint. - * `webSocket` accepts as an argument either a string with url of WebSocket endpoint, or an - * {@link WebSocketSubjectConfig} object for providing additional configuration, as - * well as Observers for tracking lifecycle of WebSocket connection. - * - * When `WebSocketSubject` is subscribed, it attempts to make a socket connection, - * unless there is one made already. This means that many subscribers will always listen - * on the same socket, thus saving resources. If however, two instances are made of `WebSocketSubject`, - * even if these two were provided with the same url, they will attempt to make separate - * connections. When consumer of a `WebSocketSubject` unsubscribes, socket connection is closed, - * only if there are no more subscribers still listening. If after some time a consumer starts - * subscribing again, connection is reestablished. - * - * Once connection is made, whenever a new message comes from the server, `WebSocketSubject` will emit that - * message as a value in the stream. By default, a message from the socket is parsed via `JSON.parse`. If you - * want to customize how deserialization is handled (if at all), you can provide custom `resultSelector` - * function in {@link WebSocketSubject}. When connection closes, stream will complete, provided it happened without - * any errors. If at any point (starting, maintaining or closing a connection) there is an error, - * stream will also error with whatever WebSocket API has thrown. - * - * By virtue of being a {@link Subject}, `WebSocketSubject` allows for receiving and sending messages from the server. In order - * to communicate with a connected endpoint, use `next`, `error` and `complete` methods. `next` sends a value to the server, so bear in mind - * that this value will not be serialized beforehand. Because of This, `JSON.stringify` will have to be called on a value by hand, - * before calling `next` with a result. Note also that if at the moment of nexting value - * there is no socket connection (for example no one is subscribing), those values will be buffered, and sent when connection - * is finally established. `complete` method closes socket connection. `error` does the same, - * as well as notifying the server that something went wrong via status code and string with details of what happened. - * Since status code is required in WebSocket API, `WebSocketSubject` does not allow, like regular `Subject`, - * arbitrary values being passed to the `error` method. It needs to be called with an object that has `code` - * property with status code number and optional `reason` property with string describing details - * of an error. - * - * Calling `next` does not affect subscribers of `WebSocketSubject` - they have no - * information that something was sent to the server (unless of course the server - * responds somehow to a message). On the other hand, since calling `complete` triggers - * an attempt to close socket connection. If that connection is closed without any errors, stream will - * complete, thus notifying all subscribers. And since calling `error` closes - * socket connection as well, just with a different status code for the server, if closing itself proceeds - * without errors, subscribed Observable will not error, as one might expect, but complete as usual. In both cases - * (calling `complete` or `error`), if process of closing socket connection results in some errors, *then* stream - * will error. - * - * **Multiplexing** - * - * `WebSocketSubject` has an additional operator, not found in other Subjects. It is called `multiplex` and it is - * used to simulate opening several socket connections, while in reality maintaining only one. - * For example, an application has both chat panel and real-time notifications about sport news. Since these are two distinct functions, - * it would make sense to have two separate connections for each. Perhaps there could even be two separate services with WebSocket - * endpoints, running on separate machines with only GUI combining them together. Having a socket connection - * for each functionality could become too resource expensive. It is a common pattern to have single - * WebSocket endpoint that acts as a gateway for the other services (in this case chat and sport news services). - * Even though there is a single connection in a client app, having the ability to manipulate streams as if it - * were two separate sockets is desirable. This eliminates manually registering and unregistering in a gateway for - * given service and filter out messages of interest. This is exactly what `multiplex` method is for. - * - * Method accepts three parameters. First two are functions returning subscription and unsubscription messages - * respectively. These are messages that will be sent to the server, whenever consumer of resulting Observable - * subscribes and unsubscribes. Server can use them to verify that some kind of messages should start or stop - * being forwarded to the client. In case of the above example application, after getting subscription message with proper identifier, - * gateway server can decide that it should connect to real sport news service and start forwarding messages from it. - * Note that both messages will be sent as returned by the functions, they are by default serialized using JSON.stringify, just - * as messages pushed via `next`. Also bear in mind that these messages will be sent on *every* subscription and - * unsubscription. This is potentially dangerous, because one consumer of an Observable may unsubscribe and the server - * might stop sending messages, since it got unsubscription message. This needs to be handled - * on the server or using {@link publish} on a Observable returned from 'multiplex'. - * - * Last argument to `multiplex` is a `messageFilter` function which should return a boolean. It is used to filter out messages - * sent by the server to only those that belong to simulated WebSocket stream. For example, server might mark these - * messages with some kind of string identifier on a message object and `messageFilter` would return `true` - * if there is such identifier on an object emitted by the socket. Messages which returns `false` in `messageFilter` are simply skipped, - * and are not passed down the stream. - * - * Return value of `multiplex` is an Observable with messages incoming from emulated socket connection. Note that this - * is not a `WebSocketSubject`, so calling `next` or `multiplex` again will fail. For pushing values to the - * server, use root `WebSocketSubject`. - * - * ## Examples - * - * Listening for messages from the server - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const subject = webSocket('ws://localhost:8081'); - * - * subject.subscribe({ - * next: msg => console.log('message received: ' + msg), // Called whenever there is a message from the server. - * error: err => console.log(err), // Called if at any point WebSocket API signals some kind of error. - * complete: () => console.log('complete') // Called when connection is closed (for whatever reason). - * }); - * ``` - * - * Pushing messages to the server - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const subject = webSocket('ws://localhost:8081'); - * - * subject.subscribe(); - * // Note that at least one consumer has to subscribe to the created subject - otherwise "nexted" values will be just buffered and not sent, - * // since no connection was established! - * - * subject.next({ message: 'some message' }); - * // This will send a message to the server once a connection is made. Remember value is serialized with JSON.stringify by default! - * - * subject.complete(); // Closes the connection. - * - * subject.error({ code: 4000, reason: 'I think our app just broke!' }); - * // Also closes the connection, but let's the server know that this closing is caused by some error. - * ``` - * - * Multiplexing WebSocket - * - * ```ts - * import { webSocket } from 'rxjs/webSocket'; - * - * const subject = webSocket('ws://localhost:8081'); - * - * const observableA = subject.multiplex( - * () => ({ subscribe: 'A' }), // When server gets this message, it will start sending messages for 'A'... - * () => ({ unsubscribe: 'A' }), // ...and when gets this one, it will stop. - * message => message.type === 'A' // If the function returns `true` message is passed down the stream. Skipped if the function returns false. - * ); - * - * const observableB = subject.multiplex( // And the same goes for 'B'. - * () => ({ subscribe: 'B' }), - * () => ({ unsubscribe: 'B' }), - * message => message.type === 'B' - * ); - * - * const subA = observableA.subscribe(messageForA => console.log(messageForA)); - * // At this moment WebSocket connection is established. Server gets '{"subscribe": "A"}' message and starts sending messages for 'A', - * // which we log here. - * - * const subB = observableB.subscribe(messageForB => console.log(messageForB)); - * // Since we already have a connection, we just send '{"subscribe": "B"}' message to the server. It starts sending messages for 'B', - * // which we log here. - * - * subB.unsubscribe(); - * // Message '{"unsubscribe": "B"}' is sent to the server, which stops sending 'B' messages. - * - * subA.unsubscribe(); - * // Message '{"unsubscribe": "A"}' makes the server stop sending messages for 'A'. Since there is no more subscribers to root Subject, - * // socket connection closes. - * ``` - * - * @param {string|WebSocketSubjectConfig} urlConfigOrSource The WebSocket endpoint as an url or an object with - * configuration and additional Observers. - * @return {WebSocketSubject} Subject which allows to both send and receive messages via WebSocket connection. - */ -export function webSocket(urlConfigOrSource: string | WebSocketSubjectConfig): WebSocketSubject { - return new WebSocketSubject(urlConfigOrSource); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/empty.ts b/WechatBot/node_modules/rxjs/src/internal/observable/empty.ts deleted file mode 100644 index 8f59e45a0..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/empty.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; - -/** - * A simple Observable that emits no items to the Observer and immediately - * emits a complete notification. - * - * Just emits 'complete', and nothing else. - * - * ![](empty.png) - * - * A simple Observable that only emits the complete notification. It can be used - * for composing with other Observables, such as in a {@link mergeMap}. - * - * ## Examples - * - * Log complete notification - * - * ```ts - * import { EMPTY } from 'rxjs'; - * - * EMPTY.subscribe({ - * next: () => console.log('Next'), - * complete: () => console.log('Complete!') - * }); - * - * // Outputs - * // Complete! - * ``` - * - * Emit the number 7, then complete - * - * ```ts - * import { EMPTY, startWith } from 'rxjs'; - * - * const result = EMPTY.pipe(startWith(7)); - * result.subscribe(x => console.log(x)); - * - * // Outputs - * // 7 - * ``` - * - * Map and flatten only odd numbers to the sequence `'a'`, `'b'`, `'c'` - * - * ```ts - * import { interval, mergeMap, of, EMPTY } from 'rxjs'; - * - * const interval$ = interval(1000); - * const result = interval$.pipe( - * mergeMap(x => x % 2 === 1 ? of('a', 'b', 'c') : EMPTY), - * ); - * result.subscribe(x => console.log(x)); - * - * // Results in the following to the console: - * // x is equal to the count on the interval, e.g. (0, 1, 2, 3, ...) - * // x will occur every 1000ms - * // if x % 2 is equal to 1, print a, b, c (each on its own) - * // if x % 2 is not equal to 1, nothing will be output - * ``` - * - * @see {@link Observable} - * @see {@link NEVER} - * @see {@link of} - * @see {@link throwError} - */ -export const EMPTY = new Observable((subscriber) => subscriber.complete()); - -/** - * @param scheduler A {@link SchedulerLike} to use for scheduling - * the emission of the complete notification. - * @deprecated Replaced with the {@link EMPTY} constant or {@link scheduled} (e.g. `scheduled([], scheduler)`). Will be removed in v8. - */ -export function empty(scheduler?: SchedulerLike) { - return scheduler ? emptyScheduled(scheduler) : EMPTY; -} - -function emptyScheduled(scheduler: SchedulerLike) { - return new Observable((subscriber) => scheduler.schedule(() => subscriber.complete())); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/forkJoin.ts b/WechatBot/node_modules/rxjs/src/internal/observable/forkJoin.ts deleted file mode 100644 index 21eb3cc31..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/forkJoin.ts +++ /dev/null @@ -1,186 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservedValueOf, ObservableInputTuple, ObservableInput } from '../types'; -import { argsArgArrayOrObject } from '../util/argsArgArrayOrObject'; -import { innerFrom } from './innerFrom'; -import { popResultSelector } from '../util/args'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { createObject } from '../util/createObject'; -import { AnyCatcher } from '../AnyCatcher'; - -// forkJoin(any) -// We put this first because we need to catch cases where the user has supplied -// _exactly `any`_ as the argument. Since `any` literally matches _anything_, -// we don't want it to randomly hit one of the other type signatures below, -// as we have no idea at build-time what type we should be returning when given an any. - -/** - * You have passed `any` here, we can't figure out if it is - * an array or an object, so you're getting `unknown`. Use better types. - * @param arg Something typed as `any` - */ -export function forkJoin(arg: T): Observable; - -// forkJoin(null | undefined) -export function forkJoin(scheduler: null | undefined): Observable; - -// forkJoin([a, b, c]) -export function forkJoin(sources: readonly []): Observable; -export function forkJoin(sources: readonly [...ObservableInputTuple]): Observable; -export function forkJoin( - sources: readonly [...ObservableInputTuple], - resultSelector: (...values: A) => R -): Observable; - -// forkJoin(a, b, c) -/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */ -export function forkJoin(...sources: [...ObservableInputTuple]): Observable; -/** @deprecated Pass an array of sources instead. The rest-parameters signature will be removed in v8. Details: https://rxjs.dev/deprecations/array-argument */ -export function forkJoin( - ...sourcesAndResultSelector: [...ObservableInputTuple, (...values: A) => R] -): Observable; - -// forkJoin({a, b, c}) -export function forkJoin(sourcesObject: { [K in any]: never }): Observable; -export function forkJoin>>( - sourcesObject: T -): Observable<{ [K in keyof T]: ObservedValueOf }>; - -/** - * Accepts an `Array` of {@link ObservableInput} or a dictionary `Object` of {@link ObservableInput} and returns - * an {@link Observable} that emits either an array of values in the exact same order as the passed array, - * or a dictionary of values in the same shape as the passed dictionary. - * - * Wait for Observables to complete and then combine last values they emitted; - * complete immediately if an empty array is passed. - * - * ![](forkJoin.png) - * - * `forkJoin` is an operator that takes any number of input observables which can be passed either as an array - * or a dictionary of input observables. If no input observables are provided (e.g. an empty array is passed), - * then the resulting stream will complete immediately. - * - * `forkJoin` will wait for all passed observables to emit and complete and then it will emit an array or an object with last - * values from corresponding observables. - * - * If you pass an array of `n` observables to the operator, then the resulting - * array will have `n` values, where the first value is the last one emitted by the first observable, - * second value is the last one emitted by the second observable and so on. - * - * If you pass a dictionary of observables to the operator, then the resulting - * objects will have the same keys as the dictionary passed, with their last values they have emitted - * located at the corresponding key. - * - * That means `forkJoin` will not emit more than once and it will complete after that. If you need to emit combined - * values not only at the end of the lifecycle of passed observables, but also throughout it, try out {@link combineLatest} - * or {@link zip} instead. - * - * In order for the resulting array to have the same length as the number of input observables, whenever any of - * the given observables completes without emitting any value, `forkJoin` will complete at that moment as well - * and it will not emit anything either, even if it already has some last values from other observables. - * Conversely, if there is an observable that never completes, `forkJoin` will never complete either, - * unless at any point some other observable completes without emitting a value, which brings us back to - * the previous case. Overall, in order for `forkJoin` to emit a value, all given observables - * have to emit something at least once and complete. - * - * If any given observable errors at some point, `forkJoin` will error as well and immediately unsubscribe - * from the other observables. - * - * Optionally `forkJoin` accepts a `resultSelector` function, that will be called with values which normally - * would land in the emitted array. Whatever is returned by the `resultSelector`, will appear in the output - * observable instead. This means that the default `resultSelector` can be thought of as a function that takes - * all its arguments and puts them into an array. Note that the `resultSelector` will be called only - * when `forkJoin` is supposed to emit a result. - * - * ## Examples - * - * Use `forkJoin` with a dictionary of observable inputs - * - * ```ts - * import { forkJoin, of, timer } from 'rxjs'; - * - * const observable = forkJoin({ - * foo: of(1, 2, 3, 4), - * bar: Promise.resolve(8), - * baz: timer(4000) - * }); - * observable.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('This is how it ends!'), - * }); - * - * // Logs: - * // { foo: 4, bar: 8, baz: 0 } after 4 seconds - * // 'This is how it ends!' immediately after - * ``` - * - * Use `forkJoin` with an array of observable inputs - * - * ```ts - * import { forkJoin, of, timer } from 'rxjs'; - * - * const observable = forkJoin([ - * of(1, 2, 3, 4), - * Promise.resolve(8), - * timer(4000) - * ]); - * observable.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('This is how it ends!'), - * }); - * - * // Logs: - * // [4, 8, 0] after 4 seconds - * // 'This is how it ends!' immediately after - * ``` - * - * @see {@link combineLatest} - * @see {@link zip} - * - * @param {...ObservableInput} args Any number of Observables provided either as an array or as an arguments - * passed directly to the operator. - * @param {function} [project] Function that takes values emitted by input Observables and returns value - * that will appear in resulting Observable instead of default array. - * @return {Observable} Observable emitting either an array of last values emitted by passed Observables - * or value from project function. - */ -export function forkJoin(...args: any[]): Observable { - const resultSelector = popResultSelector(args); - const { args: sources, keys } = argsArgArrayOrObject(args); - const result = new Observable((subscriber) => { - const { length } = sources; - if (!length) { - subscriber.complete(); - return; - } - const values = new Array(length); - let remainingCompletions = length; - let remainingEmissions = length; - for (let sourceIndex = 0; sourceIndex < length; sourceIndex++) { - let hasValue = false; - innerFrom(sources[sourceIndex]).subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - if (!hasValue) { - hasValue = true; - remainingEmissions--; - } - values[sourceIndex] = value; - }, - () => remainingCompletions--, - undefined, - () => { - if (!remainingCompletions || !hasValue) { - if (!remainingEmissions) { - subscriber.next(keys ? createObject(keys, values) : values); - } - subscriber.complete(); - } - } - ) - ); - } - }); - return resultSelector ? result.pipe(mapOneOrManyArgs(resultSelector)) : result; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/from.ts b/WechatBot/node_modules/rxjs/src/internal/observable/from.ts deleted file mode 100644 index 834bb2285..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/from.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput, SchedulerLike, ObservedValueOf } from '../types'; -import { scheduled } from '../scheduled/scheduled'; -import { innerFrom } from './innerFrom'; - -export function from>(input: O): Observable>; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function from>(input: O, scheduler: SchedulerLike | undefined): Observable>; - -/** - * Creates an Observable from an Array, an array-like object, a Promise, an iterable object, or an Observable-like object. - * - * Converts almost anything to an Observable. - * - * ![](from.png) - * - * `from` converts various other objects and data types into Observables. It also converts a Promise, an array-like, or an - * iterable - * object into an Observable that emits the items in that promise, array, or iterable. A String, in this context, is treated - * as an array of characters. Observable-like objects (contains a function named with the ES2015 Symbol for Observable) can also be - * converted through this operator. - * - * ## Examples - * - * Converts an array to an Observable - * - * ```ts - * import { from } from 'rxjs'; - * - * const array = [10, 20, 30]; - * const result = from(array); - * - * result.subscribe(x => console.log(x)); - * - * // Logs: - * // 10 - * // 20 - * // 30 - * ``` - * - * Convert an infinite iterable (from a generator) to an Observable - * - * ```ts - * import { from, take } from 'rxjs'; - * - * function* generateDoubles(seed) { - * let i = seed; - * while (true) { - * yield i; - * i = 2 * i; // double it - * } - * } - * - * const iterator = generateDoubles(3); - * const result = from(iterator).pipe(take(10)); - * - * result.subscribe(x => console.log(x)); - * - * // Logs: - * // 3 - * // 6 - * // 12 - * // 24 - * // 48 - * // 96 - * // 192 - * // 384 - * // 768 - * // 1536 - * ``` - * - * With `asyncScheduler` - * - * ```ts - * import { from, asyncScheduler } from 'rxjs'; - * - * console.log('start'); - * - * const array = [10, 20, 30]; - * const result = from(array, asyncScheduler); - * - * result.subscribe(x => console.log(x)); - * - * console.log('end'); - * - * // Logs: - * // 'start' - * // 'end' - * // 10 - * // 20 - * // 30 - * ``` - * - * @see {@link fromEvent} - * @see {@link fromEventPattern} - * - * @param {ObservableInput} A subscription object, a Promise, an Observable-like, - * an Array, an iterable, or an array-like object to be converted. - * @param {SchedulerLike} An optional {@link SchedulerLike} on which to schedule the emission of values. - * @return {Observable} - */ -export function from(input: ObservableInput, scheduler?: SchedulerLike): Observable { - return scheduler ? scheduled(input, scheduler) : innerFrom(input); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/fromEvent.ts b/WechatBot/node_modules/rxjs/src/internal/observable/fromEvent.ts deleted file mode 100644 index e9c7c9230..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/fromEvent.ts +++ /dev/null @@ -1,336 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { Observable } from '../Observable'; -import { mergeMap } from '../operators/mergeMap'; -import { isArrayLike } from '../util/isArrayLike'; -import { isFunction } from '../util/isFunction'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; - -// These constants are used to create handler registry functions using array mapping below. -const nodeEventEmitterMethods = ['addListener', 'removeListener'] as const; -const eventTargetMethods = ['addEventListener', 'removeEventListener'] as const; -const jqueryMethods = ['on', 'off'] as const; - -export interface NodeStyleEventEmitter { - addListener(eventName: string | symbol, handler: NodeEventHandler): this; - removeListener(eventName: string | symbol, handler: NodeEventHandler): this; -} - -export type NodeEventHandler = (...args: any[]) => void; - -// For APIs that implement `addListener` and `removeListener` methods that may -// not use the same arguments or return EventEmitter values -// such as React Native -export interface NodeCompatibleEventEmitter { - addListener(eventName: string, handler: NodeEventHandler): void | {}; - removeListener(eventName: string, handler: NodeEventHandler): void | {}; -} - -// Use handler types like those in @types/jquery. See: -// https://github.com/DefinitelyTyped/DefinitelyTyped/blob/847731ba1d7fa6db6b911c0e43aa0afe596e7723/types/jquery/misc.d.ts#L6395 -export interface JQueryStyleEventEmitter { - on(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void; - off(eventName: string, handler: (this: TContext, t: T, ...args: any[]) => any): void; -} - -export interface EventListenerObject { - handleEvent(evt: E): void; -} - -export interface HasEventTargetAddRemove { - addEventListener( - type: string, - listener: ((evt: E) => void) | EventListenerObject | null, - options?: boolean | AddEventListenerOptions - ): void; - removeEventListener( - type: string, - listener: ((evt: E) => void) | EventListenerObject | null, - options?: EventListenerOptions | boolean - ): void; -} - -export interface EventListenerOptions { - capture?: boolean; - passive?: boolean; - once?: boolean; -} - -export interface AddEventListenerOptions extends EventListenerOptions { - once?: boolean; - passive?: boolean; -} - -export function fromEvent(target: HasEventTargetAddRemove | ArrayLike>, eventName: string): Observable; -export function fromEvent( - target: HasEventTargetAddRemove | ArrayLike>, - eventName: string, - resultSelector: (event: T) => R -): Observable; -export function fromEvent( - target: HasEventTargetAddRemove | ArrayLike>, - eventName: string, - options: EventListenerOptions -): Observable; -export function fromEvent( - target: HasEventTargetAddRemove | ArrayLike>, - eventName: string, - options: EventListenerOptions, - resultSelector: (event: T) => R -): Observable; - -export function fromEvent(target: NodeStyleEventEmitter | ArrayLike, eventName: string): Observable; -/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */ -export function fromEvent(target: NodeStyleEventEmitter | ArrayLike, eventName: string): Observable; -export function fromEvent( - target: NodeStyleEventEmitter | ArrayLike, - eventName: string, - resultSelector: (...args: any[]) => R -): Observable; - -export function fromEvent( - target: NodeCompatibleEventEmitter | ArrayLike, - eventName: string -): Observable; -/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */ -export function fromEvent(target: NodeCompatibleEventEmitter | ArrayLike, eventName: string): Observable; -export function fromEvent( - target: NodeCompatibleEventEmitter | ArrayLike, - eventName: string, - resultSelector: (...args: any[]) => R -): Observable; - -export function fromEvent( - target: JQueryStyleEventEmitter | ArrayLike>, - eventName: string -): Observable; -export function fromEvent( - target: JQueryStyleEventEmitter | ArrayLike>, - eventName: string, - resultSelector: (value: T, ...args: any[]) => R -): Observable; - -/** - * Creates an Observable that emits events of a specific type coming from the - * given event target. - * - * Creates an Observable from DOM events, or Node.js - * EventEmitter events or others. - * - * ![](fromEvent.png) - * - * `fromEvent` accepts as a first argument event target, which is an object with methods - * for registering event handler functions. As a second argument it takes string that indicates - * type of event we want to listen for. `fromEvent` supports selected types of event targets, - * which are described in detail below. If your event target does not match any of the ones listed, - * you should use {@link fromEventPattern}, which can be used on arbitrary APIs. - * When it comes to APIs supported by `fromEvent`, their methods for adding and removing event - * handler functions have different names, but they all accept a string describing event type - * and function itself, which will be called whenever said event happens. - * - * Every time resulting Observable is subscribed, event handler function will be registered - * to event target on given event type. When that event fires, value - * passed as a first argument to registered function will be emitted by output Observable. - * When Observable is unsubscribed, function will be unregistered from event target. - * - * Note that if event target calls registered function with more than one argument, second - * and following arguments will not appear in resulting stream. In order to get access to them, - * you can pass to `fromEvent` optional project function, which will be called with all arguments - * passed to event handler. Output Observable will then emit value returned by project function, - * instead of the usual value. - * - * Remember that event targets listed below are checked via duck typing. It means that - * no matter what kind of object you have and no matter what environment you work in, - * you can safely use `fromEvent` on that object if it exposes described methods (provided - * of course they behave as was described above). So for example if Node.js library exposes - * event target which has the same method names as DOM EventTarget, `fromEvent` is still - * a good choice. - * - * If the API you use is more callback then event handler oriented (subscribed - * callback function fires only once and thus there is no need to manually - * unregister it), you should use {@link bindCallback} or {@link bindNodeCallback} - * instead. - * - * `fromEvent` supports following types of event targets: - * - * **DOM EventTarget** - * - * This is an object with `addEventListener` and `removeEventListener` methods. - * - * In the browser, `addEventListener` accepts - apart from event type string and event - * handler function arguments - optional third parameter, which is either an object or boolean, - * both used for additional configuration how and when passed function will be called. When - * `fromEvent` is used with event target of that type, you can provide this values - * as third parameter as well. - * - * **Node.js EventEmitter** - * - * An object with `addListener` and `removeListener` methods. - * - * **JQuery-style event target** - * - * An object with `on` and `off` methods - * - * **DOM NodeList** - * - * List of DOM Nodes, returned for example by `document.querySelectorAll` or `Node.childNodes`. - * - * Although this collection is not event target in itself, `fromEvent` will iterate over all Nodes - * it contains and install event handler function in every of them. When returned Observable - * is unsubscribed, function will be removed from all Nodes. - * - * **DOM HtmlCollection** - * - * Just as in case of NodeList it is a collection of DOM nodes. Here as well event handler function is - * installed and removed in each of elements. - * - * - * ## Examples - * - * Emit clicks happening on the DOM document - * - * ```ts - * import { fromEvent } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * clicks.subscribe(x => console.log(x)); - * - * // Results in: - * // MouseEvent object logged to console every time a click - * // occurs on the document. - * ``` - * - * Use `addEventListener` with capture option - * - * ```ts - * import { fromEvent } from 'rxjs'; - * - * const div = document.createElement('div'); - * div.style.cssText = 'width: 200px; height: 200px; background: #09c;'; - * document.body.appendChild(div); - * - * // note optional configuration parameter which will be passed to addEventListener - * const clicksInDocument = fromEvent(document, 'click', { capture: true }); - * const clicksInDiv = fromEvent(div, 'click'); - * - * clicksInDocument.subscribe(() => console.log('document')); - * clicksInDiv.subscribe(() => console.log('div')); - * - * // By default events bubble UP in DOM tree, so normally - * // when we would click on div in document - * // "div" would be logged first and then "document". - * // Since we specified optional `capture` option, document - * // will catch event when it goes DOWN DOM tree, so console - * // will log "document" and then "div". - * ``` - * - * @see {@link bindCallback} - * @see {@link bindNodeCallback} - * @see {@link fromEventPattern} - * - * @param {FromEventTarget} target The DOM EventTarget, Node.js - * EventEmitter, JQuery-like event target, NodeList or HTMLCollection to attach the event handler to. - * @param {string} eventName The event name of interest, being emitted by the - * `target`. - * @param {EventListenerOptions} [options] Options to pass through to addEventListener - * @return {Observable} - */ -export function fromEvent( - target: any, - eventName: string, - options?: EventListenerOptions | ((...args: any[]) => T), - resultSelector?: (...args: any[]) => T -): Observable { - if (isFunction(options)) { - resultSelector = options; - options = undefined; - } - if (resultSelector) { - return fromEvent(target, eventName, options as EventListenerOptions).pipe(mapOneOrManyArgs(resultSelector)); - } - - // Figure out our add and remove methods. In order to do this, - // we are going to analyze the target in a preferred order, if - // the target matches a given signature, we take the two "add" and "remove" - // method names and apply them to a map to create opposite versions of the - // same function. This is because they all operate in duplicate pairs, - // `addListener(name, handler)`, `removeListener(name, handler)`, for example. - // The call only differs by method name, as to whether or not you're adding or removing. - const [add, remove] = - // If it is an EventTarget, we need to use a slightly different method than the other two patterns. - isEventTarget(target) - ? eventTargetMethods.map((methodName) => (handler: any) => target[methodName](eventName, handler, options as EventListenerOptions)) - : // In all other cases, the call pattern is identical with the exception of the method names. - isNodeStyleEventEmitter(target) - ? nodeEventEmitterMethods.map(toCommonHandlerRegistry(target, eventName)) - : isJQueryStyleEventEmitter(target) - ? jqueryMethods.map(toCommonHandlerRegistry(target, eventName)) - : []; - - // If add is falsy, it's because we didn't match a pattern above. - // Check to see if it is an ArrayLike, because if it is, we want to - // try to apply fromEvent to all of it's items. We do this check last, - // because there are may be some types that are both ArrayLike *and* implement - // event registry points, and we'd rather delegate to that when possible. - if (!add) { - if (isArrayLike(target)) { - return mergeMap((subTarget: any) => fromEvent(subTarget, eventName, options as EventListenerOptions))( - innerFrom(target) - ) as Observable; - } - } - - // If add is falsy and we made it here, it's because we didn't - // match any valid target objects above. - if (!add) { - throw new TypeError('Invalid event target'); - } - - return new Observable((subscriber) => { - // The handler we are going to register. Forwards the event object, by itself, or - // an array of arguments to the event handler, if there is more than one argument, - // to the consumer. - const handler = (...args: any[]) => subscriber.next(1 < args.length ? args : args[0]); - // Do the work of adding the handler to the target. - add(handler); - // When we finalize, we want to remove the handler and free up memory. - return () => remove!(handler); - }); -} - -/** - * Used to create `add` and `remove` functions to register and unregister event handlers - * from a target in the most common handler pattern, where there are only two arguments. - * (e.g. `on(name, fn)`, `off(name, fn)`, `addListener(name, fn)`, or `removeListener(name, fn)`) - * @param target The target we're calling methods on - * @param eventName The event name for the event we're creating register or unregister functions for - */ -function toCommonHandlerRegistry(target: any, eventName: string) { - return (methodName: string) => (handler: any) => target[methodName](eventName, handler); -} - -/** - * Checks to see if the target implements the required node-style EventEmitter methods - * for adding and removing event handlers. - * @param target the object to check - */ -function isNodeStyleEventEmitter(target: any): target is NodeStyleEventEmitter { - return isFunction(target.addListener) && isFunction(target.removeListener); -} - -/** - * Checks to see if the target implements the required jQuery-style EventEmitter methods - * for adding and removing event handlers. - * @param target the object to check - */ -function isJQueryStyleEventEmitter(target: any): target is JQueryStyleEventEmitter { - return isFunction(target.on) && isFunction(target.off); -} - -/** - * Checks to see if the target implements the required EventTarget methods - * for adding and removing event handlers. - * @param target the object to check - */ -function isEventTarget(target: any): target is HasEventTargetAddRemove { - return isFunction(target.addEventListener) && isFunction(target.removeEventListener); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/fromEventPattern.ts b/WechatBot/node_modules/rxjs/src/internal/observable/fromEventPattern.ts deleted file mode 100644 index fee384765..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/fromEventPattern.ts +++ /dev/null @@ -1,155 +0,0 @@ -import { Observable } from '../Observable'; -import { isFunction } from '../util/isFunction'; -import { NodeEventHandler } from './fromEvent'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; - -/* tslint:disable:max-line-length */ -export function fromEventPattern( - addHandler: (handler: NodeEventHandler) => any, - removeHandler?: (handler: NodeEventHandler, signal?: any) => void -): Observable; -export function fromEventPattern( - addHandler: (handler: NodeEventHandler) => any, - removeHandler?: (handler: NodeEventHandler, signal?: any) => void, - resultSelector?: (...args: any[]) => T -): Observable; -/* tslint:enable:max-line-length */ - -/** - * Creates an Observable from an arbitrary API for registering event handlers. - * - * When that method for adding event handler was something {@link fromEvent} - * was not prepared for. - * - * ![](fromEventPattern.png) - * - * `fromEventPattern` allows you to convert into an Observable any API that supports registering handler functions - * for events. It is similar to {@link fromEvent}, but far - * more flexible. In fact, all use cases of {@link fromEvent} could be easily handled by - * `fromEventPattern` (although in slightly more verbose way). - * - * This operator accepts as a first argument an `addHandler` function, which will be injected with - * handler parameter. That handler is actually an event handler function that you now can pass - * to API expecting it. `addHandler` will be called whenever Observable - * returned by the operator is subscribed, so registering handler in API will not - * necessarily happen when `fromEventPattern` is called. - * - * After registration, every time an event that we listen to happens, - * Observable returned by `fromEventPattern` will emit value that event handler - * function was called with. Note that if event handler was called with more - * than one argument, second and following arguments will not appear in the Observable. - * - * If API you are using allows to unregister event handlers as well, you can pass to `fromEventPattern` - * another function - `removeHandler` - as a second parameter. It will be injected - * with the same handler function as before, which now you can use to unregister - * it from the API. `removeHandler` will be called when consumer of resulting Observable - * unsubscribes from it. - * - * In some APIs unregistering is actually handled differently. Method registering an event handler - * returns some kind of token, which is later used to identify which function should - * be unregistered or it itself has method that unregisters event handler. - * If that is the case with your API, make sure token returned - * by registering method is returned by `addHandler`. Then it will be passed - * as a second argument to `removeHandler`, where you will be able to use it. - * - * If you need access to all event handler parameters (not only the first one), - * or you need to transform them in any way, you can call `fromEventPattern` with optional - * third parameter - project function which will accept all arguments passed to - * event handler when it is called. Whatever is returned from project function will appear on - * resulting stream instead of usual event handlers first argument. This means - * that default project can be thought of as function that takes its first parameter - * and ignores the rest. - * - * ## Examples - * - * Emits clicks happening on the DOM document - * - * ```ts - * import { fromEventPattern } from 'rxjs'; - * - * function addClickHandler(handler) { - * document.addEventListener('click', handler); - * } - * - * function removeClickHandler(handler) { - * document.removeEventListener('click', handler); - * } - * - * const clicks = fromEventPattern( - * addClickHandler, - * removeClickHandler - * ); - * clicks.subscribe(x => console.log(x)); - * - * // Whenever you click anywhere in the browser, DOM MouseEvent - * // object will be logged. - * ``` - * - * Use with API that returns cancellation token - * - * ```ts - * import { fromEventPattern } from 'rxjs'; - * - * const token = someAPI.registerEventHandler(function() {}); - * someAPI.unregisterEventHandler(token); // this APIs cancellation method accepts - * // not handler itself, but special token. - * - * const someAPIObservable = fromEventPattern( - * function(handler) { return someAPI.registerEventHandler(handler); }, // Note that we return the token here... - * function(handler, token) { someAPI.unregisterEventHandler(token); } // ...to then use it here. - * ); - * ``` - * - * Use with project function - * - * ```ts - * import { fromEventPattern } from 'rxjs'; - * - * someAPI.registerEventHandler((eventType, eventMessage) => { - * console.log(eventType, eventMessage); // Logs 'EVENT_TYPE' 'EVENT_MESSAGE' to console. - * }); - * - * const someAPIObservable = fromEventPattern( - * handler => someAPI.registerEventHandler(handler), - * handler => someAPI.unregisterEventHandler(handler) - * (eventType, eventMessage) => eventType + ' --- ' + eventMessage // without that function only 'EVENT_TYPE' - * ); // would be emitted by the Observable - * - * someAPIObservable.subscribe(value => console.log(value)); - * - * // Logs: - * // 'EVENT_TYPE --- EVENT_MESSAGE' - * ``` - * - * @see {@link fromEvent} - * @see {@link bindCallback} - * @see {@link bindNodeCallback} - * - * @param {function(handler: Function): any} addHandler A function that takes - * a `handler` function as argument and attaches it somehow to the actual - * source of events. - * @param {function(handler: Function, token?: any): void} [removeHandler] A function that - * takes a `handler` function as an argument and removes it from the event source. If `addHandler` - * returns some kind of token, `removeHandler` function will have it as a second parameter. - * @param {function(...args: any): T} [project] A function to - * transform results. It takes the arguments from the event handler and - * should return a single value. - * @return {Observable} Observable which, when an event happens, emits first parameter - * passed to registered event handler. Alternatively it emits whatever project function returns - * at that moment. - */ -export function fromEventPattern( - addHandler: (handler: NodeEventHandler) => any, - removeHandler?: (handler: NodeEventHandler, signal?: any) => void, - resultSelector?: (...args: any[]) => T -): Observable { - if (resultSelector) { - return fromEventPattern(addHandler, removeHandler).pipe(mapOneOrManyArgs(resultSelector)); - } - - return new Observable((subscriber) => { - const handler = (...e: T[]) => subscriber.next(e.length === 1 ? e[0] : e); - const retValue = addHandler(handler); - return isFunction(removeHandler) ? () => removeHandler(handler, retValue) : undefined; - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/fromSubscribable.ts b/WechatBot/node_modules/rxjs/src/internal/observable/fromSubscribable.ts deleted file mode 100644 index 12e45bf5f..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/fromSubscribable.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscriber } from '../Subscriber'; -import { Subscribable } from '../types'; - -/** - * Used to convert a subscribable to an observable. - * - * Currently, this is only used within internals. - * - * TODO: Discuss ObservableInput supporting "Subscribable". - * https://github.com/ReactiveX/rxjs/issues/5909 - * - * @param subscribable A subscribable - */ -export function fromSubscribable(subscribable: Subscribable) { - return new Observable((subscriber: Subscriber) => subscribable.subscribe(subscriber)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/generate.ts b/WechatBot/node_modules/rxjs/src/internal/observable/generate.ts deleted file mode 100644 index e8af3036f..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/generate.ts +++ /dev/null @@ -1,384 +0,0 @@ -import { Observable } from '../Observable'; -import { identity } from '../util/identity'; -import { ObservableInput, SchedulerLike } from '../types'; -import { isScheduler } from '../util/isScheduler'; -import { defer } from './defer'; -import { scheduleIterable } from '../scheduled/scheduleIterable'; - -type ConditionFunc = (state: S) => boolean; -type IterateFunc = (state: S) => S; -type ResultFunc = (state: S) => T; - -export interface GenerateBaseOptions { - /** - * Initial state. - */ - initialState: S; - /** - * Condition function that accepts state and returns boolean. - * When it returns false, the generator stops. - * If not specified, a generator never stops. - */ - condition?: ConditionFunc; - /** - * Iterate function that accepts state and returns new state. - */ - iterate: IterateFunc; - /** - * SchedulerLike to use for generation process. - * By default, a generator starts immediately. - */ - scheduler?: SchedulerLike; -} - -export interface GenerateOptions extends GenerateBaseOptions { - /** - * Result selection function that accepts state and returns a value to emit. - */ - resultSelector: ResultFunc; -} - -/** - * Generates an observable sequence by running a state-driven loop - * producing the sequence's elements, using the specified scheduler - * to send out observer messages. - * - * ![](generate.png) - * - * ## Examples - * - * Produces sequence of numbers - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate(0, x => x < 3, x => x + 1, x => x); - * - * result.subscribe(x => console.log(x)); - * - * // Logs: - * // 0 - * // 1 - * // 2 - * ``` - * - * Use `asapScheduler` - * - * ```ts - * import { generate, asapScheduler } from 'rxjs'; - * - * const result = generate(1, x => x < 5, x => x * 2, x => x + 1, asapScheduler); - * - * result.subscribe(x => console.log(x)); - * - * // Logs: - * // 2 - * // 3 - * // 5 - * ``` - * - * @see {@link from} - * @see {@link Observable} - * - * @param {S} initialState Initial state. - * @param {function (state: S): boolean} condition Condition to terminate generation (upon returning false). - * @param {function (state: S): S} iterate Iteration step function. - * @param {function (state: S): T} resultSelector Selector function for results produced in the sequence. (deprecated) - * @param {SchedulerLike} [scheduler] A {@link SchedulerLike} on which to run the generator loop. If not provided, defaults to emit immediately. - * @returns {Observable} The generated sequence. - * @deprecated Instead of passing separate arguments, use the options argument. Signatures taking separate arguments will be removed in v8. - */ -export function generate( - initialState: S, - condition: ConditionFunc, - iterate: IterateFunc, - resultSelector: ResultFunc, - scheduler?: SchedulerLike -): Observable; - -/** - * Generates an Observable by running a state-driven loop - * that emits an element on each iteration. - * - * Use it instead of nexting values in a for loop. - * - * ![](generate.png) - * - * `generate` allows you to create a stream of values generated with a loop very similar to - * a traditional for loop. The first argument of `generate` is a beginning value. The second argument - * is a function that accepts this value and tests if some condition still holds. If it does, - * then the loop continues, if not, it stops. The third value is a function which takes the - * previously defined value and modifies it in some way on each iteration. Note how these three parameters - * are direct equivalents of three expressions in a traditional for loop: the first expression - * initializes some state (for example, a numeric index), the second tests if the loop can perform the next - * iteration (for example, if the index is lower than 10) and the third states how the defined value - * will be modified on every step (for example, the index will be incremented by one). - * - * Return value of a `generate` operator is an Observable that on each loop iteration - * emits a value. First of all, the condition function is ran. If it returns true, then the Observable - * emits the currently stored value (initial value at the first iteration) and finally updates - * that value with iterate function. If at some point the condition returns false, then the Observable - * completes at that moment. - * - * Optionally you can pass a fourth parameter to `generate` - a result selector function which allows you - * to immediately map the value that would normally be emitted by an Observable. - * - * If you find three anonymous functions in `generate` call hard to read, you can provide - * a single object to the operator instead where the object has the properties: `initialState`, - * `condition`, `iterate` and `resultSelector`, which should have respective values that you - * would normally pass to `generate`. `resultSelector` is still optional, but that form - * of calling `generate` allows you to omit `condition` as well. If you omit it, that means - * condition always holds, or in other words the resulting Observable will never complete. - * - * Both forms of `generate` can optionally accept a scheduler. In case of a multi-parameter call, - * scheduler simply comes as a last argument (no matter if there is a `resultSelector` - * function or not). In case of a single-parameter call, you can provide it as a - * `scheduler` property on the object passed to the operator. In both cases, a scheduler decides when - * the next iteration of the loop will happen and therefore when the next value will be emitted - * by the Observable. For example, to ensure that each value is pushed to the Observer - * on a separate task in the event loop, you could use the `async` scheduler. Note that - * by default (when no scheduler is passed) values are simply emitted synchronously. - * - * - * ## Examples - * - * Use with condition and iterate functions - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate(0, x => x < 3, x => x + 1); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // 0 - * // 1 - * // 2 - * // 'Complete!' - * ``` - * - * Use with condition, iterate and resultSelector functions - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate(0, x => x < 3, x => x + 1, x => x * 1000); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // 0 - * // 1000 - * // 2000 - * // 'Complete!' - * ``` - * - * Use with options object - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate({ - * initialState: 0, - * condition(value) { return value < 3; }, - * iterate(value) { return value + 1; }, - * resultSelector(value) { return value * 1000; } - * }); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // 0 - * // 1000 - * // 2000 - * // 'Complete!' - * ``` - * - * Use options object without condition function - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate({ - * initialState: 0, - * iterate(value) { return value + 1; }, - * resultSelector(value) { return value * 1000; } - * }); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') // This will never run - * }); - * - * // Logs: - * // 0 - * // 1000 - * // 2000 - * // 3000 - * // ...and never stops. - * ``` - * - * @see {@link from} - * - * @param {S} initialState Initial state. - * @param {function (state: S): boolean} condition Condition to terminate generation (upon returning false). - * @param {function (state: S): S} iterate Iteration step function. - * @param {function (state: S): T} [resultSelector] Selector function for results produced in the sequence. - * @param {Scheduler} [scheduler] A {@link Scheduler} on which to run the generator loop. If not provided, defaults to emitting immediately. - * @return {Observable} The generated sequence. - * @deprecated Instead of passing separate arguments, use the options argument. Signatures taking separate arguments will be removed in v8. - */ -export function generate( - initialState: S, - condition: ConditionFunc, - iterate: IterateFunc, - scheduler?: SchedulerLike -): Observable; - -/** - * Generates an observable sequence by running a state-driven loop - * producing the sequence's elements, using the specified scheduler - * to send out observer messages. - * The overload accepts options object that might contain initial state, iterate, - * condition and scheduler. - * - * ![](generate.png) - * - * ## Examples - * - * Use options object with condition function - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate({ - * initialState: 0, - * condition: x => x < 3, - * iterate: x => x + 1 - * }); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // 0 - * // 1 - * // 2 - * // 'Complete!' - * ``` - * - * @see {@link from} - * @see {@link Observable} - * - * @param {GenerateBaseOptions} options Object that must contain initialState, iterate and might contain condition and scheduler. - * @returns {Observable} The generated sequence. - */ -export function generate(options: GenerateBaseOptions): Observable; - -/** - * Generates an observable sequence by running a state-driven loop - * producing the sequence's elements, using the specified scheduler - * to send out observer messages. - * The overload accepts options object that might contain initial state, iterate, - * condition, result selector and scheduler. - * - * ![](generate.png) - * - * ## Examples - * - * Use options object with condition and iterate function - * - * ```ts - * import { generate } from 'rxjs'; - * - * const result = generate({ - * initialState: 0, - * condition: x => x < 3, - * iterate: x => x + 1, - * resultSelector: x => x - * }); - * - * result.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // 0 - * // 1 - * // 2 - * // 'Complete!' - * ``` - * - * @see {@link from} - * @see {@link Observable} - * - * @param {GenerateOptions} options Object that must contain initialState, iterate, resultSelector and might contain condition and scheduler. - * @returns {Observable} The generated sequence. - */ -export function generate(options: GenerateOptions): Observable; - -export function generate( - initialStateOrOptions: S | GenerateOptions, - condition?: ConditionFunc, - iterate?: IterateFunc, - resultSelectorOrScheduler?: ResultFunc | SchedulerLike, - scheduler?: SchedulerLike -): Observable { - let resultSelector: ResultFunc; - let initialState: S; - - // TODO: Remove this as we move away from deprecated signatures - // and move towards a configuration object argument. - if (arguments.length === 1) { - // If we only have one argument, we can assume it is a configuration object. - // Note that folks not using TypeScript may trip over this. - ({ - initialState, - condition, - iterate, - resultSelector = identity as ResultFunc, - scheduler, - } = initialStateOrOptions as GenerateOptions); - } else { - // Deprecated arguments path. Figure out what the user - // passed and set it here. - initialState = initialStateOrOptions as S; - if (!resultSelectorOrScheduler || isScheduler(resultSelectorOrScheduler)) { - resultSelector = identity as ResultFunc; - scheduler = resultSelectorOrScheduler as SchedulerLike; - } else { - resultSelector = resultSelectorOrScheduler as ResultFunc; - } - } - - // The actual generator used to "generate" values. - function* gen() { - for (let state = initialState; !condition || condition(state); state = iterate!(state)) { - yield resultSelector(state); - } - } - - // We use `defer` because we want to defer the creation of the iterator from the iterable. - return defer( - (scheduler - ? // If a scheduler was provided, use `scheduleIterable` to ensure that iteration/generation - // happens on the scheduler. - () => scheduleIterable(gen(), scheduler!) - : // Otherwise, if there's no scheduler, we can just use the generator function directly in - // `defer` and executing it will return the generator (which is iterable). - gen) as () => ObservableInput - ); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/iif.ts b/WechatBot/node_modules/rxjs/src/internal/observable/iif.ts deleted file mode 100644 index d9ea9f1a1..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/iif.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { Observable } from '../Observable'; -import { defer } from './defer'; -import { ObservableInput } from '../types'; - -/** - * Checks a boolean at subscription time, and chooses between one of two observable sources - * - * `iif` expects a function that returns a boolean (the `condition` function), and two sources, - * the `trueResult` and the `falseResult`, and returns an Observable. - * - * At the moment of subscription, the `condition` function is called. If the result is `true`, the - * subscription will be to the source passed as the `trueResult`, otherwise, the subscription will be - * to the source passed as the `falseResult`. - * - * If you need to check more than two options to choose between more than one observable, have a look at the {@link defer} creation method. - * - * ## Examples - * - * Change at runtime which Observable will be subscribed - * - * ```ts - * import { iif, of } from 'rxjs'; - * - * let subscribeToFirst; - * const firstOrSecond = iif( - * () => subscribeToFirst, - * of('first'), - * of('second') - * ); - * - * subscribeToFirst = true; - * firstOrSecond.subscribe(value => console.log(value)); - * - * // Logs: - * // 'first' - * - * subscribeToFirst = false; - * firstOrSecond.subscribe(value => console.log(value)); - * - * // Logs: - * // 'second' - * ``` - * - * Control access to an Observable - * - * ```ts - * import { iif, of, EMPTY } from 'rxjs'; - * - * let accessGranted; - * const observableIfYouHaveAccess = iif( - * () => accessGranted, - * of('It seems you have an access...'), - * EMPTY - * ); - * - * accessGranted = true; - * observableIfYouHaveAccess.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('The end') - * }); - * - * // Logs: - * // 'It seems you have an access...' - * // 'The end' - * - * accessGranted = false; - * observableIfYouHaveAccess.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('The end') - * }); - * - * // Logs: - * // 'The end' - * ``` - * - * @see {@link defer} - * - * @param condition Condition which Observable should be chosen. - * @param trueResult An Observable that will be subscribed if condition is true. - * @param falseResult An Observable that will be subscribed if condition is false. - * @return An observable that proxies to `trueResult` or `falseResult`, depending on the result of the `condition` function. - */ -export function iif(condition: () => boolean, trueResult: ObservableInput, falseResult: ObservableInput): Observable { - return defer(() => (condition() ? trueResult : falseResult)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/innerFrom.ts b/WechatBot/node_modules/rxjs/src/internal/observable/innerFrom.ts deleted file mode 100644 index c3852c15e..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/innerFrom.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { isArrayLike } from '../util/isArrayLike'; -import { isPromise } from '../util/isPromise'; -import { Observable } from '../Observable'; -import { ObservableInput, ObservedValueOf, ReadableStreamLike } from '../types'; -import { isInteropObservable } from '../util/isInteropObservable'; -import { isAsyncIterable } from '../util/isAsyncIterable'; -import { createInvalidObservableTypeError } from '../util/throwUnobservableError'; -import { isIterable } from '../util/isIterable'; -import { isReadableStreamLike, readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike'; -import { Subscriber } from '../Subscriber'; -import { isFunction } from '../util/isFunction'; -import { reportUnhandledError } from '../util/reportUnhandledError'; -import { observable as Symbol_observable } from '../symbol/observable'; - -export function innerFrom>(input: O): Observable>; -export function innerFrom(input: ObservableInput): Observable { - if (input instanceof Observable) { - return input; - } - if (input != null) { - if (isInteropObservable(input)) { - return fromInteropObservable(input); - } - if (isArrayLike(input)) { - return fromArrayLike(input); - } - if (isPromise(input)) { - return fromPromise(input); - } - if (isAsyncIterable(input)) { - return fromAsyncIterable(input); - } - if (isIterable(input)) { - return fromIterable(input); - } - if (isReadableStreamLike(input)) { - return fromReadableStreamLike(input); - } - } - - throw createInvalidObservableTypeError(input); -} - -/** - * Creates an RxJS Observable from an object that implements `Symbol.observable`. - * @param obj An object that properly implements `Symbol.observable`. - */ -export function fromInteropObservable(obj: any) { - return new Observable((subscriber: Subscriber) => { - const obs = obj[Symbol_observable](); - if (isFunction(obs.subscribe)) { - return obs.subscribe(subscriber); - } - // Should be caught by observable subscribe function error handling. - throw new TypeError('Provided object does not correctly implement Symbol.observable'); - }); -} - -/** - * Synchronously emits the values of an array like and completes. - * This is exported because there are creation functions and operators that need to - * make direct use of the same logic, and there's no reason to make them run through - * `from` conditionals because we *know* they're dealing with an array. - * @param array The array to emit values from - */ -export function fromArrayLike(array: ArrayLike) { - return new Observable((subscriber: Subscriber) => { - // Loop over the array and emit each value. Note two things here: - // 1. We're making sure that the subscriber is not closed on each loop. - // This is so we don't continue looping over a very large array after - // something like a `take`, `takeWhile`, or other synchronous unsubscription - // has already unsubscribed. - // 2. In this form, reentrant code can alter that array we're looping over. - // This is a known issue, but considered an edge case. The alternative would - // be to copy the array before executing the loop, but this has - // performance implications. - for (let i = 0; i < array.length && !subscriber.closed; i++) { - subscriber.next(array[i]); - } - subscriber.complete(); - }); -} - -export function fromPromise(promise: PromiseLike) { - return new Observable((subscriber: Subscriber) => { - promise - .then( - (value) => { - if (!subscriber.closed) { - subscriber.next(value); - subscriber.complete(); - } - }, - (err: any) => subscriber.error(err) - ) - .then(null, reportUnhandledError); - }); -} - -export function fromIterable(iterable: Iterable) { - return new Observable((subscriber: Subscriber) => { - for (const value of iterable) { - subscriber.next(value); - if (subscriber.closed) { - return; - } - } - subscriber.complete(); - }); -} - -export function fromAsyncIterable(asyncIterable: AsyncIterable) { - return new Observable((subscriber: Subscriber) => { - process(asyncIterable, subscriber).catch((err) => subscriber.error(err)); - }); -} - -export function fromReadableStreamLike(readableStream: ReadableStreamLike) { - return fromAsyncIterable(readableStreamLikeToAsyncGenerator(readableStream)); -} - -async function process(asyncIterable: AsyncIterable, subscriber: Subscriber) { - for await (const value of asyncIterable) { - subscriber.next(value); - // A side-effect may have closed our subscriber, - // check before the next iteration. - if (subscriber.closed) { - return; - } - } - subscriber.complete(); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/interval.ts b/WechatBot/node_modules/rxjs/src/internal/observable/interval.ts deleted file mode 100644 index fc1b3e0a7..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/interval.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { Observable } from '../Observable'; -import { asyncScheduler } from '../scheduler/async'; -import { SchedulerLike } from '../types'; -import { timer } from './timer'; - -/** - * Creates an Observable that emits sequential numbers every specified - * interval of time, on a specified {@link SchedulerLike}. - * - * Emits incremental numbers periodically in time. - * - * ![](interval.png) - * - * `interval` returns an Observable that emits an infinite sequence of - * ascending integers, with a constant interval of time of your choosing - * between those emissions. The first emission is not sent immediately, but - * only after the first period has passed. By default, this operator uses the - * `async` {@link SchedulerLike} to provide a notion of time, but you may pass any - * {@link SchedulerLike} to it. - * - * ## Example - * - * Emits ascending numbers, one every second (1000ms) up to the number 3 - * - * ```ts - * import { interval, take } from 'rxjs'; - * - * const numbers = interval(1000); - * - * const takeFourNumbers = numbers.pipe(take(4)); - * - * takeFourNumbers.subscribe(x => console.log('Next: ', x)); - * - * // Logs: - * // Next: 0 - * // Next: 1 - * // Next: 2 - * // Next: 3 - * ``` - * - * @see {@link timer} - * @see {@link delay} - * - * @param {number} [period=0] The interval size in milliseconds (by default) - * or the time unit determined by the scheduler's clock. - * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for scheduling - * the emission of values, and providing a notion of "time". - * @return {Observable} An Observable that emits a sequential number each time - * interval. - */ -export function interval(period = 0, scheduler: SchedulerLike = asyncScheduler): Observable { - if (period < 0) { - // We cannot schedule an interval in the past. - period = 0; - } - - return timer(period, period, scheduler); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/merge.ts b/WechatBot/node_modules/rxjs/src/internal/observable/merge.ts deleted file mode 100644 index 26d35f4f2..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/merge.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput, ObservableInputTuple, SchedulerLike } from '../types'; -import { mergeAll } from '../operators/mergeAll'; -import { innerFrom } from './innerFrom'; -import { EMPTY } from './empty'; -import { popNumber, popScheduler } from '../util/args'; -import { from } from './from'; - -export function merge(...sources: [...ObservableInputTuple]): Observable; -export function merge(...sourcesAndConcurrency: [...ObservableInputTuple, number?]): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function merge( - ...sourcesAndScheduler: [...ObservableInputTuple, SchedulerLike?] -): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `mergeAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function merge( - ...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple, number?, SchedulerLike?] -): Observable; - -/** - * Creates an output Observable which concurrently emits all values from every - * given input Observable. - * - * Flattens multiple Observables together by blending - * their values into one Observable. - * - * ![](merge.png) - * - * `merge` subscribes to each given input Observable (as arguments), and simply - * forwards (without doing any transformation) all the values from all the input - * Observables to the output Observable. The output Observable only completes - * once all input Observables have completed. Any error delivered by an input - * Observable will be immediately emitted on the output Observable. - * - * ## Examples - * - * Merge together two Observables: 1s interval and clicks - * - * ```ts - * import { merge, fromEvent, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const timer = interval(1000); - * const clicksOrTimer = merge(clicks, timer); - * clicksOrTimer.subscribe(x => console.log(x)); - * - * // Results in the following: - * // timer will emit ascending values, one every second(1000ms) to console - * // clicks logs MouseEvents to console every time the "document" is clicked - * // Since the two streams are merged you see these happening - * // as they occur. - * ``` - * - * Merge together 3 Observables, but run only 2 concurrently - * - * ```ts - * import { interval, take, merge } from 'rxjs'; - * - * const timer1 = interval(1000).pipe(take(10)); - * const timer2 = interval(2000).pipe(take(6)); - * const timer3 = interval(500).pipe(take(10)); - * - * const concurrent = 2; // the argument - * const merged = merge(timer1, timer2, timer3, concurrent); - * merged.subscribe(x => console.log(x)); - * - * // Results in the following: - * // - First timer1 and timer2 will run concurrently - * // - timer1 will emit a value every 1000ms for 10 iterations - * // - timer2 will emit a value every 2000ms for 6 iterations - * // - after timer1 hits its max iteration, timer2 will - * // continue, and timer3 will start to run concurrently with timer2 - * // - when timer2 hits its max iteration it terminates, and - * // timer3 will continue to emit a value every 500ms until it is complete - * ``` - * - * @see {@link mergeAll} - * @see {@link mergeMap} - * @see {@link mergeMapTo} - * @see {@link mergeScan} - * - * @param {...ObservableInput} observables Input Observables to merge together. - * @param {number} [concurrent=Infinity] Maximum number of input - * Observables being subscribed to concurrently. - * @param {SchedulerLike} [scheduler=null] The {@link SchedulerLike} to use for managing - * concurrency of input Observables. - * @return {Observable} an Observable that emits items that are the result of - * every input Observable. - */ -export function merge(...args: (ObservableInput | number | SchedulerLike)[]): Observable { - const scheduler = popScheduler(args); - const concurrent = popNumber(args, Infinity); - const sources = args as ObservableInput[]; - return !sources.length - ? // No source provided - EMPTY - : sources.length === 1 - ? // One source? Just return it. - innerFrom(sources[0]) - : // Merge all sources - mergeAll(concurrent)(from(sources, scheduler)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/never.ts b/WechatBot/node_modules/rxjs/src/internal/observable/never.ts deleted file mode 100644 index cfbec7de9..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/never.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Observable } from '../Observable'; -import { noop } from '../util/noop'; - -/** - * An Observable that emits no items to the Observer and never completes. - * - * ![](never.png) - * - * A simple Observable that emits neither values nor errors nor the completion - * notification. It can be used for testing purposes or for composing with other - * Observables. Please note that by never emitting a complete notification, this - * Observable keeps the subscription from being disposed automatically. - * Subscriptions need to be manually disposed. - * - * ## Example - * - * Emit the number 7, then never emit anything else (not even complete) - * - * ```ts - * import { NEVER, startWith } from 'rxjs'; - * - * const info = () => console.log('Will not be called'); - * - * const result = NEVER.pipe(startWith(7)); - * result.subscribe({ - * next: x => console.log(x), - * error: info, - * complete: info - * }); - * ``` - * - * @see {@link Observable} - * @see {@link EMPTY} - * @see {@link of} - * @see {@link throwError} - */ -export const NEVER = new Observable(noop); - -/** - * @deprecated Replaced with the {@link NEVER} constant. Will be removed in v8. - */ -export function never() { - return NEVER; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/of.ts b/WechatBot/node_modules/rxjs/src/internal/observable/of.ts deleted file mode 100644 index dc0c91823..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/of.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { SchedulerLike, ValueFromArray } from '../types'; -import { Observable } from '../Observable'; -import { popScheduler } from '../util/args'; -import { from } from './from'; - -// Devs are more likely to pass null or undefined than they are a scheduler -// without accompanying values. To make things easier for (naughty) devs who -// use the `strictNullChecks: false` TypeScript compiler option, these -// overloads with explicit null and undefined values are included. - -export function of(value: null): Observable; -export function of(value: undefined): Observable; - -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function of(scheduler: SchedulerLike): Observable; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function of(...valuesAndScheduler: [...A, SchedulerLike]): Observable>; - -export function of(): Observable; -/** @deprecated Do not specify explicit type parameters. Signatures with type parameters that cannot be inferred will be removed in v8. */ -export function of(): Observable; -export function of(value: T): Observable; -export function of(...values: A): Observable>; - -/** - * Converts the arguments to an observable sequence. - * - * Each argument becomes a `next` notification. - * - * ![](of.png) - * - * Unlike {@link from}, it does not do any flattening and emits each argument in whole - * as a separate `next` notification. - * - * ## Examples - * - * Emit the values `10, 20, 30` - * - * ```ts - * import { of } from 'rxjs'; - * - * of(10, 20, 30) - * .subscribe({ - * next: value => console.log('next:', value), - * error: err => console.log('error:', err), - * complete: () => console.log('the end'), - * }); - * - * // Outputs - * // next: 10 - * // next: 20 - * // next: 30 - * // the end - * ``` - * - * Emit the array `[1, 2, 3]` - * - * ```ts - * import { of } from 'rxjs'; - * - * of([1, 2, 3]) - * .subscribe({ - * next: value => console.log('next:', value), - * error: err => console.log('error:', err), - * complete: () => console.log('the end'), - * }); - * - * // Outputs - * // next: [1, 2, 3] - * // the end - * ``` - * - * @see {@link from} - * @see {@link range} - * - * @param {...T} values A comma separated list of arguments you want to be emitted - * @return {Observable} An Observable that emits the arguments - * described above and then completes. - */ -export function of(...args: Array): Observable { - const scheduler = popScheduler(args); - return from(args as T[], scheduler); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/onErrorResumeNext.ts b/WechatBot/node_modules/rxjs/src/internal/observable/onErrorResumeNext.ts deleted file mode 100644 index ef62c033a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/onErrorResumeNext.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInputTuple } from '../types'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { OperatorSubscriber } from '../operators/OperatorSubscriber'; -import { noop } from '../util/noop'; -import { innerFrom } from './innerFrom'; - -/* tslint:disable:max-line-length */ -export function onErrorResumeNext(sources: [...ObservableInputTuple]): Observable; -export function onErrorResumeNext(...sources: [...ObservableInputTuple]): Observable; - -/* tslint:enable:max-line-length */ - -/** - * When any of the provided Observable emits a complete or an error notification, it immediately subscribes to the next one - * that was passed. - * - * Execute series of Observables no matter what, even if it means swallowing errors. - * - * ![](onErrorResumeNext.png) - * - * `onErrorResumeNext` will subscribe to each observable source it is provided, in order. - * If the source it's subscribed to emits an error or completes, it will move to the next source - * without error. - * - * If `onErrorResumeNext` is provided no arguments, or a single, empty array, it will return {@link EMPTY}. - * - * `onErrorResumeNext` is basically {@link concat}, only it will continue, even if one of its - * sources emits an error. - * - * Note that there is no way to handle any errors thrown by sources via the result of - * `onErrorResumeNext`. If you want to handle errors thrown in any given source, you can - * always use the {@link catchError} operator on them before passing them into `onErrorResumeNext`. - * - * ## Example - * - * Subscribe to the next Observable after map fails - * - * ```ts - * import { onErrorResumeNext, of, map } from 'rxjs'; - * - * onErrorResumeNext( - * of(1, 2, 3, 0).pipe( - * map(x => { - * if (x === 0) { - * throw Error(); - * } - * return 10 / x; - * }) - * ), - * of(1, 2, 3) - * ) - * .subscribe({ - * next: value => console.log(value), - * error: err => console.log(err), // Will never be called. - * complete: () => console.log('done') - * }); - * - * // Logs: - * // 10 - * // 5 - * // 3.3333333333333335 - * // 1 - * // 2 - * // 3 - * // 'done' - * ``` - * - * @see {@link concat} - * @see {@link catchError} - * - * @param {...ObservableInput} sources Observables (or anything that *is* observable) passed either directly or as an array. - * @return {Observable} An Observable that concatenates all sources, one after the other, - * ignoring all errors, such that any error causes it to move on to the next source. - */ -export function onErrorResumeNext( - ...sources: [[...ObservableInputTuple]] | [...ObservableInputTuple] -): Observable { - const nextSources: ObservableInputTuple = argsOrArgArray(sources) as any; - - return new Observable((subscriber) => { - let sourceIndex = 0; - const subscribeNext = () => { - if (sourceIndex < nextSources.length) { - let nextSource: Observable; - try { - nextSource = innerFrom(nextSources[sourceIndex++]); - } catch (err) { - subscribeNext(); - return; - } - const innerSubscriber = new OperatorSubscriber(subscriber, undefined, noop, noop); - nextSource.subscribe(innerSubscriber); - innerSubscriber.add(subscribeNext); - } else { - subscriber.complete(); - } - }; - subscribeNext(); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/pairs.ts b/WechatBot/node_modules/rxjs/src/internal/observable/pairs.ts deleted file mode 100644 index 4dafb9ffb..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/pairs.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -import { from } from './from'; - -/** - * @deprecated Use `from(Object.entries(obj))` instead. Will be removed in v8. - */ -export function pairs(arr: readonly T[], scheduler?: SchedulerLike): Observable<[string, T]>; -/** - * @deprecated Use `from(Object.entries(obj))` instead. Will be removed in v8. - */ -export function pairs>(obj: O, scheduler?: SchedulerLike): Observable<[keyof O, O[keyof O]]>; -/** - * @deprecated Use `from(Object.entries(obj))` instead. Will be removed in v8. - */ -export function pairs(iterable: Iterable, scheduler?: SchedulerLike): Observable<[string, T]>; -/** - * @deprecated Use `from(Object.entries(obj))` instead. Will be removed in v8. - */ -export function pairs( - n: number | bigint | boolean | ((...args: any[]) => any) | symbol, - scheduler?: SchedulerLike -): Observable<[never, never]>; - -/** - * Convert an object into an Observable of `[key, value]` pairs. - * - * Turn entries of an object into a stream. - * - * ![](pairs.png) - * - * `pairs` takes an arbitrary object and returns an Observable that emits arrays. Each - * emitted array has exactly two elements - the first is a key from the object - * and the second is a value corresponding to that key. Keys are extracted from - * an object via `Object.keys` function, which means that they will be only - * enumerable keys that are present on an object directly - not ones inherited - * via prototype chain. - * - * By default, these arrays are emitted synchronously. To change that you can - * pass a {@link SchedulerLike} as a second argument to `pairs`. - * - * ## Example - * - * Converts an object to an Observable - * - * ```ts - * import { pairs } from 'rxjs'; - * - * const obj = { - * foo: 42, - * bar: 56, - * baz: 78 - * }; - * - * pairs(obj).subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // ['foo', 42] - * // ['bar', 56] - * // ['baz', 78] - * // 'Complete!' - * ``` - * - * ### Object.entries required - * - * In IE, you will need to polyfill `Object.entries` in order to use this. - * [MDN has a polyfill here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries) - * - * @param {Object} obj The object to inspect and turn into an - * Observable sequence. - * @param {Scheduler} [scheduler] An optional IScheduler to schedule - * when resulting Observable will emit values. - * @returns {(Observable>)} An observable sequence of - * [key, value] pairs from the object. - * @deprecated Use `from(Object.entries(obj))` instead. Will be removed in v8. - */ -export function pairs(obj: any, scheduler?: SchedulerLike) { - return from(Object.entries(obj), scheduler as any); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/partition.ts b/WechatBot/node_modules/rxjs/src/internal/observable/partition.ts deleted file mode 100644 index d69db663f..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/partition.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { not } from '../util/not'; -import { filter } from '../operators/filter'; -import { ObservableInput } from '../types'; -import { Observable } from '../Observable'; -import { innerFrom } from './innerFrom'; - -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export function partition( - source: ObservableInput, - predicate: (this: A, value: T, index: number) => value is U, - thisArg: A -): [Observable, Observable>]; -export function partition( - source: ObservableInput, - predicate: (value: T, index: number) => value is U -): [Observable, Observable>]; - -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export function partition( - source: ObservableInput, - predicate: (this: A, value: T, index: number) => boolean, - thisArg: A -): [Observable, Observable]; -export function partition(source: ObservableInput, predicate: (value: T, index: number) => boolean): [Observable, Observable]; - -/** - * Splits the source Observable into two, one with values that satisfy a - * predicate, and another with values that don't satisfy the predicate. - * - * It's like {@link filter}, but returns two Observables: - * one like the output of {@link filter}, and the other with values that did not - * pass the condition. - * - * ![](partition.png) - * - * `partition` outputs an array with two Observables that partition the values - * from the source Observable through the given `predicate` function. The first - * Observable in that array emits source values for which the predicate argument - * returns true. The second Observable emits source values for which the - * predicate returns false. The first behaves like {@link filter} and the second - * behaves like {@link filter} with the predicate negated. - * - * ## Example - * - * Partition a set of numbers into odds and evens observables - * - * ```ts - * import { of, partition } from 'rxjs'; - * - * const observableValues = of(1, 2, 3, 4, 5, 6); - * const [evens$, odds$] = partition(observableValues, value => value % 2 === 0); - * - * odds$.subscribe(x => console.log('odds', x)); - * evens$.subscribe(x => console.log('evens', x)); - * - * // Logs: - * // odds 1 - * // odds 3 - * // odds 5 - * // evens 2 - * // evens 4 - * // evens 6 - * ``` - * - * @see {@link filter} - * - * @param {function(value: T, index: number): boolean} predicate A function that - * evaluates each value emitted by the source Observable. If it returns `true`, - * the value is emitted on the first Observable in the returned array, if - * `false` the value is emitted on the second Observable in the array. The - * `index` parameter is the number `i` for the i-th source emission that has - * happened since the subscription, starting from the number `0`. - * @param {any} [thisArg] An optional argument to determine the value of `this` - * in the `predicate` function. - * @return {[Observable, Observable]} An array with two Observables: one - * with values that passed the predicate, and another with values that did not - * pass the predicate. - */ -export function partition( - source: ObservableInput, - predicate: (this: any, value: T, index: number) => boolean, - thisArg?: any -): [Observable, Observable] { - return [filter(predicate, thisArg)(innerFrom(source)), filter(not(predicate, thisArg))(innerFrom(source))] as [ - Observable, - Observable - ]; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/race.ts b/WechatBot/node_modules/rxjs/src/internal/observable/race.ts deleted file mode 100644 index 59b8d0b16..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/race.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from './innerFrom'; -import { Subscription } from '../Subscription'; -import { ObservableInput, ObservableInputTuple } from '../types'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { Subscriber } from '../Subscriber'; - -export function race(inputs: [...ObservableInputTuple]): Observable; -export function race(...inputs: [...ObservableInputTuple]): Observable; - -/** - * Returns an observable that mirrors the first source observable to emit an item. - * - * ![](race.png) - * - * `race` returns an observable, that when subscribed to, subscribes to all source observables immediately. - * As soon as one of the source observables emits a value, the result unsubscribes from the other sources. - * The resulting observable will forward all notifications, including error and completion, from the "winning" - * source observable. - * - * If one of the used source observable throws an errors before a first notification - * the race operator will also throw an error, no matter if another source observable - * could potentially win the race. - * - * `race` can be useful for selecting the response from the fastest network connection for - * HTTP or WebSockets. `race` can also be useful for switching observable context based on user - * input. - * - * ## Example - * - * Subscribes to the observable that was the first to start emitting. - * - * ```ts - * import { interval, map, race } from 'rxjs'; - * - * const obs1 = interval(7000).pipe(map(() => 'slow one')); - * const obs2 = interval(3000).pipe(map(() => 'fast one')); - * const obs3 = interval(5000).pipe(map(() => 'medium one')); - * - * race(obs1, obs2, obs3) - * .subscribe(winner => console.log(winner)); - * - * // Outputs - * // a series of 'fast one' - * ``` - * - * @param {...Observables} ...observables sources used to race for which Observable emits first. - * @return {Observable} an Observable that mirrors the output of the first Observable to emit an item. - */ -export function race(...sources: (ObservableInput | ObservableInput[])[]): Observable { - sources = argsOrArgArray(sources); - // If only one source was passed, just return it. Otherwise return the race. - return sources.length === 1 ? innerFrom(sources[0] as ObservableInput) : new Observable(raceInit(sources as ObservableInput[])); -} - -/** - * An observable initializer function for both the static version and the - * operator version of race. - * @param sources The sources to race - */ -export function raceInit(sources: ObservableInput[]) { - return (subscriber: Subscriber) => { - let subscriptions: Subscription[] = []; - - // Subscribe to all of the sources. Note that we are checking `subscriptions` here - // Is is an array of all actively "racing" subscriptions, and it is `null` after the - // race has been won. So, if we have racer that synchronously "wins", this loop will - // stop before it subscribes to any more. - for (let i = 0; subscriptions && !subscriber.closed && i < sources.length; i++) { - subscriptions.push( - innerFrom(sources[i] as ObservableInput).subscribe( - createOperatorSubscriber(subscriber, (value) => { - if (subscriptions) { - // We're still racing, but we won! So unsubscribe - // all other subscriptions that we have, except this one. - for (let s = 0; s < subscriptions.length; s++) { - s !== i && subscriptions[s].unsubscribe(); - } - subscriptions = null!; - } - subscriber.next(value); - }) - ) - ); - } - }; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/range.ts b/WechatBot/node_modules/rxjs/src/internal/observable/range.ts deleted file mode 100644 index 314ac1bed..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/range.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { SchedulerLike } from '../types'; -import { Observable } from '../Observable'; -import { EMPTY } from './empty'; - -export function range(start: number, count?: number): Observable; - -/** - * @deprecated The `scheduler` parameter will be removed in v8. Use `range(start, count).pipe(observeOn(scheduler))` instead. Details: Details: https://rxjs.dev/deprecations/scheduler-argument - */ -export function range(start: number, count: number | undefined, scheduler: SchedulerLike): Observable; - -/** - * Creates an Observable that emits a sequence of numbers within a specified - * range. - * - * Emits a sequence of numbers in a range. - * - * ![](range.png) - * - * `range` operator emits a range of sequential integers, in order, where you - * select the `start` of the range and its `length`. By default, uses no - * {@link SchedulerLike} and just delivers the notifications synchronously, but may use - * an optional {@link SchedulerLike} to regulate those deliveries. - * - * ## Example - * - * Produce a range of numbers - * - * ```ts - * import { range } from 'rxjs'; - * - * const numbers = range(1, 3); - * - * numbers.subscribe({ - * next: value => console.log(value), - * complete: () => console.log('Complete!') - * }); - * - * // Logs: - * // 1 - * // 2 - * // 3 - * // 'Complete!' - * ``` - * - * @see {@link timer} - * @see {@link interval} - * - * @param {number} [start=0] The value of the first integer in the sequence. - * @param {number} count The number of sequential integers to generate. - * @param {SchedulerLike} [scheduler] A {@link SchedulerLike} to use for scheduling - * the emissions of the notifications. - * @return {Observable} An Observable of numbers that emits a finite range of - * sequential integers. - */ -export function range(start: number, count?: number, scheduler?: SchedulerLike): Observable { - if (count == null) { - // If one argument was passed, it's the count, not the start. - count = start; - start = 0; - } - - if (count <= 0) { - // No count? We're going nowhere. Return EMPTY. - return EMPTY; - } - - // Where the range should stop. - const end = count + start; - - return new Observable( - scheduler - ? // The deprecated scheduled path. - (subscriber) => { - let n = start; - return scheduler.schedule(function () { - if (n < end) { - subscriber.next(n++); - this.schedule(); - } else { - subscriber.complete(); - } - }); - } - : // Standard synchronous range. - (subscriber) => { - let n = start; - while (n < end && !subscriber.closed) { - subscriber.next(n++); - } - subscriber.complete(); - } - ); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/throwError.ts b/WechatBot/node_modules/rxjs/src/internal/observable/throwError.ts deleted file mode 100644 index a307f5ad9..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/throwError.ts +++ /dev/null @@ -1,125 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscriber } from '../Subscriber'; -import { SchedulerLike } from '../types'; -import { isFunction } from '../util/isFunction'; - -/** - * Creates an observable that will create an error instance and push it to the consumer as an error - * immediately upon subscription. - * - * Just errors and does nothing else - * - * ![](throw.png) - * - * This creation function is useful for creating an observable that will create an error and error every - * time it is subscribed to. Generally, inside of most operators when you might want to return an errored - * observable, this is unnecessary. In most cases, such as in the inner return of {@link concatMap}, - * {@link mergeMap}, {@link defer}, and many others, you can simply throw the error, and RxJS will pick - * that up and notify the consumer of the error. - * - * ## Example - * - * Create a simple observable that will create a new error with a timestamp and log it - * and the message every time you subscribe to it - * - * ```ts - * import { throwError } from 'rxjs'; - * - * let errorCount = 0; - * - * const errorWithTimestamp$ = throwError(() => { - * const error: any = new Error(`This is error number ${ ++errorCount }`); - * error.timestamp = Date.now(); - * return error; - * }); - * - * errorWithTimestamp$.subscribe({ - * error: err => console.log(err.timestamp, err.message) - * }); - * - * errorWithTimestamp$.subscribe({ - * error: err => console.log(err.timestamp, err.message) - * }); - * - * // Logs the timestamp and a new error message for each subscription - * ``` - * - * ### Unnecessary usage - * - * Using `throwError` inside of an operator or creation function - * with a callback, is usually not necessary - * - * ```ts - * import { of, concatMap, timer, throwError } from 'rxjs'; - * - * const delays$ = of(1000, 2000, Infinity, 3000); - * - * delays$.pipe( - * concatMap(ms => { - * if (ms < 10000) { - * return timer(ms); - * } else { - * // This is probably overkill. - * return throwError(() => new Error(`Invalid time ${ ms }`)); - * } - * }) - * ) - * .subscribe({ - * next: console.log, - * error: console.error - * }); - * ``` - * - * You can just throw the error instead - * - * ```ts - * import { of, concatMap, timer } from 'rxjs'; - * - * const delays$ = of(1000, 2000, Infinity, 3000); - * - * delays$.pipe( - * concatMap(ms => { - * if (ms < 10000) { - * return timer(ms); - * } else { - * // Cleaner and easier to read for most folks. - * throw new Error(`Invalid time ${ ms }`); - * } - * }) - * ) - * .subscribe({ - * next: console.log, - * error: console.error - * }); - * ``` - * - * @param errorFactory A factory function that will create the error instance that is pushed. - */ -export function throwError(errorFactory: () => any): Observable; - -/** - * Returns an observable that will error with the specified error immediately upon subscription. - * - * @param error The error instance to emit - * @deprecated Support for passing an error value will be removed in v8. Instead, pass a factory function to `throwError(() => new Error('test'))`. This is - * because it will create the error at the moment it should be created and capture a more appropriate stack trace. If - * for some reason you need to create the error ahead of time, you can still do that: `const err = new Error('test'); throwError(() => err);`. - */ -export function throwError(error: any): Observable; - -/** - * Notifies the consumer of an error using a given scheduler by scheduling it at delay `0` upon subscription. - * - * @param errorOrErrorFactory An error instance or error factory - * @param scheduler A scheduler to use to schedule the error notification - * @deprecated The `scheduler` parameter will be removed in v8. - * Use `throwError` in combination with {@link observeOn}: `throwError(() => new Error('test')).pipe(observeOn(scheduler));`. - * Details: https://rxjs.dev/deprecations/scheduler-argument - */ -export function throwError(errorOrErrorFactory: any, scheduler: SchedulerLike): Observable; - -export function throwError(errorOrErrorFactory: any, scheduler?: SchedulerLike): Observable { - const errorFactory = isFunction(errorOrErrorFactory) ? errorOrErrorFactory : () => errorOrErrorFactory; - const init = (subscriber: Subscriber) => subscriber.error(errorFactory()); - return new Observable(scheduler ? (subscriber) => scheduler.schedule(init as any, 0, subscriber) : init); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/timer.ts b/WechatBot/node_modules/rxjs/src/internal/observable/timer.ts deleted file mode 100644 index dcc274581..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/timer.ts +++ /dev/null @@ -1,186 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -import { async as asyncScheduler } from '../scheduler/async'; -import { isScheduler } from '../util/isScheduler'; -import { isValidDate } from '../util/isDate'; - -/** - * Creates an observable that will wait for a specified time period, or exact date, before - * emitting the number 0. - * - * Used to emit a notification after a delay. - * - * This observable is useful for creating delays in code, or racing against other values - * for ad-hoc timeouts. - * - * The `delay` is specified by default in milliseconds, however providing a custom scheduler could - * create a different behavior. - * - * ## Examples - * - * Wait 3 seconds and start another observable - * - * You might want to use `timer` to delay subscription to an - * observable by a set amount of time. Here we use a timer with - * {@link concatMapTo} or {@link concatMap} in order to wait - * a few seconds and start a subscription to a source. - * - * ```ts - * import { of, timer, concatMap } from 'rxjs'; - * - * // This could be any observable - * const source = of(1, 2, 3); - * - * timer(3000) - * .pipe(concatMap(() => source)) - * .subscribe(console.log); - * ``` - * - * Take all values until the start of the next minute - * - * Using a `Date` as the trigger for the first emission, you can - * do things like wait until midnight to fire an event, or in this case, - * wait until a new minute starts (chosen so the example wouldn't take - * too long to run) in order to stop watching a stream. Leveraging - * {@link takeUntil}. - * - * ```ts - * import { interval, takeUntil, timer } from 'rxjs'; - * - * // Build a Date object that marks the - * // next minute. - * const currentDate = new Date(); - * const startOfNextMinute = new Date( - * currentDate.getFullYear(), - * currentDate.getMonth(), - * currentDate.getDate(), - * currentDate.getHours(), - * currentDate.getMinutes() + 1 - * ); - * - * // This could be any observable stream - * const source = interval(1000); - * - * const result = source.pipe( - * takeUntil(timer(startOfNextMinute)) - * ); - * - * result.subscribe(console.log); - * ``` - * - * ### Known Limitations - * - * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled. - * - * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and - * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission - * should occur will be incorrect. In this case, it would be best to do your own calculations - * ahead of time, and pass a `number` in as the `dueTime`. - * - * @param due If a `number`, the amount of time in milliseconds to wait before emitting. - * If a `Date`, the exact time at which to emit. - * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}. - */ -export function timer(due: number | Date, scheduler?: SchedulerLike): Observable<0>; - -/** - * Creates an observable that starts an interval after a specified delay, emitting incrementing numbers -- starting at `0` -- - * on each interval after words. - * - * The `delay` and `intervalDuration` are specified by default in milliseconds, however providing a custom scheduler could - * create a different behavior. - * - * ## Example - * - * ### Start an interval that starts right away - * - * Since {@link interval} waits for the passed delay before starting, - * sometimes that's not ideal. You may want to start an interval immediately. - * `timer` works well for this. Here we have both side-by-side so you can - * see them in comparison. - * - * Note that this observable will never complete. - * - * ```ts - * import { timer, interval } from 'rxjs'; - * - * timer(0, 1000).subscribe(n => console.log('timer', n)); - * interval(1000).subscribe(n => console.log('interval', n)); - * ``` - * - * ### Known Limitations - * - * - The {@link asyncScheduler} uses `setTimeout` which has limitations for how far in the future it can be scheduled. - * - * - If a `scheduler` is provided that returns a timestamp other than an epoch from `now()`, and - * a `Date` object is passed to the `dueTime` argument, the calculation for when the first emission - * should occur will be incorrect. In this case, it would be best to do your own calculations - * ahead of time, and pass a `number` in as the `startDue`. - * @param startDue If a `number`, is the time to wait before starting the interval. - * If a `Date`, is the exact time at which to start the interval. - * @param intervalDuration The delay between each value emitted in the interval. Passing a - * negative number here will result in immediate completion after the first value is emitted, as though - * no `intervalDuration` was passed at all. - * @param scheduler The scheduler to use to schedule the delay. Defaults to {@link asyncScheduler}. - */ -export function timer(startDue: number | Date, intervalDuration: number, scheduler?: SchedulerLike): Observable; - -/** - * @deprecated The signature allowing `undefined` to be passed for `intervalDuration` will be removed in v8. Use the `timer(dueTime, scheduler?)` signature instead. - */ -export function timer(dueTime: number | Date, unused: undefined, scheduler?: SchedulerLike): Observable<0>; - -export function timer( - dueTime: number | Date = 0, - intervalOrScheduler?: number | SchedulerLike, - scheduler: SchedulerLike = asyncScheduler -): Observable { - // Since negative intervalDuration is treated as though no - // interval was specified at all, we start with a negative number. - let intervalDuration = -1; - - if (intervalOrScheduler != null) { - // If we have a second argument, and it's a scheduler, - // override the scheduler we had defaulted. Otherwise, - // it must be an interval. - if (isScheduler(intervalOrScheduler)) { - scheduler = intervalOrScheduler; - } else { - // Note that this *could* be negative, in which case - // it's like not passing an intervalDuration at all. - intervalDuration = intervalOrScheduler; - } - } - - return new Observable((subscriber) => { - // If a valid date is passed, calculate how long to wait before - // executing the first value... otherwise, if it's a number just schedule - // that many milliseconds (or scheduler-specified unit size) in the future. - let due = isValidDate(dueTime) ? +dueTime - scheduler!.now() : dueTime; - - if (due < 0) { - // Ensure we don't schedule in the future. - due = 0; - } - - // The incrementing value we emit. - let n = 0; - - // Start the timer. - return scheduler.schedule(function () { - if (!subscriber.closed) { - // Emit the next value and increment. - subscriber.next(n++); - - if (0 <= intervalDuration) { - // If we have a interval after the initial timer, - // reschedule with the period. - this.schedule(undefined, intervalDuration); - } else { - // We didn't have an interval. So just complete. - subscriber.complete(); - } - } - }, due); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/using.ts b/WechatBot/node_modules/rxjs/src/internal/observable/using.ts deleted file mode 100644 index 437fed9c4..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/using.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { Observable } from '../Observable'; -import { Unsubscribable, ObservableInput, ObservedValueOf } from '../types'; -import { innerFrom } from './innerFrom'; -import { EMPTY } from './empty'; - -/** - * Creates an Observable that uses a resource which will be disposed at the same time as the Observable. - * - * Use it when you catch yourself cleaning up after an Observable. - * - * `using` is a factory operator, which accepts two functions. First function returns a disposable resource. - * It can be an arbitrary object that implements `unsubscribe` method. Second function will be injected with - * that object and should return an Observable. That Observable can use resource object during its execution. - * Both functions passed to `using` will be called every time someone subscribes - neither an Observable nor - * resource object will be shared in any way between subscriptions. - * - * When Observable returned by `using` is subscribed, Observable returned from the second function will be subscribed - * as well. All its notifications (nexted values, completion and error events) will be emitted unchanged by the output - * Observable. If however someone unsubscribes from the Observable or source Observable completes or errors by itself, - * the `unsubscribe` method on resource object will be called. This can be used to do any necessary clean up, which - * otherwise would have to be handled by hand. Note that complete or error notifications are not emitted when someone - * cancels subscription to an Observable via `unsubscribe`, so `using` can be used as a hook, allowing you to make - * sure that all resources which need to exist during an Observable execution will be disposed at appropriate time. - * - * @see {@link defer} - * - * @param {function(): ISubscription} resourceFactory A function which creates any resource object - * that implements `unsubscribe` method. - * @param {function(resource: ISubscription): Observable} observableFactory A function which - * creates an Observable, that can use injected resource object. - * @return {Observable} An Observable that behaves the same as Observable returned by `observableFactory`, but - * which - when completed, errored or unsubscribed - will also call `unsubscribe` on created resource object. - */ -export function using>( - resourceFactory: () => Unsubscribable | void, - observableFactory: (resource: Unsubscribable | void) => T | void -): Observable> { - return new Observable>((subscriber) => { - const resource = resourceFactory(); - const result = observableFactory(resource); - const source = result ? innerFrom(result) : EMPTY; - source.subscribe(subscriber); - return () => { - // NOTE: Optional chaining did not work here. - // Related TS Issue: https://github.com/microsoft/TypeScript/issues/40818 - if (resource) { - resource.unsubscribe(); - } - }; - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/observable/zip.ts b/WechatBot/node_modules/rxjs/src/internal/observable/zip.ts deleted file mode 100644 index e7c584980..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/observable/zip.ts +++ /dev/null @@ -1,115 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInputTuple } from '../types'; -import { innerFrom } from './innerFrom'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { EMPTY } from './empty'; -import { createOperatorSubscriber } from '../operators/OperatorSubscriber'; -import { popResultSelector } from '../util/args'; - -export function zip(sources: [...ObservableInputTuple]): Observable; -export function zip( - sources: [...ObservableInputTuple], - resultSelector: (...values: A) => R -): Observable; -export function zip(...sources: [...ObservableInputTuple]): Observable; -export function zip( - ...sourcesAndResultSelector: [...ObservableInputTuple, (...values: A) => R] -): Observable; - -/** - * Combines multiple Observables to create an Observable whose values are calculated from the values, in order, of each - * of its input Observables. - * - * If the last parameter is a function, this function is used to compute the created value from the input values. - * Otherwise, an array of the input values is returned. - * - * ## Example - * - * Combine age and name from different sources - * - * ```ts - * import { of, zip, map } from 'rxjs'; - * - * const age$ = of(27, 25, 29); - * const name$ = of('Foo', 'Bar', 'Beer'); - * const isDev$ = of(true, true, false); - * - * zip(age$, name$, isDev$).pipe( - * map(([age, name, isDev]) => ({ age, name, isDev })) - * ) - * .subscribe(x => console.log(x)); - * - * // Outputs - * // { age: 27, name: 'Foo', isDev: true } - * // { age: 25, name: 'Bar', isDev: true } - * // { age: 29, name: 'Beer', isDev: false } - * ``` - * - * @param sources - * @return {Observable} - */ -export function zip(...args: unknown[]): Observable { - const resultSelector = popResultSelector(args); - - const sources = argsOrArgArray(args) as Observable[]; - - return sources.length - ? new Observable((subscriber) => { - // A collection of buffers of values from each source. - // Keyed by the same index with which the sources were passed in. - let buffers: unknown[][] = sources.map(() => []); - - // An array of flags of whether or not the sources have completed. - // This is used to check to see if we should complete the result. - // Keyed by the same index with which the sources were passed in. - let completed = sources.map(() => false); - - // When everything is done, release the arrays above. - subscriber.add(() => { - buffers = completed = null!; - }); - - // Loop over our sources and subscribe to each one. The index `i` is - // especially important here, because we use it in closures below to - // access the related buffers and completion properties - for (let sourceIndex = 0; !subscriber.closed && sourceIndex < sources.length; sourceIndex++) { - innerFrom(sources[sourceIndex]).subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - buffers[sourceIndex].push(value); - // if every buffer has at least one value in it, then we - // can shift out the oldest value from each buffer and emit - // them as an array. - if (buffers.every((buffer) => buffer.length)) { - const result: any = buffers.map((buffer) => buffer.shift()!); - // Emit the array. If theres' a result selector, use that. - subscriber.next(resultSelector ? resultSelector(...result) : result); - // If any one of the sources is both complete and has an empty buffer - // then we complete the result. This is because we cannot possibly have - // any more values to zip together. - if (buffers.some((buffer, i) => !buffer.length && completed[i])) { - subscriber.complete(); - } - } - }, - () => { - // This source completed. Mark it as complete so we can check it later - // if we have to. - completed[sourceIndex] = true; - // But, if this complete source has nothing in its buffer, then we - // can complete the result, because we can't possibly have any more - // values from this to zip together with the other values. - !buffers[sourceIndex].length && subscriber.complete(); - } - ) - ); - } - - // When everything is done, release the arrays above. - return () => { - buffers = completed = null!; - }; - }) - : EMPTY; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts b/WechatBot/node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts deleted file mode 100644 index 593b937bd..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/OperatorSubscriber.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { Subscriber } from '../Subscriber'; - -/** - * Creates an instance of an `OperatorSubscriber`. - * @param destination The downstream subscriber. - * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any - * error that occurs in this function is caught and sent to the `error` method of this subscriber. - * @param onError Handles errors from the subscription, any errors that occur in this handler are caught - * and send to the `destination` error handler. - * @param onComplete Handles completion notification from the subscription. Any errors that occur in - * this handler are sent to the `destination` error handler. - * @param onFinalize Additional teardown logic here. This will only be called on teardown if the - * subscriber itself is not already closed. This is called after all other teardown logic is executed. - */ -export function createOperatorSubscriber( - destination: Subscriber, - onNext?: (value: T) => void, - onComplete?: () => void, - onError?: (err: any) => void, - onFinalize?: () => void -): Subscriber { - return new OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize); -} - -/** - * A generic helper for allowing operators to be created with a Subscriber and - * use closures to capture necessary state from the operator function itself. - */ -export class OperatorSubscriber extends Subscriber { - /** - * Creates an instance of an `OperatorSubscriber`. - * @param destination The downstream subscriber. - * @param onNext Handles next values, only called if this subscriber is not stopped or closed. Any - * error that occurs in this function is caught and sent to the `error` method of this subscriber. - * @param onError Handles errors from the subscription, any errors that occur in this handler are caught - * and send to the `destination` error handler. - * @param onComplete Handles completion notification from the subscription. Any errors that occur in - * this handler are sent to the `destination` error handler. - * @param onFinalize Additional finalization logic here. This will only be called on finalization if the - * subscriber itself is not already closed. This is called after all other finalization logic is executed. - * @param shouldUnsubscribe An optional check to see if an unsubscribe call should truly unsubscribe. - * NOTE: This currently **ONLY** exists to support the strange behavior of {@link groupBy}, where unsubscription - * to the resulting observable does not actually disconnect from the source if there are active subscriptions - * to any grouped observable. (DO NOT EXPOSE OR USE EXTERNALLY!!!) - */ - constructor( - destination: Subscriber, - onNext?: (value: T) => void, - onComplete?: () => void, - onError?: (err: any) => void, - private onFinalize?: () => void, - private shouldUnsubscribe?: () => boolean - ) { - // It's important - for performance reasons - that all of this class's - // members are initialized and that they are always initialized in the same - // order. This will ensure that all OperatorSubscriber instances have the - // same hidden class in V8. This, in turn, will help keep the number of - // hidden classes involved in property accesses within the base class as - // low as possible. If the number of hidden classes involved exceeds four, - // the property accesses will become megamorphic and performance penalties - // will be incurred - i.e. inline caches won't be used. - // - // The reasons for ensuring all instances have the same hidden class are - // further discussed in this blog post from Benedikt Meurer: - // https://benediktmeurer.de/2018/03/23/impact-of-polymorphism-on-component-based-frameworks-like-react/ - super(destination); - this._next = onNext - ? function (this: OperatorSubscriber, value: T) { - try { - onNext(value); - } catch (err) { - destination.error(err); - } - } - : super._next; - this._error = onError - ? function (this: OperatorSubscriber, err: any) { - try { - onError(err); - } catch (err) { - // Send any errors that occur down stream. - destination.error(err); - } finally { - // Ensure finalization. - this.unsubscribe(); - } - } - : super._error; - this._complete = onComplete - ? function (this: OperatorSubscriber) { - try { - onComplete(); - } catch (err) { - // Send any errors that occur down stream. - destination.error(err); - } finally { - // Ensure finalization. - this.unsubscribe(); - } - } - : super._complete; - } - - unsubscribe() { - if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) { - const { closed } = this; - super.unsubscribe(); - // Execute additional teardown if we have any and we didn't already do so. - !closed && this.onFinalize?.(); - } - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/audit.ts b/WechatBot/node_modules/rxjs/src/internal/operators/audit.ts deleted file mode 100644 index da1380086..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/audit.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { Subscriber } from '../Subscriber'; -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; - -import { operate } from '../util/lift'; -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Ignores source values for a duration determined by another Observable, then - * emits the most recent value from the source Observable, then repeats this - * process. - * - * It's like {@link auditTime}, but the silencing - * duration is determined by a second Observable. - * - * ![](audit.svg) - * - * `audit` is similar to `throttle`, but emits the last value from the silenced - * time window, instead of the first value. `audit` emits the most recent value - * from the source Observable on the output Observable as soon as its internal - * timer becomes disabled, and ignores source values while the timer is enabled. - * Initially, the timer is disabled. As soon as the first source value arrives, - * the timer is enabled by calling the `durationSelector` function with the - * source value, which returns the "duration" Observable. When the duration - * Observable emits a value, the timer is disabled, then the most - * recent source value is emitted on the output Observable, and this process - * repeats for the next source value. - * - * ## Example - * - * Emit clicks at a rate of at most one click per second - * - * ```ts - * import { fromEvent, audit, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(audit(ev => interval(1000))); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link auditTime} - * @see {@link debounce} - * @see {@link delayWhen} - * @see {@link sample} - * @see {@link throttle} - * - * @param durationSelector A function - * that receives a value from the source Observable, for computing the silencing - * duration, returned as an Observable or a Promise. - * @return A function that returns an Observable that performs rate-limiting of - * emissions from the source Observable. - */ -export function audit(durationSelector: (value: T) => ObservableInput): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let hasValue = false; - let lastValue: T | null = null; - let durationSubscriber: Subscriber | null = null; - let isComplete = false; - - const endDuration = () => { - durationSubscriber?.unsubscribe(); - durationSubscriber = null; - if (hasValue) { - hasValue = false; - const value = lastValue!; - lastValue = null; - subscriber.next(value); - } - isComplete && subscriber.complete(); - }; - - const cleanupDuration = () => { - durationSubscriber = null; - isComplete && subscriber.complete(); - }; - - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - hasValue = true; - lastValue = value; - if (!durationSubscriber) { - innerFrom(durationSelector(value)).subscribe( - (durationSubscriber = createOperatorSubscriber(subscriber, endDuration, cleanupDuration)) - ); - } - }, - () => { - isComplete = true; - (!hasValue || !durationSubscriber || durationSubscriber.closed) && subscriber.complete(); - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/auditTime.ts b/WechatBot/node_modules/rxjs/src/internal/operators/auditTime.ts deleted file mode 100644 index af83889db..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/auditTime.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { audit } from './audit'; -import { timer } from '../observable/timer'; -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; - -/** - * Ignores source values for `duration` milliseconds, then emits the most recent - * value from the source Observable, then repeats this process. - * - * When it sees a source value, it ignores that plus - * the next ones for `duration` milliseconds, and then it emits the most recent - * value from the source. - * - * ![](auditTime.png) - * - * `auditTime` is similar to `throttleTime`, but emits the last value from the - * silenced time window, instead of the first value. `auditTime` emits the most - * recent value from the source Observable on the output Observable as soon as - * its internal timer becomes disabled, and ignores source values while the - * timer is enabled. Initially, the timer is disabled. As soon as the first - * source value arrives, the timer is enabled. After `duration` milliseconds (or - * the time unit determined internally by the optional `scheduler`) has passed, - * the timer is disabled, then the most recent source value is emitted on the - * output Observable, and this process repeats for the next source value. - * Optionally takes a {@link SchedulerLike} for managing timers. - * - * ## Example - * - * Emit clicks at a rate of at most one click per second - * - * ```ts - * import { fromEvent, auditTime } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(auditTime(1000)); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link audit} - * @see {@link debounceTime} - * @see {@link delay} - * @see {@link sampleTime} - * @see {@link throttleTime} - * - * @param {number} duration Time to wait before emitting the most recent source - * value, measured in milliseconds or the time unit determined internally - * by the optional `scheduler`. - * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for - * managing the timers that handle the rate-limiting behavior. - * @return A function that returns an Observable that performs rate-limiting of - * emissions from the source Observable. - */ -export function auditTime(duration: number, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction { - return audit(() => timer(duration, scheduler)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/buffer.ts b/WechatBot/node_modules/rxjs/src/internal/operators/buffer.ts deleted file mode 100644 index 2ca2fdecd..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/buffer.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { OperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; - -/** - * Buffers the source Observable values until `closingNotifier` emits. - * - * Collects values from the past as an array, and emits - * that array only when another Observable emits. - * - * ![](buffer.png) - * - * Buffers the incoming Observable values until the given `closingNotifier` - * `ObservableInput` (that internally gets converted to an Observable) - * emits a value, at which point it emits the buffer on the output - * Observable and starts a new buffer internally, awaiting the next time - * `closingNotifier` emits. - * - * ## Example - * - * On every click, emit array of most recent interval events - * - * ```ts - * import { fromEvent, interval, buffer } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const intervalEvents = interval(1000); - * const buffered = intervalEvents.pipe(buffer(clicks)); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * @see {@link bufferCount} - * @see {@link bufferTime} - * @see {@link bufferToggle} - * @see {@link bufferWhen} - * @see {@link window} - * - * @param closingNotifier An `ObservableInput` that signals the - * buffer to be emitted on the output Observable. - * @return A function that returns an Observable of buffers, which are arrays - * of values. - */ -export function buffer(closingNotifier: ObservableInput): OperatorFunction { - return operate((source, subscriber) => { - // The current buffered values. - let currentBuffer: T[] = []; - - // Subscribe to our source. - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => currentBuffer.push(value), - () => { - subscriber.next(currentBuffer); - subscriber.complete(); - } - ) - ); - - // Subscribe to the closing notifier. - innerFrom(closingNotifier).subscribe( - createOperatorSubscriber( - subscriber, - () => { - // Start a new buffer and emit the previous one. - const b = currentBuffer; - currentBuffer = []; - subscriber.next(b); - }, - noop - ) - ); - - return () => { - // Ensure buffered values are released on finalization. - currentBuffer = null!; - }; - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/bufferCount.ts b/WechatBot/node_modules/rxjs/src/internal/operators/bufferCount.ts deleted file mode 100644 index 4983fec87..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/bufferCount.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { arrRemove } from '../util/arrRemove'; - -/** - * Buffers the source Observable values until the size hits the maximum - * `bufferSize` given. - * - * Collects values from the past as an array, and emits - * that array only when its size reaches `bufferSize`. - * - * ![](bufferCount.png) - * - * Buffers a number of values from the source Observable by `bufferSize` then - * emits the buffer and clears it, and starts a new buffer each - * `startBufferEvery` values. If `startBufferEvery` is not provided or is - * `null`, then new buffers are started immediately at the start of the source - * and when each buffer closes and is emitted. - * - * ## Examples - * - * Emit the last two click events as an array - * - * ```ts - * import { fromEvent, bufferCount } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const buffered = clicks.pipe(bufferCount(2)); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * On every click, emit the last two click events as an array - * - * ```ts - * import { fromEvent, bufferCount } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const buffered = clicks.pipe(bufferCount(2, 1)); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * @see {@link buffer} - * @see {@link bufferTime} - * @see {@link bufferToggle} - * @see {@link bufferWhen} - * @see {@link pairwise} - * @see {@link windowCount} - * - * @param {number} bufferSize The maximum size of the buffer emitted. - * @param {number} [startBufferEvery] Interval at which to start a new buffer. - * For example if `startBufferEvery` is `2`, then a new buffer will be started - * on every other value from the source. A new buffer is started at the - * beginning of the source by default. - * @return A function that returns an Observable of arrays of buffered values. - */ -export function bufferCount(bufferSize: number, startBufferEvery: number | null = null): OperatorFunction { - // If no `startBufferEvery` value was supplied, then we're - // opening and closing on the bufferSize itself. - startBufferEvery = startBufferEvery ?? bufferSize; - - return operate((source, subscriber) => { - let buffers: T[][] = []; - let count = 0; - - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - let toEmit: T[][] | null = null; - - // Check to see if we need to start a buffer. - // This will start one at the first value, and then - // a new one every N after that. - if (count++ % startBufferEvery! === 0) { - buffers.push([]); - } - - // Push our value into our active buffers. - for (const buffer of buffers) { - buffer.push(value); - // Check to see if we're over the bufferSize - // if we are, record it so we can emit it later. - // If we emitted it now and removed it, it would - // mutate the `buffers` array while we're looping - // over it. - if (bufferSize <= buffer.length) { - toEmit = toEmit ?? []; - toEmit.push(buffer); - } - } - - if (toEmit) { - // We have found some buffers that are over the - // `bufferSize`. Emit them, and remove them from our - // buffers list. - for (const buffer of toEmit) { - arrRemove(buffers, buffer); - subscriber.next(buffer); - } - } - }, - () => { - // When the source completes, emit all of our - // active buffers. - for (const buffer of buffers) { - subscriber.next(buffer); - } - subscriber.complete(); - }, - // Pass all errors through to consumer. - undefined, - () => { - // Clean up our memory when we finalize - buffers = null!; - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/bufferTime.ts b/WechatBot/node_modules/rxjs/src/internal/operators/bufferTime.ts deleted file mode 100644 index 3e547b732..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/bufferTime.ts +++ /dev/null @@ -1,168 +0,0 @@ -import { Subscription } from '../Subscription'; -import { OperatorFunction, SchedulerLike } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { arrRemove } from '../util/arrRemove'; -import { asyncScheduler } from '../scheduler/async'; -import { popScheduler } from '../util/args'; -import { executeSchedule } from '../util/executeSchedule'; - -/* tslint:disable:max-line-length */ -export function bufferTime(bufferTimeSpan: number, scheduler?: SchedulerLike): OperatorFunction; -export function bufferTime( - bufferTimeSpan: number, - bufferCreationInterval: number | null | undefined, - scheduler?: SchedulerLike -): OperatorFunction; -export function bufferTime( - bufferTimeSpan: number, - bufferCreationInterval: number | null | undefined, - maxBufferSize: number, - scheduler?: SchedulerLike -): OperatorFunction; -/* tslint:enable:max-line-length */ - -/** - * Buffers the source Observable values for a specific time period. - * - * Collects values from the past as an array, and emits - * those arrays periodically in time. - * - * ![](bufferTime.png) - * - * Buffers values from the source for a specific time duration `bufferTimeSpan`. - * Unless the optional argument `bufferCreationInterval` is given, it emits and - * resets the buffer every `bufferTimeSpan` milliseconds. If - * `bufferCreationInterval` is given, this operator opens the buffer every - * `bufferCreationInterval` milliseconds and closes (emits and resets) the - * buffer every `bufferTimeSpan` milliseconds. When the optional argument - * `maxBufferSize` is specified, the buffer will be closed either after - * `bufferTimeSpan` milliseconds or when it contains `maxBufferSize` elements. - * - * ## Examples - * - * Every second, emit an array of the recent click events - * - * ```ts - * import { fromEvent, bufferTime } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const buffered = clicks.pipe(bufferTime(1000)); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * Every 5 seconds, emit the click events from the next 2 seconds - * - * ```ts - * import { fromEvent, bufferTime } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const buffered = clicks.pipe(bufferTime(2000, 5000)); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * @see {@link buffer} - * @see {@link bufferCount} - * @see {@link bufferToggle} - * @see {@link bufferWhen} - * @see {@link windowTime} - * - * @param {number} bufferTimeSpan The amount of time to fill each buffer array. - * @param {number} [bufferCreationInterval] The interval at which to start new - * buffers. - * @param {number} [maxBufferSize] The maximum buffer size. - * @param {SchedulerLike} [scheduler=async] The scheduler on which to schedule the - * intervals that determine buffer boundaries. - * @return A function that returns an Observable of arrays of buffered values. - */ -export function bufferTime(bufferTimeSpan: number, ...otherArgs: any[]): OperatorFunction { - const scheduler = popScheduler(otherArgs) ?? asyncScheduler; - const bufferCreationInterval = (otherArgs[0] as number) ?? null; - const maxBufferSize = (otherArgs[1] as number) || Infinity; - - return operate((source, subscriber) => { - // The active buffers, their related subscriptions, and removal functions. - let bufferRecords: { buffer: T[]; subs: Subscription }[] | null = []; - // If true, it means that every time we emit a buffer, we want to start a new buffer - // this is only really used for when *just* the buffer time span is passed. - let restartOnEmit = false; - - /** - * Does the work of emitting the buffer from the record, ensuring that the - * record is removed before the emission so reentrant code (from some custom scheduling, perhaps) - * does not alter the buffer. Also checks to see if a new buffer needs to be started - * after the emit. - */ - const emit = (record: { buffer: T[]; subs: Subscription }) => { - const { buffer, subs } = record; - subs.unsubscribe(); - arrRemove(bufferRecords, record); - subscriber.next(buffer); - restartOnEmit && startBuffer(); - }; - - /** - * Called every time we start a new buffer. This does - * the work of scheduling a job at the requested bufferTimeSpan - * that will emit the buffer (if it's not unsubscribed before then). - */ - const startBuffer = () => { - if (bufferRecords) { - const subs = new Subscription(); - subscriber.add(subs); - const buffer: T[] = []; - const record = { - buffer, - subs, - }; - bufferRecords.push(record); - executeSchedule(subs, scheduler, () => emit(record), bufferTimeSpan); - } - }; - - if (bufferCreationInterval !== null && bufferCreationInterval >= 0) { - // The user passed both a bufferTimeSpan (required), and a creation interval - // That means we need to start new buffers on the interval, and those buffers need - // to wait the required time span before emitting. - executeSchedule(subscriber, scheduler, startBuffer, bufferCreationInterval, true); - } else { - restartOnEmit = true; - } - - startBuffer(); - - const bufferTimeSubscriber = createOperatorSubscriber( - subscriber, - (value: T) => { - // Copy the records, so if we need to remove one we - // don't mutate the array. It's hard, but not impossible to - // set up a buffer time that could mutate the array and - // cause issues here. - const recordsCopy = bufferRecords!.slice(); - for (const record of recordsCopy) { - // Loop over all buffers and - const { buffer } = record; - buffer.push(value); - // If the buffer is over the max size, we need to emit it. - maxBufferSize <= buffer.length && emit(record); - } - }, - () => { - // The source completed, emit all of the active - // buffers we have before we complete. - while (bufferRecords?.length) { - subscriber.next(bufferRecords.shift()!.buffer); - } - bufferTimeSubscriber?.unsubscribe(); - subscriber.complete(); - subscriber.unsubscribe(); - }, - // Pass all errors through to consumer. - undefined, - // Clean up - () => (bufferRecords = null) - ); - - source.subscribe(bufferTimeSubscriber); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/bufferToggle.ts b/WechatBot/node_modules/rxjs/src/internal/operators/bufferToggle.ts deleted file mode 100644 index fabefbc53..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/bufferToggle.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { Subscription } from '../Subscription'; -import { OperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { arrRemove } from '../util/arrRemove'; - -/** - * Buffers the source Observable values starting from an emission from - * `openings` and ending when the output of `closingSelector` emits. - * - * Collects values from the past as an array. Starts - * collecting only when `opening` emits, and calls the `closingSelector` - * function to get an Observable that tells when to close the buffer. - * - * ![](bufferToggle.png) - * - * Buffers values from the source by opening the buffer via signals from an - * Observable provided to `openings`, and closing and sending the buffers when - * a Subscribable or Promise returned by the `closingSelector` function emits. - * - * ## Example - * - * Every other second, emit the click events from the next 500ms - * - * ```ts - * import { fromEvent, interval, bufferToggle, EMPTY } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const openings = interval(1000); - * const buffered = clicks.pipe(bufferToggle(openings, i => - * i % 2 ? interval(500) : EMPTY - * )); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * @see {@link buffer} - * @see {@link bufferCount} - * @see {@link bufferTime} - * @see {@link bufferWhen} - * @see {@link windowToggle} - * - * @param openings A Subscribable or Promise of notifications to start new - * buffers. - * @param closingSelector A function that takes - * the value emitted by the `openings` observable and returns a Subscribable or Promise, - * which, when it emits, signals that the associated buffer should be emitted - * and cleared. - * @return A function that returns an Observable of arrays of buffered values. - */ -export function bufferToggle( - openings: ObservableInput, - closingSelector: (value: O) => ObservableInput -): OperatorFunction { - return operate((source, subscriber) => { - const buffers: T[][] = []; - - // Subscribe to the openings notifier first - innerFrom(openings).subscribe( - createOperatorSubscriber( - subscriber, - (openValue) => { - const buffer: T[] = []; - buffers.push(buffer); - // We use this composite subscription, so that - // when the closing notifier emits, we can tear it down. - const closingSubscription = new Subscription(); - - const emitBuffer = () => { - arrRemove(buffers, buffer); - subscriber.next(buffer); - closingSubscription.unsubscribe(); - }; - - // The line below will add the subscription to the parent subscriber *and* the closing subscription. - closingSubscription.add(innerFrom(closingSelector(openValue)).subscribe(createOperatorSubscriber(subscriber, emitBuffer, noop))); - }, - noop - ) - ); - - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - // Value from our source. Add it to all pending buffers. - for (const buffer of buffers) { - buffer.push(value); - } - }, - () => { - // Source complete. Emit all pending buffers. - while (buffers.length > 0) { - subscriber.next(buffers.shift()!); - } - subscriber.complete(); - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/bufferWhen.ts b/WechatBot/node_modules/rxjs/src/internal/operators/bufferWhen.ts deleted file mode 100644 index 00e8c1354..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/bufferWhen.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { Subscriber } from '../Subscriber'; -import { ObservableInput, OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; - -/** - * Buffers the source Observable values, using a factory function of closing - * Observables to determine when to close, emit, and reset the buffer. - * - * Collects values from the past as an array. When it - * starts collecting values, it calls a function that returns an Observable that - * tells when to close the buffer and restart collecting. - * - * ![](bufferWhen.svg) - * - * Opens a buffer immediately, then closes the buffer when the observable - * returned by calling `closingSelector` function emits a value. When it closes - * the buffer, it immediately opens a new buffer and repeats the process. - * - * ## Example - * - * Emit an array of the last clicks every [1-5] random seconds - * - * ```ts - * import { fromEvent, bufferWhen, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const buffered = clicks.pipe( - * bufferWhen(() => interval(1000 + Math.random() * 4000)) - * ); - * buffered.subscribe(x => console.log(x)); - * ``` - * - * @see {@link buffer} - * @see {@link bufferCount} - * @see {@link bufferTime} - * @see {@link bufferToggle} - * @see {@link windowWhen} - * - * @param {function(): Observable} closingSelector A function that takes no - * arguments and returns an Observable that signals buffer closure. - * @return A function that returns an Observable of arrays of buffered values. - */ -export function bufferWhen(closingSelector: () => ObservableInput): OperatorFunction { - return operate((source, subscriber) => { - // The buffer we keep and emit. - let buffer: T[] | null = null; - // A reference to the subscriber used to subscribe to - // the closing notifier. We need to hold this so we can - // end the subscription after the first notification. - let closingSubscriber: Subscriber | null = null; - - // Ends the previous closing notifier subscription, so it - // terminates after the first emission, then emits - // the current buffer if there is one, starts a new buffer, and starts a - // new closing notifier. - const openBuffer = () => { - // Make sure to finalize the closing subscription, we only cared - // about one notification. - closingSubscriber?.unsubscribe(); - // emit the buffer if we have one, and start a new buffer. - const b = buffer; - buffer = []; - b && subscriber.next(b); - - // Get a new closing notifier and subscribe to it. - innerFrom(closingSelector()).subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openBuffer, noop))); - }; - - // Start the first buffer. - openBuffer(); - - // Subscribe to our source. - source.subscribe( - createOperatorSubscriber( - subscriber, - // Add every new value to the current buffer. - (value) => buffer?.push(value), - // When we complete, emit the buffer if we have one, - // then complete the result. - () => { - buffer && subscriber.next(buffer); - subscriber.complete(); - }, - // Pass all errors through to consumer. - undefined, - // Release memory on finalization - () => (buffer = closingSubscriber = null!) - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/catchError.ts b/WechatBot/node_modules/rxjs/src/internal/operators/catchError.ts deleted file mode 100644 index 39eeb98ac..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/catchError.ts +++ /dev/null @@ -1,141 +0,0 @@ -import { Observable } from '../Observable'; - -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -import { Subscription } from '../Subscription'; -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { operate } from '../util/lift'; - -/* tslint:disable:max-line-length */ -export function catchError>( - selector: (err: any, caught: Observable) => O -): OperatorFunction>; -/* tslint:enable:max-line-length */ - -/** - * Catches errors on the observable to be handled by returning a new observable or throwing an error. - * - * - * It only listens to the error channel and ignores notifications. - * Handles errors from the source observable, and maps them to a new observable. - * The error may also be rethrown, or a new error can be thrown to emit an error from the result. - * - * - * ![](catch.png) - * - * This operator handles errors, but forwards along all other events to the resulting observable. - * If the source observable terminates with an error, it will map that error to a new observable, - * subscribe to it, and forward all of its events to the resulting observable. - * - * ## Examples - * - * Continue with a different Observable when there's an error - * - * ```ts - * import { of, map, catchError } from 'rxjs'; - * - * of(1, 2, 3, 4, 5) - * .pipe( - * map(n => { - * if (n === 4) { - * throw 'four!'; - * } - * return n; - * }), - * catchError(err => of('I', 'II', 'III', 'IV', 'V')) - * ) - * .subscribe(x => console.log(x)); - * // 1, 2, 3, I, II, III, IV, V - * ``` - * - * Retry the caught source Observable again in case of error, similar to `retry()` operator - * - * ```ts - * import { of, map, catchError, take } from 'rxjs'; - * - * of(1, 2, 3, 4, 5) - * .pipe( - * map(n => { - * if (n === 4) { - * throw 'four!'; - * } - * return n; - * }), - * catchError((err, caught) => caught), - * take(30) - * ) - * .subscribe(x => console.log(x)); - * // 1, 2, 3, 1, 2, 3, ... - * ``` - * - * Throw a new error when the source Observable throws an error - * - * ```ts - * import { of, map, catchError } from 'rxjs'; - * - * of(1, 2, 3, 4, 5) - * .pipe( - * map(n => { - * if (n === 4) { - * throw 'four!'; - * } - * return n; - * }), - * catchError(err => { - * throw 'error in source. Details: ' + err; - * }) - * ) - * .subscribe({ - * next: x => console.log(x), - * error: err => console.log(err) - * }); - * // 1, 2, 3, error in source. Details: four! - * ``` - * - * @see {@link onErrorResumeNext} - * @see {@link repeat} - * @see {@link repeatWhen} - * @see {@link retry } - * @see {@link retryWhen} - * - * @param {function} selector a function that takes as arguments `err`, which is the error, and `caught`, which - * is the source observable, in case you'd like to "retry" that observable by returning it again. Whatever observable - * is returned by the `selector` will be used to continue the observable chain. - * @return A function that returns an Observable that originates from either - * the source or the Observable returned by the `selector` function. - */ -export function catchError>( - selector: (err: any, caught: Observable) => O -): OperatorFunction> { - return operate((source, subscriber) => { - let innerSub: Subscription | null = null; - let syncUnsub = false; - let handledResult: Observable>; - - innerSub = source.subscribe( - createOperatorSubscriber(subscriber, undefined, undefined, (err) => { - handledResult = innerFrom(selector(err, catchError(selector)(source))); - if (innerSub) { - innerSub.unsubscribe(); - innerSub = null; - handledResult.subscribe(subscriber); - } else { - // We don't have an innerSub yet, that means the error was synchronous - // because the subscribe call hasn't returned yet. - syncUnsub = true; - } - }) - ); - - if (syncUnsub) { - // We have a synchronous error, we need to make sure to - // finalize right away. This ensures that callbacks in the `finalize` operator are called - // at the right time, and that finalization occurs at the expected - // time between the source error and the subscription to the - // next observable. - innerSub.unsubscribe(); - innerSub = null; - handledResult!.subscribe(subscriber); - } - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/combineAll.ts b/WechatBot/node_modules/rxjs/src/internal/operators/combineAll.ts deleted file mode 100644 index c24157e08..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/combineAll.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { combineLatestAll } from './combineLatestAll'; - -/** - * @deprecated Renamed to {@link combineLatestAll}. Will be removed in v8. - */ -export const combineAll = combineLatestAll; diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/combineLatest.ts b/WechatBot/node_modules/rxjs/src/internal/operators/combineLatest.ts deleted file mode 100644 index 3f0f3a637..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/combineLatest.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { combineLatestInit } from '../observable/combineLatest'; -import { ObservableInput, ObservableInputTuple, OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { pipe } from '../util/pipe'; -import { popResultSelector } from '../util/args'; - -/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */ -export function combineLatest( - sources: [...ObservableInputTuple], - project: (...values: [T, ...A]) => R -): OperatorFunction; -/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */ -export function combineLatest(sources: [...ObservableInputTuple]): OperatorFunction; - -/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */ -export function combineLatest( - ...sourcesAndProject: [...ObservableInputTuple, (...values: [T, ...A]) => R] -): OperatorFunction; -/** @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. */ -export function combineLatest(...sources: [...ObservableInputTuple]): OperatorFunction; - -/** - * @deprecated Replaced with {@link combineLatestWith}. Will be removed in v8. - */ -export function combineLatest(...args: (ObservableInput | ((...values: any[]) => R))[]): OperatorFunction { - const resultSelector = popResultSelector(args); - return resultSelector - ? pipe(combineLatest(...(args as Array>)), mapOneOrManyArgs(resultSelector)) - : operate((source, subscriber) => { - combineLatestInit([source, ...argsOrArgArray(args)])(subscriber); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/combineLatestAll.ts b/WechatBot/node_modules/rxjs/src/internal/operators/combineLatestAll.ts deleted file mode 100644 index 434f6216d..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/combineLatestAll.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { combineLatest } from '../observable/combineLatest'; -import { OperatorFunction, ObservableInput } from '../types'; -import { joinAllInternals } from './joinAllInternals'; - -export function combineLatestAll(): OperatorFunction, T[]>; -export function combineLatestAll(): OperatorFunction; -export function combineLatestAll(project: (...values: T[]) => R): OperatorFunction, R>; -export function combineLatestAll(project: (...values: Array) => R): OperatorFunction; - -/** - * Flattens an Observable-of-Observables by applying {@link combineLatest} when the Observable-of-Observables completes. - * - * `combineLatestAll` takes an Observable of Observables, and collects all Observables from it. Once the outer Observable completes, - * it subscribes to all collected Observables and combines their values using the {@link combineLatest} strategy, such that: - * - * * Every time an inner Observable emits, the output Observable emits - * * When the returned observable emits, it emits all of the latest values by: - * * If a `project` function is provided, it is called with each recent value from each inner Observable in whatever order they - * arrived, and the result of the `project` function is what is emitted by the output Observable. - * * If there is no `project` function, an array of all the most recent values is emitted by the output Observable. - * - * ## Example - * - * Map two click events to a finite interval Observable, then apply `combineLatestAll` - * - * ```ts - * import { fromEvent, map, interval, take, combineLatestAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const higherOrder = clicks.pipe( - * map(() => interval(Math.random() * 2000).pipe(take(3))), - * take(2) - * ); - * const result = higherOrder.pipe(combineLatestAll()); - * - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link combineLatest} - * @see {@link combineLatestWith} - * @see {@link mergeAll} - * - * @param project optional function to map the most recent values from each inner Observable into a new result. - * Takes each of the most recent values from each collected inner Observable as arguments, in order. - * @return A function that returns an Observable that flattens Observables - * emitted by the source Observable. - */ -export function combineLatestAll(project?: (...values: Array) => R) { - return joinAllInternals(combineLatest, project); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/combineLatestWith.ts b/WechatBot/node_modules/rxjs/src/internal/operators/combineLatestWith.ts deleted file mode 100644 index b262f890b..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/combineLatestWith.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { ObservableInputTuple, OperatorFunction, Cons } from '../types'; -import { combineLatest } from './combineLatest'; - -/** - * Create an observable that combines the latest values from all passed observables and the source - * into arrays and emits them. - * - * Returns an observable, that when subscribed to, will subscribe to the source observable and all - * sources provided as arguments. Once all sources emit at least one value, all of the latest values - * will be emitted as an array. After that, every time any source emits a value, all of the latest values - * will be emitted as an array. - * - * This is a useful operator for eagerly calculating values based off of changed inputs. - * - * ## Example - * - * Simple concatenation of values from two inputs - * - * ```ts - * import { fromEvent, combineLatestWith, map } from 'rxjs'; - * - * // Setup: Add two inputs to the page - * const input1 = document.createElement('input'); - * document.body.appendChild(input1); - * const input2 = document.createElement('input'); - * document.body.appendChild(input2); - * - * // Get streams of changes - * const input1Changes$ = fromEvent(input1, 'change'); - * const input2Changes$ = fromEvent(input2, 'change'); - * - * // Combine the changes by adding them together - * input1Changes$.pipe( - * combineLatestWith(input2Changes$), - * map(([e1, e2]) => (e1.target).value + ' - ' + (e2.target).value) - * ) - * .subscribe(x => console.log(x)); - * ``` - * - * @param otherSources the other sources to subscribe to. - * @return A function that returns an Observable that emits the latest - * emissions from both source and provided Observables. - */ -export function combineLatestWith( - ...otherSources: [...ObservableInputTuple] -): OperatorFunction> { - return combineLatest(...otherSources); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/concat.ts b/WechatBot/node_modules/rxjs/src/internal/operators/concat.ts deleted file mode 100644 index eadb59583..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/concat.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { ObservableInputTuple, OperatorFunction, SchedulerLike } from '../types'; -import { operate } from '../util/lift'; -import { concatAll } from './concatAll'; -import { popScheduler } from '../util/args'; -import { from } from '../observable/from'; - -/** @deprecated Replaced with {@link concatWith}. Will be removed in v8. */ -export function concat(...sources: [...ObservableInputTuple]): OperatorFunction; -/** @deprecated Replaced with {@link concatWith}. Will be removed in v8. */ -export function concat( - ...sourcesAndScheduler: [...ObservableInputTuple, SchedulerLike] -): OperatorFunction; - -/** - * @deprecated Replaced with {@link concatWith}. Will be removed in v8. - */ -export function concat(...args: any[]): OperatorFunction { - const scheduler = popScheduler(args); - return operate((source, subscriber) => { - concatAll()(from([source, ...args], scheduler)).subscribe(subscriber); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/concatAll.ts b/WechatBot/node_modules/rxjs/src/internal/operators/concatAll.ts deleted file mode 100644 index 05be4fc9c..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/concatAll.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { mergeAll } from './mergeAll'; -import { OperatorFunction, ObservableInput, ObservedValueOf } from '../types'; - -/** - * Converts a higher-order Observable into a first-order Observable by - * concatenating the inner Observables in order. - * - * Flattens an Observable-of-Observables by putting one - * inner Observable after the other. - * - * ![](concatAll.svg) - * - * Joins every Observable emitted by the source (a higher-order Observable), in - * a serial fashion. It subscribes to each inner Observable only after the - * previous inner Observable has completed, and merges all of their values into - * the returned observable. - * - * __Warning:__ If the source Observable emits Observables quickly and - * endlessly, and the inner Observables it emits generally complete slower than - * the source emits, you can run into memory issues as the incoming Observables - * collect in an unbounded buffer. - * - * Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set - * to `1`. - * - * ## Example - * - * For each click event, tick every second from 0 to 3, with no concurrency - * - * ```ts - * import { fromEvent, map, interval, take, concatAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const higherOrder = clicks.pipe( - * map(() => interval(1000).pipe(take(4))) - * ); - * const firstOrder = higherOrder.pipe(concatAll()); - * firstOrder.subscribe(x => console.log(x)); - * - * // Results in the following: - * // (results are not concurrent) - * // For every click on the "document" it will emit values 0 to 3 spaced - * // on a 1000ms interval - * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 - * ``` - * - * @see {@link combineLatestAll} - * @see {@link concat} - * @see {@link concatMap} - * @see {@link concatMapTo} - * @see {@link exhaustAll} - * @see {@link mergeAll} - * @see {@link switchAll} - * @see {@link switchMap} - * @see {@link zipAll} - * - * @return A function that returns an Observable emitting values from all the - * inner Observables concatenated. - */ -export function concatAll>(): OperatorFunction> { - return mergeAll(1); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/concatMap.ts b/WechatBot/node_modules/rxjs/src/internal/operators/concatMap.ts deleted file mode 100644 index 21bbf4243..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/concatMap.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { mergeMap } from './mergeMap'; -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -import { isFunction } from '../util/isFunction'; - -/* tslint:disable:max-line-length */ -export function concatMap>( - project: (value: T, index: number) => O -): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function concatMap>( - project: (value: T, index: number) => O, - resultSelector: undefined -): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function concatMap>( - project: (value: T, index: number) => O, - resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R -): OperatorFunction; -/* tslint:enable:max-line-length */ - -/** - * Projects each source value to an Observable which is merged in the output - * Observable, in a serialized fashion waiting for each one to complete before - * merging the next. - * - * Maps each value to an Observable, then flattens all of - * these inner Observables using {@link concatAll}. - * - * ![](concatMap.png) - * - * Returns an Observable that emits items based on applying a function that you - * supply to each item emitted by the source Observable, where that function - * returns an (so-called "inner") Observable. Each new inner Observable is - * concatenated with the previous inner Observable. - * - * __Warning:__ if source values arrive endlessly and faster than their - * corresponding inner Observables can complete, it will result in memory issues - * as inner Observables amass in an unbounded buffer waiting for their turn to - * be subscribed to. - * - * Note: `concatMap` is equivalent to `mergeMap` with concurrency parameter set - * to `1`. - * - * ## Example - * - * For each click event, tick every second from 0 to 3, with no concurrency - * - * ```ts - * import { fromEvent, concatMap, interval, take } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * concatMap(ev => interval(1000).pipe(take(4))) - * ); - * result.subscribe(x => console.log(x)); - * - * // Results in the following: - * // (results are not concurrent) - * // For every click on the "document" it will emit values 0 to 3 spaced - * // on a 1000ms interval - * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 - * ``` - * - * @see {@link concat} - * @see {@link concatAll} - * @see {@link concatMapTo} - * @see {@link exhaustMap} - * @see {@link mergeMap} - * @see {@link switchMap} - * - * @param {function(value: T, ?index: number): ObservableInput} project A function - * that, when applied to an item emitted by the source Observable, returns an - * Observable. - * @return A function that returns an Observable that emits the result of - * applying the projection function (and the optional deprecated - * `resultSelector`) to each item emitted by the source Observable and taking - * values from each projected inner Observable sequentially. - */ -export function concatMap>( - project: (value: T, index: number) => O, - resultSelector?: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R -): OperatorFunction | R> { - return isFunction(resultSelector) ? mergeMap(project, resultSelector, 1) : mergeMap(project, 1); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/concatMapTo.ts b/WechatBot/node_modules/rxjs/src/internal/operators/concatMapTo.ts deleted file mode 100644 index 00798c67c..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/concatMapTo.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { concatMap } from './concatMap'; -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -import { isFunction } from '../util/isFunction'; - -/** @deprecated Will be removed in v9. Use {@link concatMap} instead: `concatMap(() => result)` */ -export function concatMapTo>(observable: O): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function concatMapTo>( - observable: O, - resultSelector: undefined -): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function concatMapTo>( - observable: O, - resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R -): OperatorFunction; - -/** - * Projects each source value to the same Observable which is merged multiple - * times in a serialized fashion on the output Observable. - * - * It's like {@link concatMap}, but maps each value - * always to the same inner Observable. - * - * ![](concatMapTo.png) - * - * Maps each source value to the given Observable `innerObservable` regardless - * of the source value, and then flattens those resulting Observables into one - * single Observable, which is the output Observable. Each new `innerObservable` - * instance emitted on the output Observable is concatenated with the previous - * `innerObservable` instance. - * - * __Warning:__ if source values arrive endlessly and faster than their - * corresponding inner Observables can complete, it will result in memory issues - * as inner Observables amass in an unbounded buffer waiting for their turn to - * be subscribed to. - * - * Note: `concatMapTo` is equivalent to `mergeMapTo` with concurrency parameter - * set to `1`. - * - * ## Example - * - * For each click event, tick every second from 0 to 3, with no concurrency - * - * ```ts - * import { fromEvent, concatMapTo, interval, take } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * concatMapTo(interval(1000).pipe(take(4))) - * ); - * result.subscribe(x => console.log(x)); - * - * // Results in the following: - * // (results are not concurrent) - * // For every click on the "document" it will emit values 0 to 3 spaced - * // on a 1000ms interval - * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 - * ``` - * - * @see {@link concat} - * @see {@link concatAll} - * @see {@link concatMap} - * @see {@link mergeMapTo} - * @see {@link switchMapTo} - * - * @param {ObservableInput} innerObservable An Observable to replace each value from - * the source Observable. - * @return A function that returns an Observable of values merged together by - * joining the passed Observable with itself, one after the other, for each - * value emitted from the source. - * @deprecated Will be removed in v9. Use {@link concatMap} instead: `concatMap(() => result)` - */ -export function concatMapTo>( - innerObservable: O, - resultSelector?: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R -): OperatorFunction | R> { - return isFunction(resultSelector) ? concatMap(() => innerObservable, resultSelector) : concatMap(() => innerObservable); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/concatWith.ts b/WechatBot/node_modules/rxjs/src/internal/operators/concatWith.ts deleted file mode 100644 index b836b29e2..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/concatWith.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { ObservableInputTuple, OperatorFunction } from '../types'; -import { concat } from './concat'; - -/** - * Emits all of the values from the source observable, then, once it completes, subscribes - * to each observable source provided, one at a time, emitting all of their values, and not subscribing - * to the next one until it completes. - * - * `concat(a$, b$, c$)` is the same as `a$.pipe(concatWith(b$, c$))`. - * - * ## Example - * - * Listen for one mouse click, then listen for all mouse moves. - * - * ```ts - * import { fromEvent, map, take, concatWith } from 'rxjs'; - * - * const clicks$ = fromEvent(document, 'click'); - * const moves$ = fromEvent(document, 'mousemove'); - * - * clicks$.pipe( - * map(() => 'click'), - * take(1), - * concatWith( - * moves$.pipe( - * map(() => 'move') - * ) - * ) - * ) - * .subscribe(x => console.log(x)); - * - * // 'click' - * // 'move' - * // 'move' - * // 'move' - * // ... - * ``` - * - * @param otherSources Other observable sources to subscribe to, in sequence, after the original source is complete. - * @return A function that returns an Observable that concatenates - * subscriptions to the source and provided Observables subscribing to the next - * only once the current subscription completes. - */ -export function concatWith( - ...otherSources: [...ObservableInputTuple] -): OperatorFunction { - return concat(...otherSources); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/connect.ts b/WechatBot/node_modules/rxjs/src/internal/operators/connect.ts deleted file mode 100644 index 4a6b3c4c2..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/connect.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { OperatorFunction, ObservableInput, ObservedValueOf, SubjectLike } from '../types'; -import { Observable } from '../Observable'; -import { Subject } from '../Subject'; -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { fromSubscribable } from '../observable/fromSubscribable'; - -/** - * An object used to configure {@link connect} operator. - */ -export interface ConnectConfig { - /** - * A factory function used to create the Subject through which the source - * is multicast. By default, this creates a {@link Subject}. - */ - connector: () => SubjectLike; -} - -/** - * The default configuration for `connect`. - */ -const DEFAULT_CONFIG: ConnectConfig = { - connector: () => new Subject(), -}; - -/** - * Creates an observable by multicasting the source within a function that - * allows the developer to define the usage of the multicast prior to connection. - * - * This is particularly useful if the observable source you wish to multicast could - * be synchronous or asynchronous. This sets it apart from {@link share}, which, in the - * case of totally synchronous sources will fail to share a single subscription with - * multiple consumers, as by the time the subscription to the result of {@link share} - * has returned, if the source is synchronous its internal reference count will jump from - * 0 to 1 back to 0 and reset. - * - * To use `connect`, you provide a `selector` function that will give you - * a multicast observable that is not yet connected. You then use that multicast observable - * to create a resulting observable that, when subscribed, will set up your multicast. This is - * generally, but not always, accomplished with {@link merge}. - * - * Note that using a {@link takeUntil} inside of `connect`'s `selector` _might_ mean you were looking - * to use the {@link takeWhile} operator instead. - * - * When you subscribe to the result of `connect`, the `selector` function will be called. After - * the `selector` function returns, the observable it returns will be subscribed to, _then_ the - * multicast will be connected to the source. - * - * ## Example - * - * Sharing a totally synchronous observable - * - * ```ts - * import { of, tap, connect, merge, map, filter } from 'rxjs'; - * - * const source$ = of(1, 2, 3, 4, 5).pipe( - * tap({ - * subscribe: () => console.log('subscription started'), - * next: n => console.log(`source emitted ${ n }`) - * }) - * ); - * - * source$.pipe( - * // Notice in here we're merging 3 subscriptions to `shared$`. - * connect(shared$ => merge( - * shared$.pipe(map(n => `all ${ n }`)), - * shared$.pipe(filter(n => n % 2 === 0), map(n => `even ${ n }`)), - * shared$.pipe(filter(n => n % 2 === 1), map(n => `odd ${ n }`)) - * )) - * ) - * .subscribe(console.log); - * - * // Expected output: (notice only one subscription) - * 'subscription started' - * 'source emitted 1' - * 'all 1' - * 'odd 1' - * 'source emitted 2' - * 'all 2' - * 'even 2' - * 'source emitted 3' - * 'all 3' - * 'odd 3' - * 'source emitted 4' - * 'all 4' - * 'even 4' - * 'source emitted 5' - * 'all 5' - * 'odd 5' - * ``` - * - * @param selector A function used to set up the multicast. Gives you a multicast observable - * that is not yet connected. With that, you're expected to create and return - * and Observable, that when subscribed to, will utilize the multicast observable. - * After this function is executed -- and its return value subscribed to -- the - * operator will subscribe to the source, and the connection will be made. - * @param config The configuration object for `connect`. - */ -export function connect>( - selector: (shared: Observable) => O, - config: ConnectConfig = DEFAULT_CONFIG -): OperatorFunction> { - const { connector } = config; - return operate((source, subscriber) => { - const subject = connector(); - innerFrom(selector(fromSubscribable(subject))).subscribe(subscriber); - subscriber.add(source.subscribe(subject)); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/count.ts b/WechatBot/node_modules/rxjs/src/internal/operators/count.ts deleted file mode 100644 index 8b764f833..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/count.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { OperatorFunction } from '../types'; -import { reduce } from './reduce'; - -/** - * Counts the number of emissions on the source and emits that number when the - * source completes. - * - * Tells how many values were emitted, when the source - * completes. - * - * ![](count.png) - * - * `count` transforms an Observable that emits values into an Observable that - * emits a single value that represents the number of values emitted by the - * source Observable. If the source Observable terminates with an error, `count` - * will pass this error notification along without emitting a value first. If - * the source Observable does not terminate at all, `count` will neither emit - * a value nor terminate. This operator takes an optional `predicate` function - * as argument, in which case the output emission will represent the number of - * source values that matched `true` with the `predicate`. - * - * ## Examples - * - * Counts how many seconds have passed before the first click happened - * - * ```ts - * import { interval, fromEvent, takeUntil, count } from 'rxjs'; - * - * const seconds = interval(1000); - * const clicks = fromEvent(document, 'click'); - * const secondsBeforeClick = seconds.pipe(takeUntil(clicks)); - * const result = secondsBeforeClick.pipe(count()); - * result.subscribe(x => console.log(x)); - * ``` - * - * Counts how many odd numbers are there between 1 and 7 - * - * ```ts - * import { range, count } from 'rxjs'; - * - * const numbers = range(1, 7); - * const result = numbers.pipe(count(i => i % 2 === 1)); - * result.subscribe(x => console.log(x)); - * // Results in: - * // 4 - * ``` - * - * @see {@link max} - * @see {@link min} - * @see {@link reduce} - * - * @param predicate A function that is used to analyze the value and the index and - * determine whether or not to increment the count. Return `true` to increment the count, - * and return `false` to keep the count the same. - * If the predicate is not provided, every value will be counted. - * @return A function that returns an Observable that emits one number that - * represents the count of emissions. - */ -export function count(predicate?: (value: T, index: number) => boolean): OperatorFunction { - return reduce((total, value, i) => (!predicate || predicate(value, i) ? total + 1 : total), 0); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/debounce.ts b/WechatBot/node_modules/rxjs/src/internal/operators/debounce.ts deleted file mode 100644 index b64485552..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/debounce.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { Subscriber } from '../Subscriber'; -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; - -/** - * Emits a notification from the source Observable only after a particular time span - * determined by another Observable has passed without another source emission. - * - * It's like {@link debounceTime}, but the time span of - * emission silence is determined by a second Observable. - * - * ![](debounce.svg) - * - * `debounce` delays notifications emitted by the source Observable, but drops previous - * pending delayed emissions if a new notification arrives on the source Observable. - * This operator keeps track of the most recent notification from the source - * Observable, and spawns a duration Observable by calling the - * `durationSelector` function. The notification is emitted only when the duration - * Observable emits a next notification, and if no other notification was emitted on - * the source Observable since the duration Observable was spawned. If a new - * notification appears before the duration Observable emits, the previous notification will - * not be emitted and a new duration is scheduled from `durationSelector` is scheduled. - * If the completing event happens during the scheduled duration the last cached notification - * is emitted before the completion event is forwarded to the output observable. - * If the error event happens during the scheduled duration or after it only the error event is - * forwarded to the output observable. The cache notification is not emitted in this case. - * - * Like {@link debounceTime}, this is a rate-limiting operator, and also a - * delay-like operator since output emissions do not necessarily occur at the - * same time as they did on the source Observable. - * - * ## Example - * - * Emit the most recent click after a burst of clicks - * - * ```ts - * import { fromEvent, scan, debounce, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * scan(i => ++i, 1), - * debounce(i => interval(200 * i)) - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link audit} - * @see {@link auditTime} - * @see {@link debounceTime} - * @see {@link delay} - * @see {@link sample} - * @see {@link sampleTime} - * @see {@link throttle} - * @see {@link throttleTime} - * - * @param durationSelector A function - * that receives a value from the source Observable, for computing the timeout - * duration for each source value, returned as an Observable or a Promise. - * @return A function that returns an Observable that delays the emissions of - * the source Observable by the specified duration Observable returned by - * `durationSelector`, and may drop some values if they occur too frequently. - */ -export function debounce(durationSelector: (value: T) => ObservableInput): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let hasValue = false; - let lastValue: T | null = null; - // The subscriber/subscription for the current debounce, if there is one. - let durationSubscriber: Subscriber | null = null; - - const emit = () => { - // Unsubscribe any current debounce subscription we have, - // we only cared about the first notification from it, and we - // want to clean that subscription up as soon as possible. - durationSubscriber?.unsubscribe(); - durationSubscriber = null; - if (hasValue) { - // We have a value! Free up memory first, then emit the value. - hasValue = false; - const value = lastValue!; - lastValue = null; - subscriber.next(value); - } - }; - - source.subscribe( - createOperatorSubscriber( - subscriber, - (value: T) => { - // Cancel any pending debounce duration. We don't - // need to null it out here yet tho, because we're just going - // to create another one in a few lines. - durationSubscriber?.unsubscribe(); - hasValue = true; - lastValue = value; - // Capture our duration subscriber, so we can unsubscribe it when we're notified - // and we're going to emit the value. - durationSubscriber = createOperatorSubscriber(subscriber, emit, noop); - // Subscribe to the duration. - innerFrom(durationSelector(value)).subscribe(durationSubscriber); - }, - () => { - // Source completed. - // Emit any pending debounced values then complete - emit(); - subscriber.complete(); - }, - // Pass all errors through to consumer - undefined, - () => { - // Finalization. - lastValue = durationSubscriber = null; - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/debounceTime.ts b/WechatBot/node_modules/rxjs/src/internal/operators/debounceTime.ts deleted file mode 100644 index 1bbbe4dbc..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/debounceTime.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { Subscription } from '../Subscription'; -import { MonoTypeOperatorFunction, SchedulerAction, SchedulerLike } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Emits a notification from the source Observable only after a particular time span - * has passed without another source emission. - * - * It's like {@link delay}, but passes only the most - * recent notification from each burst of emissions. - * - * ![](debounceTime.png) - * - * `debounceTime` delays notifications emitted by the source Observable, but drops - * previous pending delayed emissions if a new notification arrives on the source - * Observable. This operator keeps track of the most recent notification from the - * source Observable, and emits that only when `dueTime` has passed - * without any other notification appearing on the source Observable. If a new value - * appears before `dueTime` silence occurs, the previous notification will be dropped - * and will not be emitted and a new `dueTime` is scheduled. - * If the completing event happens during `dueTime` the last cached notification - * is emitted before the completion event is forwarded to the output observable. - * If the error event happens during `dueTime` or after it only the error event is - * forwarded to the output observable. The cache notification is not emitted in this case. - * - * This is a rate-limiting operator, because it is impossible for more than one - * notification to be emitted in any time window of duration `dueTime`, but it is also - * a delay-like operator since output emissions do not occur at the same time as - * they did on the source Observable. Optionally takes a {@link SchedulerLike} for - * managing timers. - * - * ## Example - * - * Emit the most recent click after a burst of clicks - * - * ```ts - * import { fromEvent, debounceTime } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(debounceTime(1000)); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link audit} - * @see {@link auditTime} - * @see {@link debounce} - * @see {@link sample} - * @see {@link sampleTime} - * @see {@link throttle} - * @see {@link throttleTime} - * - * @param {number} dueTime The timeout duration in milliseconds (or the time - * unit determined internally by the optional `scheduler`) for the window of - * time required to wait for emission silence before emitting the most recent - * source value. - * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for - * managing the timers that handle the timeout for each value. - * @return A function that returns an Observable that delays the emissions of - * the source Observable by the specified `dueTime`, and may drop some values - * if they occur too frequently. - */ -export function debounceTime(dueTime: number, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let activeTask: Subscription | null = null; - let lastValue: T | null = null; - let lastTime: number | null = null; - - const emit = () => { - if (activeTask) { - // We have a value! Free up memory first, then emit the value. - activeTask.unsubscribe(); - activeTask = null; - const value = lastValue!; - lastValue = null; - subscriber.next(value); - } - }; - function emitWhenIdle(this: SchedulerAction) { - // This is called `dueTime` after the first value - // but we might have received new values during this window! - - const targetTime = lastTime! + dueTime; - const now = scheduler.now(); - if (now < targetTime) { - // On that case, re-schedule to the new target - activeTask = this.schedule(undefined, targetTime - now); - subscriber.add(activeTask); - return; - } - - emit(); - } - - source.subscribe( - createOperatorSubscriber( - subscriber, - (value: T) => { - lastValue = value; - lastTime = scheduler.now(); - - // Only set up a task if it's not already up - if (!activeTask) { - activeTask = scheduler.schedule(emitWhenIdle, dueTime); - subscriber.add(activeTask); - } - }, - () => { - // Source completed. - // Emit any pending debounced values then complete - emit(); - subscriber.complete(); - }, - // Pass all errors through to consumer. - undefined, - () => { - // Finalization. - lastValue = activeTask = null; - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts b/WechatBot/node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts deleted file mode 100644 index 9e0d277e2..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/defaultIfEmpty.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Emits a given value if the source Observable completes without emitting any - * `next` value, otherwise mirrors the source Observable. - * - * If the source Observable turns out to be empty, then - * this operator will emit a default value. - * - * ![](defaultIfEmpty.png) - * - * `defaultIfEmpty` emits the values emitted by the source Observable or a - * specified default value if the source Observable is empty (completes without - * having emitted any `next` value). - * - * ## Example - * - * If no clicks happen in 5 seconds, then emit 'no clicks' - * - * ```ts - * import { fromEvent, takeUntil, interval, defaultIfEmpty } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const clicksBeforeFive = clicks.pipe(takeUntil(interval(5000))); - * const result = clicksBeforeFive.pipe(defaultIfEmpty('no clicks')); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link empty} - * @see {@link last} - * - * @param defaultValue The default value used if the source - * Observable is empty. - * @return A function that returns an Observable that emits either the - * specified `defaultValue` if the source Observable emits no items, or the - * values emitted by the source Observable. - */ -export function defaultIfEmpty(defaultValue: R): OperatorFunction { - return operate((source, subscriber) => { - let hasValue = false; - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - hasValue = true; - subscriber.next(value); - }, - () => { - if (!hasValue) { - subscriber.next(defaultValue!); - } - subscriber.complete(); - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/delay.ts b/WechatBot/node_modules/rxjs/src/internal/operators/delay.ts deleted file mode 100644 index 64dd894b2..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/delay.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -import { delayWhen } from './delayWhen'; -import { timer } from '../observable/timer'; - -/** - * Delays the emission of items from the source Observable by a given timeout or - * until a given Date. - * - * Time shifts each item by some specified amount of - * milliseconds. - * - * ![](delay.svg) - * - * If the delay argument is a Number, this operator time shifts the source - * Observable by that amount of time expressed in milliseconds. The relative - * time intervals between the values are preserved. - * - * If the delay argument is a Date, this operator time shifts the start of the - * Observable execution until the given date occurs. - * - * ## Examples - * - * Delay each click by one second - * - * ```ts - * import { fromEvent, delay } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const delayedClicks = clicks.pipe(delay(1000)); // each click emitted after 1 second - * delayedClicks.subscribe(x => console.log(x)); - * ``` - * - * Delay all clicks until a future date happens - * - * ```ts - * import { fromEvent, delay } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const date = new Date('March 15, 2050 12:00:00'); // in the future - * const delayedClicks = clicks.pipe(delay(date)); // click emitted only after that date - * delayedClicks.subscribe(x => console.log(x)); - * ``` - * - * @see {@link delayWhen} - * @see {@link throttle} - * @see {@link throttleTime} - * @see {@link debounce} - * @see {@link debounceTime} - * @see {@link sample} - * @see {@link sampleTime} - * @see {@link audit} - * @see {@link auditTime} - * - * @param {number|Date} due The delay duration in milliseconds (a `number`) or - * a `Date` until which the emission of the source items is delayed. - * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for - * managing the timers that handle the time-shift for each item. - * @return A function that returns an Observable that delays the emissions of - * the source Observable by the specified timeout or Date. - */ -export function delay(due: number | Date, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction { - const duration = timer(due, scheduler); - return delayWhen(() => duration); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/delayWhen.ts b/WechatBot/node_modules/rxjs/src/internal/operators/delayWhen.ts deleted file mode 100644 index 0755507be..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/delayWhen.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { Observable } from '../Observable'; -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -import { concat } from '../observable/concat'; -import { take } from './take'; -import { ignoreElements } from './ignoreElements'; -import { mapTo } from './mapTo'; -import { mergeMap } from './mergeMap'; -import { innerFrom } from '../observable/innerFrom'; - -/** @deprecated The `subscriptionDelay` parameter will be removed in v8. */ -export function delayWhen( - delayDurationSelector: (value: T, index: number) => ObservableInput, - subscriptionDelay: Observable -): MonoTypeOperatorFunction; -export function delayWhen(delayDurationSelector: (value: T, index: number) => ObservableInput): MonoTypeOperatorFunction; - -/** - * Delays the emission of items from the source Observable by a given time span - * determined by the emissions of another Observable. - * - * It's like {@link delay}, but the time span of the - * delay duration is determined by a second Observable. - * - * ![](delayWhen.png) - * - * `delayWhen` operator shifts each emitted value from the source Observable by - * a time span determined by another Observable. When the source emits a value, - * the `delayDurationSelector` function is called with the value emitted from - * the source Observable as the first argument to the `delayDurationSelector`. - * The `delayDurationSelector` function should return an {@link ObservableInput}, - * that is internally converted to an Observable that is called the "duration" - * Observable. - * - * The source value is emitted on the output Observable only when the "duration" - * Observable emits ({@link guide/glossary-and-semantics#next next}s) any value. - * Upon that, the "duration" Observable gets unsubscribed. - * - * Before RxJS V7, the {@link guide/glossary-and-semantics#complete completion} - * of the "duration" Observable would have been triggering the emission of the - * source value to the output Observable, but with RxJS V7, this is not the case - * anymore. - * - * Only next notifications (from the "duration" Observable) trigger values from - * the source Observable to be passed to the output Observable. If the "duration" - * Observable only emits the complete notification (without next), the value - * emitted by the source Observable will never get to the output Observable - it - * will be swallowed. If the "duration" Observable errors, the error will be - * propagated to the output Observable. - * - * Optionally, `delayWhen` takes a second argument, `subscriptionDelay`, which - * is an Observable. When `subscriptionDelay` emits its first value or - * completes, the source Observable is subscribed to and starts behaving like - * described in the previous paragraph. If `subscriptionDelay` is not provided, - * `delayWhen` will subscribe to the source Observable as soon as the output - * Observable is subscribed. - * - * ## Example - * - * Delay each click by a random amount of time, between 0 and 5 seconds - * - * ```ts - * import { fromEvent, delayWhen, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const delayedClicks = clicks.pipe( - * delayWhen(() => interval(Math.random() * 5000)) - * ); - * delayedClicks.subscribe(x => console.log(x)); - * ``` - * - * @see {@link delay} - * @see {@link throttle} - * @see {@link throttleTime} - * @see {@link debounce} - * @see {@link debounceTime} - * @see {@link sample} - * @see {@link sampleTime} - * @see {@link audit} - * @see {@link auditTime} - * - * @param delayDurationSelector A function that returns an `ObservableInput` for - * each `value` emitted by the source Observable, which is then used to delay the - * emission of that `value` on the output Observable until the `ObservableInput` - * returned from this function emits a next value. When called, beside `value`, - * this function receives a zero-based `index` of the emission order. - * @param subscriptionDelay An Observable that triggers the subscription to the - * source Observable once it emits any value. - * @return A function that returns an Observable that delays the emissions of - * the source Observable by an amount of time specified by the Observable - * returned by `delayDurationSelector`. - */ -export function delayWhen( - delayDurationSelector: (value: T, index: number) => ObservableInput, - subscriptionDelay?: Observable -): MonoTypeOperatorFunction { - if (subscriptionDelay) { - // DEPRECATED PATH - return (source: Observable) => - concat(subscriptionDelay.pipe(take(1), ignoreElements()), source.pipe(delayWhen(delayDurationSelector))); - } - - return mergeMap((value, index) => innerFrom(delayDurationSelector(value, index)).pipe(take(1), mapTo(value))); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/dematerialize.ts b/WechatBot/node_modules/rxjs/src/internal/operators/dematerialize.ts deleted file mode 100644 index 3a4e17f28..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/dematerialize.ts +++ /dev/null @@ -1,58 +0,0 @@ -import { observeNotification } from '../Notification'; -import { OperatorFunction, ObservableNotification, ValueFromNotification } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Converts an Observable of {@link ObservableNotification} objects into the emissions - * that they represent. - * - * Unwraps {@link ObservableNotification} objects as actual `next`, - * `error` and `complete` emissions. The opposite of {@link materialize}. - * - * ![](dematerialize.png) - * - * `dematerialize` is assumed to operate an Observable that only emits - * {@link ObservableNotification} objects as `next` emissions, and does not emit any - * `error`. Such Observable is the output of a `materialize` operation. Those - * notifications are then unwrapped using the metadata they contain, and emitted - * as `next`, `error`, and `complete` on the output Observable. - * - * Use this operator in conjunction with {@link materialize}. - * - * ## Example - * - * Convert an Observable of Notifications to an actual Observable - * - * ```ts - * import { NextNotification, ErrorNotification, of, dematerialize } from 'rxjs'; - * - * const notifA: NextNotification = { kind: 'N', value: 'A' }; - * const notifB: NextNotification = { kind: 'N', value: 'B' }; - * const notifE: ErrorNotification = { kind: 'E', error: new TypeError('x.toUpperCase is not a function') }; - * - * const materialized = of(notifA, notifB, notifE); - * - * const upperCase = materialized.pipe(dematerialize()); - * upperCase.subscribe({ - * next: x => console.log(x), - * error: e => console.error(e) - * }); - * - * // Results in: - * // A - * // B - * // TypeError: x.toUpperCase is not a function - * ``` - * - * @see {@link materialize} - * - * @return A function that returns an Observable that emits items and - * notifications embedded in Notification objects emitted by the source - * Observable. - */ -export function dematerialize>(): OperatorFunction> { - return operate((source, subscriber) => { - source.subscribe(createOperatorSubscriber(subscriber, (notification) => observeNotification(notification, subscriber))); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/distinct.ts b/WechatBot/node_modules/rxjs/src/internal/operators/distinct.ts deleted file mode 100644 index 70ed2c235..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/distinct.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { innerFrom } from '../observable/innerFrom'; - -/** - * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items. - * - * If a `keySelector` function is provided, then it will project each value from the source observable into a new value that it will - * check for equality with previously projected values. If the `keySelector` function is not provided, it will use each value from the - * source observable directly with an equality check against previous values. - * - * In JavaScript runtimes that support `Set`, this operator will use a `Set` to improve performance of the distinct value checking. - * - * In other runtimes, this operator will use a minimal implementation of `Set` that relies on an `Array` and `indexOf` under the - * hood, so performance will degrade as more values are checked for distinction. Even in newer browsers, a long-running `distinct` - * use might result in memory leaks. To help alleviate this in some scenarios, an optional `flushes` parameter is also provided so - * that the internal `Set` can be "flushed", basically clearing it of values. - * - * ## Examples - * - * A simple example with numbers - * - * ```ts - * import { of, distinct } from 'rxjs'; - * - * of(1, 1, 2, 2, 2, 1, 2, 3, 4, 3, 2, 1) - * .pipe(distinct()) - * .subscribe(x => console.log(x)); - * - * // Outputs - * // 1 - * // 2 - * // 3 - * // 4 - * ``` - * - * An example using the `keySelector` function - * - * ```ts - * import { of, distinct } from 'rxjs'; - * - * of( - * { age: 4, name: 'Foo'}, - * { age: 7, name: 'Bar'}, - * { age: 5, name: 'Foo'} - * ) - * .pipe(distinct(({ name }) => name)) - * .subscribe(x => console.log(x)); - * - * // Outputs - * // { age: 4, name: 'Foo' } - * // { age: 7, name: 'Bar' } - * ``` - * @see {@link distinctUntilChanged} - * @see {@link distinctUntilKeyChanged} - * - * @param keySelector Optional `function` to select which value you want to check as distinct. - * @param flushes Optional `ObservableInput` for flushing the internal HashSet of the operator. - * @return A function that returns an Observable that emits items from the - * source Observable with distinct values. - */ -export function distinct(keySelector?: (value: T) => K, flushes?: ObservableInput): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - const distinctKeys = new Set(); - source.subscribe( - createOperatorSubscriber(subscriber, (value) => { - const key = keySelector ? keySelector(value) : value; - if (!distinctKeys.has(key)) { - distinctKeys.add(key); - subscriber.next(value); - } - }) - ); - - flushes && innerFrom(flushes).subscribe(createOperatorSubscriber(subscriber, () => distinctKeys.clear(), noop)); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/distinctUntilChanged.ts b/WechatBot/node_modules/rxjs/src/internal/operators/distinctUntilChanged.ts deleted file mode 100644 index 5db2f9872..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/distinctUntilChanged.ts +++ /dev/null @@ -1,182 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -import { identity } from '../util/identity'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -export function distinctUntilChanged(comparator?: (previous: T, current: T) => boolean): MonoTypeOperatorFunction; -export function distinctUntilChanged( - comparator: (previous: K, current: K) => boolean, - keySelector: (value: T) => K -): MonoTypeOperatorFunction; - -/** - * Returns a result {@link Observable} that emits all values pushed by the source observable if they - * are distinct in comparison to the last value the result observable emitted. - * - * When provided without parameters or with the first parameter (`{@link distinctUntilChanged#comparator comparator}`), - * it behaves like this: - * - * 1. It will always emit the first value from the source. - * 2. For all subsequent values pushed by the source, they will be compared to the previously emitted values - * using the provided `comparator` or an `===` equality check. - * 3. If the value pushed by the source is determined to be unequal by this check, that value is emitted and - * becomes the new "previously emitted value" internally. - * - * When the second parameter (`{@link distinctUntilChanged#keySelector keySelector}`) is provided, the behavior - * changes: - * - * 1. It will always emit the first value from the source. - * 2. The `keySelector` will be run against all values, including the first value. - * 3. For all values after the first, the selected key will be compared against the key selected from - * the previously emitted value using the `comparator`. - * 4. If the keys are determined to be unequal by this check, the value (not the key), is emitted - * and the selected key from that value is saved for future comparisons against other keys. - * - * ## Examples - * - * A very basic example with no `{@link distinctUntilChanged#comparator comparator}`. Note that `1` is emitted more than once, - * because it's distinct in comparison to the _previously emitted_ value, - * not in comparison to _all other emitted values_. - * - * ```ts - * import { of, distinctUntilChanged } from 'rxjs'; - * - * of(1, 1, 1, 2, 2, 2, 1, 1, 3, 3) - * .pipe(distinctUntilChanged()) - * .subscribe(console.log); - * // Logs: 1, 2, 1, 3 - * ``` - * - * With a `{@link distinctUntilChanged#comparator comparator}`, you can do custom comparisons. Let's say - * you only want to emit a value when all of its components have - * changed: - * - * ```ts - * import { of, distinctUntilChanged } from 'rxjs'; - * - * const totallyDifferentBuilds$ = of( - * { engineVersion: '1.1.0', transmissionVersion: '1.2.0' }, - * { engineVersion: '1.1.0', transmissionVersion: '1.4.0' }, - * { engineVersion: '1.3.0', transmissionVersion: '1.4.0' }, - * { engineVersion: '1.3.0', transmissionVersion: '1.5.0' }, - * { engineVersion: '2.0.0', transmissionVersion: '1.5.0' } - * ).pipe( - * distinctUntilChanged((prev, curr) => { - * return ( - * prev.engineVersion === curr.engineVersion || - * prev.transmissionVersion === curr.transmissionVersion - * ); - * }) - * ); - * - * totallyDifferentBuilds$.subscribe(console.log); - * - * // Logs: - * // { engineVersion: '1.1.0', transmissionVersion: '1.2.0' } - * // { engineVersion: '1.3.0', transmissionVersion: '1.4.0' } - * // { engineVersion: '2.0.0', transmissionVersion: '1.5.0' } - * ``` - * - * You can also provide a custom `{@link distinctUntilChanged#comparator comparator}` to check that emitted - * changes are only in one direction. Let's say you only want to get - * the next record temperature: - * - * ```ts - * import { of, distinctUntilChanged } from 'rxjs'; - * - * const temps$ = of(30, 31, 20, 34, 33, 29, 35, 20); - * - * const recordHighs$ = temps$.pipe( - * distinctUntilChanged((prevHigh, temp) => { - * // If the current temp is less than - * // or the same as the previous record, - * // the record hasn't changed. - * return temp <= prevHigh; - * }) - * ); - * - * recordHighs$.subscribe(console.log); - * // Logs: 30, 31, 34, 35 - * ``` - * - * Selecting update events only when the `updatedBy` field shows - * the account changed hands. - * - * ```ts - * import { of, distinctUntilChanged } from 'rxjs'; - * - * // A stream of updates to a given account - * const accountUpdates$ = of( - * { updatedBy: 'blesh', data: [] }, - * { updatedBy: 'blesh', data: [] }, - * { updatedBy: 'ncjamieson', data: [] }, - * { updatedBy: 'ncjamieson', data: [] }, - * { updatedBy: 'blesh', data: [] } - * ); - * - * // We only want the events where it changed hands - * const changedHands$ = accountUpdates$.pipe( - * distinctUntilChanged(undefined, update => update.updatedBy) - * ); - * - * changedHands$.subscribe(console.log); - * // Logs: - * // { updatedBy: 'blesh', data: Array[0] } - * // { updatedBy: 'ncjamieson', data: Array[0] } - * // { updatedBy: 'blesh', data: Array[0] } - * ``` - * - * @see {@link distinct} - * @see {@link distinctUntilKeyChanged} - * - * @param comparator A function used to compare the previous and current keys for - * equality. Defaults to a `===` check. - * @param keySelector Used to select a key value to be passed to the `comparator`. - * - * @return A function that returns an Observable that emits items from the - * source Observable with distinct values. - */ -export function distinctUntilChanged( - comparator?: (previous: K, current: K) => boolean, - keySelector: (value: T) => K = identity as (value: T) => K -): MonoTypeOperatorFunction { - // We've been allowing `null` do be passed as the `compare`, so we can't do - // a default value for the parameter, because that will only work - // for `undefined`. - comparator = comparator ?? defaultCompare; - - return operate((source, subscriber) => { - // The previous key, used to compare against keys selected - // from new arrivals to determine "distinctiveness". - let previousKey: K; - // Whether or not this is the first value we've gotten. - let first = true; - - source.subscribe( - createOperatorSubscriber(subscriber, (value) => { - // We always call the key selector. - const currentKey = keySelector(value); - - // If it's the first value, we always emit it. - // Otherwise, we compare this key to the previous key, and - // if the comparer returns false, we emit. - if (first || !comparator!(previousKey, currentKey)) { - // Update our state *before* we emit the value - // as emission can be the source of re-entrant code - // in functional libraries like this. We only really - // need to do this if it's the first value, or if the - // key we're tracking in previous needs to change. - first = false; - previousKey = currentKey; - - // Emit the value! - subscriber.next(value); - } - }) - ); - }); -} - -function defaultCompare(a: any, b: any) { - return a === b; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/distinctUntilKeyChanged.ts b/WechatBot/node_modules/rxjs/src/internal/operators/distinctUntilKeyChanged.ts deleted file mode 100644 index 0f6708260..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/distinctUntilKeyChanged.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { distinctUntilChanged } from './distinctUntilChanged'; -import { MonoTypeOperatorFunction } from '../types'; - -/* tslint:disable:max-line-length */ -export function distinctUntilKeyChanged(key: keyof T): MonoTypeOperatorFunction; -export function distinctUntilKeyChanged(key: K, compare: (x: T[K], y: T[K]) => boolean): MonoTypeOperatorFunction; -/* tslint:enable:max-line-length */ - -/** - * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item, - * using a property accessed by using the key provided to check if the two items are distinct. - * - * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted. - * - * If a comparator function is not provided, an equality check is used by default. - * - * ## Examples - * - * An example comparing the name of persons - * - * ```ts - * import { of, distinctUntilKeyChanged } from 'rxjs'; - * - * of( - * { age: 4, name: 'Foo' }, - * { age: 7, name: 'Bar' }, - * { age: 5, name: 'Foo' }, - * { age: 6, name: 'Foo' } - * ).pipe( - * distinctUntilKeyChanged('name') - * ) - * .subscribe(x => console.log(x)); - * - * // displays: - * // { age: 4, name: 'Foo' } - * // { age: 7, name: 'Bar' } - * // { age: 5, name: 'Foo' } - * ``` - * - * An example comparing the first letters of the name - * - * ```ts - * import { of, distinctUntilKeyChanged } from 'rxjs'; - * - * of( - * { age: 4, name: 'Foo1' }, - * { age: 7, name: 'Bar' }, - * { age: 5, name: 'Foo2' }, - * { age: 6, name: 'Foo3' } - * ).pipe( - * distinctUntilKeyChanged('name', (x, y) => x.substring(0, 3) === y.substring(0, 3)) - * ) - * .subscribe(x => console.log(x)); - * - * // displays: - * // { age: 4, name: 'Foo1' } - * // { age: 7, name: 'Bar' } - * // { age: 5, name: 'Foo2' } - * ``` - * - * @see {@link distinct} - * @see {@link distinctUntilChanged} - * - * @param {string} key String key for object property lookup on each item. - * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source. - * @return A function that returns an Observable that emits items from the - * source Observable with distinct values based on the key specified. - */ -export function distinctUntilKeyChanged(key: K, compare?: (x: T[K], y: T[K]) => boolean): MonoTypeOperatorFunction { - return distinctUntilChanged((x: T, y: T) => compare ? compare(x[key], y[key]) : x[key] === y[key]); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/elementAt.ts b/WechatBot/node_modules/rxjs/src/internal/operators/elementAt.ts deleted file mode 100644 index 6a817fc5d..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/elementAt.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError'; -import { Observable } from '../Observable'; -import { OperatorFunction } from '../types'; -import { filter } from './filter'; -import { throwIfEmpty } from './throwIfEmpty'; -import { defaultIfEmpty } from './defaultIfEmpty'; -import { take } from './take'; - -/** - * Emits the single value at the specified `index` in a sequence of emissions - * from the source Observable. - * - * Emits only the i-th value, then completes. - * - * ![](elementAt.png) - * - * `elementAt` returns an Observable that emits the item at the specified - * `index` in the source Observable, or a default value if that `index` is out - * of range and the `default` argument is provided. If the `default` argument is - * not given and the `index` is out of range, the output Observable will emit an - * `ArgumentOutOfRangeError` error. - * - * ## Example - * - * Emit only the third click event - * - * ```ts - * import { fromEvent, elementAt } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(elementAt(2)); - * result.subscribe(x => console.log(x)); - * - * // Results in: - * // click 1 = nothing - * // click 2 = nothing - * // click 3 = MouseEvent object logged to console - * ``` - * - * @see {@link first} - * @see {@link last} - * @see {@link skip} - * @see {@link single} - * @see {@link take} - * - * @throws {ArgumentOutOfRangeError} When using `elementAt(i)`, it delivers an - * ArgumentOutOfRangeError to the Observer's `error` callback if `i < 0` or the - * Observable has completed before emitting the i-th `next` notification. - * - * @param {number} index Is the number `i` for the i-th source emission that has - * happened since the subscription, starting from the number `0`. - * @param {T} [defaultValue] The default value returned for missing indices. - * @return A function that returns an Observable that emits a single item, if - * it is found. Otherwise, it will emit the default value if given. If not, it - * emits an error. - */ -export function elementAt(index: number, defaultValue?: D): OperatorFunction { - if (index < 0) { - throw new ArgumentOutOfRangeError(); - } - const hasDefaultValue = arguments.length >= 2; - return (source: Observable) => - source.pipe( - filter((v, i) => i === index), - take(1), - hasDefaultValue ? defaultIfEmpty(defaultValue!) : throwIfEmpty(() => new ArgumentOutOfRangeError()) - ); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/endWith.ts b/WechatBot/node_modules/rxjs/src/internal/operators/endWith.ts deleted file mode 100644 index 436e5b301..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/endWith.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** prettier */ -import { Observable } from '../Observable'; -import { concat } from '../observable/concat'; -import { of } from '../observable/of'; -import { MonoTypeOperatorFunction, SchedulerLike, OperatorFunction, ValueFromArray } from '../types'; - -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function endWith(scheduler: SchedulerLike): MonoTypeOperatorFunction; -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function endWith( - ...valuesAndScheduler: [...A, SchedulerLike] -): OperatorFunction>; - -export function endWith(...values: A): OperatorFunction>; - -/** - * Returns an observable that will emit all values from the source, then synchronously emit - * the provided value(s) immediately after the source completes. - * - * NOTE: Passing a last argument of a Scheduler is _deprecated_, and may result in incorrect - * types in TypeScript. - * - * This is useful for knowing when an observable ends. Particularly when paired with an - * operator like {@link takeUntil} - * - * ![](endWith.png) - * - * ## Example - * - * Emit values to know when an interval starts and stops. The interval will - * stop when a user clicks anywhere on the document. - * - * ```ts - * import { interval, map, fromEvent, startWith, takeUntil, endWith } from 'rxjs'; - * - * const ticker$ = interval(5000).pipe( - * map(() => 'tick') - * ); - * - * const documentClicks$ = fromEvent(document, 'click'); - * - * ticker$.pipe( - * startWith('interval started'), - * takeUntil(documentClicks$), - * endWith('interval ended by click') - * ) - * .subscribe(x => console.log(x)); - * - * // Result (assuming a user clicks after 15 seconds) - * // 'interval started' - * // 'tick' - * // 'tick' - * // 'tick' - * // 'interval ended by click' - * ``` - * - * @see {@link startWith} - * @see {@link concat} - * @see {@link takeUntil} - * - * @param values Items you want the modified Observable to emit last. - * @return A function that returns an Observable that emits all values from the - * source, then synchronously emits the provided value(s) immediately after the - * source completes. - */ -export function endWith(...values: Array): MonoTypeOperatorFunction { - return (source: Observable) => concat(source, of(...values)) as Observable; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/every.ts b/WechatBot/node_modules/rxjs/src/internal/operators/every.ts deleted file mode 100644 index be3d9ea5a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/every.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { Observable } from '../Observable'; -import { Falsy, OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -export function every(predicate: BooleanConstructor): OperatorFunction extends never ? false : boolean>; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export function every( - predicate: BooleanConstructor, - thisArg: any -): OperatorFunction extends never ? false : boolean>; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export function every( - predicate: (this: A, value: T, index: number, source: Observable) => boolean, - thisArg: A -): OperatorFunction; -export function every(predicate: (value: T, index: number, source: Observable) => boolean): OperatorFunction; - -/** - * Returns an Observable that emits whether or not every item of the source satisfies the condition specified. - * - * If all values pass predicate before the source completes, emits true before completion, - * otherwise emit false, then complete. - * - * ![](every.png) - * - * ## Example - * - * A simple example emitting true if all elements are less than 5, false otherwise - * - * ```ts - * import { of, every } from 'rxjs'; - * - * of(1, 2, 3, 4, 5, 6) - * .pipe(every(x => x < 5)) - * .subscribe(x => console.log(x)); // -> false - * ``` - * - * @param {function} predicate A function for determining if an item meets a specified condition. - * @param {any} [thisArg] Optional object to use for `this` in the callback. - * @return A function that returns an Observable of booleans that determines if - * all items of the source Observable meet the condition specified. - */ -export function every( - predicate: (value: T, index: number, source: Observable) => boolean, - thisArg?: any -): OperatorFunction { - return operate((source, subscriber) => { - let index = 0; - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - if (!predicate.call(thisArg, value, index++, source)) { - subscriber.next(false); - subscriber.complete(); - } - }, - () => { - subscriber.next(true); - subscriber.complete(); - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/exhaust.ts b/WechatBot/node_modules/rxjs/src/internal/operators/exhaust.ts deleted file mode 100644 index a4410dbfd..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/exhaust.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { exhaustAll } from './exhaustAll'; - -/** - * @deprecated Renamed to {@link exhaustAll}. Will be removed in v8. - */ -export const exhaust = exhaustAll; diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/exhaustAll.ts b/WechatBot/node_modules/rxjs/src/internal/operators/exhaustAll.ts deleted file mode 100644 index 4a58a5e70..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/exhaustAll.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { OperatorFunction, ObservableInput, ObservedValueOf } from '../types'; -import { exhaustMap } from './exhaustMap'; -import { identity } from '../util/identity'; - -/** - * Converts a higher-order Observable into a first-order Observable by dropping - * inner Observables while the previous inner Observable has not yet completed. - * - * Flattens an Observable-of-Observables by dropping the - * next inner Observables while the current inner is still executing. - * - * ![](exhaustAll.svg) - * - * `exhaustAll` subscribes to an Observable that emits Observables, also known as a - * higher-order Observable. Each time it observes one of these emitted inner - * Observables, the output Observable begins emitting the items emitted by that - * inner Observable. So far, it behaves like {@link mergeAll}. However, - * `exhaustAll` ignores every new inner Observable if the previous Observable has - * not yet completed. Once that one completes, it will accept and flatten the - * next inner Observable and repeat this process. - * - * ## Example - * - * Run a finite timer for each click, only if there is no currently active timer - * - * ```ts - * import { fromEvent, map, interval, take, exhaustAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const higherOrder = clicks.pipe( - * map(() => interval(1000).pipe(take(5))) - * ); - * const result = higherOrder.pipe(exhaustAll()); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link combineLatestAll} - * @see {@link concatAll} - * @see {@link switchAll} - * @see {@link switchMap} - * @see {@link mergeAll} - * @see {@link exhaustMap} - * @see {@link zipAll} - * - * @return A function that returns an Observable that takes a source of - * Observables and propagates the first Observable exclusively until it - * completes before subscribing to the next. - */ -export function exhaustAll>(): OperatorFunction> { - return exhaustMap(identity); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/exhaustMap.ts b/WechatBot/node_modules/rxjs/src/internal/operators/exhaustMap.ts deleted file mode 100644 index 69bc72805..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/exhaustMap.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscriber } from '../Subscriber'; -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -import { map } from './map'; -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/* tslint:disable:max-line-length */ -export function exhaustMap>( - project: (value: T, index: number) => O -): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function exhaustMap>( - project: (value: T, index: number) => O, - resultSelector: undefined -): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function exhaustMap( - project: (value: T, index: number) => ObservableInput, - resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R -): OperatorFunction; -/* tslint:enable:max-line-length */ - -/** - * Projects each source value to an Observable which is merged in the output - * Observable only if the previous projected Observable has completed. - * - * Maps each value to an Observable, then flattens all of - * these inner Observables using {@link exhaustAll}. - * - * ![](exhaustMap.png) - * - * Returns an Observable that emits items based on applying a function that you - * supply to each item emitted by the source Observable, where that function - * returns an (so-called "inner") Observable. When it projects a source value to - * an Observable, the output Observable begins emitting the items emitted by - * that projected Observable. However, `exhaustMap` ignores every new projected - * Observable if the previous projected Observable has not yet completed. Once - * that one completes, it will accept and flatten the next projected Observable - * and repeat this process. - * - * ## Example - * - * Run a finite timer for each click, only if there is no currently active timer - * - * ```ts - * import { fromEvent, exhaustMap, interval, take } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * exhaustMap(() => interval(1000).pipe(take(5))) - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link concatMap} - * @see {@link exhaust} - * @see {@link mergeMap} - * @see {@link switchMap} - * - * @param {function(value: T, ?index: number): ObservableInput} project A function - * that, when applied to an item emitted by the source Observable, returns an - * Observable. - * @return A function that returns an Observable containing projected - * Observables of each item of the source, ignoring projected Observables that - * start before their preceding Observable has completed. - */ -export function exhaustMap>( - project: (value: T, index: number) => O, - resultSelector?: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R -): OperatorFunction | R> { - if (resultSelector) { - // DEPRECATED PATH - return (source: Observable) => - source.pipe(exhaustMap((a, i) => innerFrom(project(a, i)).pipe(map((b: any, ii: any) => resultSelector(a, b, i, ii))))); - } - return operate((source, subscriber) => { - let index = 0; - let innerSub: Subscriber | null = null; - let isComplete = false; - source.subscribe( - createOperatorSubscriber( - subscriber, - (outerValue) => { - if (!innerSub) { - innerSub = createOperatorSubscriber(subscriber, undefined, () => { - innerSub = null; - isComplete && subscriber.complete(); - }); - innerFrom(project(outerValue, index++)).subscribe(innerSub); - } - }, - () => { - isComplete = true; - !innerSub && subscriber.complete(); - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/expand.ts b/WechatBot/node_modules/rxjs/src/internal/operators/expand.ts deleted file mode 100644 index 84b7e347a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/expand.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { OperatorFunction, ObservableInput, ObservedValueOf, SchedulerLike } from '../types'; -import { operate } from '../util/lift'; -import { mergeInternals } from './mergeInternals'; - -/* tslint:disable:max-line-length */ -export function expand>( - project: (value: T, index: number) => O, - concurrent?: number, - scheduler?: SchedulerLike -): OperatorFunction>; -/** - * @deprecated The `scheduler` parameter will be removed in v8. If you need to schedule the inner subscription, - * use `subscribeOn` within the projection function: `expand((value) => fn(value).pipe(subscribeOn(scheduler)))`. - * Details: Details: https://rxjs.dev/deprecations/scheduler-argument - */ -export function expand>( - project: (value: T, index: number) => O, - concurrent: number | undefined, - scheduler: SchedulerLike -): OperatorFunction>; -/* tslint:enable:max-line-length */ - -/** - * Recursively projects each source value to an Observable which is merged in - * the output Observable. - * - * It's similar to {@link mergeMap}, but applies the - * projection function to every source value as well as every output value. - * It's recursive. - * - * ![](expand.png) - * - * Returns an Observable that emits items based on applying a function that you - * supply to each item emitted by the source Observable, where that function - * returns an Observable, and then merging those resulting Observables and - * emitting the results of this merger. *Expand* will re-emit on the output - * Observable every source value. Then, each output value is given to the - * `project` function which returns an inner Observable to be merged on the - * output Observable. Those output values resulting from the projection are also - * given to the `project` function to produce new output values. This is how - * *expand* behaves recursively. - * - * ## Example - * - * Start emitting the powers of two on every click, at most 10 of them - * - * ```ts - * import { fromEvent, map, expand, of, delay, take } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const powersOfTwo = clicks.pipe( - * map(() => 1), - * expand(x => of(2 * x).pipe(delay(1000))), - * take(10) - * ); - * powersOfTwo.subscribe(x => console.log(x)); - * ``` - * - * @see {@link mergeMap} - * @see {@link mergeScan} - * - * @param {function(value: T, index: number) => Observable} project A function - * that, when applied to an item emitted by the source or the output Observable, - * returns an Observable. - * @param {number} [concurrent=Infinity] Maximum number of input - * Observables being subscribed to concurrently. - * @param {SchedulerLike} [scheduler=null] The {@link SchedulerLike} to use for subscribing to - * each projected inner Observable. - * @return A function that returns an Observable that emits the source values - * and also result of applying the projection function to each value emitted on - * the output Observable and merging the results of the Observables obtained - * from this transformation. - */ -export function expand>( - project: (value: T, index: number) => O, - concurrent = Infinity, - scheduler?: SchedulerLike -): OperatorFunction> { - concurrent = (concurrent || 0) < 1 ? Infinity : concurrent; - return operate((source, subscriber) => - mergeInternals( - // General merge params - source, - subscriber, - project, - concurrent, - - // onBeforeNext - undefined, - - // Expand-specific - true, // Use expand path - scheduler // Inner subscription scheduler - ) - ); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/filter.ts b/WechatBot/node_modules/rxjs/src/internal/operators/filter.ts deleted file mode 100644 index ccc1dec43..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/filter.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export function filter(predicate: (this: A, value: T, index: number) => value is S, thisArg: A): OperatorFunction; -export function filter(predicate: (value: T, index: number) => value is S): OperatorFunction; -export function filter(predicate: BooleanConstructor): OperatorFunction>; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export function filter(predicate: (this: A, value: T, index: number) => boolean, thisArg: A): MonoTypeOperatorFunction; -export function filter(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction; - -/** - * Filter items emitted by the source Observable by only emitting those that - * satisfy a specified predicate. - * - * Like - * [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter), - * it only emits a value from the source if it passes a criterion function. - * - * ![](filter.png) - * - * Similar to the well-known `Array.prototype.filter` method, this operator - * takes values from the source Observable, passes them through a `predicate` - * function and only emits those values that yielded `true`. - * - * ## Example - * - * Emit only click events whose target was a DIV element - * - * ```ts - * import { fromEvent, filter } from 'rxjs'; - * - * const div = document.createElement('div'); - * div.style.cssText = 'width: 200px; height: 200px; background: #09c;'; - * document.body.appendChild(div); - * - * const clicks = fromEvent(document, 'click'); - * const clicksOnDivs = clicks.pipe(filter(ev => (ev.target).tagName === 'DIV')); - * clicksOnDivs.subscribe(x => console.log(x)); - * ``` - * - * @see {@link distinct} - * @see {@link distinctUntilChanged} - * @see {@link distinctUntilKeyChanged} - * @see {@link ignoreElements} - * @see {@link partition} - * @see {@link skip} - * - * @param predicate A function that - * evaluates each value emitted by the source Observable. If it returns `true`, - * the value is emitted, if `false` the value is not passed to the output - * Observable. The `index` parameter is the number `i` for the i-th source - * emission that has happened since the subscription, starting from the number - * `0`. - * @param thisArg An optional argument to determine the value of `this` - * in the `predicate` function. - * @return A function that returns an Observable that emits items from the - * source Observable that satisfy the specified `predicate`. - */ -export function filter(predicate: (value: T, index: number) => boolean, thisArg?: any): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - // An index passed to our predicate function on each call. - let index = 0; - - // Subscribe to the source, all errors and completions are - // forwarded to the consumer. - source.subscribe( - // Call the predicate with the appropriate `this` context, - // if the predicate returns `true`, then send the value - // to the consumer. - createOperatorSubscriber(subscriber, (value) => predicate.call(thisArg, value, index++) && subscriber.next(value)) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/finalize.ts b/WechatBot/node_modules/rxjs/src/internal/operators/finalize.ts deleted file mode 100644 index 7ab08b239..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/finalize.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -import { operate } from '../util/lift'; - -/** - * Returns an Observable that mirrors the source Observable, but will call a specified function when - * the source terminates on complete or error. - * The specified function will also be called when the subscriber explicitly unsubscribes. - * - * ## Examples - * - * Execute callback function when the observable completes - * - * ```ts - * import { interval, take, finalize } from 'rxjs'; - * - * // emit value in sequence every 1 second - * const source = interval(1000); - * const example = source.pipe( - * take(5), //take only the first 5 values - * finalize(() => console.log('Sequence complete')) // Execute when the observable completes - * ); - * const subscribe = example.subscribe(val => console.log(val)); - * - * // results: - * // 0 - * // 1 - * // 2 - * // 3 - * // 4 - * // 'Sequence complete' - * ``` - * - * Execute callback function when the subscriber explicitly unsubscribes - * - * ```ts - * import { interval, finalize, tap, noop, timer } from 'rxjs'; - * - * const source = interval(100).pipe( - * finalize(() => console.log('[finalize] Called')), - * tap({ - * next: () => console.log('[next] Called'), - * error: () => console.log('[error] Not called'), - * complete: () => console.log('[tap complete] Not called') - * }) - * ); - * - * const sub = source.subscribe({ - * next: x => console.log(x), - * error: noop, - * complete: () => console.log('[complete] Not called') - * }); - * - * timer(150).subscribe(() => sub.unsubscribe()); - * - * // results: - * // '[next] Called' - * // 0 - * // '[finalize] Called' - * ``` - * - * @param {function} callback Function to be called when source terminates. - * @return A function that returns an Observable that mirrors the source, but - * will call the specified function on termination. - */ -export function finalize(callback: () => void): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - // TODO: This try/finally was only added for `useDeprecatedSynchronousErrorHandling`. - // REMOVE THIS WHEN THAT HOT GARBAGE IS REMOVED IN V8. - try { - source.subscribe(subscriber); - } finally { - subscriber.add(callback); - } - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/find.ts b/WechatBot/node_modules/rxjs/src/internal/operators/find.ts deleted file mode 100644 index d91a3d821..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/find.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscriber } from '../Subscriber'; -import { OperatorFunction, TruthyTypesOf } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -export function find(predicate: BooleanConstructor): OperatorFunction>; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export function find( - predicate: (this: A, value: T, index: number, source: Observable) => value is S, - thisArg: A -): OperatorFunction; -export function find( - predicate: (value: T, index: number, source: Observable) => value is S -): OperatorFunction; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export function find( - predicate: (this: A, value: T, index: number, source: Observable) => boolean, - thisArg: A -): OperatorFunction; -export function find(predicate: (value: T, index: number, source: Observable) => boolean): OperatorFunction; -/** - * Emits only the first value emitted by the source Observable that meets some - * condition. - * - * Finds the first value that passes some test and emits - * that. - * - * ![](find.png) - * - * `find` searches for the first item in the source Observable that matches the - * specified condition embodied by the `predicate`, and returns the first - * occurrence in the source. Unlike {@link first}, the `predicate` is required - * in `find`, and does not emit an error if a valid value is not found - * (emits `undefined` instead). - * - * ## Example - * - * Find and emit the first click that happens on a DIV element - * - * ```ts - * import { fromEvent, find } from 'rxjs'; - * - * const div = document.createElement('div'); - * div.style.cssText = 'width: 200px; height: 200px; background: #09c;'; - * document.body.appendChild(div); - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(find(ev => (ev.target).tagName === 'DIV')); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link filter} - * @see {@link first} - * @see {@link findIndex} - * @see {@link take} - * - * @param {function(value: T, index: number, source: Observable): boolean} predicate - * A function called with each item to test for condition matching. - * @param {any} [thisArg] An optional argument to determine the value of `this` - * in the `predicate` function. - * @return A function that returns an Observable that emits the first item that - * matches the condition. - */ -export function find( - predicate: (value: T, index: number, source: Observable) => boolean, - thisArg?: any -): OperatorFunction { - return operate(createFind(predicate, thisArg, 'value')); -} - -export function createFind( - predicate: (value: T, index: number, source: Observable) => boolean, - thisArg: any, - emit: 'value' | 'index' -) { - const findIndex = emit === 'index'; - return (source: Observable, subscriber: Subscriber) => { - let index = 0; - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - const i = index++; - if (predicate.call(thisArg, value, i, source)) { - subscriber.next(findIndex ? i : value); - subscriber.complete(); - } - }, - () => { - subscriber.next(findIndex ? -1 : undefined); - subscriber.complete(); - } - ) - ); - }; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/findIndex.ts b/WechatBot/node_modules/rxjs/src/internal/operators/findIndex.ts deleted file mode 100644 index 7a9d943cb..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/findIndex.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { Observable } from '../Observable'; -import { Falsy, OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createFind } from './find'; - -export function findIndex(predicate: BooleanConstructor): OperatorFunction; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export function findIndex(predicate: BooleanConstructor, thisArg: any): OperatorFunction; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export function findIndex( - predicate: (this: A, value: T, index: number, source: Observable) => boolean, - thisArg: A -): OperatorFunction; -export function findIndex(predicate: (value: T, index: number, source: Observable) => boolean): OperatorFunction; - -/** - * Emits only the index of the first value emitted by the source Observable that - * meets some condition. - * - * It's like {@link find}, but emits the index of the - * found value, not the value itself. - * - * ![](findIndex.png) - * - * `findIndex` searches for the first item in the source Observable that matches - * the specified condition embodied by the `predicate`, and returns the - * (zero-based) index of the first occurrence in the source. Unlike - * {@link first}, the `predicate` is required in `findIndex`, and does not emit - * an error if a valid value is not found. - * - * ## Example - * - * Emit the index of first click that happens on a DIV element - * - * ```ts - * import { fromEvent, findIndex } from 'rxjs'; - * - * const div = document.createElement('div'); - * div.style.cssText = 'width: 200px; height: 200px; background: #09c;'; - * document.body.appendChild(div); - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(findIndex(ev => (ev.target).tagName === 'DIV')); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link filter} - * @see {@link find} - * @see {@link first} - * @see {@link take} - * - * @param {function(value: T, index: number, source: Observable): boolean} predicate - * A function called with each item to test for condition matching. - * @param {any} [thisArg] An optional argument to determine the value of `this` - * in the `predicate` function. - * @return A function that returns an Observable that emits the index of the - * first item that matches the condition. - */ -export function findIndex( - predicate: (value: T, index: number, source: Observable) => boolean, - thisArg?: any -): OperatorFunction { - return operate(createFind(predicate, thisArg, 'index')); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/first.ts b/WechatBot/node_modules/rxjs/src/internal/operators/first.ts deleted file mode 100644 index b3ca1f8e4..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/first.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { Observable } from '../Observable'; -import { EmptyError } from '../util/EmptyError'; -import { OperatorFunction, TruthyTypesOf } from '../types'; -import { filter } from './filter'; -import { take } from './take'; -import { defaultIfEmpty } from './defaultIfEmpty'; -import { throwIfEmpty } from './throwIfEmpty'; -import { identity } from '../util/identity'; - -export function first(predicate?: null, defaultValue?: D): OperatorFunction; -export function first(predicate: BooleanConstructor): OperatorFunction>; -export function first(predicate: BooleanConstructor, defaultValue: D): OperatorFunction | D>; -export function first( - predicate: (value: T, index: number, source: Observable) => value is S, - defaultValue?: S -): OperatorFunction; -export function first( - predicate: (value: T, index: number, source: Observable) => value is S, - defaultValue: D -): OperatorFunction; -export function first( - predicate: (value: T, index: number, source: Observable) => boolean, - defaultValue?: D -): OperatorFunction; - -/** - * Emits only the first value (or the first value that meets some condition) - * emitted by the source Observable. - * - * Emits only the first value. Or emits only the first - * value that passes some test. - * - * ![](first.png) - * - * If called with no arguments, `first` emits the first value of the source - * Observable, then completes. If called with a `predicate` function, `first` - * emits the first value of the source that matches the specified condition. Throws an error if - * `defaultValue` was not provided and a matching element is not found. - * - * ## Examples - * - * Emit only the first click that happens on the DOM - * - * ```ts - * import { fromEvent, first } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(first()); - * result.subscribe(x => console.log(x)); - * ``` - * - * Emits the first click that happens on a DIV - * - * ```ts - * import { fromEvent, first } from 'rxjs'; - * - * const div = document.createElement('div'); - * div.style.cssText = 'width: 200px; height: 200px; background: #09c;'; - * document.body.appendChild(div); - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(first(ev => (ev.target).tagName === 'DIV')); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link filter} - * @see {@link find} - * @see {@link take} - * - * @throws {EmptyError} Delivers an EmptyError to the Observer's `error` - * callback if the Observable completes before any `next` notification was sent. - * This is how `first()` is different from {@link take}(1) which completes instead. - * - * @param {function(value: T, index: number, source: Observable): boolean} [predicate] - * An optional function called with each item to test for condition matching. - * @param {D} [defaultValue] The default value emitted in case no valid value - * was found on the source. - * @return A function that returns an Observable that emits the first item that - * matches the condition. - */ -export function first( - predicate?: ((value: T, index: number, source: Observable) => boolean) | null, - defaultValue?: D -): OperatorFunction { - const hasDefaultValue = arguments.length >= 2; - return (source: Observable) => - source.pipe( - predicate ? filter((v, i) => predicate(v, i, source)) : identity, - take(1), - hasDefaultValue ? defaultIfEmpty(defaultValue!) : throwIfEmpty(() => new EmptyError()) - ); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/flatMap.ts b/WechatBot/node_modules/rxjs/src/internal/operators/flatMap.ts deleted file mode 100644 index 817917cd7..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/flatMap.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { mergeMap } from './mergeMap'; - -/** - * @deprecated Renamed to {@link mergeMap}. Will be removed in v8. - */ -export const flatMap = mergeMap; diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/groupBy.ts b/WechatBot/node_modules/rxjs/src/internal/operators/groupBy.ts deleted file mode 100644 index 17bbb9ab2..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/groupBy.ts +++ /dev/null @@ -1,288 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { ObservableInput, Observer, OperatorFunction, SubjectLike } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber, OperatorSubscriber } from './OperatorSubscriber'; - -export interface BasicGroupByOptions { - element?: undefined; - duration?: (grouped: GroupedObservable) => ObservableInput; - connector?: () => SubjectLike; -} - -export interface GroupByOptionsWithElement { - element: (value: T) => E; - duration?: (grouped: GroupedObservable) => ObservableInput; - connector?: () => SubjectLike; -} - -export function groupBy(key: (value: T) => K, options: BasicGroupByOptions): OperatorFunction>; - -export function groupBy( - key: (value: T) => K, - options: GroupByOptionsWithElement -): OperatorFunction>; - -export function groupBy( - key: (value: T) => value is K -): OperatorFunction | GroupedObservable>>; - -export function groupBy(key: (value: T) => K): OperatorFunction>; - -/** - * @deprecated use the options parameter instead. - */ -export function groupBy( - key: (value: T) => K, - element: void, - duration: (grouped: GroupedObservable) => Observable -): OperatorFunction>; - -/** - * @deprecated use the options parameter instead. - */ -export function groupBy( - key: (value: T) => K, - element?: (value: T) => R, - duration?: (grouped: GroupedObservable) => Observable -): OperatorFunction>; - -/** - * Groups the items emitted by an Observable according to a specified criterion, - * and emits these grouped items as `GroupedObservables`, one - * {@link GroupedObservable} per group. - * - * ![](groupBy.png) - * - * When the Observable emits an item, a key is computed for this item with the key function. - * - * If a {@link GroupedObservable} for this key exists, this {@link GroupedObservable} emits. Otherwise, a new - * {@link GroupedObservable} for this key is created and emits. - * - * A {@link GroupedObservable} represents values belonging to the same group represented by a common key. The common - * key is available as the `key` field of a {@link GroupedObservable} instance. - * - * The elements emitted by {@link GroupedObservable}s are by default the items emitted by the Observable, or elements - * returned by the element function. - * - * ## Examples - * - * Group objects by `id` and return as array - * - * ```ts - * import { of, groupBy, mergeMap, reduce } from 'rxjs'; - * - * of( - * { id: 1, name: 'JavaScript' }, - * { id: 2, name: 'Parcel' }, - * { id: 2, name: 'webpack' }, - * { id: 1, name: 'TypeScript' }, - * { id: 3, name: 'TSLint' } - * ).pipe( - * groupBy(p => p.id), - * mergeMap(group$ => group$.pipe(reduce((acc, cur) => [...acc, cur], []))) - * ) - * .subscribe(p => console.log(p)); - * - * // displays: - * // [{ id: 1, name: 'JavaScript' }, { id: 1, name: 'TypeScript'}] - * // [{ id: 2, name: 'Parcel' }, { id: 2, name: 'webpack'}] - * // [{ id: 3, name: 'TSLint' }] - * ``` - * - * Pivot data on the `id` field - * - * ```ts - * import { of, groupBy, mergeMap, reduce, map } from 'rxjs'; - * - * of( - * { id: 1, name: 'JavaScript' }, - * { id: 2, name: 'Parcel' }, - * { id: 2, name: 'webpack' }, - * { id: 1, name: 'TypeScript' }, - * { id: 3, name: 'TSLint' } - * ).pipe( - * groupBy(p => p.id, { element: p => p.name }), - * mergeMap(group$ => group$.pipe(reduce((acc, cur) => [...acc, cur], [`${ group$.key }`]))), - * map(arr => ({ id: parseInt(arr[0], 10), values: arr.slice(1) })) - * ) - * .subscribe(p => console.log(p)); - * - * // displays: - * // { id: 1, values: [ 'JavaScript', 'TypeScript' ] } - * // { id: 2, values: [ 'Parcel', 'webpack' ] } - * // { id: 3, values: [ 'TSLint' ] } - * ``` - * - * @param key A function that extracts the key - * for each item. - * @param element A function that extracts the - * return element for each item. - * @param duration - * A function that returns an Observable to determine how long each group should - * exist. - * @param connector Factory function to create an - * intermediate Subject through which grouped elements are emitted. - * @return A function that returns an Observable that emits GroupedObservables, - * each of which corresponds to a unique key value and each of which emits - * those items from the source Observable that share that key value. - * - * @deprecated Use the options parameter instead. - */ -export function groupBy( - key: (value: T) => K, - element?: (value: T) => R, - duration?: (grouped: GroupedObservable) => Observable, - connector?: () => Subject -): OperatorFunction>; - -// Impl -export function groupBy( - keySelector: (value: T) => K, - elementOrOptions?: ((value: any) => any) | void | BasicGroupByOptions | GroupByOptionsWithElement, - duration?: (grouped: GroupedObservable) => ObservableInput, - connector?: () => SubjectLike -): OperatorFunction> { - return operate((source, subscriber) => { - let element: ((value: any) => any) | void; - if (!elementOrOptions || typeof elementOrOptions === 'function') { - element = elementOrOptions as ((value: any) => any); - } else { - ({ duration, element, connector } = elementOrOptions); - } - - // A lookup for the groups that we have so far. - const groups = new Map>(); - - // Used for notifying all groups and the subscriber in the same way. - const notify = (cb: (group: Observer) => void) => { - groups.forEach(cb); - cb(subscriber); - }; - - // Used to handle errors from the source, AND errors that occur during the - // next call from the source. - const handleError = (err: any) => notify((consumer) => consumer.error(err)); - - // The number of actively subscribed groups - let activeGroups = 0; - - // Whether or not teardown was attempted on this subscription. - let teardownAttempted = false; - - // Capturing a reference to this, because we need a handle to it - // in `createGroupedObservable` below. This is what we use to - // subscribe to our source observable. This sometimes needs to be unsubscribed - // out-of-band with our `subscriber` which is the downstream subscriber, or destination, - // in cases where a user unsubscribes from the main resulting subscription, but - // still has groups from this subscription subscribed and would expect values from it - // Consider: `source.pipe(groupBy(fn), take(2))`. - const groupBySourceSubscriber = new OperatorSubscriber( - subscriber, - (value: T) => { - // Because we have to notify all groups of any errors that occur in here, - // we have to add our own try/catch to ensure that those errors are propagated. - // OperatorSubscriber will only send the error to the main subscriber. - try { - const key = keySelector(value); - - let group = groups.get(key); - if (!group) { - // Create our group subject - groups.set(key, (group = connector ? connector() : new Subject())); - - // Emit the grouped observable. Note that we can't do a simple `asObservable()` here, - // because the grouped observable has special semantics around reference counting - // to ensure we don't sever our connection to the source prematurely. - const grouped = createGroupedObservable(key, group); - subscriber.next(grouped); - - if (duration) { - const durationSubscriber = createOperatorSubscriber( - // Providing the group here ensures that it is disposed of -- via `unsubscribe` -- - // when the duration subscription is torn down. That is important, because then - // if someone holds a handle to the grouped observable and tries to subscribe to it - // after the connection to the source has been severed, they will get an - // `ObjectUnsubscribedError` and know they can't possibly get any notifications. - group as any, - () => { - // Our duration notified! We can complete the group. - // The group will be removed from the map in the finalization phase. - group!.complete(); - durationSubscriber?.unsubscribe(); - }, - // Completions are also sent to the group, but just the group. - undefined, - // Errors on the duration subscriber are sent to the group - // but only the group. They are not sent to the main subscription. - undefined, - // Finalization: Remove this group from our map. - () => groups.delete(key) - ); - - // Start our duration notifier. - groupBySourceSubscriber.add(innerFrom(duration(grouped)).subscribe(durationSubscriber)); - } - } - - // Send the value to our group. - group.next(element ? element(value) : value); - } catch (err) { - handleError(err); - } - }, - // Source completes. - () => notify((consumer) => consumer.complete()), - // Error from the source. - handleError, - // Free up memory. - // When the source subscription is _finally_ torn down, release the subjects and keys - // in our groups Map, they may be quite large and we don't want to keep them around if we - // don't have to. - () => groups.clear(), - () => { - teardownAttempted = true; - // We only kill our subscription to the source if we have - // no active groups. As stated above, consider this scenario: - // source$.pipe(groupBy(fn), take(2)). - return activeGroups === 0; - } - ); - - // Subscribe to the source - source.subscribe(groupBySourceSubscriber); - - /** - * Creates the actual grouped observable returned. - * @param key The key of the group - * @param groupSubject The subject that fuels the group - */ - function createGroupedObservable(key: K, groupSubject: SubjectLike) { - const result: any = new Observable((groupSubscriber) => { - activeGroups++; - const innerSub = groupSubject.subscribe(groupSubscriber); - return () => { - innerSub.unsubscribe(); - // We can kill the subscription to our source if we now have no more - // active groups subscribed, and a finalization was already attempted on - // the source. - --activeGroups === 0 && teardownAttempted && groupBySourceSubscriber.unsubscribe(); - }; - }); - result.key = key; - return result; - } - }); -} - -/** - * An observable of values that is the emitted by the result of a {@link groupBy} operator, - * contains a `key` property for the grouping. - */ -export interface GroupedObservable extends Observable { - /** - * The key value for the grouped notifications. - */ - readonly key: K; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/ignoreElements.ts b/WechatBot/node_modules/rxjs/src/internal/operators/ignoreElements.ts deleted file mode 100644 index d4977ac89..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/ignoreElements.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; - -/** - * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`. - * - * ![](ignoreElements.png) - * - * The `ignoreElements` operator suppresses all items emitted by the source Observable, - * but allows its termination notification (either `error` or `complete`) to pass through unchanged. - * - * If you do not care about the items being emitted by an Observable, but you do want to be notified - * when it completes or when it terminates with an error, you can apply the `ignoreElements` operator - * to the Observable, which will ensure that it will never call its observers’ `next` handlers. - * - * ## Example - * - * Ignore all `next` emissions from the source - * - * ```ts - * import { of, ignoreElements } from 'rxjs'; - * - * of('you', 'talking', 'to', 'me') - * .pipe(ignoreElements()) - * .subscribe({ - * next: word => console.log(word), - * error: err => console.log('error:', err), - * complete: () => console.log('the end'), - * }); - * - * // result: - * // 'the end' - * ``` - * - * @return A function that returns an empty Observable that only calls - * `complete` or `error`, based on which one is called by the source - * Observable. - */ -export function ignoreElements(): OperatorFunction { - return operate((source, subscriber) => { - source.subscribe(createOperatorSubscriber(subscriber, noop)); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/isEmpty.ts b/WechatBot/node_modules/rxjs/src/internal/operators/isEmpty.ts deleted file mode 100644 index 5de8deb9f..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/isEmpty.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Emits `false` if the input Observable emits any values, or emits `true` if the - * input Observable completes without emitting any values. - * - * Tells whether any values are emitted by an Observable. - * - * ![](isEmpty.png) - * - * `isEmpty` transforms an Observable that emits values into an Observable that - * emits a single boolean value representing whether or not any values were - * emitted by the source Observable. As soon as the source Observable emits a - * value, `isEmpty` will emit a `false` and complete. If the source Observable - * completes having not emitted anything, `isEmpty` will emit a `true` and - * complete. - * - * A similar effect could be achieved with {@link count}, but `isEmpty` can emit - * a `false` value sooner. - * - * ## Examples - * - * Emit `false` for a non-empty Observable - * - * ```ts - * import { Subject, isEmpty } from 'rxjs'; - * - * const source = new Subject(); - * const result = source.pipe(isEmpty()); - * - * source.subscribe(x => console.log(x)); - * result.subscribe(x => console.log(x)); - * - * source.next('a'); - * source.next('b'); - * source.next('c'); - * source.complete(); - * - * // Outputs - * // 'a' - * // false - * // 'b' - * // 'c' - * ``` - * - * Emit `true` for an empty Observable - * - * ```ts - * import { EMPTY, isEmpty } from 'rxjs'; - * - * const result = EMPTY.pipe(isEmpty()); - * result.subscribe(x => console.log(x)); - * - * // Outputs - * // true - * ``` - * - * @see {@link count} - * @see {@link EMPTY} - * - * @return A function that returns an Observable that emits boolean value - * indicating whether the source Observable was empty or not. - */ -export function isEmpty(): OperatorFunction { - return operate((source, subscriber) => { - source.subscribe( - createOperatorSubscriber( - subscriber, - () => { - subscriber.next(false); - subscriber.complete(); - }, - () => { - subscriber.next(true); - subscriber.complete(); - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/joinAllInternals.ts b/WechatBot/node_modules/rxjs/src/internal/operators/joinAllInternals.ts deleted file mode 100644 index 74876e9b7..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/joinAllInternals.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Observable } from '../Observable'; -import { ObservableInput, OperatorFunction } from '../types'; -import { identity } from '../util/identity'; -import { mapOneOrManyArgs } from '../util/mapOneOrManyArgs'; -import { pipe } from '../util/pipe'; -import { mergeMap } from './mergeMap'; -import { toArray } from './toArray'; - -/** - * Collects all of the inner sources from source observable. Then, once the - * source completes, joins the values using the given static. - * - * This is used for {@link combineLatestAll} and {@link zipAll} which both have the - * same behavior of collecting all inner observables, then operating on them. - * - * @param joinFn The type of static join to apply to the sources collected - * @param project The projection function to apply to the values, if any - */ -export function joinAllInternals(joinFn: (sources: ObservableInput[]) => Observable, project?: (...args: any[]) => R) { - return pipe( - // Collect all inner sources into an array, and emit them when the - // source completes. - toArray() as OperatorFunction, ObservableInput[]>, - // Run the join function on the collected array of inner sources. - mergeMap((sources) => joinFn(sources)), - // If a projection function was supplied, apply it to each result. - project ? mapOneOrManyArgs(project) : (identity as any) - ); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/last.ts b/WechatBot/node_modules/rxjs/src/internal/operators/last.ts deleted file mode 100644 index a046922f8..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/last.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { Observable } from '../Observable'; -import { EmptyError } from '../util/EmptyError'; -import { OperatorFunction, TruthyTypesOf } from '../types'; -import { filter } from './filter'; -import { takeLast } from './takeLast'; -import { throwIfEmpty } from './throwIfEmpty'; -import { defaultIfEmpty } from './defaultIfEmpty'; -import { identity } from '../util/identity'; - -export function last(predicate: BooleanConstructor): OperatorFunction>; -export function last(predicate: BooleanConstructor, defaultValue: D): OperatorFunction | D>; -export function last(predicate?: null, defaultValue?: D): OperatorFunction; -export function last( - predicate: (value: T, index: number, source: Observable) => value is S, - defaultValue?: S -): OperatorFunction; -export function last( - predicate: (value: T, index: number, source: Observable) => boolean, - defaultValue?: D -): OperatorFunction; - -/** - * Returns an Observable that emits only the last item emitted by the source Observable. - * It optionally takes a predicate function as a parameter, in which case, rather than emitting - * the last item from the source Observable, the resulting Observable will emit the last item - * from the source Observable that satisfies the predicate. - * - * ![](last.png) - * - * It will throw an error if the source completes without notification or one that matches the predicate. It - * returns the last value or if a predicate is provided last value that matches the predicate. It returns the - * given default value if no notification is emitted or matches the predicate. - * - * ## Examples - * - * Last alphabet from the sequence - * - * ```ts - * import { from, last } from 'rxjs'; - * - * const source = from(['x', 'y', 'z']); - * const result = source.pipe(last()); - * - * result.subscribe(value => console.log(`Last alphabet: ${ value }`)); - * - * // Outputs - * // Last alphabet: z - * ``` - * - * Default value when the value in the predicate is not matched - * - * ```ts - * import { from, last } from 'rxjs'; - * - * const source = from(['x', 'y', 'z']); - * const result = source.pipe(last(char => char === 'a', 'not found')); - * - * result.subscribe(value => console.log(`'a' is ${ value }.`)); - * - * // Outputs - * // 'a' is not found. - * ``` - * - * @see {@link skip} - * @see {@link skipUntil} - * @see {@link skipLast} - * @see {@link skipWhile} - * - * @throws {EmptyError} Delivers an EmptyError to the Observer's `error` - * callback if the Observable completes before any `next` notification was sent. - * @param {function} [predicate] - The condition any source emitted item has to satisfy. - * @param {any} [defaultValue] - An optional default value to provide if last - * predicate isn't met or no values were emitted. - * @return A function that returns an Observable that emits only the last item - * satisfying the given condition from the source, or a NoSuchElementException - * if no such items are emitted. - * @throws - Throws if no items that match the predicate are emitted by the source Observable. - */ -export function last( - predicate?: ((value: T, index: number, source: Observable) => boolean) | null, - defaultValue?: D -): OperatorFunction { - const hasDefaultValue = arguments.length >= 2; - return (source: Observable) => - source.pipe( - predicate ? filter((v, i) => predicate(v, i, source)) : identity, - takeLast(1), - hasDefaultValue ? defaultIfEmpty(defaultValue!) : throwIfEmpty(() => new EmptyError()) - ); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/map.ts b/WechatBot/node_modules/rxjs/src/internal/operators/map.ts deleted file mode 100644 index 35b548f78..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/map.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -export function map(project: (value: T, index: number) => R): OperatorFunction; -/** @deprecated Use a closure instead of a `thisArg`. Signatures accepting a `thisArg` will be removed in v8. */ -export function map(project: (this: A, value: T, index: number) => R, thisArg: A): OperatorFunction; - -/** - * Applies a given `project` function to each value emitted by the source - * Observable, and emits the resulting values as an Observable. - * - * Like [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map), - * it passes each source value through a transformation function to get - * corresponding output values. - * - * ![](map.png) - * - * Similar to the well known `Array.prototype.map` function, this operator - * applies a projection to each value and emits that projection in the output - * Observable. - * - * ## Example - * - * Map every click to the `clientX` position of that click - * - * ```ts - * import { fromEvent, map } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const positions = clicks.pipe(map(ev => ev.clientX)); - * - * positions.subscribe(x => console.log(x)); - * ``` - * - * @see {@link mapTo} - * @see {@link pluck} - * - * @param {function(value: T, index: number): R} project The function to apply - * to each `value` emitted by the source Observable. The `index` parameter is - * the number `i` for the i-th emission that has happened since the - * subscription, starting from the number `0`. - * @param {any} [thisArg] An optional argument to define what `this` is in the - * `project` function. - * @return A function that returns an Observable that emits the values from the - * source Observable transformed by the given `project` function. - */ -export function map(project: (value: T, index: number) => R, thisArg?: any): OperatorFunction { - return operate((source, subscriber) => { - // The index of the value from the source. Used with projection. - let index = 0; - // Subscribe to the source, all errors and completions are sent along - // to the consumer. - source.subscribe( - createOperatorSubscriber(subscriber, (value: T) => { - // Call the projection function with the appropriate this context, - // and send the resulting value to the consumer. - subscriber.next(project.call(thisArg, value, index++)); - }) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/mapTo.ts b/WechatBot/node_modules/rxjs/src/internal/operators/mapTo.ts deleted file mode 100644 index 9fb8a8eee..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/mapTo.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { OperatorFunction } from '../types'; -import { map } from './map'; - -/** @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`. */ -export function mapTo(value: R): OperatorFunction; -/** - * @deprecated Do not specify explicit type parameters. Signatures with type parameters - * that cannot be inferred will be removed in v8. `mapTo` itself will be removed in v9, - * use {@link map} instead: `map(() => value)`. - * */ -export function mapTo(value: R): OperatorFunction; - -/** - * Emits the given constant value on the output Observable every time the source - * Observable emits a value. - * - * Like {@link map}, but it maps every source value to - * the same output value every time. - * - * ![](mapTo.png) - * - * Takes a constant `value` as argument, and emits that whenever the source - * Observable emits a value. In other words, ignores the actual source value, - * and simply uses the emission moment to know when to emit the given `value`. - * - * ## Example - * - * Map every click to the string `'Hi'` - * - * ```ts - * import { fromEvent, mapTo } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const greetings = clicks.pipe(mapTo('Hi')); - * - * greetings.subscribe(x => console.log(x)); - * ``` - * - * @see {@link map} - * - * @param value The value to map each source value to. - * @return A function that returns an Observable that emits the given `value` - * every time the source Observable emits. - * @deprecated To be removed in v9. Use {@link map} instead: `map(() => value)`. - */ -export function mapTo(value: R): OperatorFunction { - return map(() => value); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/materialize.ts b/WechatBot/node_modules/rxjs/src/internal/operators/materialize.ts deleted file mode 100644 index 5f9a629c1..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/materialize.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { Notification } from '../Notification'; -import { OperatorFunction, ObservableNotification } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Represents all of the notifications from the source Observable as `next` - * emissions marked with their original types within {@link Notification} - * objects. - * - * Wraps `next`, `error` and `complete` emissions in - * {@link Notification} objects, emitted as `next` on the output Observable. - * - * - * ![](materialize.png) - * - * `materialize` returns an Observable that emits a `next` notification for each - * `next`, `error`, or `complete` emission of the source Observable. When the - * source Observable emits `complete`, the output Observable will emit `next` as - * a Notification of type "complete", and then it will emit `complete` as well. - * When the source Observable emits `error`, the output will emit `next` as a - * Notification of type "error", and then `complete`. - * - * This operator is useful for producing metadata of the source Observable, to - * be consumed as `next` emissions. Use it in conjunction with - * {@link dematerialize}. - * - * ## Example - * - * Convert a faulty Observable to an Observable of Notifications - * - * ```ts - * import { of, materialize, map } from 'rxjs'; - * - * const letters = of('a', 'b', 13, 'd'); - * const upperCase = letters.pipe(map((x: any) => x.toUpperCase())); - * const materialized = upperCase.pipe(materialize()); - * - * materialized.subscribe(x => console.log(x)); - * - * // Results in the following: - * // - Notification { kind: 'N', value: 'A', error: undefined, hasValue: true } - * // - Notification { kind: 'N', value: 'B', error: undefined, hasValue: true } - * // - Notification { kind: 'E', value: undefined, error: TypeError { message: x.toUpperCase is not a function }, hasValue: false } - * ``` - * - * @see {@link Notification} - * @see {@link dematerialize} - * - * @return A function that returns an Observable that emits - * {@link Notification} objects that wrap the original emissions from the - * source Observable with metadata. - */ -export function materialize(): OperatorFunction & ObservableNotification> { - return operate((source, subscriber) => { - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - subscriber.next(Notification.createNext(value)); - }, - () => { - subscriber.next(Notification.createComplete()); - subscriber.complete(); - }, - (err) => { - subscriber.next(Notification.createError(err)); - subscriber.complete(); - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/max.ts b/WechatBot/node_modules/rxjs/src/internal/operators/max.ts deleted file mode 100644 index b3c5fcbc7..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/max.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { reduce } from './reduce'; -import { MonoTypeOperatorFunction } from '../types'; -import { isFunction } from '../util/isFunction'; - -/** - * The Max operator operates on an Observable that emits numbers (or items that can be compared with a provided function), - * and when source Observable completes it emits a single item: the item with the largest value. - * - * ![](max.png) - * - * ## Examples - * - * Get the maximal value of a series of numbers - * - * ```ts - * import { of, max } from 'rxjs'; - * - * of(5, 4, 7, 2, 8) - * .pipe(max()) - * .subscribe(x => console.log(x)); - * - * // Outputs - * // 8 - * ``` - * - * Use a comparer function to get the maximal item - * - * ```ts - * import { of, max } from 'rxjs'; - * - * of( - * { age: 7, name: 'Foo' }, - * { age: 5, name: 'Bar' }, - * { age: 9, name: 'Beer' } - * ).pipe( - * max((a, b) => a.age < b.age ? -1 : 1) - * ) - * .subscribe(x => console.log(x.name)); - * - * // Outputs - * // 'Beer' - * ``` - * - * @see {@link min} - * - * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the - * value of two items. - * @return A function that returns an Observable that emits item with the - * largest value. - */ -export function max(comparer?: (x: T, y: T) => number): MonoTypeOperatorFunction { - return reduce(isFunction(comparer) ? (x, y) => (comparer(x, y) > 0 ? x : y) : (x, y) => (x > y ? x : y)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/merge.ts b/WechatBot/node_modules/rxjs/src/internal/operators/merge.ts deleted file mode 100644 index d7cae4e3c..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/merge.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { ObservableInput, ObservableInputTuple, OperatorFunction, SchedulerLike } from '../types'; -import { operate } from '../util/lift'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { mergeAll } from './mergeAll'; -import { popNumber, popScheduler } from '../util/args'; -import { from } from '../observable/from'; - -/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */ -export function merge(...sources: [...ObservableInputTuple]): OperatorFunction; -/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */ -export function merge( - ...sourcesAndConcurrency: [...ObservableInputTuple, number] -): OperatorFunction; -/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */ -export function merge( - ...sourcesAndScheduler: [...ObservableInputTuple, SchedulerLike] -): OperatorFunction; -/** @deprecated Replaced with {@link mergeWith}. Will be removed in v8. */ -export function merge( - ...sourcesAndConcurrencyAndScheduler: [...ObservableInputTuple, number, SchedulerLike] -): OperatorFunction; - -export function merge(...args: unknown[]): OperatorFunction { - const scheduler = popScheduler(args); - const concurrent = popNumber(args, Infinity); - args = argsOrArgArray(args); - - return operate((source, subscriber) => { - mergeAll(concurrent)(from([source, ...(args as ObservableInput[])], scheduler)).subscribe(subscriber); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/mergeAll.ts b/WechatBot/node_modules/rxjs/src/internal/operators/mergeAll.ts deleted file mode 100644 index 9183badac..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/mergeAll.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { mergeMap } from './mergeMap'; -import { identity } from '../util/identity'; -import { OperatorFunction, ObservableInput, ObservedValueOf } from '../types'; - -/** - * Converts a higher-order Observable into a first-order Observable which - * concurrently delivers all values that are emitted on the inner Observables. - * - * Flattens an Observable-of-Observables. - * - * ![](mergeAll.png) - * - * `mergeAll` subscribes to an Observable that emits Observables, also known as - * a higher-order Observable. Each time it observes one of these emitted inner - * Observables, it subscribes to that and delivers all the values from the - * inner Observable on the output Observable. The output Observable only - * completes once all inner Observables have completed. Any error delivered by - * a inner Observable will be immediately emitted on the output Observable. - * - * ## Examples - * - * Spawn a new interval Observable for each click event, and blend their outputs as one Observable - * - * ```ts - * import { fromEvent, map, interval, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const higherOrder = clicks.pipe(map(() => interval(1000))); - * const firstOrder = higherOrder.pipe(mergeAll()); - * - * firstOrder.subscribe(x => console.log(x)); - * ``` - * - * Count from 0 to 9 every second for each click, but only allow 2 concurrent timers - * - * ```ts - * import { fromEvent, map, interval, take, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const higherOrder = clicks.pipe( - * map(() => interval(1000).pipe(take(10))) - * ); - * const firstOrder = higherOrder.pipe(mergeAll(2)); - * - * firstOrder.subscribe(x => console.log(x)); - * ``` - * - * @see {@link combineLatestAll} - * @see {@link concatAll} - * @see {@link exhaustAll} - * @see {@link merge} - * @see {@link mergeMap} - * @see {@link mergeMapTo} - * @see {@link mergeScan} - * @see {@link switchAll} - * @see {@link switchMap} - * @see {@link zipAll} - * - * @param {number} [concurrent=Infinity] Maximum number of inner - * Observables being subscribed to concurrently. - * @return A function that returns an Observable that emits values coming from - * all the inner Observables emitted by the source Observable. - */ -export function mergeAll>(concurrent: number = Infinity): OperatorFunction> { - return mergeMap(identity, concurrent); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/mergeInternals.ts b/WechatBot/node_modules/rxjs/src/internal/operators/mergeInternals.ts deleted file mode 100644 index dab3a2b4d..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/mergeInternals.ts +++ /dev/null @@ -1,149 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from '../observable/innerFrom'; -import { Subscriber } from '../Subscriber'; -import { ObservableInput, SchedulerLike } from '../types'; -import { executeSchedule } from '../util/executeSchedule'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * A process embodying the general "merge" strategy. This is used in - * `mergeMap` and `mergeScan` because the logic is otherwise nearly identical. - * @param source The original source observable - * @param subscriber The consumer subscriber - * @param project The projection function to get our inner sources - * @param concurrent The number of concurrent inner subscriptions - * @param onBeforeNext Additional logic to apply before nexting to our consumer - * @param expand If `true` this will perform an "expand" strategy, which differs only - * in that it recurses, and the inner subscription must be schedule-able. - * @param innerSubScheduler A scheduler to use to schedule inner subscriptions, - * this is to support the expand strategy, mostly, and should be deprecated - */ -export function mergeInternals( - source: Observable, - subscriber: Subscriber, - project: (value: T, index: number) => ObservableInput, - concurrent: number, - onBeforeNext?: (innerValue: R) => void, - expand?: boolean, - innerSubScheduler?: SchedulerLike, - additionalFinalizer?: () => void -) { - // Buffered values, in the event of going over our concurrency limit - const buffer: T[] = []; - // The number of active inner subscriptions. - let active = 0; - // An index to pass to our accumulator function - let index = 0; - // Whether or not the outer source has completed. - let isComplete = false; - - /** - * Checks to see if we can complete our result or not. - */ - const checkComplete = () => { - // If the outer has completed, and nothing is left in the buffer, - // and we don't have any active inner subscriptions, then we can - // Emit the state and complete. - if (isComplete && !buffer.length && !active) { - subscriber.complete(); - } - }; - - // If we're under our concurrency limit, just start the inner subscription, otherwise buffer and wait. - const outerNext = (value: T) => (active < concurrent ? doInnerSub(value) : buffer.push(value)); - - const doInnerSub = (value: T) => { - // If we're expanding, we need to emit the outer values and the inner values - // as the inners will "become outers" in a way as they are recursively fed - // back to the projection mechanism. - expand && subscriber.next(value as any); - - // Increment the number of active subscriptions so we can track it - // against our concurrency limit later. - active++; - - // A flag used to show that the inner observable completed. - // This is checked during finalization to see if we should - // move to the next item in the buffer, if there is on. - let innerComplete = false; - - // Start our inner subscription. - innerFrom(project(value, index++)).subscribe( - createOperatorSubscriber( - subscriber, - (innerValue) => { - // `mergeScan` has additional handling here. For example - // taking the inner value and updating state. - onBeforeNext?.(innerValue); - - if (expand) { - // If we're expanding, then just recurse back to our outer - // handler. It will emit the value first thing. - outerNext(innerValue as any); - } else { - // Otherwise, emit the inner value. - subscriber.next(innerValue); - } - }, - () => { - // Flag that we have completed, so we know to check the buffer - // during finalization. - innerComplete = true; - }, - // Errors are passed to the destination. - undefined, - () => { - // During finalization, if the inner completed (it wasn't errored or - // cancelled), then we want to try the next item in the buffer if - // there is one. - if (innerComplete) { - // We have to wrap this in a try/catch because it happens during - // finalization, possibly asynchronously, and we want to pass - // any errors that happen (like in a projection function) to - // the outer Subscriber. - try { - // INNER SOURCE COMPLETE - // Decrement the active count to ensure that the next time - // we try to call `doInnerSub`, the number is accurate. - active--; - // If we have more values in the buffer, try to process those - // Note that this call will increment `active` ahead of the - // next conditional, if there were any more inner subscriptions - // to start. - while (buffer.length && active < concurrent) { - const bufferedValue = buffer.shift()!; - // Particularly for `expand`, we need to check to see if a scheduler was provided - // for when we want to start our inner subscription. Otherwise, we just start - // are next inner subscription. - if (innerSubScheduler) { - executeSchedule(subscriber, innerSubScheduler, () => doInnerSub(bufferedValue)); - } else { - doInnerSub(bufferedValue); - } - } - // Check to see if we can complete, and complete if so. - checkComplete(); - } catch (err) { - subscriber.error(err); - } - } - } - ) - ); - }; - - // Subscribe to our source observable. - source.subscribe( - createOperatorSubscriber(subscriber, outerNext, () => { - // Outer completed, make a note of it, and check to see if we can complete everything. - isComplete = true; - checkComplete(); - }) - ); - - // Additional finalization (for when the destination is torn down). - // Other finalization is added implicitly via subscription above. - return () => { - additionalFinalizer?.(); - }; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/mergeMap.ts b/WechatBot/node_modules/rxjs/src/internal/operators/mergeMap.ts deleted file mode 100644 index 6a8807618..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/mergeMap.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -import { map } from './map'; -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { mergeInternals } from './mergeInternals'; -import { isFunction } from '../util/isFunction'; - -/* tslint:disable:max-line-length */ -export function mergeMap>( - project: (value: T, index: number) => O, - concurrent?: number -): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function mergeMap>( - project: (value: T, index: number) => O, - resultSelector: undefined, - concurrent?: number -): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function mergeMap>( - project: (value: T, index: number) => O, - resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R, - concurrent?: number -): OperatorFunction; -/* tslint:enable:max-line-length */ - -/** - * Projects each source value to an Observable which is merged in the output - * Observable. - * - * Maps each value to an Observable, then flattens all of - * these inner Observables using {@link mergeAll}. - * - * ![](mergeMap.png) - * - * Returns an Observable that emits items based on applying a function that you - * supply to each item emitted by the source Observable, where that function - * returns an Observable, and then merging those resulting Observables and - * emitting the results of this merger. - * - * ## Example - * - * Map and flatten each letter to an Observable ticking every 1 second - * - * ```ts - * import { of, mergeMap, interval, map } from 'rxjs'; - * - * const letters = of('a', 'b', 'c'); - * const result = letters.pipe( - * mergeMap(x => interval(1000).pipe(map(i => x + i))) - * ); - * - * result.subscribe(x => console.log(x)); - * - * // Results in the following: - * // a0 - * // b0 - * // c0 - * // a1 - * // b1 - * // c1 - * // continues to list a, b, c every second with respective ascending integers - * ``` - * - * @see {@link concatMap} - * @see {@link exhaustMap} - * @see {@link merge} - * @see {@link mergeAll} - * @see {@link mergeMapTo} - * @see {@link mergeScan} - * @see {@link switchMap} - * - * @param {function(value: T, ?index: number): ObservableInput} project A function - * that, when applied to an item emitted by the source Observable, returns an - * Observable. - * @param {number} [concurrent=Infinity] Maximum number of input - * Observables being subscribed to concurrently. - * @return A function that returns an Observable that emits the result of - * applying the projection function (and the optional deprecated - * `resultSelector`) to each item emitted by the source Observable and merging - * the results of the Observables obtained from this transformation. - */ -export function mergeMap>( - project: (value: T, index: number) => O, - resultSelector?: ((outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R) | number, - concurrent: number = Infinity -): OperatorFunction | R> { - if (isFunction(resultSelector)) { - // DEPRECATED PATH - return mergeMap((a, i) => map((b: any, ii: number) => resultSelector(a, b, i, ii))(innerFrom(project(a, i))), concurrent); - } else if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - - return operate((source, subscriber) => mergeInternals(source, subscriber, project, concurrent)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/mergeMapTo.ts b/WechatBot/node_modules/rxjs/src/internal/operators/mergeMapTo.ts deleted file mode 100644 index b45740197..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/mergeMapTo.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { OperatorFunction, ObservedValueOf, ObservableInput } from '../types'; -import { mergeMap } from './mergeMap'; -import { isFunction } from '../util/isFunction'; - -/** @deprecated Will be removed in v9. Use {@link mergeMap} instead: `mergeMap(() => result)` */ -export function mergeMapTo>( - innerObservable: O, - concurrent?: number -): OperatorFunction>; -/** - * @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. - * Details: https://rxjs.dev/deprecations/resultSelector - */ -export function mergeMapTo>( - innerObservable: O, - resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R, - concurrent?: number -): OperatorFunction; -/* tslint:enable:max-line-length */ - -/** - * Projects each source value to the same Observable which is merged multiple - * times in the output Observable. - * - * It's like {@link mergeMap}, but maps each value always - * to the same inner Observable. - * - * ![](mergeMapTo.png) - * - * Maps each source value to the given Observable `innerObservable` regardless - * of the source value, and then merges those resulting Observables into one - * single Observable, which is the output Observable. - * - * ## Example - * - * For each click event, start an interval Observable ticking every 1 second - * - * ```ts - * import { fromEvent, mergeMapTo, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(mergeMapTo(interval(1000))); - * - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link concatMapTo} - * @see {@link merge} - * @see {@link mergeAll} - * @see {@link mergeMap} - * @see {@link mergeScan} - * @see {@link switchMapTo} - * - * @param {ObservableInput} innerObservable An Observable to replace each value from - * the source Observable. - * @param {number} [concurrent=Infinity] Maximum number of input - * Observables being subscribed to concurrently. - * @return A function that returns an Observable that emits items from the - * given `innerObservable`. - * @deprecated Will be removed in v9. Use {@link mergeMap} instead: `mergeMap(() => result)` - */ -export function mergeMapTo>( - innerObservable: O, - resultSelector?: ((outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R) | number, - concurrent: number = Infinity -): OperatorFunction | R> { - if (isFunction(resultSelector)) { - return mergeMap(() => innerObservable, resultSelector, concurrent); - } - if (typeof resultSelector === 'number') { - concurrent = resultSelector; - } - return mergeMap(() => innerObservable, concurrent); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/mergeScan.ts b/WechatBot/node_modules/rxjs/src/internal/operators/mergeScan.ts deleted file mode 100644 index 6e1e37c9c..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/mergeScan.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { ObservableInput, OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { mergeInternals } from './mergeInternals'; - -/** - * Applies an accumulator function over the source Observable where the - * accumulator function itself returns an Observable, then each intermediate - * Observable returned is merged into the output Observable. - * - * It's like {@link scan}, but the Observables returned - * by the accumulator are merged into the outer Observable. - * - * The first parameter of the `mergeScan` is an `accumulator` function which is - * being called every time the source Observable emits a value. `mergeScan` will - * subscribe to the value returned by the `accumulator` function and will emit - * values to the subscriber emitted by inner Observable. - * - * The `accumulator` function is being called with three parameters passed to it: - * `acc`, `value` and `index`. The `acc` parameter is used as the state parameter - * whose value is initially set to the `seed` parameter (the second parameter - * passed to the `mergeScan` operator). - * - * `mergeScan` internally keeps the value of the `acc` parameter: as long as the - * source Observable emits without inner Observable emitting, the `acc` will be - * set to `seed`. The next time the inner Observable emits a value, `mergeScan` - * will internally remember it and it will be passed to the `accumulator` - * function as `acc` parameter the next time source emits. - * - * The `value` parameter of the `accumulator` function is the value emitted by the - * source Observable, while the `index` is a number which represent the order of the - * current emission by the source Observable. It starts with 0. - * - * The last parameter to the `mergeScan` is the `concurrent` value which defaults - * to Infinity. It represents the maximum number of inner Observable subscriptions - * at a time. - * - * ## Example - * - * Count the number of click events - * - * ```ts - * import { fromEvent, map, mergeScan, of } from 'rxjs'; - * - * const click$ = fromEvent(document, 'click'); - * const one$ = click$.pipe(map(() => 1)); - * const seed = 0; - * const count$ = one$.pipe( - * mergeScan((acc, one) => of(acc + one), seed) - * ); - * - * count$.subscribe(x => console.log(x)); - * - * // Results: - * // 1 - * // 2 - * // 3 - * // 4 - * // ...and so on for each click - * ``` - * - * @see {@link scan} - * @see {@link switchScan} - * - * @param {function(acc: R, value: T): Observable} accumulator - * The accumulator function called on each source value. - * @param seed The initial accumulation value. - * @param {number} [concurrent=Infinity] Maximum number of - * input Observables being subscribed to concurrently. - * @return A function that returns an Observable of the accumulated values. - */ -export function mergeScan( - accumulator: (acc: R, value: T, index: number) => ObservableInput, - seed: R, - concurrent = Infinity -): OperatorFunction { - return operate((source, subscriber) => { - // The accumulated state. - let state = seed; - - return mergeInternals( - source, - subscriber, - (value, index) => accumulator(state, value, index), - concurrent, - (value) => { - state = value; - }, - false, - undefined, - () => (state = null!) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/mergeWith.ts b/WechatBot/node_modules/rxjs/src/internal/operators/mergeWith.ts deleted file mode 100644 index b0c81426f..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/mergeWith.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { ObservableInputTuple, OperatorFunction } from '../types'; -import { merge } from './merge'; - -/** - * Merge the values from all observables to a single observable result. - * - * Creates an observable, that when subscribed to, subscribes to the source - * observable, and all other sources provided as arguments. All values from - * every source are emitted from the resulting subscription. - * - * When all sources complete, the resulting observable will complete. - * - * When any source errors, the resulting observable will error. - * - * ## Example - * - * Joining all outputs from multiple user input event streams - * - * ```ts - * import { fromEvent, map, mergeWith } from 'rxjs'; - * - * const clicks$ = fromEvent(document, 'click').pipe(map(() => 'click')); - * const mousemoves$ = fromEvent(document, 'mousemove').pipe(map(() => 'mousemove')); - * const dblclicks$ = fromEvent(document, 'dblclick').pipe(map(() => 'dblclick')); - * - * mousemoves$ - * .pipe(mergeWith(clicks$, dblclicks$)) - * .subscribe(x => console.log(x)); - * - * // result (assuming user interactions) - * // 'mousemove' - * // 'mousemove' - * // 'mousemove' - * // 'click' - * // 'click' - * // 'dblclick' - * ``` - * - * @see {@link merge} - * - * @param otherSources the sources to combine the current source with. - * @return A function that returns an Observable that merges the values from - * all given Observables. - */ -export function mergeWith( - ...otherSources: [...ObservableInputTuple] -): OperatorFunction { - return merge(...otherSources); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/min.ts b/WechatBot/node_modules/rxjs/src/internal/operators/min.ts deleted file mode 100644 index bef78d1c5..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/min.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { reduce } from './reduce'; -import { MonoTypeOperatorFunction } from '../types'; -import { isFunction } from '../util/isFunction'; - -/** - * The Min operator operates on an Observable that emits numbers (or items that can be compared with a provided function), - * and when source Observable completes it emits a single item: the item with the smallest value. - * - * ![](min.png) - * - * ## Examples - * - * Get the minimal value of a series of numbers - * - * ```ts - * import { of, min } from 'rxjs'; - * - * of(5, 4, 7, 2, 8) - * .pipe(min()) - * .subscribe(x => console.log(x)); - * - * // Outputs - * // 2 - * ``` - * - * Use a comparer function to get the minimal item - * - * ```ts - * import { of, min } from 'rxjs'; - * - * of( - * { age: 7, name: 'Foo' }, - * { age: 5, name: 'Bar' }, - * { age: 9, name: 'Beer' } - * ).pipe( - * min((a, b) => a.age < b.age ? -1 : 1) - * ) - * .subscribe(x => console.log(x.name)); - * - * // Outputs - * // 'Bar' - * ``` - * - * @see {@link max} - * - * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the - * value of two items. - * @return A function that returns an Observable that emits item with the - * smallest value. - */ -export function min(comparer?: (x: T, y: T) => number): MonoTypeOperatorFunction { - return reduce(isFunction(comparer) ? (x, y) => (comparer(x, y) < 0 ? x : y) : (x, y) => (x < y ? x : y)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/multicast.ts b/WechatBot/node_modules/rxjs/src/internal/operators/multicast.ts deleted file mode 100644 index 4ea03d2f4..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/multicast.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { Subject } from '../Subject'; -import { Observable } from '../Observable'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -import { OperatorFunction, UnaryFunction, ObservedValueOf, ObservableInput } from '../types'; -import { isFunction } from '../util/isFunction'; -import { connect } from './connect'; - -/** - * An operator that creates a {@link ConnectableObservable}, that when connected, - * with the `connect` method, will use the provided subject to multicast the values - * from the source to all consumers. - * - * @param subject The subject to multicast through. - * @return A function that returns a {@link ConnectableObservable} - * @deprecated Will be removed in v8. To create a connectable observable, use {@link connectable}. - * If you're using {@link refCount} after `multicast`, use the {@link share} operator instead. - * `multicast(subject), refCount()` is equivalent to - * `share({ connector: () => subject, resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function multicast(subject: Subject): UnaryFunction, ConnectableObservable>; - -/** - * Because this is deprecated in favor of the {@link connect} operator, and was otherwise poorly documented, - * rather than duplicate the effort of documenting the same behavior, please see documentation for the - * {@link connect} operator. - * - * @param subject The subject used to multicast. - * @param selector A setup function to setup the multicast - * @return A function that returns an observable that mirrors the observable returned by the selector. - * @deprecated Will be removed in v8. Use the {@link connect} operator instead. - * `multicast(subject, selector)` is equivalent to - * `connect(selector, { connector: () => subject })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function multicast>( - subject: Subject, - selector: (shared: Observable) => O -): OperatorFunction>; - -/** - * An operator that creates a {@link ConnectableObservable}, that when connected, - * with the `connect` method, will use the provided subject to multicast the values - * from the source to all consumers. - * - * @param subjectFactory A factory that will be called to create the subject. Passing a function here - * will cause the underlying subject to be "reset" on error, completion, or refCounted unsubscription of - * the source. - * @return A function that returns a {@link ConnectableObservable} - * @deprecated Will be removed in v8. To create a connectable observable, use {@link connectable}. - * If you're using {@link refCount} after `multicast`, use the {@link share} operator instead. - * `multicast(() => new BehaviorSubject('test')), refCount()` is equivalent to - * `share({ connector: () => new BehaviorSubject('test') })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function multicast(subjectFactory: () => Subject): UnaryFunction, ConnectableObservable>; - -/** - * Because this is deprecated in favor of the {@link connect} operator, and was otherwise poorly documented, - * rather than duplicate the effort of documenting the same behavior, please see documentation for the - * {@link connect} operator. - * - * @param subjectFactory A factory that creates the subject used to multicast. - * @param selector A function to setup the multicast and select the output. - * @return A function that returns an observable that mirrors the observable returned by the selector. - * @deprecated Will be removed in v8. Use the {@link connect} operator instead. - * `multicast(subjectFactory, selector)` is equivalent to - * `connect(selector, { connector: subjectFactory })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function multicast>( - subjectFactory: () => Subject, - selector: (shared: Observable) => O -): OperatorFunction>; - -/** - * @deprecated Will be removed in v8. Use the {@link connectable} observable, the {@link connect} operator or the - * {@link share} operator instead. See the overloads below for equivalent replacement examples of this operator's - * behaviors. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function multicast( - subjectOrSubjectFactory: Subject | (() => Subject), - selector?: (source: Observable) => Observable -): OperatorFunction { - const subjectFactory = isFunction(subjectOrSubjectFactory) ? subjectOrSubjectFactory : () => subjectOrSubjectFactory; - - if (isFunction(selector)) { - // If a selector function is provided, then we're a "normal" operator that isn't - // going to return a ConnectableObservable. We can use `connect` to do what we - // need to do. - return connect(selector, { - connector: subjectFactory, - }); - } - - return (source: Observable) => new ConnectableObservable(source, subjectFactory); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/observeOn.ts b/WechatBot/node_modules/rxjs/src/internal/operators/observeOn.ts deleted file mode 100644 index bd37111fc..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/observeOn.ts +++ /dev/null @@ -1,70 +0,0 @@ -/** @prettier */ -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -import { executeSchedule } from '../util/executeSchedule'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Re-emits all notifications from source Observable with specified scheduler. - * - * Ensure a specific scheduler is used, from outside of an Observable. - * - * `observeOn` is an operator that accepts a scheduler as a first parameter, which will be used to reschedule - * notifications emitted by the source Observable. It might be useful, if you do not have control over - * internal scheduler of a given Observable, but want to control when its values are emitted nevertheless. - * - * Returned Observable emits the same notifications (nexted values, complete and error events) as the source Observable, - * but rescheduled with provided scheduler. Note that this doesn't mean that source Observables internal - * scheduler will be replaced in any way. Original scheduler still will be used, but when the source Observable emits - * notification, it will be immediately scheduled again - this time with scheduler passed to `observeOn`. - * An anti-pattern would be calling `observeOn` on Observable that emits lots of values synchronously, to split - * that emissions into asynchronous chunks. For this to happen, scheduler would have to be passed into the source - * Observable directly (usually into the operator that creates it). `observeOn` simply delays notifications a - * little bit more, to ensure that they are emitted at expected moments. - * - * As a matter of fact, `observeOn` accepts second parameter, which specifies in milliseconds with what delay notifications - * will be emitted. The main difference between {@link delay} operator and `observeOn` is that `observeOn` - * will delay all notifications - including error notifications - while `delay` will pass through error - * from source Observable immediately when it is emitted. In general it is highly recommended to use `delay` operator - * for any kind of delaying of values in the stream, while using `observeOn` to specify which scheduler should be used - * for notification emissions in general. - * - * ## Example - * - * Ensure values in subscribe are called just before browser repaint - * - * ```ts - * import { interval, observeOn, animationFrameScheduler } from 'rxjs'; - * - * const someDiv = document.createElement('div'); - * someDiv.style.cssText = 'width: 200px;background: #09c'; - * document.body.appendChild(someDiv); - * const intervals = interval(10); // Intervals are scheduled - * // with async scheduler by default... - * intervals.pipe( - * observeOn(animationFrameScheduler) // ...but we will observe on animationFrame - * ) // scheduler to ensure smooth animation. - * .subscribe(val => { - * someDiv.style.height = val + 'px'; - * }); - * ``` - * - * @see {@link delay} - * - * @param scheduler Scheduler that will be used to reschedule notifications from source Observable. - * @param delay Number of milliseconds that states with what delay every notification should be rescheduled. - * @return A function that returns an Observable that emits the same - * notifications as the source Observable, but with provided scheduler. - */ -export function observeOn(scheduler: SchedulerLike, delay = 0): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => executeSchedule(subscriber, scheduler, () => subscriber.next(value), delay), - () => executeSchedule(subscriber, scheduler, () => subscriber.complete(), delay), - (err) => executeSchedule(subscriber, scheduler, () => subscriber.error(err), delay) - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/onErrorResumeNextWith.ts b/WechatBot/node_modules/rxjs/src/internal/operators/onErrorResumeNextWith.ts deleted file mode 100644 index 9bcac812a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/onErrorResumeNextWith.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { ObservableInputTuple, OperatorFunction } from '../types'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { onErrorResumeNext as oERNCreate } from '../observable/onErrorResumeNext'; - -export function onErrorResumeNextWith( - sources: [...ObservableInputTuple] -): OperatorFunction; -export function onErrorResumeNextWith( - ...sources: [...ObservableInputTuple] -): OperatorFunction; - -/** - * When any of the provided Observable emits an complete or error notification, it immediately subscribes to the next one - * that was passed. - * - * Execute series of Observables, subscribes to next one on error or complete. - * - * ![](onErrorResumeNext.png) - * - * `onErrorResumeNext` is an operator that accepts a series of Observables, provided either directly as - * arguments or as an array. If no single Observable is provided, returned Observable will simply behave the same - * as the source. - * - * `onErrorResumeNext` returns an Observable that starts by subscribing and re-emitting values from the source Observable. - * When its stream of values ends - no matter if Observable completed or emitted an error - `onErrorResumeNext` - * will subscribe to the first Observable that was passed as an argument to the method. It will start re-emitting - * its values as well and - again - when that stream ends, `onErrorResumeNext` will proceed to subscribing yet another - * Observable in provided series, no matter if previous Observable completed or ended with an error. This will - * be happening until there is no more Observables left in the series, at which point returned Observable will - * complete - even if the last subscribed stream ended with an error. - * - * `onErrorResumeNext` can be therefore thought of as version of {@link concat} operator, which is more permissive - * when it comes to the errors emitted by its input Observables. While `concat` subscribes to the next Observable - * in series only if previous one successfully completed, `onErrorResumeNext` subscribes even if it ended with - * an error. - * - * Note that you do not get any access to errors emitted by the Observables. In particular do not - * expect these errors to appear in error callback passed to {@link Observable#subscribe}. If you want to take - * specific actions based on what error was emitted by an Observable, you should try out {@link catchError} instead. - * - * - * ## Example - * - * Subscribe to the next Observable after map fails - * - * ```ts - * import { of, onErrorResumeNext, map } from 'rxjs'; - * - * of(1, 2, 3, 0) - * .pipe( - * map(x => { - * if (x === 0) { - * throw Error(); - * } - * - * return 10 / x; - * }), - * onErrorResumeNext(of(1, 2, 3)) - * ) - * .subscribe({ - * next: val => console.log(val), - * error: err => console.log(err), // Will never be called. - * complete: () => console.log('that\'s it!') - * }); - * - * // Logs: - * // 10 - * // 5 - * // 3.3333333333333335 - * // 1 - * // 2 - * // 3 - * // 'that's it!' - * ``` - * - * @see {@link concat} - * @see {@link catchError} - * - * @param {...ObservableInput} sources Observables passed either directly or as an array. - * @return A function that returns an Observable that emits values from source - * Observable, but - if it errors - subscribes to the next passed Observable - * and so on, until it completes or runs out of Observables. - */ -export function onErrorResumeNextWith( - ...sources: [[...ObservableInputTuple]] | [...ObservableInputTuple] -): OperatorFunction { - // For some reason, TS 4.1 RC gets the inference wrong here and infers the - // result to be `A[number][]` - completely dropping the ObservableInput part - // of the type. This makes no sense whatsoever. As a workaround, the type is - // asserted explicitly. - const nextSources = argsOrArgArray(sources) as unknown as ObservableInputTuple; - - return (source) => oERNCreate(source, ...nextSources); -} - -/** - * @deprecated Renamed. Use {@link onErrorResumeNextWith} instead. Will be removed in v8. - */ -export const onErrorResumeNext = onErrorResumeNextWith; diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/pairwise.ts b/WechatBot/node_modules/rxjs/src/internal/operators/pairwise.ts deleted file mode 100644 index e2b0eba00..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/pairwise.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Groups pairs of consecutive emissions together and emits them as an array of - * two values. - * - * Puts the current value and previous value together as - * an array, and emits that. - * - * ![](pairwise.png) - * - * The Nth emission from the source Observable will cause the output Observable - * to emit an array [(N-1)th, Nth] of the previous and the current value, as a - * pair. For this reason, `pairwise` emits on the second and subsequent - * emissions from the source Observable, but not on the first emission, because - * there is no previous value in that case. - * - * ## Example - * - * On every click (starting from the second), emit the relative distance to the previous click - * - * ```ts - * import { fromEvent, pairwise, map } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const pairs = clicks.pipe(pairwise()); - * const distance = pairs.pipe( - * map(([first, second]) => { - * const x0 = first.clientX; - * const y0 = first.clientY; - * const x1 = second.clientX; - * const y1 = second.clientY; - * return Math.sqrt(Math.pow(x0 - x1, 2) + Math.pow(y0 - y1, 2)); - * }) - * ); - * - * distance.subscribe(x => console.log(x)); - * ``` - * - * @see {@link buffer} - * @see {@link bufferCount} - * - * @return A function that returns an Observable of pairs (as arrays) of - * consecutive values from the source Observable. - */ -export function pairwise(): OperatorFunction { - return operate((source, subscriber) => { - let prev: T; - let hasPrev = false; - source.subscribe( - createOperatorSubscriber(subscriber, (value) => { - const p = prev; - prev = value; - hasPrev && subscriber.next([p, value]); - hasPrev = true; - }) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/partition.ts b/WechatBot/node_modules/rxjs/src/internal/operators/partition.ts deleted file mode 100644 index 9b02a0c0b..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/partition.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { not } from '../util/not'; -import { filter } from './filter'; -import { Observable } from '../Observable'; -import { UnaryFunction } from '../types'; - -/** - * Splits the source Observable into two, one with values that satisfy a - * predicate, and another with values that don't satisfy the predicate. - * - * It's like {@link filter}, but returns two Observables: - * one like the output of {@link filter}, and the other with values that did not - * pass the condition. - * - * ![](partition.png) - * - * `partition` outputs an array with two Observables that partition the values - * from the source Observable through the given `predicate` function. The first - * Observable in that array emits source values for which the predicate argument - * returns true. The second Observable emits source values for which the - * predicate returns false. The first behaves like {@link filter} and the second - * behaves like {@link filter} with the predicate negated. - * - * ## Example - * - * Partition click events into those on DIV elements and those elsewhere - * - * ```ts - * import { fromEvent } from 'rxjs'; - * import { partition } from 'rxjs/operators'; - * - * const div = document.createElement('div'); - * div.style.cssText = 'width: 200px; height: 200px; background: #09c;'; - * document.body.appendChild(div); - * - * const clicks = fromEvent(document, 'click'); - * const [clicksOnDivs, clicksElsewhere] = clicks.pipe(partition(ev => (ev.target).tagName === 'DIV')); - * - * clicksOnDivs.subscribe(x => console.log('DIV clicked: ', x)); - * clicksElsewhere.subscribe(x => console.log('Other clicked: ', x)); - * ``` - * - * @see {@link filter} - * - * @param {function(value: T, index: number): boolean} predicate A function that - * evaluates each value emitted by the source Observable. If it returns `true`, - * the value is emitted on the first Observable in the returned array, if - * `false` the value is emitted on the second Observable in the array. The - * `index` parameter is the number `i` for the i-th source emission that has - * happened since the subscription, starting from the number `0`. - * @param {any} [thisArg] An optional argument to determine the value of `this` - * in the `predicate` function. - * @return A function that returns an array with two Observables: one with - * values that passed the predicate, and another with values that did not pass - * the predicate. - * @deprecated Replaced with the `partition` static creation function. Will be removed in v8. - */ -export function partition( - predicate: (value: T, index: number) => boolean, - thisArg?: any -): UnaryFunction, [Observable, Observable]> { - return (source: Observable) => - [filter(predicate, thisArg)(source), filter(not(predicate, thisArg))(source)] as [Observable, Observable]; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/pluck.ts b/WechatBot/node_modules/rxjs/src/internal/operators/pluck.ts deleted file mode 100644 index b80da73b6..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/pluck.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { map } from './map'; -import { OperatorFunction } from '../types'; - -/* tslint:disable:max-line-length */ -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export function pluck(k1: K1): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export function pluck(k1: K1, k2: K2): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export function pluck( - k1: K1, - k2: K2, - k3: K3 -): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export function pluck( - k1: K1, - k2: K2, - k3: K3, - k4: K4 -): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export function pluck< - T, - K1 extends keyof T, - K2 extends keyof T[K1], - K3 extends keyof T[K1][K2], - K4 extends keyof T[K1][K2][K3], - K5 extends keyof T[K1][K2][K3][K4] ->(k1: K1, k2: K2, k3: K3, k4: K4, k5: K5): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export function pluck< - T, - K1 extends keyof T, - K2 extends keyof T[K1], - K3 extends keyof T[K1][K2], - K4 extends keyof T[K1][K2][K3], - K5 extends keyof T[K1][K2][K3][K4], - K6 extends keyof T[K1][K2][K3][K4][K5] ->(k1: K1, k2: K2, k3: K3, k4: K4, k5: K5, k6: K6): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export function pluck< - T, - K1 extends keyof T, - K2 extends keyof T[K1], - K3 extends keyof T[K1][K2], - K4 extends keyof T[K1][K2][K3], - K5 extends keyof T[K1][K2][K3][K4], - K6 extends keyof T[K1][K2][K3][K4][K5] ->(k1: K1, k2: K2, k3: K3, k4: K4, k5: K5, k6: K6, ...rest: string[]): OperatorFunction; -/** @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. */ -export function pluck(...properties: string[]): OperatorFunction; -/* tslint:enable:max-line-length */ - -/** - * Maps each source value to its specified nested property. - * - * Like {@link map}, but meant only for picking one of - * the nested properties of every emitted value. - * - * ![](pluck.png) - * - * Given a list of strings or numbers describing a path to a property, retrieves - * the value of a specified nested property from all values in the source - * Observable. If a property can't be resolved, it will return `undefined` for - * that value. - * - * ## Example - * - * Map every click to the tagName of the clicked target element - * - * ```ts - * import { fromEvent, pluck } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const tagNames = clicks.pipe(pluck('target', 'tagName')); - * - * tagNames.subscribe(x => console.log(x)); - * ``` - * - * @see {@link map} - * - * @param properties The nested properties to pluck from each source - * value. - * @return A function that returns an Observable of property values from the - * source values. - * @deprecated Use {@link map} and optional chaining: `pluck('foo', 'bar')` is `map(x => x?.foo?.bar)`. Will be removed in v8. - */ -export function pluck(...properties: Array): OperatorFunction { - const length = properties.length; - if (length === 0) { - throw new Error('list of properties cannot be empty.'); - } - return map((x) => { - let currentProp: any = x; - for (let i = 0; i < length; i++) { - const p = currentProp?.[properties[i]]; - if (typeof p !== 'undefined') { - currentProp = p; - } else { - return undefined; - } - } - return currentProp; - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/publish.ts b/WechatBot/node_modules/rxjs/src/internal/operators/publish.ts deleted file mode 100644 index 105cd3672..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/publish.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { Observable } from '../Observable'; -import { Subject } from '../Subject'; -import { multicast } from './multicast'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -import { MonoTypeOperatorFunction, OperatorFunction, UnaryFunction, ObservableInput, ObservedValueOf } from '../types'; -import { connect } from './connect'; - -/** - * Returns a connectable observable that, when connected, will multicast - * all values through a single underlying {@link Subject} instance. - * - * @deprecated Will be removed in v8. To create a connectable observable, use {@link connectable}. - * `source.pipe(publish())` is equivalent to - * `connectable(source, { connector: () => new Subject(), resetOnDisconnect: false })`. - * If you're using {@link refCount} after `publish`, use {@link share} operator instead. - * `source.pipe(publish(), refCount())` is equivalent to - * `source.pipe(share({ resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }))`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function publish(): UnaryFunction, ConnectableObservable>; - -/** - * Returns an observable, that when subscribed to, creates an underlying {@link Subject}, - * provides an observable view of it to a `selector` function, takes the observable result of - * that selector function and subscribes to it, sending its values to the consumer, _then_ connects - * the subject to the original source. - * - * @param selector A function used to setup multicasting prior to automatic connection. - * - * @deprecated Will be removed in v8. Use the {@link connect} operator instead. - * `publish(selector)` is equivalent to `connect(selector)`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function publish>(selector: (shared: Observable) => O): OperatorFunction>; - -/** - * Returns a ConnectableObservable, which is a variety of Observable that waits until its connect method is called - * before it begins emitting items to those Observers that have subscribed to it. - * - * Makes a cold Observable hot - * - * ![](publish.png) - * - * ## Examples - * - * Make `source$` hot by applying `publish` operator, then merge each inner observable into a single one - * and subscribe - * - * ```ts - * import { zip, interval, of, map, publish, merge, tap } from 'rxjs'; - * - * const source$ = zip(interval(2000), of(1, 2, 3, 4, 5, 6, 7, 8, 9)) - * .pipe(map(([, number]) => number)); - * - * source$ - * .pipe( - * publish(multicasted$ => - * merge( - * multicasted$.pipe(tap(x => console.log('Stream 1:', x))), - * multicasted$.pipe(tap(x => console.log('Stream 2:', x))), - * multicasted$.pipe(tap(x => console.log('Stream 3:', x))) - * ) - * ) - * ) - * .subscribe(); - * - * // Results every two seconds - * // Stream 1: 1 - * // Stream 2: 1 - * // Stream 3: 1 - * // ... - * // Stream 1: 9 - * // Stream 2: 9 - * // Stream 3: 9 - * ``` - * - * @see {@link publishLast} - * @see {@link publishReplay} - * @see {@link publishBehavior} - * - * @param {Function} [selector] - Optional selector function which can use the multicasted source sequence as many times - * as needed, without causing multiple subscriptions to the source sequence. - * Subscribers to the given source will receive all notifications of the source from the time of the subscription on. - * @return A function that returns a ConnectableObservable that upon connection - * causes the source Observable to emit items to its Observers. - * @deprecated Will be removed in v8. Use the {@link connectable} observable, the {@link connect} operator or the - * {@link share} operator instead. See the overloads below for equivalent replacement examples of this operator's - * behaviors. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function publish(selector?: OperatorFunction): MonoTypeOperatorFunction | OperatorFunction { - return selector ? (source) => connect(selector)(source) : (source) => multicast(new Subject())(source); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/publishBehavior.ts b/WechatBot/node_modules/rxjs/src/internal/operators/publishBehavior.ts deleted file mode 100644 index d94589c09..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/publishBehavior.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Observable } from '../Observable'; -import { BehaviorSubject } from '../BehaviorSubject'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -import { UnaryFunction } from '../types'; - -/** - * Creates a {@link ConnectableObservable} that utilizes a {@link BehaviorSubject}. - * - * @param initialValue The initial value passed to the {@link BehaviorSubject}. - * @return A function that returns a {@link ConnectableObservable} - * @deprecated Will be removed in v8. To create a connectable observable that uses a - * {@link BehaviorSubject} under the hood, use {@link connectable}. - * `source.pipe(publishBehavior(initValue))` is equivalent to - * `connectable(source, { connector: () => new BehaviorSubject(initValue), resetOnDisconnect: false })`. - * If you're using {@link refCount} after `publishBehavior`, use the {@link share} operator instead. - * `source.pipe(publishBehavior(initValue), refCount())` is equivalent to - * `source.pipe(share({ connector: () => new BehaviorSubject(initValue), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }))`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function publishBehavior(initialValue: T): UnaryFunction, ConnectableObservable> { - // Note that this has *never* supported the selector function. - return (source) => { - const subject = new BehaviorSubject(initialValue); - return new ConnectableObservable(source, () => subject); - }; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/publishLast.ts b/WechatBot/node_modules/rxjs/src/internal/operators/publishLast.ts deleted file mode 100644 index ded47fb52..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/publishLast.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { Observable } from '../Observable'; -import { AsyncSubject } from '../AsyncSubject'; -import { ConnectableObservable } from '../observable/ConnectableObservable'; -import { UnaryFunction } from '../types'; - -/** - * Returns a connectable observable sequence that shares a single subscription to the - * underlying sequence containing only the last notification. - * - * ![](publishLast.png) - * - * Similar to {@link publish}, but it waits until the source observable completes and stores - * the last emitted value. - * Similarly to {@link publishReplay} and {@link publishBehavior}, this keeps storing the last - * value even if it has no more subscribers. If subsequent subscriptions happen, they will - * immediately get that last stored value and complete. - * - * ## Example - * - * ```ts - * import { ConnectableObservable, interval, publishLast, tap, take } from 'rxjs'; - * - * const connectable = >interval(1000) - * .pipe( - * tap(x => console.log('side effect', x)), - * take(3), - * publishLast() - * ); - * - * connectable.subscribe({ - * next: x => console.log('Sub. A', x), - * error: err => console.log('Sub. A Error', err), - * complete: () => console.log('Sub. A Complete') - * }); - * - * connectable.subscribe({ - * next: x => console.log('Sub. B', x), - * error: err => console.log('Sub. B Error', err), - * complete: () => console.log('Sub. B Complete') - * }); - * - * connectable.connect(); - * - * // Results: - * // 'side effect 0' - after one second - * // 'side effect 1' - after two seconds - * // 'side effect 2' - after three seconds - * // 'Sub. A 2' - immediately after 'side effect 2' - * // 'Sub. B 2' - * // 'Sub. A Complete' - * // 'Sub. B Complete' - * ``` - * - * @see {@link ConnectableObservable} - * @see {@link publish} - * @see {@link publishReplay} - * @see {@link publishBehavior} - * - * @return A function that returns an Observable that emits elements of a - * sequence produced by multicasting the source sequence. - * @deprecated Will be removed in v8. To create a connectable observable with an - * {@link AsyncSubject} under the hood, use {@link connectable}. - * `source.pipe(publishLast())` is equivalent to - * `connectable(source, { connector: () => new AsyncSubject(), resetOnDisconnect: false })`. - * If you're using {@link refCount} after `publishLast`, use the {@link share} operator instead. - * `source.pipe(publishLast(), refCount())` is equivalent to - * `source.pipe(share({ connector: () => new AsyncSubject(), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false }))`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function publishLast(): UnaryFunction, ConnectableObservable> { - // Note that this has *never* supported a selector function like `publish` and `publishReplay`. - return (source) => { - const subject = new AsyncSubject(); - return new ConnectableObservable(source, () => subject); - }; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/publishReplay.ts b/WechatBot/node_modules/rxjs/src/internal/operators/publishReplay.ts deleted file mode 100644 index 47494e2a6..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/publishReplay.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { Observable } from '../Observable'; -import { ReplaySubject } from '../ReplaySubject'; -import { multicast } from './multicast'; -import { MonoTypeOperatorFunction, OperatorFunction, TimestampProvider, ObservableInput, ObservedValueOf } from '../types'; -import { isFunction } from '../util/isFunction'; - -/** - * Creates a {@link ConnectableObservable} that uses a {@link ReplaySubject} - * internally. - * - * @param bufferSize The buffer size for the underlying {@link ReplaySubject}. - * @param windowTime The window time for the underlying {@link ReplaySubject}. - * @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}. - * @deprecated Will be removed in v8. To create a connectable observable that uses a - * {@link ReplaySubject} under the hood, use {@link connectable}. - * `source.pipe(publishReplay(size, time, scheduler))` is equivalent to - * `connectable(source, { connector: () => new ReplaySubject(size, time, scheduler), resetOnDisconnect: false })`. - * If you're using {@link refCount} after `publishReplay`, use the {@link share} operator instead. - * `publishReplay(size, time, scheduler), refCount()` is equivalent to - * `share({ connector: () => new ReplaySubject(size, time, scheduler), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function publishReplay( - bufferSize?: number, - windowTime?: number, - timestampProvider?: TimestampProvider -): MonoTypeOperatorFunction; - -/** - * Creates an observable, that when subscribed to, will create a {@link ReplaySubject}, - * and pass an observable from it (using [asObservable](api/index/class/Subject#asObservable)) to - * the `selector` function, which then returns an observable that is subscribed to before - * "connecting" the source to the internal `ReplaySubject`. - * - * Since this is deprecated, for additional details see the documentation for {@link connect}. - * - * @param bufferSize The buffer size for the underlying {@link ReplaySubject}. - * @param windowTime The window time for the underlying {@link ReplaySubject}. - * @param selector A function used to setup the multicast. - * @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}. - * @deprecated Will be removed in v8. Use the {@link connect} operator instead. - * `source.pipe(publishReplay(size, window, selector, scheduler))` is equivalent to - * `source.pipe(connect(selector, { connector: () => new ReplaySubject(size, window, scheduler) }))`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function publishReplay>( - bufferSize: number | undefined, - windowTime: number | undefined, - selector: (shared: Observable) => O, - timestampProvider?: TimestampProvider -): OperatorFunction>; - -/** - * Creates a {@link ConnectableObservable} that uses a {@link ReplaySubject} - * internally. - * - * @param bufferSize The buffer size for the underlying {@link ReplaySubject}. - * @param windowTime The window time for the underlying {@link ReplaySubject}. - * @param selector Passing `undefined` here determines that this operator will return a {@link ConnectableObservable}. - * @param timestampProvider The timestamp provider for the underlying {@link ReplaySubject}. - * @deprecated Will be removed in v8. To create a connectable observable that uses a - * {@link ReplaySubject} under the hood, use {@link connectable}. - * `source.pipe(publishReplay(size, time, scheduler))` is equivalent to - * `connectable(source, { connector: () => new ReplaySubject(size, time, scheduler), resetOnDisconnect: false })`. - * If you're using {@link refCount} after `publishReplay`, use the {@link share} operator instead. - * `publishReplay(size, time, scheduler), refCount()` is equivalent to - * `share({ connector: () => new ReplaySubject(size, time, scheduler), resetOnError: false, resetOnComplete: false, resetOnRefCountZero: false })`. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function publishReplay>( - bufferSize: number | undefined, - windowTime: number | undefined, - selector: undefined, - timestampProvider: TimestampProvider -): OperatorFunction>; - -/** - * @deprecated Will be removed in v8. Use the {@link connectable} observable, the {@link connect} operator or the - * {@link share} operator instead. See the overloads below for equivalent replacement examples of this operator's - * behaviors. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function publishReplay( - bufferSize?: number, - windowTime?: number, - selectorOrScheduler?: TimestampProvider | OperatorFunction, - timestampProvider?: TimestampProvider -) { - if (selectorOrScheduler && !isFunction(selectorOrScheduler)) { - timestampProvider = selectorOrScheduler; - } - const selector = isFunction(selectorOrScheduler) ? selectorOrScheduler : undefined; - // Note, we're passing `selector!` here, because at runtime, `undefined` is an acceptable argument - // but it makes our TypeScript signature for `multicast` unhappy (as it should, because it's gross). - return (source: Observable) => multicast(new ReplaySubject(bufferSize, windowTime, timestampProvider), selector!)(source); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/race.ts b/WechatBot/node_modules/rxjs/src/internal/operators/race.ts deleted file mode 100644 index efa8cd94c..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/race.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { ObservableInputTuple, OperatorFunction } from '../types'; -import { argsOrArgArray } from '../util/argsOrArgArray'; -import { raceWith } from './raceWith'; - -/** @deprecated Replaced with {@link raceWith}. Will be removed in v8. */ -export function race(otherSources: [...ObservableInputTuple]): OperatorFunction; -/** @deprecated Replaced with {@link raceWith}. Will be removed in v8. */ -export function race(...otherSources: [...ObservableInputTuple]): OperatorFunction; - -/** - * Returns an Observable that mirrors the first source Observable to emit a next, - * error or complete notification from the combination of this Observable and supplied Observables. - * @param args Sources used to race for which Observable emits first. - * @return A function that returns an Observable that mirrors the output of the - * first Observable to emit an item. - * @deprecated Replaced with {@link raceWith}. Will be removed in v8. - */ -export function race(...args: any[]): OperatorFunction { - return raceWith(...argsOrArgArray(args)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/raceWith.ts b/WechatBot/node_modules/rxjs/src/internal/operators/raceWith.ts deleted file mode 100644 index 6e7292982..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/raceWith.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { OperatorFunction, ObservableInputTuple } from '../types'; -import { raceInit } from '../observable/race'; -import { operate } from '../util/lift'; -import { identity } from '../util/identity'; - -/** - * Creates an Observable that mirrors the first source Observable to emit a next, - * error or complete notification from the combination of the Observable to which - * the operator is applied and supplied Observables. - * - * ## Example - * - * ```ts - * import { interval, map, raceWith } from 'rxjs'; - * - * const obs1 = interval(7000).pipe(map(() => 'slow one')); - * const obs2 = interval(3000).pipe(map(() => 'fast one')); - * const obs3 = interval(5000).pipe(map(() => 'medium one')); - * - * obs1 - * .pipe(raceWith(obs2, obs3)) - * .subscribe(winner => console.log(winner)); - * - * // Outputs - * // a series of 'fast one' - * ``` - * - * @param otherSources Sources used to race for which Observable emits first. - * @return A function that returns an Observable that mirrors the output of the - * first Observable to emit an item. - */ -export function raceWith( - ...otherSources: [...ObservableInputTuple] -): OperatorFunction { - return !otherSources.length - ? identity - : operate((source, subscriber) => { - raceInit([source, ...otherSources])(subscriber); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/reduce.ts b/WechatBot/node_modules/rxjs/src/internal/operators/reduce.ts deleted file mode 100644 index c9bdda054..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/reduce.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { scanInternals } from './scanInternals'; -import { OperatorFunction } from '../types'; -import { operate } from '../util/lift'; - -export function reduce(accumulator: (acc: A | V, value: V, index: number) => A): OperatorFunction; -export function reduce(accumulator: (acc: A, value: V, index: number) => A, seed: A): OperatorFunction; -export function reduce(accumulator: (acc: A | S, value: V, index: number) => A, seed: S): OperatorFunction; - -/** - * Applies an accumulator function over the source Observable, and returns the - * accumulated result when the source completes, given an optional seed value. - * - * Combines together all values emitted on the source, - * using an accumulator function that knows how to join a new source value into - * the accumulation from the past. - * - * ![](reduce.png) - * - * Like - * [Array.prototype.reduce()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce), - * `reduce` applies an `accumulator` function against an accumulation and each - * value of the source Observable (from the past) to reduce it to a single - * value, emitted on the output Observable. Note that `reduce` will only emit - * one value, only when the source Observable completes. It is equivalent to - * applying operator {@link scan} followed by operator {@link last}. - * - * Returns an Observable that applies a specified `accumulator` function to each - * item emitted by the source Observable. If a `seed` value is specified, then - * that value will be used as the initial value for the accumulator. If no seed - * value is specified, the first item of the source is used as the seed. - * - * ## Example - * - * Count the number of click events that happened in 5 seconds - * - * ```ts - * import { fromEvent, takeUntil, interval, map, reduce } from 'rxjs'; - * - * const clicksInFiveSeconds = fromEvent(document, 'click') - * .pipe(takeUntil(interval(5000))); - * - * const ones = clicksInFiveSeconds.pipe(map(() => 1)); - * const seed = 0; - * const count = ones.pipe(reduce((acc, one) => acc + one, seed)); - * - * count.subscribe(x => console.log(x)); - * ``` - * - * @see {@link count} - * @see {@link expand} - * @see {@link mergeScan} - * @see {@link scan} - * - * @param {function(acc: A, value: V, index: number): A} accumulator The accumulator function - * called on each source value. - * @param {A} [seed] The initial accumulation value. - * @return A function that returns an Observable that emits a single value that - * is the result of accumulating the values emitted by the source Observable. - */ -export function reduce(accumulator: (acc: V | A, value: V, index: number) => A, seed?: any): OperatorFunction { - return operate(scanInternals(accumulator, seed, arguments.length >= 2, false, true)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/refCount.ts b/WechatBot/node_modules/rxjs/src/internal/operators/refCount.ts deleted file mode 100644 index c4162c0d7..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/refCount.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { ConnectableObservable } from '../observable/ConnectableObservable'; -import { Subscription } from '../Subscription'; -import { MonoTypeOperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Make a {@link ConnectableObservable} behave like a ordinary observable and automates the way - * you can connect to it. - * - * Internally it counts the subscriptions to the observable and subscribes (only once) to the source if - * the number of subscriptions is larger than 0. If the number of subscriptions is smaller than 1, it - * unsubscribes from the source. This way you can make sure that everything before the *published* - * refCount has only a single subscription independently of the number of subscribers to the target - * observable. - * - * Note that using the {@link share} operator is exactly the same as using the `multicast(() => new Subject())` operator - * (making the observable hot) and the *refCount* operator in a sequence. - * - * ![](refCount.png) - * - * ## Example - * - * In the following example there are two intervals turned into connectable observables - * by using the *publish* operator. The first one uses the *refCount* operator, the - * second one does not use it. You will notice that a connectable observable does nothing - * until you call its connect function. - * - * ```ts - * import { interval, tap, publish, refCount } from 'rxjs'; - * - * // Turn the interval observable into a ConnectableObservable (hot) - * const refCountInterval = interval(400).pipe( - * tap(num => console.log(`refCount ${ num }`)), - * publish(), - * refCount() - * ); - * - * const publishedInterval = interval(400).pipe( - * tap(num => console.log(`publish ${ num }`)), - * publish() - * ); - * - * refCountInterval.subscribe(); - * refCountInterval.subscribe(); - * // 'refCount 0' -----> 'refCount 1' -----> etc - * // All subscriptions will receive the same value and the tap (and - * // every other operator) before the `publish` operator will be executed - * // only once per event independently of the number of subscriptions. - * - * publishedInterval.subscribe(); - * // Nothing happens until you call .connect() on the observable. - * ``` - * - * @return A function that returns an Observable that automates the connection - * to ConnectableObservable. - * @see {@link ConnectableObservable} - * @see {@link share} - * @see {@link publish} - * @deprecated Replaced with the {@link share} operator. How `share` is used - * will depend on the connectable observable you created just prior to the - * `refCount` operator. - * Details: https://rxjs.dev/deprecations/multicasting - */ -export function refCount(): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let connection: Subscription | null = null; - - (source as any)._refCount++; - - const refCounter = createOperatorSubscriber(subscriber, undefined, undefined, undefined, () => { - if (!source || (source as any)._refCount <= 0 || 0 < --(source as any)._refCount) { - connection = null; - return; - } - - /// - // Compare the local RefCountSubscriber's connection Subscription to the - // connection Subscription on the shared ConnectableObservable. In cases - // where the ConnectableObservable source synchronously emits values, and - // the RefCountSubscriber's downstream Observers synchronously unsubscribe, - // execution continues to here before the RefCountOperator has a chance to - // supply the RefCountSubscriber with the shared connection Subscription. - // For example: - // ``` - // range(0, 10).pipe( - // publish(), - // refCount(), - // take(5), - // ) - // .subscribe(); - // ``` - // In order to account for this case, RefCountSubscriber should only dispose - // the ConnectableObservable's shared connection Subscription if the - // connection Subscription exists, *and* either: - // a. RefCountSubscriber doesn't have a reference to the shared connection - // Subscription yet, or, - // b. RefCountSubscriber's connection Subscription reference is identical - // to the shared connection Subscription - /// - - const sharedConnection = (source as any)._connection; - const conn = connection; - connection = null; - - if (sharedConnection && (!conn || sharedConnection === conn)) { - sharedConnection.unsubscribe(); - } - - subscriber.unsubscribe(); - }); - - source.subscribe(refCounter); - - if (!refCounter.closed) { - connection = (source as ConnectableObservable).connect(); - } - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/repeat.ts b/WechatBot/node_modules/rxjs/src/internal/operators/repeat.ts deleted file mode 100644 index fa0b3a3ab..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/repeat.ts +++ /dev/null @@ -1,172 +0,0 @@ -import { Subscription } from '../Subscription'; -import { EMPTY } from '../observable/empty'; -import { operate } from '../util/lift'; -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { timer } from '../observable/timer'; - -export interface RepeatConfig { - /** - * The number of times to repeat the source. Defaults to `Infinity`. - */ - count?: number; - - /** - * If a `number`, will delay the repeat of the source by that number of milliseconds. - * If a function, it will provide the number of times the source has been subscribed to, - * and the return value should be a valid observable input that will notify when the source - * should be repeated. If the notifier observable is empty, the result will complete. - */ - delay?: number | ((count: number) => ObservableInput); -} - -/** - * Returns an Observable that will resubscribe to the source stream when the source stream completes. - * - * Repeats all values emitted on the source. It's like {@link retry}, but for non error cases. - * - * ![](repeat.png) - * - * Repeat will output values from a source until the source completes, then it will resubscribe to the - * source a specified number of times, with a specified delay. Repeat can be particularly useful in - * combination with closing operators like {@link take}, {@link takeUntil}, {@link first}, or {@link takeWhile}, - * as it can be used to restart a source again from scratch. - * - * Repeat is very similar to {@link retry}, where {@link retry} will resubscribe to the source in the error case, but - * `repeat` will resubscribe if the source completes. - * - * Note that `repeat` will _not_ catch errors. Use {@link retry} for that. - * - * - `repeat(0)` returns an empty observable - * - `repeat()` will repeat forever - * - `repeat({ delay: 200 })` will repeat forever, with a delay of 200ms between repetitions. - * - `repeat({ count: 2, delay: 400 })` will repeat twice, with a delay of 400ms between repetitions. - * - `repeat({ delay: (count) => timer(count * 1000) })` will repeat forever, but will have a delay that grows by one second for each repetition. - * - * ## Example - * - * Repeat a message stream - * - * ```ts - * import { of, repeat } from 'rxjs'; - * - * const source = of('Repeat message'); - * const result = source.pipe(repeat(3)); - * - * result.subscribe(x => console.log(x)); - * - * // Results - * // 'Repeat message' - * // 'Repeat message' - * // 'Repeat message' - * ``` - * - * Repeat 3 values, 2 times - * - * ```ts - * import { interval, take, repeat } from 'rxjs'; - * - * const source = interval(1000); - * const result = source.pipe(take(3), repeat(2)); - * - * result.subscribe(x => console.log(x)); - * - * // Results every second - * // 0 - * // 1 - * // 2 - * // 0 - * // 1 - * // 2 - * ``` - * - * Defining two complex repeats with delays on the same source. - * Note that the second repeat cannot be called until the first - * repeat as exhausted it's count. - * - * ```ts - * import { defer, of, repeat } from 'rxjs'; - * - * const source = defer(() => { - * return of(`Hello, it is ${new Date()}`) - * }); - * - * source.pipe( - * // Repeat 3 times with a delay of 1 second between repetitions - * repeat({ - * count: 3, - * delay: 1000, - * }), - * - * // *Then* repeat forever, but with an exponential step-back - * // maxing out at 1 minute. - * repeat({ - * delay: (count) => timer(Math.min(60000, 2 ^ count * 1000)) - * }) - * ) - * ``` - * - * @see {@link repeatWhen} - * @see {@link retry} - * - * @param count The number of times the source Observable items are repeated, a count of 0 will yield - * an empty Observable. - */ -export function repeat(countOrConfig?: number | RepeatConfig): MonoTypeOperatorFunction { - let count = Infinity; - let delay: RepeatConfig['delay']; - - if (countOrConfig != null) { - if (typeof countOrConfig === 'object') { - ({ count = Infinity, delay } = countOrConfig); - } else { - count = countOrConfig; - } - } - - return count <= 0 - ? () => EMPTY - : operate((source, subscriber) => { - let soFar = 0; - let sourceSub: Subscription | null; - - const resubscribe = () => { - sourceSub?.unsubscribe(); - sourceSub = null; - if (delay != null) { - const notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(soFar)); - const notifierSubscriber = createOperatorSubscriber(subscriber, () => { - notifierSubscriber.unsubscribe(); - subscribeToSource(); - }); - notifier.subscribe(notifierSubscriber); - } else { - subscribeToSource(); - } - }; - - const subscribeToSource = () => { - let syncUnsub = false; - sourceSub = source.subscribe( - createOperatorSubscriber(subscriber, undefined, () => { - if (++soFar < count) { - if (sourceSub) { - resubscribe(); - } else { - syncUnsub = true; - } - } else { - subscriber.complete(); - } - }) - ); - - if (syncUnsub) { - resubscribe(); - } - }; - - subscribeToSource(); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/repeatWhen.ts b/WechatBot/node_modules/rxjs/src/internal/operators/repeatWhen.ts deleted file mode 100644 index 5e55ca07f..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/repeatWhen.ts +++ /dev/null @@ -1,125 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { Subscription } from '../Subscription'; - -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Returns an Observable that mirrors the source Observable with the exception of a `complete`. If the source - * Observable calls `complete`, this method will emit to the Observable returned from `notifier`. If that Observable - * calls `complete` or `error`, then this method will call `complete` or `error` on the child subscription. Otherwise - * this method will resubscribe to the source Observable. - * - * ![](repeatWhen.png) - * - * ## Example - * - * Repeat a message stream on click - * - * ```ts - * import { of, fromEvent, repeatWhen } from 'rxjs'; - * - * const source = of('Repeat message'); - * const documentClick$ = fromEvent(document, 'click'); - * - * const result = source.pipe(repeatWhen(() => documentClick$)); - * - * result.subscribe(data => console.log(data)) - * ``` - * - * @see {@link repeat} - * @see {@link retry} - * @see {@link retryWhen} - * - * @param notifier Function that receives an Observable of notifications with - * which a user can `complete` or `error`, aborting the repetition. - * @return A function that returns an `ObservableInput` that mirrors the source - * Observable with the exception of a `complete`. - * @deprecated Will be removed in v9 or v10. Use {@link repeat}'s {@link RepeatConfig#delay delay} option instead. - * Instead of `repeatWhen(() => notify$)`, use: `repeat({ delay: () => notify$ })`. - */ -export function repeatWhen(notifier: (notifications: Observable) => ObservableInput): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let innerSub: Subscription | null; - let syncResub = false; - let completions$: Subject; - let isNotifierComplete = false; - let isMainComplete = false; - - /** - * Checks to see if we can complete the result, completes it, and returns `true` if it was completed. - */ - const checkComplete = () => isMainComplete && isNotifierComplete && (subscriber.complete(), true); - /** - * Gets the subject to send errors through. If it doesn't exist, - * we know we need to setup the notifier. - */ - const getCompletionSubject = () => { - if (!completions$) { - completions$ = new Subject(); - - // If the call to `notifier` throws, it will be caught by the OperatorSubscriber - // In the main subscription -- in `subscribeForRepeatWhen`. - innerFrom(notifier(completions$)).subscribe( - createOperatorSubscriber( - subscriber, - () => { - if (innerSub) { - subscribeForRepeatWhen(); - } else { - // If we don't have an innerSub yet, that's because the inner subscription - // call hasn't even returned yet. We've arrived here synchronously. - // So we flag that we want to resub, such that we can ensure finalization - // happens before we resubscribe. - syncResub = true; - } - }, - () => { - isNotifierComplete = true; - checkComplete(); - } - ) - ); - } - return completions$; - }; - - const subscribeForRepeatWhen = () => { - isMainComplete = false; - - innerSub = source.subscribe( - createOperatorSubscriber(subscriber, undefined, () => { - isMainComplete = true; - // Check to see if we are complete, and complete if so. - // If we are not complete. Get the subject. This calls the `notifier` function. - // If that function fails, it will throw and `.next()` will not be reached on this - // line. The thrown error is caught by the _complete handler in this - // `OperatorSubscriber` and handled appropriately. - !checkComplete() && getCompletionSubject().next(); - }) - ); - - if (syncResub) { - // Ensure that the inner subscription is torn down before - // moving on to the next subscription in the synchronous case. - // If we don't do this here, all inner subscriptions will not be - // torn down until the entire observable is done. - innerSub.unsubscribe(); - // It is important to null this out. Not only to free up memory, but - // to make sure code above knows we are in a subscribing state to - // handle synchronous resubscription. - innerSub = null; - // We may need to do this multiple times, so reset the flags. - syncResub = false; - // Resubscribe - subscribeForRepeatWhen(); - } - }; - - // Start the subscription - subscribeForRepeatWhen(); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/retry.ts b/WechatBot/node_modules/rxjs/src/internal/operators/retry.ts deleted file mode 100644 index fe03385a5..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/retry.ts +++ /dev/null @@ -1,167 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { Subscription } from '../Subscription'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { identity } from '../util/identity'; -import { timer } from '../observable/timer'; -import { innerFrom } from '../observable/innerFrom'; - -/** - * The {@link retry} operator configuration object. `retry` either accepts a `number` - * or an object described by this interface. - */ -export interface RetryConfig { - /** - * The maximum number of times to retry. If `count` is omitted, `retry` will try to - * resubscribe on errors infinite number of times. - */ - count?: number; - /** - * The number of milliseconds to delay before retrying, OR a function to - * return a notifier for delaying. If a function is given, that function should - * return a notifier that, when it emits will retry the source. If the notifier - * completes _without_ emitting, the resulting observable will complete without error, - * if the notifier errors, the error will be pushed to the result. - */ - delay?: number | ((error: any, retryCount: number) => ObservableInput); - /** - * Whether or not to reset the retry counter when the retried subscription - * emits its first value. - */ - resetOnSuccess?: boolean; -} - -export function retry(count?: number): MonoTypeOperatorFunction; -export function retry(config: RetryConfig): MonoTypeOperatorFunction; - -/** - * Returns an Observable that mirrors the source Observable with the exception of an `error`. - * - * If the source Observable calls `error`, this method will resubscribe to the source Observable for a maximum of - * `count` resubscriptions rather than propagating the `error` call. - * - * ![](retry.png) - * - * The number of retries is determined by the `count` parameter. It can be set either by passing a number to - * `retry` function or by setting `count` property when `retry` is configured using {@link RetryConfig}. If - * `count` is omitted, `retry` will try to resubscribe on errors infinite number of times. - * - * Any and all items emitted by the source Observable will be emitted by the resulting Observable, even those - * emitted during failed subscriptions. For example, if an Observable fails at first but emits `[1, 2]` then - * succeeds the second time and emits: `[1, 2, 3, 4, 5, complete]` then the complete stream of emissions and - * notifications would be: `[1, 2, 1, 2, 3, 4, 5, complete]`. - * - * ## Example - * - * ```ts - * import { interval, mergeMap, throwError, of, retry } from 'rxjs'; - * - * const source = interval(1000); - * const result = source.pipe( - * mergeMap(val => val > 5 ? throwError(() => 'Error!') : of(val)), - * retry(2) // retry 2 times on error - * ); - * - * result.subscribe({ - * next: value => console.log(value), - * error: err => console.log(`${ err }: Retried 2 times then quit!`) - * }); - * - * // Output: - * // 0..1..2..3..4..5.. - * // 0..1..2..3..4..5.. - * // 0..1..2..3..4..5.. - * // 'Error!: Retried 2 times then quit!' - * ``` - * - * @see {@link retryWhen} - * - * @param configOrCount - Either number of retry attempts before failing or a {@link RetryConfig} object. - * @return A function that returns an Observable that will resubscribe to the - * source stream when the source stream errors, at most `count` times. - */ -export function retry(configOrCount: number | RetryConfig = Infinity): MonoTypeOperatorFunction { - let config: RetryConfig; - if (configOrCount && typeof configOrCount === 'object') { - config = configOrCount; - } else { - config = { - count: configOrCount as number, - }; - } - const { count = Infinity, delay, resetOnSuccess: resetOnSuccess = false } = config; - - return count <= 0 - ? identity - : operate((source, subscriber) => { - let soFar = 0; - let innerSub: Subscription | null; - const subscribeForRetry = () => { - let syncUnsub = false; - innerSub = source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - // If we're resetting on success - if (resetOnSuccess) { - soFar = 0; - } - subscriber.next(value); - }, - // Completions are passed through to consumer. - undefined, - (err) => { - if (soFar++ < count) { - // We are still under our retry count - const resub = () => { - if (innerSub) { - innerSub.unsubscribe(); - innerSub = null; - subscribeForRetry(); - } else { - syncUnsub = true; - } - }; - - if (delay != null) { - // The user specified a retry delay. - // They gave us a number, use a timer, otherwise, it's a function, - // and we're going to call it to get a notifier. - const notifier = typeof delay === 'number' ? timer(delay) : innerFrom(delay(err, soFar)); - const notifierSubscriber = createOperatorSubscriber( - subscriber, - () => { - // After we get the first notification, we - // unsubscribe from the notifier, because we don't want anymore - // and we resubscribe to the source. - notifierSubscriber.unsubscribe(); - resub(); - }, - () => { - // The notifier completed without emitting. - // The author is telling us they want to complete. - subscriber.complete(); - } - ); - notifier.subscribe(notifierSubscriber); - } else { - // There was no notifier given. Just resub immediately. - resub(); - } - } else { - // We're past our maximum number of retries. - // Just send along the error. - subscriber.error(err); - } - } - ) - ); - if (syncUnsub) { - innerSub.unsubscribe(); - innerSub = null; - subscribeForRetry(); - } - }; - subscribeForRetry(); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/retryWhen.ts b/WechatBot/node_modules/rxjs/src/internal/operators/retryWhen.ts deleted file mode 100644 index 8090e5f61..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/retryWhen.ts +++ /dev/null @@ -1,113 +0,0 @@ -import { Observable } from '../Observable'; -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { Subscription } from '../Subscription'; - -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable - * calls `error`, this method will emit the Throwable that caused the error to the `ObservableInput` returned from `notifier`. - * If that Observable calls `complete` or `error` then this method will call `complete` or `error` on the child - * subscription. Otherwise this method will resubscribe to the source Observable. - * - * ![](retryWhen.png) - * - * Retry an observable sequence on error based on custom criteria. - * - * ## Example - * - * ```ts - * import { interval, map, retryWhen, tap, delayWhen, timer } from 'rxjs'; - * - * const source = interval(1000); - * const result = source.pipe( - * map(value => { - * if (value > 5) { - * // error will be picked up by retryWhen - * throw value; - * } - * return value; - * }), - * retryWhen(errors => - * errors.pipe( - * // log error message - * tap(value => console.log(`Value ${ value } was too high!`)), - * // restart in 5 seconds - * delayWhen(value => timer(value * 1000)) - * ) - * ) - * ); - * - * result.subscribe(value => console.log(value)); - * - * // results: - * // 0 - * // 1 - * // 2 - * // 3 - * // 4 - * // 5 - * // 'Value 6 was too high!' - * // - Wait 5 seconds then repeat - * ``` - * - * @see {@link retry} - * - * @param notifier Function that receives an Observable of notifications with which a - * user can `complete` or `error`, aborting the retry. - * @return A function that returns an `ObservableInput` that mirrors the source - * Observable with the exception of an `error`. - * @deprecated Will be removed in v9 or v10, use {@link retry}'s `delay` option instead. - * Will be removed in v9 or v10. Use {@link retry}'s {@link RetryConfig#delay delay} option instead. - * Instead of `retryWhen(() => notify$)`, use: `retry({ delay: () => notify$ })`. - */ -export function retryWhen(notifier: (errors: Observable) => ObservableInput): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let innerSub: Subscription | null; - let syncResub = false; - let errors$: Subject; - - const subscribeForRetryWhen = () => { - innerSub = source.subscribe( - createOperatorSubscriber(subscriber, undefined, undefined, (err) => { - if (!errors$) { - errors$ = new Subject(); - innerFrom(notifier(errors$)).subscribe( - createOperatorSubscriber(subscriber, () => - // If we have an innerSub, this was an asynchronous call, kick off the retry. - // Otherwise, if we don't have an innerSub yet, that's because the inner subscription - // call hasn't even returned yet. We've arrived here synchronously. - // So we flag that we want to resub, such that we can ensure finalization - // happens before we resubscribe. - innerSub ? subscribeForRetryWhen() : (syncResub = true) - ) - ); - } - if (errors$) { - // We have set up the notifier without error. - errors$.next(err); - } - }) - ); - - if (syncResub) { - // Ensure that the inner subscription is torn down before - // moving on to the next subscription in the synchronous case. - // If we don't do this here, all inner subscriptions will not be - // torn down until the entire observable is done. - innerSub.unsubscribe(); - innerSub = null; - // We may need to do this multiple times, so reset the flag. - syncResub = false; - // Resubscribe - subscribeForRetryWhen(); - } - }; - - // Start the subscription - subscribeForRetryWhen(); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/sample.ts b/WechatBot/node_modules/rxjs/src/internal/operators/sample.ts deleted file mode 100644 index 9008af2f0..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/sample.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { noop } from '../util/noop'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Emits the most recently emitted value from the source Observable whenever - * another Observable, the `notifier`, emits. - * - * It's like {@link sampleTime}, but samples whenever - * the `notifier` `ObservableInput` emits something. - * - * ![](sample.png) - * - * Whenever the `notifier` `ObservableInput` emits a value, `sample` - * looks at the source Observable and emits whichever value it has most recently - * emitted since the previous sampling, unless the source has not emitted - * anything since the previous sampling. The `notifier` is subscribed to as soon - * as the output Observable is subscribed. - * - * ## Example - * - * On every click, sample the most recent `seconds` timer - * - * ```ts - * import { fromEvent, interval, sample } from 'rxjs'; - * - * const seconds = interval(1000); - * const clicks = fromEvent(document, 'click'); - * const result = seconds.pipe(sample(clicks)); - * - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link audit} - * @see {@link debounce} - * @see {@link sampleTime} - * @see {@link throttle} - * - * @param notifier The `ObservableInput` to use for sampling the - * source Observable. - * @return A function that returns an Observable that emits the results of - * sampling the values emitted by the source Observable whenever the notifier - * Observable emits value or completes. - */ -export function sample(notifier: ObservableInput): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let hasValue = false; - let lastValue: T | null = null; - source.subscribe( - createOperatorSubscriber(subscriber, (value) => { - hasValue = true; - lastValue = value; - }) - ); - innerFrom(notifier).subscribe( - createOperatorSubscriber( - subscriber, - () => { - if (hasValue) { - hasValue = false; - const value = lastValue!; - lastValue = null; - subscriber.next(value); - } - }, - noop - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/sampleTime.ts b/WechatBot/node_modules/rxjs/src/internal/operators/sampleTime.ts deleted file mode 100644 index 6558fa03a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/sampleTime.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -import { sample } from './sample'; -import { interval } from '../observable/interval'; - -/** - * Emits the most recently emitted value from the source Observable within - * periodic time intervals. - * - * Samples the source Observable at periodic time - * intervals, emitting what it samples. - * - * ![](sampleTime.png) - * - * `sampleTime` periodically looks at the source Observable and emits whichever - * value it has most recently emitted since the previous sampling, unless the - * source has not emitted anything since the previous sampling. The sampling - * happens periodically in time every `period` milliseconds (or the time unit - * defined by the optional `scheduler` argument). The sampling starts as soon as - * the output Observable is subscribed. - * - * ## Example - * - * Every second, emit the most recent click at most once - * - * ```ts - * import { fromEvent, sampleTime } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(sampleTime(1000)); - * - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link auditTime} - * @see {@link debounceTime} - * @see {@link delay} - * @see {@link sample} - * @see {@link throttleTime} - * - * @param {number} period The sampling period expressed in milliseconds or the - * time unit determined internally by the optional `scheduler`. - * @param {SchedulerLike} [scheduler=async] The {@link SchedulerLike} to use for - * managing the timers that handle the sampling. - * @return A function that returns an Observable that emits the results of - * sampling the values emitted by the source Observable at the specified time - * interval. - */ -export function sampleTime(period: number, scheduler: SchedulerLike = asyncScheduler): MonoTypeOperatorFunction { - return sample(interval(period, scheduler)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/scan.ts b/WechatBot/node_modules/rxjs/src/internal/operators/scan.ts deleted file mode 100644 index ce30695cd..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/scan.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { scanInternals } from './scanInternals'; - -export function scan(accumulator: (acc: A | V, value: V, index: number) => A): OperatorFunction; -export function scan(accumulator: (acc: A, value: V, index: number) => A, seed: A): OperatorFunction; -export function scan(accumulator: (acc: A | S, value: V, index: number) => A, seed: S): OperatorFunction; - -// TODO: link to a "redux pattern" section in the guide (location TBD) - -/** - * Useful for encapsulating and managing state. Applies an accumulator (or "reducer function") - * to each value from the source after an initial state is established -- either via - * a `seed` value (second argument), or from the first value from the source. - * - * It's like {@link reduce}, but emits the current - * accumulation state after each update - * - * ![](scan.png) - * - * This operator maintains an internal state and emits it after processing each value as follows: - * - * 1. First value arrives - * - If a `seed` value was supplied (as the second argument to `scan`), let `state = seed` and `value = firstValue`. - * - If NO `seed` value was supplied (no second argument), let `state = firstValue` and go to 3. - * 2. Let `state = accumulator(state, value)`. - * - If an error is thrown by `accumulator`, notify the consumer of an error. The process ends. - * 3. Emit `state`. - * 4. Next value arrives, let `value = nextValue`, go to 2. - * - * ## Examples - * - * An average of previous numbers. This example shows how - * not providing a `seed` can prime the stream with the - * first value from the source. - * - * ```ts - * import { of, scan, map } from 'rxjs'; - * - * const numbers$ = of(1, 2, 3); - * - * numbers$ - * .pipe( - * // Get the sum of the numbers coming in. - * scan((total, n) => total + n), - * // Get the average by dividing the sum by the total number - * // received so far (which is 1 more than the zero-based index). - * map((sum, index) => sum / (index + 1)) - * ) - * .subscribe(console.log); - * ``` - * - * The Fibonacci sequence. This example shows how you can use - * a seed to prime accumulation process. Also... you know... Fibonacci. - * So important to like, computers and stuff that its whiteboarded - * in job interviews. Now you can show them the Rx version! (Please don't, haha) - * - * ```ts - * import { interval, scan, map, startWith } from 'rxjs'; - * - * const firstTwoFibs = [0, 1]; - * // An endless stream of Fibonacci numbers. - * const fibonacci$ = interval(1000).pipe( - * // Scan to get the fibonacci numbers (after 0, 1) - * scan(([a, b]) => [b, a + b], firstTwoFibs), - * // Get the second number in the tuple, it's the one you calculated - * map(([, n]) => n), - * // Start with our first two digits :) - * startWith(...firstTwoFibs) - * ); - * - * fibonacci$.subscribe(console.log); - * ``` - * - * @see {@link expand} - * @see {@link mergeScan} - * @see {@link reduce} - * @see {@link switchScan} - * - * @param accumulator A "reducer function". This will be called for each value after an initial state is - * acquired. - * @param seed The initial state. If this is not provided, the first value from the source will - * be used as the initial state, and emitted without going through the accumulator. All subsequent values - * will be processed by the accumulator function. If this is provided, all values will go through - * the accumulator function. - * @return A function that returns an Observable of the accumulated values. - */ -export function scan(accumulator: (acc: V | A | S, value: V, index: number) => A, seed?: S): OperatorFunction { - // providing a seed of `undefined` *should* be valid and trigger - // hasSeed! so don't use `seed !== undefined` checks! - // For this reason, we have to check it here at the original call site - // otherwise inside Operator/Subscriber we won't know if `undefined` - // means they didn't provide anything or if they literally provided `undefined` - return operate(scanInternals(accumulator, seed as S, arguments.length >= 2, true)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/scanInternals.ts b/WechatBot/node_modules/rxjs/src/internal/operators/scanInternals.ts deleted file mode 100644 index f2c2e5a4e..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/scanInternals.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscriber } from '../Subscriber'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * A basic scan operation. This is used for `scan` and `reduce`. - * @param accumulator The accumulator to use - * @param seed The seed value for the state to accumulate - * @param hasSeed Whether or not a seed was provided - * @param emitOnNext Whether or not to emit the state on next - * @param emitBeforeComplete Whether or not to emit the before completion - */ - -export function scanInternals( - accumulator: (acc: V | A | S, value: V, index: number) => A, - seed: S, - hasSeed: boolean, - emitOnNext: boolean, - emitBeforeComplete?: undefined | true -) { - return (source: Observable, subscriber: Subscriber) => { - // Whether or not we have state yet. This will only be - // false before the first value arrives if we didn't get - // a seed value. - let hasState = hasSeed; - // The state that we're tracking, starting with the seed, - // if there is one, and then updated by the return value - // from the accumulator on each emission. - let state: any = seed; - // An index to pass to the accumulator function. - let index = 0; - - // Subscribe to our source. All errors and completions are passed through. - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - // Always increment the index. - const i = index++; - // Set the state - state = hasState - ? // We already have state, so we can get the new state from the accumulator - accumulator(state, value, i) - : // We didn't have state yet, a seed value was not provided, so - - // we set the state to the first value, and mark that we have state now - ((hasState = true), value); - - // Maybe send it to the consumer. - emitOnNext && subscriber.next(state); - }, - // If an onComplete was given, call it, otherwise - // just pass through the complete notification to the consumer. - emitBeforeComplete && - (() => { - hasState && subscriber.next(state); - subscriber.complete(); - }) - ) - ); - }; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/sequenceEqual.ts b/WechatBot/node_modules/rxjs/src/internal/operators/sequenceEqual.ts deleted file mode 100644 index a6f9bec30..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/sequenceEqual.ts +++ /dev/null @@ -1,146 +0,0 @@ -import { OperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; - -/** - * Compares all values of two observables in sequence using an optional comparator function - * and returns an observable of a single boolean value representing whether or not the two sequences - * are equal. - * - * Checks to see of all values emitted by both observables are equal, in order. - * - * ![](sequenceEqual.png) - * - * `sequenceEqual` subscribes to source observable and `compareTo` `ObservableInput` (that internally - * gets converted to an observable) and buffers incoming values from each observable. Whenever either - * observable emits a value, the value is buffered and the buffers are shifted and compared from the bottom - * up; If any value pair doesn't match, the returned observable will emit `false` and complete. If one of the - * observables completes, the operator will wait for the other observable to complete; If the other - * observable emits before completing, the returned observable will emit `false` and complete. If one observable never - * completes or emits after the other completes, the returned observable will never complete. - * - * ## Example - * - * Figure out if the Konami code matches - * - * ```ts - * import { from, fromEvent, map, bufferCount, mergeMap, sequenceEqual } from 'rxjs'; - * - * const codes = from([ - * 'ArrowUp', - * 'ArrowUp', - * 'ArrowDown', - * 'ArrowDown', - * 'ArrowLeft', - * 'ArrowRight', - * 'ArrowLeft', - * 'ArrowRight', - * 'KeyB', - * 'KeyA', - * 'Enter', // no start key, clearly. - * ]); - * - * const keys = fromEvent(document, 'keyup').pipe(map(e => e.code)); - * const matches = keys.pipe( - * bufferCount(11, 1), - * mergeMap(last11 => from(last11).pipe(sequenceEqual(codes))) - * ); - * matches.subscribe(matched => console.log('Successful cheat at Contra? ', matched)); - * ``` - * - * @see {@link combineLatest} - * @see {@link zip} - * @see {@link withLatestFrom} - * - * @param compareTo The `ObservableInput` sequence to compare the source sequence to. - * @param comparator An optional function to compare each value pair. - * - * @return A function that returns an Observable that emits a single boolean - * value representing whether or not the values emitted by the source - * Observable and provided `ObservableInput` were equal in sequence. - */ -export function sequenceEqual( - compareTo: ObservableInput, - comparator: (a: T, b: T) => boolean = (a, b) => a === b -): OperatorFunction { - return operate((source, subscriber) => { - // The state for the source observable - const aState = createState(); - // The state for the compareTo observable; - const bState = createState(); - - /** A utility to emit and complete */ - const emit = (isEqual: boolean) => { - subscriber.next(isEqual); - subscriber.complete(); - }; - - /** - * Creates a subscriber that subscribes to one of the sources, and compares its collected - * state -- `selfState` -- to the other source's collected state -- `otherState`. This - * is used for both streams. - */ - const createSubscriber = (selfState: SequenceState, otherState: SequenceState) => { - const sequenceEqualSubscriber = createOperatorSubscriber( - subscriber, - (a: T) => { - const { buffer, complete } = otherState; - if (buffer.length === 0) { - // If there's no values in the other buffer - // and the other stream is complete, we know - // this isn't a match, because we got one more value. - // Otherwise, we push onto our buffer, so when the other - // stream emits, it can pull this value off our buffer and check it - // at the appropriate time. - complete ? emit(false) : selfState.buffer.push(a); - } else { - // If the other stream *does* have values in its buffer, - // pull the oldest one off so we can compare it to what we - // just got. If it wasn't a match, emit `false` and complete. - !comparator(a, buffer.shift()!) && emit(false); - } - }, - () => { - // Or observable completed - selfState.complete = true; - const { complete, buffer } = otherState; - // If the other observable is also complete, and there's - // still stuff left in their buffer, it doesn't match, if their - // buffer is empty, then it does match. This is because we can't - // possibly get more values here anymore. - complete && emit(buffer.length === 0); - // Be sure to clean up our stream as soon as possible if we can. - sequenceEqualSubscriber?.unsubscribe(); - } - ); - - return sequenceEqualSubscriber; - }; - - // Subscribe to each source. - source.subscribe(createSubscriber(aState, bState)); - innerFrom(compareTo).subscribe(createSubscriber(bState, aState)); - }); -} - -/** - * A simple structure for the data used to test each sequence - */ -interface SequenceState { - /** A temporary store for arrived values before they are checked */ - buffer: T[]; - /** Whether or not the sequence source has completed. */ - complete: boolean; -} - -/** - * Creates a simple structure that is used to represent - * data used to test each sequence. - */ -function createState(): SequenceState { - return { - buffer: [], - complete: false, - }; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/share.ts b/WechatBot/node_modules/rxjs/src/internal/operators/share.ts deleted file mode 100644 index bc0c2707f..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/share.ts +++ /dev/null @@ -1,267 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { Subject } from '../Subject'; -import { SafeSubscriber } from '../Subscriber'; -import { Subscription } from '../Subscription'; -import { MonoTypeOperatorFunction, SubjectLike, ObservableInput } from '../types'; -import { operate } from '../util/lift'; - -export interface ShareConfig { - /** - * The factory used to create the subject that will connect the source observable to - * multicast consumers. - */ - connector?: () => SubjectLike; - /** - * If `true`, the resulting observable will reset internal state on error from source and return to a "cold" state. This - * allows the resulting observable to be "retried" in the event of an error. - * If `false`, when an error comes from the source it will push the error into the connecting subject, and the subject - * will remain the connecting subject, meaning the resulting observable will not go "cold" again, and subsequent retries - * or resubscriptions will resubscribe to that same subject. In all cases, RxJS subjects will emit the same error again, however - * {@link ReplaySubject} will also push its buffered values before pushing the error. - * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained - * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets. - */ - resetOnError?: boolean | ((error: any) => ObservableInput); - /** - * If `true`, the resulting observable will reset internal state on completion from source and return to a "cold" state. This - * allows the resulting observable to be "repeated" after it is done. - * If `false`, when the source completes, it will push the completion through the connecting subject, and the subject - * will remain the connecting subject, meaning the resulting observable will not go "cold" again, and subsequent repeats - * or resubscriptions will resubscribe to that same subject. - * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained - * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets. - */ - resetOnComplete?: boolean | (() => ObservableInput); - /** - * If `true`, when the number of subscribers to the resulting observable reaches zero due to those subscribers unsubscribing, the - * internal state will be reset and the resulting observable will return to a "cold" state. This means that the next - * time the resulting observable is subscribed to, a new subject will be created and the source will be subscribed to - * again. - * If `false`, when the number of subscribers to the resulting observable reaches zero due to unsubscription, the subject - * will remain connected to the source, and new subscriptions to the result will be connected through that same subject. - * It is also possible to pass a notifier factory returning an `ObservableInput` instead which grants more fine-grained - * control over how and when the reset should happen. This allows behaviors like conditional or delayed resets. - */ - resetOnRefCountZero?: boolean | (() => ObservableInput); -} - -export function share(): MonoTypeOperatorFunction; - -export function share(options: ShareConfig): MonoTypeOperatorFunction; - -/** - * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one - * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will - * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`. - * This is an alias for `multicast(() => new Subject()), refCount()`. - * - * The subscription to the underlying source Observable can be reset (unsubscribe and resubscribe for new subscribers), - * if the subscriber count to the shared observable drops to 0, or if the source Observable errors or completes. It is - * possible to use notifier factories for the resets to allow for behaviors like conditional or delayed resets. Please - * note that resetting on error or complete of the source Observable does not behave like a transparent retry or restart - * of the source because the error or complete will be forwarded to all subscribers and their subscription will be - * closed. Only new subscribers after a reset on error or complete happened will cause a fresh subscription to the - * source. To achieve transparent retries or restarts pipe the source through appropriate operators before sharing. - * - * ![](share.png) - * - * ## Example - * - * Generate new multicast Observable from the `source` Observable value - * - * ```ts - * import { interval, tap, map, take, share } from 'rxjs'; - * - * const source = interval(1000).pipe( - * tap(x => console.log('Processing: ', x)), - * map(x => x * x), - * take(6), - * share() - * ); - * - * source.subscribe(x => console.log('subscription 1: ', x)); - * source.subscribe(x => console.log('subscription 2: ', x)); - * - * // Logs: - * // Processing: 0 - * // subscription 1: 0 - * // subscription 2: 0 - * // Processing: 1 - * // subscription 1: 1 - * // subscription 2: 1 - * // Processing: 2 - * // subscription 1: 4 - * // subscription 2: 4 - * // Processing: 3 - * // subscription 1: 9 - * // subscription 2: 9 - * // Processing: 4 - * // subscription 1: 16 - * // subscription 2: 16 - * // Processing: 5 - * // subscription 1: 25 - * // subscription 2: 25 - * ``` - * - * ## Example with notifier factory: Delayed reset - * - * ```ts - * import { interval, take, share, timer } from 'rxjs'; - * - * const source = interval(1000).pipe( - * take(3), - * share({ - * resetOnRefCountZero: () => timer(1000) - * }) - * ); - * - * const subscriptionOne = source.subscribe(x => console.log('subscription 1: ', x)); - * setTimeout(() => subscriptionOne.unsubscribe(), 1300); - * - * setTimeout(() => source.subscribe(x => console.log('subscription 2: ', x)), 1700); - * - * setTimeout(() => source.subscribe(x => console.log('subscription 3: ', x)), 5000); - * - * // Logs: - * // subscription 1: 0 - * // (subscription 1 unsubscribes here) - * // (subscription 2 subscribes here ~400ms later, source was not reset) - * // subscription 2: 1 - * // subscription 2: 2 - * // (subscription 2 unsubscribes here) - * // (subscription 3 subscribes here ~2000ms later, source did reset before) - * // subscription 3: 0 - * // subscription 3: 1 - * // subscription 3: 2 - * ``` - * - * @see {@link shareReplay} - * - * @return A function that returns an Observable that mirrors the source. - */ -export function share(options: ShareConfig = {}): MonoTypeOperatorFunction { - const { connector = () => new Subject(), resetOnError = true, resetOnComplete = true, resetOnRefCountZero = true } = options; - // It's necessary to use a wrapper here, as the _operator_ must be - // referentially transparent. Otherwise, it cannot be used in calls to the - // static `pipe` function - to create a partial pipeline. - // - // The _operator function_ - the function returned by the _operator_ - will - // not be referentially transparent - as it shares its source - but the - // _operator function_ is called when the complete pipeline is composed via a - // call to a source observable's `pipe` method - not when the static `pipe` - // function is called. - return (wrapperSource) => { - let connection: SafeSubscriber | undefined; - let resetConnection: Subscription | undefined; - let subject: SubjectLike | undefined; - let refCount = 0; - let hasCompleted = false; - let hasErrored = false; - - const cancelReset = () => { - resetConnection?.unsubscribe(); - resetConnection = undefined; - }; - // Used to reset the internal state to a "cold" - // state, as though it had never been subscribed to. - const reset = () => { - cancelReset(); - connection = subject = undefined; - hasCompleted = hasErrored = false; - }; - const resetAndUnsubscribe = () => { - // We need to capture the connection before - // we reset (if we need to reset). - const conn = connection; - reset(); - conn?.unsubscribe(); - }; - - return operate((source, subscriber) => { - refCount++; - if (!hasErrored && !hasCompleted) { - cancelReset(); - } - - // Create the subject if we don't have one yet. Grab a local reference to - // it as well, which avoids non-null assertions when using it and, if we - // connect to it now, then error/complete need a reference after it was - // reset. - const dest = (subject = subject ?? connector()); - - // Add the finalization directly to the subscriber - instead of returning it - - // so that the handling of the subscriber's unsubscription will be wired - // up _before_ the subscription to the source occurs. This is done so that - // the assignment to the source connection's `closed` property will be seen - // by synchronous firehose sources. - subscriber.add(() => { - refCount--; - - // If we're resetting on refCount === 0, and it's 0, we only want to do - // that on "unsubscribe", really. Resetting on error or completion is a different - // configuration. - if (refCount === 0 && !hasErrored && !hasCompleted) { - resetConnection = handleReset(resetAndUnsubscribe, resetOnRefCountZero); - } - }); - - // The following line adds the subscription to the subscriber passed. - // Basically, `subscriber === dest.subscribe(subscriber)` is `true`. - dest.subscribe(subscriber); - - if ( - !connection && - // Check this shareReplay is still activate - it can be reset to 0 - // and be "unsubscribed" _before_ it actually subscribes. - // If we were to subscribe then, it'd leak and get stuck. - refCount > 0 - ) { - // We need to create a subscriber here - rather than pass an observer and - // assign the returned subscription to connection - because it's possible - // for reentrant subscriptions to the shared observable to occur and in - // those situations we want connection to be already-assigned so that we - // don't create another connection to the source. - connection = new SafeSubscriber({ - next: (value) => dest.next(value), - error: (err) => { - hasErrored = true; - cancelReset(); - resetConnection = handleReset(reset, resetOnError, err); - dest.error(err); - }, - complete: () => { - hasCompleted = true; - cancelReset(); - resetConnection = handleReset(reset, resetOnComplete); - dest.complete(); - }, - }); - innerFrom(source).subscribe(connection); - } - })(wrapperSource); - }; -} - -function handleReset( - reset: () => void, - on: boolean | ((...args: T) => ObservableInput), - ...args: T -): Subscription | undefined { - if (on === true) { - reset(); - return; - } - - if (on === false) { - return; - } - - const onSubscriber = new SafeSubscriber({ - next: () => { - onSubscriber.unsubscribe(); - reset(); - }, - }); - - return innerFrom(on(...args)).subscribe(onSubscriber); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/shareReplay.ts b/WechatBot/node_modules/rxjs/src/internal/operators/shareReplay.ts deleted file mode 100644 index b43f363e9..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/shareReplay.ts +++ /dev/null @@ -1,173 +0,0 @@ -import { ReplaySubject } from '../ReplaySubject'; -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -import { share } from './share'; - -export interface ShareReplayConfig { - bufferSize?: number; - windowTime?: number; - refCount: boolean; - scheduler?: SchedulerLike; -} - -export function shareReplay(config: ShareReplayConfig): MonoTypeOperatorFunction; -export function shareReplay(bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction; - -/** - * Share source and replay specified number of emissions on subscription. - * - * This operator is a specialization of `replay` that connects to a source observable - * and multicasts through a `ReplaySubject` constructed with the specified arguments. - * A successfully completed source will stay cached in the `shareReplay`ed observable forever, - * but an errored source can be retried. - * - * ## Why use `shareReplay`? - * - * You generally want to use `shareReplay` when you have side-effects or taxing computations - * that you do not wish to be executed amongst multiple subscribers. - * It may also be valuable in situations where you know you will have late subscribers to - * a stream that need access to previously emitted values. - * This ability to replay values on subscription is what differentiates {@link share} and `shareReplay`. - * - * ## Reference counting - * - * By default `shareReplay` will use `refCount` of false, meaning that it will _not_ unsubscribe the - * source when the reference counter drops to zero, i.e. the inner `ReplaySubject` will _not_ be unsubscribed - * (and potentially run for ever). - * This is the default as it is expected that `shareReplay` is often used to keep around expensive to setup - * observables which we want to keep running instead of having to do the expensive setup again. - * - * As of RXJS version 6.4.0 a new overload signature was added to allow for manual control over what - * happens when the operators internal reference counter drops to zero. - * If `refCount` is true, the source will be unsubscribed from once the reference count drops to zero, i.e. - * the inner `ReplaySubject` will be unsubscribed. All new subscribers will receive value emissions from a - * new `ReplaySubject` which in turn will cause a new subscription to the source observable. - * - * ## Examples - * - * Example with a third subscriber coming late to the party - * - * ```ts - * import { interval, take, shareReplay } from 'rxjs'; - * - * const shared$ = interval(2000).pipe( - * take(6), - * shareReplay(3) - * ); - * - * shared$.subscribe(x => console.log('sub A: ', x)); - * shared$.subscribe(y => console.log('sub B: ', y)); - * - * setTimeout(() => { - * shared$.subscribe(y => console.log('sub C: ', y)); - * }, 11000); - * - * // Logs: - * // (after ~2000 ms) - * // sub A: 0 - * // sub B: 0 - * // (after ~4000 ms) - * // sub A: 1 - * // sub B: 1 - * // (after ~6000 ms) - * // sub A: 2 - * // sub B: 2 - * // (after ~8000 ms) - * // sub A: 3 - * // sub B: 3 - * // (after ~10000 ms) - * // sub A: 4 - * // sub B: 4 - * // (after ~11000 ms, sub C gets the last 3 values) - * // sub C: 2 - * // sub C: 3 - * // sub C: 4 - * // (after ~12000 ms) - * // sub A: 5 - * // sub B: 5 - * // sub C: 5 - * ``` - * - * Example for `refCount` usage - * - * ```ts - * import { Observable, tap, interval, shareReplay, take } from 'rxjs'; - * - * const log = (name: string, source: Observable) => source.pipe( - * tap({ - * subscribe: () => console.log(`${ name }: subscribed`), - * next: value => console.log(`${ name }: ${ value }`), - * complete: () => console.log(`${ name }: completed`), - * finalize: () => console.log(`${ name }: unsubscribed`) - * }) - * ); - * - * const obs$ = log('source', interval(1000)); - * - * const shared$ = log('shared', obs$.pipe( - * shareReplay({ bufferSize: 1, refCount: true }), - * take(2) - * )); - * - * shared$.subscribe(x => console.log('sub A: ', x)); - * shared$.subscribe(y => console.log('sub B: ', y)); - * - * // PRINTS: - * // shared: subscribed <-- reference count = 1 - * // source: subscribed - * // shared: subscribed <-- reference count = 2 - * // source: 0 - * // shared: 0 - * // sub A: 0 - * // shared: 0 - * // sub B: 0 - * // source: 1 - * // shared: 1 - * // sub A: 1 - * // shared: completed <-- take(2) completes the subscription for sub A - * // shared: unsubscribed <-- reference count = 1 - * // shared: 1 - * // sub B: 1 - * // shared: completed <-- take(2) completes the subscription for sub B - * // shared: unsubscribed <-- reference count = 0 - * // source: unsubscribed <-- replaySubject unsubscribes from source observable because the reference count dropped to 0 and refCount is true - * - * // In case of refCount being false, the unsubscribe is never called on the source and the source would keep on emitting, even if no subscribers - * // are listening. - * // source: 2 - * // source: 3 - * // source: 4 - * // ... - * ``` - * - * @see {@link publish} - * @see {@link share} - * @see {@link publishReplay} - * - * @param configOrBufferSize Maximum element count of the replay buffer or {@link ShareReplayConfig configuration} - * object. - * @param windowTime Maximum time length of the replay buffer in milliseconds. - * @param scheduler Scheduler where connected observers within the selector function - * will be invoked on. - * @return A function that returns an Observable sequence that contains the - * elements of a sequence produced by multicasting the source sequence within a - * selector function. - */ -export function shareReplay( - configOrBufferSize?: ShareReplayConfig | number, - windowTime?: number, - scheduler?: SchedulerLike -): MonoTypeOperatorFunction { - let bufferSize: number; - let refCount = false; - if (configOrBufferSize && typeof configOrBufferSize === 'object') { - ({ bufferSize = Infinity, windowTime = Infinity, refCount = false, scheduler } = configOrBufferSize); - } else { - bufferSize = (configOrBufferSize ?? Infinity) as number; - } - return share({ - connector: () => new ReplaySubject(bufferSize, windowTime, scheduler), - resetOnError: true, - resetOnComplete: false, - resetOnRefCountZero: refCount, - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/single.ts b/WechatBot/node_modules/rxjs/src/internal/operators/single.ts deleted file mode 100644 index b91ab2acc..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/single.ts +++ /dev/null @@ -1,117 +0,0 @@ -import { Observable } from '../Observable'; -import { EmptyError } from '../util/EmptyError'; - -import { MonoTypeOperatorFunction, OperatorFunction, TruthyTypesOf } from '../types'; -import { SequenceError } from '../util/SequenceError'; -import { NotFoundError } from '../util/NotFoundError'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -export function single(predicate: BooleanConstructor): OperatorFunction>; -export function single(predicate?: (value: T, index: number, source: Observable) => boolean): MonoTypeOperatorFunction; - -/** - * Returns an observable that asserts that only one value is - * emitted from the observable that matches the predicate. If no - * predicate is provided, then it will assert that the observable - * only emits one value. - * - * In the event that the observable is empty, it will throw an - * {@link EmptyError}. - * - * In the event that two values are found that match the predicate, - * or when there are two values emitted and no predicate, it will - * throw a {@link SequenceError} - * - * In the event that no values match the predicate, if one is provided, - * it will throw a {@link NotFoundError} - * - * ## Example - * - * Expect only `name` beginning with `'B'` - * - * ```ts - * import { of, single } from 'rxjs'; - * - * const source1 = of( - * { name: 'Ben' }, - * { name: 'Tracy' }, - * { name: 'Laney' }, - * { name: 'Lily' } - * ); - * - * source1 - * .pipe(single(x => x.name.startsWith('B'))) - * .subscribe(x => console.log(x)); - * // Emits 'Ben' - * - * - * const source2 = of( - * { name: 'Ben' }, - * { name: 'Tracy' }, - * { name: 'Bradley' }, - * { name: 'Lincoln' } - * ); - * - * source2 - * .pipe(single(x => x.name.startsWith('B'))) - * .subscribe({ error: err => console.error(err) }); - * // Error emitted: SequenceError('Too many values match') - * - * - * const source3 = of( - * { name: 'Laney' }, - * { name: 'Tracy' }, - * { name: 'Lily' }, - * { name: 'Lincoln' } - * ); - * - * source3 - * .pipe(single(x => x.name.startsWith('B'))) - * .subscribe({ error: err => console.error(err) }); - * // Error emitted: NotFoundError('No values match') - * ``` - * - * @see {@link first} - * @see {@link find} - * @see {@link findIndex} - * @see {@link elementAt} - * - * @throws {NotFoundError} Delivers an NotFoundError to the Observer's `error` - * callback if the Observable completes before any `next` notification was sent. - * @throws {SequenceError} Delivers a SequenceError if more than one value is emitted that matches the - * provided predicate. If no predicate is provided, will deliver a SequenceError if more - * than one value comes from the source - * @param {Function} predicate - A predicate function to evaluate items emitted by the source Observable. - * @return A function that returns an Observable that emits the single item - * emitted by the source Observable that matches the predicate. - */ -export function single(predicate?: (value: T, index: number, source: Observable) => boolean): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let hasValue = false; - let singleValue: T; - let seenValue = false; - let index = 0; - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - seenValue = true; - if (!predicate || predicate(value, index++, source)) { - hasValue && subscriber.error(new SequenceError('Too many matching values')); - hasValue = true; - singleValue = value; - } - }, - () => { - if (hasValue) { - subscriber.next(singleValue); - subscriber.complete(); - } else { - subscriber.error(seenValue ? new NotFoundError('No matching values') : new EmptyError()); - } - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/skip.ts b/WechatBot/node_modules/rxjs/src/internal/operators/skip.ts deleted file mode 100644 index 76e3eff2d..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/skip.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -import { filter } from './filter'; - -/** - * Returns an Observable that skips the first `count` items emitted by the source Observable. - * - * ![](skip.png) - * - * Skips the values until the sent notifications are equal or less than provided skip count. It raises - * an error if skip count is equal or more than the actual number of emits and source raises an error. - * - * ## Example - * - * Skip the values before the emission - * - * ```ts - * import { interval, skip } from 'rxjs'; - * - * // emit every half second - * const source = interval(500); - * // skip the first 10 emitted values - * const result = source.pipe(skip(10)); - * - * result.subscribe(value => console.log(value)); - * // output: 10...11...12...13... - * ``` - * - * @see {@link last} - * @see {@link skipWhile} - * @see {@link skipUntil} - * @see {@link skipLast} - * - * @param {Number} count - The number of times, items emitted by source Observable should be skipped. - * @return A function that returns an Observable that skips the first `count` - * values emitted by the source Observable. - */ -export function skip(count: number): MonoTypeOperatorFunction { - return filter((_, index) => count <= index); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/skipLast.ts b/WechatBot/node_modules/rxjs/src/internal/operators/skipLast.ts deleted file mode 100644 index e0f75b596..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/skipLast.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -import { identity } from '../util/identity'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Skip a specified number of values before the completion of an observable. - * - * ![](skipLast.png) - * - * Returns an observable that will emit values as soon as it can, given a number of - * skipped values. For example, if you `skipLast(3)` on a source, when the source - * emits its fourth value, the first value the source emitted will finally be emitted - * from the returned observable, as it is no longer part of what needs to be skipped. - * - * All values emitted by the result of `skipLast(N)` will be delayed by `N` emissions, - * as each value is held in a buffer until enough values have been emitted that that - * the buffered value may finally be sent to the consumer. - * - * After subscribing, unsubscribing will not result in the emission of the buffered - * skipped values. - * - * ## Example - * - * Skip the last 2 values of an observable with many values - * - * ```ts - * import { of, skipLast } from 'rxjs'; - * - * const numbers = of(1, 2, 3, 4, 5); - * const skipLastTwo = numbers.pipe(skipLast(2)); - * skipLastTwo.subscribe(x => console.log(x)); - * - * // Results in: - * // 1 2 3 - * // (4 and 5 are skipped) - * ``` - * - * @see {@link skip} - * @see {@link skipUntil} - * @see {@link skipWhile} - * @see {@link take} - * - * @param skipCount Number of elements to skip from the end of the source Observable. - * @return A function that returns an Observable that skips the last `count` - * values emitted by the source Observable. - */ -export function skipLast(skipCount: number): MonoTypeOperatorFunction { - return skipCount <= 0 - ? // For skipCounts less than or equal to zero, we are just mirroring the source. - identity - : operate((source, subscriber) => { - // A ring buffer to hold the values while we wait to see - // if we can emit it or it's part of the "skipped" last values. - // Note that it is the _same size_ as the skip count. - let ring: T[] = new Array(skipCount); - // The number of values seen so far. This is used to get - // the index of the current value when it arrives. - let seen = 0; - source.subscribe( - createOperatorSubscriber(subscriber, (value) => { - // Get the index of the value we have right now - // relative to all other values we've seen, then - // increment `seen`. This ensures we've moved to - // the next slot in our ring buffer. - const valueIndex = seen++; - if (valueIndex < skipCount) { - // If we haven't seen enough values to fill our buffer yet, - // Then we aren't to a number of seen values where we can - // emit anything, so let's just start by filling the ring buffer. - ring[valueIndex] = value; - } else { - // We are traversing over the ring array in such - // a way that when we get to the end, we loop back - // and go to the start. - const index = valueIndex % skipCount; - // Pull the oldest value out so we can emit it, - // and stuff the new value in it's place. - const oldValue = ring[index]; - ring[index] = value; - // Emit the old value. It is important that this happens - // after we swap the value in the buffer, if it happens - // before we swap the value in the buffer, then a synchronous - // source can get the buffer out of whack. - subscriber.next(oldValue); - } - }) - ); - - return () => { - // Release our values in memory - ring = null!; - }; - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/skipUntil.ts b/WechatBot/node_modules/rxjs/src/internal/operators/skipUntil.ts deleted file mode 100644 index e6984e518..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/skipUntil.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { noop } from '../util/noop'; - -/** - * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item. - * - * The `skipUntil` operator causes the observable stream to skip the emission of values until the passed in observable - * emits the first value. This can be particularly useful in combination with user interactions, responses of HTTP - * requests or waiting for specific times to pass by. - * - * ![](skipUntil.png) - * - * Internally, the `skipUntil` operator subscribes to the passed in `notifier` `ObservableInput` (which gets converted - * to an Observable) in order to recognize the emission of its first value. When `notifier` emits next, the operator - * unsubscribes from it and starts emitting the values of the *source* observable until it completes or errors. It - * will never let the *source* observable emit any values if the `notifier` completes or throws an error without - * emitting a value before. - * - * ## Example - * - * In the following example, all emitted values of the interval observable are skipped until the user clicks anywhere - * within the page - * - * ```ts - * import { interval, fromEvent, skipUntil } from 'rxjs'; - * - * const intervalObservable = interval(1000); - * const click = fromEvent(document, 'click'); - * - * const emitAfterClick = intervalObservable.pipe( - * skipUntil(click) - * ); - * // clicked at 4.6s. output: 5...6...7...8........ or - * // clicked at 7.3s. output: 8...9...10..11....... - * emitAfterClick.subscribe(value => console.log(value)); - * ``` - * - * @see {@link last} - * @see {@link skip} - * @see {@link skipWhile} - * @see {@link skipLast} - * - * @param notifier An `ObservableInput` that has to emit an item before the source Observable elements begin to - * be mirrored by the resulting Observable. - * @return A function that returns an Observable that skips items from the - * source Observable until the `notifier` Observable emits an item, then emits the - * remaining items. - */ -export function skipUntil(notifier: ObservableInput): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let taking = false; - - const skipSubscriber = createOperatorSubscriber( - subscriber, - () => { - skipSubscriber?.unsubscribe(); - taking = true; - }, - noop - ); - - innerFrom(notifier).subscribe(skipSubscriber); - - source.subscribe(createOperatorSubscriber(subscriber, (value) => taking && subscriber.next(value))); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/skipWhile.ts b/WechatBot/node_modules/rxjs/src/internal/operators/skipWhile.ts deleted file mode 100644 index 68aeca655..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/skipWhile.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { Falsy, MonoTypeOperatorFunction, OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -export function skipWhile(predicate: BooleanConstructor): OperatorFunction extends never ? never : T>; -export function skipWhile(predicate: (value: T, index: number) => true): OperatorFunction; -export function skipWhile(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction; - -/** - * Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds - * true, but emits all further source items as soon as the condition becomes false. - * - * ![](skipWhile.png) - * - * Skips all the notifications with a truthy predicate. It will not skip the notifications when the predicate is falsy. - * It can also be skipped using index. Once the predicate is true, it will not be called again. - * - * ## Example - * - * Skip some super heroes - * - * ```ts - * import { from, skipWhile } from 'rxjs'; - * - * const source = from(['Green Arrow', 'SuperMan', 'Flash', 'SuperGirl', 'Black Canary']) - * // Skip the heroes until SuperGirl - * const example = source.pipe(skipWhile(hero => hero !== 'SuperGirl')); - * // output: SuperGirl, Black Canary - * example.subscribe(femaleHero => console.log(femaleHero)); - * ``` - * - * Skip values from the array until index 5 - * - * ```ts - * import { from, skipWhile } from 'rxjs'; - * - * const source = from([1, 2, 3, 4, 5, 6, 7, 9, 10]); - * const example = source.pipe(skipWhile((_, i) => i !== 5)); - * // output: 6, 7, 9, 10 - * example.subscribe(value => console.log(value)); - * ``` - * - * @see {@link last} - * @see {@link skip} - * @see {@link skipUntil} - * @see {@link skipLast} - * - * @param {Function} predicate - A function to test each item emitted from the source Observable. - * @return A function that returns an Observable that begins emitting items - * emitted by the source Observable when the specified predicate becomes false. - */ -export function skipWhile(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let taking = false; - let index = 0; - source.subscribe( - createOperatorSubscriber(subscriber, (value) => (taking || (taking = !predicate(value, index++))) && subscriber.next(value)) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/startWith.ts b/WechatBot/node_modules/rxjs/src/internal/operators/startWith.ts deleted file mode 100644 index 8c11ddb52..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/startWith.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { concat } from '../observable/concat'; -import { OperatorFunction, SchedulerLike, ValueFromArray } from '../types'; -import { popScheduler } from '../util/args'; -import { operate } from '../util/lift'; - -// Devs are more likely to pass null or undefined than they are a scheduler -// without accompanying values. To make things easier for (naughty) devs who -// use the `strictNullChecks: false` TypeScript compiler option, these -// overloads with explicit null and undefined values are included. - -export function startWith(value: null): OperatorFunction; -export function startWith(value: undefined): OperatorFunction; - -/** @deprecated The `scheduler` parameter will be removed in v8. Use `scheduled` and `concatAll`. Details: https://rxjs.dev/deprecations/scheduler-argument */ -export function startWith( - ...valuesAndScheduler: [...A, SchedulerLike] -): OperatorFunction>; -export function startWith(...values: A): OperatorFunction>; - -/** - * Returns an observable that, at the moment of subscription, will synchronously emit all - * values provided to this operator, then subscribe to the source and mirror all of its emissions - * to subscribers. - * - * This is a useful way to know when subscription has occurred on an existing observable. - * - * First emits its arguments in order, and then any - * emissions from the source. - * - * ![](startWith.png) - * - * ## Examples - * - * Emit a value when a timer starts. - * - * ```ts - * import { timer, map, startWith } from 'rxjs'; - * - * timer(1000) - * .pipe( - * map(() => 'timer emit'), - * startWith('timer start') - * ) - * .subscribe(x => console.log(x)); - * - * // results: - * // 'timer start' - * // 'timer emit' - * ``` - * - * @param values Items you want the modified Observable to emit first. - * @return A function that returns an Observable that synchronously emits - * provided values before subscribing to the source Observable. - * - * @see {@link endWith} - * @see {@link finalize} - * @see {@link concat} - */ -export function startWith(...values: D[]): OperatorFunction { - const scheduler = popScheduler(values); - return operate((source, subscriber) => { - // Here we can't pass `undefined` as a scheduler, because if we did, the - // code inside of `concat` would be confused by the `undefined`, and treat it - // like an invalid observable. So we have to split it two different ways. - (scheduler ? concat(values, source, scheduler) : concat(values, source)).subscribe(subscriber); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/subscribeOn.ts b/WechatBot/node_modules/rxjs/src/internal/operators/subscribeOn.ts deleted file mode 100644 index 17240d048..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/subscribeOn.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -import { operate } from '../util/lift'; - -/** - * Asynchronously subscribes Observers to this Observable on the specified {@link SchedulerLike}. - * - * With `subscribeOn` you can decide what type of scheduler a specific Observable will be using when it is subscribed to. - * - * Schedulers control the speed and order of emissions to observers from an Observable stream. - * - * ![](subscribeOn.png) - * - * ## Example - * - * Given the following code: - * - * ```ts - * import { of, merge } from 'rxjs'; - * - * const a = of(1, 2, 3); - * const b = of(4, 5, 6); - * - * merge(a, b).subscribe(console.log); - * - * // Outputs - * // 1 - * // 2 - * // 3 - * // 4 - * // 5 - * // 6 - * ``` - * - * Both Observable `a` and `b` will emit their values directly and synchronously once they are subscribed to. - * - * If we instead use the `subscribeOn` operator declaring that we want to use the {@link asyncScheduler} for values emitted by Observable `a`: - * - * ```ts - * import { of, subscribeOn, asyncScheduler, merge } from 'rxjs'; - * - * const a = of(1, 2, 3).pipe(subscribeOn(asyncScheduler)); - * const b = of(4, 5, 6); - * - * merge(a, b).subscribe(console.log); - * - * // Outputs - * // 4 - * // 5 - * // 6 - * // 1 - * // 2 - * // 3 - * ``` - * - * The reason for this is that Observable `b` emits its values directly and synchronously like before - * but the emissions from `a` are scheduled on the event loop because we are now using the {@link asyncScheduler} for that specific Observable. - * - * @param scheduler The {@link SchedulerLike} to perform subscription actions on. - * @param delay A delay to pass to the scheduler to delay subscriptions - * @return A function that returns an Observable modified so that its - * subscriptions happen on the specified {@link SchedulerLike}. - */ -export function subscribeOn(scheduler: SchedulerLike, delay: number = 0): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - subscriber.add(scheduler.schedule(() => source.subscribe(subscriber), delay)); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/switchAll.ts b/WechatBot/node_modules/rxjs/src/internal/operators/switchAll.ts deleted file mode 100644 index 69e9cbb3a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/switchAll.ts +++ /dev/null @@ -1,65 +0,0 @@ -import { OperatorFunction, ObservableInput, ObservedValueOf } from '../types'; -import { switchMap } from './switchMap'; -import { identity } from '../util/identity'; - -/** - * Converts a higher-order Observable into a first-order Observable - * producing values only from the most recent observable sequence - * - * Flattens an Observable-of-Observables. - * - * ![](switchAll.png) - * - * `switchAll` subscribes to a source that is an observable of observables, also known as a - * "higher-order observable" (or `Observable>`). It subscribes to the most recently - * provided "inner observable" emitted by the source, unsubscribing from any previously subscribed - * to inner observable, such that only the most recent inner observable may be subscribed to at - * any point in time. The resulting observable returned by `switchAll` will only complete if the - * source observable completes, *and* any currently subscribed to inner observable also has completed, - * if there are any. - * - * ## Examples - * - * Spawn a new interval observable for each click event, but for every new - * click, cancel the previous interval and subscribe to the new one - * - * ```ts - * import { fromEvent, tap, map, interval, switchAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click').pipe(tap(() => console.log('click'))); - * const source = clicks.pipe(map(() => interval(1000))); - * - * source - * .pipe(switchAll()) - * .subscribe(x => console.log(x)); - * - * // Output - * // click - * // 0 - * // 1 - * // 2 - * // 3 - * // ... - * // click - * // 0 - * // 1 - * // 2 - * // ... - * // click - * // ... - * ``` - * - * @see {@link combineLatestAll} - * @see {@link concatAll} - * @see {@link exhaustAll} - * @see {@link switchMap} - * @see {@link switchMapTo} - * @see {@link mergeAll} - * - * @return A function that returns an Observable that converts a higher-order - * Observable into a first-order Observable producing values only from the most - * recent Observable sequence. - */ -export function switchAll>(): OperatorFunction> { - return switchMap(identity); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/switchMap.ts b/WechatBot/node_modules/rxjs/src/internal/operators/switchMap.ts deleted file mode 100644 index 4ba293e6e..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/switchMap.ts +++ /dev/null @@ -1,133 +0,0 @@ -import { Subscriber } from '../Subscriber'; -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -import { innerFrom } from '../observable/innerFrom'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/* tslint:disable:max-line-length */ -export function switchMap>( - project: (value: T, index: number) => O -): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function switchMap>( - project: (value: T, index: number) => O, - resultSelector: undefined -): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function switchMap>( - project: (value: T, index: number) => O, - resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R -): OperatorFunction; -/* tslint:enable:max-line-length */ - -/** - * Projects each source value to an Observable which is merged in the output - * Observable, emitting values only from the most recently projected Observable. - * - * Maps each value to an Observable, then flattens all of - * these inner Observables using {@link switchAll}. - * - * ![](switchMap.png) - * - * Returns an Observable that emits items based on applying a function that you - * supply to each item emitted by the source Observable, where that function - * returns an (so-called "inner") Observable. Each time it observes one of these - * inner Observables, the output Observable begins emitting the items emitted by - * that inner Observable. When a new inner Observable is emitted, `switchMap` - * stops emitting items from the earlier-emitted inner Observable and begins - * emitting items from the new one. It continues to behave like this for - * subsequent inner Observables. - * - * ## Example - * - * Generate new Observable according to source Observable values - * - * ```ts - * import { of, switchMap } from 'rxjs'; - * - * const switched = of(1, 2, 3).pipe(switchMap(x => of(x, x ** 2, x ** 3))); - * switched.subscribe(x => console.log(x)); - * // outputs - * // 1 - * // 1 - * // 1 - * // 2 - * // 4 - * // 8 - * // 3 - * // 9 - * // 27 - * ``` - * - * Restart an interval Observable on every click event - * - * ```ts - * import { fromEvent, switchMap, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(switchMap(() => interval(1000))); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link concatMap} - * @see {@link exhaustMap} - * @see {@link mergeMap} - * @see {@link switchAll} - * @see {@link switchMapTo} - * - * @param {function(value: T, index: number): ObservableInput} project A function - * that, when applied to an item emitted by the source Observable, returns an - * Observable. - * @return A function that returns an Observable that emits the result of - * applying the projection function (and the optional deprecated - * `resultSelector`) to each item emitted by the source Observable and taking - * only the values from the most recently projected inner Observable. - */ -export function switchMap>( - project: (value: T, index: number) => O, - resultSelector?: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R -): OperatorFunction | R> { - return operate((source, subscriber) => { - let innerSubscriber: Subscriber> | null = null; - let index = 0; - // Whether or not the source subscription has completed - let isComplete = false; - - // We only complete the result if the source is complete AND we don't have an active inner subscription. - // This is called both when the source completes and when the inners complete. - const checkComplete = () => isComplete && !innerSubscriber && subscriber.complete(); - - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - // Cancel the previous inner subscription if there was one - innerSubscriber?.unsubscribe(); - let innerIndex = 0; - const outerIndex = index++; - // Start the next inner subscription - innerFrom(project(value, outerIndex)).subscribe( - (innerSubscriber = createOperatorSubscriber( - subscriber, - // When we get a new inner value, next it through. Note that this is - // handling the deprecate result selector here. This is because with this architecture - // it ends up being smaller than using the map operator. - (innerValue) => subscriber.next(resultSelector ? resultSelector(value, innerValue, outerIndex, innerIndex++) : innerValue), - () => { - // The inner has completed. Null out the inner subscriber to - // free up memory and to signal that we have no inner subscription - // currently. - innerSubscriber = null!; - checkComplete(); - } - )) - ); - }, - () => { - isComplete = true; - checkComplete(); - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/switchMapTo.ts b/WechatBot/node_modules/rxjs/src/internal/operators/switchMapTo.ts deleted file mode 100644 index 28a45c1cc..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/switchMapTo.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { switchMap } from './switchMap'; -import { ObservableInput, OperatorFunction, ObservedValueOf } from '../types'; -import { isFunction } from '../util/isFunction'; - -/** @deprecated Will be removed in v9. Use {@link switchMap} instead: `switchMap(() => result)` */ -export function switchMapTo>(observable: O): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function switchMapTo>( - observable: O, - resultSelector: undefined -): OperatorFunction>; -/** @deprecated The `resultSelector` parameter will be removed in v8. Use an inner `map` instead. Details: https://rxjs.dev/deprecations/resultSelector */ -export function switchMapTo>( - observable: O, - resultSelector: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R -): OperatorFunction; - -/** - * Projects each source value to the same Observable which is flattened multiple - * times with {@link switchMap} in the output Observable. - * - * It's like {@link switchMap}, but maps each value - * always to the same inner Observable. - * - * ![](switchMapTo.png) - * - * Maps each source value to the given Observable `innerObservable` regardless - * of the source value, and then flattens those resulting Observables into one - * single Observable, which is the output Observable. The output Observables - * emits values only from the most recently emitted instance of - * `innerObservable`. - * - * ## Example - * - * Restart an interval Observable on every click event - * - * ```ts - * import { fromEvent, switchMapTo, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(switchMapTo(interval(1000))); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link concatMapTo} - * @see {@link switchAll} - * @see {@link switchMap} - * @see {@link mergeMapTo} - * - * @param {ObservableInput} innerObservable An Observable to replace each value from - * the source Observable. - * @return A function that returns an Observable that emits items from the - * given `innerObservable` (and optionally transformed through the deprecated - * `resultSelector`) every time a value is emitted on the source Observable, - * and taking only the values from the most recently projected inner - * Observable. - * @deprecated Will be removed in v9. Use {@link switchMap} instead: `switchMap(() => result)` - */ -export function switchMapTo>( - innerObservable: O, - resultSelector?: (outerValue: T, innerValue: ObservedValueOf, outerIndex: number, innerIndex: number) => R -): OperatorFunction | R> { - return isFunction(resultSelector) ? switchMap(() => innerObservable, resultSelector) : switchMap(() => innerObservable); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/switchScan.ts b/WechatBot/node_modules/rxjs/src/internal/operators/switchScan.ts deleted file mode 100644 index 902a2a70e..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/switchScan.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { ObservableInput, ObservedValueOf, OperatorFunction } from '../types'; -import { switchMap } from './switchMap'; -import { operate } from '../util/lift'; - -// TODO: Generate a marble diagram for these docs. - -/** - * Applies an accumulator function over the source Observable where the - * accumulator function itself returns an Observable, emitting values - * only from the most recently returned Observable. - * - * It's like {@link mergeScan}, but only the most recent - * Observable returned by the accumulator is merged into the outer Observable. - * - * @see {@link scan} - * @see {@link mergeScan} - * @see {@link switchMap} - * - * @param accumulator - * The accumulator function called on each source value. - * @param seed The initial accumulation value. - * @return A function that returns an observable of the accumulated values. - */ -export function switchScan>( - accumulator: (acc: R, value: T, index: number) => O, - seed: R -): OperatorFunction> { - return operate((source, subscriber) => { - // The state we will keep up to date to pass into our - // accumulator function at each new value from the source. - let state = seed; - - // Use `switchMap` on our `source` to do the work of creating - // this operator. Note the backwards order here of `switchMap()(source)` - // to avoid needing to use `pipe` unnecessarily - switchMap( - // On each value from the source, call the accumulator with - // our previous state, the value and the index. - (value: T, index) => accumulator(state, value, index), - // Using the deprecated result selector here as a dirty trick - // to update our state with the flattened value. - (_, innerValue) => ((state = innerValue), innerValue) - )(source).subscribe(subscriber); - - return () => { - // Release state on finalization - state = null!; - }; - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/take.ts b/WechatBot/node_modules/rxjs/src/internal/operators/take.ts deleted file mode 100644 index b2054e78b..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/take.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { MonoTypeOperatorFunction } from '../types'; -import { EMPTY } from '../observable/empty'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Emits only the first `count` values emitted by the source Observable. - * - * Takes the first `count` values from the source, then - * completes. - * - * ![](take.png) - * - * `take` returns an Observable that emits only the first `count` values emitted - * by the source Observable. If the source emits fewer than `count` values then - * all of its values are emitted. After that, it completes, regardless if the - * source completes. - * - * ## Example - * - * Take the first 5 seconds of an infinite 1-second interval Observable - * - * ```ts - * import { interval, take } from 'rxjs'; - * - * const intervalCount = interval(1000); - * const takeFive = intervalCount.pipe(take(5)); - * takeFive.subscribe(x => console.log(x)); - * - * // Logs: - * // 0 - * // 1 - * // 2 - * // 3 - * // 4 - * ``` - * - * @see {@link takeLast} - * @see {@link takeUntil} - * @see {@link takeWhile} - * @see {@link skip} - * - * @param count The maximum number of `next` values to emit. - * @return A function that returns an Observable that emits only the first - * `count` values emitted by the source Observable, or all of the values from - * the source if the source emits fewer than `count` values. - */ -export function take(count: number): MonoTypeOperatorFunction { - return count <= 0 - ? // If we are taking no values, that's empty. - () => EMPTY - : operate((source, subscriber) => { - let seen = 0; - source.subscribe( - createOperatorSubscriber(subscriber, (value) => { - // Increment the number of values we have seen, - // then check it against the allowed count to see - // if we are still letting values through. - if (++seen <= count) { - subscriber.next(value); - // If we have met or passed our allowed count, - // we need to complete. We have to do <= here, - // because re-entrant code will increment `seen` twice. - if (count <= seen) { - subscriber.complete(); - } - } - }) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/takeLast.ts b/WechatBot/node_modules/rxjs/src/internal/operators/takeLast.ts deleted file mode 100644 index 972d14706..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/takeLast.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { EMPTY } from '../observable/empty'; -import { MonoTypeOperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Waits for the source to complete, then emits the last N values from the source, - * as specified by the `count` argument. - * - * ![](takeLast.png) - * - * `takeLast` results in an observable that will hold values up to `count` values in memory, - * until the source completes. It then pushes all values in memory to the consumer, in the - * order they were received from the source, then notifies the consumer that it is - * complete. - * - * If for some reason the source completes before the `count` supplied to `takeLast` is reached, - * all values received until that point are emitted, and then completion is notified. - * - * **Warning**: Using `takeLast` with an observable that never completes will result - * in an observable that never emits a value. - * - * ## Example - * - * Take the last 3 values of an Observable with many values - * - * ```ts - * import { range, takeLast } from 'rxjs'; - * - * const many = range(1, 100); - * const lastThree = many.pipe(takeLast(3)); - * lastThree.subscribe(x => console.log(x)); - * ``` - * - * @see {@link take} - * @see {@link takeUntil} - * @see {@link takeWhile} - * @see {@link skip} - * - * @param count The maximum number of values to emit from the end of - * the sequence of values emitted by the source Observable. - * @return A function that returns an Observable that emits at most the last - * `count` values emitted by the source Observable. - */ -export function takeLast(count: number): MonoTypeOperatorFunction { - return count <= 0 - ? () => EMPTY - : operate((source, subscriber) => { - // This buffer will hold the values we are going to emit - // when the source completes. Since we only want to take the - // last N values, we can't emit until we're sure we're not getting - // any more values. - let buffer: T[] = []; - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - // Add the most recent value onto the end of our buffer. - buffer.push(value); - // If our buffer is now larger than the number of values we - // want to take, we remove the oldest value from the buffer. - count < buffer.length && buffer.shift(); - }, - () => { - // The source completed, we now know what are last values - // are, emit them in the order they were received. - for (const value of buffer) { - subscriber.next(value); - } - subscriber.complete(); - }, - // Errors are passed through to the consumer - undefined, - () => { - // During finalization release the values in our buffer. - buffer = null!; - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/takeUntil.ts b/WechatBot/node_modules/rxjs/src/internal/operators/takeUntil.ts deleted file mode 100644 index 8ac6c2328..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/takeUntil.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { noop } from '../util/noop'; - -/** - * Emits the values emitted by the source Observable until a `notifier` - * Observable emits a value. - * - * Lets values pass until a second Observable, - * `notifier`, emits a value. Then, it completes. - * - * ![](takeUntil.png) - * - * `takeUntil` subscribes and begins mirroring the source Observable. It also - * monitors a second Observable, `notifier` that you provide. If the `notifier` - * emits a value, the output Observable stops mirroring the source Observable - * and completes. If the `notifier` doesn't emit any value and completes - * then `takeUntil` will pass all values. - * - * ## Example - * - * Tick every second until the first click happens - * - * ```ts - * import { interval, fromEvent, takeUntil } from 'rxjs'; - * - * const source = interval(1000); - * const clicks = fromEvent(document, 'click'); - * const result = source.pipe(takeUntil(clicks)); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link take} - * @see {@link takeLast} - * @see {@link takeWhile} - * @see {@link skip} - * - * @param {Observable} notifier The Observable whose first emitted value will - * cause the output Observable of `takeUntil` to stop emitting values from the - * source Observable. - * @return A function that returns an Observable that emits the values from the - * source Observable until `notifier` emits its first value. - */ -export function takeUntil(notifier: ObservableInput): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - innerFrom(notifier).subscribe(createOperatorSubscriber(subscriber, () => subscriber.complete(), noop)); - !subscriber.closed && source.subscribe(subscriber); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/takeWhile.ts b/WechatBot/node_modules/rxjs/src/internal/operators/takeWhile.ts deleted file mode 100644 index 27da59d9e..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/takeWhile.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { OperatorFunction, MonoTypeOperatorFunction, TruthyTypesOf } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -export function takeWhile(predicate: BooleanConstructor, inclusive: true): MonoTypeOperatorFunction; -export function takeWhile(predicate: BooleanConstructor, inclusive: false): OperatorFunction>; -export function takeWhile(predicate: BooleanConstructor): OperatorFunction>; -export function takeWhile(predicate: (value: T, index: number) => value is S): OperatorFunction; -export function takeWhile(predicate: (value: T, index: number) => value is S, inclusive: false): OperatorFunction; -export function takeWhile(predicate: (value: T, index: number) => boolean, inclusive?: boolean): MonoTypeOperatorFunction; - -/** - * Emits values emitted by the source Observable so long as each value satisfies - * the given `predicate`, and then completes as soon as this `predicate` is not - * satisfied. - * - * Takes values from the source only while they pass the - * condition given. When the first value does not satisfy, it completes. - * - * ![](takeWhile.png) - * - * `takeWhile` subscribes and begins mirroring the source Observable. Each value - * emitted on the source is given to the `predicate` function which returns a - * boolean, representing a condition to be satisfied by the source values. The - * output Observable emits the source values until such time as the `predicate` - * returns false, at which point `takeWhile` stops mirroring the source - * Observable and completes the output Observable. - * - * ## Example - * - * Emit click events only while the clientX property is greater than 200 - * - * ```ts - * import { fromEvent, takeWhile } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(takeWhile(ev => ev.clientX > 200)); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link take} - * @see {@link takeLast} - * @see {@link takeUntil} - * @see {@link skip} - * - * @param {function(value: T, index: number): boolean} predicate A function that - * evaluates a value emitted by the source Observable and returns a boolean. - * Also takes the (zero-based) index as the second argument. - * @param {boolean} inclusive When set to `true` the value that caused - * `predicate` to return `false` will also be emitted. - * @return A function that returns an Observable that emits values from the - * source Observable so long as each value satisfies the condition defined by - * the `predicate`, then completes. - */ -export function takeWhile(predicate: (value: T, index: number) => boolean, inclusive = false): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let index = 0; - source.subscribe( - createOperatorSubscriber(subscriber, (value) => { - const result = predicate(value, index++); - (result || inclusive) && subscriber.next(value); - !result && subscriber.complete(); - }) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/tap.ts b/WechatBot/node_modules/rxjs/src/internal/operators/tap.ts deleted file mode 100644 index bc6243e9e..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/tap.ts +++ /dev/null @@ -1,215 +0,0 @@ -import { MonoTypeOperatorFunction, Observer } from '../types'; -import { isFunction } from '../util/isFunction'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { identity } from '../util/identity'; - -/** - * An extension to the {@link Observer} interface used only by the {@link tap} operator. - * - * It provides a useful set of callbacks a user can register to do side-effects in - * cases other than what the usual {@link Observer} callbacks are - * ({@link guide/glossary-and-semantics#next next}, - * {@link guide/glossary-and-semantics#error error} and/or - * {@link guide/glossary-and-semantics#complete complete}). - * - * ## Example - * - * ```ts - * import { fromEvent, switchMap, tap, interval, take } from 'rxjs'; - * - * const source$ = fromEvent(document, 'click'); - * const result$ = source$.pipe( - * switchMap((_, i) => i % 2 === 0 - * ? fromEvent(document, 'mousemove').pipe( - * tap({ - * subscribe: () => console.log('Subscribed to the mouse move events after click #' + i), - * unsubscribe: () => console.log('Mouse move events #' + i + ' unsubscribed'), - * finalize: () => console.log('Mouse move events #' + i + ' finalized') - * }) - * ) - * : interval(1_000).pipe( - * take(5), - * tap({ - * subscribe: () => console.log('Subscribed to the 1-second interval events after click #' + i), - * unsubscribe: () => console.log('1-second interval events #' + i + ' unsubscribed'), - * finalize: () => console.log('1-second interval events #' + i + ' finalized') - * }) - * ) - * ) - * ); - * - * const subscription = result$.subscribe({ - * next: console.log - * }); - * - * setTimeout(() => { - * console.log('Unsubscribe after 60 seconds'); - * subscription.unsubscribe(); - * }, 60_000); - * ``` - */ -export interface TapObserver extends Observer { - /** - * The callback that `tap` operator invokes at the moment when the source Observable - * gets subscribed to. - */ - subscribe: () => void; - /** - * The callback that `tap` operator invokes when an explicit - * {@link guide/glossary-and-semantics#unsubscription unsubscribe} happens. It won't get invoked on - * `error` or `complete` events. - */ - unsubscribe: () => void; - /** - * The callback that `tap` operator invokes when any kind of - * {@link guide/glossary-and-semantics#finalization finalization} happens - either when - * the source Observable `error`s or `complete`s or when it gets explicitly unsubscribed - * by the user. There is no difference in using this callback or the {@link finalize} - * operator, but if you're already using `tap` operator, you can use this callback - * instead. You'd get the same result in either case. - */ - finalize: () => void; -} -export function tap(observerOrNext?: Partial> | ((value: T) => void)): MonoTypeOperatorFunction; -/** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */ -export function tap( - next?: ((value: T) => void) | null, - error?: ((error: any) => void) | null, - complete?: (() => void) | null -): MonoTypeOperatorFunction; - -/** - * Used to perform side-effects for notifications from the source observable - * - * Used when you want to affect outside state with a notification without altering the notification - * - * ![](tap.png) - * - * Tap is designed to allow the developer a designated place to perform side effects. While you _could_ perform side-effects - * inside of a `map` or a `mergeMap`, that would make their mapping functions impure, which isn't always a big deal, but will - * make it so you can't do things like memoize those functions. The `tap` operator is designed solely for such side-effects to - * help you remove side-effects from other operations. - * - * For any notification, next, error, or complete, `tap` will call the appropriate callback you have provided to it, via a function - * reference, or a partial observer, then pass that notification down the stream. - * - * The observable returned by `tap` is an exact mirror of the source, with one exception: Any error that occurs -- synchronously -- in a handler - * provided to `tap` will be emitted as an error from the returned observable. - * - * > Be careful! You can mutate objects as they pass through the `tap` operator's handlers. - * - * The most common use of `tap` is actually for debugging. You can place a `tap(console.log)` anywhere - * in your observable `pipe`, log out the notifications as they are emitted by the source returned by the previous - * operation. - * - * ## Examples - * - * Check a random number before it is handled. Below is an observable that will use a random number between 0 and 1, - * and emit `'big'` or `'small'` depending on the size of that number. But we wanted to log what the original number - * was, so we have added a `tap(console.log)`. - * - * ```ts - * import { of, tap, map } from 'rxjs'; - * - * of(Math.random()).pipe( - * tap(console.log), - * map(n => n > 0.5 ? 'big' : 'small') - * ).subscribe(console.log); - * ``` - * - * Using `tap` to analyze a value and force an error. Below is an observable where in our system we only - * want to emit numbers 3 or less we get from another source. We can force our observable to error - * using `tap`. - * - * ```ts - * import { of, tap } from 'rxjs'; - * - * const source = of(1, 2, 3, 4, 5); - * - * source.pipe( - * tap(n => { - * if (n > 3) { - * throw new TypeError(`Value ${ n } is greater than 3`); - * } - * }) - * ) - * .subscribe({ next: console.log, error: err => console.log(err.message) }); - * ``` - * - * We want to know when an observable completes before moving on to the next observable. The system - * below will emit a random series of `'X'` characters from 3 different observables in sequence. The - * only way we know when one observable completes and moves to the next one, in this case, is because - * we have added a `tap` with the side effect of logging to console. - * - * ```ts - * import { of, concatMap, interval, take, map, tap } from 'rxjs'; - * - * of(1, 2, 3).pipe( - * concatMap(n => interval(1000).pipe( - * take(Math.round(Math.random() * 10)), - * map(() => 'X'), - * tap({ complete: () => console.log(`Done with ${ n }`) }) - * )) - * ) - * .subscribe(console.log); - * ``` - * - * @see {@link finalize} - * @see {@link TapObserver} - * - * @param observerOrNext A next handler or partial observer - * @param error An error handler - * @param complete A completion handler - * @return A function that returns an Observable identical to the source, but - * runs the specified Observer or callback(s) for each item. - */ -export function tap( - observerOrNext?: Partial> | ((value: T) => void) | null, - error?: ((e: any) => void) | null, - complete?: (() => void) | null -): MonoTypeOperatorFunction { - // We have to check to see not only if next is a function, - // but if error or complete were passed. This is because someone - // could technically call tap like `tap(null, fn)` or `tap(null, null, fn)`. - const tapObserver = - isFunction(observerOrNext) || error || complete - ? // tslint:disable-next-line: no-object-literal-type-assertion - ({ next: observerOrNext as Exclude>>, error, complete } as Partial>) - : observerOrNext; - - return tapObserver - ? operate((source, subscriber) => { - tapObserver.subscribe?.(); - let isUnsub = true; - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - tapObserver.next?.(value); - subscriber.next(value); - }, - () => { - isUnsub = false; - tapObserver.complete?.(); - subscriber.complete(); - }, - (err) => { - isUnsub = false; - tapObserver.error?.(err); - subscriber.error(err); - }, - () => { - if (isUnsub) { - tapObserver.unsubscribe?.(); - } - tapObserver.finalize?.(); - } - ) - ); - }) - : // Tap was called with no valid tap observer or handler - // (e.g. `tap(null, null, null)` or `tap(null)` or `tap()`) - // so we're going to just mirror the source. - identity; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/throttle.ts b/WechatBot/node_modules/rxjs/src/internal/operators/throttle.ts deleted file mode 100644 index 8c53a1c44..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/throttle.ts +++ /dev/null @@ -1,143 +0,0 @@ -import { Subscription } from '../Subscription'; - -import { MonoTypeOperatorFunction, ObservableInput } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; - -/** - * An object interface used by {@link throttle} or {@link throttleTime} that ensure - * configuration options of these operators. - * - * @see {@link throttle} - * @see {@link throttleTime} - */ -export interface ThrottleConfig { - /** - * If `true`, the resulting Observable will emit the first value from the source - * Observable at the **start** of the "throttling" process (when starting an - * internal timer that prevents other emissions from the source to pass through). - * If `false`, it will not emit the first value from the source Observable at the - * start of the "throttling" process. - * - * If not provided, defaults to: `true`. - */ - leading?: boolean; - /** - * If `true`, the resulting Observable will emit the last value from the source - * Observable at the **end** of the "throttling" process (when ending an internal - * timer that prevents other emissions from the source to pass through). - * If `false`, it will not emit the last value from the source Observable at the - * end of the "throttling" process. - * - * If not provided, defaults to: `false`. - */ - trailing?: boolean; -} - -/** - * Emits a value from the source Observable, then ignores subsequent source - * values for a duration determined by another Observable, then repeats this - * process. - * - * It's like {@link throttleTime}, but the silencing - * duration is determined by a second Observable. - * - * ![](throttle.svg) - * - * `throttle` emits the source Observable values on the output Observable - * when its internal timer is disabled, and ignores source values when the timer - * is enabled. Initially, the timer is disabled. As soon as the first source - * value arrives, it is forwarded to the output Observable, and then the timer - * is enabled by calling the `durationSelector` function with the source value, - * which returns the "duration" Observable. When the duration Observable emits a - * value, the timer is disabled, and this process repeats for the - * next source value. - * - * ## Example - * - * Emit clicks at a rate of at most one click per second - * - * ```ts - * import { fromEvent, throttle, interval } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(throttle(() => interval(1000))); - * - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link audit} - * @see {@link debounce} - * @see {@link delayWhen} - * @see {@link sample} - * @see {@link throttleTime} - * - * @param durationSelector A function that receives a value from the source - * Observable, for computing the silencing duration for each source value, - * returned as an `ObservableInput`. - * @param config A configuration object to define `leading` and `trailing` - * behavior. Defaults to `{ leading: true, trailing: false }`. - * @return A function that returns an Observable that performs the throttle - * operation to limit the rate of emissions from the source. - */ -export function throttle(durationSelector: (value: T) => ObservableInput, config?: ThrottleConfig): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - const { leading = true, trailing = false } = config ?? {}; - let hasValue = false; - let sendValue: T | null = null; - let throttled: Subscription | null = null; - let isComplete = false; - - const endThrottling = () => { - throttled?.unsubscribe(); - throttled = null; - if (trailing) { - send(); - isComplete && subscriber.complete(); - } - }; - - const cleanupThrottling = () => { - throttled = null; - isComplete && subscriber.complete(); - }; - - const startThrottle = (value: T) => - (throttled = innerFrom(durationSelector(value)).subscribe(createOperatorSubscriber(subscriber, endThrottling, cleanupThrottling))); - - const send = () => { - if (hasValue) { - // Ensure we clear out our value and hasValue flag - // before we emit, otherwise reentrant code can cause - // issues here. - hasValue = false; - const value = sendValue!; - sendValue = null; - // Emit the value. - subscriber.next(value); - !isComplete && startThrottle(value); - } - }; - - source.subscribe( - createOperatorSubscriber( - subscriber, - // Regarding the presence of throttled.closed in the following - // conditions, if a synchronous duration selector is specified - weird, - // but legal - an already-closed subscription will be assigned to - // throttled, so the subscription's closed property needs to be checked, - // too. - (value) => { - hasValue = true; - sendValue = value; - !(throttled && !throttled.closed) && (leading ? send() : startThrottle(value)); - }, - () => { - isComplete = true; - !(trailing && hasValue && throttled && !throttled.closed) && subscriber.complete(); - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/throttleTime.ts b/WechatBot/node_modules/rxjs/src/internal/operators/throttleTime.ts deleted file mode 100644 index de325fe50..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/throttleTime.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { throttle, ThrottleConfig } from './throttle'; -import { MonoTypeOperatorFunction, SchedulerLike } from '../types'; -import { timer } from '../observable/timer'; - -/** - * Emits a value from the source Observable, then ignores subsequent source - * values for `duration` milliseconds, then repeats this process. - * - * Lets a value pass, then ignores source values for the - * next `duration` milliseconds. - * - * ![](throttleTime.png) - * - * `throttleTime` emits the source Observable values on the output Observable - * when its internal timer is disabled, and ignores source values when the timer - * is enabled. Initially, the timer is disabled. As soon as the first source - * value arrives, it is forwarded to the output Observable, and then the timer - * is enabled. After `duration` milliseconds (or the time unit determined - * internally by the optional `scheduler`) has passed, the timer is disabled, - * and this process repeats for the next source value. Optionally takes a - * {@link SchedulerLike} for managing timers. - * - * ## Examples - * - * ### Limit click rate - * - * Emit clicks at a rate of at most one click per second - * - * ```ts - * import { fromEvent, throttleTime } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe(throttleTime(1000)); - * - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link auditTime} - * @see {@link debounceTime} - * @see {@link delay} - * @see {@link sampleTime} - * @see {@link throttle} - * - * @param duration Time to wait before emitting another value after - * emitting the last value, measured in milliseconds or the time unit determined - * internally by the optional `scheduler`. - * @param scheduler The {@link SchedulerLike} to use for - * managing the timers that handle the throttling. Defaults to {@link asyncScheduler}. - * @param config A configuration object to define `leading` and - * `trailing` behavior. Defaults to `{ leading: true, trailing: false }`. - * @return A function that returns an Observable that performs the throttle - * operation to limit the rate of emissions from the source. - */ -export function throttleTime( - duration: number, - scheduler: SchedulerLike = asyncScheduler, - config?: ThrottleConfig -): MonoTypeOperatorFunction { - const duration$ = timer(duration, scheduler); - return throttle(() => duration$, config); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/throwIfEmpty.ts b/WechatBot/node_modules/rxjs/src/internal/operators/throwIfEmpty.ts deleted file mode 100644 index 76497a221..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/throwIfEmpty.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { EmptyError } from '../util/EmptyError'; -import { MonoTypeOperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * If the source observable completes without emitting a value, it will emit - * an error. The error will be created at that time by the optional - * `errorFactory` argument, otherwise, the error will be {@link EmptyError}. - * - * ![](throwIfEmpty.png) - * - * ## Example - * - * Throw an error if the document wasn't clicked within 1 second - * - * ```ts - * import { fromEvent, takeUntil, timer, throwIfEmpty } from 'rxjs'; - * - * const click$ = fromEvent(document, 'click'); - * - * click$.pipe( - * takeUntil(timer(1000)), - * throwIfEmpty(() => new Error('The document was not clicked within 1 second')) - * ) - * .subscribe({ - * next() { - * console.log('The document was clicked'); - * }, - * error(err) { - * console.error(err.message); - * } - * }); - * ``` - * - * @param errorFactory A factory function called to produce the - * error to be thrown when the source observable completes without emitting a - * value. - * @return A function that returns an Observable that throws an error if the - * source Observable completed without emitting. - */ -export function throwIfEmpty(errorFactory: () => any = defaultErrorFactory): MonoTypeOperatorFunction { - return operate((source, subscriber) => { - let hasValue = false; - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - hasValue = true; - subscriber.next(value); - }, - () => (hasValue ? subscriber.complete() : subscriber.error(errorFactory())) - ) - ); - }); -} - -function defaultErrorFactory() { - return new EmptyError(); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/timeInterval.ts b/WechatBot/node_modules/rxjs/src/internal/operators/timeInterval.ts deleted file mode 100644 index 5baa1457d..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/timeInterval.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { SchedulerLike, OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Emits an object containing the current value, and the time that has - * passed between emitting the current value and the previous value, which is - * calculated by using the provided `scheduler`'s `now()` method to retrieve - * the current time at each emission, then calculating the difference. The `scheduler` - * defaults to {@link asyncScheduler}, so by default, the `interval` will be in - * milliseconds. - * - * Convert an Observable that emits items into one that - * emits indications of the amount of time elapsed between those emissions. - * - * ![](timeInterval.png) - * - * ## Example - * - * Emit interval between current value with the last value - * - * ```ts - * import { interval, timeInterval } from 'rxjs'; - * - * const seconds = interval(1000); - * - * seconds - * .pipe(timeInterval()) - * .subscribe(value => console.log(value)); - * - * // NOTE: The values will never be this precise, - * // intervals created with `interval` or `setInterval` - * // are non-deterministic. - * - * // { value: 0, interval: 1000 } - * // { value: 1, interval: 1000 } - * // { value: 2, interval: 1000 } - * ``` - * - * @param {SchedulerLike} [scheduler] Scheduler used to get the current time. - * @return A function that returns an Observable that emits information about - * value and interval. - */ -export function timeInterval(scheduler: SchedulerLike = asyncScheduler): OperatorFunction> { - return operate((source, subscriber) => { - let last = scheduler.now(); - source.subscribe( - createOperatorSubscriber(subscriber, (value) => { - const now = scheduler.now(); - const interval = now - last; - last = now; - subscriber.next(new TimeInterval(value, interval)); - }) - ); - }); -} - -// TODO(benlesh): make this an interface, export the interface, but not the implemented class, -// there's no reason users should be manually creating this type. - -export class TimeInterval { - /** - * @deprecated Internal implementation detail, do not construct directly. Will be made an interface in v8. - */ - constructor(public value: T, public interval: number) {} -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/timeout.ts b/WechatBot/node_modules/rxjs/src/internal/operators/timeout.ts deleted file mode 100644 index 2035cae71..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/timeout.ts +++ /dev/null @@ -1,405 +0,0 @@ -import { asyncScheduler } from '../scheduler/async'; -import { MonoTypeOperatorFunction, SchedulerLike, OperatorFunction, ObservableInput, ObservedValueOf } from '../types'; -import { isValidDate } from '../util/isDate'; -import { Subscription } from '../Subscription'; -import { operate } from '../util/lift'; -import { Observable } from '../Observable'; -import { innerFrom } from '../observable/innerFrom'; -import { createErrorClass } from '../util/createErrorClass'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { executeSchedule } from '../util/executeSchedule'; - -export interface TimeoutConfig = ObservableInput, M = unknown> { - /** - * The time allowed between values from the source before timeout is triggered. - */ - each?: number; - - /** - * The relative time as a `number` in milliseconds, or a specific time as a `Date` object, - * by which the first value must arrive from the source before timeout is triggered. - */ - first?: number | Date; - - /** - * The scheduler to use with time-related operations within this operator. Defaults to {@link asyncScheduler} - */ - scheduler?: SchedulerLike; - - /** - * A factory used to create observable to switch to when timeout occurs. Provides - * a {@link TimeoutInfo} about the source observable's emissions and what delay or - * exact time triggered the timeout. - */ - with?: (info: TimeoutInfo) => O; - - /** - * Optional additional metadata you can provide to code that handles - * the timeout, will be provided through the {@link TimeoutError}. - * This can be used to help identify the source of a timeout or pass along - * other information related to the timeout. - */ - meta?: M; -} - -export interface TimeoutInfo { - /** Optional metadata that was provided to the timeout configuration. */ - readonly meta: M; - /** The number of messages seen before the timeout */ - readonly seen: number; - /** The last message seen */ - readonly lastValue: T | null; -} - -/** - * An error emitted when a timeout occurs. - */ -export interface TimeoutError extends Error { - /** - * The information provided to the error by the timeout - * operation that created the error. Will be `null` if - * used directly in non-RxJS code with an empty constructor. - * (Note that using this constructor directly is not recommended, - * you should create your own errors) - */ - info: TimeoutInfo | null; -} - -export interface TimeoutErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (info?: TimeoutInfo): TimeoutError; -} - -/** - * An error thrown by the {@link timeout} operator. - * - * Provided so users can use as a type and do quality comparisons. - * We recommend you do not subclass this or create instances of this class directly. - * If you have need of a error representing a timeout, you should - * create your own error class and use that. - * - * @see {@link timeout} - * - * @class TimeoutError - */ -export const TimeoutError: TimeoutErrorCtor = createErrorClass( - (_super) => - function TimeoutErrorImpl(this: any, info: TimeoutInfo | null = null) { - _super(this); - this.message = 'Timeout has occurred'; - this.name = 'TimeoutError'; - this.info = info; - } -); - -/** - * If `with` is provided, this will return an observable that will switch to a different observable if the source - * does not push values within the specified time parameters. - * - * The most flexible option for creating a timeout behavior. - * - * The first thing to know about the configuration is if you do not provide a `with` property to the configuration, - * when timeout conditions are met, this operator will emit a {@link TimeoutError}. Otherwise, it will use the factory - * function provided by `with`, and switch your subscription to the result of that. Timeout conditions are provided by - * the settings in `first` and `each`. - * - * The `first` property can be either a `Date` for a specific time, a `number` for a time period relative to the - * point of subscription, or it can be skipped. This property is to check timeout conditions for the arrival of - * the first value from the source _only_. The timings of all subsequent values from the source will be checked - * against the time period provided by `each`, if it was provided. - * - * The `each` property can be either a `number` or skipped. If a value for `each` is provided, it represents the amount of - * time the resulting observable will wait between the arrival of values from the source before timing out. Note that if - * `first` is _not_ provided, the value from `each` will be used to check timeout conditions for the arrival of the first - * value and all subsequent values. If `first` _is_ provided, `each` will only be use to check all values after the first. - * - * ## Examples - * - * Emit a custom error if there is too much time between values - * - * ```ts - * import { interval, timeout, throwError } from 'rxjs'; - * - * class CustomTimeoutError extends Error { - * constructor() { - * super('It was too slow'); - * this.name = 'CustomTimeoutError'; - * } - * } - * - * const slow$ = interval(900); - * - * slow$.pipe( - * timeout({ - * each: 1000, - * with: () => throwError(() => new CustomTimeoutError()) - * }) - * ) - * .subscribe({ - * error: console.error - * }); - * ``` - * - * Switch to a faster observable if your source is slow. - * - * ```ts - * import { interval, timeout } from 'rxjs'; - * - * const slow$ = interval(900); - * const fast$ = interval(500); - * - * slow$.pipe( - * timeout({ - * each: 1000, - * with: () => fast$, - * }) - * ) - * .subscribe(console.log); - * ``` - * @param config The configuration for the timeout. - */ -export function timeout, M = unknown>( - config: TimeoutConfig & { with: (info: TimeoutInfo) => O } -): OperatorFunction>; - -/** - * Returns an observable that will error or switch to a different observable if the source does not push values - * within the specified time parameters. - * - * The most flexible option for creating a timeout behavior. - * - * The first thing to know about the configuration is if you do not provide a `with` property to the configuration, - * when timeout conditions are met, this operator will emit a {@link TimeoutError}. Otherwise, it will use the factory - * function provided by `with`, and switch your subscription to the result of that. Timeout conditions are provided by - * the settings in `first` and `each`. - * - * The `first` property can be either a `Date` for a specific time, a `number` for a time period relative to the - * point of subscription, or it can be skipped. This property is to check timeout conditions for the arrival of - * the first value from the source _only_. The timings of all subsequent values from the source will be checked - * against the time period provided by `each`, if it was provided. - * - * The `each` property can be either a `number` or skipped. If a value for `each` is provided, it represents the amount of - * time the resulting observable will wait between the arrival of values from the source before timing out. Note that if - * `first` is _not_ provided, the value from `each` will be used to check timeout conditions for the arrival of the first - * value and all subsequent values. If `first` _is_ provided, `each` will only be use to check all values after the first. - * - * ### Handling TimeoutErrors - * - * If no `with` property was provided, subscriptions to the resulting observable may emit an error of {@link TimeoutError}. - * The timeout error provides useful information you can examine when you're handling the error. The most common way to handle - * the error would be with {@link catchError}, although you could use {@link tap} or just the error handler in your `subscribe` call - * directly, if your error handling is only a side effect (such as notifying the user, or logging). - * - * In this case, you would check the error for `instanceof TimeoutError` to validate that the error was indeed from `timeout`, and - * not from some other source. If it's not from `timeout`, you should probably rethrow it if you're in a `catchError`. - * - * ## Examples - * - * Emit a {@link TimeoutError} if the first value, and _only_ the first value, does not arrive within 5 seconds - * - * ```ts - * import { interval, timeout } from 'rxjs'; - * - * // A random interval that lasts between 0 and 10 seconds per tick - * const source$ = interval(Math.round(Math.random() * 10_000)); - * - * source$.pipe( - * timeout({ first: 5_000 }) - * ) - * .subscribe({ - * next: console.log, - * error: console.error - * }); - * ``` - * - * Emit a {@link TimeoutError} if the source waits longer than 5 seconds between any two values or the first value - * and subscription. - * - * ```ts - * import { timer, timeout, expand } from 'rxjs'; - * - * const getRandomTime = () => Math.round(Math.random() * 10_000); - * - * // An observable that waits a random amount of time between each delivered value - * const source$ = timer(getRandomTime()) - * .pipe(expand(() => timer(getRandomTime()))); - * - * source$ - * .pipe(timeout({ each: 5_000 })) - * .subscribe({ - * next: console.log, - * error: console.error - * }); - * ``` - * - * Emit a {@link TimeoutError} if the source does not emit before 7 seconds, _or_ if the source waits longer than - * 5 seconds between any two values after the first. - * - * ```ts - * import { timer, timeout, expand } from 'rxjs'; - * - * const getRandomTime = () => Math.round(Math.random() * 10_000); - * - * // An observable that waits a random amount of time between each delivered value - * const source$ = timer(getRandomTime()) - * .pipe(expand(() => timer(getRandomTime()))); - * - * source$ - * .pipe(timeout({ first: 7_000, each: 5_000 })) - * .subscribe({ - * next: console.log, - * error: console.error - * }); - * ``` - */ -export function timeout(config: Omit, 'with'>): OperatorFunction; - -/** - * Returns an observable that will error if the source does not push its first value before the specified time passed as a `Date`. - * This is functionally the same as `timeout({ first: someDate })`. - * - * Errors if the first value doesn't show up before the given date and time - * - * ![](timeout.png) - * - * @param first The date to at which the resulting observable will timeout if the source observable - * does not emit at least one value. - * @param scheduler The scheduler to use. Defaults to {@link asyncScheduler}. - */ -export function timeout(first: Date, scheduler?: SchedulerLike): MonoTypeOperatorFunction; - -/** - * Returns an observable that will error if the source does not push a value within the specified time in milliseconds. - * This is functionally the same as `timeout({ each: milliseconds })`. - * - * Errors if it waits too long between any value - * - * ![](timeout.png) - * - * @param each The time allowed between each pushed value from the source before the resulting observable - * will timeout. - * @param scheduler The scheduler to use. Defaults to {@link asyncScheduler}. - */ -export function timeout(each: number, scheduler?: SchedulerLike): MonoTypeOperatorFunction; - -/** - * - * Errors if Observable does not emit a value in given time span. - * - * Timeouts on Observable that doesn't emit values fast enough. - * - * ![](timeout.png) - * - * @see {@link timeoutWith} - * - * @return A function that returns an Observable that mirrors behaviour of the - * source Observable, unless timeout happens when it throws an error. - */ -export function timeout, M>( - config: number | Date | TimeoutConfig, - schedulerArg?: SchedulerLike -): OperatorFunction> { - // Intentionally terse code. - // If the first argument is a valid `Date`, then we use it as the `first` config. - // Otherwise, if the first argument is a `number`, then we use it as the `each` config. - // Otherwise, it can be assumed the first argument is the configuration object itself, and - // we destructure that into what we're going to use, setting important defaults as we do. - // NOTE: The default for `scheduler` will be the `scheduler` argument if it exists, or - // it will default to the `asyncScheduler`. - const { - first, - each, - with: _with = timeoutErrorFactory, - scheduler = schedulerArg ?? asyncScheduler, - meta = null!, - } = (isValidDate(config) ? { first: config } : typeof config === 'number' ? { each: config } : config) as TimeoutConfig; - - if (first == null && each == null) { - // Ensure timeout was provided at runtime. - throw new TypeError('No timeout provided.'); - } - - return operate((source, subscriber) => { - // This subscription encapsulates our subscription to the - // source for this operator. We're capturing it separately, - // because if there is a `with` observable to fail over to, - // we want to unsubscribe from our original subscription, and - // hand of the subscription to that one. - let originalSourceSubscription: Subscription; - // The subscription for our timeout timer. This changes - // every time we get a new value. - let timerSubscription: Subscription; - // A bit of state we pass to our with and error factories to - // tell what the last value we saw was. - let lastValue: T | null = null; - // A bit of state we pass to the with and error factories to - // tell how many values we have seen so far. - let seen = 0; - const startTimer = (delay: number) => { - timerSubscription = executeSchedule( - subscriber, - scheduler, - () => { - try { - originalSourceSubscription.unsubscribe(); - innerFrom( - _with!({ - meta, - lastValue, - seen, - }) - ).subscribe(subscriber); - } catch (err) { - subscriber.error(err); - } - }, - delay - ); - }; - - originalSourceSubscription = source.subscribe( - createOperatorSubscriber( - subscriber, - (value: T) => { - // clear the timer so we can emit and start another one. - timerSubscription?.unsubscribe(); - seen++; - // Emit - subscriber.next((lastValue = value)); - // null | undefined are both < 0. Thanks, JavaScript. - each! > 0 && startTimer(each!); - }, - undefined, - undefined, - () => { - if (!timerSubscription?.closed) { - timerSubscription?.unsubscribe(); - } - // Be sure not to hold the last value in memory after unsubscription - // it could be quite large. - lastValue = null; - } - ) - ); - - // Intentionally terse code. - // If we've `seen` a value, that means the "first" clause was met already, if it existed. - // it also means that a timer was already started for "each" (in the next handler above). - // If `first` was provided, and it's a number, then use it. - // If `first` was provided and it's not a number, it's a Date, and we get the difference between it and "now". - // If `first` was not provided at all, then our first timer will be the value from `each`. - !seen && startTimer(first != null ? (typeof first === 'number' ? first : +first - scheduler!.now()) : each!); - }); -} - -/** - * The default function to use to emit an error when timeout occurs and a `with` function - * is not specified. - * @param info The information about the timeout to pass along to the error - */ -function timeoutErrorFactory(info: TimeoutInfo): Observable { - throw new TimeoutError(info); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/timeoutWith.ts b/WechatBot/node_modules/rxjs/src/internal/operators/timeoutWith.ts deleted file mode 100644 index 1a4d0ca97..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/timeoutWith.ts +++ /dev/null @@ -1,116 +0,0 @@ -import { async } from '../scheduler/async'; -import { isValidDate } from '../util/isDate'; -import { ObservableInput, OperatorFunction, SchedulerLike } from '../types'; -import { timeout } from './timeout'; - -/** @deprecated Replaced with {@link timeout}. Instead of `timeoutWith(someDate, a$, scheduler)`, use the configuration object - * `timeout({ first: someDate, with: () => a$, scheduler })`. Will be removed in v8. */ -export function timeoutWith(dueBy: Date, switchTo: ObservableInput, scheduler?: SchedulerLike): OperatorFunction; -/** @deprecated Replaced with {@link timeout}. Instead of `timeoutWith(100, a$, scheduler)`, use the configuration object - * `timeout({ each: 100, with: () => a$, scheduler })`. Will be removed in v8. */ -export function timeoutWith(waitFor: number, switchTo: ObservableInput, scheduler?: SchedulerLike): OperatorFunction; - -/** - * When the passed timespan elapses before the source emits any given value, it will unsubscribe from the source, - * and switch the subscription to another observable. - * - * Used to switch to a different observable if your source is being slow. - * - * Useful in cases where: - * - * - You want to switch to a different source that may be faster. - * - You want to notify a user that the data stream is slow. - * - You want to emit a custom error rather than the {@link TimeoutError} emitted - * by the default usage of {@link timeout}. - * - * If the first parameter is passed as Date and the time of the Date arrives before the first value arrives from the source, - * it will unsubscribe from the source and switch the subscription to another observable. - * - * Use Date object to switch to a different observable if the first value doesn't arrive by a specific time. - * - * Can be used to set a timeout only for the first value, however it's recommended to use the {@link timeout} operator with - * the `first` configuration to get the same effect. - * - * ## Examples - * - * Fallback to a faster observable - * - * ```ts - * import { interval, timeoutWith } from 'rxjs'; - * - * const slow$ = interval(1000); - * const faster$ = interval(500); - * - * slow$ - * .pipe(timeoutWith(900, faster$)) - * .subscribe(console.log); - * ``` - * - * Emit your own custom timeout error - * - * ```ts - * import { interval, timeoutWith, throwError } from 'rxjs'; - * - * class CustomTimeoutError extends Error { - * constructor() { - * super('It was too slow'); - * this.name = 'CustomTimeoutError'; - * } - * } - * - * const slow$ = interval(1000); - * - * slow$ - * .pipe(timeoutWith(900, throwError(() => new CustomTimeoutError()))) - * .subscribe({ - * error: err => console.error(err.message) - * }); - * ``` - * - * @see {@link timeout} - * - * @param due When passed a number, used as the time (in milliseconds) allowed between each value from the source before timeout - * is triggered. When passed a Date, used as the exact time at which the timeout will be triggered if the first value does not arrive. - * @param withObservable The observable to switch to when timeout occurs. - * @param scheduler The scheduler to use with time-related operations within this operator. Defaults to {@link asyncScheduler} - * @return A function that returns an Observable that mirrors behaviour of the - * source Observable, unless timeout happens when it starts emitting values - * from the `ObservableInput` passed as a second parameter. - * @deprecated Replaced with {@link timeout}. Instead of `timeoutWith(100, a$, scheduler)`, use {@link timeout} with the configuration - * object: `timeout({ each: 100, with: () => a$, scheduler })`. Instead of `timeoutWith(someDate, a$, scheduler)`, use {@link timeout} - * with the configuration object: `timeout({ first: someDate, with: () => a$, scheduler })`. Will be removed in v8. - */ -export function timeoutWith( - due: number | Date, - withObservable: ObservableInput, - scheduler?: SchedulerLike -): OperatorFunction { - let first: number | Date | undefined; - let each: number | undefined; - let _with: () => ObservableInput; - scheduler = scheduler ?? async; - - if (isValidDate(due)) { - first = due; - } else if (typeof due === 'number') { - each = due; - } - - if (withObservable) { - _with = () => withObservable; - } else { - throw new TypeError('No observable provided to switch to'); - } - - if (first == null && each == null) { - // Ensure timeout was provided at runtime. - throw new TypeError('No timeout provided.'); - } - - return timeout>({ - first, - each, - scheduler, - with: _with, - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/timestamp.ts b/WechatBot/node_modules/rxjs/src/internal/operators/timestamp.ts deleted file mode 100644 index bb388de0d..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/timestamp.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { OperatorFunction, TimestampProvider, Timestamp } from '../types'; -import { dateTimestampProvider } from '../scheduler/dateTimestampProvider'; -import { map } from './map'; - -/** - * Attaches a timestamp to each item emitted by an observable indicating when it was emitted - * - * The `timestamp` operator maps the *source* observable stream to an object of type - * `{value: T, timestamp: R}`. The properties are generically typed. The `value` property contains the value - * and type of the *source* observable. The `timestamp` is generated by the schedulers `now` function. By - * default, it uses the `asyncScheduler` which simply returns `Date.now()` (milliseconds since 1970/01/01 - * 00:00:00:000) and therefore is of type `number`. - * - * ![](timestamp.png) - * - * ## Example - * - * In this example there is a timestamp attached to the document's click events - * - * ```ts - * import { fromEvent, timestamp } from 'rxjs'; - * - * const clickWithTimestamp = fromEvent(document, 'click').pipe( - * timestamp() - * ); - * - * // Emits data of type { value: PointerEvent, timestamp: number } - * clickWithTimestamp.subscribe(data => { - * console.log(data); - * }); - * ``` - * - * @param timestampProvider An object with a `now()` method used to get the current timestamp. - * @return A function that returns an Observable that attaches a timestamp to - * each item emitted by the source Observable indicating when it was emitted. - */ -export function timestamp(timestampProvider: TimestampProvider = dateTimestampProvider): OperatorFunction> { - return map((value: T) => ({ value, timestamp: timestampProvider.now() })); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/toArray.ts b/WechatBot/node_modules/rxjs/src/internal/operators/toArray.ts deleted file mode 100644 index 26784724c..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/toArray.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { reduce } from './reduce'; -import { OperatorFunction } from '../types'; -import { operate } from '../util/lift'; - -const arrReducer = (arr: any[], value: any) => (arr.push(value), arr); - -/** - * Collects all source emissions and emits them as an array when the source completes. - * - * Get all values inside an array when the source completes - * - * ![](toArray.png) - * - * `toArray` will wait until the source Observable completes before emitting - * the array containing all emissions. When the source Observable errors no - * array will be emitted. - * - * ## Example - * - * ```ts - * import { interval, take, toArray } from 'rxjs'; - * - * const source = interval(1000); - * const example = source.pipe( - * take(10), - * toArray() - * ); - * - * example.subscribe(value => console.log(value)); - * - * // output: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] - * ``` - * - * @return A function that returns an Observable that emits an array of items - * emitted by the source Observable when source completes. - */ -export function toArray(): OperatorFunction { - // Because arrays are mutable, and we're mutating the array in this - // reducer process, we have to encapsulate the creation of the initial - // array within this `operate` function. - return operate((source, subscriber) => { - reduce(arrReducer, [] as T[])(source).subscribe(subscriber); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/window.ts b/WechatBot/node_modules/rxjs/src/internal/operators/window.ts deleted file mode 100644 index b8250cbc2..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/window.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { Observable } from '../Observable'; -import { OperatorFunction, ObservableInput } from '../types'; -import { Subject } from '../Subject'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { innerFrom } from '../observable/innerFrom'; - -/** - * Branch out the source Observable values as a nested Observable whenever - * `windowBoundaries` emits. - * - * It's like {@link buffer}, but emits a nested Observable - * instead of an array. - * - * ![](window.png) - * - * Returns an Observable that emits windows of items it collects from the source - * Observable. The output Observable emits connected, non-overlapping - * windows. It emits the current window and opens a new one whenever the - * `windowBoundaries` emits an item. `windowBoundaries` can be any type that - * `ObservableInput` accepts. It internally gets converted to an Observable. - * Because each window is an Observable, the output is a higher-order Observable. - * - * ## Example - * - * In every window of 1 second each, emit at most 2 click events - * - * ```ts - * import { fromEvent, interval, window, map, take, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const sec = interval(1000); - * const result = clicks.pipe( - * window(sec), - * map(win => win.pipe(take(2))), // take at most 2 emissions from each window - * mergeAll() // flatten the Observable-of-Observables - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link windowCount} - * @see {@link windowTime} - * @see {@link windowToggle} - * @see {@link windowWhen} - * @see {@link buffer} - * - * @param windowBoundaries An `ObservableInput` that completes the - * previous window and starts a new window. - * @return A function that returns an Observable of windows, which are - * Observables emitting values of the source Observable. - */ -export function window(windowBoundaries: ObservableInput): OperatorFunction> { - return operate((source, subscriber) => { - let windowSubject: Subject = new Subject(); - - subscriber.next(windowSubject.asObservable()); - - const errorHandler = (err: any) => { - windowSubject.error(err); - subscriber.error(err); - }; - - // Subscribe to our source - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => windowSubject?.next(value), - () => { - windowSubject.complete(); - subscriber.complete(); - }, - errorHandler - ) - ); - - // Subscribe to the window boundaries. - innerFrom(windowBoundaries).subscribe( - createOperatorSubscriber( - subscriber, - () => { - windowSubject.complete(); - subscriber.next((windowSubject = new Subject())); - }, - noop, - errorHandler - ) - ); - - return () => { - // Unsubscribing the subject ensures that anyone who has captured - // a reference to this window that tries to use it after it can - // no longer get values from the source will get an ObjectUnsubscribedError. - windowSubject?.unsubscribe(); - windowSubject = null!; - }; - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/windowCount.ts b/WechatBot/node_modules/rxjs/src/internal/operators/windowCount.ts deleted file mode 100644 index e568d4242..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/windowCount.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { Observable } from '../Observable'; -import { Subject } from '../Subject'; -import { OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; - -/** - * Branch out the source Observable values as a nested Observable with each - * nested Observable emitting at most `windowSize` values. - * - * It's like {@link bufferCount}, but emits a nested - * Observable instead of an array. - * - * ![](windowCount.png) - * - * Returns an Observable that emits windows of items it collects from the source - * Observable. The output Observable emits windows every `startWindowEvery` - * items, each containing no more than `windowSize` items. When the source - * Observable completes or encounters an error, the output Observable emits - * the current window and propagates the notification from the source - * Observable. If `startWindowEvery` is not provided, then new windows are - * started immediately at the start of the source and when each window completes - * with size `windowSize`. - * - * ## Examples - * - * Ignore every 3rd click event, starting from the first one - * - * ```ts - * import { fromEvent, windowCount, map, skip, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * windowCount(3), - * map(win => win.pipe(skip(1))), // skip first of every 3 clicks - * mergeAll() // flatten the Observable-of-Observables - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * Ignore every 3rd click event, starting from the third one - * - * ```ts - * import { fromEvent, windowCount, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * windowCount(2, 3), - * mergeAll() // flatten the Observable-of-Observables - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link window} - * @see {@link windowTime} - * @see {@link windowToggle} - * @see {@link windowWhen} - * @see {@link bufferCount} - * - * @param {number} windowSize The maximum number of values emitted by each - * window. - * @param {number} [startWindowEvery] Interval at which to start a new window. - * For example if `startWindowEvery` is `2`, then a new window will be started - * on every other value from the source. A new window is started at the - * beginning of the source by default. - * @return A function that returns an Observable of windows, which in turn are - * Observable of values. - */ -export function windowCount(windowSize: number, startWindowEvery: number = 0): OperatorFunction> { - const startEvery = startWindowEvery > 0 ? startWindowEvery : windowSize; - - return operate((source, subscriber) => { - let windows = [new Subject()]; - let starts: number[] = []; - let count = 0; - - // Open the first window. - subscriber.next(windows[0].asObservable()); - - source.subscribe( - createOperatorSubscriber( - subscriber, - (value: T) => { - // Emit the value through all current windows. - // We don't need to create a new window yet, we - // do that as soon as we close one. - for (const window of windows) { - window.next(value); - } - // Here we're using the size of the window array to figure - // out if the oldest window has emitted enough values. We can do this - // because the size of the window array is a function of the values - // seen by the subscription. If it's time to close it, we complete - // it and remove it. - const c = count - windowSize + 1; - if (c >= 0 && c % startEvery === 0) { - windows.shift()!.complete(); - } - - // Look to see if the next count tells us it's time to open a new window. - // TODO: We need to figure out if this really makes sense. We're technically - // emitting windows *before* we have a value to emit them for. It's probably - // more expected that we should be emitting the window when the start - // count is reached -- not before. - if (++count % startEvery === 0) { - const window = new Subject(); - windows.push(window); - subscriber.next(window.asObservable()); - } - }, - () => { - while (windows.length > 0) { - windows.shift()!.complete(); - } - subscriber.complete(); - }, - (err) => { - while (windows.length > 0) { - windows.shift()!.error(err); - } - subscriber.error(err); - }, - () => { - starts = null!; - windows = null!; - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/windowTime.ts b/WechatBot/node_modules/rxjs/src/internal/operators/windowTime.ts deleted file mode 100644 index b54656b9c..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/windowTime.ts +++ /dev/null @@ -1,207 +0,0 @@ -import { Subject } from '../Subject'; -import { asyncScheduler } from '../scheduler/async'; -import { Observable } from '../Observable'; -import { Subscription } from '../Subscription'; -import { Observer, OperatorFunction, SchedulerLike } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { arrRemove } from '../util/arrRemove'; -import { popScheduler } from '../util/args'; -import { executeSchedule } from '../util/executeSchedule'; - -export function windowTime(windowTimeSpan: number, scheduler?: SchedulerLike): OperatorFunction>; -export function windowTime( - windowTimeSpan: number, - windowCreationInterval: number, - scheduler?: SchedulerLike -): OperatorFunction>; -export function windowTime( - windowTimeSpan: number, - windowCreationInterval: number | null | void, - maxWindowSize: number, - scheduler?: SchedulerLike -): OperatorFunction>; - -/** - * Branch out the source Observable values as a nested Observable periodically - * in time. - * - * It's like {@link bufferTime}, but emits a nested - * Observable instead of an array. - * - * ![](windowTime.png) - * - * Returns an Observable that emits windows of items it collects from the source - * Observable. The output Observable starts a new window periodically, as - * determined by the `windowCreationInterval` argument. It emits each window - * after a fixed timespan, specified by the `windowTimeSpan` argument. When the - * source Observable completes or encounters an error, the output Observable - * emits the current window and propagates the notification from the source - * Observable. If `windowCreationInterval` is not provided, the output - * Observable starts a new window when the previous window of duration - * `windowTimeSpan` completes. If `maxWindowCount` is provided, each window - * will emit at most fixed number of values. Window will complete immediately - * after emitting last value and next one still will open as specified by - * `windowTimeSpan` and `windowCreationInterval` arguments. - * - * ## Examples - * - * In every window of 1 second each, emit at most 2 click events - * - * ```ts - * import { fromEvent, windowTime, map, take, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * windowTime(1000), - * map(win => win.pipe(take(2))), // take at most 2 emissions from each window - * mergeAll() // flatten the Observable-of-Observables - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * Every 5 seconds start a window 1 second long, and emit at most 2 click events per window - * - * ```ts - * import { fromEvent, windowTime, map, take, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * windowTime(1000, 5000), - * map(win => win.pipe(take(2))), // take at most 2 emissions from each window - * mergeAll() // flatten the Observable-of-Observables - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * Same as example above but with `maxWindowCount` instead of `take` - * - * ```ts - * import { fromEvent, windowTime, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * windowTime(1000, 5000, 2), // take at most 2 emissions from each window - * mergeAll() // flatten the Observable-of-Observables - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link window} - * @see {@link windowCount} - * @see {@link windowToggle} - * @see {@link windowWhen} - * @see {@link bufferTime} - * - * @param windowTimeSpan The amount of time, in milliseconds, to fill each window. - * @param windowCreationInterval The interval at which to start new - * windows. - * @param maxWindowSize Max number of - * values each window can emit before completion. - * @param scheduler The scheduler on which to schedule the - * intervals that determine window boundaries. - * @return A function that returns an Observable of windows, which in turn are - * Observables. - */ -export function windowTime(windowTimeSpan: number, ...otherArgs: any[]): OperatorFunction> { - const scheduler = popScheduler(otherArgs) ?? asyncScheduler; - const windowCreationInterval = (otherArgs[0] as number) ?? null; - const maxWindowSize = (otherArgs[1] as number) || Infinity; - - return operate((source, subscriber) => { - // The active windows, their related subscriptions, and removal functions. - let windowRecords: WindowRecord[] | null = []; - // If true, it means that every time we close a window, we want to start a new window. - // This is only really used for when *just* the time span is passed. - let restartOnClose = false; - - const closeWindow = (record: { window: Subject; subs: Subscription }) => { - const { window, subs } = record; - window.complete(); - subs.unsubscribe(); - arrRemove(windowRecords, record); - restartOnClose && startWindow(); - }; - - /** - * Called every time we start a new window. This also does - * the work of scheduling the job to close the window. - */ - const startWindow = () => { - if (windowRecords) { - const subs = new Subscription(); - subscriber.add(subs); - const window = new Subject(); - const record = { - window, - subs, - seen: 0, - }; - windowRecords.push(record); - subscriber.next(window.asObservable()); - executeSchedule(subs, scheduler, () => closeWindow(record), windowTimeSpan); - } - }; - - if (windowCreationInterval !== null && windowCreationInterval >= 0) { - // The user passed both a windowTimeSpan (required), and a creation interval - // That means we need to start new window on the interval, and those windows need - // to wait the required time span before completing. - executeSchedule(subscriber, scheduler, startWindow, windowCreationInterval, true); - } else { - restartOnClose = true; - } - - startWindow(); - - /** - * We need to loop over a copy of the window records several times in this operator. - * This is to save bytes over the wire more than anything. - * The reason we copy the array is that reentrant code could mutate the array while - * we are iterating over it. - */ - const loop = (cb: (record: WindowRecord) => void) => windowRecords!.slice().forEach(cb); - - /** - * Used to notify all of the windows and the subscriber in the same way - * in the error and complete handlers. - */ - const terminate = (cb: (consumer: Observer) => void) => { - loop(({ window }) => cb(window)); - cb(subscriber); - subscriber.unsubscribe(); - }; - - source.subscribe( - createOperatorSubscriber( - subscriber, - (value: T) => { - // Notify all windows of the value. - loop((record) => { - record.window.next(value); - // If the window is over the max size, we need to close it. - maxWindowSize <= ++record.seen && closeWindow(record); - }); - }, - // Complete the windows and the downstream subscriber and clean up. - () => terminate((consumer) => consumer.complete()), - // Notify the windows and the downstream subscriber of the error and clean up. - (err) => terminate((consumer) => consumer.error(err)) - ) - ); - - // Additional finalization. This will be called when the - // destination tears down. Other finalizations are registered implicitly - // above via subscription. - return () => { - // Ensure that the buffer is released. - windowRecords = null!; - }; - }); -} - -interface WindowRecord { - seen: number; - window: Subject; - subs: Subscription; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/windowToggle.ts b/WechatBot/node_modules/rxjs/src/internal/operators/windowToggle.ts deleted file mode 100644 index 95e596d4d..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/windowToggle.ts +++ /dev/null @@ -1,134 +0,0 @@ -import { Observable } from '../Observable'; -import { Subject } from '../Subject'; -import { Subscription } from '../Subscription'; -import { ObservableInput, OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { innerFrom } from '../observable/innerFrom'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { noop } from '../util/noop'; -import { arrRemove } from '../util/arrRemove'; - -/** - * Branch out the source Observable values as a nested Observable starting from - * an emission from `openings` and ending when the output of `closingSelector` - * emits. - * - * It's like {@link bufferToggle}, but emits a nested - * Observable instead of an array. - * - * ![](windowToggle.png) - * - * Returns an Observable that emits windows of items it collects from the source - * Observable. The output Observable emits windows that contain those items - * emitted by the source Observable between the time when the `openings` - * Observable emits an item and when the Observable returned by - * `closingSelector` emits an item. - * - * ## Example - * - * Every other second, emit the click events from the next 500ms - * - * ```ts - * import { fromEvent, interval, windowToggle, EMPTY, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const openings = interval(1000); - * const result = clicks.pipe( - * windowToggle(openings, i => i % 2 ? interval(500) : EMPTY), - * mergeAll() - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link window} - * @see {@link windowCount} - * @see {@link windowTime} - * @see {@link windowWhen} - * @see {@link bufferToggle} - * - * @param {Observable} openings An observable of notifications to start new - * windows. - * @param {function(value: O): Observable} closingSelector A function that takes - * the value emitted by the `openings` observable and returns an Observable, - * which, when it emits a next notification, signals that the - * associated window should complete. - * @return A function that returns an Observable of windows, which in turn are - * Observables. - */ -export function windowToggle( - openings: ObservableInput, - closingSelector: (openValue: O) => ObservableInput -): OperatorFunction> { - return operate((source, subscriber) => { - const windows: Subject[] = []; - - const handleError = (err: any) => { - while (0 < windows.length) { - windows.shift()!.error(err); - } - subscriber.error(err); - }; - - innerFrom(openings).subscribe( - createOperatorSubscriber( - subscriber, - (openValue) => { - const window = new Subject(); - windows.push(window); - const closingSubscription = new Subscription(); - const closeWindow = () => { - arrRemove(windows, window); - window.complete(); - closingSubscription.unsubscribe(); - }; - - let closingNotifier: Observable; - try { - closingNotifier = innerFrom(closingSelector(openValue)); - } catch (err) { - handleError(err); - return; - } - - subscriber.next(window.asObservable()); - - closingSubscription.add(closingNotifier.subscribe(createOperatorSubscriber(subscriber, closeWindow, noop, handleError))); - }, - noop - ) - ); - - // Subscribe to the source to get things started. - source.subscribe( - createOperatorSubscriber( - subscriber, - (value: T) => { - // Copy the windows array before we emit to - // make sure we don't have issues with reentrant code. - const windowsCopy = windows.slice(); - for (const window of windowsCopy) { - window.next(value); - } - }, - () => { - // Complete all of our windows before we complete. - while (0 < windows.length) { - windows.shift()!.complete(); - } - subscriber.complete(); - }, - handleError, - () => { - // Add this finalization so that all window subjects are - // disposed of. This way, if a user tries to subscribe - // to a window *after* the outer subscription has been unsubscribed, - // they will get an error, instead of waiting forever to - // see if a value arrives. - while (0 < windows.length) { - windows.shift()!.unsubscribe(); - } - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/windowWhen.ts b/WechatBot/node_modules/rxjs/src/internal/operators/windowWhen.ts deleted file mode 100644 index 860143f44..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/windowWhen.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { Subscriber } from '../Subscriber'; -import { Observable } from '../Observable'; -import { Subject } from '../Subject'; -import { ObservableInput, OperatorFunction } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; - -/** - * Branch out the source Observable values as a nested Observable using a - * factory function of closing Observables to determine when to start a new - * window. - * - * It's like {@link bufferWhen}, but emits a nested - * Observable instead of an array. - * - * ![](windowWhen.png) - * - * Returns an Observable that emits windows of items it collects from the source - * Observable. The output Observable emits connected, non-overlapping windows. - * It emits the current window and opens a new one whenever the Observable - * produced by the specified `closingSelector` function emits an item. The first - * window is opened immediately when subscribing to the output Observable. - * - * ## Example - * - * Emit only the first two clicks events in every window of [1-5] random seconds - * - * ```ts - * import { fromEvent, windowWhen, interval, map, take, mergeAll } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const result = clicks.pipe( - * windowWhen(() => interval(1000 + Math.random() * 4000)), - * map(win => win.pipe(take(2))), // take at most 2 emissions from each window - * mergeAll() // flatten the Observable-of-Observables - * ); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link window} - * @see {@link windowCount} - * @see {@link windowTime} - * @see {@link windowToggle} - * @see {@link bufferWhen} - * - * @param {function(): Observable} closingSelector A function that takes no - * arguments and returns an Observable that signals (on either `next` or - * `complete`) when to close the previous window and start a new one. - * @return A function that returns an Observable of windows, which in turn are - * Observables. - */ -export function windowWhen(closingSelector: () => ObservableInput): OperatorFunction> { - return operate((source, subscriber) => { - let window: Subject | null; - let closingSubscriber: Subscriber | undefined; - - /** - * When we get an error, we have to notify both the - * destination subscriber and the window. - */ - const handleError = (err: any) => { - window!.error(err); - subscriber.error(err); - }; - - /** - * Called every time we need to open a window. - * Recursive, as it will start the closing notifier, which - * inevitably *should* call openWindow -- but may not if - * it is a "never" observable. - */ - const openWindow = () => { - // We need to clean up our closing subscription, - // we only cared about the first next or complete notification. - closingSubscriber?.unsubscribe(); - - // Close our window before starting a new one. - window?.complete(); - - // Start the new window. - window = new Subject(); - subscriber.next(window.asObservable()); - - // Get our closing notifier. - let closingNotifier: Observable; - try { - closingNotifier = innerFrom(closingSelector()); - } catch (err) { - handleError(err); - return; - } - - // Subscribe to the closing notifier, be sure - // to capture the subscriber (aka Subscription) - // so we can clean it up when we close the window - // and open a new one. - closingNotifier.subscribe((closingSubscriber = createOperatorSubscriber(subscriber, openWindow, openWindow, handleError))); - }; - - // Start the first window. - openWindow(); - - // Subscribe to the source - source.subscribe( - createOperatorSubscriber( - subscriber, - (value) => window!.next(value), - () => { - // The source completed, close the window and complete. - window!.complete(); - subscriber.complete(); - }, - handleError, - () => { - // Be sure to clean up our closing subscription - // when this tears down. - closingSubscriber?.unsubscribe(); - window = null!; - } - ) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/withLatestFrom.ts b/WechatBot/node_modules/rxjs/src/internal/operators/withLatestFrom.ts deleted file mode 100644 index 80576e18f..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/withLatestFrom.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { OperatorFunction, ObservableInputTuple } from '../types'; -import { operate } from '../util/lift'; -import { createOperatorSubscriber } from './OperatorSubscriber'; -import { innerFrom } from '../observable/innerFrom'; -import { identity } from '../util/identity'; -import { noop } from '../util/noop'; -import { popResultSelector } from '../util/args'; - -export function withLatestFrom(...inputs: [...ObservableInputTuple]): OperatorFunction; - -export function withLatestFrom( - ...inputs: [...ObservableInputTuple, (...value: [T, ...O]) => R] -): OperatorFunction; - -/** - * Combines the source Observable with other Observables to create an Observable - * whose values are calculated from the latest values of each, only when the - * source emits. - * - * Whenever the source Observable emits a value, it - * computes a formula using that value plus the latest values from other input - * Observables, then emits the output of that formula. - * - * ![](withLatestFrom.png) - * - * `withLatestFrom` combines each value from the source Observable (the - * instance) with the latest values from the other input Observables only when - * the source emits a value, optionally using a `project` function to determine - * the value to be emitted on the output Observable. All input Observables must - * emit at least one value before the output Observable will emit a value. - * - * ## Example - * - * On every click event, emit an array with the latest timer event plus the click event - * - * ```ts - * import { fromEvent, interval, withLatestFrom } from 'rxjs'; - * - * const clicks = fromEvent(document, 'click'); - * const timer = interval(1000); - * const result = clicks.pipe(withLatestFrom(timer)); - * result.subscribe(x => console.log(x)); - * ``` - * - * @see {@link combineLatest} - * - * @param {ObservableInput} other An input Observable to combine with the source - * Observable. More than one input Observables may be given as argument. - * @param {Function} [project] Projection function for combining values - * together. Receives all values in order of the Observables passed, where the - * first parameter is a value from the source Observable. (e.g. - * `a.pipe(withLatestFrom(b, c), map(([a1, b1, c1]) => a1 + b1 + c1))`). If this is not - * passed, arrays will be emitted on the output Observable. - * @return A function that returns an Observable of projected values from the - * most recent values from each input Observable, or an array of the most - * recent values from each input Observable. - */ -export function withLatestFrom(...inputs: any[]): OperatorFunction { - const project = popResultSelector(inputs) as ((...args: any[]) => R) | undefined; - - return operate((source, subscriber) => { - const len = inputs.length; - const otherValues = new Array(len); - // An array of whether or not the other sources have emitted. Matched with them by index. - // TODO: At somepoint, we should investigate the performance implications here, and look - // into using a `Set()` and checking the `size` to see if we're ready. - let hasValue = inputs.map(() => false); - // Flipped true when we have at least one value from all other sources and - // we are ready to start emitting values. - let ready = false; - - // Other sources. Note that here we are not checking `subscriber.closed`, - // this causes all inputs to be subscribed to, even if nothing can be emitted - // from them. This is an important distinction because subscription constitutes - // a side-effect. - for (let i = 0; i < len; i++) { - innerFrom(inputs[i]).subscribe( - createOperatorSubscriber( - subscriber, - (value) => { - otherValues[i] = value; - if (!ready && !hasValue[i]) { - // If we're not ready yet, flag to show this observable has emitted. - hasValue[i] = true; - // Intentionally terse code. - // If all of our other observables have emitted, set `ready` to `true`, - // so we know we can start emitting values, then clean up the `hasValue` array, - // because we don't need it anymore. - (ready = hasValue.every(identity)) && (hasValue = null!); - } - }, - // Completing one of the other sources has - // no bearing on the completion of our result. - noop - ) - ); - } - - // Source subscription - source.subscribe( - createOperatorSubscriber(subscriber, (value) => { - if (ready) { - // We have at least one value from the other sources. Go ahead and emit. - const values = [value, ...otherValues]; - subscriber.next(project ? project(...values) : values); - } - }) - ); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/zip.ts b/WechatBot/node_modules/rxjs/src/internal/operators/zip.ts deleted file mode 100644 index f8c2f684e..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/zip.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { zip as zipStatic } from '../observable/zip'; -import { ObservableInput, ObservableInputTuple, OperatorFunction, Cons } from '../types'; -import { operate } from '../util/lift'; - -/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ -export function zip(otherInputs: [...ObservableInputTuple]): OperatorFunction>; -/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ -export function zip( - otherInputsAndProject: [...ObservableInputTuple], - project: (...values: Cons) => R -): OperatorFunction; -/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ -export function zip(...otherInputs: [...ObservableInputTuple]): OperatorFunction>; -/** @deprecated Replaced with {@link zipWith}. Will be removed in v8. */ -export function zip( - ...otherInputsAndProject: [...ObservableInputTuple, (...values: Cons) => R] -): OperatorFunction; - -/** - * @deprecated Replaced with {@link zipWith}. Will be removed in v8. - */ -export function zip(...sources: Array | ((...values: Array) => R)>): OperatorFunction { - return operate((source, subscriber) => { - zipStatic(source as ObservableInput, ...(sources as Array>)).subscribe(subscriber); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/zipAll.ts b/WechatBot/node_modules/rxjs/src/internal/operators/zipAll.ts deleted file mode 100644 index 697cff51b..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/zipAll.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { OperatorFunction, ObservableInput } from '../types'; -import { zip } from '../observable/zip'; -import { joinAllInternals } from './joinAllInternals'; - -/** - * Collects all observable inner sources from the source, once the source completes, - * it will subscribe to all inner sources, combining their values by index and emitting - * them. - * - * @see {@link zipWith} - * @see {@link zip} - */ -export function zipAll(): OperatorFunction, T[]>; -export function zipAll(): OperatorFunction; -export function zipAll(project: (...values: T[]) => R): OperatorFunction, R>; -export function zipAll(project: (...values: Array) => R): OperatorFunction; - -export function zipAll(project?: (...values: T[]) => R) { - return joinAllInternals(zip, project); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/operators/zipWith.ts b/WechatBot/node_modules/rxjs/src/internal/operators/zipWith.ts deleted file mode 100644 index 22eaad793..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/operators/zipWith.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { ObservableInputTuple, OperatorFunction, Cons } from '../types'; -import { zip } from './zip'; - -/** - * Subscribes to the source, and the observable inputs provided as arguments, and combines their values, by index, into arrays. - * - * What is meant by "combine by index": The first value from each will be made into a single array, then emitted, - * then the second value from each will be combined into a single array and emitted, then the third value - * from each will be combined into a single array and emitted, and so on. - * - * This will continue until it is no longer able to combine values of the same index into an array. - * - * After the last value from any one completed source is emitted in an array, the resulting observable will complete, - * as there is no way to continue "zipping" values together by index. - * - * Use-cases for this operator are limited. There are memory concerns if one of the streams is emitting - * values at a much faster rate than the others. Usage should likely be limited to streams that emit - * at a similar pace, or finite streams of known length. - * - * In many cases, authors want `combineLatestWith` and not `zipWith`. - * - * @param otherInputs other observable inputs to collate values from. - * @return A function that returns an Observable that emits items by index - * combined from the source Observable and provided Observables, in form of an - * array. - */ -export function zipWith(...otherInputs: [...ObservableInputTuple]): OperatorFunction> { - return zip(...otherInputs); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleArray.ts b/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleArray.ts deleted file mode 100644 index ea8fa2422..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleArray.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; - -export function scheduleArray(input: ArrayLike, scheduler: SchedulerLike) { - return new Observable((subscriber) => { - // The current array index. - let i = 0; - // Start iterating over the array like on a schedule. - return scheduler.schedule(function () { - if (i === input.length) { - // If we have hit the end of the array like in the - // previous job, we can complete. - subscriber.complete(); - } else { - // Otherwise let's next the value at the current index, - // then increment our index. - subscriber.next(input[i++]); - // If the last emission didn't cause us to close the subscriber - // (via take or some side effect), reschedule the job and we'll - // make another pass. - if (!subscriber.closed) { - this.schedule(); - } - } - }); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleAsyncIterable.ts b/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleAsyncIterable.ts deleted file mode 100644 index daa034666..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleAsyncIterable.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { SchedulerLike } from '../types'; -import { Observable } from '../Observable'; -import { executeSchedule } from '../util/executeSchedule'; - -export function scheduleAsyncIterable(input: AsyncIterable, scheduler: SchedulerLike) { - if (!input) { - throw new Error('Iterable cannot be null'); - } - return new Observable((subscriber) => { - executeSchedule(subscriber, scheduler, () => { - const iterator = input[Symbol.asyncIterator](); - executeSchedule( - subscriber, - scheduler, - () => { - iterator.next().then((result) => { - if (result.done) { - // This will remove the subscriptions from - // the parent subscription. - subscriber.complete(); - } else { - subscriber.next(result.value); - } - }); - }, - 0, - true - ); - }); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleIterable.ts b/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleIterable.ts deleted file mode 100644 index aa1459ddc..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleIterable.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { Observable } from '../Observable'; -import { SchedulerLike } from '../types'; -import { iterator as Symbol_iterator } from '../symbol/iterator'; -import { isFunction } from '../util/isFunction'; -import { executeSchedule } from '../util/executeSchedule'; - -/** - * Used in {@link scheduled} to create an observable from an Iterable. - * @param input The iterable to create an observable from - * @param scheduler The scheduler to use - */ -export function scheduleIterable(input: Iterable, scheduler: SchedulerLike) { - return new Observable((subscriber) => { - let iterator: Iterator; - - // Schedule the initial creation of the iterator from - // the iterable. This is so the code in the iterable is - // not called until the scheduled job fires. - executeSchedule(subscriber, scheduler, () => { - // Create the iterator. - iterator = (input as any)[Symbol_iterator](); - - executeSchedule( - subscriber, - scheduler, - () => { - let value: T; - let done: boolean | undefined; - try { - // Pull the value out of the iterator - ({ value, done } = iterator.next()); - } catch (err) { - // We got an error while pulling from the iterator - subscriber.error(err); - return; - } - - if (done) { - // If it is "done" we just complete. This mimics the - // behavior of JavaScript's `for..of` consumption of - // iterables, which will not emit the value from an iterator - // result of `{ done: true: value: 'here' }`. - subscriber.complete(); - } else { - // The iterable is not done, emit the value. - subscriber.next(value); - } - }, - 0, - true - ); - }); - - // During finalization, if we see this iterator has a `return` method, - // then we know it is a Generator, and not just an Iterator. So we call - // the `return()` function. This will ensure that any `finally { }` blocks - // inside of the generator we can hit will be hit properly. - return () => isFunction(iterator?.return) && iterator.return(); - }); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleObservable.ts b/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleObservable.ts deleted file mode 100644 index 29ba3b503..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleObservable.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { observeOn } from '../operators/observeOn'; -import { subscribeOn } from '../operators/subscribeOn'; -import { InteropObservable, SchedulerLike } from '../types'; - -export function scheduleObservable(input: InteropObservable, scheduler: SchedulerLike) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduled/schedulePromise.ts b/WechatBot/node_modules/rxjs/src/internal/scheduled/schedulePromise.ts deleted file mode 100644 index f1211d05c..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduled/schedulePromise.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { innerFrom } from '../observable/innerFrom'; -import { observeOn } from '../operators/observeOn'; -import { subscribeOn } from '../operators/subscribeOn'; -import { SchedulerLike } from '../types'; - -export function schedulePromise(input: PromiseLike, scheduler: SchedulerLike) { - return innerFrom(input).pipe(subscribeOn(scheduler), observeOn(scheduler)); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleReadableStreamLike.ts b/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleReadableStreamLike.ts deleted file mode 100644 index d742f1072..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduleReadableStreamLike.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { SchedulerLike, ReadableStreamLike } from '../types'; -import { Observable } from '../Observable'; -import { scheduleAsyncIterable } from './scheduleAsyncIterable'; -import { readableStreamLikeToAsyncGenerator } from '../util/isReadableStreamLike'; - -export function scheduleReadableStreamLike(input: ReadableStreamLike, scheduler: SchedulerLike): Observable { - return scheduleAsyncIterable(readableStreamLikeToAsyncGenerator(input), scheduler); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduled.ts b/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduled.ts deleted file mode 100644 index bb2e42574..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduled/scheduled.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { scheduleObservable } from './scheduleObservable'; -import { schedulePromise } from './schedulePromise'; -import { scheduleArray } from './scheduleArray'; -import { scheduleIterable } from './scheduleIterable'; -import { scheduleAsyncIterable } from './scheduleAsyncIterable'; -import { isInteropObservable } from '../util/isInteropObservable'; -import { isPromise } from '../util/isPromise'; -import { isArrayLike } from '../util/isArrayLike'; -import { isIterable } from '../util/isIterable'; -import { ObservableInput, SchedulerLike } from '../types'; -import { Observable } from '../Observable'; -import { isAsyncIterable } from '../util/isAsyncIterable'; -import { createInvalidObservableTypeError } from '../util/throwUnobservableError'; -import { isReadableStreamLike } from '../util/isReadableStreamLike'; -import { scheduleReadableStreamLike } from './scheduleReadableStreamLike'; - -/** - * Converts from a common {@link ObservableInput} type to an observable where subscription and emissions - * are scheduled on the provided scheduler. - * - * @see {@link from} - * @see {@link of} - * - * @param input The observable, array, promise, iterable, etc you would like to schedule - * @param scheduler The scheduler to use to schedule the subscription and emissions from - * the returned observable. - */ -export function scheduled(input: ObservableInput, scheduler: SchedulerLike): Observable { - if (input != null) { - if (isInteropObservable(input)) { - return scheduleObservable(input, scheduler); - } - if (isArrayLike(input)) { - return scheduleArray(input, scheduler); - } - if (isPromise(input)) { - return schedulePromise(input, scheduler); - } - if (isAsyncIterable(input)) { - return scheduleAsyncIterable(input, scheduler); - } - if (isIterable(input)) { - return scheduleIterable(input, scheduler); - } - if (isReadableStreamLike(input)) { - return scheduleReadableStreamLike(input, scheduler); - } - } - throw createInvalidObservableTypeError(input); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/Action.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/Action.ts deleted file mode 100644 index 6cf91bcb8..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/Action.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Scheduler } from '../Scheduler'; -import { Subscription } from '../Subscription'; -import { SchedulerAction } from '../types'; - -/** - * A unit of work to be executed in a `scheduler`. An action is typically - * created from within a {@link SchedulerLike} and an RxJS user does not need to concern - * themselves about creating and manipulating an Action. - * - * ```ts - * class Action extends Subscription { - * new (scheduler: Scheduler, work: (state?: T) => void); - * schedule(state?: T, delay: number = 0): Subscription; - * } - * ``` - * - * @class Action - */ -export class Action extends Subscription { - constructor(scheduler: Scheduler, work: (this: SchedulerAction, state?: T) => void) { - super(); - } - /** - * Schedules this action on its parent {@link SchedulerLike} for execution. May be passed - * some context object, `state`. May happen at some point in the future, - * according to the `delay` parameter, if specified. - * @param {T} [state] Some contextual data that the `work` function uses when - * called by the Scheduler. - * @param {number} [delay] Time to wait before executing the work, where the - * time unit is implicit and defined by the Scheduler. - * @return {void} - */ - public schedule(state?: T, delay: number = 0): Subscription { - return this; - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/AnimationFrameAction.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/AnimationFrameAction.ts deleted file mode 100644 index f9c8f8e39..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/AnimationFrameAction.ts +++ /dev/null @@ -1,43 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { AnimationFrameScheduler } from './AnimationFrameScheduler'; -import { SchedulerAction } from '../types'; -import { animationFrameProvider } from './animationFrameProvider'; -import { TimerHandle } from './timerHandle'; - -export class AnimationFrameAction extends AsyncAction { - constructor(protected scheduler: AnimationFrameScheduler, protected work: (this: SchedulerAction, state?: T) => void) { - super(scheduler, work); - } - - protected requestAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle { - // If delay is greater than 0, request as an async action. - if (delay !== null && delay > 0) { - return super.requestAsyncId(scheduler, id, delay); - } - // Push the action to the end of the scheduler queue. - scheduler.actions.push(this); - // If an animation frame has already been requested, don't request another - // one. If an animation frame hasn't been requested yet, request one. Return - // the current animation frame request id. - return scheduler._scheduled || (scheduler._scheduled = animationFrameProvider.requestAnimationFrame(() => scheduler.flush(undefined))); - } - - protected recycleAsyncId(scheduler: AnimationFrameScheduler, id?: TimerHandle, delay: number = 0): TimerHandle | undefined { - // If delay exists and is greater than 0, or if the delay is null (the - // action wasn't rescheduled) but was originally scheduled as an async - // action, then recycle as an async action. - if (delay != null ? delay > 0 : this.delay > 0) { - return super.recycleAsyncId(scheduler, id, delay); - } - // If the scheduler queue has no remaining actions with the same async id, - // cancel the requested animation frame and set the scheduled flag to - // undefined so the next AnimationFrameAction will request its own. - const { actions } = scheduler; - if (id != null && actions[actions.length - 1]?.id !== id) { - animationFrameProvider.cancelAnimationFrame(id as number); - scheduler._scheduled = undefined; - } - // Return undefined so the action knows to request a new async id if it's rescheduled. - return undefined; - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/AnimationFrameScheduler.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/AnimationFrameScheduler.ts deleted file mode 100644 index 640afa248..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/AnimationFrameScheduler.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { AsyncScheduler } from './AsyncScheduler'; - -export class AnimationFrameScheduler extends AsyncScheduler { - public flush(action?: AsyncAction): void { - this._active = true; - // The async id that effects a call to flush is stored in _scheduled. - // Before executing an action, it's necessary to check the action's async - // id to determine whether it's supposed to be executed in the current - // flush. - // Previous implementations of this method used a count to determine this, - // but that was unsound, as actions that are unsubscribed - i.e. cancelled - - // are removed from the actions array and that can shift actions that are - // scheduled to be executed in a subsequent flush into positions at which - // they are executed within the current flush. - const flushId = this._scheduled; - this._scheduled = undefined; - - const { actions } = this; - let error: any; - action = action || actions.shift()!; - - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - - this._active = false; - - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/AsapAction.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/AsapAction.ts deleted file mode 100644 index 178f677e9..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/AsapAction.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { AsapScheduler } from './AsapScheduler'; -import { SchedulerAction } from '../types'; -import { immediateProvider } from './immediateProvider'; -import { TimerHandle } from './timerHandle'; - -export class AsapAction extends AsyncAction { - constructor(protected scheduler: AsapScheduler, protected work: (this: SchedulerAction, state?: T) => void) { - super(scheduler, work); - } - - protected requestAsyncId(scheduler: AsapScheduler, id?: TimerHandle, delay: number = 0): TimerHandle { - // If delay is greater than 0, request as an async action. - if (delay !== null && delay > 0) { - return super.requestAsyncId(scheduler, id, delay); - } - // Push the action to the end of the scheduler queue. - scheduler.actions.push(this); - // If a microtask has already been scheduled, don't schedule another - // one. If a microtask hasn't been scheduled yet, schedule one now. Return - // the current scheduled microtask id. - return scheduler._scheduled || (scheduler._scheduled = immediateProvider.setImmediate(scheduler.flush.bind(scheduler, undefined))); - } - - protected recycleAsyncId(scheduler: AsapScheduler, id?: TimerHandle, delay: number = 0): TimerHandle | undefined { - // If delay exists and is greater than 0, or if the delay is null (the - // action wasn't rescheduled) but was originally scheduled as an async - // action, then recycle as an async action. - if (delay != null ? delay > 0 : this.delay > 0) { - return super.recycleAsyncId(scheduler, id, delay); - } - // If the scheduler queue has no remaining actions with the same async id, - // cancel the requested microtask and set the scheduled flag to undefined - // so the next AsapAction will request its own. - const { actions } = scheduler; - if (id != null && actions[actions.length - 1]?.id !== id) { - immediateProvider.clearImmediate(id); - if (scheduler._scheduled === id) { - scheduler._scheduled = undefined; - } - } - // Return undefined so the action knows to request a new async id if it's rescheduled. - return undefined; - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/AsapScheduler.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/AsapScheduler.ts deleted file mode 100644 index 95874bda2..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/AsapScheduler.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { AsyncScheduler } from './AsyncScheduler'; - -export class AsapScheduler extends AsyncScheduler { - public flush(action?: AsyncAction): void { - this._active = true; - // The async id that effects a call to flush is stored in _scheduled. - // Before executing an action, it's necessary to check the action's async - // id to determine whether it's supposed to be executed in the current - // flush. - // Previous implementations of this method used a count to determine this, - // but that was unsound, as actions that are unsubscribed - i.e. cancelled - - // are removed from the actions array and that can shift actions that are - // scheduled to be executed in a subsequent flush into positions at which - // they are executed within the current flush. - const flushId = this._scheduled; - this._scheduled = undefined; - - const { actions } = this; - let error: any; - action = action || actions.shift()!; - - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions[0]) && action.id === flushId && actions.shift()); - - this._active = false; - - if (error) { - while ((action = actions[0]) && action.id === flushId && actions.shift()) { - action.unsubscribe(); - } - throw error; - } - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/AsyncAction.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/AsyncAction.ts deleted file mode 100644 index d7ffe5118..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/AsyncAction.ts +++ /dev/null @@ -1,151 +0,0 @@ -import { Action } from './Action'; -import { SchedulerAction } from '../types'; -import { Subscription } from '../Subscription'; -import { AsyncScheduler } from './AsyncScheduler'; -import { intervalProvider } from './intervalProvider'; -import { arrRemove } from '../util/arrRemove'; -import { TimerHandle } from './timerHandle'; - -export class AsyncAction extends Action { - public id: TimerHandle | undefined; - public state?: T; - // @ts-ignore: Property has no initializer and is not definitely assigned - public delay: number; - protected pending: boolean = false; - - constructor(protected scheduler: AsyncScheduler, protected work: (this: SchedulerAction, state?: T) => void) { - super(scheduler, work); - } - - public schedule(state?: T, delay: number = 0): Subscription { - if (this.closed) { - return this; - } - - // Always replace the current state with the new state. - this.state = state; - - const id = this.id; - const scheduler = this.scheduler; - - // - // Important implementation note: - // - // Actions only execute once by default, unless rescheduled from within the - // scheduled callback. This allows us to implement single and repeat - // actions via the same code path, without adding API surface area, as well - // as mimic traditional recursion but across asynchronous boundaries. - // - // However, JS runtimes and timers distinguish between intervals achieved by - // serial `setTimeout` calls vs. a single `setInterval` call. An interval of - // serial `setTimeout` calls can be individually delayed, which delays - // scheduling the next `setTimeout`, and so on. `setInterval` attempts to - // guarantee the interval callback will be invoked more precisely to the - // interval period, regardless of load. - // - // Therefore, we use `setInterval` to schedule single and repeat actions. - // If the action reschedules itself with the same delay, the interval is not - // canceled. If the action doesn't reschedule, or reschedules with a - // different delay, the interval will be canceled after scheduled callback - // execution. - // - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, delay); - } - - // Set the pending flag indicating that this action has been scheduled, or - // has recursively rescheduled itself. - this.pending = true; - - this.delay = delay; - // If this action has already an async Id, don't request a new one. - this.id = this.id ?? this.requestAsyncId(scheduler, this.id, delay); - - return this; - } - - protected requestAsyncId(scheduler: AsyncScheduler, _id?: TimerHandle, delay: number = 0): TimerHandle { - return intervalProvider.setInterval(scheduler.flush.bind(scheduler, this), delay); - } - - protected recycleAsyncId(_scheduler: AsyncScheduler, id?: TimerHandle, delay: number | null = 0): TimerHandle | undefined { - // If this action is rescheduled with the same delay time, don't clear the interval id. - if (delay != null && this.delay === delay && this.pending === false) { - return id; - } - // Otherwise, if the action's delay time is different from the current delay, - // or the action has been rescheduled before it's executed, clear the interval id - if (id != null) { - intervalProvider.clearInterval(id); - } - - return undefined; - } - - /** - * Immediately executes this action and the `work` it contains. - * @return {any} - */ - public execute(state: T, delay: number): any { - if (this.closed) { - return new Error('executing a cancelled action'); - } - - this.pending = false; - const error = this._execute(state, delay); - if (error) { - return error; - } else if (this.pending === false && this.id != null) { - // Dequeue if the action didn't reschedule itself. Don't call - // unsubscribe(), because the action could reschedule later. - // For example: - // ``` - // scheduler.schedule(function doWork(counter) { - // /* ... I'm a busy worker bee ... */ - // var originalAction = this; - // /* wait 100ms before rescheduling the action */ - // setTimeout(function () { - // originalAction.schedule(counter + 1); - // }, 100); - // }, 1000); - // ``` - this.id = this.recycleAsyncId(this.scheduler, this.id, null); - } - } - - protected _execute(state: T, _delay: number): any { - let errored: boolean = false; - let errorValue: any; - try { - this.work(state); - } catch (e) { - errored = true; - // HACK: Since code elsewhere is relying on the "truthiness" of the - // return here, we can't have it return "" or 0 or false. - // TODO: Clean this up when we refactor schedulers mid-version-8 or so. - errorValue = e ? e : new Error('Scheduled action threw falsy error'); - } - if (errored) { - this.unsubscribe(); - return errorValue; - } - } - - unsubscribe() { - if (!this.closed) { - const { id, scheduler } = this; - const { actions } = scheduler; - - this.work = this.state = this.scheduler = null!; - this.pending = false; - - arrRemove(actions, this); - if (id != null) { - this.id = this.recycleAsyncId(scheduler, id, null); - } - - this.delay = null!; - super.unsubscribe(); - } - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts deleted file mode 100644 index fc04d6623..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/AsyncScheduler.ts +++ /dev/null @@ -1,54 +0,0 @@ -import { Scheduler } from '../Scheduler'; -import { Action } from './Action'; -import { AsyncAction } from './AsyncAction'; -import { TimerHandle } from './timerHandle'; - -export class AsyncScheduler extends Scheduler { - public actions: Array> = []; - /** - * A flag to indicate whether the Scheduler is currently executing a batch of - * queued actions. - * @type {boolean} - * @internal - */ - public _active: boolean = false; - /** - * An internal ID used to track the latest asynchronous task such as those - * coming from `setTimeout`, `setInterval`, `requestAnimationFrame`, and - * others. - * @type {any} - * @internal - */ - public _scheduled: TimerHandle | undefined; - - constructor(SchedulerAction: typeof Action, now: () => number = Scheduler.now) { - super(SchedulerAction, now); - } - - public flush(action: AsyncAction): void { - const { actions } = this; - - if (this._active) { - actions.push(action); - return; - } - - let error: any; - this._active = true; - - do { - if ((error = action.execute(action.state, action.delay))) { - break; - } - } while ((action = actions.shift()!)); // exhaust the scheduler queue - - this._active = false; - - if (error) { - while ((action = actions.shift()!)) { - action.unsubscribe(); - } - throw error; - } - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/QueueAction.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/QueueAction.ts deleted file mode 100644 index 9016edbc5..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/QueueAction.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { Subscription } from '../Subscription'; -import { QueueScheduler } from './QueueScheduler'; -import { SchedulerAction } from '../types'; -import { TimerHandle } from './timerHandle'; - -export class QueueAction extends AsyncAction { - constructor(protected scheduler: QueueScheduler, protected work: (this: SchedulerAction, state?: T) => void) { - super(scheduler, work); - } - - public schedule(state?: T, delay: number = 0): Subscription { - if (delay > 0) { - return super.schedule(state, delay); - } - this.delay = delay; - this.state = state; - this.scheduler.flush(this); - return this; - } - - public execute(state: T, delay: number): any { - return delay > 0 || this.closed ? super.execute(state, delay) : this._execute(state, delay); - } - - protected requestAsyncId(scheduler: QueueScheduler, id?: TimerHandle, delay: number = 0): TimerHandle { - // If delay exists and is greater than 0, or if the delay is null (the - // action wasn't rescheduled) but was originally scheduled as an async - // action, then recycle as an async action. - - if ((delay != null && delay > 0) || (delay == null && this.delay > 0)) { - return super.requestAsyncId(scheduler, id, delay); - } - - // Otherwise flush the scheduler starting with this action. - scheduler.flush(this); - - // HACK: In the past, this was returning `void`. However, `void` isn't a valid - // `TimerHandle`, and generally the return value here isn't really used. So the - // compromise is to return `0` which is both "falsy" and a valid `TimerHandle`, - // as opposed to refactoring every other instanceo of `requestAsyncId`. - return 0; - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/QueueScheduler.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/QueueScheduler.ts deleted file mode 100644 index e9dab3de5..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/QueueScheduler.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { AsyncScheduler } from './AsyncScheduler'; - -export class QueueScheduler extends AsyncScheduler { -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/VirtualTimeScheduler.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/VirtualTimeScheduler.ts deleted file mode 100644 index 310ac919b..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/VirtualTimeScheduler.ts +++ /dev/null @@ -1,129 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { Subscription } from '../Subscription'; -import { AsyncScheduler } from './AsyncScheduler'; -import { SchedulerAction } from '../types'; -import { TimerHandle } from './timerHandle'; - -export class VirtualTimeScheduler extends AsyncScheduler { - /** @deprecated Not used in VirtualTimeScheduler directly. Will be removed in v8. */ - static frameTimeFactor = 10; - - /** - * The current frame for the state of the virtual scheduler instance. The difference - * between two "frames" is synonymous with the passage of "virtual time units". So if - * you record `scheduler.frame` to be `1`, then later, observe `scheduler.frame` to be at `11`, - * that means `10` virtual time units have passed. - */ - public frame: number = 0; - - /** - * Used internally to examine the current virtual action index being processed. - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ - public index: number = -1; - - /** - * This creates an instance of a `VirtualTimeScheduler`. Experts only. The signature of - * this constructor is likely to change in the long run. - * - * @param schedulerActionCtor The type of Action to initialize when initializing actions during scheduling. - * @param maxFrames The maximum number of frames to process before stopping. Used to prevent endless flush cycles. - */ - constructor(schedulerActionCtor: typeof AsyncAction = VirtualAction as any, public maxFrames: number = Infinity) { - super(schedulerActionCtor, () => this.frame); - } - - /** - * Prompt the Scheduler to execute all of its queued actions, therefore - * clearing its queue. - * @return {void} - */ - public flush(): void { - const { actions, maxFrames } = this; - let error: any; - let action: AsyncAction | undefined; - - while ((action = actions[0]) && action.delay <= maxFrames) { - actions.shift(); - this.frame = action.delay; - - if ((error = action.execute(action.state, action.delay))) { - break; - } - } - - if (error) { - while ((action = actions.shift())) { - action.unsubscribe(); - } - throw error; - } - } -} - -export class VirtualAction extends AsyncAction { - protected active: boolean = true; - - constructor( - protected scheduler: VirtualTimeScheduler, - protected work: (this: SchedulerAction, state?: T) => void, - protected index: number = (scheduler.index += 1) - ) { - super(scheduler, work); - this.index = scheduler.index = index; - } - - public schedule(state?: T, delay: number = 0): Subscription { - if (Number.isFinite(delay)) { - if (!this.id) { - return super.schedule(state, delay); - } - this.active = false; - // If an action is rescheduled, we save allocations by mutating its state, - // pushing it to the end of the scheduler queue, and recycling the action. - // But since the VirtualTimeScheduler is used for testing, VirtualActions - // must be immutable so they can be inspected later. - const action = new VirtualAction(this.scheduler, this.work); - this.add(action); - return action.schedule(state, delay); - } else { - // If someone schedules something with Infinity, it'll never happen. So we - // don't even schedule it. - return Subscription.EMPTY; - } - } - - protected requestAsyncId(scheduler: VirtualTimeScheduler, id?: any, delay: number = 0): TimerHandle { - this.delay = scheduler.frame + delay; - const { actions } = scheduler; - actions.push(this); - (actions as Array>).sort(VirtualAction.sortActions); - return 1; - } - - protected recycleAsyncId(scheduler: VirtualTimeScheduler, id?: any, delay: number = 0): TimerHandle | undefined { - return undefined; - } - - protected _execute(state: T, delay: number): any { - if (this.active === true) { - return super._execute(state, delay); - } - } - - private static sortActions(a: VirtualAction, b: VirtualAction) { - if (a.delay === b.delay) { - if (a.index === b.index) { - return 0; - } else if (a.index > b.index) { - return 1; - } else { - return -1; - } - } else if (a.delay > b.delay) { - return 1; - } else { - return -1; - } - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/animationFrame.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/animationFrame.ts deleted file mode 100644 index 2ce033df4..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/animationFrame.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { AnimationFrameAction } from './AnimationFrameAction'; -import { AnimationFrameScheduler } from './AnimationFrameScheduler'; - -/** - * - * Animation Frame Scheduler - * - * Perform task when `window.requestAnimationFrame` would fire - * - * When `animationFrame` scheduler is used with delay, it will fall back to {@link asyncScheduler} scheduler - * behaviour. - * - * Without delay, `animationFrame` scheduler can be used to create smooth browser animations. - * It makes sure scheduled task will happen just before next browser content repaint, - * thus performing animations as efficiently as possible. - * - * ## Example - * Schedule div height animation - * ```ts - * // html:
    - * import { animationFrameScheduler } from 'rxjs'; - * - * const div = document.querySelector('div'); - * - * animationFrameScheduler.schedule(function(height) { - * div.style.height = height + "px"; - * - * this.schedule(height + 1); // `this` references currently executing Action, - * // which we reschedule with new state - * }, 0, 0); - * - * // You will see a div element growing in height - * ``` - */ - -export const animationFrameScheduler = new AnimationFrameScheduler(AnimationFrameAction); - -/** - * @deprecated Renamed to {@link animationFrameScheduler}. Will be removed in v8. - */ -export const animationFrame = animationFrameScheduler; diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/animationFrameProvider.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/animationFrameProvider.ts deleted file mode 100644 index 610093b31..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/animationFrameProvider.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Subscription } from '../Subscription'; - -interface AnimationFrameProvider { - schedule(callback: FrameRequestCallback): Subscription; - requestAnimationFrame: typeof requestAnimationFrame; - cancelAnimationFrame: typeof cancelAnimationFrame; - delegate: - | { - requestAnimationFrame: typeof requestAnimationFrame; - cancelAnimationFrame: typeof cancelAnimationFrame; - } - | undefined; -} - -export const animationFrameProvider: AnimationFrameProvider = { - // When accessing the delegate, use the variable rather than `this` so that - // the functions can be called without being bound to the provider. - schedule(callback) { - let request = requestAnimationFrame; - let cancel: typeof cancelAnimationFrame | undefined = cancelAnimationFrame; - const { delegate } = animationFrameProvider; - if (delegate) { - request = delegate.requestAnimationFrame; - cancel = delegate.cancelAnimationFrame; - } - const handle = request((timestamp) => { - // Clear the cancel function. The request has been fulfilled, so - // attempting to cancel the request upon unsubscription would be - // pointless. - cancel = undefined; - callback(timestamp); - }); - return new Subscription(() => cancel?.(handle)); - }, - requestAnimationFrame(...args) { - const { delegate } = animationFrameProvider; - return (delegate?.requestAnimationFrame || requestAnimationFrame)(...args); - }, - cancelAnimationFrame(...args) { - const { delegate } = animationFrameProvider; - return (delegate?.cancelAnimationFrame || cancelAnimationFrame)(...args); - }, - delegate: undefined, -}; diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/asap.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/asap.ts deleted file mode 100644 index 5be1be4ea..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/asap.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { AsapAction } from './AsapAction'; -import { AsapScheduler } from './AsapScheduler'; - -/** - * - * Asap Scheduler - * - * Perform task as fast as it can be performed asynchronously - * - * `asap` scheduler behaves the same as {@link asyncScheduler} scheduler when you use it to delay task - * in time. If however you set delay to `0`, `asap` will wait for current synchronously executing - * code to end and then it will try to execute given task as fast as possible. - * - * `asap` scheduler will do its best to minimize time between end of currently executing code - * and start of scheduled task. This makes it best candidate for performing so called "deferring". - * Traditionally this was achieved by calling `setTimeout(deferredTask, 0)`, but that technique involves - * some (although minimal) unwanted delay. - * - * Note that using `asap` scheduler does not necessarily mean that your task will be first to process - * after currently executing code. In particular, if some task was also scheduled with `asap` before, - * that task will execute first. That being said, if you need to schedule task asynchronously, but - * as soon as possible, `asap` scheduler is your best bet. - * - * ## Example - * Compare async and asap scheduler< - * ```ts - * import { asapScheduler, asyncScheduler } from 'rxjs'; - * - * asyncScheduler.schedule(() => console.log('async')); // scheduling 'async' first... - * asapScheduler.schedule(() => console.log('asap')); - * - * // Logs: - * // "asap" - * // "async" - * // ... but 'asap' goes first! - * ``` - */ - -export const asapScheduler = new AsapScheduler(AsapAction); - -/** - * @deprecated Renamed to {@link asapScheduler}. Will be removed in v8. - */ -export const asap = asapScheduler; diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/async.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/async.ts deleted file mode 100644 index 76f9dc860..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/async.ts +++ /dev/null @@ -1,56 +0,0 @@ -import { AsyncAction } from './AsyncAction'; -import { AsyncScheduler } from './AsyncScheduler'; - -/** - * - * Async Scheduler - * - * Schedule task as if you used setTimeout(task, duration) - * - * `async` scheduler schedules tasks asynchronously, by putting them on the JavaScript - * event loop queue. It is best used to delay tasks in time or to schedule tasks repeating - * in intervals. - * - * If you just want to "defer" task, that is to perform it right after currently - * executing synchronous code ends (commonly achieved by `setTimeout(deferredTask, 0)`), - * better choice will be the {@link asapScheduler} scheduler. - * - * ## Examples - * Use async scheduler to delay task - * ```ts - * import { asyncScheduler } from 'rxjs'; - * - * const task = () => console.log('it works!'); - * - * asyncScheduler.schedule(task, 2000); - * - * // After 2 seconds logs: - * // "it works!" - * ``` - * - * Use async scheduler to repeat task in intervals - * ```ts - * import { asyncScheduler } from 'rxjs'; - * - * function task(state) { - * console.log(state); - * this.schedule(state + 1, 1000); // `this` references currently executing Action, - * // which we reschedule with new state and delay - * } - * - * asyncScheduler.schedule(task, 3000, 0); - * - * // Logs: - * // 0 after 3s - * // 1 after 4s - * // 2 after 5s - * // 3 after 6s - * ``` - */ - -export const asyncScheduler = new AsyncScheduler(AsyncAction); - -/** - * @deprecated Renamed to {@link asyncScheduler}. Will be removed in v8. - */ -export const async = asyncScheduler; diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/dateTimestampProvider.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/dateTimestampProvider.ts deleted file mode 100644 index 9e8339d0a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/dateTimestampProvider.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { TimestampProvider } from '../types'; - -interface DateTimestampProvider extends TimestampProvider { - delegate: TimestampProvider | undefined; -} - -export const dateTimestampProvider: DateTimestampProvider = { - now() { - // Use the variable rather than `this` so that the function can be called - // without being bound to the provider. - return (dateTimestampProvider.delegate || Date).now(); - }, - delegate: undefined, -}; diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/immediateProvider.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/immediateProvider.ts deleted file mode 100644 index d70fbf329..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/immediateProvider.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Immediate } from '../util/Immediate'; -import type { TimerHandle } from './timerHandle'; -const { setImmediate, clearImmediate } = Immediate; - -type SetImmediateFunction = (handler: () => void, ...args: any[]) => TimerHandle; -type ClearImmediateFunction = (handle: TimerHandle) => void; - -interface ImmediateProvider { - setImmediate: SetImmediateFunction; - clearImmediate: ClearImmediateFunction; - delegate: - | { - setImmediate: SetImmediateFunction; - clearImmediate: ClearImmediateFunction; - } - | undefined; -} - -export const immediateProvider: ImmediateProvider = { - // When accessing the delegate, use the variable rather than `this` so that - // the functions can be called without being bound to the provider. - setImmediate(...args) { - const { delegate } = immediateProvider; - return (delegate?.setImmediate || setImmediate)(...args); - }, - clearImmediate(handle) { - const { delegate } = immediateProvider; - return (delegate?.clearImmediate || clearImmediate)(handle as any); - }, - delegate: undefined, -}; diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/intervalProvider.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/intervalProvider.ts deleted file mode 100644 index 032317d68..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/intervalProvider.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type { TimerHandle } from './timerHandle'; -type SetIntervalFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle; -type ClearIntervalFunction = (handle: TimerHandle) => void; - -interface IntervalProvider { - setInterval: SetIntervalFunction; - clearInterval: ClearIntervalFunction; - delegate: - | { - setInterval: SetIntervalFunction; - clearInterval: ClearIntervalFunction; - } - | undefined; -} - -export const intervalProvider: IntervalProvider = { - // When accessing the delegate, use the variable rather than `this` so that - // the functions can be called without being bound to the provider. - setInterval(handler: () => void, timeout?: number, ...args) { - const { delegate } = intervalProvider; - if (delegate?.setInterval) { - return delegate.setInterval(handler, timeout, ...args); - } - return setInterval(handler, timeout, ...args); - }, - clearInterval(handle) { - const { delegate } = intervalProvider; - return (delegate?.clearInterval || clearInterval)(handle as any); - }, - delegate: undefined, -}; diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/performanceTimestampProvider.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/performanceTimestampProvider.ts deleted file mode 100644 index 873e71b84..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/performanceTimestampProvider.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { TimestampProvider } from '../types'; - -interface PerformanceTimestampProvider extends TimestampProvider { - delegate: TimestampProvider | undefined; -} - -export const performanceTimestampProvider: PerformanceTimestampProvider = { - now() { - // Use the variable rather than `this` so that the function can be called - // without being bound to the provider. - return (performanceTimestampProvider.delegate || performance).now(); - }, - delegate: undefined, -}; diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/queue.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/queue.ts deleted file mode 100644 index df4e2162c..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/queue.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { QueueAction } from './QueueAction'; -import { QueueScheduler } from './QueueScheduler'; - -/** - * - * Queue Scheduler - * - * Put every next task on a queue, instead of executing it immediately - * - * `queue` scheduler, when used with delay, behaves the same as {@link asyncScheduler} scheduler. - * - * When used without delay, it schedules given task synchronously - executes it right when - * it is scheduled. However when called recursively, that is when inside the scheduled task, - * another task is scheduled with queue scheduler, instead of executing immediately as well, - * that task will be put on a queue and wait for current one to finish. - * - * This means that when you execute task with `queue` scheduler, you are sure it will end - * before any other task scheduled with that scheduler will start. - * - * ## Examples - * Schedule recursively first, then do something - * ```ts - * import { queueScheduler } from 'rxjs'; - * - * queueScheduler.schedule(() => { - * queueScheduler.schedule(() => console.log('second')); // will not happen now, but will be put on a queue - * - * console.log('first'); - * }); - * - * // Logs: - * // "first" - * // "second" - * ``` - * - * Reschedule itself recursively - * ```ts - * import { queueScheduler } from 'rxjs'; - * - * queueScheduler.schedule(function(state) { - * if (state !== 0) { - * console.log('before', state); - * this.schedule(state - 1); // `this` references currently executing Action, - * // which we reschedule with new state - * console.log('after', state); - * } - * }, 0, 3); - * - * // In scheduler that runs recursively, you would expect: - * // "before", 3 - * // "before", 2 - * // "before", 1 - * // "after", 1 - * // "after", 2 - * // "after", 3 - * - * // But with queue it logs: - * // "before", 3 - * // "after", 3 - * // "before", 2 - * // "after", 2 - * // "before", 1 - * // "after", 1 - * ``` - */ - -export const queueScheduler = new QueueScheduler(QueueAction); - -/** - * @deprecated Renamed to {@link queueScheduler}. Will be removed in v8. - */ -export const queue = queueScheduler; diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/timeoutProvider.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/timeoutProvider.ts deleted file mode 100644 index 205e0163a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/timeoutProvider.ts +++ /dev/null @@ -1,31 +0,0 @@ -import type { TimerHandle } from './timerHandle'; -type SetTimeoutFunction = (handler: () => void, timeout?: number, ...args: any[]) => TimerHandle; -type ClearTimeoutFunction = (handle: TimerHandle) => void; - -interface TimeoutProvider { - setTimeout: SetTimeoutFunction; - clearTimeout: ClearTimeoutFunction; - delegate: - | { - setTimeout: SetTimeoutFunction; - clearTimeout: ClearTimeoutFunction; - } - | undefined; -} - -export const timeoutProvider: TimeoutProvider = { - // When accessing the delegate, use the variable rather than `this` so that - // the functions can be called without being bound to the provider. - setTimeout(handler: () => void, timeout?: number, ...args) { - const { delegate } = timeoutProvider; - if (delegate?.setTimeout) { - return delegate.setTimeout(handler, timeout, ...args); - } - return setTimeout(handler, timeout, ...args); - }, - clearTimeout(handle) { - const { delegate } = timeoutProvider; - return (delegate?.clearTimeout || clearTimeout)(handle as any); - }, - delegate: undefined, -}; diff --git a/WechatBot/node_modules/rxjs/src/internal/scheduler/timerHandle.ts b/WechatBot/node_modules/rxjs/src/internal/scheduler/timerHandle.ts deleted file mode 100644 index 99c00982d..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/scheduler/timerHandle.ts +++ /dev/null @@ -1 +0,0 @@ -export type TimerHandle = number | ReturnType; diff --git a/WechatBot/node_modules/rxjs/src/internal/symbol/iterator.ts b/WechatBot/node_modules/rxjs/src/internal/symbol/iterator.ts deleted file mode 100644 index 75098ef48..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/symbol/iterator.ts +++ /dev/null @@ -1,9 +0,0 @@ -export function getSymbolIterator(): symbol { - if (typeof Symbol !== 'function' || !Symbol.iterator) { - return '@@iterator' as any; - } - - return Symbol.iterator; -} - -export const iterator = getSymbolIterator(); diff --git a/WechatBot/node_modules/rxjs/src/internal/symbol/observable.ts b/WechatBot/node_modules/rxjs/src/internal/symbol/observable.ts deleted file mode 100644 index b133245c5..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/symbol/observable.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Symbol.observable or a string "@@observable". Used for interop - * - * @deprecated We will no longer be exporting this symbol in upcoming versions of RxJS. - * Instead polyfill and use Symbol.observable directly *or* use https://www.npmjs.com/package/symbol-observable - */ -export const observable: string | symbol = (() => (typeof Symbol === 'function' && Symbol.observable) || '@@observable')(); diff --git a/WechatBot/node_modules/rxjs/src/internal/testing/ColdObservable.ts b/WechatBot/node_modules/rxjs/src/internal/testing/ColdObservable.ts deleted file mode 100644 index 40cbe49a0..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/testing/ColdObservable.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { Observable } from '../Observable'; -import { Subscription } from '../Subscription'; -import { Scheduler } from '../Scheduler'; -import { TestMessage } from './TestMessage'; -import { SubscriptionLog } from './SubscriptionLog'; -import { SubscriptionLoggable } from './SubscriptionLoggable'; -import { applyMixins } from '../util/applyMixins'; -import { Subscriber } from '../Subscriber'; -import { observeNotification } from '../Notification'; - -export class ColdObservable extends Observable implements SubscriptionLoggable { - public subscriptions: SubscriptionLog[] = []; - scheduler: Scheduler; - // @ts-ignore: Property has no initializer and is not definitely assigned - logSubscribedFrame: () => number; - // @ts-ignore: Property has no initializer and is not definitely assigned - logUnsubscribedFrame: (index: number) => void; - - constructor(public messages: TestMessage[], scheduler: Scheduler) { - super(function (this: Observable, subscriber: Subscriber) { - const observable: ColdObservable = this as any; - const index = observable.logSubscribedFrame(); - const subscription = new Subscription(); - subscription.add( - new Subscription(() => { - observable.logUnsubscribedFrame(index); - }) - ); - observable.scheduleMessages(subscriber); - return subscription; - }); - this.scheduler = scheduler; - } - - scheduleMessages(subscriber: Subscriber) { - const messagesLength = this.messages.length; - for (let i = 0; i < messagesLength; i++) { - const message = this.messages[i]; - subscriber.add( - this.scheduler.schedule( - (state) => { - const { message: { notification }, subscriber: destination } = state!; - observeNotification(notification, destination); - }, - message.frame, - { message, subscriber } - ) - ); - } - } -} -applyMixins(ColdObservable, [SubscriptionLoggable]); diff --git a/WechatBot/node_modules/rxjs/src/internal/testing/HotObservable.ts b/WechatBot/node_modules/rxjs/src/internal/testing/HotObservable.ts deleted file mode 100644 index c15148062..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/testing/HotObservable.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { Subject } from '../Subject'; -import { Subscriber } from '../Subscriber'; -import { Subscription } from '../Subscription'; -import { Scheduler } from '../Scheduler'; -import { TestMessage } from './TestMessage'; -import { SubscriptionLog } from './SubscriptionLog'; -import { SubscriptionLoggable } from './SubscriptionLoggable'; -import { applyMixins } from '../util/applyMixins'; -import { observeNotification } from '../Notification'; - -export class HotObservable extends Subject implements SubscriptionLoggable { - public subscriptions: SubscriptionLog[] = []; - scheduler: Scheduler; - // @ts-ignore: Property has no initializer and is not definitely assigned - logSubscribedFrame: () => number; - // @ts-ignore: Property has no initializer and is not definitely assigned - logUnsubscribedFrame: (index: number) => void; - - constructor(public messages: TestMessage[], scheduler: Scheduler) { - super(); - this.scheduler = scheduler; - } - - /** @internal */ - protected _subscribe(subscriber: Subscriber): Subscription { - const subject: HotObservable = this; - const index = subject.logSubscribedFrame(); - const subscription = new Subscription(); - subscription.add( - new Subscription(() => { - subject.logUnsubscribedFrame(index); - }) - ); - subscription.add(super._subscribe(subscriber)); - return subscription; - } - - setup() { - const subject = this; - const messagesLength = subject.messages.length; - /* tslint:disable:no-var-keyword */ - for (let i = 0; i < messagesLength; i++) { - (() => { - const { notification, frame } = subject.messages[i]; - /* tslint:enable */ - subject.scheduler.schedule(() => { - observeNotification(notification, subject); - }, frame); - })(); - } - } -} -applyMixins(HotObservable, [SubscriptionLoggable]); diff --git a/WechatBot/node_modules/rxjs/src/internal/testing/SubscriptionLog.ts b/WechatBot/node_modules/rxjs/src/internal/testing/SubscriptionLog.ts deleted file mode 100644 index 367a6d969..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/testing/SubscriptionLog.ts +++ /dev/null @@ -1,5 +0,0 @@ -export class SubscriptionLog { - constructor(public subscribedFrame: number, - public unsubscribedFrame: number = Infinity) { - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/src/internal/testing/SubscriptionLoggable.ts b/WechatBot/node_modules/rxjs/src/internal/testing/SubscriptionLoggable.ts deleted file mode 100644 index e8def0419..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/testing/SubscriptionLoggable.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Scheduler } from '../Scheduler'; -import { SubscriptionLog } from './SubscriptionLog'; - -export class SubscriptionLoggable { - public subscriptions: SubscriptionLog[] = []; - // @ts-ignore: Property has no initializer and is not definitely assigned - scheduler: Scheduler; - - logSubscribedFrame(): number { - this.subscriptions.push(new SubscriptionLog(this.scheduler.now())); - return this.subscriptions.length - 1; - } - - logUnsubscribedFrame(index: number) { - const subscriptionLogs = this.subscriptions; - const oldSubscriptionLog = subscriptionLogs[index]; - subscriptionLogs[index] = new SubscriptionLog( - oldSubscriptionLog.subscribedFrame, - this.scheduler.now() - ); - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/testing/TestMessage.ts b/WechatBot/node_modules/rxjs/src/internal/testing/TestMessage.ts deleted file mode 100644 index 918b47775..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/testing/TestMessage.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ObservableNotification } from '../types'; - -export interface TestMessage { - frame: number; - notification: ObservableNotification; - isGhost?: boolean; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/testing/TestScheduler.ts b/WechatBot/node_modules/rxjs/src/internal/testing/TestScheduler.ts deleted file mode 100644 index 2ccdbc556..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/testing/TestScheduler.ts +++ /dev/null @@ -1,693 +0,0 @@ -import { Observable } from '../Observable'; -import { ColdObservable } from './ColdObservable'; -import { HotObservable } from './HotObservable'; -import { TestMessage } from './TestMessage'; -import { SubscriptionLog } from './SubscriptionLog'; -import { Subscription } from '../Subscription'; -import { VirtualTimeScheduler, VirtualAction } from '../scheduler/VirtualTimeScheduler'; -import { ObservableNotification } from '../types'; -import { COMPLETE_NOTIFICATION, errorNotification, nextNotification } from '../NotificationFactories'; -import { dateTimestampProvider } from '../scheduler/dateTimestampProvider'; -import { performanceTimestampProvider } from '../scheduler/performanceTimestampProvider'; -import { animationFrameProvider } from '../scheduler/animationFrameProvider'; -import type { TimerHandle } from '../scheduler/timerHandle'; -import { immediateProvider } from '../scheduler/immediateProvider'; -import { intervalProvider } from '../scheduler/intervalProvider'; -import { timeoutProvider } from '../scheduler/timeoutProvider'; - -const defaultMaxFrame: number = 750; - -export interface RunHelpers { - cold: typeof TestScheduler.prototype.createColdObservable; - hot: typeof TestScheduler.prototype.createHotObservable; - flush: typeof TestScheduler.prototype.flush; - time: typeof TestScheduler.prototype.createTime; - expectObservable: typeof TestScheduler.prototype.expectObservable; - expectSubscriptions: typeof TestScheduler.prototype.expectSubscriptions; - animate: (marbles: string) => void; -} - -interface FlushableTest { - ready: boolean; - actual?: any[]; - expected?: any[]; -} - -export type observableToBeFn = (marbles: string, values?: any, errorValue?: any) => void; -export type subscriptionLogsToBeFn = (marbles: string | string[]) => void; - -export class TestScheduler extends VirtualTimeScheduler { - /** - * The number of virtual time units each character in a marble diagram represents. If - * the test scheduler is being used in "run mode", via the `run` method, this is temporarily - * set to `1` for the duration of the `run` block, then set back to whatever value it was. - * @nocollapse - */ - static frameTimeFactor = 10; - - /** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ - public readonly hotObservables: HotObservable[] = []; - - /** - * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. - */ - public readonly coldObservables: ColdObservable[] = []; - - /** - * Test meta data to be processed during `flush()` - */ - private flushTests: FlushableTest[] = []; - - /** - * Indicates whether the TestScheduler instance is operating in "run mode", - * meaning it's processing a call to `run()` - */ - private runMode = false; - - /** - * - * @param assertDeepEqual A function to set up your assertion for your test harness - */ - constructor(public assertDeepEqual: (actual: any, expected: any) => boolean | void) { - super(VirtualAction, defaultMaxFrame); - } - - createTime(marbles: string): number { - const indexOf = this.runMode ? marbles.trim().indexOf('|') : marbles.indexOf('|'); - if (indexOf === -1) { - throw new Error('marble diagram for time should have a completion marker "|"'); - } - return indexOf * TestScheduler.frameTimeFactor; - } - - /** - * @param marbles A diagram in the marble DSL. Letters map to keys in `values` if provided. - * @param values Values to use for the letters in `marbles`. If omitted, the letters themselves are used. - * @param error The error to use for the `#` marble (if present). - */ - createColdObservable(marbles: string, values?: { [marble: string]: T }, error?: any): ColdObservable { - if (marbles.indexOf('^') !== -1) { - throw new Error('cold observable cannot have subscription offset "^"'); - } - if (marbles.indexOf('!') !== -1) { - throw new Error('cold observable cannot have unsubscription marker "!"'); - } - const messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode); - const cold = new ColdObservable(messages, this); - this.coldObservables.push(cold); - return cold; - } - - /** - * @param marbles A diagram in the marble DSL. Letters map to keys in `values` if provided. - * @param values Values to use for the letters in `marbles`. If omitted, the letters themselves are used. - * @param error The error to use for the `#` marble (if present). - */ - createHotObservable(marbles: string, values?: { [marble: string]: T }, error?: any): HotObservable { - if (marbles.indexOf('!') !== -1) { - throw new Error('hot observable cannot have unsubscription marker "!"'); - } - const messages = TestScheduler.parseMarbles(marbles, values, error, undefined, this.runMode); - const subject = new HotObservable(messages, this); - this.hotObservables.push(subject); - return subject; - } - - private materializeInnerObservable(observable: Observable, outerFrame: number): TestMessage[] { - const messages: TestMessage[] = []; - observable.subscribe({ - next: (value) => { - messages.push({ frame: this.frame - outerFrame, notification: nextNotification(value) }); - }, - error: (error) => { - messages.push({ frame: this.frame - outerFrame, notification: errorNotification(error) }); - }, - complete: () => { - messages.push({ frame: this.frame - outerFrame, notification: COMPLETE_NOTIFICATION }); - }, - }); - return messages; - } - - expectObservable(observable: Observable, subscriptionMarbles: string | null = null) { - const actual: TestMessage[] = []; - const flushTest: FlushableTest = { actual, ready: false }; - const subscriptionParsed = TestScheduler.parseMarblesAsSubscriptions(subscriptionMarbles, this.runMode); - const subscriptionFrame = subscriptionParsed.subscribedFrame === Infinity ? 0 : subscriptionParsed.subscribedFrame; - const unsubscriptionFrame = subscriptionParsed.unsubscribedFrame; - let subscription: Subscription; - - this.schedule(() => { - subscription = observable.subscribe({ - next: (x) => { - // Support Observable-of-Observables - const value = x instanceof Observable ? this.materializeInnerObservable(x, this.frame) : x; - actual.push({ frame: this.frame, notification: nextNotification(value) }); - }, - error: (error) => { - actual.push({ frame: this.frame, notification: errorNotification(error) }); - }, - complete: () => { - actual.push({ frame: this.frame, notification: COMPLETE_NOTIFICATION }); - }, - }); - }, subscriptionFrame); - - if (unsubscriptionFrame !== Infinity) { - this.schedule(() => subscription.unsubscribe(), unsubscriptionFrame); - } - - this.flushTests.push(flushTest); - const { runMode } = this; - - return { - toBe(marbles: string, values?: any, errorValue?: any) { - flushTest.ready = true; - flushTest.expected = TestScheduler.parseMarbles(marbles, values, errorValue, true, runMode); - }, - toEqual: (other: Observable) => { - flushTest.ready = true; - flushTest.expected = []; - this.schedule(() => { - subscription = other.subscribe({ - next: (x) => { - // Support Observable-of-Observables - const value = x instanceof Observable ? this.materializeInnerObservable(x, this.frame) : x; - flushTest.expected!.push({ frame: this.frame, notification: nextNotification(value) }); - }, - error: (error) => { - flushTest.expected!.push({ frame: this.frame, notification: errorNotification(error) }); - }, - complete: () => { - flushTest.expected!.push({ frame: this.frame, notification: COMPLETE_NOTIFICATION }); - }, - }); - }, subscriptionFrame); - }, - }; - } - - expectSubscriptions(actualSubscriptionLogs: SubscriptionLog[]): { toBe: subscriptionLogsToBeFn } { - const flushTest: FlushableTest = { actual: actualSubscriptionLogs, ready: false }; - this.flushTests.push(flushTest); - const { runMode } = this; - return { - toBe(marblesOrMarblesArray: string | string[]) { - const marblesArray: string[] = typeof marblesOrMarblesArray === 'string' ? [marblesOrMarblesArray] : marblesOrMarblesArray; - flushTest.ready = true; - flushTest.expected = marblesArray - .map((marbles) => TestScheduler.parseMarblesAsSubscriptions(marbles, runMode)) - .filter((marbles) => marbles.subscribedFrame !== Infinity); - }, - }; - } - - flush() { - const hotObservables = this.hotObservables; - while (hotObservables.length > 0) { - hotObservables.shift()!.setup(); - } - - super.flush(); - - this.flushTests = this.flushTests.filter((test) => { - if (test.ready) { - this.assertDeepEqual(test.actual, test.expected); - return false; - } - return true; - }); - } - - /** @nocollapse */ - static parseMarblesAsSubscriptions(marbles: string | null, runMode = false): SubscriptionLog { - if (typeof marbles !== 'string') { - return new SubscriptionLog(Infinity); - } - // Spreading the marbles into an array leverages ES2015's support for emoji - // characters when iterating strings. - const characters = [...marbles]; - const len = characters.length; - let groupStart = -1; - let subscriptionFrame = Infinity; - let unsubscriptionFrame = Infinity; - let frame = 0; - - for (let i = 0; i < len; i++) { - let nextFrame = frame; - const advanceFrameBy = (count: number) => { - nextFrame += count * this.frameTimeFactor; - }; - const c = characters[i]; - switch (c) { - case ' ': - // Whitespace no longer advances time - if (!runMode) { - advanceFrameBy(1); - } - break; - case '-': - advanceFrameBy(1); - break; - case '(': - groupStart = frame; - advanceFrameBy(1); - break; - case ')': - groupStart = -1; - advanceFrameBy(1); - break; - case '^': - if (subscriptionFrame !== Infinity) { - throw new Error("found a second subscription point '^' in a " + 'subscription marble diagram. There can only be one.'); - } - subscriptionFrame = groupStart > -1 ? groupStart : frame; - advanceFrameBy(1); - break; - case '!': - if (unsubscriptionFrame !== Infinity) { - throw new Error("found a second unsubscription point '!' in a " + 'subscription marble diagram. There can only be one.'); - } - unsubscriptionFrame = groupStart > -1 ? groupStart : frame; - break; - default: - // time progression syntax - if (runMode && c.match(/^[0-9]$/)) { - // Time progression must be preceded by at least one space - // if it's not at the beginning of the diagram - if (i === 0 || characters[i - 1] === ' ') { - const buffer = characters.slice(i).join(''); - const match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /); - if (match) { - i += match[0].length - 1; - const duration = parseFloat(match[1]); - const unit = match[2]; - let durationInMs: number; - - switch (unit) { - case 'ms': - durationInMs = duration; - break; - case 's': - durationInMs = duration * 1000; - break; - case 'm': - durationInMs = duration * 1000 * 60; - break; - default: - break; - } - - advanceFrameBy(durationInMs! / this.frameTimeFactor); - break; - } - } - } - - throw new Error("there can only be '^' and '!' markers in a " + "subscription marble diagram. Found instead '" + c + "'."); - } - - frame = nextFrame; - } - - if (unsubscriptionFrame < 0) { - return new SubscriptionLog(subscriptionFrame); - } else { - return new SubscriptionLog(subscriptionFrame, unsubscriptionFrame); - } - } - - /** @nocollapse */ - static parseMarbles( - marbles: string, - values?: any, - errorValue?: any, - materializeInnerObservables: boolean = false, - runMode = false - ): TestMessage[] { - if (marbles.indexOf('!') !== -1) { - throw new Error('conventional marble diagrams cannot have the ' + 'unsubscription marker "!"'); - } - // Spreading the marbles into an array leverages ES2015's support for emoji - // characters when iterating strings. - const characters = [...marbles]; - const len = characters.length; - const testMessages: TestMessage[] = []; - const subIndex = runMode ? marbles.replace(/^[ ]+/, '').indexOf('^') : marbles.indexOf('^'); - let frame = subIndex === -1 ? 0 : subIndex * -this.frameTimeFactor; - const getValue = - typeof values !== 'object' - ? (x: any) => x - : (x: any) => { - // Support Observable-of-Observables - if (materializeInnerObservables && values[x] instanceof ColdObservable) { - return values[x].messages; - } - return values[x]; - }; - let groupStart = -1; - - for (let i = 0; i < len; i++) { - let nextFrame = frame; - const advanceFrameBy = (count: number) => { - nextFrame += count * this.frameTimeFactor; - }; - - let notification: ObservableNotification | undefined; - const c = characters[i]; - switch (c) { - case ' ': - // Whitespace no longer advances time - if (!runMode) { - advanceFrameBy(1); - } - break; - case '-': - advanceFrameBy(1); - break; - case '(': - groupStart = frame; - advanceFrameBy(1); - break; - case ')': - groupStart = -1; - advanceFrameBy(1); - break; - case '|': - notification = COMPLETE_NOTIFICATION; - advanceFrameBy(1); - break; - case '^': - advanceFrameBy(1); - break; - case '#': - notification = errorNotification(errorValue || 'error'); - advanceFrameBy(1); - break; - default: - // Might be time progression syntax, or a value literal - if (runMode && c.match(/^[0-9]$/)) { - // Time progression must be preceded by at least one space - // if it's not at the beginning of the diagram - if (i === 0 || characters[i - 1] === ' ') { - const buffer = characters.slice(i).join(''); - const match = buffer.match(/^([0-9]+(?:\.[0-9]+)?)(ms|s|m) /); - if (match) { - i += match[0].length - 1; - const duration = parseFloat(match[1]); - const unit = match[2]; - let durationInMs: number; - - switch (unit) { - case 'ms': - durationInMs = duration; - break; - case 's': - durationInMs = duration * 1000; - break; - case 'm': - durationInMs = duration * 1000 * 60; - break; - default: - break; - } - - advanceFrameBy(durationInMs! / this.frameTimeFactor); - break; - } - } - } - - notification = nextNotification(getValue(c)); - advanceFrameBy(1); - break; - } - - if (notification) { - testMessages.push({ frame: groupStart > -1 ? groupStart : frame, notification }); - } - - frame = nextFrame; - } - return testMessages; - } - - private createAnimator() { - if (!this.runMode) { - throw new Error('animate() must only be used in run mode'); - } - - // The TestScheduler assigns a delegate to the provider that's used for - // requestAnimationFrame (rAF). The delegate works in conjunction with the - // animate run helper to coordinate the invocation of any rAF callbacks, - // that are effected within tests, with the animation frames specified by - // the test's author - in the marbles that are passed to the animate run - // helper. This allows the test's author to write deterministic tests and - // gives the author full control over when - or if - animation frames are - // 'painted'. - - let lastHandle = 0; - let map: Map | undefined; - - const delegate = { - requestAnimationFrame(callback: FrameRequestCallback) { - if (!map) { - throw new Error('animate() was not called within run()'); - } - const handle = ++lastHandle; - map.set(handle, callback); - return handle; - }, - cancelAnimationFrame(handle: number) { - if (!map) { - throw new Error('animate() was not called within run()'); - } - map.delete(handle); - }, - }; - - const animate = (marbles: string) => { - if (map) { - throw new Error('animate() must not be called more than once within run()'); - } - if (/[|#]/.test(marbles)) { - throw new Error('animate() must not complete or error'); - } - map = new Map(); - const messages = TestScheduler.parseMarbles(marbles, undefined, undefined, undefined, true); - for (const message of messages) { - this.schedule(() => { - const now = this.now(); - // Capture the callbacks within the queue and clear the queue - // before enumerating the callbacks, as callbacks might - // reschedule themselves. (And, yeah, we're using a Map to represent - // the queue, but the values are guaranteed to be returned in - // insertion order, so it's all good. Trust me, I've read the docs.) - const callbacks = Array.from(map!.values()); - map!.clear(); - for (const callback of callbacks) { - callback(now); - } - }, message.frame); - } - }; - - return { animate, delegate }; - } - - private createDelegates() { - // When in run mode, the TestScheduler provides alternate implementations - // of set/clearImmediate and set/clearInterval. These implementations are - // consumed by the scheduler implementations via the providers. This is - // done to effect deterministic asap and async scheduler behavior so that - // all of the schedulers are testable in 'run mode'. Prior to v7, - // delegation occurred at the scheduler level. That is, the asap and - // animation frame schedulers were identical in behavior to the async - // scheduler. Now, when in run mode, asap actions are prioritized over - // async actions and animation frame actions are coordinated using the - // animate run helper. - - let lastHandle = 0; - const scheduleLookup = new Map< - TimerHandle, - { - due: number; - duration: number; - handle: TimerHandle; - handler: () => void; - subscription: Subscription; - type: 'immediate' | 'interval' | 'timeout'; - } - >(); - - const run = () => { - // Whenever a scheduled run is executed, it must run a single immediate - // or interval action - with immediate actions being prioritized over - // interval and timeout actions. - const now = this.now(); - const scheduledRecords = Array.from(scheduleLookup.values()); - const scheduledRecordsDue = scheduledRecords.filter(({ due }) => due <= now); - const dueImmediates = scheduledRecordsDue.filter(({ type }) => type === 'immediate'); - if (dueImmediates.length > 0) { - const { handle, handler } = dueImmediates[0]; - scheduleLookup.delete(handle); - handler(); - return; - } - const dueIntervals = scheduledRecordsDue.filter(({ type }) => type === 'interval'); - if (dueIntervals.length > 0) { - const firstDueInterval = dueIntervals[0]; - const { duration, handler } = firstDueInterval; - firstDueInterval.due = now + duration; - // The interval delegate must behave like setInterval, so run needs to - // be rescheduled. This will continue until the clearInterval delegate - // unsubscribes and deletes the handle from the map. - firstDueInterval.subscription = this.schedule(run, duration); - handler(); - return; - } - const dueTimeouts = scheduledRecordsDue.filter(({ type }) => type === 'timeout'); - if (dueTimeouts.length > 0) { - const { handle, handler } = dueTimeouts[0]; - scheduleLookup.delete(handle); - handler(); - return; - } - throw new Error('Expected a due immediate or interval'); - }; - - // The following objects are the delegates that replace conventional - // runtime implementations with TestScheduler implementations. - // - // The immediate delegate is depended upon by the asapScheduler. - // - // The interval delegate is depended upon by the asyncScheduler. - // - // The timeout delegate is not depended upon by any scheduler, but it's - // included here because the onUnhandledError and onStoppedNotification - // configuration points use setTimeout to avoid producer interference. It's - // inclusion allows for the testing of these configuration points. - - const immediate = { - setImmediate: (handler: () => void) => { - const handle = ++lastHandle; - scheduleLookup.set(handle, { - due: this.now(), - duration: 0, - handle, - handler, - subscription: this.schedule(run, 0), - type: 'immediate', - }); - return handle; - }, - clearImmediate: (handle: TimerHandle) => { - const value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - - const interval = { - setInterval: (handler: () => void, duration = 0) => { - const handle = ++lastHandle; - scheduleLookup.set(handle, { - due: this.now() + duration, - duration, - handle, - handler, - subscription: this.schedule(run, duration), - type: 'interval', - }); - return handle; - }, - clearInterval: (handle: TimerHandle) => { - const value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - - const timeout = { - setTimeout: (handler: () => void, duration = 0) => { - const handle = ++lastHandle; - scheduleLookup.set(handle, { - due: this.now() + duration, - duration, - handle, - handler, - subscription: this.schedule(run, duration), - type: 'timeout', - }); - return handle; - }, - clearTimeout: (handle: TimerHandle) => { - const value = scheduleLookup.get(handle); - if (value) { - value.subscription.unsubscribe(); - scheduleLookup.delete(handle); - } - }, - }; - - return { immediate, interval, timeout }; - } - - /** - * The `run` method performs the test in 'run mode' - in which schedulers - * used within the test automatically delegate to the `TestScheduler`. That - * is, in 'run mode' there is no need to explicitly pass a `TestScheduler` - * instance to observable creators or operators. - * - * @see {@link /guide/testing/marble-testing} - */ - run(callback: (helpers: RunHelpers) => T): T { - const prevFrameTimeFactor = TestScheduler.frameTimeFactor; - const prevMaxFrames = this.maxFrames; - - TestScheduler.frameTimeFactor = 1; - this.maxFrames = Infinity; - this.runMode = true; - - const animator = this.createAnimator(); - const delegates = this.createDelegates(); - - animationFrameProvider.delegate = animator.delegate; - dateTimestampProvider.delegate = this; - immediateProvider.delegate = delegates.immediate; - intervalProvider.delegate = delegates.interval; - timeoutProvider.delegate = delegates.timeout; - performanceTimestampProvider.delegate = this; - - const helpers: RunHelpers = { - cold: this.createColdObservable.bind(this), - hot: this.createHotObservable.bind(this), - flush: this.flush.bind(this), - time: this.createTime.bind(this), - expectObservable: this.expectObservable.bind(this), - expectSubscriptions: this.expectSubscriptions.bind(this), - animate: animator.animate, - }; - try { - const ret = callback(helpers); - this.flush(); - return ret; - } finally { - TestScheduler.frameTimeFactor = prevFrameTimeFactor; - this.maxFrames = prevMaxFrames; - this.runMode = false; - animationFrameProvider.delegate = undefined; - dateTimestampProvider.delegate = undefined; - immediateProvider.delegate = undefined; - intervalProvider.delegate = undefined; - timeoutProvider.delegate = undefined; - performanceTimestampProvider.delegate = undefined; - } - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/types.ts b/WechatBot/node_modules/rxjs/src/internal/types.ts deleted file mode 100644 index a28e96a28..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/types.ts +++ /dev/null @@ -1,365 +0,0 @@ -// https://github.com/microsoft/TypeScript/issues/40462#issuecomment-689879308 -/// - -import { Observable } from './Observable'; -import { Subscription } from './Subscription'; - -/** - * Note: This will add Symbol.observable globally for all TypeScript users, - * however, we are no longer polyfilling Symbol.observable - */ -declare global { - interface SymbolConstructor { - readonly observable: symbol; - } -} - -/* OPERATOR INTERFACES */ - -/** - * A function type interface that describes a function that accepts one parameter `T` - * and returns another parameter `R`. - * - * Usually used to describe {@link OperatorFunction} - it always takes a single - * parameter (the source Observable) and returns another Observable. - */ -export interface UnaryFunction { - (source: T): R; -} - -export interface OperatorFunction extends UnaryFunction, Observable> {} - -export type FactoryOrValue = T | (() => T); - -export interface MonoTypeOperatorFunction extends OperatorFunction {} - -/** - * A value and the time at which it was emitted. - * - * Emitted by the `timestamp` operator - * - * @see {@link timestamp} - */ -export interface Timestamp { - value: T; - /** - * The timestamp. By default, this is in epoch milliseconds. - * Could vary based on the timestamp provider passed to the operator. - */ - timestamp: number; -} - -/** - * A value emitted and the amount of time since the last value was emitted. - * - * Emitted by the `timeInterval` operator. - * - * @see {@link timeInterval} - */ -export interface TimeInterval { - value: T; - - /** - * The amount of time between this value's emission and the previous value's emission. - * If this is the first emitted value, then it will be the amount of time since subscription - * started. - */ - interval: number; -} - -/* SUBSCRIPTION INTERFACES */ - -export interface Unsubscribable { - unsubscribe(): void; -} - -export type TeardownLogic = Subscription | Unsubscribable | (() => void) | void; - -export interface SubscriptionLike extends Unsubscribable { - unsubscribe(): void; - readonly closed: boolean; -} - -/** - * @deprecated Do not use. Most likely you want to use `ObservableInput`. Will be removed in v8. - */ -export type SubscribableOrPromise = Subscribable | Subscribable | PromiseLike | InteropObservable; - -/** OBSERVABLE INTERFACES */ - -export interface Subscribable { - subscribe(observer: Partial>): Unsubscribable; -} - -/** - * Valid types that can be converted to observables. - */ -export type ObservableInput = - | Observable - | InteropObservable - | AsyncIterable - | PromiseLike - | ArrayLike - | Iterable - | ReadableStreamLike; - -/** - * @deprecated Renamed to {@link InteropObservable }. Will be removed in v8. - */ -export type ObservableLike = InteropObservable; - -/** - * An object that implements the `Symbol.observable` interface. - */ -export interface InteropObservable { - [Symbol.observable]: () => Subscribable; -} - -/* NOTIFICATIONS */ - -/** - * A notification representing a "next" from an observable. - * Can be used with {@link dematerialize}. - */ -export interface NextNotification { - /** The kind of notification. Always "N" */ - kind: 'N'; - /** The value of the notification. */ - value: T; -} - -/** - * A notification representing an "error" from an observable. - * Can be used with {@link dematerialize}. - */ -export interface ErrorNotification { - /** The kind of notification. Always "E" */ - kind: 'E'; - error: any; -} - -/** - * A notification representing a "completion" from an observable. - * Can be used with {@link dematerialize}. - */ -export interface CompleteNotification { - kind: 'C'; -} - -/** - * Valid observable notification types. - */ -export type ObservableNotification = NextNotification | ErrorNotification | CompleteNotification; - -/* OBSERVER INTERFACES */ - -export interface NextObserver { - closed?: boolean; - next: (value: T) => void; - error?: (err: any) => void; - complete?: () => void; -} - -export interface ErrorObserver { - closed?: boolean; - next?: (value: T) => void; - error: (err: any) => void; - complete?: () => void; -} - -export interface CompletionObserver { - closed?: boolean; - next?: (value: T) => void; - error?: (err: any) => void; - complete: () => void; -} - -export type PartialObserver = NextObserver | ErrorObserver | CompletionObserver; - -/** - * An object interface that defines a set of callback functions a user can use to get - * notified of any set of {@link Observable} - * {@link guide/glossary-and-semantics#notification notification} events. - * - * For more info, please refer to {@link guide/observer this guide}. - */ -export interface Observer { - /** - * A callback function that gets called by the producer during the subscription when - * the producer "has" the `value`. It won't be called if `error` or `complete` callback - * functions have been called, nor after the consumer has unsubscribed. - * - * For more info, please refer to {@link guide/glossary-and-semantics#next this guide}. - */ - next: (value: T) => void; - /** - * A callback function that gets called by the producer if and when it encountered a - * problem of any kind. The errored value will be provided through the `err` parameter. - * This callback can't be called more than one time, it can't be called if the - * `complete` callback function have been called previously, nor it can't be called if - * the consumer has unsubscribed. - * - * For more info, please refer to {@link guide/glossary-and-semantics#error this guide}. - */ - error: (err: any) => void; - /** - * A callback function that gets called by the producer if and when it has no more - * values to provide (by calling `next` callback function). This means that no error - * has happened. This callback can't be called more than one time, it can't be called - * if the `error` callback function have been called previously, nor it can't be called - * if the consumer has unsubscribed. - * - * For more info, please refer to {@link guide/glossary-and-semantics#complete this guide}. - */ - complete: () => void; -} - -export interface SubjectLike extends Observer, Subscribable {} - -/* SCHEDULER INTERFACES */ - -export interface SchedulerLike extends TimestampProvider { - schedule(work: (this: SchedulerAction, state: T) => void, delay: number, state: T): Subscription; - schedule(work: (this: SchedulerAction, state?: T) => void, delay: number, state?: T): Subscription; - schedule(work: (this: SchedulerAction, state?: T) => void, delay?: number, state?: T): Subscription; -} - -export interface SchedulerAction extends Subscription { - schedule(state?: T, delay?: number): Subscription; -} - -/** - * This is a type that provides a method to allow RxJS to create a numeric timestamp - */ -export interface TimestampProvider { - /** - * Returns a timestamp as a number. - * - * This is used by types like `ReplaySubject` or operators like `timestamp` to calculate - * the amount of time passed between events. - */ - now(): number; -} - -/** - * Extracts the type from an `ObservableInput`. If you have - * `O extends ObservableInput` and you pass in `Observable`, or - * `Promise`, etc, it will type as `number`. - */ -export type ObservedValueOf = O extends ObservableInput ? T : never; - -/** - * Extracts a union of element types from an `ObservableInput[]`. - * If you have `O extends ObservableInput[]` and you pass in - * `Observable[]` or `Promise[]` you would get - * back a type of `string`. - * If you pass in `[Observable, Observable]` you would - * get back a type of `string | number`. - */ -export type ObservedValueUnionFromArray = X extends Array> ? T : never; - -/** - * @deprecated Renamed to {@link ObservedValueUnionFromArray}. Will be removed in v8. - */ -export type ObservedValuesFromArray = ObservedValueUnionFromArray; - -/** - * Extracts a tuple of element types from an `ObservableInput[]`. - * If you have `O extends ObservableInput[]` and you pass in - * `[Observable, Observable]` you would get back a type - * of `[string, number]`. - */ -export type ObservedValueTupleFromArray = { [K in keyof X]: ObservedValueOf }; - -/** - * Used to infer types from arguments to functions like {@link forkJoin}. - * So that you can have `forkJoin([Observable
    , PromiseLike]): Observable<[A, B]>` - * et al. - */ -export type ObservableInputTuple = { - [K in keyof T]: ObservableInput; -}; - -/** - * Constructs a new tuple with the specified type at the head. - * If you declare `Cons` you will get back `[A, B, C]`. - */ -export type Cons = ((arg: X, ...rest: Y) => any) extends (...args: infer U) => any ? U : never; - -/** - * Extracts the head of a tuple. - * If you declare `Head<[A, B, C]>` you will get back `A`. - */ -export type Head = ((...args: X) => any) extends (arg: infer U, ...rest: any[]) => any ? U : never; - -/** - * Extracts the tail of a tuple. - * If you declare `Tail<[A, B, C]>` you will get back `[B, C]`. - */ -export type Tail = ((...args: X) => any) extends (arg: any, ...rest: infer U) => any ? U : never; - -/** - * Extracts the generic value from an Array type. - * If you have `T extends Array`, and pass a `string[]` to it, - * `ValueFromArray` will return the actual type of `string`. - */ -export type ValueFromArray = A extends Array ? T : never; - -/** - * Gets the value type from an {@link ObservableNotification}, if possible. - */ -export type ValueFromNotification = T extends { kind: 'N' | 'E' | 'C' } - ? T extends NextNotification - ? T extends { value: infer V } - ? V - : undefined - : never - : never; - -/** - * A simple type to represent a gamut of "falsy" values... with a notable exception: - * `NaN` is "falsy" however, it is not and cannot be typed via TypeScript. See - * comments here: https://github.com/microsoft/TypeScript/issues/28682#issuecomment-707142417 - */ -export type Falsy = null | undefined | false | 0 | -0 | 0n | ''; - -export type TruthyTypesOf = T extends Falsy ? never : T; - -// We shouldn't rely on this type definition being available globally yet since it's -// not necessarily available in every TS environment. -interface ReadableStreamDefaultReaderLike { - // HACK: As of TS 4.2.2, The provided types for the iterator results of a `ReadableStreamDefaultReader` - // are significantly different enough from `IteratorResult` as to cause compilation errors. - // The type at the time is `ReadableStreamDefaultReadResult`. - read(): PromiseLike< - | { - done: false; - value: T; - } - | { done: true; value?: undefined } - >; - releaseLock(): void; -} - -/** - * The base signature RxJS will look for to identify and use - * a [ReadableStream](https://streams.spec.whatwg.org/#rs-class) - * as an {@link ObservableInput} source. - */ -export interface ReadableStreamLike { - getReader(): ReadableStreamDefaultReaderLike; -} - -/** - * An observable with a `connect` method that is used to create a subscription - * to an underlying source, connecting it with all consumers via a multicast. - */ -export interface Connectable extends Observable { - /** - * (Idempotent) Calling this method will connect the underlying source observable to all subscribed consumers - * through an underlying {@link Subject}. - * @returns A subscription, that when unsubscribed, will "disconnect" the source from the connector subject, - * severing notifications to all consumers. - */ - connect(): Subscription; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/umd.ts b/WechatBot/node_modules/rxjs/src/internal/umd.ts deleted file mode 100644 index e81c57420..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/umd.ts +++ /dev/null @@ -1,26 +0,0 @@ -/* - NOTE: This is the global export file for rxjs v6 and higher. - */ - -/* rxjs */ -export * from '../index'; - -/* rxjs.operators */ -import * as _operators from '../operators/index'; -export const operators = _operators; - -/* rxjs.testing */ -import * as _testing from '../testing/index'; -export const testing = _testing; - -/* rxjs.ajax */ -import * as _ajax from '../ajax/index'; -export const ajax = _ajax; - -/* rxjs.webSocket */ -import * as _webSocket from '../webSocket/index'; -export const webSocket = _webSocket; - -/* rxjs.fetch */ -import * as _fetch from '../fetch/index'; -export const fetch = _fetch; diff --git a/WechatBot/node_modules/rxjs/src/internal/util/ArgumentOutOfRangeError.ts b/WechatBot/node_modules/rxjs/src/internal/util/ArgumentOutOfRangeError.ts deleted file mode 100644 index bd528ba7b..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/ArgumentOutOfRangeError.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { createErrorClass } from './createErrorClass'; - -export interface ArgumentOutOfRangeError extends Error {} - -export interface ArgumentOutOfRangeErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (): ArgumentOutOfRangeError; -} - -/** - * An error thrown when an element was queried at a certain index of an - * Observable, but no such index or position exists in that sequence. - * - * @see {@link elementAt} - * @see {@link take} - * @see {@link takeLast} - * - * @class ArgumentOutOfRangeError - */ -export const ArgumentOutOfRangeError: ArgumentOutOfRangeErrorCtor = createErrorClass( - (_super) => - function ArgumentOutOfRangeErrorImpl(this: any) { - _super(this); - this.name = 'ArgumentOutOfRangeError'; - this.message = 'argument out of range'; - } -); diff --git a/WechatBot/node_modules/rxjs/src/internal/util/EmptyError.ts b/WechatBot/node_modules/rxjs/src/internal/util/EmptyError.ts deleted file mode 100644 index e2cbb9c0d..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/EmptyError.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { createErrorClass } from './createErrorClass'; - -export interface EmptyError extends Error {} - -export interface EmptyErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (): EmptyError; -} - -/** - * An error thrown when an Observable or a sequence was queried but has no - * elements. - * - * @see {@link first} - * @see {@link last} - * @see {@link single} - * @see {@link firstValueFrom} - * @see {@link lastValueFrom} - * - * @class EmptyError - */ -export const EmptyError: EmptyErrorCtor = createErrorClass((_super) => function EmptyErrorImpl(this: any) { - _super(this); - this.name = 'EmptyError'; - this.message = 'no elements in sequence'; -}); diff --git a/WechatBot/node_modules/rxjs/src/internal/util/Immediate.ts b/WechatBot/node_modules/rxjs/src/internal/util/Immediate.ts deleted file mode 100644 index f01f546af..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/Immediate.ts +++ /dev/null @@ -1,45 +0,0 @@ -let nextHandle = 1; -// The promise needs to be created lazily otherwise it won't be patched by Zones -let resolved: Promise; -const activeHandles: { [key: number]: any } = {}; - -/** - * Finds the handle in the list of active handles, and removes it. - * Returns `true` if found, `false` otherwise. Used both to clear - * Immediate scheduled tasks, and to identify if a task should be scheduled. - */ -function findAndClearHandle(handle: number): boolean { - if (handle in activeHandles) { - delete activeHandles[handle]; - return true; - } - return false; -} - -/** - * Helper functions to schedule and unschedule microtasks. - */ -export const Immediate = { - setImmediate(cb: () => void): number { - const handle = nextHandle++; - activeHandles[handle] = true; - if (!resolved) { - resolved = Promise.resolve(); - } - resolved.then(() => findAndClearHandle(handle) && cb()); - return handle; - }, - - clearImmediate(handle: number): void { - findAndClearHandle(handle); - }, -}; - -/** - * Used for internal testing purposes only. Do not export from library. - */ -export const TestTools = { - pending() { - return Object.keys(activeHandles).length; - } -}; diff --git a/WechatBot/node_modules/rxjs/src/internal/util/NotFoundError.ts b/WechatBot/node_modules/rxjs/src/internal/util/NotFoundError.ts deleted file mode 100644 index 8880b5347..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/NotFoundError.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { createErrorClass } from './createErrorClass'; - -export interface NotFoundError extends Error {} - -export interface NotFoundErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (message: string): NotFoundError; -} - -/** - * An error thrown when a value or values are missing from an - * observable sequence. - * - * @see {@link operators/single} - * - * @class NotFoundError - */ -export const NotFoundError: NotFoundErrorCtor = createErrorClass( - (_super) => - function NotFoundErrorImpl(this: any, message: string) { - _super(this); - this.name = 'NotFoundError'; - this.message = message; - } -); diff --git a/WechatBot/node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts b/WechatBot/node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts deleted file mode 100644 index 5e833f9c1..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/ObjectUnsubscribedError.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { createErrorClass } from './createErrorClass'; - -export interface ObjectUnsubscribedError extends Error {} - -export interface ObjectUnsubscribedErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (): ObjectUnsubscribedError; -} - -/** - * An error thrown when an action is invalid because the object has been - * unsubscribed. - * - * @see {@link Subject} - * @see {@link BehaviorSubject} - * - * @class ObjectUnsubscribedError - */ -export const ObjectUnsubscribedError: ObjectUnsubscribedErrorCtor = createErrorClass( - (_super) => - function ObjectUnsubscribedErrorImpl(this: any) { - _super(this); - this.name = 'ObjectUnsubscribedError'; - this.message = 'object unsubscribed'; - } -); diff --git a/WechatBot/node_modules/rxjs/src/internal/util/SequenceError.ts b/WechatBot/node_modules/rxjs/src/internal/util/SequenceError.ts deleted file mode 100644 index e959557df..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/SequenceError.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { createErrorClass } from './createErrorClass'; - -export interface SequenceError extends Error {} - -export interface SequenceErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (message: string): SequenceError; -} - -/** - * An error thrown when something is wrong with the sequence of - * values arriving on the observable. - * - * @see {@link operators/single} - * - * @class SequenceError - */ -export const SequenceError: SequenceErrorCtor = createErrorClass( - (_super) => - function SequenceErrorImpl(this: any, message: string) { - _super(this); - this.name = 'SequenceError'; - this.message = message; - } -); diff --git a/WechatBot/node_modules/rxjs/src/internal/util/UnsubscriptionError.ts b/WechatBot/node_modules/rxjs/src/internal/util/UnsubscriptionError.ts deleted file mode 100644 index cd7d09f42..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/UnsubscriptionError.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { createErrorClass } from './createErrorClass'; - -export interface UnsubscriptionError extends Error { - readonly errors: any[]; -} - -export interface UnsubscriptionErrorCtor { - /** - * @deprecated Internal implementation detail. Do not construct error instances. - * Cannot be tagged as internal: https://github.com/ReactiveX/rxjs/issues/6269 - */ - new (errors: any[]): UnsubscriptionError; -} - -/** - * An error thrown when one or more errors have occurred during the - * `unsubscribe` of a {@link Subscription}. - */ -export const UnsubscriptionError: UnsubscriptionErrorCtor = createErrorClass( - (_super) => - function UnsubscriptionErrorImpl(this: any, errors: (Error | string)[]) { - _super(this); - this.message = errors - ? `${errors.length} errors occurred during unsubscription: -${errors.map((err, i) => `${i + 1}) ${err.toString()}`).join('\n ')}` - : ''; - this.name = 'UnsubscriptionError'; - this.errors = errors; - } -); diff --git a/WechatBot/node_modules/rxjs/src/internal/util/applyMixins.ts b/WechatBot/node_modules/rxjs/src/internal/util/applyMixins.ts deleted file mode 100644 index 7c1ed2423..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/applyMixins.ts +++ /dev/null @@ -1,10 +0,0 @@ -export function applyMixins(derivedCtor: any, baseCtors: any[]) { - for (let i = 0, len = baseCtors.length; i < len; i++) { - const baseCtor = baseCtors[i]; - const propertyKeys = Object.getOwnPropertyNames(baseCtor.prototype); - for (let j = 0, len2 = propertyKeys.length; j < len2; j++) { - const name = propertyKeys[j]; - derivedCtor.prototype[name] = baseCtor.prototype[name]; - } - } -} \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/src/internal/util/args.ts b/WechatBot/node_modules/rxjs/src/internal/util/args.ts deleted file mode 100644 index 0ce104bf2..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/args.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { SchedulerLike } from '../types'; -import { isFunction } from './isFunction'; -import { isScheduler } from './isScheduler'; - -function last(arr: T[]): T | undefined { - return arr[arr.length - 1]; -} - -export function popResultSelector(args: any[]): ((...args: unknown[]) => unknown) | undefined { - return isFunction(last(args)) ? args.pop() : undefined; -} - -export function popScheduler(args: any[]): SchedulerLike | undefined { - return isScheduler(last(args)) ? args.pop() : undefined; -} - -export function popNumber(args: any[], defaultValue: number): number { - return typeof last(args) === 'number' ? args.pop()! : defaultValue; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/argsArgArrayOrObject.ts b/WechatBot/node_modules/rxjs/src/internal/util/argsArgArrayOrObject.ts deleted file mode 100644 index 483bef9bd..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/argsArgArrayOrObject.ts +++ /dev/null @@ -1,30 +0,0 @@ -const { isArray } = Array; -const { getPrototypeOf, prototype: objectProto, keys: getKeys } = Object; - -/** - * Used in functions where either a list of arguments, a single array of arguments, or a - * dictionary of arguments can be returned. Returns an object with an `args` property with - * the arguments in an array, if it is a dictionary, it will also return the `keys` in another - * property. - */ -export function argsArgArrayOrObject>(args: T[] | [O] | [T[]]): { args: T[]; keys: string[] | null } { - if (args.length === 1) { - const first = args[0]; - if (isArray(first)) { - return { args: first, keys: null }; - } - if (isPOJO(first)) { - const keys = getKeys(first); - return { - args: keys.map((key) => first[key]), - keys, - }; - } - } - - return { args: args as T[], keys: null }; -} - -function isPOJO(obj: any): obj is object { - return obj && typeof obj === 'object' && getPrototypeOf(obj) === objectProto; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/argsOrArgArray.ts b/WechatBot/node_modules/rxjs/src/internal/util/argsOrArgArray.ts deleted file mode 100644 index b0096ce6e..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/argsOrArgArray.ts +++ /dev/null @@ -1,9 +0,0 @@ -const { isArray } = Array; - -/** - * Used in operators and functions that accept either a list of arguments, or an array of arguments - * as a single argument. - */ -export function argsOrArgArray(args: (T | T[])[]): T[] { - return args.length === 1 && isArray(args[0]) ? args[0] : (args as T[]); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/arrRemove.ts b/WechatBot/node_modules/rxjs/src/internal/util/arrRemove.ts deleted file mode 100644 index 51a76cd8a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/arrRemove.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Removes an item from an array, mutating it. - * @param arr The array to remove the item from - * @param item The item to remove - */ -export function arrRemove(arr: T[] | undefined | null, item: T) { - if (arr) { - const index = arr.indexOf(item); - 0 <= index && arr.splice(index, 1); - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/createErrorClass.ts b/WechatBot/node_modules/rxjs/src/internal/util/createErrorClass.ts deleted file mode 100644 index e354fd389..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/createErrorClass.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Used to create Error subclasses until the community moves away from ES5. - * - * This is because compiling from TypeScript down to ES5 has issues with subclassing Errors - * as well as other built-in types: https://github.com/Microsoft/TypeScript/issues/12123 - * - * @param createImpl A factory function to create the actual constructor implementation. The returned - * function should be a named function that calls `_super` internally. - */ -export function createErrorClass(createImpl: (_super: any) => any): T { - const _super = (instance: any) => { - Error.call(instance); - instance.stack = new Error().stack; - }; - - const ctorFunc = createImpl(_super); - ctorFunc.prototype = Object.create(Error.prototype); - ctorFunc.prototype.constructor = ctorFunc; - return ctorFunc; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/createObject.ts b/WechatBot/node_modules/rxjs/src/internal/util/createObject.ts deleted file mode 100644 index 0f79f92f2..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/createObject.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function createObject(keys: string[], values: any[]) { - return keys.reduce((result, key, i) => ((result[key] = values[i]), result), {} as any); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/errorContext.ts b/WechatBot/node_modules/rxjs/src/internal/util/errorContext.ts deleted file mode 100644 index 6c4ffb170..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/errorContext.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { config } from '../config'; - -let context: { errorThrown: boolean; error: any } | null = null; - -/** - * Handles dealing with errors for super-gross mode. Creates a context, in which - * any synchronously thrown errors will be passed to {@link captureError}. Which - * will record the error such that it will be rethrown after the call back is complete. - * TODO: Remove in v8 - * @param cb An immediately executed function. - */ -export function errorContext(cb: () => void) { - if (config.useDeprecatedSynchronousErrorHandling) { - const isRoot = !context; - if (isRoot) { - context = { errorThrown: false, error: null }; - } - cb(); - if (isRoot) { - const { errorThrown, error } = context!; - context = null; - if (errorThrown) { - throw error; - } - } - } else { - // This is the general non-deprecated path for everyone that - // isn't crazy enough to use super-gross mode (useDeprecatedSynchronousErrorHandling) - cb(); - } -} - -/** - * Captures errors only in super-gross mode. - * @param err the error to capture - */ -export function captureError(err: any) { - if (config.useDeprecatedSynchronousErrorHandling && context) { - context.errorThrown = true; - context.error = err; - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/executeSchedule.ts b/WechatBot/node_modules/rxjs/src/internal/util/executeSchedule.ts deleted file mode 100644 index 1bcb9900f..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/executeSchedule.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Subscription } from '../Subscription'; -import { SchedulerAction, SchedulerLike } from '../types'; - -export function executeSchedule( - parentSubscription: Subscription, - scheduler: SchedulerLike, - work: () => void, - delay: number, - repeat: true -): void; -export function executeSchedule( - parentSubscription: Subscription, - scheduler: SchedulerLike, - work: () => void, - delay?: number, - repeat?: false -): Subscription; - -export function executeSchedule( - parentSubscription: Subscription, - scheduler: SchedulerLike, - work: () => void, - delay = 0, - repeat = false -): Subscription | void { - const scheduleSubscription = scheduler.schedule(function (this: SchedulerAction) { - work(); - if (repeat) { - parentSubscription.add(this.schedule(null, delay)); - } else { - this.unsubscribe(); - } - }, delay); - - parentSubscription.add(scheduleSubscription); - - if (!repeat) { - // Because user-land scheduler implementations are unlikely to properly reuse - // Actions for repeat scheduling, we can't trust that the returned subscription - // will control repeat subscription scenarios. So we're trying to avoid using them - // incorrectly within this library. - return scheduleSubscription; - } -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/identity.ts b/WechatBot/node_modules/rxjs/src/internal/util/identity.ts deleted file mode 100644 index 0b07958e7..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/identity.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** - * This function takes one parameter and just returns it. Simply put, - * this is like `(x: T): T => x`. - * - * ## Examples - * - * This is useful in some cases when using things like `mergeMap` - * - * ```ts - * import { interval, take, map, range, mergeMap, identity } from 'rxjs'; - * - * const source$ = interval(1000).pipe(take(5)); - * - * const result$ = source$.pipe( - * map(i => range(i)), - * mergeMap(identity) // same as mergeMap(x => x) - * ); - * - * result$.subscribe({ - * next: console.log - * }); - * ``` - * - * Or when you want to selectively apply an operator - * - * ```ts - * import { interval, take, identity } from 'rxjs'; - * - * const shouldLimit = () => Math.random() < 0.5; - * - * const source$ = interval(1000); - * - * const result$ = source$.pipe(shouldLimit() ? take(5) : identity); - * - * result$.subscribe({ - * next: console.log - * }); - * ``` - * - * @param x Any value that is returned by this function - * @returns The value passed as the first parameter to this function - */ -export function identity(x: T): T { - return x; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/isArrayLike.ts b/WechatBot/node_modules/rxjs/src/internal/util/isArrayLike.ts deleted file mode 100644 index 6f634d4d9..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/isArrayLike.ts +++ /dev/null @@ -1 +0,0 @@ -export const isArrayLike = ((x: any): x is ArrayLike => x && typeof x.length === 'number' && typeof x !== 'function'); \ No newline at end of file diff --git a/WechatBot/node_modules/rxjs/src/internal/util/isAsyncIterable.ts b/WechatBot/node_modules/rxjs/src/internal/util/isAsyncIterable.ts deleted file mode 100644 index d419dc370..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/isAsyncIterable.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { isFunction } from './isFunction'; - -export function isAsyncIterable(obj: any): obj is AsyncIterable { - return Symbol.asyncIterator && isFunction(obj?.[Symbol.asyncIterator]); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/isDate.ts b/WechatBot/node_modules/rxjs/src/internal/util/isDate.ts deleted file mode 100644 index ed09ffb6a..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/isDate.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Checks to see if a value is not only a `Date` object, - * but a *valid* `Date` object that can be converted to a - * number. For example, `new Date('blah')` is indeed an - * `instanceof Date`, however it cannot be converted to a - * number. - */ -export function isValidDate(value: any): value is Date { - return value instanceof Date && !isNaN(value as any); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/isFunction.ts b/WechatBot/node_modules/rxjs/src/internal/util/isFunction.ts deleted file mode 100644 index 2715f0752..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/isFunction.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Returns true if the object is a function. - * @param value The value to check - */ -export function isFunction(value: any): value is (...args: any[]) => any { - return typeof value === 'function'; -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/isInteropObservable.ts b/WechatBot/node_modules/rxjs/src/internal/util/isInteropObservable.ts deleted file mode 100644 index e709b8a24..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/isInteropObservable.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { InteropObservable } from '../types'; -import { observable as Symbol_observable } from '../symbol/observable'; -import { isFunction } from './isFunction'; - -/** Identifies an input as being Observable (but not necessary an Rx Observable) */ -export function isInteropObservable(input: any): input is InteropObservable { - return isFunction(input[Symbol_observable]); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/isIterable.ts b/WechatBot/node_modules/rxjs/src/internal/util/isIterable.ts deleted file mode 100644 index 9b492b3c8..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/isIterable.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { iterator as Symbol_iterator } from '../symbol/iterator'; -import { isFunction } from './isFunction'; - -/** Identifies an input as being an Iterable */ -export function isIterable(input: any): input is Iterable { - return isFunction(input?.[Symbol_iterator]); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/isObservable.ts b/WechatBot/node_modules/rxjs/src/internal/util/isObservable.ts deleted file mode 100644 index 8df8f328d..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/isObservable.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** prettier */ -import { Observable } from '../Observable'; -import { isFunction } from './isFunction'; - -/** - * Tests to see if the object is an RxJS {@link Observable} - * @param obj the object to test - */ -export function isObservable(obj: any): obj is Observable { - // The !! is to ensure that this publicly exposed function returns - // `false` if something like `null` or `0` is passed. - return !!obj && (obj instanceof Observable || (isFunction(obj.lift) && isFunction(obj.subscribe))); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/isPromise.ts b/WechatBot/node_modules/rxjs/src/internal/util/isPromise.ts deleted file mode 100644 index 0baef64aa..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/isPromise.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { isFunction } from "./isFunction"; - -/** - * Tests to see if the object is "thennable". - * @param value the object to test - */ -export function isPromise(value: any): value is PromiseLike { - return isFunction(value?.then); -} diff --git a/WechatBot/node_modules/rxjs/src/internal/util/isReadableStreamLike.ts b/WechatBot/node_modules/rxjs/src/internal/util/isReadableStreamLike.ts deleted file mode 100644 index 87b9c15a8..000000000 --- a/WechatBot/node_modules/rxjs/src/internal/util/isReadableStreamLike.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { ReadableStreamLike } from '../types'; -import { isFunction } from './isFunction'; - -export async function* readableStreamLikeToAsyncGenerator(readableStream: ReadableStreamLike): AsyncGenerator { - const reader = readableStream.getReader(); - try { - while (true) { - const { value, done } = await reader.read(); - if (done) { - return; - } - yield value!; - } - } finally { - reader.releaseLock(); - } -} - -export function isReadableStreamLike(obj: any): obj is ReadableStreamLike { - // We don't want to use instanceof checks because they would return - // false for instances from another Realm, like an